/* Soccer AI landing page.
   Brand tokens are the app's (ios/FirstTouch/Design/Tokens.swift, from ios/Branding/reskin-soccerai.py):
   Pitch #0A2E1F, Volt #D4FF3A, Chalk #F4F7F1, Ink #0B1711, Grass #16A34A, Flag #F97316.
   Type: Bricolage Grotesque ExtraBold (sentence case, tight tracking) for display text and numbers,
   Inter for everything else; eyebrows are Inter 700, 12 px, +0.12 em, caps. Volt is a fill, never text on Chalk. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque.woff") format("woff"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff") format("woff"); font-weight: 400 800; font-display: swap; }

:root {
  --pitch: #0A2E1F; --surface: #0F3826; --raised: #154530; --line: #1E4A35;
  --ink: #0B1711; --deep: #06231A;
  --volt: #D4FF3A; --volt-pressed: #BFE62E; --on-volt: #0A2E1F;
  --chalk: #F4F7F1; --muted: rgba(244,247,241,.62); --muted-strong: #B9CEC1;
  --grass: #22C55E; --grass-deep: #16A34A; --flag: #F97316; --error: #F87171;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--deep); color: var(--chalk); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--volt); color: var(--on-volt); }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--volt); color: var(--on-volt); padding: 10px 16px; border-radius: 99px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
h1.display { font-size: clamp(52px, 6.3vw, 96px); line-height: .92; letter-spacing: -.045em; }
h2.display { font-size: clamp(38px, 5.4vw, 76px); }
.eyebrow { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted-strong); max-width: 34em; }
.volt-text { color: var(--volt); }
.muted-d { color: rgba(244,247,241,.42); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { text-align: center; justify-items: center; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 99px; padding: 16px 26px; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .3s; }
.btn-volt { background: var(--volt); color: var(--on-volt); box-shadow: 0 0 0 0 rgba(212,255,58,.0), 0 10px 30px -10px rgba(212,255,58,.55); }
.btn-volt:hover { background: var(--volt-pressed); transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(212,255,58,.14), 0 14px 34px -10px rgba(212,255,58,.6); }
.btn-volt:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1.5px rgba(244,247,241,.37); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--volt); color: var(--volt); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn[aria-busy="true"] span { opacity: .4; }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; position: absolute; }
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 99px; background: rgba(212,255,58,.1); box-shadow: inset 0 0 0 1px rgba(212,255,58,.3); font: 600 14px/1 var(--sans); color: var(--volt); width: fit-content; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }
.dot.live { box-shadow: 0 0 0 0 rgba(212,255,58,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(212,255,58,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(212,255,58,0); } }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; font: 700 12px/1 var(--sans); white-space: nowrap; }
.chip img { border-radius: 24%; }
.chip.glass, .glass { background: rgba(11,23,17,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--chalk); box-shadow: inset 0 0 0 1px rgba(244,247,241,.14); }
.chip.rec { background: rgba(220,38,38,.9); color: var(--chalk); }
.chip.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--chalk); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.badge { display: inline-flex; width: fit-content; padding: 5px 10px; border-radius: 9px; font: 600 13px/1 var(--sans); }
.badge.grass { color: var(--grass); box-shadow: inset 0 0 0 1.5px var(--grass); background: rgba(22,163,74,.12); }
.badge.flag { color: var(--flag); box-shadow: inset 0 0 0 1.5px var(--flag); background: rgba(249,115,22,.1); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 12px 12px auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 14px; border-radius: 99px; max-width: 1200px; margin-inline: auto; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(10,46,31,.72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(244,247,241,.1), 0 20px 40px -20px rgba(0,0,0,.5); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -.035em; }
.brand img { border-radius: 24%; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; font: 500 15px/1 var(--sans); color: var(--muted-strong); transition: color .2s; }
.nav nav a:hover { color: var(--chalk); }

/* ---------- phone frames ---------- */
.phone { --pw: 300px; --bz: calc(var(--pw) * .032); position: relative; width: var(--pw); aspect-ratio: 393 / 852; padding: var(--bz); border-radius: calc(var(--pw) * .165); margin: 0;
  background: linear-gradient(150deg, #2b3a32, #0B1711 30%, #0B1711 70%, #33443a);
  box-shadow: inset 0 0 0 1.5px rgba(244,247,241,.18), 0 0 0 1px rgba(0,0,0,.6), 0 50px 90px -30px rgba(0,0,0,.75), 0 30px 60px -40px rgba(212,255,58,.25); }
.phone > img, .phone .screen, .phone .layers { width: 100%; height: 100%; border-radius: calc(var(--pw) * .135); overflow: hidden; object-fit: cover; object-position: top; background: var(--pitch); }
.phone.landscape { aspect-ratio: 852 / 393; border-radius: calc(var(--pw) * .076); --bz: calc(var(--pw) * .0148); }
.phone.landscape .screen { border-radius: calc(var(--pw) * .062); position: relative; }
.island { position: absolute; left: calc(var(--pw) * .028); top: 50%; translate: 0 -50%; width: calc(var(--pw) * .042); height: calc(var(--pw) * .145); border-radius: 99px; background: #000; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 1000px); padding: 130px 0 90px; overflow: hidden; background: var(--pitch); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow.g1 { width: 760px; height: 760px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(212,255,58,.32), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.glow.g2 { width: 620px; height: 620px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(22,163,74,.45), transparent 65%); }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.1); } }
.pitch-plane { position: absolute; left: 50%; bottom: -8%; width: 170%; height: 70%; translate: -50% 0; transform: perspective(900px) rotateX(64deg); transform-origin: 50% 100%; color: rgba(244,247,241,.2);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 8.33%, transparent 8.33% 16.66%);
  -webkit-mask: linear-gradient(to top, #000 30%, transparent 95%); mask: linear-gradient(to top, #000 30%, transparent 95%); }
.pitch-plane svg { width: 100%; height: 100%; }
.pitch-plane svg g * { stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 3.2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 22px; position: relative; z-index: 2; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 4px 0 0; list-style: none; font-size: 14px; color: var(--muted); }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--volt); rotate: 45deg; }
.proof b { color: var(--chalk); font-weight: 600; }

.hero-stage { position: relative; height: 560px; perspective: 1600px; }
.hero-stage .phone.live { position: absolute; left: 50%; top: 52%; --pw: min(640px, 54vw); translate: -50% -50%; transform: rotateY(-16deg) rotateX(7deg) rotateZ(1deg); transform-style: preserve-3d; animation: floaty 7s ease-in-out infinite; z-index: 2; }
.hero-stage .phone.behind { position: absolute; right: -4%; top: -2%; --pw: min(250px, 21vw); transform: rotateY(-22deg) rotateZ(4deg); opacity: .9; z-index: 1; filter: saturate(.9) brightness(.85); }
@keyframes floaty { 50% { transform: rotateY(-13deg) rotateX(5deg) rotateZ(0deg) translateY(-10px); } }
.live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
#trail, .trk-trail { fill: none; stroke: var(--volt); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.ank.l { fill: var(--volt); } .ank.r { fill: var(--chalk); }
#ringc, .trk-ringc { fill: none; stroke: var(--volt); stroke-width: 5; filter: drop-shadow(0 0 8px rgba(212,255,58,.8)); }
#flashbg, .trk-flashbg { fill: var(--volt); }
#flasht, .trk-flasht { font: 800 21px var(--sans); text-anchor: middle; fill: var(--on-volt); letter-spacing: .04em; }
.hud-rail { position: absolute; left: 7.5%; top: 9%; bottom: 9%; width: 13%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 3% 0; border-radius: 18px; background: rgba(11,23,17,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(244,247,241,.12); text-align: center; }
.hud-rail div { display: grid; justify-items: center; gap: 2px; }
.hud-rail b { font: 800 clamp(16px, 2.2vw, 30px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hud-rail b.pop { animation: pop .45s var(--ease); color: var(--volt); }
@keyframes pop { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
.hud-rail span { font: 700 clamp(7px, .75vw, 10px)/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.pip { width: 6px; height: 6px; border-radius: 50%; } .pip.volt { background: var(--volt); } .pip.chalk { background: var(--chalk); }
.hud-rail .stop { width: clamp(18px, 2.4vw, 30px); aspect-ratio: 1; border-radius: 50%; background: var(--flag); box-shadow: inset 0 0 0 4px rgba(11,23,17,.5); }
.hud-top { position: absolute; top: 6%; left: 24%; display: flex; gap: 8px; }
.hud-clock { position: absolute; top: 6%; right: 4%; font-variant-numeric: tabular-nums; }
.hud-top .chip, .hud-clock { font-size: clamp(8px, .85vw, 12px); }

.float { position: absolute; z-index: 3; border-radius: 18px; padding: 14px 16px; display: grid; gap: 4px; min-width: 150px; animation: bob 6s ease-in-out infinite; }
.float b { font: 800 34px/1 var(--display); letter-spacing: -.04em; }
.float small { font-size: 12px; color: var(--muted); }
.glass-card { background: rgba(15,56,38,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(244,247,241,.14), 0 30px 50px -20px rgba(0,0,0,.6); }
.volt-card { background: var(--volt); color: var(--on-volt); box-shadow: 0 30px 60px -20px rgba(212,255,58,.55); }
.volt-card small { color: rgba(10,46,31,.75); font-weight: 600; }
.float.f1 { left: 0; top: 8%; animation-delay: -1s; }
.float.f2 { right: 2%; bottom: 4%; animation-delay: -3s; min-width: 180px; }
.float.f3 { left: 6%; bottom: 0; animation-delay: -4.5s; display: flex; align-items: center; gap: 10px; }
.float.f3 b { font-size: 40px; } .float.f3 small { max-width: 9em; line-height: 1.25; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.bar { position: relative; height: 6px; border-radius: 4px; background: rgba(244,247,241,.14); margin: 6px 0 2px; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--volt); }
.bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--flag); }

/* ---------- waitlist form ---------- */
.waitlist { display: grid; gap: 12px; max-width: 520px; }
.field-row { display: flex; gap: 8px; padding: 6px; border-radius: 99px; background: rgba(6,35,26,.65); box-shadow: inset 0 0 0 1.5px rgba(244,247,241,.18); transition: box-shadow .2s; }
.field-row:focus-within { box-shadow: inset 0 0 0 2px var(--volt), 0 0 0 6px rgba(212,255,58,.12); }
.field-row input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0 16px; font-size: 17px; }
.field-row input::placeholder { color: rgba(244,247,241,.42); }
.waitlist.invalid .field-row { box-shadow: inset 0 0 0 2px var(--error); }
.form-note { font-size: 13px; color: var(--muted); padding-left: 18px; }
.form-note a { color: var(--chalk); }
.form-note.err { color: var(--error); }
.form-note.ok { color: var(--volt); font-weight: 600; }

/* ---------- marquee ---------- */
.marquee { position: relative; padding: 50px 0; overflow: hidden; background: var(--deep); }
.band { display: flex; overflow: hidden; white-space: nowrap; }
.band.volt { background: var(--volt); color: var(--on-volt); rotate: -2.2deg; margin: 0 -40px; padding: 18px 0; position: relative; z-index: 2; box-shadow: 0 20px 50px -20px rgba(212,255,58,.5); }
.band.outline { rotate: 1.8deg; margin: -6px -40px 0; padding: 22px 0 16px; background: var(--surface); }
.track { display: flex; align-items: center; gap: 34px; padding-right: 34px; animation: scroll 38s linear infinite; font: 800 clamp(26px, 3.6vw, 46px)/1 var(--display); letter-spacing: -.035em; }
.track.rev { animation-direction: reverse; animation-duration: 46s; }
.band.outline .track { color: transparent; -webkit-text-stroke: 1.5px rgba(244,247,241,.45); }
.band.outline i { color: var(--volt); -webkit-text-stroke: 0; font-size: .5em; }
.track i { font-style: normal; font-size: .6em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- how ---------- */
.how { padding: clamp(90px, 12vw, 160px) 0 60px; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.steps { list-style: none; padding: 0; margin: 0; }
.step { min-height: 72vh; display: grid; align-content: center; gap: 16px; padding: 30px 0; opacity: .32; transition: opacity .5s; }
.step.active { opacity: 1; }
.step-n { font: 800 18px/1 var(--display); color: var(--on-volt); background: var(--volt); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; letter-spacing: -.02em; }
.step h3 { font: 800 clamp(30px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.035em; }
.step p { color: var(--muted-strong); font-size: 18px; max-width: 28em; }
.step-shot { display: none; }
.sticky-col { position: relative; }
.sticky-phone { position: sticky; top: calc(50vh - 340px); margin: 0 auto; --pw: min(330px, 100%); transition: rotate .8s var(--ease), scale .8s var(--ease); }
/* step 3: the phone turns sideways (as in the real setup) and shows the live tracking upright */
.sticky-phone.turned { rotate: 90deg; scale: .78; }
.sticky-phone.turned::before { inset: -6% -40%; }
.layer.cam { container-type: size; background: var(--ink); }
.layer.cam .live-mini { inset: auto; left: 50%; top: 50%; width: 100cqh; height: 100cqw; translate: -50% -50%; rotate: -90deg; }
.sticky-phone::before { content: ""; position: absolute; inset: -18% -40%; z-index: -1; background: radial-gradient(closest-side, rgba(212,255,58,.22), transparent); }
.layers { position: relative; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.layer.on { opacity: 1; transform: none; }
.layer.cam video { width: 100%; height: 100%; object-fit: cover; }
.layer.scroller { overflow: hidden; }
.layer.scroller img { width: 100%; height: auto; transition: transform 5s ease-in-out .6s; }
.layer.scroller.on img { transform: translateY(calc(-100% + var(--sh, 600px))); }
.step-dots { position: sticky; top: calc(50vh + 360px); display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.step-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(244,247,241,.25); transition: width .4s var(--ease), background .4s; }
.step-dots i.on { width: 28px; background: var(--volt); }

/* ---------- live tracking (step 3): the hero's real clip + tracking, reused ---------- */
.live-mini { position: absolute; inset: 0; overflow: hidden; container-type: size; background: var(--ink); }
.live-mini video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.live-mini .hud-rail { left: 3.5%; top: 9%; bottom: 9%; width: 13%; border-radius: 5cqh; }
.live-mini .hud-rail b { font-size: clamp(12px, 9cqh, 30px); }
.live-mini .hud-rail span { font-size: clamp(6px, 2.6cqh, 10px); }
.live-mini .chip.rec { position: absolute; top: 7%; right: 4%; font-size: clamp(8px, 3.6cqh, 12px); padding: .5em .9em; }

/* ---------- numbers ---------- */
.numbers { padding: clamp(90px, 12vw, 150px) 0; background: linear-gradient(180deg, var(--deep), var(--pitch) 30%, var(--pitch) 70%, var(--deep)); position: relative; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.tile { position: relative; overflow: hidden; display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(212,255,58,.4), 0 30px 50px -30px rgba(0,0,0,.6); }
.tile-label { font-size: 15px; color: var(--muted-strong); }
.tile-copy { color: var(--muted-strong); font-size: 16px; }
.stat { font: 800 clamp(44px, 4.6vw, 60px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat small { font-size: .4em; color: var(--muted); letter-spacing: -.02em; }
.volt-ink { color: var(--volt); }
.tile.big { grid-column: span 2; grid-row: span 2; background: radial-gradient(120% 90% at 100% 0%, rgba(212,255,58,.14), transparent 60%), var(--surface); padding: 32px; }
.mega { display: flex; align-items: flex-end; gap: 16px; }
.mega b { font: 800 clamp(120px, 15vw, 200px)/.8 var(--display); letter-spacing: -.06em; background: linear-gradient(180deg, var(--volt), #9fd11a); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.mega span { font-size: 18px; color: var(--muted-strong); line-height: 1.25; padding-bottom: 10px; }
.spark { width: 100%; height: 120px; margin-top: auto; }
.spark .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.tile.in .spark .line { animation: dash 2s var(--ease) .3s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.tile-foot { font-size: 13px; color: var(--muted); }
.goal-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(244,247,241,.12); }
.goal-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--volt); transition: width 1.4s var(--ease) .2s; }
.tile.in .goal-bar i { width: var(--v); }
.goal-bar em { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: var(--flag); }
.tile.rating { grid-column: span 2; grid-template-columns: 130px 1fr; align-items: center; align-content: center; gap: 24px; }
.tile.rating svg { width: 130px; rotate: -90deg; }
.tile.rating .track { fill: none; stroke: rgba(244,247,241,.1); stroke-width: 12; }
.tile.rating .fill { fill: none; stroke: var(--volt); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease) .2s; filter: drop-shadow(0 0 10px rgba(212,255,58,.5)); }
.tile.rating.in .fill { stroke-dashoffset: calc(100 - var(--p)); }
.tile.phone-tile { grid-column: span 2; grid-template-columns: auto 1fr; align-items: center; gap: 26px; padding-bottom: 0; align-content: end; }
.tile.phone-tile .phone { --pw: 220px; margin-bottom: -120px; align-self: start; margin-top: 10px; }
.fine { margin-top: 22px; font-size: 13px; color: var(--muted); max-width: 60em; }

/* ---------- coach ---------- */
.coach { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; padding: clamp(90px, 12vw, 150px) 0; }
.coach-copy { display: grid; gap: 24px; }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 38px; color: var(--muted-strong); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%230A2E1F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
.checks b { color: var(--chalk); font-weight: 600; }
.coach-visual { position: relative; min-height: 600px; }
.coach-visual .phone { position: absolute; right: 0; top: 0; --pw: min(270px, 40vw); transform: rotate(4deg); }
.fix-card { position: absolute; left: 0; bottom: 20px; z-index: 2; width: min(420px, 82%); padding: 22px; border-radius: 24px; background: rgba(15,56,38,.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(244,247,241,.14), 0 50px 80px -30px rgba(0,0,0,.8); transform: rotate(-2.5deg); }
.fix-card h3 { font: 800 24px/1.1 var(--display); letter-spacing: -.03em; margin-bottom: 14px; }
.fix { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 0; }
.fix + .fix { border-top: 1px solid var(--line); }
.fix-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); font: 800 15px/1 var(--display); box-shadow: inset 0 0 0 1px rgba(244,247,241,.18); }
.fix h4 { font: 700 17px/1.25 var(--sans); margin-bottom: 4px; }
.fix p { font-size: 14px; color: var(--muted-strong); }
.watch { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 7px 14px 7px 7px; border-radius: 12px; font: 600 14px/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(244,247,241,.37); }
.watch i { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); position: relative; }
.watch i::after { content: ""; position: absolute; left: 10px; top: 8px; border: 5px solid transparent; border-left: 8px solid var(--volt); }

/* ---------- gallery fan ---------- */
.gallery { padding: clamp(80px, 10vw, 130px) 0 clamp(100px, 12vw, 160px); overflow: hidden; background: radial-gradient(60% 50% at 50% 70%, rgba(212,255,58,.12), transparent 70%), var(--deep); }
.fan { --s: 0; position: relative; height: clamp(520px, 52vw, 680px); display: flex; justify-content: center; }
.fan .phone { position: absolute; top: 0; --pw: clamp(220px, 21vw, 290px);
  transform: translateX(calc(var(--i) * var(--s) * min(19vw, 270px))) translateY(calc(var(--s) * (var(--i) * var(--i)) * 14px)) rotate(calc(var(--i) * var(--s) * 6deg)) scale(calc(1 - (var(--i) * var(--i)) * .03));
  z-index: calc(10 - var(--i) * var(--i)); transition: transform .9s var(--ease); }
.fan .phone:hover { transform: translateX(calc(var(--i) * var(--s) * min(19vw, 270px))) translateY(-16px) rotate(0deg) scale(1.03); z-index: 20; }

/* ---------- audience ---------- */
.who { padding: clamp(60px, 8vw, 100px) 0 clamp(90px, 12vw, 140px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-rows: auto 1fr; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s var(--ease); filter: saturate(1.05) contrast(1.05); }
.card:hover img { transform: scale(1.05); }
.card > div { display: grid; gap: 10px; padding: 22px 24px 26px; align-content: start; position: relative; background: var(--surface); }
.card h3 { font: 800 25px/1.1 var(--display); letter-spacing: -.03em; }
.card p:not(.eyebrow) { color: var(--muted-strong); font-size: 16px; }
.privacy { display: flex; gap: 18px; align-items: flex-start; margin-top: 26px; padding: 22px 26px; border-radius: var(--r); background: rgba(212,255,58,.06); box-shadow: inset 0 0 0 1px rgba(212,255,58,.25); color: var(--volt); }
.privacy svg { flex: none; }
.privacy p { color: var(--muted-strong); }
.privacy b { color: var(--chalk); }

/* ---------- join ---------- */
.join { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 180px) 0; background: radial-gradient(70% 60% at 50% 40%, #154530, var(--pitch) 60%, var(--deep)); text-align: center; isolation: isolate; }
.join-bg { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(212,255,58,.16); }
.ring.r1 { width: 520px; height: 520px; animation: ripple 6s linear infinite; }
.ring.r2 { width: 520px; height: 520px; animation: ripple 6s linear infinite -2s; }
.ring.r3 { width: 520px; height: 520px; animation: ripple 6s linear infinite -4s; }
@keyframes ripple { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.join-inner { display: grid; justify-items: center; gap: 24px; }
.join-logo { border-radius: 24%; box-shadow: 0 0 0 10px rgba(212,255,58,.12), 0 30px 80px -10px rgba(212,255,58,.55); animation: bob 5s ease-in-out infinite; }
.join h2.display { font-size: clamp(46px, 7vw, 104px); line-height: .92; }
.join .lede { margin-inline: auto; }
.waitlist.big { width: min(580px, 100%); max-width: none; gap: 16px; margin-top: 8px; }
.waitlist.big .form-note { text-align: center; padding: 0; }
.roles { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; }
.roles legend { float: left; font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.roles label { cursor: pointer; }
.roles input { position: absolute; opacity: 0; pointer-events: none; }
.roles span { display: inline-block; padding: 10px 16px; border-radius: 99px; font: 600 15px/1 var(--sans); box-shadow: inset 0 0 0 1.5px rgba(244,247,241,.25); transition: all .2s; }
.roles label:hover span { box-shadow: inset 0 0 0 1.5px rgba(244,247,241,.6); }
.roles input:checked + span { background: var(--volt); color: var(--on-volt); box-shadow: none; }
.roles input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 3px; }
.joined { display: grid; justify-items: center; gap: 14px; }
.joined[hidden] { display: none; }
.joined h3 { font-size: clamp(32px, 4vw, 48px); }
.joined p { color: var(--muted-strong); }
.tick svg { width: 84px; height: 84px; }
.tick circle { fill: var(--volt); }
.tick path { fill: none; stroke: var(--on-volt); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: dashc .6s var(--ease) .25s forwards; }
@keyframes dashc { to { stroke-dashoffset: 0; } }
.joined .tick { animation: popin .5s var(--ease); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }

/* ---------- faq ---------- */
.faq { padding: clamp(90px, 12vw, 140px) 0; }
.qs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qs details { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 22px; transition: box-shadow .3s; }
.qs details[open] { box-shadow: inset 0 0 0 1px rgba(212,255,58,.4); }
.qs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 700 19px/1.25 var(--display); letter-spacing: -.02em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--volt); font: 600 20px/1 var(--sans); transition: rotate .3s var(--ease); }
.qs details[open] summary::after { rotate: 45deg; }
.qs details p { padding: 0 0 20px; color: var(--muted-strong); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 110px; background: var(--deep); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot p { color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
.foot nav a { color: var(--muted-strong); text-decoration: none; }
.foot nav a:hover { color: var(--volt); }
.foot .copy { flex-basis: 100%; font-size: 12px; }
.mobile-cta { display: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  /* single column: the live tracking demo goes right under the headline, so it's on the first screen */
  .hero-inner { gap: 22px; }
  .hero-copy { display: contents; }
  .hero-copy > * { order: 3; }
  .hero-copy > .pill, .hero-copy > h1 { order: 0; }
  .hero-stage { order: 1; }
  .hero-copy > .waitlist { order: 2; }
  .hero-stage { height: clamp(360px, 70vw, 560px); }
  .hero-stage .phone.live { --pw: min(640px, 88vw); }
  .hero-stage .phone.behind { --pw: min(220px, 30vw); right: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .coach { grid-template-columns: 1fr; }
  .sticky-phone.turned { scale: .55; }
}
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .sticky-col { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; }
  .step-shot { display: block; margin: 12px 0 0; width: min(300px, 80%); aspect-ratio: 393 / 852; border-radius: 40px; overflow: hidden; padding: 9px; background: #0B1711; box-shadow: inset 0 0 0 1.5px rgba(244,247,241,.18), 0 40px 60px -30px rgba(0,0,0,.7); }
  /* screen sits inside the 9px bezel; absolute so Safari can't size it to the padded box and spill over the frame */
  .step-shot { position: relative; }
  .step-shot > img, .step-shot > video { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: cover; object-position: top; border-radius: 32px; }
  .step-shot.wide { position: relative; width: 100%; max-width: 560px; aspect-ratio: 852 / 393; border-radius: 30px; }
  .step-shot.wide .live-mini { inset: 8px; border-radius: 23px; }
  .cards, .qs { grid-template-columns: 1fr; }
  .fan { height: auto; display: flex; justify-content: flex-start; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 40px; scrollbar-width: none; }
  .fan .phone, .fan .phone:hover { position: relative; transform: none; flex: none; scroll-snap-align: center; --pw: 240px; }
  .mobile-cta { display: block; position: fixed; inset: auto 14px max(14px, env(safe-area-inset-bottom)); z-index: 40; transform: translateY(140%); transition: transform .4s var(--ease); }
  .mobile-cta .btn { width: 100%; }
  .mobile-cta.show { transform: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 84px; }
  .hero-inner { gap: 16px; }
  h1.display { font-size: clamp(44px, 13vw, 52px); }
  .float.f1 { display: none; }
  .float { min-width: 0; padding: 10px 12px; } .float b { font-size: 24px; } .float.f3 b { font-size: 28px; }
  .float.f2 { right: 0; bottom: 0; min-width: 140px; }
  .hero-stage .phone.behind { display: none; }
  /* phones: demo + email form both on the first screen; the stat cards would push the form below it */
  .hero-stage { height: calc(88vw * 393 / 852 + 16px); }
  .hero-stage .float { display: none; }
  .hero-stage .phone.live { top: calc(88vw * 393 / 852 / 2 + 8px); transform: rotateY(-8deg) rotateX(4deg); animation: none; }
  .hud-top { left: 22%; }
  .coach-visual .phone { --pw: min(270px, 72vw); }
  .field-row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .field-row input { padding: 12px; }
  .bento { grid-template-columns: 1fr; }
  .tile.big, .tile.rating, .tile.phone-tile { grid-column: auto; grid-row: auto; }
  .tile.phone-tile { grid-template-columns: 1fr; }
  .tile.phone-tile .phone { justify-self: center; order: 2; }
  .coach-visual { min-height: 0; display: grid; gap: 24px; justify-items: center; }
  .coach-visual .phone, .fix-card { position: relative; inset: auto; transform: none; }
  .fix-card { width: 100%; }
  .roles legend { float: none; width: 100%; text-align: center; margin: 0 0 4px; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .track { animation: none; }
}

/* ---------- legal page ---------- */
.legal { padding: 140px 0 80px; max-width: 760px; display: grid; gap: 18px; }
.legal h1.display { font-size: clamp(40px, 6vw, 64px); }
.legal h2 { font: 800 26px/1.1 var(--display); letter-spacing: -.03em; margin-top: 22px; }
.legal p, .legal li { color: var(--muted-strong); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--volt); }
