/* Bay Balance · baybalance.ai
   One dark theme. Every colour is a token here; nothing below this block writes a hex value
   except the gradients that are themselves made of these tokens' values. */
:root {
  --bg: #030405;
  --bg-2: #07090c;
  --ink: #eef3f6;
  --ink-2: #c8d1d9;
  --mute: #8b97a3;
  --dim: #56616c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --cyan-3: #a5f3fc;
  --cyan-wash: rgba(34, 211, 238, .12);
  --heat: #ff6a1c;
  --heat-2: #ff9a3d;
  --amber: #ffb020;
  --ok: var(--cyan);
  --warn: var(--amber);
  --bad: var(--heat);
  --glass: linear-gradient(180deg, rgba(22, 28, 34, .62), rgba(9, 12, 15, .5));
  --glass-line: rgba(255, 255, 255, .1);
  --metal: linear-gradient(180deg, #ffffff 0%, #dfe5ea 42%, #9aa5af 100%);
  --cyan-grad: linear-gradient(100deg, #a5f3fc 0%, #22d3ee 55%, #0ea5c6 100%);
  --cyan-v: linear-gradient(180deg, #cffafe 0%, #4fe3f5 45%, #0ea5c6 100%);
  --heat-grad: linear-gradient(100deg, #ffd29a 0%, #ff8a2a 45%, #ff4d12 100%);

  --f-display: "Archivo", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 96px);
  --maxw: 1440px;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: #021014; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
/* small labels are set in the body face, in sentence case. Monospace capitals with wide tracking
   were the house style here, and they are the most template-looking thing a page can wear */
.meta { font-size: 13px; color: var(--mute); }
.num { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ───────────────────────── stage layers ───────────────────────── */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; transition: opacity .2s linear; }
.gl-fallback { display: none; }
.no-webgl #gl { display: none; }
.no-webgl .gl-fallback { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.css-rotor { position: absolute; right: 8vw; top: 50%; width: min(62vh, 44vw); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 22%, #1a1e23 22.5% 37%, transparent 37.5%),
    repeating-radial-gradient(circle, #9aa3ad 0 1px, #c9d0d7 1px 3px),
    #9aa3ad;
  -webkit-mask: radial-gradient(circle, transparent 0 9%, #000 9.5%); mask: radial-gradient(circle, transparent 0 9%, #000 9.5%);
  box-shadow: 0 0 120px rgba(34, 211, 238, .25); opacity: .55; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 55% 45%, transparent 45%, rgba(3, 4, 5, .78) 100%); }
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
main, .foot { position: relative; z-index: 2; }
/* decorative glows hang past the edges; on phones that would widen the layout viewport.
   clip (not hidden) on main, because hidden would make it a scroller and kill the sticky stages */
main { overflow-x: clip; }
.block { overflow: hidden; }

/* ───────────────────────── loader ───────────────────────── */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg); transition: opacity .9s var(--ease), visibility .9s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-core { display: grid; justify-items: center; gap: 22px; }
.loader-rotor { width: 96px; height: 96px; animation: lspin 1.6s linear infinite; }
.lr-ring { fill: none; stroke: var(--line-2); stroke-width: 2; }
.lr-in { stroke: rgba(255, 255, 255, .22); }
.lr-arc { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset .3s; filter: drop-shadow(0 0 6px var(--cyan)); }
.lr-holes circle { fill: rgba(255, 255, 255, .35); }
@keyframes lspin { to { transform: rotate(360deg); } }
.loader-word { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; letter-spacing: .32em; font-size: 15px; padding-left: .32em; }
.loader-meta { display: flex; gap: 26px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.loader-meta b { color: var(--ink); font-weight: 500; }

/* ───────────────────────── nav ───────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter);
  transition: transform .5s var(--ease), background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(3, 4, 5, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; letter-spacing: .2em; font-size: 13px; white-space: nowrap; }
.nav-logo .mark { width: 28px; height: 28px; color: var(--ink); }
.nav-logo b, .loader-word b { color: var(--cyan); font-weight: inherit; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--cyan); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 14px; color: var(--ink-2); }
.nav-login:hover { color: var(--ink); }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-burger span:first-child { top: 15px; } .nav-burger span:last-child { top: 23px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-sheet { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 90px var(--gutter) 40px; background: rgba(3, 4, 5, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.nav-sheet.is-open { opacity: 1; visibility: visible; }
.nav-sheet a:not(.btn) { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 34px; letter-spacing: -.02em; padding: 6px 0; }
.nav-sheet .btn { margin-top: 24px; align-self: flex-start; }

/* ───────────────────────── buttons ───────────────────────── */
.btn { --bx: 0px; --by: 0px; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; cursor: pointer; border: 0; white-space: nowrap;
  transform: translate(var(--bx), var(--by)); transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s, color .3s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { color: #021216; background: var(--cyan-grad); box-shadow: 0 0 0 1px rgba(165, 243, 252, .4) inset, 0 10px 40px -10px rgba(34, 211, 238, .7); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(165, 243, 252, .6) inset, 0 14px 60px -8px rgba(34, 211, 238, .95); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--line-2) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ───────────────────────── type ───────────────────────── */
.eyebrow { margin: 0 0 18px; font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; color: var(--cyan-2); }
.eyebrow.heat { color: var(--heat-2); }
.h2 { margin: 0; font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: clamp(36px, 4.5vw, 74px); line-height: 1.02; letter-spacing: -.035em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 span { display: inline; }
.cyan-text { background: var(--cyan-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heat-text { background: var(--heat-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 26px 0 0; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.lead.small { font-size: clamp(15px, 1.05vw, 17px); color: var(--mute); }
.fineprint { margin: 20px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--dim); max-width: 46em; }
.fineprint a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
/* the email sits in the final paragraph, above the form: under it, it landed on the rotor rising below */
.final .lead a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.fineprint.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ───────────────────────── pinned chapters ───────────────────────── */
.pin { position: relative; height: var(--h, 300vh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
#top { --h: 190vh; }
#statement { --h: 240vh; }
#leak { --h: 360vh; }
#how { --h: 460vh; }
#night { --h: 360vh; }

/* things that appear at a point in a chapter's scroll (data-on) */
[data-on] { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(8px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); }
[data-on].is-on { opacity: 1; transform: none; filter: none; }
.reduce [data-on], .reduce .reveal { transition-duration: .01s !important; }

/* HERO */
.hero .stage { align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, rgba(3, 4, 5, .72) 0%, rgba(3, 4, 5, .25) 38%, transparent 60%); }
.hero-inner { padding-top: calc(var(--nav-h) * .6); }
.hero-title { margin: 0; font-family: var(--f-display); font-stretch: 106%; font-weight: 800; font-size: clamp(54px, 6.7vw, 124px); line-height: .94; letter-spacing: -.045em; max-width: 9.5em; }
.hero-title .line { display: block; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.hero-title em { font-style: normal; background: var(--cyan-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* once split, each glyph carries the gradient itself: a parent's text clip does not reach
   transformed children, which is what left a stray swatch at the start of each line */
.hero-title.split-ready .line, .hero-title.split-ready em { background: none; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title.split-ready .char { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title.split-ready em .char { background: var(--cyan-v); -webkit-background-clip: text; background-clip: text; }
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; }
.hero-sub { margin: 30px 0 0; max-width: 31em; font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-2); line-height: 1.5; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vh, 56px); display: flex; gap: 0; }
.hero-stats > div { display: flex; flex-direction: column; gap: 6px; padding: 0 clamp(18px, 2.4vw, 40px); border-left: 1px solid var(--line-2); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats b { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: clamp(24px, 2.2vw, 36px); letter-spacing: -.03em; }
.hero-stats span { font-size: 13px; color: var(--mute); line-height: 1.4; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(28px, 5vh, 56px); display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mute); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 12px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px #fff; animation: drip 1.8s infinite var(--ease); }
@keyframes drip { from { top: -12px; } to { top: 44px; } }
.hero-fade { will-change: opacity, transform; }

/* STATEMENT */
.statement .stage { justify-content: center; text-align: center; }
.statement-text { margin: 0 auto; max-width: 15em; font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: clamp(36px, 5.4vw, 92px); line-height: 1.04; letter-spacing: -.04em; color: var(--ink); }
.statement-text .w { display: inline-block; opacity: .12; transition: opacity .25s linear, color .25s; }
.statement-text .w.on { opacity: 1; }
.statement-text .w.hot { color: var(--heat-2); }

/* CHAPTERS */
.chapter .stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 4, 5, .9) 0%, rgba(3, 4, 5, .55) 34%, transparent 58%); }
.ch-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, min(560px, 44vw)); }
.ch-copy { padding-top: calc(var(--nav-h) * .5); }
.counter { margin-top: 36px; }
.counter-val { display: block; font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: clamp(64px, min(9.5vw, 17vh), 150px); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; filter: drop-shadow(0 0 40px rgba(255, 106, 28, .35)); }
.counter p { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }
.counter strong { color: var(--ink); }
.leaks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.leaks li { display: flex; gap: 14px; align-items: baseline; font-size: 16px; color: var(--ink-2); transform: translate3d(-24px, 0, 0); }
.leaks li.is-on { transform: none; }
.leaks li i { flex: none; width: 18px; height: 1px; background: var(--heat); transform: translateY(-4px); box-shadow: 0 0 10px var(--heat); }
.leaks b { color: var(--ink); font-weight: 600; }

/* recon readout */
.readout { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(24px, 5vh, 52px); padding: 16px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.readout-head { font-size: 13px; color: var(--mute); }
.readout-cells { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 34px; margin-top: 12px; }
.readout-cells div { display: flex; flex-direction: column; gap: 2px; }
.readout-cells b { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.readout-cells span { font-size: 12px; color: var(--mute); }
.readout-cells .warn b { color: var(--amber); }
.readout-cells .bad b { color: var(--heat-2); }

/* invoice-line tags on the exploded rotor */
.tags { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.tag-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tag-lines line { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.tag-lines circle { fill: var(--ink); }
.tag-lines .ok { stroke: rgba(34, 211, 238, .7); } .tag-lines circle.ok { fill: var(--cyan); }
.tag-lines .warn { stroke: rgba(255, 176, 32, .7); } .tag-lines circle.warn, .tag-lines circle.wait { fill: var(--amber); }
.tag-lines .wait { stroke: rgba(255, 176, 32, .55); }
.tag-lines .bad { stroke: rgba(255, 106, 28, .8); } .tag-lines circle.bad { fill: var(--heat); }
.tag { position: absolute; left: 0; top: 0; width: 214px; padding: 11px 13px 12px; border-radius: 14px; background: rgba(8, 11, 14, .66); border: 1px solid var(--glass-line); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); will-change: transform; transition: border-color .4s, box-shadow .4s; }
.tag-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
.tag-top span:last-child { color: var(--ink); }
.tag b { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; line-height: 1.25; }
/* both states share one grid cell, so the tag is as tall as the longer of the two: a two-line
   verdict grows the tag instead of hanging out of its bottom edge */
.tag-state { display: grid; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.35; }
.tag-state span { grid-area: 1 / 1; display: block; transition: opacity .35s, transform .35s var(--ease); }
.s-read { color: var(--dim); background: linear-gradient(90deg, var(--dim) 0%, var(--ink-2) 50%, var(--dim) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.s-done { position: relative; opacity: 0; transform: translateY(6px); font-weight: 500; }
.tag.is-done .s-read { opacity: 0; transform: translateY(-6px); }
.tag.is-done .s-done { opacity: 1; transform: none; }
.tag[data-verdict="ok"].is-done { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 30px -8px rgba(34, 211, 238, .5), 0 20px 50px -20px rgba(0, 0, 0, .9); }
.tag[data-verdict="ok"] .s-done { color: var(--cyan-2); }
.tag[data-verdict="warn"].is-done, .tag[data-verdict="wait"].is-done { border-color: rgba(255, 176, 32, .45); }
.tag[data-verdict="warn"] .s-done, .tag[data-verdict="wait"] .s-done { color: #ffd28a; }
.tag[data-verdict="bad"].is-done { border-color: rgba(255, 106, 28, .6); box-shadow: 0 0 34px -8px rgba(255, 106, 28, .55), 0 20px 50px -20px rgba(0, 0, 0, .9); }
.tag[data-verdict="bad"] .s-done { color: #ffb38a; }

/* overnight */
.clock { display: flex; align-items: baseline; gap: 12px; margin-top: 30px; font-family: var(--f-display); }
.clock-time { font-size: clamp(54px, 6vw, 96px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: 0 0 40px rgba(34, 211, 238, .35); }
.clock-ampm { font-size: 18px; color: var(--cyan-2); letter-spacing: .1em; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; opacity: .22; filter: none; transform: none; transition: opacity .6s var(--ease); }
.steps li.is-on { opacity: 1; }
.steps .t { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--mute); padding-top: 2px; }
.steps li.is-on .t { color: var(--cyan-2); }
.steps b { font-size: 17px; font-weight: 600; }
.steps p { margin: 4px 0 0; font-size: 14.5px; color: var(--mute); line-height: 1.45; }
.inbox { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(24px, 5vh, 52px); width: min(420px, 86vw); padding: 16px 18px 8px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.inbox-head { display: flex; justify-content: space-between; align-items: center; color: var(--mute); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.inbox-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row b { font-size: 14.5px; font-weight: 600; }
.inbox-row span { grid-column: 1; font-size: 12.5px; color: var(--mute); }
.inbox-row em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 600; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* a status is a word in a colour; it is not wrapped in a pill */
.chip { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.chip.warn { color: #ffd28a; }
.chip.live { color: var(--cyan-2); }

/* ───────────────────────── normal blocks ───────────────────────── */
.block { position: relative; padding: clamp(110px, 16vh, 190px) 0; }
.block-head { max-width: 860px; margin-bottom: clamp(44px, 6vh, 72px); }
.reveal { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 26px; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 100px -40px rgba(0, 0, 0, .95); }

/* vendors marquee */
.vendors { position: relative; padding: 70px 0 30px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(3, 4, 5, .4), rgba(3, 4, 5, .85)); }
.vendors-label { text-align: center; color: var(--mute); margin: 0 auto 26px; padding: 0 var(--gutter); }
.marquee { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marq 38s linear infinite; padding-bottom: 40px; }
.marquee-track span { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: clamp(34px, 4.6vw, 70px); letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); }
.marquee-track span.hl { -webkit-text-stroke: 1px rgba(34, 211, 238, .8); }
.marquee-track i { width: 1px; height: clamp(26px, 3.4vw, 50px); background: rgba(255, 255, 255, .22); transform: skewX(-20deg); flex: none; }
@keyframes marq { to { transform: translateX(-50%); } }

/* finds: the cards stand on a lit bay floor */
.finds { background: linear-gradient(180deg, rgba(3, 4, 5, .85), var(--bg) 30%); overflow: hidden; }
.finds::before { content: ""; position: absolute; left: -30%; right: -30%; bottom: -10%; height: 70%; pointer-events: none;
  background-image: linear-gradient(rgba(34, 211, 238, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .16) 1px, transparent 1px);
  background-size: 80px 80px; transform: perspective(700px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%); mask: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%);
  animation: floor 9s linear infinite; }
@keyframes floor { to { background-position: 0 80px, 0 0; } }
.finds::after { content: ""; position: absolute; left: 50%; bottom: 8%; width: 1100px; height: 500px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(34, 211, 238, .14), transparent 65%); }
.finds .wrap { z-index: 1; }
.owed::before, .kate::before, .margins::before, .platform::before, .pricing::before { content: ""; position: absolute; pointer-events: none; width: 900px; height: 900px; border-radius: 50%; filter: blur(10px);
  background: radial-gradient(circle, rgba(34, 211, 238, .10), transparent 62%); }
.owed::before { right: -200px; top: 0; }
.kate::before { left: -160px; top: 0; background: radial-gradient(circle, rgba(56, 132, 255, .12), rgba(34, 211, 238, .06) 35%, transparent 62%); }
.margins::before { right: -220px; top: 10%; background: radial-gradient(circle, rgba(255, 106, 28, .08), transparent 60%); }
.platform::before { left: 50%; top: 20%; transform: translateX(-50%); width: 1200px; }
.pricing::before { left: -300px; top: -100px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; min-height: 0; padding: 26px 24px 28px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform: translate3d(0, 70px, -120px) rotateX(-28deg); transform-style: preserve-3d; transform-origin: 50% 100%;
  transition: transform 1.2s var(--ease), border-color .4s, background .4s, opacity 1s var(--ease);
  opacity: 0; }
.card.is-in { opacity: 1; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.card.is-in:hover { transition: transform .5s var(--ease), border-color .4s, background .4s; }
.card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, var(--glow, rgba(255, 106, 28, .22)), transparent 65%); }
.card.warn { --glow: rgba(255, 176, 32, .18); } .card.ok { --glow: rgba(34, 211, 238, .25); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .08), transparent 45%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); }
.card h3 { margin: 0; font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: 22px; line-height: 1.12; letter-spacing: -.02em; }
.card p { margin: 10px 0 0; color: var(--mute); font-size: 15px; line-height: 1.45; }

/* split blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.split.reverse .split-copy { order: 2; }
.panel { padding: 22px 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--mute); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.owe { padding: 16px 0; border-bottom: 1px solid var(--line); }
.owe-top { display: flex; justify-content: space-between; gap: 12px; }
.owe-top b { font-size: 15px; font-weight: 600; }
.owe-top em { font-style: normal; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.owe-bar { height: 4px; margin: 11px 0 9px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.owe-bar i { display: block; height: 100%; width: calc(var(--used) * 100%); border-radius: 4px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.panel.is-in .owe-bar i { transform: scaleX(1); }
.owe[style*=".87"] .owe-bar i { background: var(--heat); box-shadow: 0 0 12px var(--heat); }
.owe-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--mute); }
.owe-meta .warn { color: #ffc56a; }
.recovered { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 18px; }
.recovered b { display: block; font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.recovered span { font-size: 12px; color: var(--mute); }
.recovered .ok b { color: var(--cyan-2); }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 9px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }

/* kate */
.kate-card { position: relative; padding: 34px 30px 30px; overflow: hidden; }
.orb { position: relative; width: 120px; height: 120px; margin: 0 auto; filter: blur(1px); }
.orb i { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: screen; animation: orb 7s ease-in-out infinite; }
.orb i:nth-child(1) { background: radial-gradient(circle at 35% 35%, var(--cyan-3), var(--cyan) 40%, transparent 70%); }
.orb i:nth-child(2) { background: radial-gradient(circle at 65% 40%, #7dd3fc, #2563eb 45%, transparent 72%); animation-duration: 9s; animation-direction: reverse; }
.orb i:nth-child(3) { background: radial-gradient(circle at 50% 70%, #5eead4, #0d9488 40%, transparent 70%); animation-duration: 11s; }
.orb::after { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 65%); z-index: -1; animation: breathe 3.2s ease-in-out infinite; }
@keyframes orb { 0%, 100% { transform: translate(0, 0) scale(1); border-radius: 50%; } 33% { transform: translate(6px, -4px) scale(1.06); border-radius: 46% 54% 52% 48%; } 66% { transform: translate(-5px, 5px) scale(.96); border-radius: 54% 46% 48% 52%; } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.08); } }
.wave { display: flex; justify-content: center; align-items: center; gap: 4px; height: 40px; margin: 22px 0 18px; }
.wave span { width: 3px; height: 30%; border-radius: 3px; background: var(--cyan-2); animation: wave 1.1s ease-in-out infinite; opacity: .8; }
.wave span:nth-child(3n) { animation-delay: -.3s; } .wave span:nth-child(3n+1) { animation-delay: -.6s; } .wave span:nth-child(4n) { animation-delay: -.15s; animation-duration: .9s; } .wave span:nth-child(5n) { animation-duration: 1.4s; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.chat { display: grid; gap: 10px; }
.chat p { margin: 0; max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45; opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.chat .me { justify-self: end; background: rgba(255, 255, 255, .08); border-bottom-right-radius: 5px; }
.chat .her { justify-self: start; background: var(--cyan-wash); border: 1px solid rgba(34, 211, 238, .25); border-bottom-left-radius: 5px; color: #dffaff; }
.kate-card.is-in .chat p { opacity: 1; transform: none; }
.kate-card.is-in .chat p:nth-child(2) { transition-delay: .9s; } .kate-card.is-in .chat p:nth-child(3) { transition-delay: 2.2s; } .kate-card.is-in .chat p:nth-child(4) { transition-delay: 3s; }

/* margins bars */
.bars { display: grid; gap: 16px; padding: 22px 0 6px; }
.bar { display: grid; grid-template-columns: 84px 1fr 56px; align-items: center; gap: 14px; font-size: 14px; }
.bar span { color: var(--ink-2); }
.bar b { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; text-align: right; }
.bar-track { position: relative; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.bar-track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) / .6 * 100%); border-radius: 6px; background: linear-gradient(90deg, #0e7490, var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
.bar.low .bar-track i { background: linear-gradient(90deg, #9a3412, var(--heat)); }
.bar-track .target { position: absolute; left: 80%; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--ink); opacity: .7; }
.panel.is-in .bar-track i { transform: scaleX(1); }
.panel-foot { display: flex; gap: 40px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel-foot b { display: block; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 30px; letter-spacing: -.03em; }
.panel-foot span { font-size: 12.5px; color: var(--mute); }

/* the math */
.math-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 100px); align-items: center; }
.calc { display: grid; gap: 30px; margin-top: 40px; max-width: 560px; }
.field { display: grid; gap: 14px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.field-top output { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 30px; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
input[type="range"] { --pct: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan) var(--pct), rgba(255, 255, 255, .12) var(--pct)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan) var(--pct), rgba(255, 255, 255, .12) var(--pct)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(34, 211, 238, .25), 0 0 24px rgba(34, 211, 238, .8); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(34, 211, 238, .25), 0 0 24px rgba(34, 211, 238, .8); }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.presets button { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.3; transition: border-color .3s, background .3s; }
.presets button small { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; color: var(--mute); }
.presets button.is-active { border-color: rgba(34, 211, 238, .6); background: var(--cyan-wash); }
.result { padding: 30px 30px 26px; }
.gauge { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
.gauge svg { width: 100%; overflow: visible; }
.g-track, .g-fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.g-track { stroke: rgba(255, 255, 255, .08); }
.g-fill { stroke: url(#gg); filter: drop-shadow(0 0 10px rgba(34, 211, 238, .7)); transition: stroke-dashoffset .8s var(--ease); }
.gauge-val { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.gauge-val b { display: block; font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: clamp(56px, 6vw, 84px); line-height: 1; letter-spacing: -.05em; background: var(--cyan-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.gauge-val span { font-size: 13px; color: var(--mute); }
.r-rows { margin-top: 26px; display: grid; }
.r-rows div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.r-rows b { font-weight: 600; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.r-net b { color: var(--cyan-2); font-size: 20px; }
.payback { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--cyan-wash); border: 1px solid rgba(34, 211, 238, .3); }
.payback span { color: var(--ink-2); }
.payback b { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 30px; letter-spacing: -.03em; color: var(--ink); }

/* platform */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.line-card { position: relative; padding: 30px 28px 32px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); overflow: hidden; }
.line-card.live { border-color: rgba(34, 211, 238, .35); background: linear-gradient(180deg, rgba(34, 211, 238, .08), rgba(34, 211, 238, .01)); box-shadow: 0 0 80px -30px rgba(34, 211, 238, .45); }
.line-card h3 { margin: 26px 0 0; font-family: var(--f-display); font-stretch: 122%; font-weight: 500; font-size: 18px; letter-spacing: .08em; }
.line-card h3 b { font-weight: 800; }
.line-card.live h3 b { color: var(--cyan-2); }
.line-card > p { margin: 8px 0 0; color: var(--mute); }
.line-card ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.line-card li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.line-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--mute); }
.line-card.live li::before { background: var(--cyan); }

/* pricing */
.price-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); padding: clamp(32px, 4.5vw, 64px); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; width: 640px; height: 640px; left: -200px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .2), transparent 65%); pointer-events: none; }
.price { display: flex; align-items: flex-start; gap: 10px; margin-top: 30px; }
.price .cur { font-family: var(--f-display); font-weight: 700; font-size: 34px; margin-top: 14px; color: var(--ink-2); }
.price b { font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: clamp(96px, 10vw, 150px); line-height: .85; letter-spacing: -.06em; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .per { align-self: flex-end; font-size: 14px; line-height: 1.35; color: var(--mute); padding-bottom: 8px; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: center; }
.price-list li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
.price-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 13px; height: 7px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(30px, 6vw, 100px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 400; font-size: 18px; color: var(--mute); transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; color: var(--mute); max-width: 40em; }

/* final */
/* the rotor rises into the empty lower half, inside its ring of light */
.final { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; padding: 130px 0 50vh; text-align: center; }
.final-inner { display: grid; justify-items: center; }
.final-title { margin: 0; font-family: var(--f-display); font-stretch: 120%; font-weight: 800; font-size: clamp(64px, min(11vw, 17vh), 200px); line-height: .88; letter-spacing: -.055em; }
.final-title .line { display: block; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.final-title em { font-style: normal; background: var(--cyan-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final .lead { margin-left: auto; margin-right: auto; text-align: center; }
.demo-form { display: flex; gap: 8px; margin-top: 40px; padding: 8px; border-radius: 16px; width: min(760px, 100%); }
.demo-form input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, .05); outline: none; transition: border-color .3s, background .3s; }
.demo-form input[name="stores"] { flex: 0 0 110px; }
.demo-form input:focus { border-color: rgba(34, 211, 238, .55); background: rgba(255, 255, 255, .08); }
.demo-form input::placeholder { color: var(--dim); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; background: var(--bg); }
.foot-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 60px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 28px; justify-content: flex-end; font-size: 14px; color: var(--mute); }
.foot nav a:hover { color: var(--ink); }
.foot .fineprint { grid-column: 1 / -1; margin-top: 8px; }

/* split headings by char (hero / final) */
.split-ready .char { display: inline-block; will-change: transform, opacity; }

/* ───────────────────────── responsive ─────────────────────────
   Two separate questions, and they are asked separately on purpose.

   1. How is the STAGE composed? That is a question of SHAPE, not width.
        WIDE  (min-aspect-ratio: 11/10) and (min-width: 640px)
              copy on the left, rotor on the right: laptops, desktops, iPads held sideways,
              and phones on their side.
        TALL  everything else: rotor above, copy below. Phones and tablets held upright.
      main.js asks the identical media query to choose the camera, so the 3D and the layout
      can never disagree. Width alone got both ends wrong: an iPad Pro held upright is 1024 wide
      and got the side-by-side layout with the rotor on top of the words, and a phone on its
      side got the stacked layout with no height to stack in.

   2. How much ROOM do the ordinary sections have? That one IS width: nav, card grids, splits. */

/* WIDE on a short screen (1280×720, 1366×768, iPads sideways): the chapters are sticky, so each
   one has to fit in a single screen */
@media (min-aspect-ratio: 11/10) and (min-width: 640px) and (max-height: 820px) {
  .hero-inner { margin-top: -6vh; }
  .hero-sub { font-size: 16px; margin-top: 20px; }
  .hero-ctas { margin-top: 24px; }
  .hero-stats { bottom: 22px; }
  .hero-stats b { font-size: 26px; }
  .hero-stats span { font-size: 12px; }
  .h2 { font-size: clamp(34px, min(4.5vw, 8.4vh), 74px); }
  .ch-copy { padding-top: calc(var(--nav-h) * .7); }
  .counter { margin-top: 22px; }
  .counter-val { font-size: clamp(60px, min(9.5vw, 15vh), 150px); }
  .counter p { font-size: 15.5px; }
  .leaks { margin-top: 18px; gap: 8px; }
  .leaks li { font-size: 15px; }
  .clock { margin-top: 18px; }
  .clock-time { font-size: clamp(44px, 10vh, 96px); }
  .steps { margin-top: 18px; gap: 12px; }
  .steps p { display: none; }
}

/* WIDE and very short: phones on their side (844×390, 932×430). Same composition as a laptop,
   with type sized off the HEIGHT, because height is the scarce thing here */
@media (min-aspect-ratio: 11/10) and (min-width: 640px) and (max-height: 560px) {
  .hero-inner { margin-top: 0; padding-top: var(--nav-h); }
  .hero .eyebrow { display: none; }
  .hero-title { font-size: clamp(30px, 11vh, 58px); }
  .hero-sub { font-size: 13.5px; line-height: 1.45; margin-top: 10px; max-width: 30em; }
  .hero-ctas { margin-top: 14px; }
  .hero-ctas .btn { height: 40px; padding: 0 16px; font-size: 13.5px; }
  .hero-stats, .scroll-cue { display: none; }
  .eyebrow { margin-bottom: 4px; font-size: 12.5px; line-height: 1.2; }
  .h2 { font-size: clamp(22px, 7.6vh, 40px); }
  .lead { font-size: 13.5px; margin-top: 10px; line-height: 1.45; }
  .lead.small { font-size: 12.5px; }
  .ch-copy { padding-top: var(--nav-h); }
  .counter { margin-top: 8px; }
  .counter-val { font-size: clamp(38px, 13vh, 84px); }
  .counter p { font-size: 12.5px; margin-top: 6px; }
  .leaks { margin-top: 8px; gap: 2px; }
  .leaks li { font-size: 11.5px; line-height: 1.35; }
  .chapter .fineprint { margin-top: 6px; font-size: 10px; line-height: 1.35; }
  .readout { bottom: 12px; padding: 9px 12px; border-radius: 14px; }
  .readout-head { font-size: 11.5px; }
  .readout-cells { gap: 0 16px; margin-top: 6px; }
  .readout-cells b { font-size: 18px; }
  .readout-cells span { font-size: 10px; }
  /* the tags take the copy's column while they are up (main.js lays them out) */
  .recon .ch-copy { transition: opacity .5s var(--ease); }
  body.tags-on .recon .ch-copy { opacity: 0; }
  .tag { width: 172px; padding: 7px 10px 8px; border-radius: 11px; }
  .tag b { font-size: 12px; margin-top: 3px; }
  .tag-top { font-size: 11px; }
  .tag-state { font-size: 10.5px; margin-top: 5px; padding-top: 5px; }
  .clock { margin-top: 8px; }
  .clock-time { font-size: clamp(30px, 11vh, 60px); }
  .clock-ampm { font-size: 13px; }
  .steps { margin-top: 10px; gap: 4px; }
  .steps li { grid-template-columns: 40px 1fr; gap: 8px; }
  .steps .t { font-size: 11px; }
  .steps b { font-size: 13px; }
  .inbox { bottom: 12px; width: min(360px, 40vw); padding: 10px 12px 4px; border-radius: 14px; }
  .inbox-head { padding-bottom: 6px; }
  .inbox-row { padding: 6px 0; }
  .inbox-row b { font-size: 12.5px; }
  .inbox-row span { font-size: 11px; }
  .inbox-row em { font-size: 12.5px; }
}

/* TALL: the rotor above, the copy laid along the bottom of the screen */
@media not all and (min-aspect-ratio: 11/10) and (min-width: 640px) {
  .hero::before { background: linear-gradient(0deg, rgba(3, 4, 5, .96) 0%, rgba(3, 4, 5, .7) 42%, transparent 66%); }
  .hero .stage { align-items: flex-end; }
  .hero-inner { padding-bottom: 128px; }
  .hero .eyebrow { display: none; }
  .hero-title { font-size: clamp(40px, 11.2vw, 76px); }
  .hero-sub { font-size: 15px; line-height: 1.45; margin-top: 14px; }
  .hero-ctas { margin-top: 20px; }
  .hero-ctas .btn { height: 48px; padding: 0 20px; }
  .hero-stats { bottom: 22px; }
  .hero-stats > div { padding: 0 14px; }
  .hero-stats b { font-size: 22px; }
  .hero-stats span { font-size: 11.5px; }
  .scroll-cue { display: none; }
  .ch-grid { grid-template-columns: minmax(0, 560px); }
  .chapter .stage { align-items: flex-end; }
  /* the copy runs over the lower part of the rotor here, so the fade reaches higher than the copy
     ever starts: the leak's orange kicker on a red-hot disc was the case that showed it */
  .chapter .stage::before { background: linear-gradient(0deg, rgba(3, 4, 5, .97) 0%, rgba(3, 4, 5, .9) 48%, rgba(3, 4, 5, .62) 62%, transparent 80%); }
  .ch-copy { padding-bottom: 36px; }
  .counter { margin-top: 20px; }
  .counter p { font-size: 15px; }
  .leaks { margin-top: 18px; gap: 8px; }
  .leaks li { font-size: 14.5px; }
  .recon .lead.small, .recon .lead { font-size: 15px; margin-top: 14px; }
  .recon .lead.small { display: none; }
  .readout { left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 8px); bottom: auto; padding: 12px 14px; }
  .readout-cells { grid-template-columns: repeat(4, 1fr); gap: 2px 10px; }
  .readout-cells b { font-size: 20px; }
  .readout-cells span { font-size: 10.5px; line-height: 1.2; }
  /* the tags line up in a two-column grid under the parts; main.js sets the width and reads the height */
  .tag { width: 168px; padding: 8px 10px 9px; border-radius: 11px; }
  .recon .ch-copy { transition: opacity .5s var(--ease); }
  body.tags-on .recon .ch-copy { opacity: 0; }
  .tag b { font-size: 12.5px; }
  .tag-top { font-size: 11px; }
  .tag-state { font-size: 11px; }
  .night .h2 { font-size: clamp(32px, 8.5vw, 44px); }
  .clock { margin-top: 14px; }
  .clock-time { font-size: 50px; }
  .steps { margin-top: 16px; gap: 10px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 10px; }
  .steps p { display: none; }
  .steps b { font-size: 15px; }
  .inbox { top: calc(var(--nav-h) + 8px); bottom: auto; left: var(--gutter); right: var(--gutter); width: auto; }

  /* short phones (iPhone SE 375×667, 320×568): the copy is what has to fit, so the extras go
     first. The leak list is the eleven cards a few screens later; the stats repeat the leak
     and the math; the inbox keeps its three amounts and drops their second lines */
  @media (max-height: 700px) {
    .hero-inner { padding-bottom: 36px; }
    .hero-title { font-size: clamp(36px, 10.4vw, 60px); }
    .hero-sub { font-size: 14px; margin-top: 10px; }
    .hero-ctas { margin-top: 16px; }
    .hero-ctas .btn { height: 44px; padding: 0 18px; font-size: 14px; }
    .hero-stats { display: none; }
    .eyebrow { margin-bottom: 12px; }
    .h2 { font-size: clamp(30px, 8.6vw, 44px); }
    .leaks { display: none; }
    .counter-val { font-size: clamp(56px, 17vw, 80px); }
    .night .eyebrow { display: none; }
    .night .h2 { font-size: clamp(28px, 8vw, 40px); }
    .clock-time { font-size: 42px; }
    .clock { margin-top: 8px; }
    .steps { margin-top: 10px; gap: 6px; }
    .inbox { padding: 10px 14px 4px; }
    .inbox-head { padding-bottom: 6px; }
    .inbox-row { padding: 7px 0; }
    .inbox-row span { display: none; }
    .inbox-row em { grid-row: 1; }
  }
}

/* ROOM for the ordinary sections: width */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links { gap: 22px; }
}
@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav-links, .nav-login { display: none; }
  .nav-cta .btn { display: none; }
  .nav-burger { display: block; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { min-height: 0; padding: 20px 18px; }
  .card h3 { margin-top: 0; font-size: 18px; }
  .card p { font-size: 14px; }
  .split, .math-grid, .faq-wrap, .price-card { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-copy { order: 0; }
  .lines { grid-template-columns: minmax(0, 1fr); }
  .recovered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-form { flex-direction: column; border-radius: 16px; }
  .demo-form input, .demo-form input[name="stores"] { flex: none; height: 52px; }
  .demo-form .btn { justify-content: center; }
  .final { padding-bottom: 56vh; }
  .final-title { font-size: clamp(56px, 17vw, 96px); }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; }
}
/* tablets held upright have the width for two columns of what phones stack */
@media (min-width: 700px) and (max-width: 960px) {
  .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lines .line-card.live { grid-column: 1 / -1; }
  .price-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .presets { grid-template-columns: minmax(0, 1fr); }
  .readout-head { font-size: 12px; }
  .hero-stats > div:nth-child(2) { display: none; }
}
@media (max-width: 360px) {
  .tag b { font-size: 11.5px; }
  .tag-top { font-size: 10.5px; }
  .tag-state { font-size: 10px; }
  .readout-cells span { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-track, .scroll-cue i::after, .orb i, .wave span { animation: none !important; }
}
