/* ==========================================================================
   funnel-builder theme: DARK
   One deep base the whole way down, a page-level light layer (runtime/site.js),
   cards carry the hierarchy, one or two paper moments. Origin: trainwell AM
   Recruiting build, 2026-09-03, six review rounds. GLOBAL tier.

   This file is a TEMPLATE. scripts/build.py fills every double-brace token from
   brand.json (+ its optional "theme" block) and writes assets/styles.css.
   Colors live in :root as custom properties; the body references them.
   Only two spots cannot use var() (SVG data URIs) and are filled directly.
   Mobile-first. No 100vh (iframe-safe). No fixed positioning.
   ========================================================================== */

/* ---------- Tokens (filled from brand.json) ---------- */
:root {
  /* fonts */
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-heading: "Poppins", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font: var(--font-body);

  /* surfaces, darkest -> lightest */
  --bg-deep: #050608;
  --bg-base: #0A0B0D;
  --bg-elevated: #121417;
  --bg-overlay: #1A1D21;
  --bg-raised: #22262B;
  --bg-card: #1B1F25;
  --card-top: #1F242B;              /* lit card surface gradient, top */
  --card-bottom: #181C22;        /* ... bottom */

  /* text */
  --text-1: #F4F5F6;
  --text-1-rgb: 244, 245, 246;
  --text-2: #B6BAC0;
  --text-3: #7E838B;
  --text-3-rgb: 126, 131, 139;

  /* the CTA color: the one chromatic color reserved for buttons + the active progress pill.
     On this theme it is used as LIGHT (glows, lifts) and never as fill outside the CTA. */
  --cta: #5783C3;
  --cta-rgb: 87, 131, 195;
  --cta-hover: #6E95CF;
  --cta-text: #0A0B0D;              /* v1 flat button: dark text. Kept for .btn without .btn-v2 */
  --cta-label: #FFFFFF;            /* v2 gradient button: label color */
  --cta-grad-top: #6E95CF;
  --cta-grad-mid: #5783C3;
  --cta-grad-bottom: #4A72B0;
  --cta-grad-top-hover: #7CA2DA;
  --cta-grad-mid-hover: #6390D0;
  --cta-grad-bottom-hover: #5783C3;
  --glow: rgba(var(--cta-rgb), 0.18);
  --light-c: rgba(var(--cta-rgb), 0.22);

  /* the second accent: non-CTA. One-color brands get a complement here (GLOBAL rule);
     the hue is the client's (trainwell: gold). Never used on a CTA. */
  --gold: #F2B84B;
  --gold-rgb: 242, 184, 75;
  --gold-glow: rgba(var(--gold-rgb), 0.16);

  /* non-CTA neutral accent for caption bars, markers, rules */
  --accent-neutral: #B6BAC0;
  --accent-neutral-rgb: 182, 186, 192;

  /* paper: the light moments on the dark page */
  --paper-top: #FBFAF7;
  --paper: #F7F5F0;
  --paper-2: #ECE9E1;
  --paper-ph: #EBE8E1;              /* placeholder surface on paper */
  --paper-tick: #FFF6E0;          /* ticked checkbox fill on paper */
  --paper-white: #FFFFFF;
  --paper-glyph: #8A8F98;
  --ink: #111318;
  --ink-rgb: 17, 19, 24;
  --ink-2: #4A4F58;
  --ink-3: #6B7078;

  /* the one warning color (rule card top edge, recorder REC dot) */
  --red: #D9482B;
  --red-rgb: 217, 72, 43;

  --border: rgba(255, 255, 255, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.14);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 32px rgba(0,0,0,0.45);
  --shadow-card-hover: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 44px rgba(0,0,0,0.55);
  --lift: 0 1px 0 rgba(255,255,255,0.07) inset, 0 18px 40px rgba(0,0,0,0.55), 0 10px 44px rgba(var(--cta-rgb), 0.14);
  --lift-hover: 0 1px 0 rgba(255,255,255,0.09) inset, 0 24px 52px rgba(0,0,0,0.6), 0 16px 56px rgba(var(--cta-rgb), 0.26);

  --container: 1120px;
  --measure: 720px;

  --section-pad: 64px;
  --overlap: 56px;
  --gap: 20px;
}
@media (min-width: 768px) {
  :root { --section-pad: 88px; --overlap: 72px; --gap: 24px; }
}
@media (min-width: 1024px) {
  :root { --section-pad: 104px; --overlap: 90px; --gap: 28px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--text-1); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.measure { max-width: var(--measure); }
.center { margin-left: auto !important; margin-right: auto !important; text-align: center; }

.section { padding: var(--section-pad) 0; position: relative; }

/* Background ladder. No two adjacent sections share a treatment. */
.s-base { background: var(--bg-base); }
.s-elev { background: var(--bg-elevated); }
.s-over { background: var(--bg-overlay); }
.s-hero {
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
}
.s-final {
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-elevated) 100%);
}
.s-deep { background: var(--bg-deep); }

/* ---------- Type roles ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 12px;
}
.h-hero {
  font-size: clamp(30px, 6.2vw, 58px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  margin-top: 0; margin-bottom: 20px; text-wrap: balance; color: var(--text-1);
}
.h-section {
  font-size: clamp(25px, 3.4vw, 38px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.015em;
  margin-top: 0; margin-bottom: 16px; text-wrap: balance; color: var(--text-1);
}
.h-card { font-size: 1.15em; font-weight: 600; line-height: 1.3; margin: 0 0 8px; color: var(--text-1); }
.sub-hero {
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 400; line-height: 1.55;
  color: var(--text-2); margin-top: 0; margin-bottom: 28px; text-wrap: pretty;
}
.sub-section { font-size: 1.05em; color: var(--text-2); margin-top: 0; margin-bottom: 28px; text-wrap: pretty; }
.lead { font-size: 1.05em; color: var(--text-2); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 0.86em; line-height: 1.6; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Callout bar ---------- */
.callout {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}
.callout__inner {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  text-align: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2); line-height: 1.45;
}
.callout__orn { flex: 0 0 auto; width: 18px; height: 14px; color: var(--text-3); }
@media (max-width: 480px) { .callout__orn { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-height: 56px; padding: 15px 30px;
  background: var(--cta); color: var(--cta-text);
  border: 0; border-radius: 10px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--cta-rgb),0.22);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
@media (min-width: 640px) { .btn { width: auto; min-width: 280px; } }
.btn__label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05em; line-height: 1.2; }
.btn__label svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn__sub { font-size: 0.82em; font-weight: 500; opacity: 0.82; line-height: 1.3; }
.btn:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(var(--cta-rgb),0.32); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--text-1); outline-offset: 3px; }

.btn--secondary {
  background: transparent; color: var(--text-1);
  border: 1px solid var(--border); box-shadow: none;
}
.btn--secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); box-shadow: none; }

.btn-row { display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 640px) { .btn-row { flex-direction: row; justify-content: center; } }
.cta-block { margin-top: 36px; text-align: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
@media (min-width: 768px) { .card { padding: 32px; } }
.s-over .card, .card--raised { background: var(--bg-raised); }
.s-base .card { background: var(--bg-elevated); }
.card--lift { transition: transform .18s ease, box-shadow .18s ease; }
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

/* ---------- Grids ---------- */
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Two-column comparison (the role / eligibility / what we assess) ---------- */
.compare { align-items: stretch; }
.compare__col .eyebrow { color: var(--text-2); }
.compare__col .h-card { font-size: 1.1em; margin-bottom: 14px; }
.compare__col p { color: var(--text-2); }
.checklist li {
  position: relative; padding-left: 30px; margin: 0 0 12px; color: var(--text-2); line-height: 1.5;
}
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background-color: transparent;
  background-repeat: no-repeat; background-position: center; background-size: 10px 10px;
}
.checklist--yes li::before {
  border-color: rgba(var(--accent-neutral-rgb),0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.6 2.5L10 3.5' fill='none' stroke='%23F4F5F6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checklist--no li::before {
  border-color: rgba(var(--text-3-rgb),0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' fill='none' stroke='%237E838B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.checklist--no li { color: var(--text-3); }

/* ---------- VSL / video frame ---------- */
.vsl {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  max-width: 880px; margin: 0 auto;
}
.vsl__bar {
  background: var(--accent-neutral); color: var(--bg-base);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center; padding: 11px 14px; line-height: 1.35;
}
.vsl__player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vsl__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Placeholders (visible, marked, never silent) ---------- */
.ph {
  position: relative;
  border: 1.5px dashed rgba(var(--accent-neutral-rgb),0.45);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 10px, transparent 10px 20px),
    var(--bg-overlay);
  color: var(--text-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 8px;
  min-height: 160px;
}
.ph__tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-1);
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
}
.ph__title { font-weight: 600; color: var(--text-1); font-size: 1em; }
.ph__meta { font-size: 0.86em; color: var(--text-3); max-width: 46ch; line-height: 1.5; }
.ph__glyph { width: 44px; height: 44px; color: var(--text-3); margin-bottom: 4px; }
.ph--fill { position: absolute; inset: 0; border-radius: 0; min-height: 0; }
.ph--portrait { aspect-ratio: 4 / 5; min-height: 0; }
.ph--landscape { aspect-ratio: 16 / 10; min-height: 0; }
.ph--form { min-height: 560px; }
.ph--form-short { min-height: 320px; }
.ph--inline { min-height: 0; padding: 10px 14px; flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; }

/* skeleton field rows inside the form placeholder */
.ph__fields { width: 100%; max-width: 520px; display: grid; gap: 12px; margin-top: 16px; }
.ph__field { height: 46px; border-radius: 8px; border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.03); }
.ph__field--tall { height: 96px; }
.ph__field--btn { height: 50px; width: 180px; background: rgba(var(--cta-rgb),0.18); border-color: rgba(var(--cta-rgb),0.3); }

/* ---------- Glanceable stat strip ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }
.stat {
  background: var(--bg-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(var(--accent-neutral-rgb),0.35); }
.stat__icon { width: 26px; height: 26px; margin: 0 auto 10px; color: var(--text-2); }
.stat__num { font-size: clamp(28px, 3.2vw, 36px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--text-1); }
.stat__label { margin-top: 8px; font-size: 13px; color: var(--text-3); letter-spacing: 0.02em; }

/* ---------- Video testimonial grid ---------- */
.vt-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .vt-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .vt-grid { grid-template-columns: repeat(3, 1fr); } }
.vt { display: flex; flex-direction: column; gap: 12px; }
.vt__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border-subtle);
  background: #000; box-shadow: var(--shadow-card);
  padding: 0; cursor: pointer; width: 100%; text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
.vt__frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.vt__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vt__frame:hover img { transform: scale(1.03); }
.vt__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.vt__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(var(--text-1-rgb),0.92); color: var(--bg-base);
  display: grid; place-items: center; z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform .18s ease;
}
.vt__frame:hover .vt__play { transform: translate(-50%,-50%) scale(1.06); }
.vt__play svg { width: 22px; height: 22px; margin-left: 3px; }
.vt__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.vt__name { font-weight: 600; color: var(--text-1); line-height: 1.3; }
.vt__caption { color: var(--text-2); font-size: 0.95em; line-height: 1.45; margin-top: 2px; }
.vt__slot { aspect-ratio: 16 / 9; min-height: 0; }

.proof-note { margin-top: 28px; font-size: 13px; color: var(--text-3); text-align: center; line-height: 1.6; }

/* ---------- Earnings ledger ---------- */
.ledger { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin: 36px 0; }
@media (min-width: 900px) { .ledger { grid-template-columns: repeat(3, 1fr); } }
.ledger__row {
  border-top: 2px solid var(--accent-neutral);
  padding-top: 20px;
}
.ledger__row .eyebrow { color: var(--text-2); margin-bottom: 8px; }
.ledger__fig {
  font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -0.025em; line-height: 1;
  color: var(--text-1); margin: 0 0 14px;
}
.ledger__fig small { font-size: 0.42em; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.ledger__row p { color: var(--text-2); }

/* ---------- Rule card (client protection) ---------- */
.rule {
  margin-top: 32px;
  border-left: 3px solid var(--accent-neutral);
  border-radius: var(--radius-lg);
}
.rule__lead { font-weight: 700; font-size: 1.1em; margin: 0 0 12px; color: var(--text-1); }
.rule p { color: var(--text-2); }
.rule p:last-child { color: var(--text-1); font-weight: 500; }

/* ---------- Application (overlap card) ---------- */
.apply-section { padding-top: 1px; /* blocks margin collapse so the overlap renders */ }
.apply-section .container { padding-bottom: var(--section-pad); }
.apply-card {
  margin-top: calc(-1 * var(--overlap));
  position: relative; z-index: 2;
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.has-overlap-below { padding-bottom: calc(var(--section-pad) + var(--overlap)); }
.embed-wrap { position: relative; width: 100%; margin-top: 24px; }
.embed-wrap .tf-embed { width: 100%; min-height: 560px; }
.embed-wrap--short .tf-embed { min-height: 320px; }
/* GHL survey iframe. form_embed.js sets an explicit height by postMessage once the survey
   reports its size; these are the floor it starts from, matching the Typeform slots above. */
.embed-wrap .ghl-embed { width: 100%; min-height: 560px; border: 0; display: block; }
.embed-wrap--short .ghl-embed { min-height: 320px; }

/* ---------- Founder letter ---------- */
.letter { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .letter { grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: start; } }
.letter__photo { order: 2; }
.letter__body { order: 1; }
@media (min-width: 900px) { .letter__photo { order: 1; position: sticky; top: 24px; } .letter__body { order: 2; } }
.letter__body p { color: var(--text-2); }
.letter__body p strong { color: var(--text-1); }
.letter__sig { margin-top: 24px; font-weight: 600; color: var(--text-1); font-size: 1.1em; }

/* ---------- Progress indicator (pill row, nested at hero top) ---------- */
.steps {
  display: flex; gap: 8px; margin: 0 auto 40px; max-width: 760px;
  list-style: none; padding: 0;
}
.step {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 8px; border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.04);
  color: var(--text-3);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  text-align: center; line-height: 1.2;
}
@media (min-width: 640px) { .step { font-size: 13px; padding: 12px 14px; } }
.step__n { font-size: 0.85em; opacity: 0.8; }
.step svg { width: 14px; height: 14px; flex: 0 0 auto; }
.step--done { color: var(--text-2); border-color: var(--border); }
.step--active { background: var(--cta); color: var(--cta-text); border-color: transparent; box-shadow: 0 6px 20px rgba(var(--cta-rgb),0.3); }
.step--active .step__n { opacity: 0.85; }
@media (max-width: 420px) { .step__label { display: none; } .step--active .step__label { display: inline; } }

/* ---------- Glance box (video page) ---------- */
.glance { max-width: 760px; margin: 0 auto 32px; }
.glance .card { padding: 20px 22px; }
.glance .eyebrow { color: var(--text-2); margin-bottom: 6px; }
.glance p { color: var(--text-1); font-weight: 500; }

/* ---------- How-to rows (video page) ---------- */
.howto { display: grid; gap: 40px; }
.howto__row { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .howto__row { grid-template-columns: 1.15fr 1fr; gap: 44px; }
  .howto__row--flip .howto__media { order: -1; }
}
.howto__text .h-card { font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.howto__text p { color: var(--text-2); }
.qlist { margin: 18px 0; display: grid; gap: 10px; }
.qlist li {
  padding: 12px 16px; border-radius: 10px;
  background: var(--bg-overlay); border: 1px solid var(--border-subtle);
  font-weight: 600; color: var(--text-1);
}
.plain-list li { position: relative; padding-left: 18px; color: var(--text-2); margin-bottom: 8px; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-neutral); }

/* ---------- Next steps (confirmation page) ---------- */
.stages { display: grid; gap: 16px; margin: 32px 0; counter-reset: stage; }
.stage {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
}
.stage__n {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border); color: var(--text-1);
  display: grid; place-items: center; font-weight: 700; font-size: 1em;
  background: var(--bg-overlay);
}
.stage__title { font-weight: 700; color: var(--text-1); margin: 8px 0 6px; font-size: 1.05em; }
.stage p { color: var(--text-2); }
.note {
  margin-top: 28px; padding: 20px 22px;
  border-radius: var(--radius); border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-neutral);
  background: var(--bg-overlay); color: var(--text-2);
}
.note strong { color: var(--text-1); }

.prep { display: grid; gap: 18px; margin-top: 28px; }
.prep p { color: var(--text-2); }
.prep p strong { color: var(--text-1); display: block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.footer { color: var(--text-3); font-size: 13.5px; line-height: 1.65; padding: 56px 0 40px; border-top: 1px solid var(--border-subtle); }
/* Centred stack (2026-09-08, Nic): logo, copyright, links, then anything the client still publishes. */
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer__mark { display: flex; align-items: center; gap: 12px; }
.footer__icon { width: 36px; height: 36px; }
.footer__logo { height: 32px; width: auto; display: block; }
.footer__copyright { color: var(--text-3); }
.footer__links a { color: var(--text-2); text-decoration: none; }
.footer__links a:hover { color: var(--text-1); text-decoration: underline; }
.footer__links span { margin: 0 8px; opacity: 0.5; }
.footer__inner > p { margin-bottom: 0; max-width: 70ch; }
.footer__inner .ph { margin-top: 6px; }
.footer .eyebrow { color: var(--text-3); margin-bottom: 0; }
@media (max-width: 640px) { .footer__logo { height: 28px; } }
.pay-disclosure { color: var(--text-2); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.tc { text-align: center; }
.hide-desktop { display: block; } @media (min-width: 900px) { .hide-desktop { display: none; } }

/* ---------- Above-the-fold tuning (landing hero only) ---------- */
/* Callout + headline + subhead + video + CTA must clear ~1440×900. */
.hero .h-hero { font-size: clamp(30px, 5.4vw, 50px); }
.hero .sub-hero { max-width: 820px; font-size: clamp(17px, 1.4vw, 19px); margin-bottom: 22px; }
.hero .vsl { max-width: 680px; }
.hero .vsl__bar { padding: 9px 14px; }
.hero .cta-block { margin-top: 26px; }
@media (min-width: 1024px) { .hero { padding-top: 40px; } }

/* ---------- Left-aligned reading blocks inside centered measures ---------- */
.stages, .note, .prep, .howto__text { text-align: left; }
.stage { text-align: left; }

/* ==========================================================================
   Layer 2 (origin: trainwell round 2). Deep base everywhere; rhythm from light,
   card surfaces and paper moments. Per-section glows below are the non-lit
   fallback; on a lit page (runtime/site.js adds body.lit) they are disabled and
   the page-level light layer takes over.
   ========================================================================== */

/* ---------- Deep base + directional drifting glow ---------- */
.s-dark {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.s-dark > .container { position: relative; z-index: 1; }
.s-dark::before, .s-dark[class*="g2-"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  will-change: transform;
}
.s-dark::before {
  background: radial-gradient(ellipse var(--gsx, 46%) var(--gsy, 42%) at var(--gx, 50%) var(--gy, 0%), var(--gc, var(--glow)), transparent 70%);
  animation: glow-drift 26s ease-in-out infinite alternate;
}
.s-dark[class*="g2-"]::after {
  background: radial-gradient(ellipse var(--gsx2, 40%) var(--gsy2, 36%) at var(--gx2, 50%) var(--gy2, 100%), var(--gc2, var(--gold-glow)), transparent 70%);
  animation: glow-drift 34s ease-in-out infinite alternate-reverse;
}
@keyframes glow-drift {
  from { transform: translate(-2.5%, -1.5%) scale(1); }
  to   { transform: translate(2.5%, 1.5%) scale(1.08); }
}
.g-blue { --gc: var(--glow); }  .g-gold { --gc: var(--gold-glow); }
.g2-blue { --gc2: var(--glow); } .g2-gold { --gc2: var(--gold-glow); }
.g-t  { --gx: 50%; --gy: 0%; }   .g-b  { --gx: 50%; --gy: 100%; }
.g-l  { --gx: 0%;  --gy: 50%; }  .g-r  { --gx: 100%; --gy: 50%; }
.g-tl { --gx: 12%; --gy: 8%; }   .g-tr { --gx: 88%; --gy: 8%; }
.g-bl { --gx: 12%; --gy: 92%; }  .g-br { --gx: 88%; --gy: 92%; }
.g2-t { --gx2: 50%; --gy2: 0%; }  .g2-b { --gx2: 50%; --gy2: 100%; }
.g2-tl { --gx2: 12%; --gy2: 8%; } .g2-tr { --gx2: 88%; --gy2: 8%; }
.g2-bl { --gx2: 12%; --gy2: 92%; } .g2-br { --gx2: 88%; --gy2: 92%; }
.g-big { --gsx: 70%; --gsy: 60%; }
.g-quiet { --gc: rgba(var(--cta-rgb),0.10); }

/* callout sits on the same base now */
.callout { background: var(--bg-base); }

/* ---------- Cards on the deep base: brighter surface, crisper edge ---------- */
.s-dark .card {
  background: var(--bg-card);
  border-color: var(--border-card);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset, 0 24px 48px rgba(0,0,0,0.5);
}
.s-dark .stat { background: var(--bg-card); border-color: var(--border-card); }
.s-dark .rule { border-left-color: var(--gold); }
.s-dark .checklist--yes li::before { border-color: rgba(var(--gold-rgb),0.55); }

/* card head: icon + real headline (was a 12px eyebrow) */
.compare__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.compare__icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(var(--gold-rgb),0.12); border: 1px solid rgba(var(--gold-rgb),0.25);
  color: var(--gold); display: grid; place-items: center;
}
.compare__icon svg { width: 22px; height: 22px; }
.compare__title { font-size: 1.3em; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-1); margin: 0; }

/* ---------- Gold emphasis (the non-CTA accent) ---------- */
.hl-gold { color: var(--gold); }
.u-gold {
  color: var(--text-1); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.s-dark .stat__icon { color: var(--gold); }
.s-dark .stat__num { color: var(--gold); }

/* ---------- CTA: white label on a light gradient of the brand blue ---------- */
.btn-v2 {
  background: linear-gradient(180deg, var(--cta-grad-top) 0%, var(--cta-grad-mid) 52%, var(--cta-grad-bottom) 100%);
  color: var(--cta-label);
  border: 1px solid rgba(255,255,255,0.18);
  text-shadow: 0 1px 2px rgba(0,0,0,0.38);
  box-shadow: 0 10px 28px rgba(var(--cta-rgb),0.28), 0 1px 0 rgba(255,255,255,0.25) inset;
}
.btn-v2 .btn__label { font-size: 19px; }
.btn-v2:hover {
  background: linear-gradient(180deg, var(--cta-grad-top-hover) 0%, var(--cta-grad-mid-hover) 52%, var(--cta-grad-bottom-hover) 100%);
  box-shadow: 0 14px 34px rgba(var(--cta-rgb),0.38), 0 1px 0 rgba(255,255,255,0.3) inset;
}

/* ---------- Earnings ledger as numbered cards ---------- */
.ledger--cards .ledger__row {
  background: var(--bg-card); border: 1px solid var(--border-card); border-top: 2px solid var(--gold);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset, 0 24px 48px rgba(0,0,0,0.5);
}
.ledger__n {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(var(--gold-rgb),0.14); color: var(--gold);
  font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-bottom: 14px;
}
.ledger--cards .ledger__fig { color: var(--gold); }
.ledger--cards .ledger__fig small { color: var(--text-2); }

/* ---------- Paper: the two light moments ---------- */
.paper, .s-dark .card.paper {
  background: linear-gradient(180deg, var(--paper-top) 0%, var(--paper) 40%, var(--paper-2) 100%);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.25);
}
.paper .h-section, .paper .h-card, .paper strong, .paper .letter__sig { color: var(--ink); }
.paper p, .paper .sub-section, .paper .lead, .paper .letter__body p { color: var(--ink-2); }
.paper .letter__body p strong { color: var(--ink); }
.paper .ph {
  border-color: rgba(var(--ink-rgb),0.28);
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,0.035) 0 10px, transparent 10px 20px), var(--paper-ph);
  color: var(--ink-2);
}
.paper .ph__tag { color: var(--ink); background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.16); }
.paper .ph__title { color: var(--ink); }
.paper .ph__meta { color: var(--ink-3); }
.paper .ph__glyph { color: var(--paper-glyph); }
.paper .ph__field { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.03); }
.paper .ph__field--btn { background: rgba(var(--cta-rgb),0.28); border-color: rgba(var(--cta-rgb),0.4); }

/* halo: the light behind a paper card, drifting */
.halo { position: relative; }
.halo::before {
  content: ""; position: absolute; inset: -56px -36px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 22% 18%, var(--gold-glow), transparent 65%),
    radial-gradient(ellipse 55% 50% at 80% 86%, var(--glow), transparent 65%);
  filter: blur(14px);
  animation: glow-drift 22s ease-in-out infinite alternate;
}
.halo > * { position: relative; z-index: 1; }

/* the application card no longer overlaps (both surrounding surfaces are the same base) */
.apply-card--flat { margin-top: 0; }
/* when the application section is a normal section (no overlap), use normal padding */
.section.apply-section { padding-top: var(--section-pad); }
.section.apply-section .container { padding-bottom: 0; }

/* ==========================================================================
   Round 3 (Nic's notes, section 1–4). Continuous base, one page-level light
   layer (no per-section glows, no seams), cool light only, pointer light,
   blue-lit card lift, video cards as single cards, rule card as paper.
   ========================================================================== */
body.lit { position: relative; }
.light-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.light {
  position: absolute; left: 0; top: 0;
  width: 1100px; height: 820px; margin: -410px 0 0 -550px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--light-c), transparent 72%);
  animation: glow-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.light--big { width: 1600px; height: 1000px; margin: -500px 0 0 -800px; }
.light--pointer {
  width: 720px; height: 720px; margin: -360px 0 0 -360px;
  background: radial-gradient(closest-side, rgba(var(--cta-rgb),0.17), transparent 70%);
  animation: none; opacity: 0; transition: opacity 0.5s ease;
}
.light--pointer.is-on { opacity: 1; }
@media (max-width: 767px) { .light { width: 760px; height: 600px; margin: -300px 0 0 -380px; } .light--big { width: 1000px; height: 760px; margin: -380px 0 0 -500px; } }

/* sections become transparent over the lit body; no seams, no per-section glow */
body.lit .s-dark { background: transparent; border-top: 0; overflow: visible; }
body.lit .s-dark::before, body.lit .s-dark::after { display: none; }
body.lit .callout { background: transparent; border-bottom-color: rgba(255,255,255,0.06); }
body.lit .section, body.lit .callout, body.lit .footer { position: relative; z-index: 1; }
body.lit .halo::before {
  background:
    radial-gradient(ellipse 55% 50% at 20% 15%, rgba(var(--cta-rgb),0.20), transparent 65%),
    radial-gradient(ellipse 55% 50% at 82% 88%, rgba(var(--cta-rgb),0.16), transparent 65%);
}

/* stat strip: numbers white, icons gold */
.s-dark .stat__num { color: var(--text-1); }

/* blue-lit lift on every card surface */
.s-dark .card, .s-dark .stat, .ledger--cards .ledger__row, .vt--card {
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
  border-color: var(--border-card);
  box-shadow: var(--lift);
}
.s-dark .card--lift:hover, .s-dark .stat:hover, .vt--card:hover { box-shadow: var(--lift-hover); border-color: rgba(255,255,255,0.2); }
.s-dark .card.paper { background: linear-gradient(180deg, var(--paper-top) 0%, var(--paper) 40%, var(--paper-2) 100%); box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.25), 0 20px 70px rgba(var(--cta-rgb),0.18); }

/* the client-protection rule: paper, red top, dark lead */
.rule--paper { border-left: 0; border-top: 4px solid var(--red); }
.rule--paper .rule__lead { color: var(--ink); font-size: 1.25em; }
.rule--paper p { color: var(--ink-2); }
.rule--paper p:last-child { color: var(--ink); font-weight: 600; }

/* video testimonial as one card: thumbnail flush at top, stars / quote / name below */
.vt--card {
  border: 1px solid var(--border-card); border-radius: var(--radius-lg); overflow: hidden;
  gap: 0; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vt--card:hover { transform: translateY(-3px); }
.vt--card .vt__frame { border-radius: 0; border: 0; box-shadow: none; transition: none; }
.vt--card .vt__frame:hover { transform: none; box-shadow: none; }
.vt--card figcaption { padding: 16px 18px 18px; }
.vt__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 9px; }
.vt__stars svg { width: 15px; height: 15px; }
.vt__quote { font-style: italic; color: var(--text-1); margin: 0 0 10px; line-height: 1.45; font-size: 1em; }
.vt--card .vt__name { color: var(--text-2); font-weight: 600; font-size: 0.92em; }
.vt-grid--spaced { margin-top: 36px; }

.italic { font-style: italic; }
.s-dark .card.rule--paper { border-top: 4px solid var(--red); border-left: 1px solid rgba(255,255,255,0.6); }

/* ==========================================================================
   Round 4. Scroll reveals + stat count-up, closing light behind the final
   CTA, and two variant section forms (index-variant-b.html only).
   ========================================================================== */
/* reveals: only on lit pages, only once, subtle */
body.lit .reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
body.lit .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { body.lit .reveal { opacity: 1; transform: none; transition: none; } }

/* final CTA: more air under the subhead, a focused light behind the button */
#apply .sub-hero { margin-bottom: 44px; }
.cta-spot { position: relative; display: inline-block; }
.cta-spot::before {
  content: ""; position: absolute; left: -240px; right: -240px; top: -140px; bottom: -140px;
  background: radial-gradient(closest-side, rgba(var(--cta-rgb),0.30), transparent 72%);
  z-index: -1; pointer-events: none;
  animation: glow-drift 18s ease-in-out infinite alternate;
}

/* ---------- Variant B: §2 as one split panel ---------- */
.split { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr; }
.split__col { padding: 28px 24px; }
.split__col + .split__col { border-top: 1px solid var(--border-subtle); }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split__col { padding: 36px 36px; }
  .split__col + .split__col { border-top: 0; border-left: 1px solid var(--border-subtle); }
}
.split__col--system { background: linear-gradient(180deg, rgba(var(--cta-rgb),0.07), rgba(var(--cta-rgb),0.02)); }
.split .compare__title { font-size: 1.45em; }
.split p { color: var(--text-2); }

/* ---------- Variant B: §5 as a stacked ledger that adds up ---------- */
.ledger--stack { display: block; margin: 36px 0; }
.ledger--stack .ledger__row {
  display: grid; grid-template-columns: 1fr; gap: 10px 28px;
  padding: 26px 0; border: 0; border-top: 1px solid var(--border); border-radius: 0;
  background: transparent; box-shadow: none;
}
@media (min-width: 768px) {
  .ledger--stack .ledger__row { grid-template-columns: 44px 260px 1fr; align-items: start; }
}
.ledger--stack .ledger__n { margin: 0; }
.ledger--stack .eyebrow { margin-bottom: 4px; }
.ledger--stack .ledger__fig { margin: 0; font-size: clamp(30px, 3.4vw, 40px); color: var(--gold); }
.ledger--stack .ledger__fig small { color: var(--text-2); }
.ledger--stack .ledger__row p:last-child { color: var(--text-2); margin: 0; }
.ledger--stack .ledger__row--total {
  border-top: 2px solid var(--gold); border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.ledger--stack .ledger__row--total .ledger__n { background: var(--gold); color: var(--bg-base); }
.ledger--stack .ledger__row--total .ledger__fig { color: var(--text-1); }
.ledger--stack .ledger__row--total p:last-child { color: var(--text-1); font-weight: 500; }

/* ==========================================================================
   Round 5 — pages 2 and 3 brought onto the round-4 system.
   ========================================================================== */
/* active pill matches the v2 button: white label on the blue gradient */
body.lit .step--active {
  background: linear-gradient(180deg, var(--cta-grad-top) 0%, var(--cta-grad-mid) 52%, var(--cta-grad-bottom) 100%);
  color: var(--cta-label); text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 22px rgba(var(--cta-rgb),0.32), 0 1px 0 rgba(255,255,255,0.22) inset;
}
body.lit .step--active .step__n { opacity: 1; }
body.lit .step--done { background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%); border-color: var(--border-card); }
body.lit .step--done svg { color: var(--gold); }

/* stage numbers match the ledger badges */
body.lit .stage__n { background: rgba(var(--gold-rgb),0.14); color: var(--gold); border: 0; }
body.lit .note { background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%); border-color: var(--border-card); border-left: 3px solid var(--gold); box-shadow: var(--lift); }

/* glance box + how-to rows on the lit page */
body.lit .glance .card { text-align: left; }
body.lit .glance .compare__head { margin-bottom: 8px; }
body.lit .glance .compare__title { font-size: 1.1em; }
body.lit .glance p { color: var(--text-1); }
body.lit .qlist li { background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%); border-color: var(--border-card); box-shadow: var(--lift); }
body.lit .howto__media .ph { box-shadow: var(--lift); }

/* ==========================================================================
   Instruments (page 2, how-to). UI drawn in code, quiet 12s loops.
   Static in the completed state under reduced motion. Gold = ignition only.
   ========================================================================== */
.inst {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
  box-shadow: var(--lift); padding: 16px 16px 12px;
}
.inst__label {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.inst svg { width: 100%; height: auto; display: block; overflow: visible; }
.inst text { font-family: var(--font); }
.inst [class*="i-"] { transform-box: fill-box; transform-origin: center; }

/* --- recorder --- */
.i-recdot { animation: i-recdot 1.2s ease-in-out infinite; }
@keyframes i-recdot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.82); } }
.i-ring { stroke-dasharray: 106.8; stroke-dashoffset: 106.8; transform: rotate(-90deg); animation: i-ring 12s linear infinite; }
@keyframes i-ring { 0% { stroke-dashoffset: 106.8; } 75% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 106.8; } }
.i-q { opacity: 0.32; animation: i-q 12s linear infinite; }
.i-q .i-node { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.22); animation: i-node 12s linear infinite; }
.i-q .i-num { fill: var(--text-2); }
.i-q1, .i-q1 .i-node { --on: 5%; }
@keyframes i-q { 0%, 4% { opacity: 0.32; } 8%, 90% { opacity: 1; } 96%, 100% { opacity: 0.32; } }
.i-q2 { animation-name: i-q2; } .i-q2 .i-node { animation-name: i-node2; }
.i-q3 { animation-name: i-q3; } .i-q3 .i-node { animation-name: i-node3; }
@keyframes i-q2 { 0%, 29% { opacity: 0.32; } 33%, 90% { opacity: 1; } 96%, 100% { opacity: 0.32; } }
@keyframes i-q3 { 0%, 54% { opacity: 0.32; } 58%, 90% { opacity: 1; } 96%, 100% { opacity: 0.32; } }
@keyframes i-node  { 0%, 4%  { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.22); } 8%, 90%  { fill: var(--gold); stroke: var(--gold); } 96%, 100% { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.22); } }
@keyframes i-node2 { 0%, 29% { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.22); } 33%, 90% { fill: var(--gold); stroke: var(--gold); } 96%, 100% { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.22); } }
@keyframes i-node3 { 0%, 54% { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.22); } 58%, 90% { fill: var(--gold); stroke: var(--gold); } 96%, 100% { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.22); } }
.i-done { opacity: 0; animation: i-done 12s ease-out infinite; }
@keyframes i-done { 0%, 75% { opacity: 0; transform: scale(0.6); } 79%, 90% { opacity: 1; transform: scale(1); } 95%, 100% { opacity: 0; transform: scale(0.9); } }

/* --- link field --- */
.i-typew { animation: i-typew 12s steps(28, end) infinite; }
@keyframes i-typew { 0% { width: 0; } 34% { width: 232px; } 90% { width: 232px; } 94% { width: 0; } 100% { width: 0; } }
.i-fld { animation: i-fld 12s linear infinite; }
@keyframes i-fld { 0%, 34% { stroke: var(--gold); } 40%, 100% { stroke: rgba(255,255,255,0.16); } }
.i-lockc { animation: i-lockc 12s linear infinite; } .i-locko { animation: i-locko 12s linear infinite; }
@keyframes i-lockc { 0%, 40% { opacity: 1; } 43%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes i-locko { 0%, 40% { opacity: 0; } 43%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
.i-locklbl { animation: i-locklbl 12s linear infinite; }
@keyframes i-locklbl { 0%, 40% { fill: var(--text-3); } 43%, 92% { fill: var(--text-1); } 96%, 100% { fill: var(--text-3); } }
.i-btn { animation: i-btn 12s ease-out infinite; }
@keyframes i-btn { 0%, 50% { transform: scale(1); } 52% { transform: scale(0.95); } 54%, 100% { transform: scale(1); } }
.i-check { opacity: 0; animation: i-check 12s ease-out infinite; }
@keyframes i-check { 0%, 52% { opacity: 0; transform: scale(0.5); } 56%, 90% { opacity: 1; transform: scale(1); } 95%, 100% { opacity: 0; } }
.i-btnlbl { animation: i-btnlbl 12s linear infinite; }
@keyframes i-btnlbl { 0%, 52% { opacity: 1; } 56%, 90% { opacity: 0; } 95%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .inst [class*="i-"] { animation: none !important; }
  .i-ring { stroke-dashoffset: 0; } .i-q { opacity: 1; } .i-q .i-node { fill: var(--gold); stroke: var(--gold); }
  .i-done { opacity: 1; } .i-typew { width: 232px; } .i-lockc { opacity: 0; } .i-locko { opacity: 1; }
  .i-locklbl { fill: var(--text-1); } .i-check { opacity: 1; } .i-btnlbl { opacity: 0; }
}

/* ==========================================================================
   Confirmation page: the pull line, the stage spine, the prep sheet.
   ========================================================================== */
/* --- pull line under the hero: a gold current runs down to a chevron --- */
.pull { display: flex; flex-direction: column; align-items: center; margin: 36px auto 0; height: 112px; width: 24px; }
.pull__line { position: relative; width: 2px; flex: 1; overflow: hidden; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2)); }
.pull__line::after { content: ""; position: absolute; left: 0; width: 100%; height: 45%; top: -45%;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  animation: pull-current 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pull-current { from { top: -45%; } to { top: 100%; } }
.pull__chev { width: 18px; height: 18px; color: var(--text-2); margin-top: 6px; animation: pull-chev 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pull-chev { 0%, 55% { opacity: 0.45; } 78% { opacity: 1; color: var(--gold); } 100% { opacity: 0.45; } }
#top.hero-short { padding-bottom: 40px; }
.section.after-pull { padding-top: 56px; }
@media (prefers-reduced-motion: reduce) { .pull__line::after, .pull__chev { animation: none; } .pull__line::after { top: 55%; } }

/* --- stage spine: connects the four badges, draws in as the stages reveal --- */
body.lit .stages { position: relative; }
body.lit .stages::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 30px; width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(var(--gold-rgb),0.35) 60%, rgba(255,255,255,0.12));
  transform: scaleY(0); transform-origin: top; border-radius: 2px; }
body.lit .stages:has(.stage.is-in)::before { animation: spine-draw 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes spine-draw { to { transform: scaleY(1); } }
body.lit .stage__n { position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--bg-base); }
@media (prefers-reduced-motion: reduce) { body.lit .stages::before { transform: none; animation: none; } }

/* --- prep sheet: the page's paper moment --- */
.prep-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .prep-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; } }
.prep-intro .h-section { margin-bottom: 14px; }
.prep-sheet { padding: 0; overflow: hidden; }
.prep-sheet__head { display: flex; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid rgba(var(--ink-rgb),0.12);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.prep-list { list-style: none; margin: 0; padding: 8px 0; counter-reset: none; }
.prep-item { display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start; padding: 18px 24px; }
.prep-item + .prep-item { border-top: 1px solid rgba(var(--ink-rgb),0.08); }
.prep-item p { margin: 0; color: var(--ink-2); font-size: 0.98em; line-height: 1.55; }
.prep-item p strong { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 700; }
.prep-box { width: 26px; height: 26px; margin-top: 2px; border-radius: 7px; border: 1.5px solid rgba(var(--ink-rgb),0.3); background: var(--paper-white);
  display: grid; place-items: center; transition: border-color .3s ease, background-color .3s ease; }
.prep-box svg { width: 15px; height: 15px; stroke: var(--ink); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 22; stroke-dashoffset: 22; }
.prep-sheet.is-in .prep-box { border-color: var(--ink); background: var(--paper-tick); }
.prep-sheet.is-in .prep-box svg { animation: prep-tick 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.prep-sheet.is-in .prep-item:nth-child(1) .prep-box { transition-delay: 0.35s; } .prep-sheet.is-in .prep-item:nth-child(1) .prep-box svg { animation-delay: 0.35s; }
.prep-sheet.is-in .prep-item:nth-child(2) .prep-box { transition-delay: 0.95s; } .prep-sheet.is-in .prep-item:nth-child(2) .prep-box svg { animation-delay: 0.95s; }
.prep-sheet.is-in .prep-item:nth-child(3) .prep-box { transition-delay: 1.55s; } .prep-sheet.is-in .prep-item:nth-child(3) .prep-box svg { animation-delay: 1.55s; }
@keyframes prep-tick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .prep-box { border-color: var(--ink); background: var(--paper-tick); } .prep-box svg { stroke-dashoffset: 0; animation: none !important; } }

/* ---------- Heading font (brand.json typography.heading_font; same as body when the brand has one face) ---------- */
.h-hero, .h-section, .h-card, .compare__title, .stage__title, .ledger__fig, .stat__num { font-family: var(--font-heading); }

/* ---------- Proposal 017 (2026-09-04): the testimonial figure's margin lives here, not on the element ---------- */
figure.vt { margin: 0; }

/* ---------- Proposal 072: Vidalytics testimonial cards, and the §2 role video card + pop-up ---------- */
.vt__role { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.vt__frame.is-playing { cursor: default; }
.vt__frame.is-playing:hover { transform: none; box-shadow: var(--shadow-card); }

.role-video {
  display: grid; gap: 18px; align-items: center;
  max-width: 880px; margin-left: auto; margin-right: auto;
  padding: 14px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
  border: 1px solid var(--border-card); box-shadow: var(--shadow-card);
}
@media (min-width: 720px) {
  .role-video { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; padding: 16px 32px 16px 16px; }
}
.role-video__thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  padding: 0; border: 1px solid var(--border-subtle); border-radius: var(--radius);
  background: #000; cursor: pointer; box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.role-video__thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.role-video__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.role-video__thumb:hover img { transform: scale(1.03); }
.role-video__thumb.is-playing { cursor: default; transform: none; }
.role-video__text { padding: 0 6px 6px; }
@media (min-width: 720px) { .role-video__text { padding: 0; } }
.role-video__label { margin: 0 0 8px; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--text-1); }
.role-video__meta { margin: 0; font-size: 14px; color: var(--text-2); }

.vmodal {
  padding: 0; border: 0; background: transparent; color: var(--text-1);
  width: min(1100px, calc(100vw - 32px)); max-width: none; overflow: visible;
}
.vmodal::backdrop { background: rgba(5, 6, 8, 0.84); }
.vmodal__box { position: relative; padding-top: 52px; }
.vmodal__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border-radius: var(--radius); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__close {
  position: absolute; top: 0; right: 0; width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.08); color: var(--text-1);
  transition: background-color .15s ease;
}
.vmodal__close:hover { background: rgba(255, 255, 255, 0.16); }
.vmodal__close svg { width: 18px; height: 18px; }
html.vmodal-open { overflow: hidden; }

/* §2 with a video: the two columns stack on the left, the video card sits on the right (Nic, 2026-10-20) */
.role-media { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: center; }
.role-media > .split, .role-media > .role-video { margin-top: 0; }
@media (min-width: 960px) {
  .role-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px; }
  .role-media .split { grid-template-columns: 1fr; }
  .role-media .split__col { padding: 30px 32px; }
  .role-media .split__col + .split__col { border-left: 0; border-top: 1px solid var(--border-subtle); }
  .role-media .role-video { grid-template-columns: 1fr; gap: 16px; max-width: none; padding: 14px 14px 20px; }
  .role-media .role-video__text { padding: 0 8px; }
  .role-media .role-video__label { font-size: 1.35rem; }
}
