:root {
  --brand: #3a5bff;
  --accent: #2ecc71;
  --text: #111111;
  --text-muted: #5c5c5c;
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e8e8ec;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(17, 17, 17, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem max(1.25rem, env(safe-area-inset-right)) 0.85rem max(1.25rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.site-header__trailing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-left: auto;
}

/* Classic App Store badge — small, upper-right; subdued so it does not compete with the logo */
.header-store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0.72;
  padding: 0.35rem 0.2rem;
  margin: -0.35rem -0.15rem;
  border-radius: 6px;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.header-store-badge:hover {
  opacity: 0.95;
  text-decoration: none;
}

.header-store-badge:focus {
  outline: none;
}

.header-store-badge:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  opacity: 1;
}

.header-store-badge img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100px;
}

@media (min-width: 480px) {
  .header-store-badge img {
    height: 30px;
    max-width: 108px;
  }
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo span {
  color: var(--brand);
}

.nav {
  display: flex;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--brand);
}

.nav .btn,
.nav .btn:hover {
  color: #fff;
  text-decoration: none;
}

.nav .btn--secondary,
.nav .btn--secondary:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  color: #fff;
  background: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: #2d4ae6;
  border-color: #2d4ae6;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

/* Secondary = same family as primary: outline + brand (no second fill color) */
.btn--secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--secondary:hover {
  background: rgba(58, 91, 255, 0.08);
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.btn--secondary:focus-visible {
  outline-color: var(--brand);
}

/* Parqet-style store badges row (footer) */
.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 1.25rem 0 0;
}

.store-links__btn {
  display: block;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  opacity: 0.9;
}

.store-links__btn:hover {
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.store-links__btn:focus {
  outline: none;
}

.store-links__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  opacity: 1;
}

.store-links__btn img {
  display: block;
  width: 135px;
  height: auto;
  max-width: min(135px, 44vw);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem max(1.25rem, env(safe-area-inset-right)) max(4rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  overflow-x: clip;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(3.5rem, 14vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text);
  word-break: normal;
  overflow-wrap: normal;
}

.hero .tagline {
  margin: 0 auto 1.5rem;
  max-width: 28ch;
  font-size: clamp(1.15rem, 3.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }
}

section {
  margin-top: 3rem;
}

section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about {
  margin-top: 1rem;
}

.about__copy {
  max-width: 720px;
  margin: 0 auto;
}

.about__lead {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 1rem;
}

.about__copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about__copy h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about__copy ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.about__copy li {
  margin-bottom: 0.35rem;
}

.about__features li::marker {
  color: var(--accent);
}

.about__closing {
  color: var(--text) !important;
}

.about__closing strong {
  font-weight: 700;
  color: inherit;
}

/* Store screenshots: rounded mask + slight zoom crops blue frame corners */
.shots {
  margin-top: 3.5rem;
  padding-bottom: 1rem;
}

.store-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.store-strip__item {
  flex: 0 0 min(220px, 72vw);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .store-strip__item {
    flex-basis: 260px;
  }
}

.store-shot {
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  line-height: 0;
}

.store-shot img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.09);
  transform-origin: center center;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem max(1.25rem, env(safe-area-inset-right)) max(3rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer a {
  font-weight: 500;
}

.site-footer__topics {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.site-footer__keywords {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.site-footer__keywords--extra {
  margin-top: 0.65rem;
  opacity: 0.92;
}

/* Forms */
.form-page h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.form-page p.lead {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.form-stack {
  max-width: 480px;
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-stack label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-stack input[type="email"],
.form-stack textarea {
  display: block;
  margin-top: 0.35rem;
  width: 100%;
  font: inherit;
}

.form-stack input[type="email"] {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.form-stack textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  resize: vertical;
  min-height: 8rem;
}

.form-stack button[type="submit"] {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Legal */
.legal-page {
  max-width: 720px;
}

.legal-page h1 {
  margin-top: 0;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.legal-page .meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.legal-page h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-page p {
  margin: 0 0 1rem;
}

.legal-page .contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.thanks-page {
  text-align: center;
  padding: 3rem 1rem;
}

.thanks-page h1 {
  margin-top: 0;
}

.thanks-page p {
  color: var(--text-muted);
}
