:root {
  --bg: #000;
  --surface: #111113;
  --surface-2: #1a1a1d;
  --line: #2a2a2e;
  --text: #fff;
  --sub: #a1a1aa;
  --muted: #71717a;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --blue-light: #60a5fa;
  --radius: 20px;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--sub); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .hide-sm { display: none; }
@media (min-width: 760px) { .nav-links .hide-sm { display: inline; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--blue-2); text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.store-btn { background: #fff; color: #000; padding: 12px 22px 12px 18px; }
.store-btn:hover { background: #e5e5e5; }
.store-btn .lines { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn small { font-size: 11px; font-weight: 500; }
.store-btn strong { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.store-btn svg { width: 24px; height: 24px; }

/* Hero */
.hero { position: relative; padding: 48px 0 24px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto -30%; height: 820px;
  background: radial-gradient(ellipse at 50% 30%, rgba(37,99,235,0.45), rgba(37,99,235,0.08) 45%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--blue-light); background: rgba(37,99,235,0.14); border: 1px solid rgba(96,165,250,0.25);
  padding: 6px 12px; border-radius: 999px;
}
h1 {
  font-size: clamp(40px, 9vw, 72px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 18px 0 16px; font-weight: 900;
}
h1 .accent { background: linear-gradient(90deg, #60a5fa, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--sub); max-width: 560px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.price-note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.hero-phones .ph { width: min(62vw, 300px); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)); }
.hero-phones .ph.back {
  position: absolute; width: min(50vw, 240px); opacity: .9;
  transform: translate(62%, -6%) rotate(6deg);
}
.hero-phones .ph.back.left { transform: translate(-62%, -6%) rotate(-6deg); }
@media (max-width: 559px) { .hero-phones .ph.back { display: none; } }
@media (min-width: 960px) {
  .hero { padding: 80px 0 40px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
  .hero-phones { min-height: 600px; }
  .hero-phones .ph { width: 290px; }
  .hero-phones .ph.back { width: 240px; transform: translate(46%, -6%) rotate(6deg); }
  .hero-phones .ph.back.left { transform: translate(-46%, -6%) rotate(-6deg); }
  h1 { font-size: 64px; }
}

/* Proof strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 0; }
.strip .item { padding: 20px; text-align: center; }
.strip .num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.strip .lbl { font-size: 13px; color: var(--sub); }
@media (min-width: 760px) { .strip .wrap { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.kicker { color: var(--blue-light); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; margin: 10px 0 14px; font-weight: 850; }
h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 6px; }
.section-head p { color: var(--sub); font-size: 18px; margin: 0; }

/* Feature rows */
.feature { display: grid; gap: 32px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .copy h2 { text-align: left; }
.feature .copy p { color: var(--sub); font-size: 18px; margin: 0 0 16px; }
.feature .phone { display: flex; justify-content: center; }
.feature .phone img { width: min(72vw, 320px); filter: drop-shadow(0 24px 50px rgba(37,99,235,0.25)); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0; }
  .feature.flip .phone { order: -1; }
}

/* Cards grid */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(37,99,235,0.16); color: var(--blue-light); margin-bottom: 14px;
}
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--sub); margin: 0; font-size: 15px; }

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); font-weight: 800; margin-bottom: 14px;
}
.step p { color: var(--sub); margin: 0; }

/* For whom */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }

/* Altitude band */
.band {
  background: linear-gradient(160deg, #1e3a8a, #0b1220 60%);
  border-top: 1px solid rgba(96,165,250,0.2); border-bottom: 1px solid rgba(96,165,250,0.2);
}
.band .wrap { display: grid; gap: 24px; }
.band .stat { font-size: clamp(56px, 14vw, 104px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.band .stat small { font-size: 0.4em; color: var(--blue-light); }
.band p { color: #cbd5e1; font-size: 18px; margin: 0; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 64px; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 650; font-size: 17px; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--blue-light); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--sub); margin: 0 0 18px; }

/* Final CTA */
.final { text-align: center; }
.final .box {
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.5), rgba(17,17,19,1) 70%);
  border: 1px solid var(--line); border-radius: 28px; padding: 56px 24px;
}
.final .box img.icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 18px; }
.final .cta-row { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--sub); }

/* Mobile sticky download bar */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: rgba(22,22,24,0.92); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: translateY(140%); transition: transform .3s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; }
.sticky-cta .t { flex: 1; line-height: 1.2; }
.sticky-cta .t strong { display: block; font-size: 15px; }
.sticky-cta .t span { font-size: 12px; color: var(--sub); }
@media (min-width: 760px) { .sticky-cta { display: none; } }
@media (max-width: 759px) { body:has(.sticky-cta) footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* Simple pages (support, privacy) */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.doc h1 { font-size: clamp(34px, 7vw, 48px); margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); letter-spacing: -0.01em; }
.doc p, .doc li { color: #d4d4d8; }
.doc .sub { color: var(--sub); margin: 0 0 24px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.contact-card .email { font-size: 20px; font-weight: 700; word-break: break-all; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Apple Health badge in hero */
.health-badge { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 22px; padding: 10px 16px 10px 12px; border-radius: 16px; background: rgba(255,45,85,.12); border: 1px solid rgba(255,45,85,.45); color: inherit; text-decoration: none; font-size: 14px; line-height: 1.3; animation: hb-in .7s ease-out .3s both, hb-glow 2.4s ease-in-out 1s 2; }
.health-badge svg { width: 26px; height: 26px; flex: none; color: #fff; background: linear-gradient(160deg,#ff5a7a,#ff2d55); border-radius: 8px; padding: 5px; }
.health-badge strong { display: block; font-size: 16px; }
.health-badge span { color: var(--muted); }
.health-badge strong { color: var(--text, #fff); }
@keyframes hb-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hb-glow { 50% { box-shadow: 0 0 0 6px rgba(255,45,85,.18), 0 0 28px rgba(255,45,85,.35); } }

/* Altitude odometer with mountain behind */
.alt-stat { position: relative; display: inline-block; padding: 60px 36px 12px; margin-top: 8px; }
.alt-mtn { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.alt-mtn path { fill: rgba(140,160,255,.22); }
.alt-mtn .snow { fill: rgba(255,255,255,.35); }
.alt-stat .stat { position: relative; z-index: 1; display: flex; align-items: baseline; }
.odo-digit { display: inline-block; height: 1em; overflow: hidden; line-height: 1em; vertical-align: bottom; clip-path: inset(0); }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.odo-strip span { display: block; height: 1em; line-height: 1em; }
@media (prefers-reduced-motion: reduce) { .odo-strip { transition: none; } .health-badge { animation: none; } }
