  :root {
    --paper:      #EFF1F8;
    --card:       #FFFFFF;
    --card-2:     #F7F8FC;
    --ink:        #12162B;
    --ink-soft:   #5A6183;
    --ink-faint:  #8A90AC;
    /* Functional text (labels, kickers, breadcrumbs) needs AA; --ink-faint is
       2.79:1 on --paper and is decorative-only from here on. */
    --ink-label:  #656B88;
    --accent:     #2743E8;
    --accent-ink: #FFFFFF;
    --accent-wash:#E4E8FC;
    --pop:        #FF8A5B;
    --line:       #DCE0EF;
    --shadow:     0 1px 2px rgba(18,22,43,.06), 0 8px 24px -12px rgba(18,22,43,.18);
    --shadow-lift:0 2px 4px rgba(18,22,43,.08), 0 18px 40px -16px rgba(18,22,43,.28);

    --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    --body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper:      #0B0E1B;
      --card:       #151A2E;
      --card-2:     #1B2138;
      --ink:        #EDEFF8;
      --ink-soft:   #98A0BF;
      --ink-faint:  #6E7597;
      --ink-label:  #8A90AC;
      --accent:     #6B80FF;
      --accent-ink: #0B0E1B;
      --accent-wash:#1E2647;
      --pop:        #FF9E72;
      --line:       #252B45;
      --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
      --shadow-lift:0 2px 4px rgba(0,0,0,.5), 0 18px 40px -16px rgba(0,0,0,.7);
    }
  }

  :root[data-theme="dark"] {
    --paper:      #0B0E1B;
    --card:       #151A2E;
    --card-2:     #1B2138;
    --ink:        #EDEFF8;
    --ink-soft:   #98A0BF;
    --ink-faint:  #6E7597;
    --ink-label:  #8A90AC;
    --accent:     #6B80FF;
    --accent-ink: #0B0E1B;
    --accent-wash:#1E2647;
    --pop:        #FF9E72;
    --line:       #252B45;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lift:0 2px 4px rgba(0,0,0,.5), 0 18px 40px -16px rgba(0,0,0,.7);
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  .wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 20px; }

  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.025em;
    text-wrap: balance;
    margin: 0;
    line-height: 1.02;
  }

  .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-label);
  }

  button { font: inherit; color: inherit; cursor: pointer; }
  :focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; border-radius: 4px; }

  /* ---------- screens ---------- */
  .screen { display: none; }
  .screen.on { display: block; }

  /* ---------- pre-lander ---------- */
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: clamp(42px, 12vw, 68px); }
  .hero h1 em { font-style: normal; }
  .hero .sub {
    margin: 20px 0 0; max-width: 30em;
    font-size: 18px; color: var(--ink-soft);
  }

  .facts {
    display: flex; flex-wrap: wrap; gap: 0;
    margin: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .fact { flex: 1 1 33%; padding: 16px 0; }
  .fact + .fact { border-left: 1px solid var(--line); padding-left: 16px; }
  .fact dt { font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--ink-label); }
  .fact dd { margin: 3px 0 0; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.025em; }

  .cta {
    display: block; width: 100%; border: 0; border-radius: 16px;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.015em;
    padding: 20px; box-shadow: var(--shadow-lift);
    transition: transform .15s ease, filter .15s ease;
  }
  .cta:hover { transform: translateY(-2px); filter: saturate(1.15); }
  .cta:active { transform: translateY(0); }
  .cta-note { text-align: center; margin: 14px 0 0; font-size: 14px; color: var(--ink-label); }

  .peek { margin: 44px 0 0; }
  .peek h2 { font-size: 15px; font-family: var(--body); font-weight: 700; letter-spacing: 0; color: var(--ink-soft); margin-bottom: 14px; }
  .poles { display: grid; gap: 10px; }
  .pole-row {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 4px 14px; font-size: 14px;   /* reduced: .pole-row a now carries 10px */
  }
  /* Poles sit at the OUTER edges with the axis label centred between them, so
     the row reads as a scale and fills its card. They used to be right- and
     left-aligned against the middle column, which clustered both names around
     the label and left both card edges empty — visibly worse next to the money
     pre-lander's rows, and inconsistent with the result pages, where the pole
     labels are at the edges. */
  .pole-row span:first-child { text-align: left; color: var(--ink-soft); }
  .pole-row span:last-child { text-align: right; color: var(--ink-soft); }
  .pole-row i {
    font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-label);
    border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; white-space: nowrap;
  }

  /* ---------- quiz ---------- */
  .qbar { position: sticky; top: 0; background: var(--paper); padding: 16px 0 14px; z-index: 5; }
  .qbar-inner { display: flex; align-items: center; gap: 14px; }
  .back {
    border: 1px solid var(--line); background: var(--card); border-radius: 10px;
    width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center;
    font-size: 18px; line-height: 1; padding: 0;
  }
  .back[disabled] { opacity: .35; cursor: default; }
  .track { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
  .track > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s cubic-bezier(.2,.8,.2,1); }
  .count { font-family: var(--mono); font-size: 12px; color: var(--ink-label); font-variant-numeric: tabular-nums; }

  .qbody { padding: 24px 0 48px; }
  .qaxis { margin-bottom: 14px; }
  .qtext {
    font-family: var(--display); font-weight: 700; letter-spacing: -.03em;
    font-size: clamp(30px, 8.5vw, 42px); line-height: 1.06; margin: 0 0 28px;
    text-wrap: balance; min-height: 2.2em;
  }
  .answers { display: grid; gap: 10px; }
  .ans {
    display: flex; align-items: center; gap: 14px; text-align: left;
    background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
    padding: 15px 18px; min-height: 60px; width: 100%;
    box-shadow: var(--shadow);
    transition: border-color .12s ease, background .12s ease, transform .12s ease;
  }
  .ans:hover { border-color: var(--accent); transform: translateX(3px); }
  .ans.picked { border-color: var(--accent); background: var(--accent-wash); }
  .dot { flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--ink-faint); transition: border-color .12s ease, background .12s ease; }
  .ans:hover .dot, .ans.picked .dot { border-color: var(--accent); background: var(--accent); }
  .ans-label { font-weight: 600; }

  .anim-in { animation: slideIn .28s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  /* ---------- ad break ---------- */
  .brk { padding: 28px 0 56px; }
  .brk .eyebrow { display: block; margin-bottom: 18px; }
  .brk h1 { font-size: clamp(31px, 9vw, 44px); }
  .brk .fact-body { margin: 18px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 34em; }
  .brk .fact-body b { color: var(--ink); font-weight: 700; }
  .brk .src { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; color: var(--ink-label); }
  .brk-note { margin: 0 0 14px; font-size: 15px; color: var(--ink-soft); max-width: 34em; }
  /* Was a dashed 300x250 placeholder box. The real unit is responsive
     (data-ad-format="auto", data-full-width-responsive="true"), so the old
     max-width:336px and aspect-ratio:300/250 would have caged it at a fixed
     size and shape. No min-height either: while fill rate is low on a new site
     an unfilled unit collapses to nothing, which looks better than a reserved
     grey gap on every page. */
  .adslot { margin: 34px 0 28px; width: 100%; }
  .adslot .adsbygoogle { display: block; }
  .saved { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
  .saved i {
    font-style: normal; display: grid; place-items: center; flex: 0 0 20px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink); font-size: 11px;
  }
  .cta[disabled] { cursor: default; }
  .resume { display: grid; gap: 10px; }
  .resume[hidden] { display: none; }
  .ghost {
    border: 1.5px solid var(--line); background: var(--card); border-radius: 14px;
    padding: 15px; font-weight: 600; font-size: 15px; width: 100%;
  }
  .ghost:hover { border-color: var(--accent); }

  /* ---------- result ---------- */
  .rhero { padding: 44px 0 12px; }
  .rhero .eyebrow { display: block; margin-bottom: 16px; }
  .rname { font-size: clamp(46px, 14vw, 82px); letter-spacing: -.04em; }
  .rname span { color: var(--accent); }
  .rstreak { margin: 18px 0 0; font-size: 19px; color: var(--ink-soft); }
  .rstreak b { color: var(--ink); font-weight: 700; }
  .rtag { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 24px 0 0; padding-left: 16px; border-left: 4px solid var(--pop); }

  .cards { display: grid; gap: 12px; margin: 32px 0 0; }
  .rcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
  .rcard dt { font-family: var(--mono); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-label); margin-bottom: 6px; }
  .rcard dd { margin: 0; }

  .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 52px 0 6px; }
  .section-head h2 { font-size: 26px; }
  .section-sub { margin: 0 0 24px; color: var(--ink-soft); font-size: 15px; max-width: 34em; }

  /* Cards, for the same reason as the money ledger: seven identically coloured
     rows made it hard to tell which slider and labels belonged to which trait. */
  #r-axes { display: grid; gap: 12px; }
  .axis {
    padding: 14px 16px 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  }
  .axis-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .axis-name { font-family: var(--mono); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-label); }
  .axis-verdict { font-weight: 700; font-size: 15px; }
  .axis-verdict em { font-style: normal; color: var(--ink-label); font-weight: 500; }
  .axis-verdict span { color: var(--accent); }
  .bipolar { position: relative; height: 34px; }
  .bp-track { position: absolute; top: 15px; left: 0; right: 0; height: 4px; border-radius: 999px; background: var(--line); }
  .bp-mid { position: absolute; top: 9px; left: 50%; width: 1px; height: 16px; background: var(--ink-faint); opacity: .5; }
  .bp-marker {
    position: absolute; top: 8px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--accent);
    left: 50%; transform: translateX(-50%);
    transition: left .9s cubic-bezier(.2,.8,.2,1);
  }
  .bp-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
  .bp-labels .lit { color: var(--ink); font-weight: 700; }

  .capture { margin: 48px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
  .capture h2 { font-size: 24px; margin-bottom: 8px; }
  .capture p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
  .capture .row { display: flex; gap: 10px; flex-wrap: wrap; }
  .capture input {
    flex: 1 1 200px; min-width: 0; font: inherit; padding: 15px 16px;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--card-2); color: var(--ink);
  }
  .capture input::placeholder { color: var(--ink-faint); }
  .capture button {
    border: 0; border-radius: 12px; background: var(--ink); color: var(--paper);
    font-family: var(--display); font-weight: 800; font-size: 16px; padding: 15px 22px;
  }
  .stub { margin: 12px 0 0; font-family: var(--mono); font-size: 12px; color: var(--ink-label); }

  /* ---------- article chain ---------- */
  .art { padding: 34px 0 64px; }
  .art .eyebrow { display: block; margin-bottom: 16px; }
  .art h1 { font-size: clamp(38px, 11vw, 58px); }
  .art .dek {
    font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.025em;
    margin: 18px 0 0; line-height: 1.15;
  }
  .art h2 {
    font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em;
    color: var(--ink); margin: 32px 0 8px; line-height: 1.15;
  }
  /* h2 is now a real heading at 20px, so h3 drops to keep the in-depth pages'
     two levels apart; they were both 20px the moment h2 stopped being mono. */
  .art h3 {
    font-family: var(--display); font-weight: 700; font-size: 18px;
    letter-spacing: -.02em; margin: 28px 0 6px;
  }
  .art p { margin: 0 0 14px; max-width: 34em; }
  .art ul { margin: 0 0 16px; padding-left: 1.15em; max-width: 34em; }
  .art li { margin-bottom: 11px; }
  .art i { font-style: italic; }
  .art a.polelink {
    color: var(--accent); text-decoration: underline;
    text-underline-offset: 2px; text-decoration-thickness: 1.5px;
    cursor: pointer;
  }
  .art p.lede { font-size: 19px; }
  .crumb {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
    font-family: var(--body); font-weight: 600; font-size: 15px;
    background: none; border: 0; padding: 0; color: var(--accent);
  }
  .pairbox {
    margin: 26px 0 0; background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
  }
  .pairbox h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin: 0 0 10px; }
  .pairbox p:last-child { margin-bottom: 0; }

  .nextup { margin: 40px 0 0; display: grid; gap: 10px; }
  .readcard {
    display: grid; gap: 4px; text-align: left; width: 100%;
    background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
    padding: 18px 20px; box-shadow: var(--shadow);
    transition: border-color .12s ease, transform .12s ease;
  }
  .readcard:hover { border-color: var(--accent); transform: translateY(-2px); }
  .readcard b { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
  .readcard span { font-size: 14px; color: var(--ink-soft); }
  .readcard i {
    font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 2px;
  }

  .toc { margin: 30px 0 0; padding: 20px; background: var(--card-2); border-radius: 16px; }
  .toc dt { font-family: var(--mono); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-label); margin-bottom: 10px; }
  .toc ol { margin: 0; padding-left: 1.3em; }
  .toc li { margin-bottom: 5px; font-size: 15px; }
  .todo {
    border-left: 3px solid var(--pop); padding: 2px 0 2px 14px; margin: 0 0 14px;
    font-size: 15px; color: var(--ink-soft); max-width: 34em;
  }
  .todo b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pop); display: block; margin-bottom: 3px; }

  /* prototype-only route indicator */
  .route {
    position: fixed; left: 12px; bottom: 12px; z-index: 30; pointer-events: none;
    display: flex; align-items: center; gap: 7px;
    background: var(--card); border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 12px 6px 8px; box-shadow: var(--shadow);
    font-family: var(--mono); font-size: 10px; color: var(--ink-soft);
  }
  .route b {
    background: var(--pop); color: #12162B; border-radius: 999px;
    padding: 2px 6px; font-weight: 500; font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  }

  .method { margin: 56px 0 0; padding: 24px 0 64px; border-top: 1px solid var(--line); }
  .method h2 { font-size: 17px; font-family: var(--body); font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
  .method p { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); max-width: 34em; }
  .method a { color: var(--accent); }
  .restart { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }
