/* style.css */
/* ==========================================================================
   Flipzi — flipzi.io
   --------------------------------------------------------------------------
   Structure
     1. TOKENS      design tokens, ported from web/src/styles/theme.css
     2. BASE        reset, typography, accessibility
     3. PRIMITIVES  the vocabulary every page composes from
     4. CHROME      navbar, footer
     5. HOME        homepage modules
     6. CONTENT     blog, policy, changelog, roadmap, landers
     7. RESPONSIVE

   Class names are a public API. ~35 pages that this rebuild does not touch
   compose themselves from the names below. Reimplement freely; do not rename.
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   Values ported from the web app so marketing and product read as one brand.
   Source: web/src/styles/theme.css, web/src/shared/constants/tcg.ts
   ========================================================================== */

:root {
    /* --- Surfaces -------------------------------------------------------- */
    --canvas:           #F1EFE9;
    --surface:          #FAF9F5;
    --surface-subtle:   #ECE9E1;
    --surface-sunken:   #E6E2D8;

    /* --- Text ------------------------------------------------------------
       --fg-subtle was #9B95A0 on the old site: 2.9:1 on white, failing AA.
       The app corrected it to #6E6870 (4.9:1). Ported. */
    --fg:               #17140F;
    --fg-muted:         #4A443A;
    --fg-subtle:        #6B6355;
    --fg-inverse:       #FAF9F5;

    /* --- Hairlines ------------------------------------------------------- */
    --line:             #D3CCBC;
    --line-soft:        #E2DDD1;
    --line-strong:      #17140F;

    /* --- Brand ----------------------------------------------------------- */
    --brand:            #17140F;
    --brand-strong:     #2E2820;
    --brand-soft:       #E6E2D8;
    --brand-faded:      #E6E2D8;
    --brand-gradient:   linear-gradient(#17140F, #17140F);
    /* --brand is 4.35:1 on white: fine for fills and large text, short of AA
       for small text. These are the small-text variants. */
    --brand-ink:        #A8380A;

    /* --- Semantics ------------------------------------------------------- */
    --positive:         #16653C;
    --positive-ink:     #16653C;
    --positive-soft:    #E2EBE1;
    --negative:         #B3261E;
    --negative-soft:    #F3E0DB;
    --warning:          #8A5A00;
    --warning-soft:     #F3E8D2;
    --info:             #1F4E79;
    --info-soft:        #E1E7EC;

    /* --- Premium. Gold, deliberately not brand purple. ------------------- */
    --gold:             #DAA520;
    --gold-soft:        #FFFBEB;
    --gold-ink:         #2A1F00;

    /* --- Grading services ------------------------------------------------ */
    --psa:              #D72638;  --psa-soft:  #FCE9EB;
    --bgs:              #B8860B;  --bgs-soft:  #FFF4D6;
    --cgc:              #1F4FA8;  --cgc-soft:  #E5EDF9;
    --sgc:              #2D8659;  --sgc-soft:  #E3F1EA;

    /* --- Trading card games ---------------------------------------------
       Authoritative source is web/src/shared/constants/tcg.ts (TCG_META).
       The old site used an invented --cat-* palette that matched nothing. */
    --tcg-pokemon:      #FFCB05;
    --tcg-pokemon-jp:   #D93A3A;
    --tcg-onepiece:     #E63946;
    --tcg-yugioh:       #7B2D8B;
    --tcg-mtg:          #2C3E50;
    --tcg-lorcana:      #1E88E5;
    --tcg-riftbound:    #0BC1D6;

    /* --- Marketplaces ---------------------------------------------------- */
    --mkt-cardmarket:   #0066B2;
    --mkt-tcgplayer:    #1A88E1;
    --mkt-ebay:         #E5C100;

    /* --- Type -----------------------------------------------------------
       Per-size line-height AND tracking. Tracking runs positive at small
       sizes and increasingly negative as type grows. */
    --font-heading: "Schibsted Grotesk", "Schibsted Grotesk Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body:    "Schibsted Grotesk", "Schibsted Grotesk Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono:    "Commit Mono", "Commit Mono Fallback", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --t-micro:      11px;  --lh-micro:      1.35;  --tr-micro:       0.02em;
    --t-tiny:       12px;  --lh-tiny:       1.40;  --tr-tiny:        0.012em;
    --t-caption:    13px;  --lh-caption:    1.45;  --tr-caption:     0.004em;
    --t-body:       15px;  --lh-body:       1.55;  --tr-body:        0;
    --t-copy:       17px;  --lh-copy:       1.60;  --tr-copy:        0;
    --t-lead:       18px;  --lh-lead:       1.60;  --tr-lead:       -0.003em;
    --t-subheading: 19px;  --lh-subheading: 1.45;  --tr-subheading: -0.008em;
    --t-heading:    21px;  --lh-heading:    1.30;  --tr-heading:    -0.011em;
    --t-title:      23px;  --lh-title:      1.25;  --tr-title:      -0.014em;
    --t-headline:   26px;  --lh-headline:   1.22;  --tr-headline:   -0.016em;
    --t-display:    32px;  --lh-display:    1.20;  --tr-display:    -0.019em;
    --t-hero:       clamp(38px, 4.8vw, 68px);  --lh-hero:       1.0;  --tr-hero:       -0.022em;
    /* Marketing extends the same curve past the app's ceiling. */
    --t-mega:       clamp(46px, 7.2vw, 104px);  --lh-mega:       0.95;  --tr-mega:       -0.028em;

    /* --- Spacing. 4px grid, no exceptions. ------------------------------- */
    --s-1:  4px;   --s-2:  8px;   --s-3: 12px;   --s-4: 16px;
    --s-5: 20px;   --s-6: 24px;   --s-8: 32px;   --s-10: 40px;
    --s-12: 48px;  --s-16: 64px;  --s-20: 80px;  --s-24: 96px;

    /* --- Radii. 14px cards, 10-12px controls, pill for chips. ------------ */
    --r-sm:    2px;
    --r-md:   2px;
    --r-ctrl: 2px;
    --r-card: 0;
    --r-lg:   0;
    --r-pill: 2px;

    /* --- Elevation. One strategy: shadow-first, hairline borders. -------- */
    --e-card:         none;
    --e-raised:       none;
    --e-overlay:      0 0 0 1px #17140F;
    --e-brand:        none;
    --e-brand-soft:   none;

    /* --- Motion ---------------------------------------------------------- */
    --curve:        cubic-bezier(.2, .7, .2, 1);
    --curve-out:    cubic-bezier(.2, .7, .2, 1);
    --t-micro-ms:   120ms;
    --t-macro-ms:   200ms;

    /* --- Layout ---------------------------------------------------------- */
    --max-width:    1240px;
    --max-narrow:   760px;
    --nav-height:   64px;

/* --- Legacy aliases -------------------------------------------------------
   The ~35 pages this rebuild does not touch reference the previous token
   names inside their $pageInlineStyles heredocs. Aliasing rather than
   renaming means those pages pick up the new palette for free instead of
   falling back to unstyled defaults. Mirrors the same approach in
   web/src/styles/theme.css. New pages should use the names above.
   -------------------------------------------------------------------------- */
    --text-heading:   var(--fg);
    --text-body:      var(--fg-muted);
    --text-tertiary:  var(--fg-subtle);
    --text-muted:     var(--fg-subtle);
    --text-primary:   var(--fg);

    --bg:             var(--canvas);
    --bg-white:       var(--surface);
    --bg-alt:         var(--surface-sunken);
    --bg-hero:        var(--canvas);

    --border:         var(--line);
    --border-light:   var(--line-soft);

    --primary:        var(--brand);
    --accent:         var(--brand);
    --accent-dark:    var(--brand-strong);
    --accent-light:   var(--brand-soft);
    --accent-glow:    transparent;
    --accent-teal:    #A8380A;
    --accent-gradient: var(--brand-gradient);

    --positive-bg:    var(--positive-soft);
    --negative-bg:    var(--negative-soft);

    --radius-sm:      var(--r-sm);
    --radius-md:      var(--r-ctrl);
    --radius-lg:      var(--r-card);
    --radius-xl:      var(--r-lg);
    --radius-pill:    var(--r-pill);

    --shadow-sm:       var(--e-card);
    --shadow-card:     var(--e-card);
    --shadow-elevated: var(--e-raised);
    --shadow-phone:    var(--e-raised);

    --transition:     var(--t-micro-ms) var(--curve);

    /* Corrected to the authoritative TCG_META tints. The previous --cat-*
       values were invented and matched neither the app nor the brands. */
    --cat-pokemon:    var(--tcg-pokemon);
    --cat-onepiece:   var(--tcg-onepiece);
    --cat-yugioh:     var(--tcg-yugioh);
    --cat-mtg:        var(--tcg-mtg);
    --cat-lorcana:    var(--tcg-lorcana);
    --cat-riftbound:  var(--tcg-riftbound);

    /* --- Added after the light palette was first written ----------------- */
    --brand-cyan:       #A8380A;
    --line-bright:      rgba(23, 20, 15, 0.06);
    --curve-spring: cubic-bezier(.2, .7, .2, 1);
    --brand-ink:        #A8380A;
    --positive-ink:     #16653C;

    /* --- The Condition Ledger (2026-10 redesign) -------------------------
       Card stock, ink and one price-sticker orange. The legacy names above
       now resolve to these; new work should use these names. */
    --paper:          #F1EFE9;
    --paper-raised:   #FAF9F5;
    --paper-sunk:     #E6E2D8;
    --ink:            #17140F;
    --ink-2:          #4A443A;
    --ink-3:          #6B6355;
    --rule:           #D3CCBC;
    --sticker:        #FF5A1F;
    --accent-text:    #A8380A;
    --up:             #16653C;
    --down:           #B3261E;
    --code-fg:        #EDE6D6;
    --code-key:       #9BB8FF;
    --code-string:    #9FD4A8;
    --code-number:    #FFB38A;
    --code-muted:     #A39A88;
    --f-display:      "Newsreader", "Newsreader Fallback", "Iowan Old Style", Charter, Georgia, serif;
    --f-text:         var(--font-body);
    --f-mono:         var(--font-mono);
    --ease:           cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + var(--s-4));
}

body {
    background: var(--canvas);
    color: var(--fg);
    position: relative;
    font-family: var(--font-body);
    font-size: var(--t-copy);
    line-height: var(--lh-copy);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--fg);
    text-wrap: balance;
}

h1 { font-size: var(--t-hero);     line-height: var(--lh-hero);     letter-spacing: var(--tr-hero); }
h2 { font-size: var(--t-display);  line-height: var(--lh-display);  letter-spacing: var(--tr-display); }
h3 { font-size: var(--t-heading);  line-height: var(--lh-heading);  letter-spacing: var(--tr-heading); font-weight: 600; }
h4 { font-size: var(--t-lead);     line-height: var(--lh-lead);     letter-spacing: var(--tr-lead);    font-weight: 600; }

p { text-wrap: pretty; }

a { color: var(--brand-strong); text-decoration: none; transition: color var(--t-micro-ms) var(--curve); }
a:hover { color: var(--brand-ink); }

img, svg, video { display: block; max-width: 100%; height: auto; }

/* An inline <svg> with a viewBox but no width/height stretches to fill its
   container. :where() has zero specificity, so any sized icon class wins. */
:where(svg:not([width]):not([height])) { width: 1em; height: 1em; flex-shrink: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: none; cursor: pointer; }

/* Global press feedback, ported from the app so marketing CTAs feel identical
   to in-app buttons. Applied once here rather than per-component. */
button:active,
[role="button"]:active,
.btn:active {
    transform: scale(0.97);
    transition: transform 100ms var(--curve-out);
}
.no-press:active { transform: none; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

::selection { background: var(--brand-faded); color: var(--fg); }



.skip-link {
    position: absolute; top: -100px; left: var(--s-4);
    z-index: 200;
    padding: var(--s-3) var(--s-4);
    background: var(--surface);
    color: var(--fg);
    border-radius: var(--r-md);
    box-shadow: var(--e-raised);
    font-size: var(--t-caption); font-weight: 600;
    transition: top var(--t-micro-ms) var(--curve);
}
.skip-link:focus { top: var(--s-3); }

.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;
}

/* ==========================================================================
   3. PRIMITIVES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-inline: var(--s-6);
}

.container-narrow { max-width: var(--max-narrow); }

/* --- Section rhythm ------------------------------------------------------ */

.section        { padding-block: var(--s-20); }
.section-tight  { padding-block: var(--s-12); }
.section-alt    { background: var(--surface-subtle); }
.section-white  { background: var(--surface); }
.section-line   { border-top: 1px solid var(--line-soft); }

.section-header {
    max-width: 620px;
    margin-bottom: var(--s-10);
}
.section-header.center { margin-inline: auto; text-align: center; }
.section-header h2 { margin-bottom: var(--s-4); }
.section-header p {
    font-size: var(--t-lead);
    line-height: var(--lh-lead);
    color: var(--fg-muted);
}

.eyebrow {
    display: inline-block;
    margin-bottom: var(--s-3);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-strong);
}

.gradient-text {
    color: var(--brand);
}

/* Numbers, prices, IDs, codes. Never proportional figures. */
.mono, .num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

/* --- Buttons -------------------------------------------------------------
   One shape system: 12px radius, 44px minimum touch target. */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 44px;
    padding: var(--s-3) var(--s-5);
    border-radius: var(--r-ctrl);
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: var(--t-body);
    font-weight: 600;
    letter-spacing: -0.006em;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--t-micro-ms) var(--curve),
                border-color var(--t-micro-ms) var(--curve),
                box-shadow var(--t-micro-ms) var(--curve),
                color var(--t-micro-ms) var(--curve);
}

.btn-primary {
    background: var(--ink);
    color: #FFFFFF;
    box-shadow: var(--e-brand-soft);
}
.btn-primary:hover { color: #FFFFFF; box-shadow: var(--e-brand); transform: translateY(-1px); }

.btn-outline {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--fg);
}
.btn-outline:hover { border-color: var(--fg-subtle); color: var(--fg); }

.btn-ghost { background: transparent; color: var(--fg-muted); }
.btn-ghost:hover { background: var(--surface-subtle); color: var(--fg); }

.btn-sm  { min-height: 36px; padding: var(--s-2) var(--s-4); font-size: var(--t-caption); }
.btn-lg  { min-height: 52px; padding: var(--s-4) var(--s-8); font-size: var(--t-copy); }
.btn-block { display: flex; width: 100%; }

.btn .icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform 320ms var(--curve-spring); }
.btn:hover .icon { transform: translateX(3px); }

/* --- Surfaces ------------------------------------------------------------
   Layouts vary by content. Surface treatment never does: same radius, same
   hairline, same shadow, same padding scale. */

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    box-shadow: var(--e-card);
    padding: var(--s-6);
}
.card-flush { padding: 0; overflow: hidden; }
.card-raised { box-shadow: var(--e-raised); }

.card-interactive {
    transition: box-shadow 380ms var(--curve-spring),
                border-color 380ms var(--curve-spring),
                transform 380ms var(--curve-spring);
}
.card-interactive:hover {
    border-color: var(--line-strong);
    box-shadow: var(--e-raised);
    transform: translateY(-3px);
}

/* --- Badges and chips ---------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: var(--s-1) var(--s-2);
    border-radius: var(--r-pill);
    background: var(--surface-subtle);
    color: var(--fg-muted);
    font-size: var(--t-micro);
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.badge-brand    { background: var(--brand-soft);    color: var(--brand-strong); }
.badge-positive { background: var(--positive-soft); color: var(--positive); }
.badge-warning  { background: var(--warning-soft);  color: var(--warning); }
.badge-info     { background: var(--info-soft);     color: var(--info); }
.badge-gold     { background: var(--gold-soft);     color: var(--gold-ink); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-4);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-subtle);
    color: var(--fg);
    font-size: var(--t-caption);
    font-weight: 600;
    white-space: nowrap;
    transition: border-color var(--t-micro-ms) var(--curve),
                box-shadow var(--t-micro-ms) var(--curve);
}
a.chip:hover { border-color: var(--line-strong); box-shadow: var(--e-card); color: var(--fg); }

.chip-dot {
    width: 8px; height: 8px;
    border-radius: var(--r-pill);
    flex-shrink: 0;
}

/* --- Icons --------------------------------------------------------------- */

.icon, .proof-icon, .feature-icon svg, .icon-tile svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* Standalone icons get a container so they read as objects, not decoration. */
.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--brand-strong);
    flex-shrink: 0;
}
.icon-tile-neutral { background: var(--surface-subtle); color: var(--fg-muted); }

/* --- Grids --------------------------------------------------------------- */

.grid    { display: grid; gap: var(--s-4); }
.grid-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6  { gap: var(--s-6); }

/* --- Data table ---------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
    -webkit-overflow-scrolling: touch;
}

.table { width: 100%; border-collapse: collapse; font-size: var(--t-caption); }
.table th, .table td { padding: var(--s-3) var(--s-4); text-align: left; }
.table thead th {
    background: var(--surface-subtle);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-subtle);
    white-space: nowrap;
}
.table tbody tr + tr { border-top: 1px solid var(--line-soft); }
.table tbody th { font-weight: 600; color: var(--fg); }
.table td.num, .table th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* --- Prose (blog body, legal pages) -------------------------------------- */

.prose { max-width: 72ch; font-size: var(--t-lead); line-height: 1.7; color: var(--fg-muted); }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { margin-top: var(--s-12); color: var(--fg); }
.prose h3 { margin-top: var(--s-8); color: var(--fg); }
.prose ul, .prose ol { padding-left: var(--s-6); }
.prose li + li { margin-top: var(--s-2); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose code {
    font-family: var(--font-mono); font-size: 0.9em;
    background: var(--surface-subtle); padding: 2px 6px; border-radius: var(--r-sm);
    color: var(--fg);
}

/* --- Scroll reveal ------------------------------------------------------- */

/* Entrance choreography. --reveal-delay is set per element by js/motion.js so
   the children of a [data-stagger] container arrive in sequence rather than as
   one block. The curve is a spring-shaped ease-out: quick departure, long
   settle, no overshoot. */
.fade-up {
    transition: opacity 620ms var(--curve-spring) var(--reveal-delay, 0ms),
                transform 620ms var(--curve-spring) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
/* Scoped under html.js so it outranks the hiding rules below, which are
   themselves scoped that way. Without this the reveal never wins. */
html.js .fade-up.visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* Directional variants for elements that should arrive from where they belong. */
/* Hidden only when a script exists to reveal it again. */
[data-reveal] {
    transition: opacity 700ms var(--curve-spring) var(--reveal-delay, 0ms),
                transform 700ms var(--curve-spring) var(--reveal-delay, 0ms);
}
html.js [data-reveal].visible { opacity: 1; transform: none; }

/* ==========================================================================
   4. CHROME
   ========================================================================== */

.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(248, 246, 243, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: background var(--t-macro-ms) var(--curve),
                border-color var(--t-macro-ms) var(--curve);
}
/* Separation comes from a soft edge that fades in over the first 120px of
   scroll (--edge, written by js/motion.js), not a hard rule appearing at a
   threshold. The gradient sits just below the bar where content passes under. */
.navbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 100%;
    height: 24px;
    pointer-events: none;
    opacity: var(--edge, 0);
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.06), transparent);
    transition: opacity 200ms var(--curve);
}
.navbar.scrolled {
    background: rgba(248, 246, 243, 0.88);
    border-bottom-color: color-mix(in srgb, var(--line) calc(var(--edge, 0) * 100%), transparent);
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-inline: var(--s-6);
}

.navbar-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-heading);
    font-size: var(--t-lead);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fg);
    flex-shrink: 0;
}
.navbar-logo:hover { color: var(--fg); }
.navbar-logo img { width: 28px; height: 28px; border-radius: 2px; }

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--s-1);
    margin-right: auto;
}
.navbar-links a {
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-md);
    font-size: var(--t-caption);
    font-weight: 500;
    color: var(--fg-muted);
    transition: background var(--t-micro-ms) var(--curve),
                color var(--t-micro-ms) var(--curve);
}
.navbar-links a:hover { background: var(--surface-subtle); color: var(--fg); }

.nav-right { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }

.nav-login {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-md);
    font-size: var(--t-caption);
    font-weight: 600;
    color: var(--fg-muted);
}
.nav-login:hover { background: var(--surface-subtle); color: var(--fg); }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 10px;
    border-radius: var(--r-md);
}
.hamburger span {
    display: block; height: 2px; width: 100%;
    background: var(--fg);
    border-radius: 2px;
    transition: transform var(--t-micro-ms) var(--curve),
                opacity var(--t-micro-ms) var(--curve);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: var(--s-1);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    padding: var(--s-4) var(--s-6) var(--s-8);
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    padding: var(--s-3);
    border-radius: var(--r-md);
    font-size: var(--t-copy);
    font-weight: 500;
    color: var(--fg);
}
.mobile-menu a:hover { background: var(--surface-subtle); }
.mobile-menu .btn { margin-top: var(--s-3); }

/* --- Footer -------------------------------------------------------------- */

.footer {
    padding-block: var(--s-16) var(--s-8);
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: var(--s-8);
    margin-bottom: var(--s-12);
}

.footer-brand-desc {
    margin-top: var(--s-3);
    max-width: 300px;
    font-size: var(--t-caption);
    line-height: var(--lh-caption);
    color: var(--fg-subtle);
}

.footer-heading {
    margin-bottom: var(--s-4);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-subtle);
}

.footer-links { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-links a {
    font-size: var(--t-caption);
    color: var(--fg-muted);
}
.footer-links a:hover { color: var(--fg); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line-soft);
}
.footer-copy, .footer-data-attr {
    font-size: var(--t-tiny);
    color: var(--fg-subtle);
}
.footer-note {
    margin-top: var(--s-3);
    text-align: center;
    font-size: var(--t-tiny);
    color: var(--fg-subtle);
}
.footer-note a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   5. HOME
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    padding-block: calc(var(--nav-height) + var(--s-20)) var(--s-20);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%; left: 50%;
    width: 900px; height: 900px;
    transform: translateX(-50%);
    background: none;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: var(--s-16);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-6);
    padding: var(--s-2) var(--s-4);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--e-card);
    font-size: var(--t-tiny);
    font-weight: 600;
    color: var(--fg-muted);
}
.hero-badge .chip-dot { background: var(--positive); }

.hero h1 {
    font-size: clamp(44px, 6.6vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    font-weight: 800;
    margin-bottom: var(--s-6);
}

.hero-tagline {
    font-size: var(--t-subheading);
    line-height: var(--lh-subheading);
    color: var(--fg);
    font-weight: 500;
    margin-bottom: var(--s-4);
}

.hero-sub {
    max-width: 540px;
    font-size: var(--t-subheading);
    line-height: 1.55;
    color: var(--fg-muted);
    margin-bottom: var(--s-8);
}
.hero-sub strong { color: var(--fg); font-weight: 600; }

.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.hero-actions { margin-bottom: var(--s-6); }

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
    font-size: var(--t-caption);
    color: var(--fg-subtle);
}
.proof-item { display: inline-flex; align-items: center; gap: var(--s-2); }
.proof-icon { width: 15px; height: 15px; color: var(--positive); flex-shrink: 0; }
.proof-divider { width: 1px; height: 12px; background: var(--line-strong); }

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-visual .device { width: 100%; max-width: 340px; }

/* Ambient light behind the device. Sits at negative parallax depth so it
   drifts against the mockup, separating the two planes. */
.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 460px; height: 460px;
    margin: -230px 0 0 -230px;
    border-radius: 50%;
    background: none;
    pointer-events: none;
}

.phone-frame {
    position: relative;
    width: 280px;
    padding: 10px;
    border-radius: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--e-raised), 0 32px 64px -24px rgba(26, 26, 26, 0.22);
    will-change: transform;
}
/* Light catching the top edge of the material. */
.phone-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    pointer-events: none;
}
.phone-screenshot {
    display: block;
    width: 100%;
    border-radius: 0;
}

/* --- Store badges -------------------------------------------------------- */

.store-badges { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    min-height: 44px;
    padding: var(--s-2) var(--s-4);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-ctrl);
    background: var(--surface);
    color: var(--fg);
    transition: border-color var(--t-micro-ms) var(--curve),
                box-shadow var(--t-micro-ms) var(--curve);
}
.store-badge:hover { border-color: var(--fg-subtle); box-shadow: var(--e-card); color: var(--fg); }
.store-badge svg { width: 20px; height: 20px; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge-label { font-size: 9px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-subtle); }
.store-badge-name  { font-size: var(--t-caption); font-weight: 700; letter-spacing: -0.01em; }

/* --- Proof ribbon -------------------------------------------------------- */

.stats-ribbon {
    background: var(--surface);
    border-block: 1px solid var(--line);
}
.stats-ribbon-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-6);
    padding-block: var(--s-10);
}
.stat-item { position: relative; text-align: center; }
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: calc(var(--s-6) / -2);
    top: 50%;
    height: 32px;
    margin-top: -16px;
    border-left: 1px solid var(--line-soft);
}
.stat-number {
    display: block;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: var(--t-display);
    font-weight: 700;
    letter-spacing: var(--tr-display);
    color: var(--fg);
    margin-bottom: var(--s-1);
}
.stat-label {
    font-size: var(--t-tiny);
    line-height: var(--lh-tiny);
    color: var(--fg-subtle);
}
.stat-sep { display: none; }

/* --- Scanner ------------------------------------------------------------- */

.scanner-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: var(--s-16);
}

.scan-steps { display: flex; flex-direction: column; gap: var(--s-3); }

.scan-step {
    display: flex;
    align-items: flex-start;
    gap: var(--s-4);
    padding: var(--s-5);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
}
.scan-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-family: var(--font-mono);
    font-size: var(--t-tiny);
    font-weight: 700;
    flex-shrink: 0;
}
.scan-step h3 { font-size: var(--t-lead); margin-bottom: var(--s-1); }
.scan-step p  { font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--fg-muted); }

.scan-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
    margin-top: var(--s-6);
}
.scan-metric {
    padding: var(--s-4);
    border: 1px solid var(--line);
    border-radius: var(--r-ctrl);
    background: var(--surface-subtle);
    text-align: center;
}
.scan-metric-value {
    display: block;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: var(--t-title);
    font-weight: 700;
    color: var(--fg);
}
.scan-metric-label { font-size: var(--t-micro); color: var(--fg-subtle); }

.scan-scope {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    margin-top: var(--s-5);
    padding: var(--s-4);
    border: 1px solid var(--line);
    border-radius: var(--r-ctrl);
    background: var(--surface-subtle);
    font-size: var(--t-caption);
    line-height: var(--lh-caption);
    color: var(--fg-muted);
}
.scan-scope .icon { color: var(--fg-subtle); }


/* --- Three-step scanner ---------------------------------------------------
   Deliberately spare. The previous version carried three numbered steps, a
   metrics panel and a scope note — four things competing at once for a feature
   whose whole pitch is that it takes no effort. The proof moved to one quiet
   line beneath. */

.steps-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
    list-style: none;
    counter-reset: none;
}
.step-3 {
    padding: var(--s-8) var(--s-6);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
    text-align: center;
}
.step-3-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    margin-bottom: var(--s-5);
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-family: var(--font-mono);
    font-size: var(--t-caption);
    font-weight: 700;
}
.step-3 h3 {
    font-size: var(--t-headline);
    letter-spacing: var(--tr-headline);
    margin-bottom: var(--s-2);
}
.step-3 p { font-size: var(--t-copy); color: var(--fg-muted); }

.step-3-note {
    margin-top: var(--s-8);
    text-align: center;
    font-size: var(--t-caption);
    color: var(--fg-subtle);
}

@media (max-width: 860px) {
    .steps-3 { grid-template-columns: 1fr; }
    .step-3  { padding: var(--s-6); }
}

/* --- Data trust ---------------------------------------------------------- */

.data-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

.data-trust-card {
    padding: var(--s-6);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
}
.data-trust-header { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); flex-wrap: wrap; }
.data-trust-name { font-family: var(--font-heading); font-size: var(--t-lead); font-weight: 700; letter-spacing: var(--tr-lead); }
.data-trust-region {
    padding: 2px var(--s-2);
    border-radius: var(--r-pill);
    background: var(--surface-subtle);
    font-size: var(--t-micro);
    font-weight: 600;
    color: var(--fg-subtle);
}
.data-trust-desc { font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--fg-muted); }
.data-trust-footer {
    margin-top: var(--s-8);
    padding-top: var(--s-6);
    border-top: 1px solid var(--line-soft);
    text-align: center;
    font-size: var(--t-caption);
    color: var(--fg-subtle);
}

.method-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-4);
    margin-top: var(--s-6);
    padding: var(--s-6);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface-subtle);
}
.method-note h3 { font-size: var(--t-lead); margin-bottom: var(--s-2); }
.method-note p  { font-size: var(--t-caption); line-height: 1.6; color: var(--fg-muted); }

/* --- Feature grid -------------------------------------------------------- */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

.feature-card {
    padding: var(--s-6);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
    transition: box-shadow 380ms var(--curve-spring),
                border-color 380ms var(--curve-spring),
                transform 380ms var(--curve-spring);
}
.feature-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--e-raised);
    transform: translateY(-3px);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    margin-bottom: var(--s-4);
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--brand-strong);
}
.feature-card h3 { font-size: var(--t-lead); margin-bottom: var(--s-2); }
.feature-card p  { font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--fg-muted); }
.feature-label {
    display: inline-block;
    margin-top: var(--s-3);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-subtle);
}


/* --- Bento feature grid --------------------------------------------------
   Card layouts vary with their content; surface treatment does not. Every
   tile below shares the same border weight, radius, shadow and padding as
   .card — only the internal structure and span change. */

.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
}
.bento .card { display: flex; flex-direction: column; }
.bento .card h3 { font-size: var(--t-lead); margin-bottom: var(--s-2); }
.bento .card p  { font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--fg-muted); }
.bento .card {
    transition: box-shadow 380ms var(--curve-spring),
                border-color 380ms var(--curve-spring),
                transform 380ms var(--curve-spring);
}
.bento .card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--e-raised);
    transform: translateY(-3px);
}

/* Lead tile: copy beside a live-looking value panel. */
.bento-lead {
    grid-column: span 2;
    flex-direction: row !important;
    align-items: center;
    gap: var(--s-8);
}
.bento-lead-copy { flex: 1 1 52%; }
.bento-lead-visual {
    flex: 1 1 48%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-3);
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--r-ctrl);
    background: var(--surface-subtle);
}
.mini-stat { display: flex; flex-direction: column; gap: 2px; }
.mini-stat-label { font-size: var(--t-micro); color: var(--fg-subtle); }
.mini-stat-value {
    font-size: var(--t-headline);
    font-weight: 700;
    letter-spacing: var(--tr-headline);
    color: var(--fg);
}
.mini-stat-delta { font-size: var(--t-tiny); font-weight: 600; color: var(--positive-ink); }

.mini-spark { width: 100%; height: 56px; overflow: visible; }
/* The line draws itself once the tile arrives. */
.mini-spark-line {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
}
html.js .visible .mini-spark-line,
html.js .bento-lead.visible .mini-spark-line {
    animation: sparkDraw 1400ms var(--curve-spring) 220ms forwards;
}
.mini-spark-fill { opacity: 0; }
html.js .bento-lead.visible .mini-spark-fill {
    animation: sparkFade 900ms var(--curve) 900ms forwards;
}
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
@keyframes sparkFade { to { opacity: 1; } }

/* Graded tile: the grade chips are the content. */
.bento-graded .grade-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-4);
}
.grade-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-pill);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.01em;
}
.grade-chip b { font-weight: 700; }
.grade-psa { background: var(--psa-soft); color: #9C0F1F; }
.grade-bgs { background: var(--bgs-soft); color: #7C5C07; }
.grade-cgc { background: var(--cgc-soft); color: #173A7E; }
.grade-raw { background: var(--surface-subtle); color: var(--fg-muted); }

/* Closing tile: horizontal, spans the row. */
.bento-wide {
    grid-column: span 3;
    flex-direction: row !important;
    align-items: center;
    gap: var(--s-5);
}
.bento-wide .feature-icon { margin-bottom: 0; }
.bento-wide p { max-width: 62ch; }

@media (max-width: 860px) {
    .bento         { grid-template-columns: 1fr; }
    .bento-lead,
    .bento-wide    { grid-column: span 1; flex-direction: column !important; align-items: flex-start; }
    .bento-lead-visual { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mini-spark-line { stroke-dashoffset: 0; animation: none; }
    .mini-spark-fill { opacity: 1; animation: none; }
    .bento .card:hover { transform: none; }
}

/* --- Coverage ------------------------------------------------------------ */

/* --- Coverage -------------------------------------------------------------
   The wordmarks carry the game name, so the tile shows the mark and the count
   and never repeats the name in text. Marks vary from an 80px-wide Pokéball to
   a 284px-wide MAGIC lockup, so each sits in a fixed-height slot and is
   contained rather than stretched — the same way a logo wall works. */

.tcg-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-3);
}

.tcg-tile {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    padding: var(--s-5);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
    transition: border-color 380ms var(--curve-spring),
                box-shadow 380ms var(--curve-spring),
                transform 380ms var(--curve-spring);
}
.tcg-tile:hover {
    border-color: var(--line-strong);
    box-shadow: var(--e-raised);
    transform: translateY(-3px);
}

.tcg-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
}
/* A square mark reads smaller than a wide wordmark at the same height, so the
   square ones get a larger cap — normalising optical weight, not pixels. */
.tcg-logo-icon img { max-height: 40px; }
.tcg-logo img {
    max-height: 32px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
/* Shown only if the image fails — Riftbound is served from the CDN. */
.tcg-logo-alt {
    display: none;
    font-family: var(--font-heading);
    font-size: var(--t-lead);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fg);
}
.tcg-logo-fallback img      { display: none; }
.tcg-logo-fallback .tcg-logo-alt { display: block; }

/* Japanese Pokémon shares the Pokémon mark, so it is badged rather than given
   an invented logo. */
.tcg-badge {
    position: absolute;
    left: 26px;
    bottom: 2px;
    padding: 1px var(--s-1);
    border-radius: var(--r-sm);
    background: var(--tint, var(--fg));
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    box-shadow: 0 0 0 2px var(--surface);
}

.tcg-meta {
    display: flex;
    align-items: baseline;
    gap: var(--s-2);
    padding-top: var(--s-3);
    border-top: 1px solid var(--line-soft);
}
.tcg-count {
    font-size: var(--t-subheading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
}
.tcg-unit { font-size: var(--t-micro); color: var(--fg-subtle); }

.tcg-sources { margin-top: var(--s-6); text-align: center; font-size: var(--t-caption); color: var(--fg-subtle); }

/* --- Migrate ------------------------------------------------------------- */

.migrate-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-8);
    padding: var(--s-10);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--e-card);
}
.migrate-copy { max-width: 460px; }
.migrate-copy h2 { font-size: var(--t-headline); margin-bottom: var(--s-3); }
.migrate-copy p  { font-size: var(--t-caption); color: var(--fg-muted); }
.migrate-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* --- Comparison ---------------------------------------------------------- */

.comparison-wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-bottom: var(--s-8); }
.comparison-win {
    padding: var(--s-5);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
}
.comparison-win h3 { font-size: var(--t-body); margin-bottom: var(--s-2); }
.comparison-win p  { font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--fg-muted); }

.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
    -webkit-overflow-scrolling: touch;
}
.comparison-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--t-caption); }
.comparison-table th, .comparison-table td { padding: var(--s-3) var(--s-4); text-align: left; }
.comparison-table thead th {
    background: var(--surface-subtle);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-subtle);
    white-space: nowrap;
}
.comparison-table thead th:first-child { color: var(--fg); }
.comparison-table tbody tr + tr { border-top: 1px solid var(--line-soft); }
.comparison-table tbody td:first-child { font-weight: 600; color: var(--fg); }
.cmp-yes     { color: var(--positive-ink); font-weight: 600; }
.cmp-no      { color: var(--fg-subtle); }
.cmp-partial { color: var(--warning); }


/* --- Comparison matrix ----------------------------------------------------
   A real <table> for screen readers, styled as a modern matrix rather than a
   bordered grid. The Flipzi column is a raised spotlight running the full
   height; everything else stays flat, so the eye lands on the one column that
   matters without needing colour to shout.

   Colour carries meaning only: positive for yes, muted for partial, faint for
   no. The row labels do the describing.
   -------------------------------------------------------------------------- */

.cmp { position: relative; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-top: var(--s-2); }

.cmp-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
}

/* --- Head ---------------------------------------------------------------- */
.cmp-table thead th {
    vertical-align: bottom;
    padding: var(--s-5) var(--s-4);
    text-align: center;
    font-weight: 500;
}
.cmp-col-name {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--t-body);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.cmp-col-note {
    display: block;
    margin-top: var(--s-1);
    font-size: var(--t-micro);
    line-height: 1.4;
    color: var(--fg-subtle);
    max-width: 22ch;
    margin-inline: auto;
}
.cmp-us-mark {
    display: inline-block;
    padding: var(--s-2) var(--s-4);
    border-radius: var(--r-pill);
    background: var(--ink);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: var(--t-body);
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: var(--e-brand-soft);
}

/* --- Row labels ---------------------------------------------------------- */
.cmp-rowhead {
    width: 40%;
    padding: var(--s-4) var(--s-5) var(--s-4) 0;
    text-align: left;
    font-size: var(--t-caption);
    font-weight: 500;
    line-height: 1.45;
    color: var(--fg-muted);
}
.cmp-table tbody tr:not(.cmp-group) th,
.cmp-table tbody tr:not(.cmp-group) td { border-top: 1px solid var(--line-soft); }

/* --- Group dividers ------------------------------------------------------ */
.cmp-group td { padding: 0; }
.cmp-group th {
    padding: var(--s-8) 0 var(--s-3);
    text-align: left;
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-subtle);
}
.cmp-table tbody tr.cmp-group:first-child th { padding-top: var(--s-5); }

/* --- The spotlight column ------------------------------------------------
   Painted with box-shadow rather than a background on each cell, so the column
   reads as one continuous raised surface behind the rows. */
.cmp-table th.cmp-us,
.cmp-table td.cmp-us {
    position: relative;
    background: var(--surface);
    width: 15%;
}
.cmp-table thead th.cmp-us {
    border-radius: var(--r-card) var(--r-card) 0 0;
    box-shadow: 0 -1px 0 var(--line) inset, 1px 0 0 var(--line) inset, -1px 0 0 var(--line) inset;
}
.cmp-table tbody td.cmp-us {
    box-shadow: 1px 0 0 var(--line) inset, -1px 0 0 var(--line) inset;
}
.cmp-table tbody tr:last-child td.cmp-us {
    border-radius: 0 0 var(--r-card) var(--r-card);
    box-shadow: 1px 0 0 var(--line) inset, -1px 0 0 var(--line) inset, 0 1px 0 var(--line) inset;
}

/* --- Cells --------------------------------------------------------------- */
.cmp-table td { padding: var(--s-4); text-align: center; }
.cmp-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: var(--r-pill);
}
.cmp-y { background: var(--positive-soft); color: var(--positive-ink); }
.cmp-p { background: var(--surface-subtle); color: var(--fg-subtle); }
.cmp-n { background: transparent;           color: var(--line-strong); }
.cmp-us .cmp-y { background: var(--positive); color: #FFFFFF; }

/* --- Legend -------------------------------------------------------------- */
.cmp-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-5);
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-soft);
    font-size: var(--t-tiny);
    color: var(--fg-subtle);
}
.cmp-legend > span { display: inline-flex; align-items: center; gap: var(--s-2); }
.cmp-legend .cmp-mark { width: 22px; height: 22px; }
.cmp-legend-note { flex: 1 1 260px; min-width: 220px; line-height: 1.5; }

@media (max-width: 860px) {
    /* Horizontal scroll alone leaves you reading labels with the answers off
       screen. Pin the label and the Flipzi column so the comparison that
       matters is always visible; the three category columns scroll past it. */
    .cmp-table   { min-width: 620px; }
    .cmp-scroll  { margin-inline: calc(var(--s-4) * -1); padding-inline: var(--s-4); }

    .cmp-rowhead {
        position: sticky;
        left: 0;
        z-index: 2;
        width: 190px;
        min-width: 190px;
        padding-right: var(--s-3);
        background: var(--canvas);
        font-size: var(--t-tiny);
    }
    .cmp-table th.cmp-us,
    .cmp-table td.cmp-us {
        position: sticky;
        left: 190px;
        z-index: 2;
        width: 86px;
        min-width: 86px;
    }
    /* Edge shadow marks where the pinned pair ends and the scroll begins. */
    .cmp-table td.cmp-us::after,
    .cmp-table th.cmp-us::after {
        content: '';
        position: absolute;
        top: 0; bottom: 0; right: -12px;
        width: 12px;
        pointer-events: none;
        background: linear-gradient(to right, rgba(26, 26, 26, 0.07), transparent);
    }
    .cmp-group th { background: var(--canvas); }
    .cmp-col-note { display: none; }
    .cmp-legend   { font-size: 11px; gap: var(--s-4); }
}

/* --- Pricing ------------------------------------------------------------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-4);
    max-width: 820px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--s-8);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
}
.pricing-card.featured {
    border-color: var(--brand-faded);
    box-shadow: var(--e-brand-soft);
}
.pricing-badge {
    position: absolute;
    top: var(--s-5); right: var(--s-5);
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.pricing-plan {
    font-family: var(--font-heading);
    font-size: var(--t-lead);
    font-weight: 700;
    letter-spacing: var(--tr-lead);
    margin-bottom: var(--s-2);
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: var(--s-1);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: var(--t-hero);
    font-weight: 700;
    letter-spacing: var(--tr-hero);
    color: var(--fg);
}
.pricing-price span { font-family: var(--font-body); font-size: var(--t-body); font-weight: 500; color: var(--fg-subtle); letter-spacing: 0; }
.pricing-old-price { text-decoration: line-through; color: var(--fg-subtle); font-weight: 400; }
.pricing-saving {
    display: inline-block;
    margin-top: var(--s-2);
    padding: 2px var(--s-2);
    border-radius: var(--r-pill);
    background: var(--positive-soft);
    color: var(--positive-ink);
    font-size: var(--t-micro);
    font-weight: 700;
}
.pricing-desc { margin-top: var(--s-3); font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--fg-muted); }
.pricing-features { display: flex; flex-direction: column; gap: var(--s-3); margin: var(--s-6) 0; list-style: none; }
.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-size: var(--t-caption);
    line-height: var(--lh-caption);
    color: var(--fg-muted);
}
.pricing-feature .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--positive); }
.pricing-feature-soon { color: var(--fg-subtle); }
.pricing-feature-soon .icon { color: var(--fg-subtle); }
.pricing-cta { margin-top: auto; }

.pricing-roi {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-4);
    max-width: 820px;
    margin: var(--s-8) auto 0;
    padding: var(--s-6);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface-subtle);
}
.pricing-roi-icon { color: var(--gold); }
.pricing-roi-text { font-size: var(--t-caption); line-height: 1.6; color: var(--fg-muted); }
.pricing-roi-text strong { color: var(--fg); }

/* --- Platform band ------------------------------------------------------- */

.platform {
    background: var(--surface);
    border-block: 1px solid var(--line);
}
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

.platform-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--s-6);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--canvas);
    color: var(--fg);
    overflow: hidden;
    transition: border-color 380ms var(--curve-spring),
                box-shadow 380ms var(--curve-spring),
                transform 380ms var(--curve-spring);
}
/* A brand wash rises from the foot of the card on hover, so the three doors
   read as active surfaces rather than static panels. */
.platform-card::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 100%;
    background: linear-gradient(to top, var(--brand-soft), transparent 62%);
    opacity: 0;
    transition: opacity 380ms var(--curve-spring);
    pointer-events: none;
}
.platform-card:hover::before { opacity: 1; }
.platform-card > * { position: relative; }
.platform-card:hover {
    border-color: var(--brand-faded);
    box-shadow: var(--e-raised);
    transform: translateY(-3px);
    color: var(--fg);
}
.platform-arrow .icon { transition: transform 320ms var(--curve-spring); }
.platform-card:hover .platform-arrow .icon { transform: translateX(4px); }
.platform-card h3 { font-size: var(--t-lead); margin-bottom: var(--s-2); }
.platform-card p  { font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--fg-muted); flex-grow: 1; }
.platform-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line-soft);
}
.platform-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    margin-top: var(--s-4);
    font-size: var(--t-caption);
    font-weight: 600;
    color: var(--brand-strong);
}

/* --- API tiers ----------------------------------------------------------- */

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

.tier-card {
    display: flex;
    flex-direction: column;
    padding: var(--s-6);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
}
.tier-card.featured { border-color: var(--brand-faded); box-shadow: var(--e-brand-soft); }
.tier-name {
    font-family: var(--font-heading);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-subtle);
    margin-bottom: var(--s-3);
}
.tier-price {
    display: flex; align-items: baseline; gap: var(--s-1);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: var(--t-display);
    font-weight: 700;
    letter-spacing: var(--tr-display);
    margin-bottom: var(--s-5);
}
.tier-price span { font-family: var(--font-body); font-size: var(--t-caption); font-weight: 500; color: var(--fg-subtle); letter-spacing: 0; }
.tier-specs { display: flex; flex-direction: column; gap: var(--s-3); list-style: none; }
.tier-spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
    font-size: var(--t-caption);
    color: var(--fg-muted);
}
.tier-spec b {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--fg);
}

.tier-contract {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    margin-top: var(--s-4);
    padding: var(--s-5) var(--s-6);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-card);
    background: var(--surface-subtle);
    font-size: var(--t-caption);
    color: var(--fg-muted);
}

/* --- Endpoint list ------------------------------------------------------- */

.endpoint-list { display: flex; flex-direction: column; }
.endpoint {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-3) var(--s-4);
    font-family: var(--font-mono);
    font-size: var(--t-tiny);
}
.endpoint + .endpoint { border-top: 1px solid var(--line-soft); }
.endpoint-verb {
    min-width: 44px;
    font-weight: 700;
    color: var(--brand-strong);
}
.endpoint-path { color: var(--fg); }
.endpoint-desc { margin-left: auto; font-family: var(--font-body); font-size: var(--t-tiny); color: var(--fg-subtle); text-align: right; }

/* --- Data ownership ------------------------------------------------------ */

.data-ownership-banner-wrap { padding-block: var(--s-8); }
.data-ownership-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--s-5);
    padding: var(--s-6) var(--s-8);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
}
.data-ownership-icon { color: var(--positive); }
.data-ownership-text { font-size: var(--t-caption); line-height: 1.6; color: var(--fg-muted); }
.data-ownership-text strong { color: var(--fg); }

/* --- FAQ ----------------------------------------------------------------- */

.faq-list { max-width: var(--max-narrow); margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 1px solid var(--line-soft); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-5) 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: var(--t-copy);
    font-weight: 600;
    letter-spacing: -0.008em;
    color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    width: 10px; height: 10px;
    border-right: 2px solid var(--fg-subtle);
    border-bottom: 2px solid var(--fg-subtle);
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--t-micro-ms) var(--curve);
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-answer {
    padding-bottom: var(--s-5);
    font-size: var(--t-caption);
    line-height: 1.65;
    color: var(--fg-muted);
}
.faq-answer p + p { margin-top: var(--s-3); }
/* Legacy alias used by the SEO landers. */
.faq-item-seo { border-bottom: 1px solid var(--line-soft); }

/* --- Final CTA ----------------------------------------------------------- */

.final-cta { padding-block: var(--s-20); background: var(--surface); border-top: 1px solid var(--line); }
.final-cta-content { max-width: 620px; margin: 0 auto; text-align: center; }
.final-cta-content h2 { margin-bottom: var(--s-4); }
.final-cta-content > p { font-size: var(--t-lead); color: var(--fg-muted); margin-bottom: var(--s-8); }
.final-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.final-cta-micro { font-size: var(--t-tiny); color: var(--fg-subtle); }

/* --- About / AEO --------------------------------------------------------- */

.about-block { max-width: var(--max-narrow); }
.about-block p { font-size: var(--t-caption); line-height: 1.7; color: var(--fg-muted); }
.about-block p + p { margin-top: var(--s-4); }
.about-facts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }


/* ==========================================================================
   SIGNAL — signature elements for the dark direction
   ========================================================================== */

/* --- Hero wash ------------------------------------------------------------
   One quiet tint behind the hero, not three drifting blobs. The animated
   multi-colour aurora is deliberately gone: it is the single most recognisable
   tell of a generic AI-generated landing page. */
.aurora {
    position: absolute;
    inset: -20% -10% auto;
    height: 620px;
    pointer-events: none;
    z-index: 0;
    background: none;
}
.aurora i { display: none; }

/* --- Glass panel ----------------------------------------------------------
   A lighter material than .card, for things that float above content. */
/* Was a glassmorphic panel. On a light ground a solid surface with a hairline
   and a real shadow reads as more considered, and less like a template. */
.glass {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--e-raised);
}

/* --- Ticker ---------------------------------------------------------------
   Duplicated content translated -50%, so the loop is seamless. */
.ticker {
    border-block: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    padding: var(--s-4) 0;
}
.ticker-row {
    display: flex;
    gap: var(--s-12);
    width: max-content;
    animation: tickerSlide 38s linear infinite;
}
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-row span {
    display: flex; align-items: center; gap: var(--s-3);
    font-size: var(--t-caption); color: var(--fg-muted); white-space: nowrap;
}
.ticker-row b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--fg); }
/* The wordmark identifies the game; a coloured dot never did. */
.ticker-logo {
    height: 20px;
    width: auto;
    max-width: 92px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
}
@keyframes tickerSlide { to { transform: translateX(-50%); } }

/* --- Floating chips pinned to the hero device ---------------------------- */
.float-chip {
    position: absolute;
    display: flex; align-items: center; gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-ctrl);
    font-size: var(--t-tiny);
    white-space: nowrap;
    animation: chipBob 5s ease-in-out infinite;
    z-index: 3;
}
.float-chip {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--e-raised);
}
.float-chip-k {
    width: 30px; height: 30px; border-radius: var(--r-md);
    display: grid; place-items: center; flex-shrink: 0;
}
/* Real card artwork, cropped from our own product screenshot rather than
   hotlinked from a publisher's CDN. */
.float-chip-art {
    width: 34px; height: 34px;
    border-radius: var(--r-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px var(--line);
}
.float-chip-l { color: var(--fg-subtle); font-size: 11px; }
.float-chip-1 { top: 4%; left: -22%; }
.float-chip-2 { bottom: 8%; right: -18%; animation-delay: -2.5s; }
.float-chip-v { font-family: var(--font-mono); font-weight: 700; color: var(--fg); }
@keyframes chipBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* --- Sticky-pinned proof --------------------------------------------------
   The panel holds while the claims beside it scroll past. */
.pin-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-20); align-items: start; }
.pin { position: sticky; top: calc(var(--nav-height) + var(--s-8)); }

/* --- Ledger rows (price comparison) -------------------------------------- */
.ledger-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line);
}
.ledger-row:last-of-type { border-bottom: 0; }
.ledger-row { display: grid; grid-template-columns: 1fr 84px auto; align-items: center; gap: var(--s-4); }
.ledger-row .l { font-size: var(--t-caption); color: var(--fg-muted); }
.ledger-row .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--t-lead); font-weight: 700; text-align: right; }

/* The bar encodes the price relative to the highest in the set. A coloured
   swatch carried no information; this does. */
.ledger-bar {
    display: block;
    height: 4px;
    border-radius: var(--r-pill);
    background: var(--surface-subtle);
    overflow: hidden;
}
.ledger-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--line-strong);
}
.ledger-row.is-ours .ledger-bar-fill { background: var(--brand); }
.ledger-row.is-ours .l { color: var(--fg); font-weight: 600; }
.ledger-verdict {
    margin-top: var(--s-5);
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-ctrl);
    background: var(--positive-soft);
    border: 1px solid rgba(46, 216, 160, 0.28);
    font-size: var(--t-caption);
    font-weight: 600;
    color: var(--positive-ink);
}

/* --- Numbered claim cards ------------------------------------------------- */
.claim {
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    padding: var(--s-6);
    background: var(--surface);
    box-shadow: var(--e-card);
    transition: border-color 380ms var(--curve-spring), transform 380ms var(--curve-spring);
}
.claim:hover { border-color: var(--line-strong); transform: translateX(6px); }
.claim-n {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    color: var(--brand-strong);
    margin-bottom: var(--s-3);
}
.claim h3 { font-size: var(--t-title); letter-spacing: var(--tr-title); margin-bottom: var(--s-2); }
.claim p  { font-size: var(--t-body); color: var(--fg-muted); line-height: 1.6; }

/* --- Device: perspective tilt so the product sits in space ---------------- */
.device { position: relative; }
.device img {
    width: 100%; display: block; border-radius: 0;
    border: 1px solid var(--line);
    box-shadow: none;
}

@media (max-width: 900px) {
    .pin-wrap { grid-template-columns: 1fr; gap: var(--s-10); }
    .pin { position: static; }
    .float-chip { display: none; }
    .device { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .aurora i, .ticker-row, .float-chip { animation: none; }
    .claim:hover { transform: none; }
    .device, .device:hover { transform: none; }
}

/* ==========================================================================
   6. CONTENT PAGES
   Blog, legal, changelog, roadmap, and the SEO landers. These pages are not
   touched by the rebuild — they inherit everything below.
   ========================================================================== */

.page-header {
    padding: calc(var(--nav-height) + var(--s-12)) 0 var(--s-8);
    text-align: center;
}
.page-header h1 { margin-bottom: var(--s-3); }
.page-header p {
    max-width: 560px;
    margin: 0 auto;
    font-size: var(--t-lead);
    line-height: var(--lh-lead);
    color: var(--fg-muted);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
    padding-block: var(--s-4);
    font-size: var(--t-tiny);
    color: var(--fg-subtle);
}
.breadcrumbs a { color: var(--fg-subtle); }
.breadcrumbs a:hover { color: var(--fg); }

.highlight-box {
    padding: var(--s-6);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--r-ctrl);
    background: var(--surface);
    font-size: var(--t-caption);
    line-height: 1.65;
    color: var(--fg-muted);
}
.highlight-box strong { color: var(--fg); }

.contact-box {
    padding: var(--s-6);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface-subtle);
    font-size: var(--t-caption);
    line-height: 1.65;
    color: var(--fg-muted);
}

/* --- Legal --------------------------------------------------------------- */

/* .policy-layout and .blog-post-layout are used as bare <div>s directly inside
   <main>, not wrapped in .container the way the .blog-post-header / policy
   header above them is. Without the container geometry they run edge-to-edge
   and the sticky TOC sits flush against the viewport, misaligned with their own
   page heading. These four declarations are .container's, inlined. */
.policy-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--s-12);
    align-items: start;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--s-6);
    padding-block: var(--s-8) var(--s-24);
}
.policy-toc {
    position: sticky;
    top: calc(var(--nav-height) + var(--s-6));
    padding: var(--s-5);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
}
.toc-title {
    margin-bottom: var(--s-3);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-subtle);
}
.toc-list { display: flex; flex-direction: column; gap: var(--s-2); list-style: none; }
.toc-list a { font-size: var(--t-tiny); color: var(--fg-muted); }
.toc-list a:hover { color: var(--brand-ink); }

.policy-content { max-width: 76ch; font-size: var(--t-copy); line-height: 1.7; color: var(--fg-muted); }
.policy-content > * + * { margin-top: var(--s-4); }
.policy-content h2 { margin-top: var(--s-10); color: var(--fg); }
.policy-content h3 { margin-top: var(--s-6); color: var(--fg); }
.policy-content ul, .policy-content ol { padding-left: var(--s-6); }
.policy-content table, .blog-content table { max-width: none; width: 100%; }
.policy-content li + li { margin-top: var(--s-2); }
.policy-content strong { color: var(--fg); font-weight: 600; }
.policy-content a { text-decoration: underline; }
.policy-meta {
    padding: var(--s-4);
    border-radius: var(--r-ctrl);
    background: var(--surface-subtle);
    font-size: var(--t-tiny);
    color: var(--fg-subtle);
}

/* --- Blog index ---------------------------------------------------------- */

.blog-index { padding-block: var(--s-8) var(--s-24); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

.blog-card {
    display: flex;
    flex-direction: column;
    padding: var(--s-6);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
    color: var(--fg);
    transition: border-color 380ms var(--curve-spring),
                box-shadow 380ms var(--curve-spring),
                transform 380ms var(--curve-spring);
}
.blog-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--e-raised);
    transform: translateY(-3px);
    color: var(--fg);
}
.blog-card-read svg { transition: transform 320ms var(--curve-spring); }
.blog-card:hover .blog-card-read svg { transform: translateX(4px); }
.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
    font-size: var(--t-micro);
    color: var(--fg-subtle);
}
.blog-card-category { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-strong); }
.blog-card-dot { width: 3px; height: 3px; border-radius: var(--r-pill); background: var(--line-strong); }
.blog-card h2, .blog-card h3 { font-size: var(--t-lead); line-height: var(--lh-lead); letter-spacing: var(--tr-lead); margin-bottom: var(--s-2); }
.blog-card-excerpt { flex-grow: 1; font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--fg-muted); }
.blog-card-read {
    display: inline-flex; align-items: center; gap: var(--s-1);
    margin-top: var(--s-4);
    font-size: var(--t-tiny); font-weight: 600; color: var(--brand-strong);
}
.blog-card-read svg { width: 14px; height: 14px; }

/* --- Blog post ----------------------------------------------------------- */

.blog-post-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--s-12);
    align-items: start;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--s-6);
    padding-block: var(--s-6) var(--s-24);
}
.blog-post-header { padding-block: var(--s-6) var(--s-8); }
.blog-post-category {
    display: inline-block;
    margin-bottom: var(--s-3);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-strong);
}
.blog-post-subtitle {
    margin-top: var(--s-4);
    font-size: var(--t-subheading);
    line-height: var(--lh-subheading);
    color: var(--fg-muted);
}
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-5);
    font-size: var(--t-tiny);
    color: var(--fg-subtle);
}
.blog-post-meta-sep { width: 3px; height: 3px; border-radius: var(--r-pill); background: var(--line-strong); }

.blog-toc {
    position: sticky;
    top: calc(var(--nav-height) + var(--s-6));
    padding: var(--s-5);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
}
.blog-toc-label {
    margin-bottom: var(--s-3);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-subtle);
}
.blog-toc-list { display: flex; flex-direction: column; gap: var(--s-2); list-style: none; }
.blog-toc-list a { font-size: var(--t-tiny); color: var(--fg-muted); }
.blog-toc-list a:hover { color: var(--brand-ink); }

.blog-content { min-width: 0; max-width: 72ch; font-size: var(--t-lead); line-height: 1.75; color: var(--fg-muted); }
.blog-content > * + * { margin-top: var(--s-5); }
.blog-content h2 { margin-top: var(--s-12); color: var(--fg); }
.blog-content h3 { margin-top: var(--s-8); color: var(--fg); }
.blog-content ul, .blog-content ol { padding-left: var(--s-6); }
.blog-content li + li { margin-top: var(--s-2); }
.blog-content strong { color: var(--fg); font-weight: 600; }
.blog-content table { width: 100%; border-collapse: collapse; font-size: var(--t-caption); }
.blog-content th, .blog-content td { padding: var(--s-3); text-align: left; border-bottom: 1px solid var(--line-soft); }
.blog-content th { font-weight: 700; color: var(--fg); }

/* Code inside an article body. `.blog-content` shipped with no `code` or `pre`
   rule at all, so every developer page that needed one was duplicating an
   inline <style> block (see /api/ and /api/terms/). One rule, used by the
   guides under /api/guides/ and available to every existing post. */
.blog-content code { padding: 2px 6px; border-radius: var(--r-sm); background: var(--surface-subtle); font-family: var(--font-mono); font-size: .875em; color: var(--fg); word-break: break-word; }
.blog-content pre { max-width: none; padding: var(--s-5); overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface-subtle); font-family: var(--font-mono); font-size: var(--t-caption); line-height: 1.7; -webkit-overflow-scrolling: touch; }
.blog-content pre code { padding: 0; background: none; border-radius: 0; font-size: inherit; word-break: normal; color: inherit; }
.blog-content pre .c-cm { color: var(--fg-subtle); }
.blog-content dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); margin: 0 0 var(--s-6); }
.blog-content dt { font-weight: 700; color: var(--fg-muted); }
.blog-content dd { margin: 0; }
.blog-content figure { margin: 0 0 var(--s-6); }
.blog-content .mg-hub-grid { margin-bottom: var(--s-8); }
.blog-content .mg-deadline { padding: var(--s-4) var(--s-5); border-left: 4px solid var(--warning); border-radius: var(--r-md); background: var(--warning-soft); color: var(--fg); }
.blog-content .mg-deadline strong { color: var(--warning); }
.blog-content .mg-deadline code { white-space: nowrap; }
.blog-content .mg-hub-grid h3 { margin-top: var(--s-2); }
.blog-content .mg-hub-grid p { margin: var(--s-2) 0 0; font-size: var(--t-caption); font-weight: 400; color: var(--fg-muted); }

.blog-pullquote {
    padding: var(--s-6);
    border-left: 3px solid var(--brand);
    background: var(--surface);
    border-radius: 0 var(--r-ctrl) var(--r-ctrl) 0;
    font-size: var(--t-subheading);
    line-height: var(--lh-subheading);
    color: var(--fg);
    font-weight: 500;
}

.blog-cta-box, .blog-explore-flipzi {
    padding: var(--s-6);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
    font-size: var(--t-caption);
    line-height: 1.65;
    color: var(--fg-muted);
}

/* The one-line developer note that closes every blog post. Deliberately NOT a
   .blog-cta-box: these are collector articles, and a full CTA panel selling an
   API to someone reading about Lorcana prices reads as a misfire. A rule, a
   line of text and two links — enough to be found, small enough to ignore. */
.blog-dev-note {
    margin-top: var(--s-10);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-soft);
    font-size: var(--t-caption);
    line-height: 1.65;
    color: var(--fg-subtle);
}
.blog-dev-note a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.blog-dev-note a:hover { color: var(--brand); }

.blog-faq { margin-top: var(--s-12); }
.blog-faq-title { margin-bottom: var(--s-5); }

.blog-related { margin-top: var(--s-12); padding-top: var(--s-8); border-top: 1px solid var(--line); }
.blog-related-title { margin-bottom: var(--s-5); font-size: var(--t-heading); }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.blog-related-card {
    padding: var(--s-4);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-ctrl);
    background: var(--surface);
    color: var(--fg);
    font-size: var(--t-caption);
    font-weight: 600;
    line-height: var(--lh-caption);
    transition: border-color var(--t-micro-ms) var(--curve);
}
.blog-related-card:hover { border-color: var(--line-strong); color: var(--fg); }
.blog-related-card-cat {
    display: block;
    margin-bottom: var(--s-1);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-strong);
}
/* The chevron separators are inline <svg>, and the global rule at the top of
   this file sets `img, svg, video { display: block }` — so without a flex
   context every crumb and every chevron takes its own line. */
.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
    padding-block: var(--s-4);
    font-size: var(--t-tiny);
    color: var(--fg-subtle);
}
.blog-breadcrumb svg { width: 12px; height: 12px; flex: none; opacity: 0.55; }

/* --- Data-journalism figures --------------------------------------------- */
/* Charts for the published analyses (docs/analyses/). Hand-authored inline SVG
   only — this site loads no charting library and should not start. The house
   rules apply: tabular-nums on every number, colour only where it carries
   meaning, grey for structure, transform/opacity-only motion.

   .blog-content is capped at 72ch, which no chart fits inside, so .fig-wide
   breaks out to the container width. Both stay inside the grid column, so the
   page itself never scrolls sideways — wide content scrolls in its own box. */

.fig {
    margin-block: var(--s-10);
}

/* Break out of the 72ch measure, up to the width of the article column. */
.fig-wide {
    width: 100%;
    max-width: none;
}

.fig-head {
    margin-bottom: var(--s-4);
}
.fig-title {
    margin: 0 0 var(--s-1);
    font-size: var(--t-small);
    font-weight: 650;
    color: var(--fg);
}
.fig-sub {
    margin: 0;
    font-size: var(--t-tiny);
    color: var(--fg-muted);
}

/* Every chart lives in its own scroll container. Wide tables and wide SVGs
   scroll here rather than forcing the page to. */
.fig-body {
    overflow-x: auto;
    padding-bottom: var(--s-2);
}
.fig-body svg {
    display: block;
    width: 100%;
    height: auto;
}

.fig-cap {
    margin-top: var(--s-3);
    padding-top: var(--s-3);
    border-top: 1px solid var(--line-soft);
    font-size: var(--t-tiny);
    line-height: 1.6;
    color: var(--fg-muted);
}
.fig-cap strong { color: var(--fg); font-weight: 600; }

/* Axis furniture. Grey builds the structure; the series carries the colour. */
.fig-axis     { font-family: var(--font-mono); font-size: 11px; fill: var(--fg-subtle); }
.fig-grid     { stroke: var(--line-soft); stroke-width: 1; }
.fig-baseline { stroke: var(--line-strong); stroke-width: 1; }
.fig-label    { font-size: 12px; fill: var(--fg-muted); }
.fig-value    { font-family: var(--font-mono); font-size: 12px; fill: var(--fg); font-variant-numeric: tabular-nums; }

/* Series fills. Semantic only: -pos/-neg mean gained/lost value, -brand is the
   Flipzi series, -muted is the comparison it is measured against. */
.fig-bar          { fill: var(--brand); }
.fig-bar-muted    { fill: var(--fg-subtle); opacity: 0.35; }
.fig-bar-pos      { fill: var(--positive); }
.fig-bar-neg      { fill: var(--negative); }

/* Line series. Same semantics as the bar fills, expressed as strokes: a line
   is never filled. .fig-dot* draws an isolated single reading that has no
   neighbour to connect to -- it is real evidence and must not vanish. */
.fig-line        { fill: none; stroke: var(--brand);     stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.fig-line-muted  { fill: none; stroke: var(--fg-subtle); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; opacity: 0.55; }
.fig-line-pos    { fill: none; stroke: var(--positive);  stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.fig-line-neg    { fill: none; stroke: var(--negative);  stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.fig-dot         { fill: var(--brand); }
.fig-dot-muted   { fill: var(--fg-subtle); opacity: 0.55; }
.fig-dot-pos     { fill: var(--positive); }
.fig-dot-neg     { fill: var(--negative); }

/* An annotation marks a known hole in the data — a broken worker, a stale
   sweep. Never used decoratively: if it is on the chart, something is wrong
   with the data underneath it and the caption says what. */
.fig-annotation      { stroke: var(--fg-subtle); stroke-width: 1; stroke-dasharray: 3 3; }
.fig-annotation-text { font-size: 11px; fill: var(--fg-subtle); }

/* Sample-size chip. Sits next to any figure whose N is small enough that the
   reader should discount it. */
.fig-n {
    display: inline-block;
    padding: 1px var(--s-2);
    border-radius: var(--r-sm);
    background: var(--surface-sunken);
    font-family: var(--font-mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--fg-muted);
}
.fig-n-thin { color: var(--negative); }

/* "Reproduce this" — the block under every chart carrying the query, the API
   call and the dataset. The whole credibility of these pieces rests on it. */
.repro {
    margin-block: var(--s-10);
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface-subtle);
}
.repro-title {
    margin: 0 0 var(--s-3);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-subtle);
}
.repro pre {
    overflow-x: auto;
    margin: 0 0 var(--s-3);
    padding: var(--s-3);
    border-radius: var(--r-sm);
    background: var(--surface-sunken);
    font-family: var(--font-mono);
    font-size: var(--t-tiny);
    line-height: 1.6;
}
.repro-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--t-tiny);
}

/* Method note. Window, N, exclusions, confidence floor, known gaps — the
   section that makes a number checkable rather than merely stated. */
.method {
    margin-block: var(--s-10);
    padding-left: var(--s-5);
    border-left: 3px solid var(--line-strong);
    font-size: var(--t-tiny);
    line-height: 1.7;
    color: var(--fg-muted);
}
.method h3 {
    margin: 0 0 var(--s-2);
    font-size: var(--t-small);
    color: var(--fg);
}
.method dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-1) var(--s-4); margin: 0; }
.method dt { font-weight: 600; color: var(--fg); }
.method dd { margin: 0; }

@media (max-width: 640px) {
    .method dl { grid-template-columns: 1fr; gap: 0 0; }
    .method dd { margin-bottom: var(--s-2); }
}

/* --- Changelog / roadmap ------------------------------------------------- */

.changelog, .roadmap { padding-block: var(--s-8) var(--s-24); }

.release-section { margin-bottom: var(--s-12); }
.release-section-title {
    margin-bottom: var(--s-5);
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-subtle);
}
.release {
    padding: var(--s-6);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    background: var(--surface);
    box-shadow: var(--e-card);
}
.release + .release { margin-top: var(--s-3); }
.release-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}
.release-version {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: var(--t-lead);
    font-weight: 700;
    color: var(--fg);
}
.release-date { font-size: var(--t-tiny); color: var(--fg-subtle); }
.release-tag {
    padding: 2px var(--s-2);
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: var(--t-micro);
    font-weight: 700;
}
.release-tag.shipped { background: var(--positive-soft); color: var(--positive-ink); }
.release-tag.next    { background: var(--info-soft);     color: var(--info); }
.release-tag.planned { background: var(--surface-subtle); color: var(--fg-subtle); }
.release-list { display: flex; flex-direction: column; gap: var(--s-2); padding-left: var(--s-5); }
.release-list li { font-size: var(--t-caption); line-height: var(--lh-caption); color: var(--fg-muted); }

.read-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 2px;
    z-index: 120;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-inner        { grid-template-columns: 1fr; gap: var(--s-12); text-align: center; }
    .hero-sub          { margin-inline: auto; }
    .hero-cta-row,
    .hero-proof,
    .store-badges      { justify-content: center; }
    .scanner-inner     { grid-template-columns: 1fr; gap: var(--s-10); }
    .footer-grid       { grid-template-columns: repeat(3, 1fr); }
    .blog-post-layout,
    .policy-layout     { grid-template-columns: 1fr; gap: var(--s-8); }
    .blog-toc, .policy-toc { position: static; }
    .tcg-row           { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .navbar-links      { display: none; }
    .hamburger         { display: flex; }
    .nav-cta-desktop   { display: none; }
    .features-grid,
    .data-trust-grid,
    .comparison-wins,
    .platform-grid,
    .tier-grid,
    .blog-grid,
    .blog-related-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .pricing-grid      { grid-template-columns: 1fr; }
    .stats-ribbon-inner { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
    /* At two columns the separator must fall between the pair, not at the start
       of a new row. */
    .stat-item + .stat-item::before   { display: none; }
    .stat-item:nth-child(even)::before { display: block; left: calc(var(--s-8) / -2); }
    .section           { padding-block: var(--s-16); }
    .section-tight     { padding-block: var(--s-12); }
    .final-cta         { padding-block: var(--s-16); }
    .migrate-inner     { padding: var(--s-6); }
}

@media (max-width: 640px) {
    .container         { padding-inline: var(--s-4); }
    /* Dividers strand at the end of a wrapped line; the gap alone reads fine. */
    .proof-divider     { display: none; }
    .hero-proof        { gap: var(--s-2) var(--s-4); }
    .navbar-inner      { padding-inline: var(--s-4); }
    .hero              { padding-block: calc(var(--nav-height) + var(--s-12)) var(--s-12); }
    .tcg-row           { grid-template-columns: repeat(2, 1fr); }
    .scan-metrics      { grid-template-columns: 1fr; }
    .footer-grid       { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
    .card, .feature-card, .data-trust-card, .platform-card, .tier-card, .blog-card { padding: var(--s-5); }
    .pricing-card      { padding: var(--s-6); }
    .method-note,
    .pricing-roi,
    .data-ownership-banner { grid-template-columns: 1fr; }
    .endpoint          { flex-wrap: wrap; }
    .endpoint-desc     { margin-left: 0; width: 100%; text-align: left; }
}

/* ==========================================================================
   ACCESSIBILITY PREFERENCES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-up, [data-reveal] { opacity: 1; transform: none; }
    /* Press feedback becomes non-vestibular. */
    button:active, [role="button"]:active, .btn:active { transform: none; opacity: 0.75; }
    .card-interactive:hover, .platform-card:hover, .blog-card:hover,
    .feature-card:hover { transform: none; }
    /* Follow-through and the scroll-edge wash are decorative; drop them. */
    .btn:hover .icon,
    .platform-card:hover .platform-arrow .icon,
    .blog-card:hover .blog-card-read svg { transform: none; }
    .navbar::after { display: none; }
    .read-progress { display: none; }
    [data-parallax] { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
    .navbar { background: var(--canvas); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
    :root {
        --line:        #C9C4BF;
        --line-soft:   #D5D0CC;
        --fg-subtle:   #4A4550;
        --fg-muted:    #3A3A3A;
    }
    .card, .feature-card, .data-trust-card, .platform-card, .tier-card { border-color: var(--line-strong); }
}

@media print {
    .navbar, .mobile-menu, .footer, .skip-link, .final-cta { display: none; }
    body { background: #fff; }
}

/* ==========================================================================
   8. LEGACY SECTION WRAPPERS
   Section and header class names used by the SEO landers and blog posts that
   this rebuild does not touch. They map onto the same rhythm and header
   treatment as .section / .section-header so those pages inherit cleanly.
   Do not remove without migrating every page that composes from them.
   ========================================================================== */

.hero-content { }

.features-section,
.data-trust,
.comparison,
.pricing,
.faq,
.social-proof,
.tcg-strip { padding-block: var(--s-20); }

.features-header,
.comparison-header,
.pricing-header,
.faq-header,
.social-proof-header,
.tcg-strip-header {
    max-width: 620px;
    margin: 0 auto var(--s-12);
    text-align: center;
}
.features-header h2,
.comparison-header h2,
.pricing-header h2,
.faq-header h2,
.social-proof-header h2,
.tcg-strip-header h2 { margin-bottom: var(--s-4); }

.features-header p,
.comparison-header p,
.pricing-header p,
.faq-header p,
.social-proof-header p,
.tcg-strip-header p {
    font-size: var(--t-lead);
    line-height: var(--lh-lead);
    color: var(--fg-muted);
}

.blog-post-meta-item { display: inline-flex; align-items: center; gap: var(--s-1); }

@media (max-width: 860px) {
    .features-section,
    .data-trust,
    .comparison,
    .pricing,
    .faq,
    .social-proof,
    .tcg-strip { padding-block: var(--s-16); }
}

/* ==========================================================================
   10. ROADMAP  (public/roadmap.php)

   The roadmap was one of the ~35 pages the rebuild skipped, so it ran on the
   legacy alias layer with its own $pageInlineStyles heredoc and off-grid
   padding. This layer replaces that. Primary token names only.

   Everything structural is reused from layer 3 — .container, .section,
   .section-header, .eyebrow, .icon-tile, .badge, .stats-ribbon, .btn. The
   .rm-* classes below are only the shapes those primitives do not cover:
   the capability grid, the coverage strip and the release ladder.
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */

.rm-hero {
    padding-block: var(--s-20) var(--s-16);
    border-bottom: 1px solid var(--line-soft);
}
.rm-hero-inner { max-width: 780px; }
.rm-hero h1 { margin-bottom: var(--s-5); }

.rm-lede {
    font-size: var(--t-subheading);
    line-height: var(--lh-subheading);
    color: var(--fg-muted);
    max-width: 66ch;
}

/* --- Capability tracks --------------------------------------------------- */

.rm-track-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
}

/* Depth from a surface shift and a hairline, never a shadow. The hover lift is
   a border change only, so it costs nothing on a scroll. */
.rm-track {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-6);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    transition: border-color var(--t-micro-ms) var(--curve);
}
.rm-track:hover { border-color: var(--line-strong); }

.rm-track h3 {
    font-size: var(--t-heading);
    line-height: var(--lh-heading);
    letter-spacing: var(--tr-heading);
}
.rm-track p {
    font-size: var(--t-body);
    line-height: var(--lh-body);
    color: var(--fg-muted);
    flex-grow: 1;
}

.rm-track-versions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-2);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line-soft);
    width: 100%;
}

/* A version chip is a jump link into the ladder. Smaller and tighter than the
   shared .chip, which is sized for standalone filters. */
.rm-chip {
    display: inline-flex;
    align-items: center;
    padding: var(--s-1) var(--s-3);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-subtle);
    color: var(--fg-muted);
    font-size: var(--t-micro);
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: border-color var(--t-micro-ms) var(--curve),
                background-color var(--t-micro-ms) var(--curve),
                color var(--t-micro-ms) var(--curve);
}
a.rm-chip:hover {
    border-color: var(--brand-faded);
    background: var(--brand-soft);
    color: var(--brand-strong);
}

/* --- Coverage strip ------------------------------------------------------ */

.rm-coverage {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--s-3);
}

/* --tint is the game's own brand colour, set inline from FZ_CARDS_BY_GAME. It
   is used only as a top hairline, so a bright mark never fights the page. */
.rm-coverage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--s-3);
    padding: var(--s-5) var(--s-3);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--tint, var(--line));
    border-radius: var(--r-ctrl);
}
.rm-coverage-item h3 {
    font-size: var(--t-caption);
    line-height: var(--lh-caption);
    letter-spacing: 0;
    color: var(--fg);
}
/* "Magic: The Gathering" wraps to two lines while its neighbours do not. The
   grid already stretches every item to the tallest, so pushing the chip down
   with auto margin keeps the whole row of version chips on one baseline. */
.rm-coverage-item .rm-chip { margin-top: auto; }

.rm-coverage-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 32px;
}
.rm-coverage-logo img { max-height: 32px; width: auto; object-fit: contain; }
.rm-coverage-logo-icon img { max-height: 28px; }
/* Fallback wordmark when the image 404s — the onerror handler unhides it. */
.rm-coverage-logo span {
    font-size: var(--t-caption);
    font-weight: 700;
    color: var(--fg);
}
.rm-coverage-logo b {
    position: absolute;
    top: -4px; right: -10px;
    padding: 1px 4px;
    border-radius: var(--r-sm);
    background: var(--tint, var(--fg));
    color: #FFF;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

/* --- Release ladder ------------------------------------------------------ */

.rm-ladder {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.rm-release {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--s-6);
    padding-block: var(--s-6);
    border-bottom: 1px solid var(--line-soft);
}

.rm-release-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
}

/* The version is the thing you scan for, so it gets the display size and the
   mono face. scroll-margin-top clears the sticky navbar on a chip jump. */
.rm-release-v {
    font-size: var(--t-title);
    line-height: var(--lh-title);
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.rm-release { scroll-margin-top: calc(var(--nav-height) + var(--s-6)); }

.rm-release-date {
    font-size: var(--t-caption);
    color: var(--fg-subtle);
}

.rm-release-items { list-style: none; margin: 0; padding: 0; }
.rm-release-items li {
    position: relative;
    padding-left: var(--s-5);
    padding-block: var(--s-1);
    font-size: var(--t-copy);
    line-height: var(--lh-copy);
    color: var(--fg-muted);
}
/* A hairline dash rather than a dot — the README rules out decorative colour
   dots, and a rule reads as structure instead of ornament. */
.rm-release-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 10px;
    height: 1px;
    background: var(--line-strong);
}

.rm-release-also {
    margin-top: var(--s-3);
    padding-left: var(--s-5);
    font-size: var(--t-micro);
    color: var(--fg-subtle);
}

/* --- CTA ----------------------------------------------------------------- */

.rm-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-10);
    padding: var(--s-12);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.rm-cta > div:first-child { max-width: 560px; }
.rm-cta h2 { margin-bottom: var(--s-3); }
.rm-cta p { color: var(--fg-muted); font-size: var(--t-lead); line-height: var(--lh-lead); }

.rm-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    flex-shrink: 0;
}
.rm-store-row { display: flex; gap: var(--s-5); }
.rm-store-row a {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--t-caption);
    font-weight: 600;
    color: var(--fg-muted);
}
.rm-store-row a:hover { color: var(--fg); }

.rm-footnote {
    margin-top: var(--s-6);
    font-size: var(--t-caption);
    color: var(--fg-subtle);
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
    .rm-track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rm-coverage   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rm-cta        { flex-direction: column; align-items: flex-start; gap: var(--s-8); }
}

@media (max-width: 640px) {
    .rm-hero       { padding-block: var(--s-16) var(--s-12); }
    .rm-track-grid { grid-template-columns: minmax(0, 1fr); }
    .rm-coverage   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rm-cta        { padding: var(--s-6); }

    /* The two-column ladder collapses to one, with the version and month on a
       single line so the release still reads as a header. */
    .rm-release      { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
    .rm-release-meta { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: var(--s-3); }
}

/* =============================================================================
   THE CONDITION LEDGER (2026-10 redesign). Last in this file on purpose: it
   is the house style for every page, the baked card pages included (they load
   only style.css and navigation.css). Card stock, ink, one price-sticker
   orange; depth from paper tones and 1px rules only. See
   docs/redesign/REDESIGN.md, part 4.
   ========================================================================== */

/* --- Faces: self-hosted, OFL (public/fonts/LICENSE-*.txt) ------------------ */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(/fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations"), url(/fonts/newsreader-latin-opsz-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(/fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2-variations"), url(/fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
    src: url(/fonts/newsreader-latin-opsz-italic.woff2) format("woff2-variations"), url(/fonts/newsreader-latin-opsz-italic.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
    src: url(/fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2-variations"), url(/fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url(/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2-variations"), url(/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url(/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2-variations"), url(/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Commit Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/commit-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Commit Mono"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/commit-mono-latin-500-normal.woff2) format("woff2"); }
/* Metric-matched fallbacks (fontTools, capsize method) keep the swap from shifting layout. */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 79.3%; ascent-override: 92.7%; descent-override: 33.4%; }
@font-face { font-family: "Schibsted Grotesk Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 98.2%; ascent-override: 99.5%; descent-override: 26.3%; }
@font-face { font-family: "Commit Mono Fallback"; src: local("Courier New"); size-adjust: 100%; ascent-override: 90%; descent-override: 20%; }

/* --- Paper ----------------------------------------------------------------- */
html { background: var(--paper); visibility: visible; }  /* releases the no-FOUC guard in header.php */
body {
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
    color: var(--ink);
    font-family: var(--f-text);
    font-size: var(--t-copy);
    line-height: 1.6;
}
/* Tabular figures only where numbers line up: tnum also makes Schibsted's
   punctuation tabular, which opens gaps before every comma and full stop. */
:where(table, .mono, code, pre, .fig, .hl-fig, .hl-price, .hl-n, .stat-number, .tier-price, .pricing-price, .cond-ladder-price, .cond-ladder-n, .sales-plan-price, .sales-mega-price, .lx-stat-n) { font-variant-numeric: tabular-nums; }
.sales-site, .section, .section-white, .section-alt, .hero, .page-header { background-color: transparent; }
@media (forced-colors: active), print { body { background-image: none; } }
::selection { background: var(--sticker); color: var(--ink); }

/* --- Type ------------------------------------------------------------------ */
h1, h2, .sales-site h1, .sales-site h2, .page-header h1, .hero h1 {
    font-family: var(--f-display);
    font-weight: 500;
    font-optical-sizing: auto;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
h1, .sales-site h1 { font-size: clamp(38px, 4.8vw, 68px); line-height: 1.0; }
h2, .sales-site h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.01em; }
h3, h4, .sales-site h3 { font-family: var(--f-text); font-weight: 600; letter-spacing: -0.005em; }
h3, .sales-site h3 { font-size: 21px; line-height: 1.3; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
.gradient-text, .sales-accent, .text-gradient { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--ink) !important; font-style: italic; font-weight: 400; }
p, li { text-wrap: pretty; }
code, kbd, samp, pre, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Provenance captions replace uppercase marketing eyebrows: mono, sentence case. */
.eyebrow, .sales-site .eyebrow, .sales-index, .section-label, .hero-badge, .blog-card-category, .ia-nav-heading, .release-tag, .page-eyebrow {
    font-family: var(--f-mono) !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    color: var(--ink-3) !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
}
:where(body) :where(*) { text-transform: none !important; }

/* --- Links ----------------------------------------------------------------- */
:where(main, .footer) a:where(:not(.btn):not([class*="card"]):not([class*="tile"]):not(.navbar-logo)) { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(main) :where(p, li, td, dd, figcaption, .sales-caption) a:where(:not(.btn)) { text-decoration: underline; }
:where(main) a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 2px !important; box-shadow: none !important; }

/* --- Buttons: ink, 2px corners, a sticker-orange offset on hover ------------ */
.btn, .sales-site .btn {
    border-radius: 2px;
    font-family: var(--f-text);
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
    transition: transform 120ms var(--ease), background 120ms var(--ease), box-shadow 120ms var(--ease);
}
.btn-primary, .sales-site .btn-primary, .lx-btn-primary { background: var(--ink) !important; border: 1px solid var(--ink) !important; color: var(--paper-raised) !important; }
.btn-outline, .btn-secondary, .btn-ghost, .sales-site .btn-outline { background: transparent !important; border: 1px solid var(--ink) !important; color: var(--ink) !important; }
.btn-outline:hover, .btn-secondary:hover, .btn-ghost:hover, .sales-site .btn-outline:hover { background: var(--paper-raised) !important; color: var(--ink) !important; }
@media (prefers-reduced-motion: no-preference) {
    .btn-primary:hover, .sales-site .btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--sticker) !important; }
}

/* --- Surfaces: square, hairline-ruled, no shadow, no glass ------------------ */
.navbar, .navbar.scrolled { background: var(--paper) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: 1px solid var(--ink) !important; }
.navbar::after { display: none; }
.navbar-logo { font-family: var(--f-display) !important; font-weight: 600 !important; font-size: 26px !important; letter-spacing: -0.02em !important; color: var(--ink) !important; }
.navbar-logo img { display: none; }
.navbar-logo { display: inline-flex !important; align-items: baseline; gap: 10px; }
.navbar-tagline { font: 400 12px/1 var(--f-mono); letter-spacing: 0; color: var(--ink-3); }
@media (max-width: 1240px) { .navbar-tagline { display: none; } }
.aurora, .hero-glow, .hero-bg, .blob { display: none !important; }
:where(.card, .feature-card, .pricing-card, .tier-card, .platform-card, .blog-card, .blog-related-card, .highlight-box, .faq-item, .bento, .ia-card, .sales-evidence, .sales-plan, .sales-workflow, .cond-ladder, .cond-matrix, .sales-mega, .table-wrap, .sales-table-wrap, .about-block, .claim, .method, .repro, .endpoint, .tcg-tile, .scan-step, .stat-item, .comparison-win) {
    border-radius: 0 !important;
    box-shadow: none !important;
    border-color: var(--rule);
    background-color: var(--paper-raised);
}
.sales-soft, .section-alt { background: var(--paper-sunk) !important; }
.sales-rule, .section-line { border-top: 1px solid var(--ink) !important; }
.sales-mega { background: var(--paper-raised) !important; border: 1px solid var(--ink) !important; }
.sales-mega-numbers { border-left-color: var(--rule) !important; }
hr { border: 0; border-top: 1px solid var(--rule); }

/* --- Tables: the ledger ----------------------------------------------------- */
:where(main) table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
:where(main) th { font-family: var(--f-mono); font-size: 12.5px; font-weight: 400; color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--ink); }
:where(main) td { border-bottom: 1px solid var(--rule); }
:where(main) thead th { background: transparent; }

/* --- Code: the ink panel ---------------------------------------------------- */
:where(main) pre, .sales-code, .code-block, .sales-workflow-step code.block {
    background: var(--ink) !important;
    color: var(--code-fg) !important;
    border: 0 !important;
    border-radius: 2px !important;
}
:where(main) pre code { color: inherit; background: none; }
:where(main) :not(pre) > code { background: var(--paper-sunk); color: var(--ink); border-radius: 2px; padding: 0.1em 0.3em; font-size: 0.9em; }

/* --- FAQs: plain details, ruled ------------------------------------------- */
:where(main) details > summary { cursor: pointer; }
.sales-faqs details, .faq-item { border-bottom: 1px solid var(--rule); }
.sales-faqs details summary, .faq-question { font-family: var(--f-display); font-weight: 500; font-size: 21px; line-height: 1.3; }

/* --- The condition matrix and ladders: ledger rows, sticker accent ---------- */
.cond-matrix-switch label { border-radius: 2px !important; font-family: var(--f-text) !important; letter-spacing: 0 !important; }
.cond-ladder-bar { border-radius: 0 !important; background: transparent !important; height: 6px !important; }
.cond-ladder-bar i { border-radius: 0 !important; background: var(--ink) !important; }
.cond-ladder-price { font-family: var(--f-mono); }
.sales-console-head, .sales-console-foot { background: var(--paper-sunk) !important; font-family: var(--f-mono) !important; }
.sales-news { border-radius: 2px !important; }
.sales-news b { background: var(--sticker) !important; color: var(--ink) !important; border-radius: 3px !important; transform: rotate(-2deg); }

/* --- Signature details ------------------------------------------------------ */
.fz-prov { font-family: var(--f-mono); font-size: 12.5px; line-height: 1.4; letter-spacing: 0.01em; color: var(--ink-3); }
.fz-sticker { display: inline-block; background: var(--sticker); color: var(--ink); font: 600 0.85em/1 var(--f-mono); padding: 0.35em 0.45em 0.3em; border-radius: 3px; transform: rotate(-2deg); font-variant-numeric: tabular-nums; }
.fz-up { color: var(--up); } .fz-down { color: var(--down); }

/* --- Footer: recessed paper ------------------------------------------------- */
.footer { background: var(--paper-sunk) !important; border-top: 1px solid var(--ink) !important; color: var(--ink); }
.footer .footer-heading { font-family: var(--f-mono); font-size: 12.5px; font-weight: 400; color: var(--ink-3); letter-spacing: 0.01em; }
.footer .footer-links a { color: var(--ink); text-decoration: none; }
.footer .footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--rule); }
.footer-copy, .footer-brand-desc { color: var(--ink-2); }

/* --- Motion: finished state is the default; only transform/opacity animate -- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Blog: two shelves (research, guides). */
.blog-shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-top: 24px; margin-bottom: 24px; border-top: 1px solid var(--ink); }
.blog-shelf-head h2 { margin: 0; }
.blog-card h3 a { color: var(--ink) !important; text-decoration: none; }
.blog-card h3 a:hover { text-decoration: underline; }
.pricing-pointer { padding-block: 32px; border-top: 1px solid var(--rule); }
.pricing-pointer p { max-width: 70ch; }
.cond-matrix-switch label small { color: inherit !important; opacity: .8; }
/* /api/: the trust band is the page's one ink moment (card-back panel colours). */
.lx-trust { background: var(--ink) !important; color: var(--paper-raised); }
.lx-trust .lx-trust-p { color: var(--code-muted) !important; }
.lx-trust .lx-blend-src, .lx-trust .lx-blend-out { color: var(--code-fg) !important; }
.lx-trust .lx-blend-arrow { color: var(--code-muted) !important; }
.lx-trust .lx-blend-out { background: rgba(255, 90, 31, .12) !important; border-color: var(--sticker) !important; }
/* Syntax on the ink panel: every class the pages use, at >= 6.5:1. */
:where(main) pre :is(.cm, .c-cm, .comment, .m) { color: var(--code-muted) !important; }
:where(main) pre :is(.key, .k, .c-key, .prop) { color: var(--code-key) !important; }
:where(main) pre :is(.str, .s, .c-str, .string) { color: var(--code-string) !important; }
:where(main) pre :is(.num, .n, .c-num, .number, .bool) { color: var(--code-number) !important; }

/* =============================================================================
   2026-10 pass 2: the remaining template tells
   ========================================================================== */
/* Content is visible by default. motion.js (springs, count-up figures, parallax,
   magnetic buttons) is retired; where CSS scroll timelines exist, sections rise a
   few pixels as they enter. Transform only: nothing is ever hidden. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .fade-up, [data-reveal] { animation: fz-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
        @keyframes fz-rise { from { transform: translateY(14px); } to { transform: none; } }
    }
}

/* Headline accents: an italic of the same ink, never a second colour. */
:is(h1, h2, h3) :is(em, .sales-accent, .gradient-text, .accent, .text-gradient) {
    font-style: italic !important; font-weight: 400 !important; color: inherit !important;
    background: none !important; -webkit-text-fill-color: currentColor !important;
}

/* Page headers read like a guide's chapter opening: left-aligned, measured width. */
:is(.page-header, .section-header, .faq-header, .features-header, .pricing-header, .comparison-header, .social-proof-header, .tcg-strip-header, .rm-hero-inner) {
    text-align: left !important; margin-left: 0 !important; margin-right: auto !important;
}
:is(.page-header, .section-header, .faq-header, .features-header, .pricing-header, .comparison-header) :is(p, .lead, .section-subtitle) {
    margin-left: 0 !important; max-width: 62ch;
}
.page-header { padding-top: calc(var(--nav-height, 68px) + 40px); padding-bottom: 32px; border-bottom: 1px solid var(--ink); margin-bottom: 40px; }

/* One heading system: the landers' inline 800-weight headings join the serif. */
main :is(h2, .section-header h2, .faq-header h2) { font-weight: 500 !important; letter-spacing: -0.01em !important; }
main h1 { font-weight: 500 !important; }

/* Footer: legal links the same size as every other footer link. */
.footer-bottom .ia-link-list a { font-size: 14.5px; padding-block: 4px; text-decoration: none; color: var(--ink-2); }
.footer-bottom .ia-link-list a:hover { text-decoration: underline; }
/* Sparklines are drawn, not drawn-in: without motion.js nothing adds .visible. */
.mini-spark-line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
.mini-spark-fill { opacity: 1 !important; animation: none !important; }

/* /api/: hero text, then the condition matrix as its evidence (the photo→card→price
   diagram moved to the scanner page where it belongs). Sections are separated by
   rules, children of a section by hairlines, never by alternating tones. */
.api-hero .sales-hero-grid { grid-template-columns: minmax(0, 1fr) !important; }
.api-hero .sales-hero-grid > div { max-width: 860px; }
.api-hero .lx-cap-grid { border-top: 1px solid var(--ink); }
.lx-cap-n { font-family: var(--f-mono) !important; font-size: 12.5px !important; color: var(--ink-3) !important; letter-spacing: 0 !important; }
.lx-section, .lx-section.paper2 { background: transparent !important; border-top: 1px solid var(--ink); }
.lx-section.lx-continued { border-top: 1px solid var(--rule); padding-top: 40px !important; }
.lx-section.api-hero-evidence { border-top: 0; padding-top: 8px !important; }
.lx-h3 { font-size: clamp(24px, 2.6vw, 34px) !important; font-family: var(--f-display); font-weight: 500; line-height: 1.1; }
.lx-kicker { font-family: var(--f-mono) !important; text-transform: none !important; letter-spacing: 0.01em !important; color: var(--ink-3) !important; }
.lx-kicker::before { display: none !important; }
/* /scanner-api/: the hero is one column; the real scan strip is its evidence. */
.scan-hero-evidence { margin-top: 40px; }
.hero:has(.scan-hero-evidence) .hero-inner { grid-template-columns: minmax(0, 1fr) !important; max-width: 1240px; }
.hero:has(.scan-hero-evidence) .hero-content { max-width: 820px; }

/* Feature grids read as an index, not as boxed cards with icons: a ruled entry per
   item, the label in mono, no icon tiles (removing them loses no meaning). */
:is(.features-grid, .feature-grid, .lx-feat-grid, .lx-uc-grid, .amb-benefits, .ia-grid) { gap: 0 32px !important; }
:is(.feature-card, .lx-feat, .lx-uc, .amb-benefit, .ia-card) {
    background: transparent !important; border: 0 !important; border-top: 1px solid var(--ink) !important;
    border-radius: 0 !important; box-shadow: none !important; padding: 16px 0 24px !important;
}
:is(.feature-icon, .icon-tile, .amb-benefit-icon, .lx-pc-thumb svg, .pricing-roi-icon) { display: none !important; }
.lx-feat-n { font-family: var(--f-mono) !important; font-size: 12.5px !important; color: var(--ink-3) !important; letter-spacing: 0 !important; margin-bottom: 8px; }
:is(.feature-card, .lx-feat, .lx-uc, .ia-card) h3 { font-size: 19px; margin-bottom: 6px; }
/* Proof rows: a mono provenance line, not icon chips. */
.hero-proof .proof-icon, .proof-icon { display: none !important; }
.hero-proof, .proof-strip { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); }
/* /pricing.php: what the free app includes, as a ledger. */
.pricing-ledger h2 { margin-bottom: 4px; }
.pricing-included { margin: 20px 0; border-top: 1px solid var(--ink); }
.pricing-included > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pricing-included dt { font-weight: 600; }
.pricing-included dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .pricing-included > div { grid-template-columns: 1fr; gap: 2px; } }
/* Hub link shelves: labelled ruled lists instead of a block of inline links. */
.ia-shelves { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin-top: 16px; }
.ia-shelf-h { font: 400 12.5px/1.4 var(--f-mono) !important; color: var(--ink-3); border-top: 1px solid var(--ink); padding-top: 12px; margin: 0 0 4px; }
.ia-shelf { list-style: none; margin: 0; padding: 0; }
.ia-shelf li { border-bottom: 1px solid var(--rule); }
.ia-shelf a { display: block; padding: 9px 0; font-size: 15px; }
/* Labels sit above their item, not in a gutter (the old "01" gutter was 2.6rem wide). */
.lx-cap { padding-left: 0 !important; }
.lx-cap-n { position: static !important; display: block; margin-bottom: 6px; }
/* FAQ lists and closing calls to action align with the page, not centred in a column. */
.faq-list { margin-left: 0 !important; max-width: 820px; }
:is(.final-cta-content, .sets-header, .sales-final, .lx-cta .container, .section-header.center) { text-align: left !important; margin-left: 0 !important; align-items: flex-start !important; justify-content: flex-start; }
:is(.final-cta-content, .lx-cta .container) :is(.final-cta-buttons, .hero-cta-row, .store-badges, .lx-cta-actions, .sales-actions) { justify-content: flex-start !important; }
/* Every section heading in page content is set in the display serif (page-level
   inline CSS on the landers still named the old heading face). */
main h2:not(.sr-only):not(.footer-heading) { font-family: var(--f-display) !important; }
.lx-trust .lx-kicker { color: var(--code-muted) !important; }

/* navigation.css */
/* Shared navigation: native disclosures work without JavaScript. */
.ia-navigation .navbar-inner { position: relative; gap: 20px; height: 68px; min-height: 68px; }
.ia-nav-groups { display: flex; align-items: center; gap: 4px; }
.ia-nav-group > summary, .ia-mobile-nav summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; font-size: 13px; font-weight: 600; color: var(--fg, #17140F); min-height: 44px; }
.ia-navigation summary::-webkit-details-marker { display: none; }
.ia-navigation summary:hover, .ia-navigation details[open] > summary { color: var(--brand-strong, #17140F); }
.ia-nav-panel { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px; max-width: 720px; margin-inline: auto; background: var(--surface, #fff); border: 1px solid var(--line, #D3CCBC); border-radius: 0; box-shadow: none; max-height: calc(100dvh - 100px); overflow-y: auto; }
.ia-navigation details:not([open]) > .ia-nav-panel { display: none; }
.ia-navigation ul { list-style: none; margin: 0; padding: 0; }
.ia-navigation li a { display: block; padding: 10px 12px; min-height: 44px; font-size: 14px; color: var(--fg, #17140F); border-radius: 2px; }
.ia-navigation li a:hover, .ia-navigation a[aria-current="page"] { background: var(--surface-subtle, #f5f6f8); color: var(--brand-strong, #17140F); }
.ia-nav-heading { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted, #647184); padding: 4px 12px 8px; font-weight: 600; }
.ia-signin { position: relative; }
.ia-signin .ia-nav-panel { left: auto; right: 0; width: 200px; display: block; padding: 8px; }
.ia-mobile-nav { display: none; }
.ia-context { padding-top: calc(var(--nav-height, 72px) + 24px); }
.ia-context + section, .ia-context + article { padding-top: 32px !important; }
.ia-navigation + main > .card-page { padding-top: calc(var(--nav-height, 72px) + 16px); }
.ia-navigation + main .cp-breadcrumbs { flex-wrap: wrap; }
.ia-breadcrumbs { font-size: 13px; color: var(--fg-muted); margin-bottom: 24px; }
.ia-breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; }
.ia-breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--fg-muted); }
.ia-related { padding-block: 32px; border-top: 1px solid var(--line-soft); }
.ia-related h2 { font-size: 20px; margin-bottom: 16px; }
.ia-link-list { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.ia-link-list a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: 4px; }
.ia-developer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-block: 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.ia-developer-nav a { padding-block: 6px; }
.ia-hub { padding-top: calc(var(--nav-height, 72px) + 40px); padding-bottom: 40px; }
.ia-hub h1 { max-width: 900px; margin-bottom: 24px; }
.ia-hub-intro { max-width: 760px; font-size: 18px; color: var(--fg-muted); }
.ia-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ia-section { padding-block: 32px; border-top: 1px solid var(--line-soft); }
.ia-section h2 { font-size: 28px; margin-bottom: 16px; }
.ia-section > p { max-width: 800px; color: var(--fg-muted); margin-bottom: 24px; }
.ia-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ia-card { padding: 24px; border: 1px solid var(--line, #D3CCBC); border-radius: 0; background: var(--surface, #fff); }
.ia-card h3 { font-size: 18px; margin-bottom: 12px; }
.ia-card p { font-size: 14px; color: var(--fg-muted); }
.ia-card a { text-decoration: underline; text-underline-offset: 4px; }
.ia-table-wrap { overflow-x: auto; }
.ia-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ia-table th, .ia-table td { padding: 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.ia-table th { font-weight: 600; }
#redoc-container .menu-content { top: var(--nav-height, 72px) !important; max-height: calc(100dvh - var(--nav-height, 72px)); }
.ia-footer-groups { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ia-footer-brand { margin-bottom: 24px; max-width: 500px; }
@media (max-width: 1100px) {
    .ia-nav-groups { display: none; }
    .ia-mobile-nav { display: block; border-top: 1px solid var(--line-soft); }
    .ia-mobile-nav > summary { padding: 8px 24px; }
    .ia-mobile-content { max-height: calc(100dvh - 132px); overflow-y: auto; padding: 0 24px 24px; background: var(--surface, #fff); }
    .ia-mobile-content > details { border-bottom: 1px solid var(--line-soft); }
    .ia-mobile-content > .btn { margin-top: 20px; }
    body:has(.ia-navigation) { --nav-height: 112px; }
    .ia-footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .ia-grid, .ia-footer-groups { grid-template-columns: 1fr; }
    .ia-hub { padding-top: calc(var(--nav-height, 112px) + 24px); }
    .ia-hub h1 { font-size: 36px; }
    .ia-navigation .navbar-inner { height: 68px; min-height: 68px; }
    .ia-navigation .nav-right { display: flex; }
    .ia-signin > summary { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.ia-nav-direct { display: inline-flex; align-items: center; min-height: 44px; padding: 12px; font-size: 13px; font-weight: 600; border-radius: 2px; color: var(--fg); }
.ia-nav-direct:hover { color: var(--brand-ink); }
.ia-mobile-content > .ia-nav-direct { display: flex; border-bottom: 1px solid var(--line-soft); }

/* Language switcher: only on pages that exist in more than one language (includes/navigation.php). */
.ia-lang-switch { display: flex; align-items: center; gap: 0; margin-right: 2px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ia-lang-switch a { padding: 4px 4px; border-radius: 6px; color: var(--fg-subtle); text-decoration: none; }
.ia-lang-switch a:hover { color: var(--fg); background: var(--surface-subtle); }
.ia-lang-switch a[aria-current] { color: var(--fg); background: var(--surface-sunken); }
.footer-legal-note { width: 100%; margin: 8px 0 0; font-size: 13px; color: var(--fg-subtle); }

