
  :root {
    --bg: oklch(96.5% 0.009 85);
    --surface: oklch(99% 0.005 85);
    --surface-2: oklch(93.5% 0.012 85);
    --ink: oklch(22% 0.02 80);
    --ink-2: oklch(40% 0.018 80);
    --muted: oklch(50% 0.015 80);
    --line: oklch(86% 0.012 85);
    --line-2: oklch(70% 0.016 85);
    --accent: oklch(44% 0.15 270);
    --accent-hover: oklch(38% 0.15 270);
    --accent-ink: oklch(98% 0.01 270);
    --accent-soft: oklch(93% 0.03 270);
    --won: oklch(46% 0.13 150);
    --won-soft: oklch(94% 0.04 150);
    --lost: oklch(50% 0.17 25);
    --lost-soft: oklch(94% 0.035 25);
    --focus: oklch(60% 0.15 270);
    --t-xs: 13px; --t-s: 15px; --t-m: 17px; --t-l: 22px; --t-xl: 28px;
    --r: 10px;
    color-scheme: light dark;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: oklch(17% 0.01 80);
      --surface: oklch(23% 0.012 80);
      --surface-2: oklch(28% 0.013 80);
      --ink: oklch(95% 0.008 85);
      --ink-2: oklch(82% 0.01 85);
      --muted: oklch(70% 0.012 85);
      --line: oklch(32% 0.012 80);
      --line-2: oklch(48% 0.016 80);
      --accent: oklch(78% 0.11 270);
      --accent-hover: oklch(84% 0.1 270);
      --accent-ink: oklch(18% 0.04 270);
      --accent-soft: oklch(30% 0.05 270);
      --won: oklch(78% 0.13 150);
      --won-soft: oklch(28% 0.05 150);
      --lost: oklch(76% 0.14 25);
      --lost-soft: oklch(29% 0.05 25);
      --focus: oklch(78% 0.11 270);
    }
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--bg); color: var(--ink); }
  body { font: var(--t-s)/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  button, input, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  input[type=number] { -moz-appearance: textfield; }
  input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }

  header { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 4px; }
  header h1 { font-size: var(--t-m); font-weight: 700; margin: 0; }
  .textbtn { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: var(--t-s); min-height: 44px; padding: 0 6px; border-radius: 6px; }

  .tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-2); }
  .tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 6px; color: var(--muted); font-weight: 600; font-size: var(--t-m); line-height: 1.2; min-height: 56px; }
  .tabs button small { display: block; font-size: var(--t-xs); font-weight: 500; margin-top: 2px; }
  .tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

  section { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
  section:last-of-type { border-bottom: 0; }
  h2 { font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
  h2 .tools { display: flex; gap: 6px; text-transform: none; letter-spacing: 0; }
  h2 .tools button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; min-height: 36px; padding: 0 10px; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
  h2 .tools button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .field > label, .field > .lbl { font-weight: 600; font-size: var(--t-m); white-space: nowrap; }
  .sub { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--muted); margin-top: 2px; white-space: normal; }

  .stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
  .stepper button { width: 52px; height: 52px; border: 0; background: none; font-size: 24px; color: var(--accent); border-radius: var(--r); }
  .stepper button:focus-visible { outline-offset: -3px; }
  .stepper button:disabled { color: var(--line-2); cursor: default; }
  .stepper output { min-width: 56px; display: grid; place-items: center; font-size: var(--t-l); font-weight: 700; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

  .money { display: flex; align-items: center; height: 50px; width: 140px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 0 12px; }
  .money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
  .money span { font-size: var(--t-m); color: var(--muted); margin-right: 2px; }
  .money input { width: 100%; min-width: 0; border: 0; background: none; font-size: var(--t-l); font-weight: 700; outline: none; }
  .money input::placeholder { color: var(--muted); font-weight: 500; }

  .switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: var(--t-m); min-height: 44px; }
  .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .switch .knob { width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex: 0 0 auto; }
  .switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s cubic-bezier(.2,.8,.2,1); }
  .switch input:checked + .knob { background: var(--accent); }
  .switch input:checked + .knob::after { transform: translateX(18px); }
  .switch input:focus-visible + .knob { outline: 2px solid var(--focus); outline-offset: 2px; }

  .folds { display: flex; flex-wrap: wrap; gap: 8px; }
  .fold { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 0 14px; height: 44px; font-weight: 600; font-size: var(--t-s); color: var(--ink-2); transition: background .12s, border-color .12s, color .12s; }
  .fold:hover { border-color: var(--accent); color: var(--ink); }
  .fold[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .match { margin-top: 10px; font-size: var(--t-s); color: var(--ink-2); min-height: 22px; }
  .match b { color: var(--ink); }

  /* Results rows: result first, then the price */
  .pick { padding: 12px 0; border-top: 1px solid var(--line); }
  .pick:first-child { border-top: 0; padding-top: 0; }
  .pick .line { display: flex; align-items: center; gap: 8px; }
  .pick .line + .line { margin-top: 8px; }
  .pick .n { color: var(--muted); font-weight: 600; font-size: var(--t-s); width: 22px; text-align: right; flex: 0 0 auto; }
  .seg { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); height: 46px; }
  .seg button { border: 0; border-left: 1px solid var(--line); background: none; padding: 0; font-weight: 600; font-size: var(--t-s); color: var(--muted); transition: background .12s, color .12s; }
  .seg button:first-child { border-left: 0; }
  .seg button:focus-visible { outline-offset: -3px; }
  .seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
  .seg button.won[aria-pressed="true"], .seg button.placed[aria-pressed="true"] { background: var(--won-soft); color: var(--won); }
  .seg button.lost[aria-pressed="true"] { background: var(--lost-soft); color: var(--lost); }
  .seg.fmt { margin: 0 0 14px; }
  .seg.fmt button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
  .fold.preset[aria-pressed="true"] { background: var(--won-soft); border-color: var(--won); color: var(--won); }
  .price { display: flex; align-items: center; gap: 6px; flex: 1; }
  .price.optional { opacity: .45; }
  .price input { height: 48px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 0 10px; font-size: var(--t-m); font-weight: 600; outline: none; text-align: center; min-width: 0; }
  .price input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
  .price input.bad { border-color: var(--lost); }
  .price input::placeholder { color: var(--muted); font-weight: 400; }
  .price .frac { width: 64px; }
  .price .slash { font-size: var(--t-l); color: var(--muted); font-weight: 300; }
  .price .dec { flex: 1; text-align: left; }
  .price .lbl { font-size: var(--t-xs); color: var(--muted); margin-left: 4px; white-space: nowrap; }
  .pick .terms { height: 48px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 0 8px; font-size: var(--t-s); font-weight: 600; flex: 0 0 auto; }
  .pick .more { margin: 6px 0 0 30px; }
  .pick .more button { background: none; border: 0; color: var(--accent); font-size: var(--t-xs); font-weight: 600; min-height: 36px; padding: 0; }
  .pick .adj { margin: 4px 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: var(--t-xs); color: var(--muted); }
  .pick .adj select, .pick .adj input { height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); padding: 0 8px; font-size: var(--t-s); }
  .pick .adj input { width: 60px; }
  .pick .hint { margin: 6px 0 0 30px; font-size: var(--t-xs); color: var(--lost); }

  table { width: 100%; border-collapse: collapse; }
  th, td { padding: 10px 0 10px 8px; text-align: right; border-bottom: 1px solid var(--line); }
  th:first-child, td:first-child { text-align: left; padding-left: 0; }
  th { font-size: var(--t-xs); font-weight: 600; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; padding-bottom: 6px; }
  td { font-size: var(--t-s); }
  tr.row { cursor: pointer; }
  tr.row td.name { font-weight: 600; }
  tr.row td.name::before { content: "✓"; display: inline-block; width: 22px; color: var(--accent); font-weight: 700; }
  tr.row.off td { color: var(--muted); }
  tr.row.off td.name::before { content: ""; }
  tr.row.off td.name { font-weight: 500; }
  td.dim { color: var(--muted); }
  tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: var(--t-m); padding-top: 12px; }
  tr.bonus td { color: var(--won); font-weight: 600; }
  tr.bonus.off td { color: var(--muted); font-weight: 500; }
  .tblnote { color: var(--muted); font-size: var(--t-xs); margin-top: 8px; }
  .profit { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-weight: 600; }
  .profit .v { font-size: var(--t-l); font-weight: 700; }
  .profit .v.up { color: var(--won); }
  .profit .v.down { color: var(--lost); }

  .actions { display: flex; gap: 8px; padding: 6px 0 12px; }
  .btn { flex: 1; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-weight: 600; transition: background .12s; }
  .btn:hover { background: var(--surface-2); }
  .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .btn.primary:hover { background: var(--accent-hover); }
  .btn.quiet { flex: 0 0 auto; padding: 0 14px; }
  .saved ul { list-style: none; margin: 0; padding: 0; }
  .saved li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
  .saved li:first-child { border-top: 0; }
  .saved .t { flex: 1; min-width: 0; }
  .saved .t b { display: block; font-size: var(--t-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .saved .t span { color: var(--muted); font-size: var(--t-xs); }
  .saved .btn { flex: 0 0 auto; height: 44px; padding: 0 12px; font-size: var(--t-s); }
  footer { color: var(--muted); font-size: var(--t-xs); padding: 14px 0 8px; line-height: 1.5; }

  .answer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line-2); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .answer .in { max-width: 520px; margin: 0 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .answer .k { color: var(--ink-2); font-weight: 600; font-size: var(--t-s); }
  .answer .k small { color: var(--muted); font-weight: 500; font-size: var(--t-xs); }
  .answer .v { font-size: var(--t-xl); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
  .answer .v.wait { font-size: var(--t-m); font-weight: 600; color: var(--muted); }

  dialog { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); width: min(420px, calc(100% - 32px)); padding: 20px; }
  dialog::backdrop { background: rgba(20, 15, 5, .5); }
  dialog h3 { margin: 0 0 8px; font-size: var(--t-m); }
  dialog .field { padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 56px; }
  dialog select { height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); padding: 0 8px; }
  dialog p { color: var(--muted); font-size: var(--t-xs); }
  .toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: var(--t-s); font-weight: 600; opacity: 0; transition: opacity .18s; pointer-events: none; }
  .toast.show { opacity: 1; }
  [hidden] { display: none !important; }

/* ===== Site chrome: header, nav, footer, article content, FAQ (added for the multi-page site) ===== */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .in { max-width: 680px; margin: 0 auto; padding: 14px 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; font-size: var(--t-m); color: var(--ink); text-decoration: none; }
.site-nav { max-width: 680px; margin: 0 auto; padding: 0 16px 12px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.site-nav a { font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a:hover { color: var(--accent); }

.article { max-width: 680px; margin: 0 auto; padding: 22px 16px 4px; }
.article h1 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.article .dek { color: var(--ink-2); font-size: var(--t-m); margin: 0 0 18px; }
.article h2 { font-size: 19px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 700; margin: 28px 0 10px; }
.article h3 { font-size: var(--t-m); color: var(--ink); font-weight: 700; margin: 18px 0 6px; }
.article p { margin: 0 0 12px; }
.article ul, .article ol { margin: 0 0 14px; padding-left: 22px; }
.article li { margin: 0 0 6px; }
.article .worked { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; margin: 0 0 16px; }
.article .worked h3 { margin-top: 0; }
.article table.calc-table { margin: 0 0 16px; }
.article table.calc-table th, .article table.calc-table td { padding: 8px 0 8px 8px; }

.calc-embed { max-width: 520px; margin: 26px auto 8px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05); }
.calc-embed .app-inner { padding-bottom: 12px; }
.calc-embed .app-inner .answer { position: sticky; }
.calc-embed .wrap { padding: 0 16px; max-width: none; }
.calc-jump { display: inline-block; margin: 4px 0 18px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 12px 20px; text-decoration: none; }

.faq { margin: 8px 0 24px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; font-size: var(--t-m); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 400; font-size: 22px; flex: 0 0 auto; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding-top: 10px; color: var(--ink-2); }

.compliance { max-width: 680px; margin: 0 auto; padding: 4px 16px 24px; color: var(--muted); font-size: var(--t-xs); line-height: 1.6; }
.compliance strong { color: var(--ink-2); }
.crosslinks { max-width: 680px; margin: 0 auto; padding: 8px 16px 8px; }
.crosslinks h2 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.crosslinks .grid { display: flex; flex-wrap: wrap; gap: 8px; }
.crosslinks a { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 10px 14px; font-size: var(--t-s); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.crosslinks a:hover { border-color: var(--accent); color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); margin-top: 8px; }
.site-footer .in { max-width: 680px; margin: 0 auto; padding: 18px 16px 28px; color: var(--muted); font-size: var(--t-xs); line-height: 1.6; }
.site-footer a { color: var(--ink-2); }
.article .trust { color: var(--muted); font-size: var(--t-xs); margin-top: 6px; }
.article table.calc-table th.r, .article table.calc-table td.r { text-align: right; }

/* ---- Scan & Track funnel panel ---- */
.track-cta { margin: 28px auto; max-width: 680px; padding: 0 16px; }
.track-cta .in { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r); padding: 20px 16px; text-align: center; }
.track-cta h2 { margin: 0 0 8px; font-size: var(--t-l); }
.track-cta p { margin: 0 0 14px; color: var(--ink-2); }
.track-cta p.small { margin: 10px 0 0; font-size: var(--t-xs); color: var(--muted); }
.track-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.track-btn:hover { background: var(--accent-hover); }
