/* =====================================================================
   Baron & Cabot Sales Academy — design system
   Ported from the company's own report style ("The Confirmation Gap"):
   editorial sheet, Archivo display / Source Serif 4 body / JetBrains Mono
   numbers, hairline panels (3px radius, no shadows), mono kickers, and
   the good / hold / loss signal colours. Follows the system theme exactly
   like the reference (dark on a dark OS), with a header override toggle.
   Legacy class names from the earlier build are aliased so older pages
   (client presentation, deck pages, search) keep working.
   ===================================================================== */
:root {
  --ground: #F5F7F9; --surface: #FFFFFF; --sunken: #EDF1F5;
  --ink: #111820; --ink-soft: #3D4A57; --muted: #6A7784;
  --hairline: #D8E0E8; --hairline-strong: #BFCAD6;
  --accent: #1B4F72; --accent-soft: #E3ECF3;
  --loss: #A63A28; --loss-soft: #F2DFDA;
  --good: #17654C; --good-soft: #DCEDE5;
  --hold: #8A6A1F; --hold-soft: #F3EAD3;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 3px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0D1218; --surface: #151C24; --sunken: #1B242E;
    --ink: #E9EFF4; --ink-soft: #C0CCD8; --muted: #8B99A7;
    --hairline: #263039; --hairline-strong: #38454F;
    --accent: #7FB2DA; --accent-soft: #1A2A38;
    --loss: #E0836E; --loss-soft: #33211D;
    --good: #57C79B; --good-soft: #142A23;
    --hold: #D8B45F; --hold-soft: #2C2517;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0D1218; --surface: #151C24; --sunken: #1B242E;
  --ink: #E9EFF4; --ink-soft: #C0CCD8; --muted: #8B99A7;
  --hairline: #263039; --hairline-strong: #38454F;
  --accent: #7FB2DA; --accent-soft: #1A2A38;
  --loss: #E0836E; --loss-soft: #33211D;
  --good: #57C79B; --good-soft: #142A23;
  --hold: #D8B45F; --hold-soft: #2C2517;
  color-scheme: dark;
}
:root {
  /* legacy aliases (older templates) */
  --navy: #101820; --navy-2: #182230; --teal: var(--accent); --gold: var(--hold);
  --gold-soft: var(--hold-soft); --green: var(--good); --green-soft: var(--good-soft);
  --red: var(--loss); --red-soft: var(--loss-soft); --teal-soft: var(--accent-soft);
  --light: var(--ground); --stripe: var(--hairline); --white: var(--surface);
  --serif: var(--display); --sans: var(--body); --radius: var(--r);
  --shadow: none; --shadow-lg: none;
  --hero-bg: #101820; --hero-bg-2: #182230; --hero-ink: #E9EFF4; --hero-muted: #A9B7C4;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.1rem, 5.4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.022em; }
h2 { font-weight: 600; font-size: 1.32rem; letter-spacing: -0.012em; }
h3 { font-weight: 600; font-size: 1rem; }
p { margin: 0; } p + p { margin-top: .85em; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.meta { color: var(--muted); font-size: .88rem; }
.muted { color: var(--muted); }

/* ── sheet / masthead ─────────────────────────────────── */
.sheet { max-width: 980px; margin: 0 auto; padding: 48px 28px 96px; display: flex; flex-direction: column; gap: 52px; }
.sheet.wide { max-width: 1180px; }
.masthead { display: flex; flex-direction: column; gap: 18px; }
.kicker { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 18px; }
.kicker b { color: var(--accent); font-weight: 700; }
.standfirst { font-size: 1.18rem; line-height: 1.55; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.standfirst strong { color: var(--ink); font-weight: 600; }
.rule { height: 3px; background: var(--ink); width: 68px; border-radius: 2px; }
.sheet > section, section.block { display: flex; flex-direction: column; gap: 18px; }
.sec-head { display: flex; flex-direction: column; gap: 6px; }
.sec-head.row { flex-direction: row; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.sec-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.prose p { max-width: 68ch; }
.window { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }

/* ── header ───────────────────────────────────────────── */
header.site { background: var(--ground); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 20; }
header.site .topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 28px; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand-mark { width: 30px; height: 30px; border-radius: var(--r); background: var(--ink); color: var(--ground); font-family: var(--mono); font-weight: 700; font-size: 11px; display: grid; place-items: center; letter-spacing: .02em; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: .98rem; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; }
.brand-word span { color: var(--hold); }
.brand-word em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 8px; font-family: var(--mono); font-size: .8rem; }
.nav-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
header.site nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
header.site nav a { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
header.site nav a:hover, header.site nav a.active { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.who { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.theme-toggle { border: 1px solid var(--hairline-strong); background: transparent; color: var(--ink-soft); height: 28px; padding: 0 10px; border-radius: var(--r); cursor: pointer; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
footer.site { text-align: center; color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 30px 0 40px; border-top: 1px solid var(--hairline); }

/* ── buttons / tags / forms ───────────────────────────── */
.btn, .search-box button { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--ground); border: 1px solid var(--ink); padding: 11px 18px; border-radius: var(--r); font-family: var(--display); font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none !important; transition: opacity .15s, transform .12s; white-space: nowrap; }
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn.secondary, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn.secondary:hover { border-color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn.accent, :root:not([data-theme="light"]) .btn.accent { color: #0D1218; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn.accent { color: #fff; } }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.small { padding: 7px 12px; font-size: .8rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.tag, .action-tag, .chip { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; white-space: nowrap; font-weight: 500; background: var(--sunken); color: var(--ink-soft); }
.tag.good, .tag-good { background: var(--good-soft); color: var(--good); }
.tag.loss, .tag-now { background: var(--loss-soft); color: var(--loss); }
.tag.hold, .tag-next, .chip.gold { background: var(--hold-soft); color: var(--hold); }
.tag.accent, .tag-then { background: var(--accent-soft); color: var(--accent); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea { font-family: var(--body); font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r); padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
label.lbl { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.alert { border-left: 3px solid var(--loss); background: var(--loss-soft); color: var(--loss); padding: 12px 14px; font-size: .92rem; border-radius: var(--r); }

/* ── panels (verdict card), paths + bars ──────────────── */
.verdict, .panel, .card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.card { gap: 10px; padding: 20px 22px; }
.card.link-card { color: inherit; } .card.link-card:hover { border-color: var(--accent); text-decoration: none; }
.verdict-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.paths { display: flex; flex-direction: column; gap: 22px; }
.path { display: grid; grid-template-columns: 1fr; gap: 9px; }
.path-label { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.path-name { font-family: var(--display); font-weight: 600; font-size: .98rem; }
.path-name span { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .9rem; }
.path-rate { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rate-bad { color: var(--loss); } .rate-good { color: var(--good); } .rate-hold { color: var(--hold); }
.bar { height: 30px; background: var(--sunken); border-radius: 2px; overflow: hidden; display: flex; }
.bar.thin { height: 10px; }
.bar-fill { display: flex; align-items: center; padding-left: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; }
.bar.thin .bar-fill { padding: 0; }
.fill-good { background: var(--good); } .fill-accent { background: var(--accent); } .fill-hold { background: var(--hold); color: #111820; }
.fill-lost { background: repeating-linear-gradient(-45deg, var(--loss-soft), var(--loss-soft) 5px, transparent 5px, transparent 10px); color: var(--loss); border-left: 1px solid var(--loss); }
.bar-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.verdict-foot { border-top: 1px solid var(--hairline); padding-top: 20px; font-size: 1.02rem; color: var(--ink-soft); max-width: 68ch; }
.verdict-foot strong, .callout strong { color: var(--ink); font-weight: 600; }
.callout { border-left: 3px solid var(--accent); background: var(--surface); padding: 16px 20px; font-size: .98rem; color: var(--ink-soft); }
.callout.loss { border-color: var(--loss); } .callout.good { border-color: var(--good); } .callout.hold { border-color: var(--hold); }

/* ── funnel stages / period break ─────────────────────── */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.funnel.n3 { grid-template-columns: repeat(3, 1fr); } .funnel.n5 { grid-template-columns: repeat(5, 1fr); } .funnel.n6 { grid-template-columns: repeat(6, 1fr); }
.stage { background: var(--surface); padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
a.stage { color: inherit; } a.stage:hover { background: var(--sunken); text-decoration: none; }
.stage-n { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .1em; }
.stage-v { font-family: var(--mono); font-weight: 700; font-size: 1.72rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stage-l { font-family: var(--display); font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.stage-p { font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage.terminal .stage-v, .stage-v.loss { color: var(--loss); } .stage-v.good { color: var(--good); } .stage-v.hold { color: var(--hold); } .stage-v.accent { color: var(--accent); }
.break { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.period { background: var(--surface); padding: 20px 18px; display: flex; flex-direction: column; gap: 5px; }
.period-when { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.period-rate { font-family: var(--mono); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.period-sub { font-size: .86rem; color: var(--muted); font-family: var(--mono); }
.period.after .period-rate { color: var(--loss); } .period.good .period-rate { color: var(--good); }
.period.marker { background: var(--sunken); justify-content: center; } .period.marker .period-when { color: var(--accent); } .period.marker p { font-size: .9rem; color: var(--ink-soft); }

/* ── data tables ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline-strong); white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--hairline); font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-soft); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.day, table.data td.ink { color: var(--ink); }
table.data td.num, table.data th.num { text-align: right; }
table.data td.src-name, table.data td.text { font-family: var(--body); color: var(--ink); white-space: normal; min-width: 300px; line-height: 1.45; }
table.data tr.truth td { background: var(--accent-soft); } table.data tr.truth td.src-name { font-weight: 600; }
table.data tr.warn td { background: var(--loss-soft); }
.t-good { color: var(--good) !important; font-weight: 500; } .t-bad { color: var(--loss) !important; font-weight: 500; } .t-hold { color: var(--hold) !important; }
.minibar { display: inline-block; vertical-align: middle; height: 7px; background: var(--accent); border-radius: 1px; min-width: 1px; }
.minibar.good { background: var(--good); } .minibar.loss { background: var(--loss); } .minibar.hold { background: var(--hold); } .minibar.zero { background: var(--hairline-strong); width: 3px; }
td.trackcell, th.trackcell { width: 22%; min-width: 170px; padding-right: 20px; }
td.trackcell .minibar { max-width: calc(100% - 56px); }
.cells { display: inline-flex; gap: 2px; vertical-align: middle; }
.cell { width: 13px; height: 13px; border-radius: 2px; display: inline-block; background: var(--sunken); border: 1px solid var(--hairline-strong); }
.cell.completed { background: var(--good); border-color: var(--good); } .cell.failed { background: var(--loss); border-color: var(--loss); }
.cell.unlocked, .cell.in_progress { background: var(--hold); border-color: var(--hold); } .cell.gap { width: 6px; border: none; background: transparent; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); align-items: center; }
.legend i { margin-right: 6px; }

/* ── actions list ─────────────────────────────────────── */
.actions { display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.action { background: var(--surface); padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.action h3 { font-family: var(--display); font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.action p { font-size: .95rem; color: var(--ink-soft); max-width: 70ch; }
.feed .ev { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: .9rem; } .feed .ev:first-child { border-top: none; padding-top: 0; }
.feed .ev .t { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 3px; }
.empty { color: var(--muted); font-style: italic; }

/* ── learning path ────────────────────────────────────── */
.level { border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.level-head { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--hairline); background: var(--sunken); }
.level-num { font-family: var(--mono); font-weight: 700; font-size: 1.6rem; color: var(--accent); letter-spacing: -.03em; }
.level.completed .level-num { color: var(--good); } .level.locked .level-num { color: var(--muted); }
.level-head h2 { font-size: 1.1rem; } .level-head p { color: var(--muted); font-size: .9rem; }
.level-head .count { font-family: var(--mono); font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.level.locked .level-body { opacity: .5; }
.mod { display: grid; grid-template-columns: 26px 1fr auto; gap: 16px; align-items: center; padding: 13px 24px; border-top: 1px solid var(--hairline); }
.mod:first-child { border-top: none; }
.mod .dot { width: 26px; height: 26px; border-radius: 2px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; background: var(--sunken); color: var(--muted); border: 1px solid var(--hairline-strong); }
.mod.completed .dot { background: var(--good); color: #fff; border-color: var(--good); }
.mod.unlocked .dot, .mod.in_progress .dot { background: var(--hold); color: #111820; border-color: var(--hold); }
.mod.failed .dot { background: var(--loss); color: #fff; border-color: var(--loss); }
.mod .t b { font-family: var(--display); font-weight: 600; font-size: .95rem; display: block; }
.mod .t span { color: var(--muted); font-size: .84rem; font-family: var(--mono); }
.mod.locked { opacity: .55; }
.group { border-top: 1px solid var(--hairline); }
.group > summary { list-style: none; cursor: pointer; padding: 13px 24px; display: grid; grid-template-columns: 26px 1fr auto; gap: 16px; align-items: center; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary .dot { width: 26px; height: 26px; border-radius: 2px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; }
.group.completed > summary .dot { background: var(--good-soft); color: var(--good); }
.group > summary b { font-family: var(--display); font-weight: 600; font-size: .95rem; display: block; }
.group > summary .count { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.group .mod { padding-left: 52px; background: var(--ground); }
.ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--good) calc(var(--p) * 1%), var(--sunken) 0); display: grid; place-items: center; flex-shrink: 0; }
.ring > b { width: 72px; height: 72px; border-radius: 50%; background: var(--ground); display: grid; place-items: center; font-family: var(--mono); font-size: 1.05rem; }
.head-split { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.head-split.home { grid-template-columns: 1.1fr .9fr; align-items: start; }
.head-split.dash { grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 1000px) { .head-split.home, .head-split.dash { grid-template-columns: 1fr; } }

/* ── module reader ────────────────────────────────────── */
.reader { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.reader aside { position: sticky; top: 76px; }
.toc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 8px 0; max-height: calc(100vh - 110px); overflow: auto; }
.toc a { display: block; padding: 7px 16px; font-family: var(--display); font-size: .82rem; color: var(--ink-soft); border-left: 2px solid transparent; }
.toc a.stage { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 12px; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }
.toc a.seen::after { content: " ✓"; color: var(--good); }
.slide { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 36px 40px; min-height: 420px; animation: fadeUp .3s ease both; }
.slide .stage-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--hold); margin-bottom: 10px; }
.slide h2 { font-size: 1.6rem; margin-bottom: 16px; letter-spacing: -.02em; }
.slide ul.bullets { padding: 0; list-style: none; margin: 0; }
.slide ul.bullets li { padding: 11px 0 11px 22px; border-top: 1px solid var(--hairline); position: relative; font-size: 1.02rem; }
.slide ul.bullets li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border-radius: 1px; background: var(--hold); }
.slide blockquote { margin: 18px 0 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-style: italic; color: var(--ink-soft); }
.slide table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .95rem; }
.slide th { text-align: left; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--hairline-strong); }
.slide td { padding: 9px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.slide .imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.slide .imgs figure { margin: 0; } .slide .imgs img { width: 100%; border-radius: var(--r); border: 1px solid var(--hairline); } .slide .imgs figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; font-family: var(--mono); }
.slide.cover { background: #0D1218; color: #E9EFF4; border-color: #263039; }
.slide.cover h2 { color: #fff; font-size: 2.2rem; } .slide.cover .stage-tag { color: #D8B45F; } .slide.cover .meta { color: #8B99A7; }
.slide.cover .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; } .slide.cover .facts span { border: 1px solid #38454F; padding: 8px 12px; border-radius: 2px; font-size: .9rem; font-family: var(--mono); }
.slide.divider { background: var(--sunken); text-align: center; display: grid; place-items: center; } .slide.divider h2 { font-size: 2rem; } .slide.divider p { color: var(--muted); max-width: 56ch; }
.slide.test { text-align: center; display: grid; place-items: center; } .slide.test p { max-width: 50ch; margin: 0 auto 18px; }
.slide-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.slide-nav .pos { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.doc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 44px 52px; font-size: 1.04rem; line-height: 1.7; }
.doc > * { max-width: 70ch; }
.doc h2, .doc h3, .doc h4 { margin-top: 1.9em; margin-bottom: .5em; } .doc h2 { font-size: 1.3rem; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }
.doc p { margin: 0 0 1em; }
.doc .box, .doc .callout { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: var(--r); margin: 20px 0; }
.doc .box.dark { background: var(--ink); color: var(--ground); border-color: var(--hold); } .doc .box.dark p { color: var(--ground); } .doc .box.dark .box-t { color: var(--hold); }
.doc .box-t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.doc blockquote { border-left: 3px solid var(--hold); margin: 20px 0; padding: 12px 20px; font-style: italic; color: var(--ink-soft); background: var(--hold-soft); border-radius: var(--r); } .doc cite { display: block; font-style: normal; font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .94rem; } .doc th, .doc td { border-bottom: 1px solid var(--hairline); padding: 8px 10px; text-align: left; vertical-align: top; } .doc th { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.doc .who { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--hold-soft); color: var(--hold); padding: 2px 8px; border-radius: 2px; margin-right: 6px; }
.doc .rule { border-top: 1px solid var(--hairline); margin: 24px 0; height: 0; width: auto; background: none; } .doc .src { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.doc img { max-width: 100%; border-radius: var(--r); }
.doc details { border: 1px solid var(--hairline); border-radius: var(--r); padding: 10px 16px; margin: 12px 0; } .doc summary { cursor: pointer; font-family: var(--display); font-weight: 600; }
.doc .ex, .doc .exercise, .doc .wbsec { background: var(--sunken); border-radius: var(--r); padding: 16px 20px; margin: 16px 0; }
.sticky-cta { position: sticky; bottom: 14px; margin-top: 22px; background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sticky-cta .lead { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .03em; } .sticky-cta .lead b { color: var(--ink); font-family: var(--display); font-size: .95rem; letter-spacing: 0; margin-right: 10px; }

/* ── tests / game ─────────────────────────────────────── */
.test-wrap { max-width: 900px; margin: 0 auto; }
.qcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 30px 34px; animation: fadeUp .3s ease both; }
.qcard h2 { margin: 8px 0 20px; font-size: 1.35rem; line-height: 1.35; }
.qcard p { max-width: 70ch; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--hairline-strong); border-radius: var(--r); padding: 13px 16px; cursor: pointer; background: var(--surface); text-align: left; font: inherit; color: var(--ink); transition: border-color .15s, background .15s; }
.opt:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.opt .ltr { font-family: var(--mono); font-weight: 700; color: var(--accent); width: 20px; flex-shrink: 0; font-size: .85rem; padding-top: 2px; }
.opt.correct { border-color: var(--good); background: var(--good-soft); } .opt.wrong { border-color: var(--loss); background: var(--loss-soft); }
.opt.removed { opacity: .25; text-decoration: line-through; pointer-events: none; } .opt:disabled { cursor: default; }
.why { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); font-size: .95rem; display: none; border-left: 3px solid; }
.why.show { display: block; animation: fadeUp .25s ease both; }
.why.good { background: var(--good-soft); color: var(--good); border-color: var(--good); } .why.loss { background: var(--loss-soft); color: var(--loss); border-color: var(--loss); }
.test-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.test-top .pos { font-family: var(--mono); color: var(--muted); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.pbar { height: 6px; border-radius: 1px; background: var(--sunken); overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--accent); transition: width .5s cubic-bezier(.4,0,.2,1); }
.step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; }
.result-hero { text-align: center; padding: 6px 0 20px; } .result-hero .big { font-family: var(--mono); font-size: 3rem; font-weight: 700; letter-spacing: -.03em; }
.result-hero.good .big { color: var(--good); } .result-hero.loss .big { color: var(--loss); } .result-hero p { max-width: none; }
.wrong-list .item { padding: 10px 0; border-top: 1px solid var(--hairline); font-size: .92rem; } .wrong-list .item b { display: block; } .wrong-list .item span { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.game { display: grid; grid-template-columns: 1fr 210px; gap: 18px; align-items: start; }
.ladder { background: #0D1218; color: #E9EFF4; border: 1px solid #263039; border-radius: var(--r); padding: 8px 0; font-family: var(--mono); font-size: 11.5px; }
.ladder .rung { display: flex; justify-content: space-between; padding: 5px 16px; color: #8B99A7; }
.ladder .rung.safe { color: #E9EFF4; font-weight: 700; } .ladder .rung.passed { color: #57C79B; }
.ladder .rung.current { background: var(--hold); color: #111820; font-weight: 700; margin: 0 8px; padding: 5px 8px; border-radius: 2px; }
.lifelines { display: flex; gap: 6px; flex-wrap: wrap; }
.lifelines button { border: 1px solid var(--hairline-strong); background: transparent; color: var(--ink); border-radius: var(--r); padding: 6px 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.lifelines button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); } .lifelines button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.timer { display: flex; align-items: center; gap: 10px; font-family: var(--mono); margin-top: 6px; } .timer .track { flex: 1; height: 6px; background: var(--sunken); border-radius: 1px; overflow: hidden; } .timer .fill { height: 100%; background: var(--good); transition: width 1s linear, background .3s; }
.timer.warn .fill { background: var(--loss); } .timer .n { width: 34px; text-align: right; font-weight: 700; }
.helper { margin-top: 12px; background: var(--hold-soft); color: var(--hold); padding: 12px 14px; border-radius: var(--r); font-size: .92rem; display: none; } .helper.show { display: block; }
.audience { display: grid; gap: 6px; margin-top: 6px; } .audience .row { display: grid; grid-template-columns: 22px 1fr 44px; gap: 8px; align-items: center; font-family: var(--mono); font-size: .8rem; } .audience .track { height: 8px; background: rgba(0,0,0,.12); border-radius: 1px; overflow: hidden; } .audience .fill { height: 100%; background: var(--hold); }

/* ── legacy content pages (decks, search, client presentation) ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
main.container { padding-top: 32px; padding-bottom: 64px; }
.hero { background: var(--ink); color: var(--ground); padding: 40px 0 44px; border-bottom: 3px solid var(--hold); }
.hero h1 { color: var(--ground); font-size: 2rem; margin-bottom: 8px; } .hero p { color: var(--muted); max-width: 680px; } .hero a { color: var(--hairline-strong); }
.hero .stats { display: flex; gap: 32px; margin-top: 22px; flex-wrap: wrap; }
.hero .stat .n { font-size: 1.7rem; font-weight: 700; color: var(--hold); font-family: var(--mono); }
.hero .stat .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--mono); }
.hero-lg { padding: 88px 0 64px; position: relative; overflow: hidden; } .hero-lg #bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; pointer-events: none; } .hero-inner { position: relative; z-index: 1; }
.eyebrow { color: var(--hold); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.hero-lg h1 { font-size: 2.5rem; max-width: 760px; } .hero-lg p { font-size: 1.05rem; margin-top: 12px; }
.hero-actions { display: flex; gap: 16px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.btn-ghost { color: var(--ground); border: 1px solid var(--hairline-strong); padding: 11px 18px; border-radius: var(--r); font-family: var(--display); font-weight: 600; font-size: .92rem; } .btn-ghost:hover { border-color: var(--hold); color: var(--hold); text-decoration: none; }
.breadcrumb { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; } .breadcrumb .sep { margin: 0 6px; } .breadcrumb a { color: var(--muted); }
.grid { display: grid; gap: 14px; } .grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } .grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.feature-strip { margin-bottom: 40px; }
.feature-tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 22px 20px; color: inherit; display: block; } .feature-tile:hover { border-color: var(--accent); text-decoration: none; }
.feature-icon { width: 40px; height: 40px; margin-bottom: 12px; border-radius: var(--r); background: var(--accent-soft); display: grid; place-items: center; font-size: 1.2rem; }
.feature-tile h4 { margin: 0 0 6px; } .feature-tile p { color: var(--muted); font-size: .88rem; }
.market-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 22px; } .market-flag { font-size: 1.6rem; margin-bottom: 8px; }
.market-link { display: block; font-family: var(--display); font-size: .88rem; font-weight: 600; color: var(--accent); padding: 6px 0; border-top: 1px solid var(--hairline); } .market-link:first-of-type { border-top: none; margin-top: 4px; }
.box { border-radius: var(--r); padding: 16px 18px; margin: 14px 0; border-left: 3px solid; }
.box .box-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.box.context { background: var(--accent-soft); border-color: var(--accent); } .box.context .box-label { color: var(--accent); }
.box.selling_point { background: var(--hold-soft); border-color: var(--hold); } .box.selling_point .box-label { color: var(--hold); }
.box.how_to_sell { background: var(--good-soft); border-color: var(--good); } .box.how_to_sell .box-label { color: var(--good); }
.box.other { background: var(--sunken); border-color: var(--muted); }
.slide-block { padding: 20px 0; border-top: 1px solid var(--hairline); } .slide-block:first-child { border-top: none; } .slide-block h4 { margin: 0 0 8px; font-size: 1.02rem; } .slide-block p { margin: 0 0 10px; }
.objection { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 16px 18px; margin: 12px 0; } .objection .q { font-style: italic; margin-bottom: 10px; } .objection .q::before { content: "“"; color: var(--loss); font-weight: 700; }
table.facts { width: 100%; border-collapse: collapse; margin: 10px 0; } table.facts td { padding: 7px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; } table.facts td.k { color: var(--muted); font-size: .85rem; width: 38%; padding-right: 14px; font-family: var(--mono); } table.facts td.v { font-weight: 500; }
table.transport { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .92rem; } table.transport th { text-align: left; color: var(--muted); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; padding-bottom: 6px; border-bottom: 1px solid var(--hairline-strong); } table.transport td { padding: 8px 0; border-bottom: 1px solid var(--hairline); } table.transport td.t { color: var(--accent); font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.evidence { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-top: 8px; } .evidence b { color: var(--ink); }
.highlight-card { background: var(--surface); border-left: 3px solid var(--hold); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; }
.search-box { display: flex; gap: 10px; margin-bottom: 24px; } .search-box input[type="text"] { flex: 1; }
.filters { margin-bottom: 18px; } .filters a { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; background: var(--surface); border: 1px solid var(--hairline); color: var(--muted); margin: 0 6px 6px 0; } .filters a.active { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.result { padding: 16px 0; border-top: 1px solid var(--hairline); } .result:first-child { border-top: none; } .result .kind { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--hold); } .result .title { font-weight: 600; margin: 4px 0; font-family: var(--display); } .result .snip { color: var(--muted); font-size: .93rem; } .result mark { background: var(--hold-soft); color: var(--hold); padding: 0 2px; }
.ask-answer { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 22px; white-space: pre-wrap; } .ask-sources { margin-top: 18px; } .ask-sources .src { font-size: .85rem; padding: 10px 0; border-top: 1px solid var(--hairline); }
.stat .n { transition: color .2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .45s ease both; } .fade-up.d1 { animation-delay: .06s; } .fade-up.d2 { animation-delay: .12s; } .fade-up.d3 { animation-delay: .18s; }
body.present-body { background: radial-gradient(1200px 600px at 50% -10%, #1c2a3a 0%, #101820 55%); min-height: 100vh; color: #E9EFF4; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.present-wrap { max-width: 620px; width: 100%; } .present-brand { text-align: center; margin-bottom: 22px; font-family: var(--display); color: #fff; letter-spacing: .06em; font-weight: 700; } .present-brand span { color: #D8B45F; }
.progress-track { height: 6px; border-radius: 1px; background: rgba(255,255,255,.14); margin-bottom: 28px; overflow: hidden; } .progress-fill { height: 100%; background: #D8B45F; transition: width .4s cubic-bezier(.4,0,.2,1); width: 20%; }
.present-card { background: #fff; color: #111820; border-radius: 4px; padding: 34px 32px; } .present-card h2, .present-card h3 { color: #111820; } .present-card .hint, .step .hint { color: #6A7784; margin: 0 0 20px; font-size: .92rem; }
.present-card input { background: #fff; color: #111820; border-color: #BFCAD6; margin-bottom: 14px; }
.step { display: none; } .step.active { display: block; animation: fadeUp .35s ease both; } .step h2 { margin: 0 0 6px; font-size: 1.4rem; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.choice { border: 1px solid #BFCAD6; border-radius: 3px; padding: 12px 16px; cursor: pointer; font-size: .95rem; font-weight: 500; user-select: none; background: #fff; color: #111820; } .choice:hover { border-color: #1B4F72; background: #E3ECF3; } .choice.selected { border-color: #1B4F72; background: #1B4F72; color: #fff; }
.step-actions .btn-back { background: none; border: none; color: #6A7784; font-weight: 600; cursor: pointer; font-size: .9rem; font-family: var(--display); }
.present-card .btn { background: #1B4F72; border-color: #1B4F72; color: #fff; }
@keyframes popIn { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
.success-badge { width: 64px; height: 64px; border-radius: 50%; background: #17654C; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 18px; animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both; }
.staff-pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--hairline-strong); border-radius: var(--r); color: var(--ink) !important; text-decoration: none !important; } .staff-pill:hover { border-color: var(--accent); color: var(--accent) !important; }
.login-wrap { max-width: 440px; margin: 40px auto; display: flex; flex-direction: column; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.kpi { background: var(--surface); padding: 16px 16px 14px; } .kpi .v { font-family: var(--mono); font-size: 1.72rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; } .kpi .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.kpi .v.good { color: var(--good); } .kpi .v.loss { color: var(--loss); } .kpi .v.hold { color: var(--hold); } .kpi .v.accent { color: var(--accent); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
canvas.chart { width: 100% !important; max-height: 280px; }

@media (max-width: 900px) {
  .reader { grid-template-columns: 1fr; } .reader aside { position: static; } .toc { max-height: 220px; }
  .two { grid-template-columns: 1fr; } .game { grid-template-columns: 1fr; } .head-split { grid-template-columns: 1fr; }
  .funnel, .funnel.n5, .funnel.n6 { grid-template-columns: repeat(2, 1fr); } .funnel.n3 { grid-template-columns: 1fr; }
  .doc { padding: 26px 22px; } .slide { padding: 26px 22px; } .sheet { padding: 32px 18px 72px; gap: 40px; }
  .level-head { grid-template-columns: 40px 1fr; } .level-head .count { grid-column: 2; }
}

/* ── landing page ─────────────────────────────────────── */
header.site nav.mainnav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
header.site nav.mainnav a { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
header.site nav.mainnav a:hover, header.site nav.mainnav a.active { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.hero-band { padding: 72px 0 64px; border-bottom: 1px solid var(--hairline); background: linear-gradient(180deg, var(--surface), var(--ground)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-grid .kicker { margin-bottom: 18px; } .hero-grid h1 { margin-bottom: 18px; } .hero-grid .hero-actions { margin-top: 26px; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--mono); font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hero-stats span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-visual { display: flex; flex-direction: column; gap: 10px; }
.lvl-card { display: block; background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 16px 18px; color: inherit; text-decoration: none !important; transition: transform .15s, border-color .15s; }
.lvl-card:hover { transform: translateX(4px); border-color: var(--accent); }
.lvl-card.l1 { border-left-color: var(--loss); } .lvl-card.l2 { border-left-color: var(--hold); } .lvl-card.l3 { border-left-color: var(--accent); } .lvl-card.done { border-left-color: var(--good); background: var(--good-soft); }
.lvl-n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lvl-t { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin: 2px 0; }
.lvl-d { color: var(--ink-soft); font-size: .92rem; }
.lvl-m { display: flex; gap: 14px; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.band { padding: 64px 0; border-bottom: 1px solid var(--hairline); } .band.alt { background: var(--surface); } .band .sec-head { margin-bottom: 26px; }
.cta-band { text-align: center; padding: 64px 0 72px; border-bottom: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.step-card { background: var(--surface); padding: 22px 20px; color: inherit; display: block; } a.step-card:hover { background: var(--sunken); text-decoration: none; }
.step-n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); margin-bottom: 10px; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 6px; } .step-card p { color: var(--ink-soft); font-size: .92rem; }
.cur-level { margin-bottom: 34px; } .cur-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; } .cur-head h3 { font-size: 1.15rem; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mod-card { background: var(--ground); border: 1px solid var(--hairline); border-radius: var(--r); padding: 16px 18px; color: inherit; display: block; }
.band.alt .mod-card { background: var(--ground); } .band:not(.alt) .mod-card, .sheet .mod-card { background: var(--surface); }
a.mod-card:hover { border-color: var(--accent); text-decoration: none; }
.mod-card.wide { grid-column: 1 / -1; }
.mod-kind { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mod-card h4 { font-size: 1rem; margin-bottom: 4px; }
.mod-foot { display: flex; gap: 12px; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
footer.site { text-align: left; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: .9rem; padding: 0; }
.foot { max-width: 1180px; margin: 0 auto; padding: 40px 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot a { display: block; color: var(--ink-soft); padding: 3px 0; font-family: var(--display); font-size: .9rem; } .foot a:hover { color: var(--accent); }
.foot-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.foot-line { border-top: 1px solid var(--hairline); padding: 16px 28px 26px; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ── staff home / module extras ───────────────────────── */
.verdict.continue { border-left: 4px solid var(--accent); }
.continue-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.pbar > i.good { background: var(--good); } .pbar > i.hold { background: var(--hold); } .pbar > i.accent { background: var(--accent); }
.pbar.thin { height: 4px; }
.mod-status { text-align: right; } .mod-status .bar-note { margin-top: 6px; }
.read-end { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--hairline-strong); border-radius: var(--r); background: var(--sunken); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: none; }
.cert { border: 1px solid var(--hairline-strong); border-radius: var(--r); padding: 48px 56px; background: var(--surface); display: flex; flex-direction: column; gap: 26px; position: relative; }
.cert::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--hairline); border-radius: 2px; pointer-events: none; }
.cert-body { display: flex; flex-direction: column; gap: 14px; }
@media print { header.site, footer.site, .hero-actions { display: none !important; } .sheet { padding: 0; } }
@media (max-width: 1000px) { .hero-grid, .two-col, .foot { grid-template-columns: 1fr; } .steps { grid-template-columns: repeat(2, 1fr); } .continue-grid { grid-template-columns: 1fr; } .mod-status { text-align: left; } }

.stage-v.word { font-size: 1.15rem; font-family: var(--display); letter-spacing: -.01em; }

/* ── deck slides: market-deck content (paragraphs, boxes, objections, kv tables) ── */
.slide p { max-width: 68ch; margin: 0 0 .9em; }
.slide p.lede { font-size: 1.1rem; color: var(--ink); }
.slide h3.sub { font-size: .78rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.slide .box { margin: 16px 0; max-width: 74ch; }
.slide .objection { max-width: 74ch; }
.slide .objection .q { font-family: var(--display); font-weight: 600; font-style: normal; color: var(--ink); }
.slide table.kv td { padding: 9px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.slide table.kv td.k { color: var(--muted); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; width: 34%; }
.slide td.t { font-family: var(--mono); color: var(--accent); font-weight: 700; white-space: nowrap; }
.slide .credits { margin-top: 14px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.slide .evidence { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hairline); font-family: var(--mono); font-size: .72rem; color: var(--muted); line-height: 1.6; }
.slide.area { background: var(--sunken); }
.slide.area h2 { font-size: 1.9rem; }

/* The client presentation is deliberately a fixed light card on a dark
   ground, so pin the light tokens inside it. Without this, a viewer whose
   device is in dark mode gets dark-on-dark text: the card keeps its white
   background but its themed children (.highlight-card, .box, .choice)
   resolve to the dark palette. A client's OS theme must not change it. */
body.present-body .present-card {
  --ground: #F5F7F9; --surface: #FFFFFF; --sunken: #EDF1F5;
  --ink: #111820; --ink-soft: #3D4A57; --muted: #6A7784;
  --hairline: #D8E0E8; --hairline-strong: #BFCAD6;
  --accent: #1B4F72; --accent-soft: #E3ECF3;
  --good: #17654C; --good-soft: #DCEDE5;
  --hold: #8A6A1F; --hold-soft: #F3EAD3;
  --loss: #A63A28; --loss-soft: #F2DFDA;
  --teal: #1B4F72; --teal-soft: #E3ECF3; --gold: #8A6A1F; --gold-soft: #F3EAD3;
  --green: #17654C; --green-soft: #DCEDE5; --red: #A63A28; --red-soft: #F2DFDA;
  --stripe: #D8E0E8; --white: #FFFFFF; --light: #F5F7F9;
  color-scheme: light;
}
body.present-body .present-card .highlight-card { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-left: 4px solid var(--hold); }
body.present-body .present-card h2, body.present-body .present-card h3 { color: var(--ink); }

/* Content must never depend on an animation finishing to become readable —
   a client-facing page that fades in from opacity 0 is invisible if the
   animation is suppressed or throttled. Respect reduced-motion too. */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .slide, .qcard, .why.show, .step.active, .success-badge, .hero, main .card, main .grid > a {
    animation: none !important;
  }
}
