/* getngine.com, interactive layer: scroll stories, live scorer, playable tap test, tilt and cursor light.
   Sits on top of site.css (tokens, header, footer, forms). Everything degrades to a static page with
   prefers-reduced-motion or without JavaScript. */

/* ── chrome ───────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.spot { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(var(--accent-rgb), .10), transparent 65%); }
.x.pointer .spot { opacity: 1; }
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; 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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.x main, .x footer, .x header.top { position: relative; z-index: 1; }
.x header.top { position: sticky; z-index: 20; }
.x section + section { border-top: 0; }

/* intro animation */
.in-up { opacity: 0; transform: translateY(16px); animation: inUp .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d, 0) * 70ms + 200ms); }
@keyframes inUp { to { opacity: 1; transform: none; } }
.chars .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); animation: chIn .7s cubic-bezier(.2,.9,.2,1) forwards; animation-delay: calc(var(--i) * 28ms + 120ms); }
.chars .wd { display: inline-block; white-space: nowrap; }
@keyframes chIn { to { opacity: 1; transform: none; } }

/* ── hero ─────────────────────────────────────────── */
.xhero { position: relative; padding: 0; }
.xhero .wrap { position: relative; z-index: 2; }
.mega { font-size: clamp(56px, 10.5vw, 168px); line-height: .86; margin: 22px 0 28px; }
.mega .ln { display: block; overflow: hidden; padding: 0 .06em .04em 0; }
.xhero-row { display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 40px; align-items: end; }
.xhero .lede { font-size: clamp(17px, 1.5vw, 20px); }
.hero-num { position: absolute; right: -2vw; bottom: -6vw; z-index: 1; pointer-events: none; font: 800 clamp(260px, 42vw, 680px)/.8 var(--display);
  color: transparent; -webkit-text-stroke: 2px rgba(var(--accent-rgb), .22); transform: skewX(-6deg) translateY(var(--hy, 0px)); letter-spacing: -.02em; }
.scrollcue { position: absolute; right: var(--gutter); bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font: 800 11px var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.scrollcue i { width: 2px; height: 56px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── ticker ───────────────────────────────────────── */
.ticker { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); padding: 14px 0; }
.ticker-track { display: flex; gap: 28px; width: max-content; white-space: nowrap; will-change: transform; font: 800 clamp(22px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.ticker-track span { color: var(--text); transform: skewX(-6deg); }
.ticker-track b { color: var(--accent); }

/* ── scroll story ─────────────────────────────────── */
.story { height: 320vh; position: relative; }
.story-pin { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.beats { position: relative; min-height: 2.1em; font-size: clamp(44px, 6vw, 92px); }
.beat { position: absolute; inset: 0 auto auto 0; font-size: 1em; opacity: 0; transform: translateY(30px); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1); }
.beat.on { opacity: 1; transform: none; }
.beat .bad, .bad { color: var(--danger); }
.beat-sub { margin-top: 26px; min-height: 3.2em; transition: opacity .3s; }
.story-card { position: relative; border-radius: 26px; border: 1px solid var(--border2); background: linear-gradient(160deg, var(--surface2), var(--surface)); padding: 26px 28px 20px; box-shadow: inset 0 1px 0 var(--border2), 0 50px 120px rgba(0,0,0,.55); }
.sc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ring.big { width: 128px; height: 128px; }
.ring.big b { font-size: 52px; }
.story-card .rows li { opacity: .18; transform: translateX(-10px); transition: opacity .35s, transform .35s, color .3s, background .3s; }
.story-card .rows li.on { opacity: 1; transform: none; }
.story-card .rows li.flag { background: rgba(226,61,92,.10); margin: 0 -10px; padding-inline: 10px; border-radius: 8px; }
.story-card .rows li.flag span, .story-card .rows li.flag .num { color: var(--danger); }
.stamp { position: absolute; right: 22px; bottom: 64px; font: 800 64px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--danger);
  border: 5px solid var(--danger); border-radius: 12px; padding: 6px 18px 2px; transform: rotate(-12deg) scale(2.2); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; pointer-events: none; mix-blend-mode: screen; }
.stamp.on { opacity: .92; transform: rotate(-12deg) scale(1); }
.stamp.pass { color: var(--positive); border-color: var(--positive); }

/* ── live scorer ──────────────────────────────────── */
.scorer-sec { overflow: hidden; }
.scorer { margin-top: 30px; border-radius: 28px; border: 1px solid var(--border2); background: var(--surface); box-shadow: inset 0 1px 0 var(--border2), 0 50px 140px rgba(0,0,0,.5); overflow: hidden; }
.sv-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; background: var(--ink); }
.sv-tabs::-webkit-scrollbar { display: none; }
.sv-tabs button { flex: 1 0 auto; appearance: none; border: 0; background: transparent; color: var(--muted); padding: 12px 16px 10px; border-radius: 14px; cursor: pointer; text-align: left; transition: background .25s, color .25s; }
.sv-tabs button b { display: block; font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.sv-tabs button small { display: block; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; opacity: .8; }
.sv-tabs button:hover { color: var(--text); background: var(--surface2); }
.sv-tabs button[aria-selected="true"] { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: var(--on-accent); }
.sv-body { display: grid; grid-template-columns: 1.35fr 1fr; }
.sv-controls { padding: 24px 26px; border-right: 1px solid var(--border); }
.sv-who { display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.sv-who .seg { min-width: 180px; }
.sv-who #svStd { grid-column: 1 / -1; }
.sv-age { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; font: 600 14px var(--sans); color: var(--body); }
.sv-age output { font: 700 22px var(--display); color: var(--text); min-width: 2ch; }
.sv-events { display: grid; gap: 4px; margin-top: 6px; }
.ev { padding: 14px 0 12px; border-bottom: 1px solid var(--border); }
.ev:last-child { border-bottom: 0; }
.ev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ev-name { font: 700 15px var(--sans); color: var(--text); }
.ev-val { font: 700 26px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.ev-pts { font: 700 15px var(--display); letter-spacing: .06em; color: var(--muted); min-width: 6ch; text-align: right; }
.ev.fail .ev-pts, .ev.fail .ev-name { color: var(--danger); }
.ev.max .ev-pts { color: var(--accent); }
.ev-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.ev-opts button { appearance: none; border: 1px solid var(--border2); background: transparent; color: var(--muted); font: 600 12px var(--sans); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.ev-opts button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: rgba(var(--accent-rgb), .14); }
.ev-track { position: relative; margin-top: 8px; }
.ev-track .gate { position: absolute; top: 2px; bottom: 2px; width: 2px; background: var(--danger); border-radius: 1px; pointer-events: none; opacity: .8; }
.ev-track .maxm { position: absolute; top: 2px; bottom: 2px; width: 2px; background: var(--accent); border-radius: 1px; pointer-events: none; opacity: .8; }
.ev-track .fill { position: absolute; left: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--accent); pointer-events: none; transition: background .2s; }
.ev.fail .ev-track .fill { background: var(--danger); }
.ev-track input[type="range"] { position: relative; z-index: 1; }
.ev-hint { display: flex; justify-content: space-between; font: 600 11px var(--sans); color: var(--label); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.sv-result { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 26px; background: radial-gradient(ellipse at 50% 30%, rgba(var(--accent-rgb), .12), transparent 70%); }
.sv-ring { position: relative; width: min(280px, 70vw); aspect-ratio: 1; }
.sv-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.sv-ring circle { fill: none; stroke-width: 9; }
.sv-ring .track { stroke: var(--surface3); }
.sv-ring .arc { stroke: var(--accent); stroke-linecap: round; transition: stroke .3s; }
.sv-ring.fail .arc { stroke: var(--danger); }
.sv-ring .pass-tick { stroke: var(--text); stroke-width: 14; stroke-dasharray: 1.5 400; opacity: .7; }
.sv-total { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 34%; gap: 2px; }
.sv-total b { font: 800 clamp(64px, 7vw, 96px)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text); }
.sv-total span { font: 700 20px var(--display); color: var(--muted); }
.sv-verdict { margin-top: 18px; font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.sv-verdict.fail { color: var(--danger); }
.sv-verdict.pass { color: var(--positive); }
.sv-why { margin: 10px auto 0; max-width: 28em; font-size: 15px; min-height: 3em; }
.stamp.small { position: absolute; top: 22px; right: 22px; bottom: auto; font-size: 30px; border-width: 3px; padding: 4px 10px 1px; border-radius: 8px; }
.scorer .calc-note { padding: 12px 26px 16px; margin: 0; border-top: 1px solid var(--border); }

/* ── tap test ─────────────────────────────────────── */
.tap-btn { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; color: var(--text); font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .06s, border-color .2s; }
.tap-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tap-btn.hit { transform: scale(.985); }
.tap-btn.done { border-color: var(--border2); }
.ripple-layer { position: absolute; inset: 0; pointer-events: none; }
.ripple { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid var(--accent); animation: rip .6s ease-out forwards; }
@keyframes rip { to { transform: scale(9); opacity: 0; } }
.tap-clock.live { color: var(--accent); }

/* ── readiness (live) ─────────────────────────────── */
.ctl.live { pointer-events: auto; }
.lane-pick { margin-top: 24px; display: grid; gap: 10px; }
.lane-pick .switch { margin-top: 0; justify-self: start; }

/* ── horizontal services ──────────────────────────── */
.hscroll { padding: 0; }
.hs-pin { padding: clamp(48px, 6vw, 72px) 0; }
.hs-head h2 { font-size: clamp(40px, 5vw, 72px); }
.hs-track { display: flex; gap: 16px; padding: 30px var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-track .svc { position: relative; flex: 0 0 min(340px, 80vw); min-height: 380px; scroll-snap-align: start; padding: 26px 24px 22px; border-radius: 24px; overflow: hidden; }
.hs-track .svc h3 { font-size: 48px; }
.hs-track .svc p { font-size: 15px; }
.hs-track .big-n { position: absolute; right: -6px; bottom: -22px; font: 800 150px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), .25); transform: skewX(-6deg); pointer-events: none; }
.hs-track .svc.end { display: flex; flex-direction: column; justify-content: center; gap: 22px; background: transparent; border-style: dashed; box-shadow: none; }
.hs-track .svc.end .display { font-size: 72px; line-height: .9; }
.hs-track .svc.end .btn { align-self: flex-start; }
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .hscroll.armed { height: var(--hs-h, 300vh); }
  .hscroll.armed .hs-pin { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .hscroll.armed .hs-track { overflow: visible; scroll-snap-type: none; will-change: transform; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
}

/* ── leaders ──────────────────────────────────────── */
.flow { counter-reset: f; list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.flow li { counter-increment: f; position: relative; padding: 16px 18px 16px 64px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: inset 0 1px 0 var(--border2); color: var(--body); font-size: 15px; }
.flow li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 18px; top: 14px; font: 800 28px/1 var(--display); color: var(--accent); }
.flow b { color: var(--text); }
.roster-filter { margin-top: 14px; }
.roster-rows li { transition: opacity .3s, transform .3s, max-height .35s, padding .35s; max-height: 60px; overflow: hidden; }
.roster-rows li.hide { opacity: 0; transform: translateX(16px); max-height: 0; padding-block: 0; border-top-width: 0; }

/* ── math (live) ──────────────────────────────────── */
.drag { display: grid; gap: 4px; font: 600 14px var(--sans); color: var(--body); }
.drag output { font: 700 28px/1 var(--display); color: var(--accent); }

/* ── privacy, lit by scroll ───────────────────────── */
.band.lit { padding: clamp(80px, 12vw, 160px) 0; }
.litline { font-size: clamp(44px, 7vw, 108px); line-height: .92; max-width: 15ch; }
.litline .w { color: var(--surface3); transition: color .25s; transform: skewX(-6deg); display: inline-block; margin-right: .18em; }
.litline .w.on { color: var(--text); }
.litline .w.on.hot { color: var(--accent); }

.mega2 { font-size: clamp(52px, 8vw, 120px); line-height: .88; }
.signup .access { margin-left: auto; margin-right: auto; }

/* ── tilt ─────────────────────────────────────────── */
.tilt { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.tilt.tilting { transition: transform .08s linear; }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--tx, 50%) var(--ty, 50%), rgba(243,239,230,.07), transparent 60%); }
.tilt.tilting::after { opacity: 1; }
.calc.tilt, .tap.tilt, .tool.tilt, .svc.tilt { position: relative; }
.mag { will-change: transform; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }

/* ── responsive ───────────────────────────────────── */
@media (max-width: 980px) {
  .xhero-row, .story-grid, .sv-body { grid-template-columns: 1fr; }
  .scrollcue { display: none; }
  .story { height: 300vh; }
  .story-grid { gap: 28px; }
  .beats { font-size: clamp(40px, 9vw, 64px); }
  .beat-sub { margin-top: 14px; font-size: 16px; }
  .sv-controls { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 680px) {
  .mega { font-size: clamp(54px, 16vw, 84px); }
  .hero-num { font-size: 70vw; bottom: 4vh; right: -8vw; }
  .story-pin { top: 60px; height: calc(100vh - 60px); }
  .story-card { padding: 18px 18px 14px; }
  .ring.big { width: 96px; height: 96px; }
  .ring.big b { font-size: 40px; }
  .stamp { font-size: 44px; bottom: 50px; }
  .sv-who { grid-template-columns: 1fr; }
  .sv-controls { padding: 18px 16px; }
  .sv-result { padding: 24px 16px; order: -1; border-bottom: 1px solid var(--border); }
  .sv-body { display: flex; flex-direction: column; }
  .sv-ring { width: 200px; }
  .sv-total b { font-size: 64px; }
  .scorer .calc-note { padding: 12px 16px 14px; }
  .flow li { padding-left: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .in-up, .chars .ch { animation: none; opacity: 1; transform: none; }
  .story { height: auto; }
  .story-pin { position: static; height: auto; padding: 64px 0; }
  .beat { position: static; opacity: 1; transform: none; margin-bottom: 18px; }
  .beat:not([data-beat="2"]) { display: none; }
  .story-card .rows li { opacity: 1; transform: none; }
  .scrollcue i, .ticker-track { animation: none; }
  .spot { display: none; }
}

/* ── 3D world mode (body.webgl, set once the scene is running) ── */
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.webgl #world { opacity: 1; }
.scrim { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s;
  background: linear-gradient(90deg, rgba(14,13,11,.78) 0%, rgba(14,13,11,.45) 38%, rgba(14,13,11,0) 62%),
              linear-gradient(0deg, rgba(14,13,11,.55) 0%, rgba(14,13,11,0) 30%),
              radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%); }
.webgl .scrim { opacity: 1; }
.webgl .hero-num, .webgl .grain { display: none; }
.webgl .glow { display: none; }
.webgl .display { text-shadow: 0 2px 40px rgba(0,0,0,.55); }
.webgl .lede, .webgl .label { text-shadow: 0 1px 18px rgba(0,0,0,.7); }
.webgl .ticker { background: rgba(14,13,11,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.webgl .scorer, .webgl .calc, .webgl .tap, .webgl .tool, .webgl .svc, .webgl .flow li, .webgl .story-card {
  background: rgba(26,24,21,.95); }
.webgl .sv-tabs { background: rgba(14,13,11,.7); }
/* No backdrop blur over the 3D canvas: it redraws every frame, so the browser would re-blur every card every frame. */
.webgl header.top, .webgl .bar { background: rgba(14,13,11,.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
.webgl .faqs { background: rgba(14,13,11,.86); border-radius: 22px; padding: 6px 24px; border: 1px solid var(--border); }
.webgl .hs-track .svc.end { background: rgba(14,13,11,.4); }
.webgl .band.lit { background: transparent; }
.webgl header.top { background: rgba(14,13,11,.55); }
/* Desktop: the physical ring carries the big number, so the story card drops its flat ring and sits low right. */
@media (min-width: 981px) {
  .webgl .story-card .ring.big { display: none; }
  .webgl .story-grid { align-items: end; height: 100%; padding-bottom: 6vh; }
  .webgl .story-copy { align-self: center; }
  .webgl .story-card { max-width: 440px; justify-self: end; }
  .webgl .stamp { bottom: 40px; }
}

/* ── Test-day forecast ── */
.fc .calc-head { align-items: center; }
.fc-big { display: flex; align-items: baseline; gap: 4px; min-width: 132px; }
.fc-big b { font: 800 64px/1 var(--display); color: var(--text); letter-spacing: -.01em; }
.fc-big span { font: 700 18px var(--display); color: var(--muted); }
.verdict.pass { color: var(--positive); }
.verdict.fail { color: var(--danger); }
.fc-chart { display: block; width: 100%; height: auto; margin: 14px 0 6px; overflow: visible; }
.fc-chart .fc-grid { stroke: var(--border2); stroke-dasharray: 3 5; }
.fc-chart .fc-pass { stroke: var(--positive); stroke-width: 1.5; stroke-dasharray: 6 5; }
.fc-chart .fc-now, .fc-chart .fc-test { stroke: var(--border2); }
.fc-chart .fc-test { stroke: var(--mil); stroke-width: 1.5; }
.fc-chart .fc-band { fill: rgba(var(--mil-rgb), .12); }
.fc-chart .fc-past { fill: none; stroke: var(--body); stroke-width: 2.5; stroke-linejoin: round; }
.fc-chart .fc-proj { fill: none; stroke: var(--mil); stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linejoin: round; }
.fc-chart .fc-dot { fill: var(--ink); stroke: var(--body); stroke-width: 2; }
.fc-chart .fc-end { fill: var(--mil); stroke: var(--ink); stroke-width: 3; }
.fc-chart .fc-end.bad { fill: var(--danger); }
.fc-chart .fc-lab { fill: var(--muted); font: 700 13px var(--sans); letter-spacing: .04em; }
.fc-chart .fc-lab.pass { fill: var(--positive); }
.fc-chart .fc-lab.test { fill: var(--mil); }
.fc .rows li.tot { border-top-color: var(--border2); }
.fc .rows li.tot span { color: var(--text); }
.fc .rows li.tot .num { color: var(--mil); }

/* ── Mock test ── */
.mock-clock { font: 800 44px/1 var(--display); color: var(--text); min-width: 4ch; text-align: right; }
.mock-rows { counter-reset: st; }
.mock-rows li { position: relative; padding: 9px 0 9px 34px; transition: background .25s; }
.mock-rows li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border2); display: grid; place-items: center; font: 800 13px var(--display); color: var(--muted); transition: background .25s, color .25s, border-color .25s; }
.mock-rows li.on::before { background: var(--mil); border-color: var(--mil); color: var(--ink); box-shadow: 0 0 0 6px rgba(var(--mil-rgb), .18); }
.mock-rows li.done::before { content: '✓'; color: var(--positive); border-color: var(--positive); }
.mock-rows li.on span { color: var(--text); }
.mock-rows li .num { font-size: 17px; white-space: nowrap; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--border); }
.mock-total { font: 600 15px var(--sans); color: var(--positive); }
.mock-total b { font: 800 28px/1 var(--display); color: var(--text); }

/* ── Plan check ── */
.plan-bars { display: flex; gap: 10px; height: 210px; margin: 16px 0 6px; padding: 0 2px; touch-action: none; user-select: none; }
.pb { flex: 1; display: flex; flex-direction: column; align-items: center; cursor: ns-resize; }
.pb b { font: 800 17px/1 var(--display); color: var(--body); height: 22px; }
.pb i { position: relative; flex: none; width: 100%; max-width: 54px; margin-top: auto; border-radius: 8px 8px 3px 3px; background: linear-gradient(var(--surface3), var(--surface2)); border: 1px solid var(--border2); transition: height .18s, border-color .2s, background .2s; }
.pb i em { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0 0 2px 2px; background: rgba(var(--mil-rgb), .55); }
.pb span { font: 700 12px var(--sans); color: var(--muted); height: 22px; padding-top: 6px; letter-spacing: .04em; }
.pb.bad i { border-color: var(--danger); background: linear-gradient(rgba(226,61,92,.35), rgba(226,61,92,.12)); }
.pb.bad b { color: var(--danger); }
.pb:hover i { border-color: var(--body); }
.plan-finds li { display: block; padding: 8px 0 8px 18px; position: relative; font-weight: 500; line-height: 1.4; }
.plan-finds li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.plan-finds li.ok::before { background: var(--positive); }
.plan-finds li span { color: var(--body); }
@media (max-width: 560px) { .plan-bars { height: 170px; gap: 6px; } .fc-big b { font-size: 52px; } .mock-clock { font-size: 34px; } }

/* ══ Cinematic build: start inside the app, fly out, come back in ══ */
/* hero */
.xhero-pin { position: relative; padding: 40px 0 64px; overflow: hidden; }
.xhero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.xhero-phone { justify-self: center; perspective: 1400px; }
.hero-cap { position: absolute; left: 50%; bottom: 13vh; width: min(34em, 88vw); margin: 0; transform: translate3d(-50%, 0, 0); text-align: center; opacity: 0; pointer-events: none;
  font: 600 clamp(17px, 1.7vw, 22px)/1.4 var(--sans); color: var(--text); text-shadow: 0 2px 24px rgba(0,0,0,.85); }
.webgl .xhero { height: 320vh; margin-top: -68px; }
.webgl .xhero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 68px 0 0; display: flex; align-items: center; }
.webgl .xhero-pin > .wrap { position: relative; z-index: 2; }

/* the app's Home screen in HTML */
.ph { position: relative; width: clamp(240px, 23vw, 320px); aspect-ratio: 9 / 18.6; border-radius: 13% / 6.4%; transform: rotateY(-16deg) rotateX(5deg); transform-style: preserve-3d; font-family: var(--sans); }
.ph::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #0E0D0B; border: 2px solid #3A352E; box-shadow: 0 0 0 6px #17140f, 0 60px 140px rgba(0,0,0,.7), 0 0 120px rgba(var(--accent-rgb), .16); opacity: var(--glass, 1); }
.ph-scr { position: relative; height: 100%; padding: 7% 6.5% 0; display: flex; flex-direction: column; gap: 3.2%; overflow: hidden; border-radius: inherit; }
.ph-ui, .ph-bar { opacity: var(--ui, 1); }
.ph-bar { display: flex; justify-content: space-between; font: 700 11px var(--sans); color: var(--muted); letter-spacing: .02em; }
.ph-hi { margin: 2% 0 0; font: 800 30px/1 var(--display); color: var(--text); }
.ph-card { position: relative; border-radius: 18px; padding: 14px; background: rgba(26,24,21,var(--ui, 1)); box-shadow: inset 0 1px 0 rgba(58,53,46,var(--ui, 1)); }
.ph small { display: block; font: 800 9px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ph strong { display: block; font: 700 16px/1.25 var(--sans); color: var(--text); margin-top: 3px; }
.ph em { display: block; font: 500 11.5px/1.35 var(--sans); font-style: normal; color: var(--muted); margin-top: 4px; }
.ph-pt { display: flex; align-items: center; gap: 14px; }
.ph-ring { position: relative; flex: none; width: 37%; aspect-ratio: 1; opacity: var(--ringo, 1); }
.ph-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke-width: 9; }
.ph-ring .track { stroke: #2A2621; }
.ph-ring .arc { stroke: var(--accent); stroke-linecap: round; }
.ph-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 36px/1 var(--display); color: var(--text); opacity: var(--ui, 1); }
.ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-tiles div { border-radius: 14px; padding: 10px 10px 8px; background: #1A1815; box-shadow: inset 0 1px 0 #3A352E; }
.ph-tiles b { display: block; font: 800 26px/1 var(--display); color: var(--text); margin-top: 6px; }
.ph-tiles div:first-child b { color: var(--positive); }
.ph-today span, .ph-next span { display: block; font: 500 11.5px/1.35 var(--sans); color: var(--body); margin-top: 3px; }
.ph-today i { display: block; margin-top: 10px; padding: 9px; border-radius: 11px; text-align: center; font: 800 13px var(--sans); font-style: normal; color: var(--on-accent); background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }

/* doorway flash and letterbox bars */
.flash { position: fixed; inset: 0; z-index: 15; background: #0E0D0B; opacity: 0; pointer-events: none; }
.bars { display: none; }
.webgl .bars { display: block; }
.bars i { position: fixed; left: 0; right: 0; height: 7vh; z-index: 16; background: #050504; pointer-events: none; transform: scaleY(var(--lb, 0)); }
.bars i:first-child { top: 0; transform-origin: top; }
.bars i:last-child { bottom: 0; transform-origin: bottom; }

/* flights between chapters */
.fly { display: none; }
.webgl .fly { display: block; position: relative; height: 150vh; }
.fly-cap { position: sticky; top: 34vh; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; pointer-events: none; text-align: center; }
.fly-cap b { font: 800 clamp(120px, 22vw, 280px)/.82 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(var(--accent-rgb), .8); transform: skewX(-6deg); }
.fly-cap span { font: 800 clamp(22px, 3vw, 40px)/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); text-shadow: 0 2px 30px rgba(0,0,0,.8); }

/* chapters hold the screen while the camera rests */
.webgl main > section:not(.xhero):not(.story):not(.hscroll) { min-height: 112vh; display: flex; align-items: center; }
.webgl main > section > .wrap { width: 100%; }

/* back inside the phone */
.inphone { display: none; }
.webgl .inphone { display: flex; position: fixed; inset: 0; z-index: -1; opacity: 0; visibility: hidden; pointer-events: none; align-items: center; justify-content: flex-end;
  padding-right: max(7vw, calc((100vw - var(--wrap)) / 2 + 40px));
  background: radial-gradient(ellipse 50% 60% at 74% 50%, rgba(var(--accent-rgb), .16), transparent 70%), #0E0D0B; }
.inphone .ph { width: min(340px, 27vw); transform: scale(var(--zoom, 1)); }
.webgl #privacy { z-index: 1; isolation: isolate; min-height: 150vh; }
.webgl .privacy-grid > div { max-width: min(100%, 760px); }
.webgl .litline { font-size: clamp(40px, 5.4vw, 88px); }
@media (min-width: 981px) { .webgl .privacy-grid > div { max-width: 58%; } }

@media (max-width: 980px) {
  .xhero-grid { grid-template-columns: 1fr; gap: 22px; }
  .webgl .xhero-pin { align-items: flex-start; padding-top: 84px; }
  .ph { width: min(250px, 62vw); }
  .webgl .fly { height: 120vh; }
  .webgl .inphone { align-items: flex-end; justify-content: center; padding: 0; background: radial-gradient(ellipse 80% 40% at 50% 80%, rgba(var(--accent-rgb), .16), transparent 70%), #0E0D0B; }
  .inphone .ph { width: min(300px, 72vw); margin-bottom: -34vh; transform-origin: 50% 20%; }
  .webgl #privacy { align-items: flex-start !important; padding-top: 16vh; }
}
@media (max-width: 680px) {
  .webgl .xhero .stores, .webgl .xhero .help { display: none; }
  .webgl .xhero .lede { font-size: 15.5px; }
  .webgl .xhero .mega { margin: 14px 0 14px; }
  .webgl .xhero .access { margin-top: 14px; }
  .hero-cap { bottom: 16vh; }
}

.xhero .mega { font-size: clamp(52px, 6.6vw, 112px); margin: 20px 0 22px; }
@media (max-width: 680px) { .xhero .mega { font-size: clamp(46px, 13.5vw, 64px); } }

/* chapter cards sit low and to the left, like a film title */
.fly-cap { top: auto; position: sticky; top: 62vh; flex-direction: row; align-items: flex-end; gap: 18px; text-align: left; padding: 0 var(--gutter); max-width: var(--wrap); margin: 0 auto; }
.fly-cap b { font-size: clamp(84px, 11vw, 168px); line-height: .8; -webkit-text-stroke: 2px var(--accent); }
.fly-cap span { font-size: clamp(20px, 2.4vw, 34px); padding-bottom: .35em; }
