/* Unlearn Math public site: shared stylesheet. System "Arcade Ledger".
 * Tokens mirror the app's Theme (App/Sources/QuickCalcApp.swift in the
 * Math App repo). See design.md for roles and contrast. No literal colour
 * appears outside :root. */

:root {
  --color-void: #07060f;      /* Theme.void   — page ground */
  --color-panel: #120f24;     /* Theme.panel  — cards */
  --color-panel-2: #1b1636;   /* Theme.panel2 — raised band */
  --color-line: #2c2552;      /* Theme.line   — hairlines */
  --color-ink: #f4f1ff;       /* Theme.ink    — body text */
  --color-mute: #a9a2d4;      /* Theme.mute lifted for 4.5:1 on void */
  --color-gold: #ffd23f;      /* Theme.gold   — primary accent, CTA */
  --color-gold-ink: #1a1405;  /* text on gold */
  --color-cyan: #22e4ff;      /* Theme.cyan   — numbers, links */
  --color-magenta: #ff3df2;   /* Theme.magenta — combo moments only */
  --color-lime: #7dff6b;      /* Theme.lime   — correct / success */
  --color-red: #ff4d6d;       /* Theme.red    — wrong / struck-out */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text-hero: clamp(2.75rem, 7vw, 5.5rem);
  --text-h2: clamp(2rem, 4vw, 3.25rem);
  --text-h3: 1.375rem;
  --text-lede: clamp(1.15rem, 1.6vw, 1.375rem);
  --text-body: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-kicker: 0.8125rem;

  --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 1.5rem;
  --space-lg: 2.5rem; --space-xl: 4rem;
  --band-y: clamp(4rem, 9vw, 7.5rem);
  --measure: 62ch;
  --radius-md: 14px; --radius-lg: 24px; --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glow-gold: 0 0 40px rgb(255 210 63 / 0.35);
  --glow-cyan: 0 0 32px rgb(34 228 255 / 0.30);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-void); color: var(--color-ink);
  font: 400 var(--text-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-cyan); text-underline-offset: 3px; }
a:hover { color: var(--color-ink); }
:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 var(--space-sm); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-sm); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 0; background: var(--color-gold); color: var(--color-gold-ink); padding: var(--space-xs) var(--space-sm); z-index: 10; }
.skip:focus { left: var(--space-sm); }

.container { width: min(100% - 32px, 1120px); margin-inline: auto; }
.band { padding-block: var(--band-y); }
.band--raised { background: var(--color-panel-2); }
.band--tight { padding-block: var(--space-xl); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.kicker { font: 600 var(--text-kicker)/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-sm); }
.lede { font-size: var(--text-lede); color: var(--color-mute); max-width: var(--measure); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(7 6 15 / 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 64px; }
.wordmark { display: flex; align-items: center; gap: 10px; font: 700 1.125rem/1 var(--font-display); color: var(--color-ink); text-decoration: none; }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: var(--space-md); align-items: center; }
.nav a { color: var(--color-mute); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--color-ink); }
.nav a.btn--gold, .nav a.btn--gold:hover { color: var(--color-gold-ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 1.5rem; border-radius: var(--radius-pill); font: 700 1rem/1 var(--font-display); text-decoration: none; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.btn--gold { background: var(--color-gold); color: var(--color-gold-ink); box-shadow: var(--glow-gold); }
.btn--gold:hover { color: var(--color-gold-ink); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--color-line); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-cyan); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: var(--text-sm); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem) var(--band-y); text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 50% 0%, rgb(255 61 242 / 0.18), transparent 70%),
  radial-gradient(500px 300px at 80% 40%, rgb(34 228 255 / 0.12), transparent 70%);
  pointer-events: none; }
.hero h1 { font-size: var(--text-hero); max-width: 14ch; margin-inline: auto; }
.hero .lede { margin: var(--space-md) auto var(--space-lg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.hero-note { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-mute); }

/* The 47 × 53 reveal */
.reveal { margin: var(--space-xl) auto 0; max-width: 560px; background: var(--color-panel); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-md); }
.reveal .q { font: 700 clamp(2.5rem, 8vw, 4rem)/1 var(--font-mono); color: var(--color-ink); }
.reveal .step { font: 500 clamp(1.1rem, 3vw, 1.5rem)/1.4 var(--font-mono); color: var(--color-cyan); margin-top: var(--space-md); }
.reveal .a { font: 700 clamp(2rem, 6vw, 3rem)/1 var(--font-mono); color: var(--color-lime); margin-top: var(--space-xs); text-shadow: 0 0 24px rgb(125 255 107 / 0.4); }
.reveal .timer { display: inline-block; margin-top: var(--space-md); font: 600 var(--text-kicker)/1 var(--font-mono); letter-spacing: 0.12em; color: var(--color-gold); border: 1px solid var(--color-line); border-radius: var(--radius-pill); padding: 8px 14px; }

/* Hero v2: neon grid floor, strike-through headline, school-vs-short-cut duel */
.hero::after { content: ""; position: absolute; left: -50%; right: -50%; bottom: 0; height: 55%;
  background-image: linear-gradient(var(--color-line) 1px, transparent 1px), linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, black, transparent 85%); -webkit-mask-image: linear-gradient(to top, black, transparent 85%);
  opacity: 0.7; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.strike { position: relative; color: var(--color-mute); white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 0.12em; border-radius: 4px;
  background: var(--color-magenta); box-shadow: 0 0 18px var(--color-magenta);
  transform: scaleX(0) rotate(-4deg); transform-origin: left; animation: strike 700ms 500ms var(--ease-out) forwards; }
.fast { color: var(--color-gold); text-shadow: var(--glow-gold); }
@keyframes strike { to { transform: scaleX(1) rotate(-4deg); } }

.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-md); max-width: 820px; margin: var(--space-xl) auto 0; }
.duel-card { position: relative; border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-md) var(--space-md); text-align: center; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.duel-label { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font: 600 var(--text-kicker)/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.duel-card--old { background: var(--color-panel); border: 1px dashed var(--color-line); color: var(--color-mute); transform: rotate(-2deg); }
.duel-card--old pre { margin: var(--space-sm) 0; font-size: 1.25rem; line-height: 1.35; text-align: left; opacity: 0.75; }
.duel-card--old::after { content: ""; position: absolute; inset: 22% 10%; background:
  linear-gradient(to top right, transparent calc(50% - 2px), var(--color-red) calc(50% - 2px), var(--color-red) calc(50% + 2px), transparent calc(50% + 2px));
  opacity: 0.55; pointer-events: none; }
.duel-card--new { background: linear-gradient(160deg, var(--color-panel-2), var(--color-panel)); border: 1px solid var(--color-cyan); box-shadow: var(--glow-cyan); transform: rotate(1.5deg); }
.duel-card--new .duel-label { color: var(--color-cyan); }
.duel-q { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; }
.duel-step { color: var(--color-cyan); font-size: 1.25rem; opacity: 0; animation: pop 400ms var(--ease-out) forwards; }
.duel-step:nth-of-type(2) { animation-delay: 1.1s; }
.duel-step:nth-of-type(3) { animation-delay: 1.6s; }
.duel-a { font-size: clamp(2.25rem, 6vw, 3.25rem); font-weight: 700; color: var(--color-lime); text-shadow: 0 0 24px rgb(125 255 107 / 0.5); opacity: 0; animation: pop 500ms 2.1s var(--ease-out) forwards; }
.duel-time { margin-top: var(--space-sm); font: 600 var(--text-kicker)/1 var(--font-mono); letter-spacing: 0.08em; padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--color-line); }
.duel-time--new { color: var(--color-gold-ink); background: var(--color-gold); border-color: var(--color-gold); box-shadow: var(--glow-gold); }
.duel-vs { font: 700 1.5rem/1 var(--font-display); color: var(--color-magenta); text-shadow: 0 0 16px var(--color-magenta); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) {
  .duel { grid-template-columns: 1fr 1fr; gap: 10px; position: relative; margin-top: var(--space-lg); }
  .duel-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; font-size: 1rem;
    background: var(--color-void); border: 1px solid var(--color-magenta); border-radius: var(--radius-pill); padding: 8px 9px; }
  .duel-card { min-height: 250px; padding: 2.5rem 0.5rem 0.75rem; border-radius: var(--radius-md); }
  .duel-card--old { transform: rotate(-2deg); }
  .duel-card--new { transform: rotate(1.5deg); }
  .duel-label { font-size: 0.6875rem; top: 12px; letter-spacing: 0.1em; }
  .duel-card--old pre { font-size: 0.9375rem; }
  .duel-q { font-size: 1.5rem; }
  .duel-step { font-size: 0.875rem; }
  .duel-a { font-size: 1.875rem; }
  .duel-time { font-size: 0.625rem; padding: 6px 8px; letter-spacing: 0.04em; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .strike::after { animation: none; transform: rotate(-4deg); }
  .duel-step, .duel-a { animation: none; opacity: 1; }
}

/* Grids and cards */
.grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: var(--space-lg); }
.card { background: var(--color-panel); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-md); }
.card p { color: var(--color-mute); margin: 0; }
.card .tag { font: 700 var(--text-kicker)/1 var(--font-mono); color: var(--color-cyan); letter-spacing: 0.1em; margin-bottom: var(--space-sm); display: block; }

/* Steps: Unlearn → Learn → See why → Drill → Review */
.steps { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: grid; gap: var(--space-sm); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-sm); align-items: start; background: var(--color-panel); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-md); }
.steps li::before { content: "0" counter(s); font: 700 1.5rem/1 var(--font-mono); color: var(--color-gold); }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--color-mute); margin: 0; }

/* Skills list */
.skills { columns: 2 260px; column-gap: var(--space-lg); padding: 0; list-style: none; margin: var(--space-lg) 0 0; }
.skills li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.skills .num { color: var(--color-cyan); margin-right: 8px; }

/* Ranks ladder */
.ranks { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; margin-top: var(--space-lg); padding: 0; list-style: none; }
.ranks li { font: 600 var(--text-sm)/1 var(--font-mono); padding: 10px 16px; border: 1px solid var(--color-line); border-radius: var(--radius-pill); color: var(--color-mute); }
.ranks li:last-child { color: var(--color-magenta); border-color: var(--color-magenta); box-shadow: 0 0 20px rgb(255 61 242 / 0.3); }

/* FAQ */
.faq { max-width: 760px; margin: var(--space-lg) auto 0; }
.faq details { border-bottom: 1px solid var(--color-line); padding: var(--space-sm) 0; }
.faq summary { cursor: pointer; font: 600 1.125rem/1.4 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: var(--space-sm); }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--color-gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--color-mute); margin-top: var(--space-xs); }

/* Prose pages (privacy, terms, support) */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: var(--space-lg); }
.prose p, .prose li { color: var(--color-mute); }
.prose strong { color: var(--color-ink); }
.draft-flag { border: 1px dashed var(--color-gold); color: var(--color-gold); border-radius: var(--radius-md); padding: var(--space-sm); font-size: var(--text-sm); }

/* Footer */
.site-footer { border-top: 1px solid var(--color-line); padding-block: var(--space-xl); color: var(--color-mute); font-size: var(--text-sm); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); }
.site-footer nav { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.site-footer a { color: var(--color-mute); }

/* Motion: one fade-up on scroll; off for reduced motion */
.rise { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* How it works v2: one rail, five stops, one worked skill (34 × 11) */
.rail { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-sm); position: relative; }
.rail::before { content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--color-red), var(--color-cyan) 30%, var(--color-gold) 70%, var(--color-lime)); opacity: 0.8; }
.stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.node { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--color-void); border: 2px solid var(--color-cyan); color: var(--color-ink); font-weight: 700; font-size: 0.9375rem; box-shadow: var(--glow-cyan); margin-bottom: var(--space-md); }
.stop:first-child .node { border-color: var(--color-red); box-shadow: 0 0 24px rgb(255 77 109 / 0.35); }
.stop:last-child .node { border-color: var(--color-lime); box-shadow: 0 0 24px rgb(125 255 107 / 0.35); }
.stop h3 { margin-bottom: 6px; }
.stop > p { color: var(--color-mute); font-size: var(--text-sm); line-height: 1.5; min-height: 3em; margin-bottom: var(--space-sm); }
.demo { margin-top: auto; width: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--color-void); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-sm); font-size: 1.0625rem; line-height: 1.35; color: var(--color-ink);
  transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out); }
.stop:hover .demo { border-color: var(--color-cyan); transform: translateY(-3px); }
.demo .c { color: var(--color-cyan); }
.demo b { color: var(--color-gold); font-weight: 700; }
.demo small { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mute); }
.demo--old { color: var(--color-mute); font-size: 0.875rem; }
.demo--old .x { position: relative; text-align: right; }
.demo--old .x::after { content: ""; position: absolute; left: -20%; right: -20%; top: 50%; height: 2px; background: var(--color-red); transform: rotate(-35deg); box-shadow: 0 0 10px var(--color-red); }
.combo { font-weight: 700; color: var(--color-magenta); text-shadow: 0 0 14px var(--color-magenta); }
.bar { width: 80%; height: 8px; border-radius: 99px; background: var(--color-line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 47%; background: var(--color-gold); box-shadow: var(--glow-gold); }
.days { display: flex; gap: 6px; }
.days i { width: 14px; height: 14px; border-radius: 4px; background: var(--color-line); }
.days i.on { background: var(--color-lime); }
.days i.due { background: transparent; border: 2px solid var(--color-gold); box-shadow: var(--glow-gold); }

@media (max-width: 860px) {
  .rail { grid-template-columns: 1fr; gap: var(--space-md); padding-left: 64px; }
  .rail::before { top: 0; bottom: 0; left: 22px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--color-red), var(--color-cyan) 30%, var(--color-gold) 70%, var(--color-lime)); }
  .stop { align-items: flex-start; text-align: left; }
  .node { position: absolute; left: -64px; top: 0; margin: 0; }
  .stop > p { min-height: 0; }
  .demo { min-height: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 12px 14px; }

  .demo--old .x br { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .demo { transition: none; } .stop:hover .demo { transform: none; } }
.demo .dc { display: block; text-align: center; }
.demo--old .x { display: inline-block; padding: 0 6px; }
.demo--old .x::after { left: -10%; right: -10%; }
@media (max-width: 860px) { .demo .dc { text-align: left; } .demo--old .x br { display: inline; } }
.demo .combo { display: block; margin-bottom: 8px; }
.demo .bar { display: block; width: 120px; margin: 0 auto 8px; }
.demo .days { justify-content: center; margin-bottom: 8px; }
.demo { min-height: 170px; }
.demo--old .x::after { content: none; }
.demo--old .x { background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--color-red) calc(50% - 1.5px), var(--color-red) calc(50% + 1.5px), transparent calc(50% + 1.5px)); padding: 0 14px; font-size: 0.8125rem; line-height: 1.25; }
@media (max-width: 860px) { .demo { min-height: 0; } .demo .bar, .demo .days { margin-left: 0; } .demo .days { justify-content: flex-start; } }
@media (max-width: 860px) { .demo { flex-direction: column; align-items: flex-start; } }
/* Alignment: feature cards sit in an even 4 / 2 / 1 grid, equal heights */
.grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.skills li { display: grid; grid-template-columns: 4.5em 1fr; align-items: baseline; }
.skills .num { margin-right: 0; }

/* How it works, mobile v2: centred stack. Node on top, centred text,
   fixed-width demo card, a short gradient connector between stops. */
@media (max-width: 860px) {
  .rail { padding-left: 0; gap: 0; max-width: 340px; margin-inline: auto; }
  .rail::before { content: none; }
  .stop { align-items: center; text-align: center; padding-bottom: var(--space-lg); }
  .stop:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 2px; height: calc(var(--space-lg) - 16px);
    transform: translateX(-50%); background: linear-gradient(180deg, var(--color-cyan), transparent); opacity: 0.7; }
  .node { position: relative; left: auto; top: auto; margin: 0 0 var(--space-sm); }
  .stop > p { max-width: 30ch; margin-inline: auto; }
  .demo { width: 100%; min-height: 132px; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-sm); }
  .demo .dc { text-align: center; }
  .demo .bar { margin: 0 auto 8px; }
  .demo .days { justify-content: center; }
}
@media (max-width: 860px) { .demo { min-height: 150px; } .stop > p { text-wrap: balance; } }
/* Equation layout: operator column + left-aligned terms, so terms line up */
.demo .eq { display: grid; grid-template-columns: 1.5ch auto; column-gap: 1ch; row-gap: 2px; text-align: left; white-space: pre; }
.demo .eq i { font-style: normal; text-align: right; color: var(--color-mute); }
.demo .eq i.c { color: var(--color-cyan); }

/* Train like a game v2: HUD cards (screen on top, copy below) + rank ladder */
.center-lede { text-align: center; margin: 0 auto; }
.hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.hud-card { display: flex; flex-direction: column; text-align: center; }
.hud-card h3 { margin: var(--space-md) 0 6px; }
.hud-card p { color: var(--color-mute); font-size: var(--text-sm); line-height: 1.5; margin: 0 auto; max-width: 26ch; text-wrap: balance; }
.hud-screen { position: relative; height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(120% 90% at 50% 0%, var(--color-panel-2), var(--color-void)); border: 1px solid var(--color-line); border-radius: var(--radius-md);
  transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out); }
.hud-card:hover .hud-screen { border-color: var(--color-cyan); transform: translateY(-3px); }
.hud-screen small { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mute); }
.hud-big { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.hud-big--magenta { color: var(--color-magenta); text-shadow: 0 0 22px rgb(255 61 242 / 0.55); }
.hud-big--gold { color: var(--color-gold); text-shadow: var(--glow-gold); }
.hud-big--lime { color: var(--color-lime); text-shadow: 0 0 22px rgb(125 255 107 / 0.45); }
.pips, .week { display: flex; gap: 6px; }
.pips i { width: 22px; height: 6px; border-radius: 3px; background: var(--color-line); }
.pips i.on { background: var(--color-magenta); box-shadow: 0 0 8px var(--color-magenta); }
.week i { width: 12px; height: 12px; border-radius: 3px; background: var(--color-line); }
.week i.on { background: var(--color-lime); }
.week i.today { background: transparent; border: 2px solid var(--color-gold); }
.track { position: relative; width: 120px; height: 6px; border-radius: 3px; background: var(--color-line); }
.track .fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--color-gold); box-shadow: var(--glow-gold); }
.track .mark { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--color-cyan); }
.ring { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--color-line); stroke-width: 5; }
.ring .arc { stroke: var(--color-cyan); stroke-linecap: round; filter: drop-shadow(0 0 4px var(--color-cyan)); }
.ring-t { position: absolute; font-size: 1.25rem; font-weight: 700; }

.ladder { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.ladder::before { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 7px; height: 2px;
  background: linear-gradient(90deg, var(--color-line), var(--color-cyan) 60%, var(--color-magenta)); }
.ladder li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 28px; }
.ladder li::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-void); border: 2px solid var(--color-cyan); }
.ladder .lv { font-size: 0.75rem; color: var(--color-mute); letter-spacing: 0.06em; }
.ladder b { font: 600 0.9375rem/1.2 var(--font-display); }
.ladder li.top::before { border-color: var(--color-magenta); background: var(--color-magenta); box-shadow: 0 0 16px var(--color-magenta); }
.ladder li.top b { color: var(--color-magenta); }

@media (max-width: 960px) { .hud { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .hud { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; gap: var(--space-lg); }
  .hud-screen { height: 150px; }
  .ladder { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-md); max-width: 340px; margin-inline: auto; }
  .ladder::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { .hud-screen { transition: none; } .hud-card:hover .hud-screen { transform: none; } }
/* Mobile ladder: vertical climb, top rank first, centred block */
@media (max-width: 560px) {
  .ladder { grid-template-columns: 1fr; row-gap: 0; width: 240px; max-width: none; display: flex; flex-direction: column-reverse; }
  .ladder::before { content: ""; left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto;
    background: linear-gradient(0deg, var(--color-line), var(--color-cyan) 60%, var(--color-magenta)); }
  .ladder li { flex-direction: row; align-items: baseline; text-align: left; gap: 0; padding: 10px 0 10px 32px; }
  .ladder li::before { top: 50%; left: 0; transform: translateY(-50%); }
  .ladder .lv { width: 4.5em; flex: none; }
}

/* Train like a game v3: split layout to break the centred-card rhythm of section 3 */
.play { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.play-copy .lede { margin-bottom: var(--space-lg); }
.feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.feats li { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-sm); align-items: start; padding: var(--space-sm) 0; border-top: 1px solid var(--color-line); }
.feats li:last-child { border-bottom: 1px solid var(--color-line); }
.feats h3 { font-size: 1.125rem; margin: 0 0 2px; }
.feats p { color: var(--color-mute); font-size: var(--text-sm); margin: 0; }
.feat-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; font-size: 1rem; background: var(--color-panel); border: 1px solid var(--color-line); }
.f-mag { color: var(--color-magenta); } .f-gold { color: var(--color-gold); } .f-cyan { color: var(--color-cyan); } .f-lime { color: var(--color-lime); }

.play-screen { position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 9 / 16; border-radius: 36px; padding: 22px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: radial-gradient(120% 70% at 50% 0%, var(--color-panel-2), var(--color-void)); border: 1px solid var(--color-line);
  box-shadow: 0 0 0 8px var(--color-panel), 0 30px 80px rgb(255 61 242 / 0.18), var(--glow-cyan); transform: rotate(2deg); }
.ps-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.ps-streak { color: var(--color-lime); font-weight: 700; font-size: 0.875rem; }
.ps-combo { color: var(--color-magenta); font-weight: 700; font-size: 0.875rem; text-shadow: 0 0 14px var(--color-magenta); }
.ps-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.ps-ring circle { fill: none; stroke: var(--color-line); stroke-width: 6; }
.ps-ring .arc { stroke: var(--color-cyan); stroke-linecap: round; }
.ps-ring text { fill: var(--color-ink); font: 700 18px var(--font-mono); text-anchor: middle; }
.ps-q { margin-top: auto; font-size: 2.5rem; font-weight: 700; }
.ps-a { font-size: 3.25rem; font-weight: 700; color: var(--color-lime); text-shadow: 0 0 26px rgb(125 255 107 / 0.5); line-height: 1; }
.ps-bolt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--color-gold-ink); background: var(--color-gold); padding: 6px 12px; border-radius: 99px; box-shadow: var(--glow-gold); }
.ps-keys { margin-top: auto; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-keys i { font-style: normal; text-align: center; padding: 10px 0; border-radius: 12px; background: var(--color-panel); border: 1px solid var(--color-line); color: var(--color-mute); font-weight: 600; }

@media (max-width: 860px) {
  .play { grid-template-columns: 1fr; }
  .play-copy { text-align: center; }
  .play-copy .lede { margin-inline: auto; }
  .feats { text-align: left; max-width: 420px; margin-inline: auto; }
  .play-screen { width: min(100%, 300px); transform: rotate(1.5deg); }
}

/* What you will learn v2: periodic table of short cuts */
.ptable { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { --tc: var(--color-cyan); position: relative; display: flex; flex-direction: column; min-height: 200px; padding: 18px;
  background: var(--color-void); border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden;
  transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tc); box-shadow: 0 0 14px var(--tc); }
.tile:hover { border-color: var(--tc); transform: translateY(-3px); }
.tile--gold { --tc: var(--color-gold); } .tile--magenta { --tc: var(--color-magenta); } .tile--lime { --tc: var(--color-lime); }
.tile--wide { grid-column: span 2; }
.tile-n { font-size: 0.75rem; color: var(--color-mute); }
.tile-sym { font-size: 2.75rem; font-weight: 700; line-height: 1; color: var(--tc); margin: 14px 0 auto; }
.tile h3 { font-size: 1rem; line-height: 1.3; margin: 16px 0 8px; }
.tile-ex { font-size: 0.875rem; color: var(--color-ink); padding-top: 10px; border-top: 1px dashed var(--color-line); }
@media (max-width: 860px) { .ptable { grid-template-columns: repeat(2, 1fr); } .tile--wide { grid-column: span 2; } }
@media (max-width: 420px) { .tile { min-height: 180px; padding: 14px; } .tile-sym { font-size: 2.25rem; } }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }
.ptable { grid-auto-rows: 1fr; }

/* How it works, mobile v3: swipe carousel of full step cards */
.rail-dots { display: none; }
@media (max-width: 860px) {
  .rail { display: flex; max-width: none; margin: var(--space-lg) -16px 0; padding: 4px 16px 8px; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .stop { flex: 0 0 82%; scroll-snap-align: start; padding: 20px; padding-bottom: 20px;
    display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 4px; align-items: center; text-align: left;
    background: linear-gradient(160deg, var(--color-panel-2), var(--color-panel)); border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
  .stop:not(:last-child)::after { content: none; }
  .node { grid-row: 1 / 3; margin: 0; }
  .stop h3 { margin: 0; align-self: end; }
  .stop > p { margin: 0; max-width: none; text-wrap: pretty; align-self: start; font-size: 0.875rem; }
  .demo { grid-column: 1 / -1; margin-top: 16px; min-height: 170px; background: var(--color-void); }
  .rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-md); }
  .rail-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--color-line); transition: width 250ms var(--ease-out), background 250ms; }
  .rail-dots i.on { width: 24px; background: var(--color-gold); }
}

/* Shortcuts v3: bento — one featured 2×2 tile, hints, coloured answers */
.ptable { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); }
.tile-hint { font-size: 0.8125rem; color: var(--color-mute); margin: 0 0 12px; line-height: 1.4; }
.tile h3 { margin: 14px 0 4px; }
.tile-ex { margin-top: auto; }
.tile-ex b { color: var(--tc); font-weight: 700; }
.tile-sym { margin: 12px 0 0; }
.tile--feature { grid-column: span 2; grid-row: span 2; padding: 28px;
  background: radial-gradient(90% 70% at 100% 0%, rgb(255 61 242 / 0.14), transparent 60%), var(--color-void); }
.tile--feature h3 { font-size: 1.75rem; margin-top: 18px; }
.tile--feature .tile-hint { font-size: 1rem; }
.tile-q { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 700; line-height: 1; color: var(--tc); text-shadow: 0 0 30px rgb(255 61 242 / 0.4); margin: auto 0 20px; }
.feat-eq { display: grid; grid-template-columns: 1.5ch auto; column-gap: 1ch; row-gap: 6px; font-size: 1.125rem; padding-top: 16px; border-top: 1px dashed var(--color-line); }
.feat-eq i { font-style: normal; text-align: right; }
.feat-eq i.c, .feat-eq .c { color: var(--color-lime); font-weight: 700; }
.feat-eq b { color: var(--color-gold); }
@media (max-width: 860px) {
  .ptable { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .tile { min-height: 200px; }
  .tile--feature { grid-column: span 2; grid-row: auto; padding: 22px; }
  .tile--wide { grid-column: span 2; min-height: 0; }
}
/* Wide tiles: copy left, worked example large on the right */
.tile--wide { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto 1fr; column-gap: var(--space-md); }
.tile--wide > :not(.tile-ex) { grid-column: 1; }
.tile--wide .tile-ex { grid-column: 2; grid-row: 1 / -1; align-self: center; border-top: 0; padding: 0; font-size: 1.375rem; text-align: right; }
.tile--wide .tile-ex b { display: block; font-size: 2.25rem; text-shadow: 0 0 22px currentColor; }

/* Built for adults: real screenshots in phone frames + proof list */
.adult { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; margin: 0; width: 240px; aspect-ratio: 660 / 1334; border-radius: 36px; overflow: hidden;
  background: var(--color-void); border: 1px solid var(--color-line); box-shadow: 0 0 0 7px var(--color-panel), 0 30px 70px rgb(0 0 0 / 0.5); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.phone--back { left: 8%; top: 0; transform: rotate(-6deg); opacity: 0.9; }
.phone--front { left: 42%; top: 48px; transform: rotate(4deg); box-shadow: 0 0 0 7px var(--color-panel), 0 30px 80px rgb(255 61 242 / 0.22), var(--glow-cyan); }
.proof { margin: var(--space-lg) 0 0; display: grid; gap: 0; }
.proof > div { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-sm); align-items: baseline; padding: var(--space-sm) 0; border-top: 1px solid var(--color-line); }
.proof > div:last-child { border-bottom: 1px solid var(--color-line); }
.proof dt { font-weight: 700; color: var(--color-gold); font-size: 1.125rem; }
.proof dd { margin: 0; color: var(--color-mute); }
.proof strong { color: var(--color-ink); font-weight: 600; }
@media (max-width: 860px) {
  .adult { grid-template-columns: 1fr; }
  .adult-copy { order: -1; text-align: center; }
  .adult-copy .lede { margin-inline: auto; }
  .proof { text-align: left; max-width: 420px; margin-inline: auto; }
  .phones { height: 440px; max-width: 340px; width: 100%; margin-inline: auto; }
  .phone { width: 180px; border-radius: 28px; }
  .phone--back { left: 0; }
  .phone--front { left: auto; right: 0; top: 40px; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); max-width: 880px; margin: var(--space-lg) auto 0; align-items: stretch; }
.plan { position: relative; text-align: center; padding: var(--space-lg) var(--space-md); background: var(--color-panel); border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
.plan-name { font: 600 var(--text-kicker)/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-mute); margin-bottom: var(--space-sm); }
.plan-price { font-size: 2.5rem; font-weight: 700; line-height: 1; margin-bottom: var(--space-sm); }
.plan-price span { display: block; font-size: 0.875rem; font-weight: 500; color: var(--color-mute); margin-top: 8px; }
.plan-note { color: var(--color-mute); font-size: var(--text-sm); margin: 0; }
.plan--best { border-color: var(--color-gold); box-shadow: var(--glow-gold); background: linear-gradient(180deg, var(--color-panel-2), var(--color-panel)); }
.plan--best .plan-price { color: var(--color-gold); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-gold-ink); background: var(--color-gold); padding: 6px 12px; border-radius: 99px; }
.plans-small { font-size: 0.8125rem; color: var(--color-mute); max-width: 60ch; margin: var(--space-md) auto 0; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; max-width: 340px; gap: var(--space-lg); } .plan--best { order: -1; } }

/* iPhone 17 Pro Max frame (CSS rendition): titanium edge, black bezel,
   6.9" 1320×2868 screen, Action + volume left, Side + Camera Control right */
:root { --ti-1: #5b5a60; --ti-2: #2a292e; --ti-3: #8a8990; }
.phone { --w: 250px; width: var(--w); aspect-ratio: 1320 / 2868; height: auto; padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.2); overflow: visible; border: 0;
  background: linear-gradient(135deg, var(--ti-3) 0%, var(--ti-1) 14%, var(--ti-2) 48%, var(--ti-1) 86%, var(--ti-3) 100%);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.18), inset 0 0 0 4px #0b0b0d, 0 40px 80px rgb(0 0 0 / 0.55); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: calc(var(--w) * 0.168); box-shadow: 0 0 0 calc(var(--w) * 0.014) #050506; background: #050506; }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ti-2), var(--ti-3)); }
/* left: action + volume up/down */
.phone::before { left: -3px; top: 17%; height: 4.5%;
  box-shadow: 0 calc(var(--w) * 0.19) 0 0 var(--ti-1), 0 calc(var(--w) * 0.33) 0 0 var(--ti-1); }
/* right: side button + camera control */
.phone::after { right: -3px; top: 25%; height: 9%; background: linear-gradient(270deg, var(--ti-2), var(--ti-3));
  box-shadow: 0 calc(var(--w) * 0.62) 0 -0.5px var(--ti-1); }
.phone--front { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.18), inset 0 0 0 4px #0b0b0d, 0 40px 90px rgb(255 61 242 / 0.22), 0 0 50px rgb(34 228 255 / 0.18); }
.phones { height: 600px; }
@media (max-width: 860px) { .phone { --w: 176px; } .phones { height: 450px; } }
@media (max-width: 860px) { .phone--back { left: 10px; } .phone--front { right: 6px; } }

/* Pricing v2: Free vs Premium comparison; plans as rows inside Premium */
.tiers { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-md); max-width: 920px; margin: var(--space-lg) auto 0; align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: var(--space-lg); background: var(--color-panel); border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
.tier--premium { border-color: var(--color-gold); background: radial-gradient(90% 60% at 100% 0%, rgb(255 210 63 / 0.10), transparent 60%), linear-gradient(180deg, var(--color-panel-2), var(--color-panel)); box-shadow: var(--glow-gold); }
.tier .plan-name { margin-bottom: var(--space-sm); }
.tier--premium .plan-name { color: var(--color-gold); }
.tier-price { font-size: 3rem; font-weight: 700; line-height: 1; margin: 0 0 var(--space-md); }
.tier-price span { font-size: 0.875rem; font-weight: 500; color: var(--color-mute); margin-left: 8px; }
.tier-lead { color: var(--color-ink); font-size: 1.0625rem; margin: 0 0 var(--space-md); max-width: 36ch; }
.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-lg); display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--color-mute); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--color-lime); font-family: var(--font-mono); font-weight: 700; }
.plan-rows { list-style: none; padding: 0; margin: 0 0 var(--space-lg); display: grid; gap: 10px; }
.plan-rows li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); padding: 14px 18px; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-void); }
.plan-rows li span { font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-rows em { font-style: normal; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-gold-ink); background: var(--color-gold); padding: 4px 8px; border-radius: 99px; }
.plan-rows b { font-size: 1.375rem; white-space: nowrap; }
.plan-rows b small { font-size: 0.75rem; color: var(--color-mute); font-weight: 500; margin-left: 4px; }
.plan-rows li.best { border-color: var(--color-gold); }
.plan-rows li.best b { color: var(--color-gold); }
.tier-cta { margin-top: auto; justify-content: center; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; max-width: 400px; } .tier { padding: var(--space-md); } }

/* FAQ v2: sticky heading left, numbered accordion right */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-head { position: sticky; top: 96px; }
.faq-head .lede { margin-bottom: var(--space-md); }
.faq-mail { display: inline-block; color: var(--color-gold); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--color-gold); padding-bottom: 2px; }
.faq-mail:hover { color: var(--color-ink); border-color: var(--color-ink); }
.faq-wrap .faq { margin: 0; max-width: none; counter-reset: q; }
.faq details { counter-increment: q; padding: 0; border-bottom: 1px solid var(--color-line); }
.faq details:first-child { border-top: 1px solid var(--color-line); }
.faq summary { padding: 20px 0; display: grid; grid-template-columns: 3ch 1fr 28px; gap: var(--space-sm); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(q, decimal-leading-zero); font: 600 0.8125rem/1 var(--font-mono); color: var(--color-mute); }
.faq summary::after { content: "+"; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--color-line); border-radius: 50%;
  color: var(--color-gold); transition: transform 250ms var(--ease-out), background 250ms; }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); background: var(--color-gold); color: var(--color-gold-ink); border-color: var(--color-gold); }
.faq details[open] summary { color: var(--color-gold); }
.faq details p { margin: -6px 0 20px; padding-left: calc(3ch + var(--space-sm)); padding-right: 44px; }
@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-head { position: static; text-align: center; }
  .faq-head .lede { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq summary::after { border-color: rgb(169 162 212 / 0.4); }
.faq details[open] summary::after { border-color: var(--color-gold); }

/* ===== Continuous page gradient + angled cuts =====
   One gradient spans the whole document (body), with soft neon glows
   placed down the page. Bands are transparent; "raised" bands become
   translucent slabs cut at alternating angles. */
:root { --cut: clamp(28px, 5vw, 72px); }
html { background: var(--color-void); }
body { position: relative; isolation: isolate; background:
  linear-gradient(180deg,
    #07060f 0%, #0f0a26 9%, #160b2e 16%, #0a0c22 26%, #07101c 34%,
    #120a28 44%, #1a0b2a 52%, #0b0a20 62%, #071018 72%,
    #110a26 82%, #0c0820 91%, #07060f 100%); }
body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(60vw 40vw at 15% 6%,  rgb(255 61 242 / 0.14), transparent 70%),
  radial-gradient(50vw 40vw at 90% 18%, rgb(34 228 255 / 0.10), transparent 70%),
  radial-gradient(60vw 40vw at 10% 38%, rgb(34 228 255 / 0.08), transparent 70%),
  radial-gradient(55vw 40vw at 85% 52%, rgb(255 61 242 / 0.10), transparent 70%),
  radial-gradient(60vw 40vw at 20% 70%, rgb(255 210 63 / 0.06), transparent 70%),
  radial-gradient(50vw 40vw at 80% 86%, rgb(125 255 107 / 0.06), transparent 70%); }

.band, .band--raised, .site-footer { background: transparent; }
.band { position: relative; }
.band > .container { position: relative; z-index: 1; }

/* Raised bands: glass slab, cut on both edges */
.band--raised { padding-block: calc(var(--band-y) + var(--cut) * 0.6); }
.band--raised::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015) 60%, rgb(34 228 255 / 0.03));
  border-block: 1px solid rgb(255 255 255 / 0.06);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.band--raised::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--cut); z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(34 228 255 / 0.5), rgb(255 61 242 / 0.5), transparent);
  clip-path: polygon(0 calc(100% - 1px), 100% 0, 100% 1px, 0 100%); }
/* alternate direction for the next raised band */
#skills.band--raised::before { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut))); }
#skills.band--raised::after { clip-path: polygon(0 0, 100% calc(100% - 1px), 100% 100%, 0 1px); }

/* Hero sheds its own flat floor colour; footer gets a hairline */
.hero { background: transparent; }
.site-footer { border-top: 1px solid rgb(255 255 255 / 0.06); }
.site-header { background: rgb(7 6 15 / 0.7); }
.band--raised::before { background: linear-gradient(160deg, rgb(140 120 255 / 0.10), rgb(255 255 255 / 0.03) 55%, rgb(34 228 255 / 0.06)); }
.band--raised::after { background: linear-gradient(90deg, transparent 2%, rgb(34 228 255 / 0.9) 30%, rgb(255 61 242 / 0.9) 70%, transparent 98%);
  clip-path: polygon(0 calc(100% - 2px), 100% 0, 100% 2px, 0 100%); filter: drop-shadow(0 0 6px rgb(255 61 242 / 0.6)); }
#skills.band--raised::after { clip-path: polygon(0 0, 100% calc(100% - 2px), 100% 100%, 0 2px); }
/* Train like a game: real drill + result screens, mirrored fan */
.phones--play .phone--back { left: auto; right: 6%; top: 0; transform: rotate(6deg); }
.phones--play .phone--front { left: 6%; top: 48px; transform: rotate(-4deg); }
@media (max-width: 860px) {
  .phones--play { margin-top: var(--space-lg); }
  .phones--play .phone--back { right: 10px; left: auto; }
  .phones--play .phone--front { left: 10px; right: auto; }
}

/* Final CTA: glowing card with the real app icon */
.finale { position: relative; text-align: center; max-width: 820px; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: 32px; border: 1px solid rgb(255 210 63 / 0.35); overflow: hidden;
  background: radial-gradient(70% 80% at 50% 0%, rgb(255 61 242 / 0.20), transparent 70%), radial-gradient(60% 60% at 50% 100%, rgb(34 228 255 / 0.12), transparent 70%), rgb(18 15 36 / 0.7);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.04) inset, 0 30px 90px rgb(255 61 242 / 0.18); }
.finale-icon { width: 112px; height: 112px; margin: 0 auto var(--space-md); border-radius: 26px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 16px 50px rgb(255 61 242 / 0.35), var(--glow-gold); }
.finale h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.finale .lede { margin-bottom: var(--space-lg); }

/* Footer: brand + two link columns, legal line below */
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-lg); align-items: start; }
.footer-brand p { margin: 12px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font: 600 var(--text-kicker)/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold); margin: 0 0 4px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--color-ink); }
.footer-legal { grid-column: 1 / -1; margin: 0; padding-top: var(--space-md); border-top: 1px solid rgb(255 255 255 / 0.06); font-size: 0.8125rem; line-height: 1.6; max-width: none; }
@media (max-width: 640px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Footer v3: brand + CTA, two tight link columns, giant outlined wordmark, legal bar */
.site-footer--big { position: relative; padding-block: var(--space-xl) var(--space-md); border-top: 0; overflow: hidden; }
.site-footer--big::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(34 228 255 / 0.7), rgb(255 61 242 / 0.7), transparent); }
.site-footer--big .container { display: block; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-lg); align-items: start; }
.footer-brand .wordmark { font-size: 1.25rem; }
.footer-brand .wordmark img { width: 40px; height: 40px; border-radius: 10px; }
.footer-tag { margin: var(--space-sm) 0 var(--space-md); font: 600 1.125rem/1.4 var(--font-display); color: var(--color-ink); }
.footer-tag span { color: var(--color-gold); }
.site-footer--big .footer-col { gap: 0; }
.site-footer--big .footer-col a { padding: 6px 0; color: var(--color-mute); font-size: var(--text-sm); }
.site-footer--big .footer-col a:hover { color: var(--color-ink); }
.footer-mail { color: var(--color-cyan) !important; word-break: break-all; }
.footer-giant { margin: var(--space-lg) 0 0; text-align: center; line-height: 0.8; letter-spacing: -0.04em; user-select: none;
  font: 700 clamp(5rem, 22vw, 18rem)/0.8 var(--font-display); color: transparent;
  -webkit-text-stroke: 1px rgb(169 162 212 / 0.22);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.06), transparent 85%); -webkit-background-clip: text; background-clip: text; }
.footer-giant span { -webkit-text-stroke: 1px rgb(255 61 242 / 0.35); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px var(--space-md); margin-top: var(--space-md); padding-top: var(--space-md);
  border-top: 1px solid rgb(255 255 255 / 0.06); font-size: 0.75rem; line-height: 1.6; color: var(--color-mute); }
.footer-bottom p { margin: 0; max-width: 70ch; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-brand .wordmark { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}
.site-footer a.btn--gold, .site-footer a.btn--gold:hover { color: var(--color-gold-ink); }
.footer-giant { -webkit-text-stroke: 1.5px rgb(169 162 212 / 0.3); }
.footer-giant span { -webkit-text-stroke: 1.5px rgb(255 61 242 / 0.55); }
.footer-mail { word-break: normal; white-space: nowrap; }
@media (max-width: 760px) { .footer-mail { font-size: 0.8125rem !important; } }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose .meta { font: 500 0.8125rem/1 var(--font-mono); color: var(--color-mute); }
/* Legal pages */
.prose .inshort { color: var(--color-ink); background: rgb(255 210 63 / 0.06); border-left: 3px solid var(--color-gold); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.prose code { font-family: var(--font-mono); font-size: 0.875em; color: var(--color-cyan); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-md); border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--color-line); }
.prose th { font: 600 0.75rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-gold); background: rgb(255 255 255 / 0.03); }
.prose td { color: var(--color-mute); }
.prose td:first-child { color: var(--color-ink); }
.prose tr:last-child td { border-bottom: 0; }
/* Footer brand block: tidy */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer .footer-brand .wordmark { color: var(--color-ink); font-size: 1.125rem; gap: 12px; line-height: 1; }
.footer-brand .wordmark img { width: 36px; height: 36px; border-radius: 9px; }
.footer-tag { margin: 0; font: 500 0.9375rem/1.5 var(--font-body); color: var(--color-mute); max-width: 32ch; }
.footer-tag span { color: var(--color-gold); font-weight: 600; }
.footer-brand .btn { margin-top: 4px; box-shadow: none; min-height: 40px; }
.footer-brand .btn:hover { transform: none; filter: brightness(1.06); }
.footer-top { align-items: start; }
.footer-h { line-height: 36px; margin: 0; }
@media (max-width: 760px) { .footer-brand { align-items: center; } .footer-tag { text-align: center; } }
.footer-tag { max-width: 44ch; }

/* Chat launcher (Chatwoot loads on click) */
.chat-btn { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--color-gold); color: var(--color-gold-ink); font: 700 0.9375rem/1 var(--font-display);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.45), var(--glow-gold); transition: transform 200ms var(--ease-out); }
.chat-btn:hover { transform: translateY(-2px); }
.chat-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (max-width: 560px) { .chat-btn span { display: none; } .chat-btn { padding: 0; width: 52px; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .chat-btn { transition: none; } }
