:root {
  --page: #0d1117;
  --surface: #161b22;
  --surface-muted: #21262d;
  --surface-elevated: #1c2128;
  --text: #f0f3f6;
  --muted: #8b949e;
  --subtle: #6e7681;
  --border: rgba(240, 246, 252, 0.08);
  --border-strong: rgba(240, 246, 252, 0.16);
  --primary: #58a6ff;
  --primary-dark: #1f6feb;
  --brand: #064acb;
  --on-primary: #0d1117;
  --success: #3fb950;
  --danger: #f85149;
  --accent-soft: rgba(88, 166, 255, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--page);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #79b8ff; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
}
.nav-cta:hover { filter: brightness(1.06); color: var(--on-primary) !important; }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  font-size: 18px;
}

.hero {
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary) !important;
}
.btn-primary:hover { filter: brightness(1.06); color: var(--on-primary) !important; }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text) !important;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary) !important; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.store-badges a { display: inline-flex; }
.store-badges img {
  height: 44px;
  width: auto;
}
.badge-play { height: 64px !important; margin: -10px 0; }

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.phone-stage {
  position: relative;
  min-height: 560px;
  background: transparent;
}
.carousel {
  position: relative;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}
.slide picture,
.slide img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  margin: 0 auto;
  background: transparent;
}
.slide-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}
.slide-caption strong { display: block; font-size: 15px; }
.slide-caption span { color: var(--muted); font-size: 13px; }

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.dot,
.carousel-btn {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
}
.dot {
  min-width: 12px;
  min-height: 12px;
  padding: 0;
}
.dot[aria-current="true"] { background: var(--primary); border-color: var(--primary); }

.section { padding: 80px 0; }
.section-muted { background: var(--surface); }
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.section .sub {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.section-muted .card { background: var(--surface-elevated); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.walkthrough {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 16px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.step:hover {
  border-color: var(--primary);
  background: var(--accent-soft);
}
.step[aria-selected="true"] {
  border-color: var(--primary);
  background: var(--accent-soft);
}
.step[aria-selected="false"]::after {
  content: "Show this step";
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.step strong { display: block; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 14px; }
.walk-visual {
  position: relative;
  min-height: 420px;
  background: transparent;
}
.walk-visual img {
  max-height: 560px;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
blockquote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
blockquote p { margin: 0 0 16px; color: var(--text); }
blockquote footer { color: var(--muted); font-size: 14px; }
blockquote cite { font-style: normal; color: var(--text); font-weight: 600; }

.newsletter {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.newsletter .center { text-align: center; }
.newsletter .sub {
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  margin: 0 auto;
  text-align: left;
}
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--page);
  color: var(--text);
  font: inherit;
}
.newsletter-form input::placeholder { color: var(--subtle); }
.newsletter-form .btn { width: 100%; }
.newsletter-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.newsletter-status {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.newsletter-status.is-ok { color: var(--success); }

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

.faq-section .wrap { text-align: center; }
.faq-section .sub {
  margin-left: auto;
  margin-right: auto;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq-item summary {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 16px 18px;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .panel {
  padding: 0 18px 16px;
  color: var(--muted);
}
.faq-item .panel p { margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-grid p { margin: 6px 0 0; color: var(--muted); }

.legal-doc {
  padding: 48px 0 80px;
  max-width: 760px;
}
.legal-doc h1 { margin: 0 0 8px; letter-spacing: -0.03em; }
.legal-doc h2 { margin: 32px 0 10px; font-size: 20px; }
.legal-doc h3 { margin: 20px 0 8px; font-size: 16px; }
.legal-doc p, .legal-doc li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.updated { color: var(--muted); margin-bottom: 28px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-meta { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.fineprint { color: var(--subtle); font-size: 12px; max-width: 46rem; }

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 16px;
}

html[data-platform="ios"] .store-priority-ios,
html[data-platform="android"] .store-priority-android {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .hero-grid,
  .walkthrough,
  .feature-grid,
  .quotes,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--page);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .hero { padding-top: 40px; }
  .phone-stage { min-height: 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

@media (max-width: 640px) {
  html[data-platform="ios"] .cta-web,
  html[data-platform="android"] .cta-web {
    order: 3;
  }
  .store-badges { width: 100%; justify-content: center; }
}
