/* QuantVantage.ai: shared site styles (hybrid design, 2026-11).
 * GitHub's page structure and class names, with the infographic redesign's visual system:
 * light surfaces, Bricolage Grotesque headings, Public Sans text, mono figures, a full dark mode.
 * Contrast: every text colour below passes WCAG AA on its own surface in both themes.
 * Buttons use white text on a deep blue->green gradient (light) and dark text on a lighter one (dark).
 * Wordmark: the original #0052CC->#00FF00 gradient at large sizes (.brand-name, .wordmark),
 * a deeper, readable version of it in small text (.wordmark-sm), decision #12 option B.
 * Layout rule: nothing scrolls sideways inside a page on phones. Wide tables become stacked
 * rows (.stack-sm) or swipeable pages (.swipe); charts redraw to fit (qv-perf.js).
 */

:root {
    --blue: #0052CC;
    --blue-dark: #003D99;
    --green: #0A7A4F;
    --grad: linear-gradient(120deg, #0052CC 0%, #0B7A35 100%);
    --on-grad: #FFFFFF;
    --brand-grad: linear-gradient(135deg, #0052CC 0%, #00FF00 100%);
    --brand-grad-sm: linear-gradient(135deg, #0052CC 0%, #0B7A35 100%);
    --bg: #F4F7FB;
    --surface: #FFFFFF;
    --surface-2: #EAF0F8;
    --ink: #0D1726;
    --ink-2: #44506A;
    --ink-3: #5F6B85;
    --line: #DCE3EE;
    --figure: #0E6B88;
    --positive: #0A7A4F;
    --negative: #B42318;
    /* chart series (validated with the dataviz checks: lightness, chroma, CVD, contrast) */
    --c-spy: #B7791F;
    --c-qqq: #2F6BFF;
    --c-ga: #0E9F6E;
    --live-zone: rgba(14, 159, 110, 0.08);
    --warn: #9A5B00;
    --warn-bg: #FCEFD6;
    --ok: #0A7A4F;
    --ok-bg: #DCF5E8;
    --info: #0052CC;
    --info-bg: #E3ECFB;
    /* heatmap cells */
    --win: #0E9F6E; --loss: #C2410C; --flat: #D19A0A;
    /* story illustration */
    --wall: #E6EDF7; --wall-2: #D8E2F0; --floor: #CBD6E6;
    --desk: #A9805A; --desk-2: #8E6A48; --chair: #3C475C;
    --shirt: #2F6BFF; --shirt-2: #1F55D6; --pants: #2B3448;
    --skin: #E3AB85; --hair: #2A1F18; --shoe: #1A202C;
    --screen: #0B1424; --screen-ink: #8FA3C0;
    --bubble: #FFFFFF; --bubble-ink: #0D1726; --engine: #0E1B33; --panel: #FFFFFF;
    --sky: #BFE2F8; --sky-2: #E6F4FD; --cloud: #FFFFFF; --sun: #FFC94D;
    --sea: #4FA9DE; --sea-2: #9AD3F2; --sand: #F1DDB2; --sand-2: #E3C68F;
    --canopy: #F0765A; --lounger: #1F7AB8;
    /* free series */
    --s-orange: #B4460B; --s-myth: #5B4FC4;
    --v-math: #08774F; --v-half: #A16207; --v-myth: #6D5BD0;

    --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    --f-brand: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.625rem;
    --step-3: clamp(1.9rem, 3.2vw, 2.6rem);
    --step-4: clamp(2.3rem, 5vw, 3.8rem);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1180px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --blue: #7FA6FF; --blue-dark: #A8C3FF; --green: #3DCB93;
        --grad: linear-gradient(120deg, #6F9BFF 0%, #34C38F 100%); --on-grad: #08101C;
        --brand-grad-sm: linear-gradient(135deg, #6F9BFF 0%, #34C38F 100%);
        --bg: #0A111D; --surface: #101A2A; --surface-2: #17233A;
        --ink: #E8EEF7; --ink-2: #AAB5C9; --ink-3: #8D99B0; --line: #24324C;
        --figure: #5CC8E6; --positive: #3DCB93; --negative: #FF8A7A;
        --c-spy: #BA8526; --c-qqq: #4F84FF; --c-ga: #1FA373; --live-zone: rgba(31, 163, 115, 0.12);
        --warn: #F2B44C; --warn-bg: #3A2A0C; --ok: #3DCB93; --ok-bg: #0F3326; --info: #7FA6FF; --info-bg: #1A2A4A;
        --win: #1FA373; --loss: #E8743B; --flat: #E0B43A;
        --wall: #13213A; --wall-2: #182844; --floor: #0D182B;
        --desk: #7A5A3E; --desk-2: #63482F; --chair: #2A3448;
        --shirt: #4F84FF; --shirt-2: #3A6EE8; --pants: #1C2436;
        --skin: #D99E78; --hair: #120D0A; --shoe: #05080F;
        --screen: #050B16; --screen-ink: #7F93B3;
        --bubble: #1D2C47; --bubble-ink: #E8EEF7; --engine: #060E1E; --panel: #17233A;
        --sky: #0F2340; --sky-2: #1A3458; --cloud: #24406A; --sun: #E8B84A;
        --sea: #1B4F7C; --sea-2: #3274A8; --sand: #4B3E2A; --sand-2: #3E3322;
        --canopy: #C85E47; --lounger: #3C8FCB;
        --s-orange: #F08A4B; --s-myth: #9D93F0;
        --v-math: #2BA87A; --v-half: #B97E17; --v-myth: #8F80EE;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --blue: #7FA6FF; --blue-dark: #A8C3FF; --green: #3DCB93;
    --grad: linear-gradient(120deg, #6F9BFF 0%, #34C38F 100%); --on-grad: #08101C;
    --brand-grad-sm: linear-gradient(135deg, #6F9BFF 0%, #34C38F 100%);
    --bg: #0A111D; --surface: #101A2A; --surface-2: #17233A;
    --ink: #E8EEF7; --ink-2: #AAB5C9; --ink-3: #8D99B0; --line: #24324C;
    --figure: #5CC8E6; --positive: #3DCB93; --negative: #FF8A7A;
    --c-spy: #BA8526; --c-qqq: #4F84FF; --c-ga: #1FA373; --live-zone: rgba(31, 163, 115, 0.12);
    --warn: #F2B44C; --warn-bg: #3A2A0C; --ok: #3DCB93; --ok-bg: #0F3326; --info: #7FA6FF; --info-bg: #1A2A4A;
    --win: #1FA373; --loss: #E8743B; --flat: #E0B43A;
    --wall: #13213A; --wall-2: #182844; --floor: #0D182B;
    --desk: #7A5A3E; --desk-2: #63482F; --chair: #2A3448;
    --shirt: #4F84FF; --shirt-2: #3A6EE8; --pants: #1C2436;
    --skin: #D99E78; --hair: #120D0A; --shoe: #05080F;
    --screen: #050B16; --screen-ink: #7F93B3;
    --bubble: #1D2C47; --bubble-ink: #E8EEF7; --engine: #060E1E; --panel: #17233A;
    --sky: #0F2340; --sky-2: #1A3458; --cloud: #24406A; --sun: #E8B84A;
    --sea: #1B4F7C; --sea-2: #3274A8; --sand: #4B3E2A; --sand-2: #3E3322;
    --canopy: #C85E47; --lounger: #3C8FCB;
    --s-orange: #F08A4B; --s-myth: #9D93F0;
    --v-math: #2BA87A; --v-half: #B97E17; --v-myth: #8F80EE;
    color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.02em; }
p { margin: 0; }
.container {
    max-width: var(--container); margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .container { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.visually-hidden, .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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); }
.skip-link:focus { top: 12px; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Wordmark: original font and gradient. Large uses (header, CTA, story) keep #0052CC->#00FF00;
   small text uses the deeper, readable version so both ends stay legible (decision #12, option B). */
.brand-name, .wordmark {
    font-family: var(--f-brand); font-weight: 700; letter-spacing: -0.5px;
    background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.brand-name span { -webkit-text-fill-color: transparent; }
.wordmark-sm {
    font-weight: 700; background: var(--brand-grad-sm); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
/* Strategy names (GenQ, QQQ) use the body face: the display face's Q tail reads as an underline. */
.strategy h3, .strat-name, .page-hero h1 .strategy-name { font-family: var(--f-body); font-weight: 800; letter-spacing: -0.02em; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 20px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand .brand-name { font-size: 1.35rem; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a, .nav-dropdown-toggle {
    color: var(--ink-2); text-decoration: none; font: 600 0.94rem var(--f-body);
    padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover, .nav-dropdown-toggle:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-links .nav-cta { margin-left: 6px; background: var(--grad); color: var(--on-grad); }
.nav-links .nav-cta:hover { background: var(--grad); color: var(--on-grad); filter: brightness(1.08); }
.nav-toggle {
    display: none; background: none; border: 1px solid var(--line); color: var(--ink);
    border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; cursor: pointer; }
.nav-dropdown-toggle svg { transition: transform .15s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown.is-current .nav-dropdown-toggle { color: var(--ink); background: var(--surface-2); }
.nav-dropdown-menu {
    display: none; flex-direction: column; gap: 2px; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    z-index: 60; min-width: 270px; padding: 6px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(13, 23, 38, .45);
}
.nav-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
@media (hover: hover) and (min-width: 1101px) { .nav-dropdown:hover .nav-dropdown-menu { display: flex; } }
.nav-links .nav-dropdown-menu a { display: flex; flex-direction: column; gap: 1px; color: var(--ink); padding: 9px 12px; }
.nav-links .nav-dropdown-menu a:hover, .nav-links .nav-dropdown-menu a[aria-current="page"] { background: var(--surface-2); }
.nav-menu-name { font: 700 0.95rem var(--f-body); }
.nav-menu-note { font-size: 0.8rem; font-weight: 500; color: var(--ink-3); }
.nav-links .nav-dropdown-menu .nav-menu-all { color: var(--blue); font-size: 0.88rem; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
@media (max-width: 1240px) { .nav { gap: 12px; } .nav-links a, .nav-dropdown-toggle { font-size: 0.88rem; padding: 8px 8px; } }
@media (max-width: 1100px) {
    .nav { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
    .nav-links.open { display: flex; }
    .nav-links a, .nav-dropdown-toggle { padding: 12px; font-size: 1rem; }
    .nav-links .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
    .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
    .nav-dropdown-menu { position: static; transform: none; min-width: 0; padding: 0 0 6px 12px; margin-left: 12px; background: transparent; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; }
    .nav-dropdown-menu::before { display: none; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    font: 700 1rem var(--f-body); text-decoration: none; cursor: pointer; text-align: center;
    padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--grad); color: var(--on-grad); box-shadow: 0 6px 18px -8px rgba(0, 82, 204, .55); }
.btn-primary:hover { color: var(--on-grad); transform: translateY(-2px); }
.btn-outline { background: var(--surface); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 60%, var(--line)); }
.btn-outline:hover { border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-bid { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.btn-bid:hover { color: var(--warn); border-color: var(--warn); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: 76px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 780px; margin-bottom: 36px; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { font-size: var(--step-1); color: var(--ink-2); }
.eyebrow, .section-head .eyebrow {
    font: 700 0.78rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
}
/* Names keep their casing inside eyebrows (QuantVantage.ai, GenAlpha). */
.eyebrow .keep-case { text-transform: none; letter-spacing: 0; font-family: var(--f-brand); font-size: 0.95rem; }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 68ch; }
.fine-print { font-size: 0.82rem; line-height: 1.6; color: var(--ink-3); max-width: 960px; }
.fine-print + .fine-print { margin-top: 6px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.cards { display: flex; flex-wrap: wrap; gap: 18px; }
.card {
    flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-2); }
.card-wide { flex: 2 1 560px; }
.card-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ok-bg); color: var(--green); }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.split > * { flex: 1 1 380px; min-width: 0; }
.performance-metric-date { align-self: flex-start; background: var(--ok-bg); color: var(--green); font: 600 0.82rem var(--f-mono); padding: 4px 12px; border-radius: 999px; }

/* ---------- home hero ---------- */
.hero { padding-block: 48px 28px; }
.hero-inner {
    max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .hero-inner { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; }
.hero-copy > p { font-size: var(--step-1); color: var(--ink-2); max-width: 40ch; }
.result-card {
    min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
    box-shadow: 0 24px 60px -36px rgba(13, 23, 38, .35); display: flex; flex-direction: column; gap: 18px;
}
.result-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; }
.result-card h2 { font-size: 1.2rem; font-weight: 700; }
.result-card-head span { font: 500 0.8rem var(--f-mono); color: var(--ink-3); }
.label-caps { font: 700 0.72rem var(--f-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.bar-row { display: grid; grid-template-columns: 5.5rem 1fr 4.2rem; align-items: center; gap: 12px; }
.bar-row .bar-label { font-size: 0.9rem; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.bar-row .bar-label::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--bar-c, var(--ink-3)); flex: none; }
.bar-track { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 12px; border-radius: 0 4px 4px 0; width: 0; transition: width 0.8s cubic-bezier(.2,.8,.2,1); background: var(--bar-c); }
.bar-row:has(.strategy) { --bar-c: var(--c-ga); }
.bar-row:has(.qqq) { --bar-c: var(--c-qqq); }
.bar-row:has(.spy) { --bar-c: var(--c-spy); }
.bar-row .bar-value { text-align: right; font: 700 0.95rem var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.mini-stats dt { font-size: 0.76rem; color: var(--ink-3); font-weight: 600; }
.mini-stats dd { margin: 0; font: 700 1.1rem var(--f-mono); color: var(--ink); }
.result-card .fine-print { font-size: 0.82rem; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 28px; } }

.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul { list-style: none; margin: 0 auto; max-width: var(--container); padding: 18px 16px; display: flex; flex-wrap: wrap; gap: 12px 36px; justify-content: center; }
.facts li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.facts svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* ---------- inner-page hero (deep dives, FAQ, SMS) ---------- */
.page-hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero-inner {
    max-width: var(--container); margin: 0 auto; padding-block: 28px 44px; display: flex; flex-direction: column; gap: 18px;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .page-hero-inner { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.page-hero h1 { font-size: var(--step-4); font-weight: 800; }
.page-hero .tagline { font: 700 var(--step-1) var(--f-body); color: var(--ink-2); }
.page-hero-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.page-hero-row > .stack { min-width: 0; gap: 14px; }
@media (max-width: 860px) { .page-hero-row { grid-template-columns: 1fr; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.badge { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.badge-soft { background: var(--surface-2); }
.page-hero-dark { background: var(--bg); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb [aria-current] { color: var(--ink); }
/* The proof card next to the deep-dive title */
.proof-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 14px; min-width: 0; }
.proof-card .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.proof-card .kpis dt { font-size: 0.76rem; color: var(--ink-3); font-weight: 600; }
.proof-card .kpis dd { margin: 0; font: 700 1.2rem var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.data-table td { font-family: var(--f-mono); font-size: 0.9rem; }
.data-table thead th { color: var(--ink-3); font-weight: 700; font-size: 0.8rem; vertical-align: bottom; }
.data-table thead th span { display: block; font-weight: 500; }
.data-table th:first-child { text-align: left; }
.data-table tbody th { font-weight: 600; color: var(--ink); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .col-strategy { color: var(--ink); font-weight: 700; }
.data-table thead th:nth-child(n+2)::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--ink-3); }
.data-table thead th:nth-child(2)::before { background: var(--c-spy); }
.data-table thead th:nth-child(3)::before { background: var(--c-qqq); }
.data-table thead th:nth-child(4)::before { background: var(--c-ga); }
.data-table .is-negative { color: var(--negative); }
/* Phones: a table marked .stack-sm turns each row into a small card (no sideways scroll). */
@media (max-width: 560px) {
    .stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .stack-sm, .stack-sm tbody, .stack-sm tr, .stack-sm th, .stack-sm td { display: block; width: 100%; }
    .stack-sm tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; background: var(--surface); }
    .stack-sm tbody th { text-align: left; border: 0; padding: 4px 0 6px; font-size: 1rem; }
    .stack-sm td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; }
    .stack-sm td::before { content: attr(data-label); font-family: var(--f-body); font-weight: 600; color: var(--ink-3); text-align: left; }
    .table-scroll:has(.stack-sm) { overflow: visible; }
}

/* ---------- charts (qv-perf.js draws SVG at build time; redraws compact on phones) ---------- */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 14px; min-width: 0; }
.section-alt .chart-card { background: var(--bg); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 8px; }
.chart-head h3 { font-size: var(--step-1); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.legend .zone { width: 14px; height: 12px; background: var(--live-zone); border: 1px dashed var(--c-ga); border-radius: 2px; }
.chart-box { position: relative; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-box text { font-family: var(--f-mono); font-size: 13px; fill: var(--ink-3); }
.chart-box .lbl { fill: var(--ink); font-weight: 700; }
/* compact phone drawing (420 wide): larger text so labels stay about 11px on screen */
.chart-box .lbl-2 { fill: var(--ink-2); }
.grid-line { stroke: var(--line); stroke-width: 1; }
.base-line { stroke: var(--ink-3); stroke-width: 1.5; }
.tooltip {
    position: absolute; pointer-events: none; z-index: 5; min-width: 170px; background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 0.85rem;
    box-shadow: 0 12px 30px -12px rgba(13, 23, 38, .4); transform: translate(-50%, -100%); opacity: 0; transition: opacity .12s;
}
.tooltip.on { opacity: 1; }
.tooltip b { display: block; margin-bottom: 4px; }
.tooltip .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-family: var(--f-mono); }
.tooltip .row span:first-child { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-body); color: var(--ink-2); }
.perf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.perf-grid > .wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .perf-grid { grid-template-columns: 1fr; } }

/* ---------- discretionary vs systematic ---------- */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vs-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.vs-card h3 { font-size: var(--step-2); }
.vs-card.good { border-color: color-mix(in srgb, var(--c-ga) 55%, var(--line)); }
.vs-card.good h3 { color: var(--green); }
.vs-card svg { width: 100%; height: auto; display: block; }
.vs-card p { color: var(--ink-2); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

/* ---------- benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.benefit { display: grid; gap: 10px; align-content: start; padding: 20px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.benefit svg { width: 44px; height: 44px; color: var(--blue); }
.benefit h3 { font: 700 1.08rem var(--f-body); letter-spacing: 0; }
.benefit p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 1060px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .benefits { grid-template-columns: 1fr; } .benefit { grid-template-columns: 44px 1fr; column-gap: 16px; } .benefit svg { grid-row: span 2; } }

/* ---------- process (numbered: the order is the point) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step-dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--blue); position: relative; color: var(--blue); }
.step-dot svg { width: 26px; height: 26px; }
.step-dot b { position: absolute; top: -6px; right: -6px; background: var(--grad); color: var(--on-grad); font: 700 0.75rem var(--f-mono); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.step-num { font: 700 0.75rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.step h3 { font: 700 1.2rem var(--f-body); letter-spacing: 0; }
.step p { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; gap: 26px; }
    .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
    .step { grid-template-columns: 56px 1fr; column-gap: 18px; }
    .step-dot { grid-row: span 3; }
}

/* ---------- strategy cards ---------- */
/* Five equal cards: three on top, the two bid cards centred below. Each card is a 5-row subgrid
   (head, description, figures, fine print, buttons) so the rows line up across cards. */
.strategy-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.strategy-grid > .strategy { grid-column: span 2; display: grid; grid-template-rows: subgrid; grid-row: span 5; gap: 14px; }
.strategy-grid > .strategy.is-bid:nth-child(4) { grid-column: 2 / span 2; }
.strategy-grid > .strategy.is-bid:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 1020px) {
    .strategy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .strategy-grid > .strategy, .strategy-grid > .strategy.is-bid:nth-child(n) { grid-column: auto; }
    .strategy-grid > .strategy:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
}
@media (max-width: 680px) {
    .strategy-grid { grid-template-columns: 1fr; }
    .strategy-grid > .strategy:last-child:nth-child(odd) { width: 100%; }
}
/* the two rows of cards have separate subgrids, so give the text rows the same minimum height */
.strategy-grid > .strategy > p:not(.fine-print) { min-height: calc(3 * 1.6em); }
.strategy-grid > .strategy > .fine-print { min-height: calc(2 * 1.6em); }
article.strategy { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-width: 0; }
article.strategy.is-bid { border-top: 3px solid var(--warn); }
.strategy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.strategy h3 { font-size: 1.7rem; }
.strategy .tagline { color: var(--ink-2); font-weight: 700; }
.strategy > p { color: var(--ink-2); }
.pill { align-self: flex-start; font: 700 0.72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-new { background: var(--ok-bg); color: var(--ok); }
.pill-bid { background: var(--warn-bg); color: var(--warn); }
.stat-row { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-block: 1px solid var(--line); padding: 14px 0; }
.stat-row dt { font-size: 0.76rem; color: var(--ink-3); font-weight: 600; }
.stat-row dd { margin: 0; font: 700 1.2rem var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
article.strategy .btn-row { align-self: end; display: flex; gap: 10px; }
article.strategy .btn-row .btn { flex: 1 1 auto; }
article.strategy .btn { padding: 10px 8px; font-size: 0.88rem; line-height: 1.25; white-space: nowrap; }
.notice { display: flex; align-items: baseline; gap: 10px; margin: -12px 0 24px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); transform: translateY(-1px); }
.notice strong { color: var(--warn); }

/* ---------- free series ---------- */
.series-orange { --series: var(--s-orange); }
.series-myth { --series: var(--s-myth); }
.series-latest .section-head .eyebrow { color: var(--series); }
.series-latest .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .series-latest .cards { grid-template-columns: 1fr; } }
.series-card { color: inherit; text-decoration: none; border-top: 4px solid var(--series); transition: border-color .15s ease, box-shadow .15s ease; }
.series-card:hover, .series-card:focus-visible { color: inherit; border-color: var(--series); box-shadow: 0 6px 20px -10px color-mix(in srgb, var(--series) 60%, transparent); }
.series-card h3 { font: 700 1.05rem var(--f-body); letter-spacing: 0; }
.series-card p { font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.series-kicker { font-size: 0.8rem; font-weight: 700; color: var(--series); }
.series-ticker { font: 600 0.82rem var(--f-mono); color: var(--ink-3); }
.series-more { margin-top: auto; color: var(--blue); font-weight: 700; font-size: 0.92rem; }
.series-all { margin-top: 20px; font-weight: 700; }
.verdict-stamp { align-self: flex-start; font: 700 0.7rem var(--f-mono); letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; color: #FFFFFF; background: var(--ink-3); }
.verdict-math { background: var(--v-math); }
.verdict-myth { background: var(--v-myth); }
.verdict-half-truth { background: var(--v-half); }
.verdict-faded { background: var(--ink-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict-stamp { color: #08101C; } }
:root[data-theme="dark"] .verdict-stamp { color: #08101C; }

/* ---------- metrics (deep dives) ---------- */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.metric { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); min-width: 0; }
.section-alt .metric { background: var(--bg); }
.metric-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-2); }
.metric-value { font: 700 1.6rem var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.metric-value[data-metric-value$="-date"] { font-size: 1.05rem; line-height: 1.4; padding-top: 6px; }
.metric-bench { font-size: 0.82rem; color: var(--ink-3); }
.metric details { font-size: 0.85rem; color: var(--ink-2); margin-top: 4px; }
.metric summary { cursor: pointer; color: var(--blue); font-weight: 600; min-height: 24px; }
.metric details p { margin-top: 6px; }
/* benchmark bars added under a metric by qv-deepdive.js */
.mbars { display: grid; gap: 6px; margin-top: 4px; }
.mbar { display: grid; grid-template-columns: 6.5rem 1fr 4.2rem; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-2); }
.mbar .nm { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar .track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.mbar .track i { display: block; height: 100%; border-radius: 99px; }
.mbar .v { font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- tabs + heatmap tables ---------- */
.tabs-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.tablist { display: flex; flex-wrap: wrap; gap: 6px; }
.tablist [role="tab"], .chip {
    min-height: 40px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer;
    font: 600 0.9rem var(--f-body); background: var(--surface); color: var(--ink-2);
}
.tablist [role="tab"]:hover, .chip:hover { border-color: var(--blue); color: var(--blue); }
.tablist [role="tab"][aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tabpanel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); }
.tabpanel h3 { font-size: 1.2rem; }
.heatmap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; }
.heatmap { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.heatmap figcaption { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.rolling-table { width: 100%; border-collapse: separate; border-spacing: 2px; font: 600 0.76rem var(--f-mono); font-variant-numeric: tabular-nums; table-layout: fixed; }
.rolling-table th, .rolling-table td { padding: 6px 2px; text-align: center; border-radius: 4px; }
.rolling-table thead th { color: var(--ink-3); font-weight: 700; }
.rolling-table tbody th { color: var(--ink); text-align: left; padding-left: 4px; width: 3.4rem; }
.rolling-table td { color: var(--ink); }
/* Heatmap switcher (qv-heatmap.js): one strategy table at a time, picked with chips */
.hm-switch { display: grid; gap: 14px; }
.hm-switch .chip-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hm-switch .chip-group > span { font: 700 0.72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hm-switch .heatmap-grid { grid-template-columns: 1fr; }
.hm-switch.js .heatmap:not(.is-on) { display: none; }
@media (max-width: 560px) {
    .rolling-table { font-size: 0.62rem; border-spacing: 1px; }
    .rolling-table th, .rolling-table td { padding: 5px 0; }
    .rolling-table tbody th { width: 2.6rem; padding-left: 2px; }
}
.heatmap button { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; cursor: zoom-in; overflow: hidden; }
.heatmap img { display: block; width: 100%; }
.note { background: var(--surface-2); border-radius: 12px; padding: 16px 18px; font-size: 0.92rem; color: var(--ink-2); }
.note h3 { color: var(--ink); margin-bottom: 8px; font: 700 1rem var(--f-body); }
.note ul { margin: 8px 0 0; padding-left: 20px; }
.zoom-dialog { border: 0; padding: 0; border-radius: var(--radius); max-width: min(1100px, 94vw); background: var(--surface); color: var(--ink); }
.zoom-dialog::backdrop { background: rgba(5, 10, 20, .8); }
.zoom-dialog figure { margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.zoom-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; cursor: pointer; }

/* Swipeable pages for wide content on phones: scroll-snap with dots (qv-swipe.js adds the dots). */
.swipe { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.swipe::-webkit-scrollbar { display: none; }
.swipe > * { scroll-snap-align: start; min-width: 0; }
.swipe-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.swipe-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.swipe-dots button[aria-current="true"] { background: var(--blue); width: 22px; border-radius: 99px; }
@media (prefers-reduced-motion: reduce) { .swipe { scroll-behavior: auto; } }

/* ---------- CTA ---------- */
.cta-section { padding-block: 0 76px; }
.cta-band {
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 48px 36px;
    display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
    box-shadow: 0 24px 60px -40px rgba(13, 23, 38, .35);
}
.cta-band > div:first-child { flex: 1 1 420px; min-width: 0; display: grid; gap: 10px; }
.cta-band h2 { font-size: var(--step-3); font-weight: 800; }
.cta-band p { color: var(--ink-2); font-size: var(--step-1); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 20px; } }
.faq-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 860px) { .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; } .faq-nav a { border: 1px solid var(--line) !important; border-radius: 99px !important; padding: 7px 14px !important; } }
.faq-nav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; font-weight: 600; padding: 9px 12px; border-radius: 8px; border-left: 3px solid transparent; }
.faq-nav a:hover { background: var(--surface-2); color: var(--ink); border-left-color: var(--blue); }
.faq-main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.faq-search { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.faq-search label { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.faq-search input { font: inherit; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.faq-search input:focus { border-color: var(--blue); }
.faq-container { display: flex; flex-direction: column; gap: 36px; }
.faq-category { display: flex; flex-direction: column; gap: 0; }
.faq-category h2 { font-size: 1.6rem; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.faq-category h2::before, .prose h2::before { content: ""; width: 6px; height: 1em; border-radius: 3px; background: var(--grad); flex: none; }
.faq-item { border: 1px solid var(--line); border-top-width: 0; background: var(--surface); overflow: hidden; }
.faq-category h2 + .faq-item, .faq-category > .faq-item:first-of-type { border-top-width: 1px; border-radius: 14px 14px 0 0; }
.faq-category > .faq-item:last-of-type { border-radius: 0 0 14px 14px; }
.faq-category > .faq-item:only-of-type { border-radius: 14px; }
.faq-item.hidden { display: none; }
.faq-question { width: 100%; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; background: transparent; border: 0; cursor: pointer; font: 600 1rem var(--f-body); color: var(--ink); text-align: left; }
.faq-question:hover, .faq-question.active { background: var(--surface-2); }
.faq-icon { width: 30px; height: 30px; border-radius: 999px; background: var(--surface-2); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; transition: transform 0.2s ease; flex: none; }
.faq-question.active .faq-icon { transform: rotate(45deg); background: var(--blue); color: var(--surface); }
.faq-answer { display: none; padding: 4px 18px 20px; color: var(--ink-2); background: var(--surface-2); }
.faq-answer > * { max-width: 800px; }
.faq-answer.active { display: block; }
.faq-answer p + p, .faq-answer p + ul, .faq-answer ul + p, .faq-answer p + ol, .faq-answer ol + p, .faq-answer p + div, .faq-answer div + p { margin-top: 10px; }
.faq-answer ul, .faq-answer ol { margin: 8px 0 0; padding-left: 22px; }
.faq-answer li + li { margin-top: 6px; }
.faq-no-results { display: none; border: 1px dashed var(--line); border-radius: 14px; padding: 20px; color: var(--ink-2); }
.faq-no-results.show { display: block; }

/* ---------- prose pages (SMS) ---------- */
.prose { max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 1.6rem; margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.prose h3 { font-size: 1.2rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0; padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.message-sample { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; font: 0.88rem var(--f-mono); white-space: pre-wrap; color: var(--ink); overflow-wrap: anywhere; }
.message-sample strong { display: block; font-family: var(--f-body); margin-bottom: 8px; color: var(--green); }
.callout { background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 12px; padding: 18px 20px; color: var(--ink); }
.callout h3 { color: var(--warn); margin-bottom: 8px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shot img { border: 1px solid var(--line); border-radius: 12px; }
.shot figcaption { font-size: 0.88rem; color: var(--ink-3); }

/* ---------- 404 ---------- */
.error-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.error-page main { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.error-box { max-width: 640px; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.error-code { font: 800 7rem/1 var(--f-display); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-box h1 { font-size: 2.2rem; }
.error-box p { font-size: 1.1rem; color: var(--ink-2); }
.error-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.error-links a { font-weight: 600; padding: 10px 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-3); }
.footer-inner {
    max-width: var(--container); margin: 0 auto; padding-block: 44px 36px; display: flex; flex-direction: column; gap: 22px;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .footer-inner { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.footer-top { display: flex; flex-wrap: wrap; gap: 18px 24px; justify-content: space-between; align-items: center; }
.footer-top .brand-name { font-size: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.disclosures { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; font-size: 0.86rem; line-height: 1.6; max-width: 980px; }
.disclosures h2 { font: 700 0.78rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- animated story (qv-story.js) ---------- */
.story { padding-block: 8px 56px; }
.stage-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px -36px rgba(13, 23, 38, .35); width: 100%; margin-inline: auto; }
@media (min-width: 641px) {
    .stage-card { width: min(100%, max(640px, calc((100vh - 300px) * 1.846))); width: min(100%, max(640px, calc((100svh - 300px) * 1.846))); }
}
.stage-svg { display: block; width: 100%; height: auto; background: var(--wall); }
.stage-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: start; padding: 14px 20px 16px; border-top: 1px solid var(--line); }
.caption { min-width: 0; display: grid; gap: 2px; }
.caption .eyebrow { color: var(--ink-3); }
.caption h3 { font-size: 1.35rem; }
.caption p { color: var(--ink-2); max-width: 74ch; font-size: 0.98rem; line-height: 1.5; min-height: 3em; }
.chapters { display: flex; gap: 6px; grid-column: 1 / -1; }
.chapter { position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; background: var(--surface-2); color: var(--ink-2); border: 0; border-radius: 10px; padding: 7px 10px 9px; text-align: left; cursor: pointer; font: 600 0.84rem var(--f-body); white-space: nowrap; text-overflow: ellipsis; }
.chapter .n { font-family: var(--f-mono); font-size: 0.68rem; color: var(--ink-2); display: block; }
.chapter[aria-current="step"] { color: var(--ink); background: color-mix(in srgb, var(--c-ga) 14%, var(--surface-2)); }
.chapter .fill { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad); }
.chapter[aria-current="step"] .fill { animation: fill var(--dur, 6s) linear forwards; }
.stage-card.paused .chapter .fill { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.play-btn { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: 600 0.9rem var(--f-body); cursor: pointer; white-space: nowrap; }
/* Phones: the eight scene buttons wrap onto rows instead of scrolling sideways. */
@media (max-width: 640px) {
    .story .container { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
    .stage-card { border-radius: 14px; }
    .stage-bar { padding: 12px 14px 14px; gap: 8px 12px; }
    .caption h3 { font-size: 1.15rem; }
    .caption p { font-size: 0.92rem; min-height: 4.5em; }
    .chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .chapter { font-size: 0.72rem; padding: 6px 6px 8px; white-space: normal; line-height: 1.2; }
}

/* ---------- story illustration parts (from the infographic redesign) ---------- */
/* stage parts */
.limb { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.shirt { stroke: var(--shirt); } .shirt-2 { stroke: var(--shirt-2); }
.pants { stroke: var(--pants); } .skin { stroke: var(--skin); }
.skin-f { fill: var(--skin); } .hair-f { fill: var(--hair); } .eye { fill: var(--hair); }
.shoe { fill: var(--shoe); }
.wall { fill: var(--wall); } .wall-2 { fill: var(--wall-2); } .floor { fill: var(--floor); }
.desk { fill: var(--desk); } .desk-2 { fill: var(--desk-2); } .chair { fill: var(--chair); }
.screen { fill: var(--screen); } .screen-ink { fill: var(--screen-ink); }
.panel { fill: var(--panel); stroke: var(--line); stroke-width: 2; }
.ink-3 { fill: var(--ink-3); } .ink-2 { fill: var(--ink-2); } .ink { fill: var(--ink); }
.stage-svg text { font-family: var(--f-body); }
.stage-svg .mono { font-family: var(--f-mono); }

/* office (scenes 1-3), beach (4-6), Monday meeting (7) */
.office, .beach, .meeting { transition: opacity .7s ease; }
.beach, .meeting { opacity: 0; }
#stage:not([data-scene="office"]) .office { opacity: 0; }
#stage[data-scene="beach"] .beach, #stage[data-scene="meeting"] .meeting { opacity: 1; }

.pose { opacity: 0; transition: opacity .35s ease; }
#stage[data-act="1"] .p-work,
#stage[data-act="2"] .p-alert,
#stage[data-act="3"] .p-alert,
#stage[data-act="4"] .p-alert { opacity: 1; }

.tap { transform-origin: 476px 270px; }
#stage[data-act="1"] .tap { animation: tap .32s ease-in-out infinite alternate; }
@keyframes tap { to { transform: rotate(-5deg); } }
.head-bob { transform-origin: 462px 240px; }
#stage[data-act="1"] .head-bob { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-4deg) translateY(2px); } }

.clock-min { transform-origin: 110px 95px; animation: spin 24s linear infinite; }
.clock-hr { transform-origin: 110px 95px; animation: spin 288s linear infinite; }
#stage[data-act="1"] .clock-min { animation-duration: 1.4s; }
#stage[data-act="1"] .clock-hr { animation-duration: 16.8s; }
@keyframes spin { to { transform: rotate(360deg); } }

.bubble { opacity: 0; transform: scale(.6) translateY(8px); transform-box: fill-box; transform-origin: 50% 100%;
    transition: opacity .3s ease, transform .3s cubic-bezier(.3,1.6,.6,1); }
.bubble.on { opacity: 1; transform: none; }
.bubble rect, .bubble circle { fill: var(--bubble); stroke: var(--line); stroke-width: 2; }
.bubble text { fill: var(--bubble-ink); font-weight: 700; font-size: 17px; }

.cup { opacity: 0; transition: opacity .3s; }
.cup.on { opacity: 1; }

/* monitor: work <-> trading (1), chart (2), sign in -> subscribe to GenAlpha -> active (3) */
.chaos, .scr-work, .scr-platform, .scr-hook, .scr-signin, .scr-plan, .scr-joined { transition: opacity .25s; }
.scr-work, .scr-platform, .scr-hook, .scr-signin, .scr-plan, .scr-joined { opacity: 0; }
#stage[data-screen="work"] .scr-work { opacity: 1; }
#stage[data-act="3"] .chaos, #stage[data-act="4"] .chaos { opacity: 0; }
#stage[data-phase="platform"] .scr-platform,
#stage[data-phase="hook"] .scr-hook,
#stage[data-phase="signin"] .scr-signin,
#stage[data-phase="plan"] .scr-plan,
#stage[data-phase="joined"] .scr-joined { opacity: 1; }

.engine { transform: translateX(420px); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
#stage:not([data-act="1"]) .engine { transform: none; }
.gear { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
#stage:not([data-scene="office"]) .gear { animation-duration: 2.4s; }
.led { animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.kchip { opacity: 0; }
.kchip rect { fill: var(--surface); stroke: var(--c-ga); stroke-width: 2; }
.kchip text { fill: var(--ink); font-size: 15px; font-weight: 700; }
#stage[data-act="2"] .kchip { animation: feed 3s ease-in-out both; }
@keyframes feed {
    0% { opacity: 0; transform: translate(var(--sx), calc(var(--sy) - 14px)); }
    14% { opacity: 1; transform: translate(var(--sx), var(--sy)); }
    62% { opacity: 1; transform: translate(var(--sx), var(--sy)) scale(1); }
    100% { opacity: 0; transform: translate(0, 0) scale(.2); }
}
.token { opacity: 0; }
#stage[data-act="4"] .token { animation: handoff 2.4s ease-in-out 3.6s both; }
@keyframes handoff {
    0% { opacity: 0; transform: translate(var(--sx), var(--sy)); }
    15% { opacity: 1; transform: translate(var(--sx), var(--sy)); }
    70% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(0, 0) scale(.3); }
}

.broker, .cable { opacity: 0; transition: opacity .6s ease; }
.cable path { stroke: var(--c-ga); stroke-width: 5; fill: none; stroke-linecap: round;
    stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1s ease, stroke .3s; }
#stage[data-act="4"] .broker, #stage[data-act="4"] .cable { opacity: 1; transition-delay: 5.5s; }
#stage[data-act="4"] .cable path { stroke-dashoffset: 0; transition-delay: 5.7s; }
#stage:not([data-scene="office"]) .broker, #stage:not([data-scene="office"]) .cable { opacity: 1; }
#stage:not([data-scene="office"]) .cable path { stroke-dashoffset: 0; }
#stage[data-phase="remind"] .cable path { stroke: var(--warn); stroke-dasharray: 8 7; }
.dots { opacity: 0; transition: opacity .3s; }
.dots circle { fill: var(--c-ga); }
#stage[data-act="5"] .dots, #stage[data-act="6"] .dots, #stage[data-act="8"] .dots { opacity: 1; }
.warn-badge { opacity: 0; transition: opacity .3s; }
#stage[data-phase="remind"] .warn-badge { opacity: 1; }
.broker-frame { transition: stroke .3s, stroke-width .3s; }
#stage[data-act="6"] .broker-frame { stroke: var(--blue); stroke-width: 3; }
.trade { opacity: 0; transform: scaleY(.15); transform-box: fill-box; transform-origin: 50% 100%;
    transition: opacity .25s, transform .4s cubic-bezier(.3,1.5,.6,1); }
.trade.down { transform-origin: 50% 0; }
.trade.on { opacity: 1; transform: none; }
.counter { opacity: 0; transition: opacity .4s; }
#stage:not([data-scene="office"]) .counter { opacity: 1; }

/* beach: phone, alerts, account check, weekend reset */
.stage-svg .note { opacity: 0; transform: translateY(10px) scale(.92); transform-box: fill-box; transform-origin: 0 100%;
    transition: opacity .3s, transform .35s cubic-bezier(.3,1.5,.6,1); }
.stage-svg .note.on { opacity: 1; transform: none; }
.buzz { opacity: 0; }
.buzz.on { animation: buzz .45s ease-in-out infinite alternate; }
@keyframes buzz { from { opacity: .15; } to { opacity: 1; } }
.ph-scr, .ph-scr2 { fill: #33415C; transition: fill .2s; }
.ph-scr.lit, .ph-scr2.lit, #stage[data-act="6"] .ph-scr { fill: #16C27A; }
.phone-arm { transform-origin: 206px 372px; }
#stage[data-phase="reset"] .phone-arm { animation: tapph .35s ease-in-out 6 alternate; }
@keyframes tapph { to { transform: rotate(-5deg); } }
.phone-big { opacity: 0; transform: scale(.35); transform-box: fill-box; transform-origin: 0 100%;
    transition: opacity .4s, transform .55s cubic-bezier(.2,.9,.3,1.15); }
#stage[data-act="6"] .phone-big { opacity: 1; transform: none; transition-delay: .5s; }
.cal { opacity: 0; transition: opacity .4s; }
#stage[data-act="7"] .cal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .kchip, .token { opacity: 0 !important; }
    .buzz.on { opacity: 1; }
}

.h-section { font-size: var(--step-3); font-weight: 800; }
.muted { color: var(--ink-2); }

/* Names with Q (GenQ, QQQ) in headings use the body face: the display face's Q tail reads as an underline. */
/* One card-title style everywhere (Public Sans 800, 20px): chart, table, result and comparison cards. Section h1/h2 stay
   in the display face; strategy names inside them are wrapped in .strategy-name (body face, no long Q tail). */
.card h3, .chart-card h3, .chart-head h3, .result-card h2, .tabpanel h3, .vs-card h3, .performance-table-container h3 { font: 800 var(--step-1)/1.25 var(--f-body); letter-spacing: -0.01em; }
.heatmap figcaption { font-family: var(--f-body); font-weight: 800; }
h1 .strategy-name, h2 .strategy-name { font-family: var(--f-body); font-weight: 800; }
.rolling-table thead th:first-child { width: 3.2rem; }
@media (max-width: 560px) { .rolling-table thead th:first-child { width: 2.5rem; } }

/* ---------- compare page ---------- */
.key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; color: var(--ink-2); }
.key > span { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 3px solid var(--c-ga); }
.key i.solid { background: var(--c-ga); }
.key i.hollow { background: var(--surface); }
.key i.bq { background: var(--c-qqq); border-color: var(--c-qqq); }
.key i.bs { background: var(--c-spy); border-color: var(--c-spy); }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.cmp { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.82rem; }
table.cmp th, table.cmp td { padding: 10px 5px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.cmp td { font-family: var(--f-mono); }
table.cmp thead th { background: var(--surface-2); font-weight: 700; color: var(--ink-2); vertical-align: bottom; white-space: normal; line-height: 1.25; }
table.cmp thead th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
table.cmp thead th button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
table.cmp thead th[aria-sort="ascending"], table.cmp thead th[aria-sort="descending"] { color: var(--ink); }
table.cmp .arr { font-size: 0.7em; color: var(--ink-3); }
table.cmp .sticky { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--surface); min-width: 140px; white-space: normal; padding-left: 12px; }
table.cmp thead .sticky { background: var(--surface-2); }
table.cmp tbody th .nm { display: block; font: 800 1.05rem var(--f-body); color: var(--ink); text-decoration: none; }
table.cmp tbody th a.nm:hover { color: var(--blue); }
table.cmp tbody th .sub { display: block; font-size: 0.76rem; color: var(--ink-3); font-weight: 500; }
table.cmp tr.bench td, table.cmp tr.bench th { background: var(--bg); }
table.cmp td.best { color: var(--ok); font-weight: 700; background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
table.cmp .best-mark { font-size: 0.7em; }
table.cmp td.dt { font-family: var(--f-body); color: var(--ink-3); font-size: 0.82rem; }
table.cmp-years { font-size: 0.85rem; }
table.cmp-years .sticky { min-width: 70px; }
.cmp-sort { display: none; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.cmp-sort select { font: 600 0.95rem var(--f-body); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.gbars { display: grid; gap: 10px; margin-top: 8px; }
.gbar { display: grid; grid-template-columns: 112px 1fr 70px; gap: 10px; align-items: center; font-size: 0.9rem; }
.gname { font-weight: 700; }
.gtrack { height: 14px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.gtrack i { display: block; height: 100%; border-radius: 99px; }
.gval { font-family: var(--f-mono); text-align: right; font-weight: 700; }
/* Tablets and phones: each table row becomes a card of label/value pairs; a select replaces the column sort. */
@media (max-width: 1180px) {
    .cmp-sort { display: inline-flex; }
    .cmp-wrap { overflow: visible; border: 0; background: transparent; }
    table.cmp, table.cmp-years { min-width: 0; }
    table.cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table.cmp, table.cmp tbody, table.cmp tr, table.cmp th, table.cmp td { display: block; width: 100%; }
    table.cmp tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; background: var(--surface); }
    table.cmp tr.bench { background: var(--bg); }
    table.cmp .sticky { position: static; min-width: 0; padding: 4px 0 8px; border-bottom: 1px solid var(--line); background: transparent !important; }
    table.cmp td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; white-space: normal; background: transparent; }
    table.cmp td.best { background: transparent; }
    table.cmp td::before { content: attr(data-label); font-family: var(--f-body); font-weight: 600; color: var(--ink-3); text-align: left; }
    table.cmp-years td { padding: 6px 8px; border-radius: 6px; margin-bottom: 2px; }
    .gbar { grid-template-columns: 96px 1fr 62px; font-size: 0.85rem; }
}
@media (min-width: 761px) and (max-width: 1180px) {
    table.cmp tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    table.cmp tr { margin: 0; }
}

/* Phones: four-column tables fit by tightening; heatmaps split into two swipe pages (qv-heatmap.js). */
@media (max-width: 560px) {
    .card { padding: 16px; }
    .tabpanel { padding: 12px; }
    .data-table { font-size: 0.8rem; }
    .data-table td { font-size: 0.76rem; }
    .data-table th, .data-table td { padding: 7px 3px; }
    .data-table thead th::before { width: 8px; height: 8px; margin-right: 3px; }
    .hm-halves .rolling-table { font-size: 0.72rem; border-spacing: 2px; }
    .hm-halves .rolling-table th, .hm-halves .rolling-table td { padding: 7px 1px; }
    .hm-halves .rolling-table tbody th { width: 2.8rem; }
}
.hm-halves-label { font: 700 0.72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }

/* ---------- round 2: compare page ---------- */
.price-link { font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
table.cmp td.price { font-family: var(--f-body); }
table.cmp td .v { display: inline-flex; align-items: baseline; gap: 2px; }
#cmp-date { margin-top: 4px; }
/* the two chart cards: same height, the bars spread to fill their card */
.cmp-charts > .chart-card { display: grid; grid-template-rows: auto 1fr auto; }
.cmp-charts .gbars { align-content: space-evenly; gap: 6px; margin: 0; }
.cmp-charts .gbar { grid-template-columns: 112px 1fr 76px; }
.cmp-charts .gtrack { height: 18px; }
@media (max-width: 1180px) {
    /* phone and tablet cards: label/value pairs in two columns, so each card is about half as tall */
    table.cmp:not(.cmp-years) tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
    table.cmp:not(.cmp-years) tr > th { grid-column: 1 / -1; }
    table.cmp td::before { margin-right: auto; }
    table.cmp-years tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
    table.cmp-years tr > th { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .cmp-charts .gbar { grid-template-columns: 92px 1fr 64px; } }

/* ---------- theme switch (qv-theme.js) ---------- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; flex: none; }
.theme-toggle:hover { color: var(--ink); border-color: var(--blue); }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.nav .theme-toggle { order: 2; }
.nav .nav-links { order: 1; }
.nav .nav-toggle { order: 3; }
@media (max-width: 1100px) { .nav .nav-links { order: 4; } }
.heatmap button { background: var(--surface); }

/* ---------- footer: compact two columns (brand, copyright and links | disclosures) ---------- */
.footer-inner { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: 20px 48px; align-items: start; }
.footer-top { flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-copy { font-size: 0.82rem; color: var(--ink-3); }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 24px; font-size: 0.88rem; }
.footer-links a { padding: 4px 0; }
.disclosures { border-top: 0; padding-top: 0; max-width: none; font-size: 0.82rem; gap: 8px; }
@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; }
    .disclosures { border-top: 1px solid var(--line); padding-top: 18px; }
}
.section-head .performance-metric-date { justify-self: start; font-size: 0.82rem; }
/* compare scatter: text sized to match the $10,000 card next to it (about 15px names, 13px ticks on screen) */
#cmp-scatter .lbl { font: 700 14px var(--f-body); fill: var(--ink); }
#cmp-scatter .lbl-2 { font: 600 13px var(--f-body); fill: var(--ink-2); }
/* Knowledge band: one heading over both free series, kept tight to the first series below it */
.knowledge-intro { padding-bottom: 0; }
.knowledge-intro .section-head { margin-bottom: 0; }
.knowledge-intro + .series-latest { padding-top: 36px; }

/* ---------- round 3: measured consistency fixes ---------- */
/* footer label looks the same on every page */
.site-footer .disclosures h2 { font: 700 0.78rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
/* header content starts on the same left edge as the page content */
@media (min-width: 700px) { .nav { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
/* side-by-side cards: equal padding and gaps; the footnote sits at the bottom instead of leaving a hole */
.perf-grid > .card { padding: 20px 20px 14px; gap: 10px; }
.perf-grid > .card, .perf-grid > .chart-card { display: flex; flex-direction: column; }
.perf-grid .performance-table-container > .fine-print { margin-top: auto; }
.perf-grid > .chart-card > .chart-box { margin-top: auto; margin-bottom: auto; }
/* metric cards: the six plain figures first (two rows of three), then the six with SPY/QQQ bars (two rows of three) */
@media (min-width: 900px) { .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.metrics-grid > .metric:has(.metric-bench) { order: 2; }
/* path-diagram labels on the homepage: site font, theme colour (were default black, invisible in dark mode) */
.vs-card svg text { fill: var(--ink-2); font: 600 13px var(--f-body); }
/* bars inside the compare $10,000 card: names never run into the bars */
@media (max-width: 420px) { .cmp-charts .gbar { grid-template-columns: 108px 1fr 60px; font-size: 0.82rem; } }
/* centre the compare button under the centred bid cards */
.strategies-more { display: flex; justify-content: center; margin-top: 24px; }
@media (min-width: 560px) { .keep-together { white-space: nowrap; } }
/* compare: the $10,000 bars fill their card so both chart cards end level */
.cmp-charts > .chart-card > .gbars { flex: 1; display: grid; align-content: space-evenly; }
.cmp-charts > .chart-card > .fine-print { margin-top: 12px; }

/* ---------- round 4: one card per topic on the strategy pages, chart and its numbers side by side ---------- */
.chart-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: center; }
.chart-split > .chart-box { margin: 0; }
.summary-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: end; }
.summary-split > .fine-print { margin: 0 0 6px; }
@media (max-width: 900px) { .chart-split, .summary-split { grid-template-columns: 1fr; gap: 14px; } }
.metric-note { font-size: 0.78rem; color: var(--ink-3); }
/* heatmap rows switch: years (month-on-month) or months (year-on-year) */
.hm-switch .hm-rows { margin-bottom: -4px; }
.heatmap[data-view="month"] > :not(figcaption):not(.by-month) { display: none; }
.heatmap:not([data-view="month"]) > .by-month { display: none; }
.heatmap-disclosure { margin-top: 14px; }
.vs-caption { font-size: 0.86rem; color: var(--ink-2); }
.strategies-note { margin-top: 18px; max-width: none; }
.page-hero .strategies-note { margin-top: -4px; }
.live-line { margin: 0; } .live-line b { color: var(--ink); }
.split-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-stats:empty { display: none; }
.hero-note { margin: 0; }
.hero-note a { white-space: nowrap; }
#backtest-live { scroll-margin-top: 88px; }

/* ---------- cookie notice (qv-consent.js) ---------- */
.qv-consent { position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px));
    max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 16px;
    background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(13, 23, 38, .45); font-size: 0.88rem; }
.qv-consent p { flex: 1 1 320px; margin: 0; }
.qv-consent-btns { display: flex; gap: 8px; }
.qv-consent button { font: 700 0.88rem var(--f-body); padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.qv-consent button.primary { background: var(--grad); color: var(--on-grad); border-color: transparent; }

/* Systematic flow diagram (index.html): who-does-what band, icon tiles, a signal dot moving along the line */
.flow-diagram .fd-band { fill: none; stroke: var(--line); stroke-width: 1.5; }
.vs-card svg text.fd-who { font: 700 11.5px var(--f-body); fill: var(--ink-3); }
.vs-card svg text.fd-small { font: 600 11px var(--f-body); fill: var(--ink-3); }
.flow-diagram .fd-pulse { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
    .flow-diagram .fd-pulse { animation: fd-travel 3.6s ease-in-out infinite; }
}
@keyframes fd-travel {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    80% { transform: translateX(272px); opacity: 1; }
    100% { transform: translateX(272px); opacity: 0; }
}

/* compare page: the period next to each chart title */
.chart-period { font: 600 0.78rem var(--f-mono); color: var(--ink-3); }
