/* ryczalt.app – public site. "The open calculation": structure instead of decoration.
   Tokens mirror the application (src/app/ryczalt-tokens.css). No gradients, glass, blobs, grids or watermarks:
   the page is a quiet canvas, a graphite rail with real navigation, hairline rules that align with content,
   open comparison areas, and one crimson detail – the decision seam. */

@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --graphite: #0d0d12;
  --graphite-raised: #191a22;
  --graphite-line: rgba(255, 255, 255, 0.12);
  --on-graphite: #f2f3f6;
  --on-graphite-muted: #a9aeba;
  --text: #191b22;
  --text-2: #596170;
  --border: #dde1e7;
  --border-strong: #b9c0cb;
  --brand: #c10a28;
  --brand-hover: #a60923;
  --positive: #247452;
  --warning: #8b5a12;
  --warning-subtle: #fbf1de;
  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --rail: 224px;
  --bar-a: #191b22; --bar-b: #8d94a1; --bar-c: #d3d8e0;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0f1015;
  --surface: #16171e;
  --graphite: #08080b;
  --graphite-raised: #14151b;
  --text: #eceef2;
  --text-2: #a1a8b5;
  --border: #272a34;
  --border-strong: #3b404d;
  --brand: #e5334f;
  --brand-hover: #f0536b;
  --positive: #4cc08c;
  --warning: #e0aa5a;
  --warning-subtle: #2a2013;
  --bar-a: #eceef2; --bar-b: #7b8291; --bar-c: #3b404d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme-toggle]) {
    color-scheme: dark;
    --canvas: #0f1015; --surface: #16171e; --graphite: #08080b; --graphite-raised: #14151b;
    --text: #eceef2; --text-2: #a1a8b5; --border: #272a34; --border-strong: #3b404d;
    --brand: #e5334f; --brand-hover: #f0536b; --positive: #4cc08c; --warning: #e0aa5a; --warning-subtle: #2a2013;
    --bar-a: #eceef2; --bar-b: #7b8291; --bar-c: #3b404d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; background: var(--canvas); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 8px 12px; background: var(--brand); color: #fff; border-radius: 6px; transform: translateY(-80px); }
.skip:focus { transform: none; }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; white-space: nowrap; }
.meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--text-2); margin: 0; }

/* ─── Brand rail (wide) / compact bar (narrow) ───────────────────────────── */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 40; display: flex; flex-direction: column; background: var(--graphite); color: var(--on-graphite); padding: 20px 12px 16px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px; color: #fff; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand-wordmark { display: block; width: 72px; height: 20px; background: currentColor;
  -webkit-mask: url("/assets/logo-ryczalt-wordmark.svg?v=4") center / contain no-repeat; mask: url("/assets/logo-ryczalt-wordmark.svg?v=4") center / contain no-repeat; }
.rail .meta { color: var(--on-graphite-muted); padding: 12px 8px 16px; }
.rail nav { border-top: 1px solid var(--graphite-line); padding-top: 12px; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail nav[aria-label="Więcej"] ul { gap: 2px; }
.rail nav + nav { margin-top: 12px; }
.rail a.nav { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--on-graphite-muted); text-decoration: none; }
.rail nav[aria-label="Więcej"] a.nav { font-size: 12px; }
.rail a.nav:hover { background: var(--graphite-raised); color: #fff; }
.rail a.nav[aria-current="true"] { background: var(--graphite-raised); color: #fff; font-weight: 600; }
.rail-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.rail-tools { display: flex; align-items: center; gap: 8px; }
.rail-login { display: flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 6px; font-size: 13px; font-weight: 500; color: #fff; text-decoration: none; }
.rail-login:hover { background: var(--graphite-raised); }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--graphite-line); border-radius: 6px; background: transparent; color: var(--on-graphite-muted); cursor: pointer; }
.theme-group { display: flex; align-items: center; gap: 2px; width: 100%; }
.theme-group button { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 0 4px; border: 0; border-radius: 6px; background: transparent; color: var(--on-graphite-muted); font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.theme-group button:hover { color: #fff; }
.theme-group button[aria-checked="true"] { background: var(--graphite-raised); color: #fff; }
.theme-group svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn:hover { color: #fff; background: var(--graphite-raised); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-sources { font-size: 12px; line-height: 1.5; color: var(--on-graphite-muted); margin: 0; }

.rail-close { display: none; }
.topbar { display: none; }
.menu-btn { display: none; }

/* ─── Buttons: crimson marks the action, 6px radius ──────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color 120ms, border-color 120ms; }
.btn-primary { background: var(--brand); color: #fff; }
.rail-foot .btn { min-height: 40px; font-size: 13px; font-weight: 500; border-radius: 6px; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-quiet { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-quiet:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-ghost-dark { border-color: var(--graphite-line); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.link-arrow:hover { border-bottom-color: var(--text); }

/* ─── Page + sections: a label column and a content column on a shared hairline ── */
.page { margin-left: var(--rail); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.sec { border-top: 1px solid var(--border); }
.sec-in { display: grid; grid-template-columns: 188px minmax(0, 1fr); column-gap: 48px; padding-top: 72px; padding-bottom: 80px; }
.sec-label { border-right: 1px solid var(--border); padding-right: 24px; }
.sec-label > div { position: sticky; top: 28px; }
.sec-label .meta + h2 { margin-top: 6px; }
.sec-label p:not(.meta) { font-size: 14px; color: var(--text-2); margin: 8px 0 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.018em; }
.sec-label h2 { font-size: 15px; line-height: 1.3; letter-spacing: 0; font-weight: 600; }
.sec-body > h2 { margin-bottom: 14px; max-width: 24ch; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 60ch; margin: 0 0 28px; }
.body-p { max-width: 62ch; color: var(--text-2); margin: 0 0 14px; }
.body-p strong { color: var(--text); font-weight: 600; }

/* ─── Hero: offset headline beside a readable excerpt of the product ─────── */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: start; }
.hero-copy { padding-top: 56px; }
.hero h1 { font-size: clamp(34px, 3.7vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.028em; margin: 14px 0 22px; }
.hero h1 span { display: block; }
.hero h1 span + span { padding-left: 0.55em; }
.hero-lead { font-size: 19px; line-height: 1.5; color: var(--text); max-width: 34ch; margin: 0 0 14px; }
.hero-sub { font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 46ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fine { font-size: 13px; line-height: 1.55; color: var(--text-2); margin: 16px 0 0; max-width: 46ch; }

/* ─── The ledger (shared by hero, "Co liczy" and the excerpt) ─────────────── */
.excerpt { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.excerpt > figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--canvas); }
.assume { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.assume div { display: flex; flex-direction: column; }
.assume dt { color: var(--text-2); }
.assume dd { margin: 0; font-weight: 500; }
.scroller { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger caption { text-align: left; padding: 0 0 10px; font-size: 13px; color: var(--text-2); }
.ledger th, .ledger td { padding: 7px 12px; vertical-align: baseline; }
.ledger thead th { text-align: right; font-weight: 400; padding: 0; vertical-align: bottom; }
.ledger thead th.col { position: relative; min-width: 128px; }
.ledger thead th.col > span { display: block; padding: 14px 12px 10px; }
.ledger thead th b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.ledger thead th small { display: block; margin-top: 3px; font-size: 12px; color: var(--text-2); }
.ledger thead th.sel small { color: var(--text); font-weight: 500; }
.ledger tbody th { text-align: left; font-weight: 400; min-width: 168px; }
.ledger tbody th small { display: block; font-size: 12px; color: var(--text-2); line-height: 1.3; }
.ledger td { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.ledger tr.rule > * { border-top: 1px solid var(--border); }
.ledger tr.sum > * { border-top: 1px solid var(--border-strong); font-weight: 600; }
.ledger tr.sum td, .ledger tr.res td { font-size: 16px; font-weight: 600; }
.ledger tr.res > * { border-top: 1px solid var(--border); }
.ledger tr.dim td, .ledger tr.dim th { color: var(--text-2); }
.ledger .sel { background: var(--canvas); }
/* The decision seam on the selected column: a crimson rule with a short perpendicular return */
.seam-top { position: relative; }
.seam-top::before, .seam-top::after { content: ""; position: absolute; background: var(--brand); }
.seam-top::before { left: 0; right: 0; top: 0; height: 2px; }
.seam-top::after { left: 0; top: 0; width: 2px; height: 9px; }
/* … and the vertical form, beside the explanation of why a result is what it is */
.seam { position: relative; padding-left: 16px; }
.seam::before, .seam::after { content: ""; position: absolute; background: var(--brand); }
.seam::before { left: 0; top: 0; bottom: 0; width: 2px; }
.seam::after { left: 0; top: 0; width: 9px; height: 2px; }
.why { margin: 0; padding: 16px; border-top: 1px solid var(--border); }
.why .seam { font-size: 14px; line-height: 1.6; }
.why .seam p { margin: 0 0 6px; max-width: 64ch; }
.why .seam p:last-child { margin: 0; }
.why strong { font-weight: 600; }

/* ─── "Co liczy": nominal rate vs. total burden ──────────────────────────── */
.compare { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 15px; margin: 0 0 28px; }
.compare caption { text-align: left; font-size: 13px; color: var(--text-2); padding-bottom: 10px; }
.compare th, .compare td { padding: 12px 14px 12px 0; border-top: 1px solid var(--border); vertical-align: baseline; text-align: left; }
.compare thead th { font-weight: 400; font-size: 13px; color: var(--text-2); border-top: 0; border-bottom: 1px solid var(--border-strong); }
.compare td.n, .compare th.n { text-align: right; padding-right: 0; padding-left: 14px; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.compare tbody th { font-weight: 600; }
.compare tbody th small { display: block; font-weight: 400; font-size: 13px; color: var(--text-2); }
.parts { max-width: 760px; margin: 0 0 8px; }
.parts h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.parts p { margin: 0 0 14px; font-size: 14px; color: var(--text-2); max-width: 62ch; }
.bars { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 14px; font-size: 14px; }
.bar { display: flex; height: 14px; }
.bar i { display: block; height: 100%; }
.bar i:nth-child(1) { background: var(--bar-a); }
.bar i:nth-child(2) { background: var(--bar-b); }
.bar i:nth-child(3) { background: var(--bar-c); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--text-2); list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 10px; display: inline-block; }

/* ─── "Co dostajesz": annotated product excerpt ──────────────────────────── */
.annot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 40px; align-items: start; }
.frame { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.frame > header { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--canvas); border-radius: 10px 10px 0 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.frame-body { padding: 22px 22px 24px; display: grid; gap: 22px; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 4px; background: var(--text); color: var(--canvas); font: 600 12px/1 var(--mono); vertical-align: 2px; flex: none; }
.out { position: relative; padding-left: 16px; }
.out h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 6px 0 8px; max-width: 30ch; }
.out p { margin: 0 0 12px; font-size: 14px; color: var(--text-2); max-width: 62ch; }
.out p strong { color: var(--text); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.facts dt { font-size: 13px; color: var(--text-2); }
.facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.facts small { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); }
.mini { border-top: 1px solid var(--border); padding-top: 14px; }
.mini h4, .cond h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.mini dl { margin: 0; font-size: 14px; max-width: 420px; }
.mini dl div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.mini dl div:last-child { border: 0; font-weight: 600; }
.mini dt { color: var(--text-2); }
.mini dd { margin: 0; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.cond { border-top: 1px solid var(--border); padding-top: 14px; font-size: 14px; color: var(--text-2); }
.cond p { margin: 0; max-width: 60ch; }
.notes { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.notes li { border-top: 1px solid var(--border); padding: 16px 0 18px; font-size: 14px; color: var(--text-2); }
.notes li:first-child { border-top: 0; padding-top: 0; }
.notes b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.steps { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border-strong); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; counter-reset: s; }
.steps li { font-size: 14px; color: var(--text-2); }
.steps b { display: block; color: var(--text); font-size: 16px; margin: 4px 0 6px; font-weight: 600; }

/* ─── Route selector ─────────────────────────────────────────────────────── */
.route { border: 0; margin: 0; padding: 0; min-width: 0; }
.route legend { padding: 0; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.route-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.route-opts label { display: block; padding: 16px 18px; cursor: pointer; border-right: 1px solid var(--border); font-size: 15px; font-weight: 500; line-height: 1.35; }
.route-opts label:last-of-type { border-right: 0; }
.route-opts label small { display: block; margin-top: 4px; font-weight: 400; font-size: 13px; color: var(--text-2); }
.route input { position: absolute; opacity: 0; pointer-events: none; }
.route-opts label:has(input:checked) { background: var(--graphite); color: #fff; }
.route-opts label:has(input:checked) small { color: var(--on-graphite-muted); }
.route-opts label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: -4px; }
.route-panels > div { display: none; padding-top: 24px; }
.route:has(#r1:checked) #p1, .route:has(#r2:checked) #p2, .route:has(#r3:checked) #p3 { display: block; }
.route-panels h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.route-panels p { max-width: 62ch; color: var(--text-2); margin: 0 0 16px; }
.route-panels .price { color: var(--text); font-weight: 600; }

/* ─── Forms table ────────────────────────────────────────────────────────── */
.forms { width: 100%; border-collapse: collapse; font-size: 15px; }
.forms caption { text-align: left; font-size: 13px; color: var(--text-2); padding-bottom: 10px; }
.forms th, .forms td { padding: 14px 20px 14px 0; border-top: 1px solid var(--border); vertical-align: top; text-align: left; }
.forms thead th { font-size: 13px; font-weight: 400; color: var(--text-2); border-top: 0; border-bottom: 1px solid var(--border-strong); }
.forms tbody th { font-weight: 600; width: 22%; }
.forms tbody td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; font-weight: 500; }
.forms td small { display: block; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.forms tr.group th { border-top: 1px solid var(--border-strong); padding: 22px 0 8px; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-2); width: auto; }
.forms tr.group + tr th, .forms tr.group + tr td { border-top: 0; }
.forms-note { max-width: 62ch; margin: 18px 0 0; font-size: 14px; color: var(--text-2); }

/* ─── Pricing ledger ─────────────────────────────────────────────────────── */
.price-head, .price-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 190px; column-gap: 36px; }
.price-head { padding-bottom: 8px; border-bottom: 1px solid var(--border-strong); font-size: 13px; color: var(--text-2); }
.price-head span:last-child, .price-row .cost { text-align: right; }
.price-row { padding: 24px 0; border-bottom: 1px solid var(--border); }
.price-row h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.price-row .who { margin: 0; font-size: 14px; color: var(--text-2); }
.price-row ul { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 5px; max-width: 62ch; }
.price-row li { display: flex; gap: 10px; }
.price-row li::before { content: ""; flex: none; width: 10px; height: 6px; margin-top: 8px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg) translateY(-3px); }
.price-row .free-note { font-size: 14px; color: var(--text-2); margin: 0; max-width: 62ch; }
.cost .amount { font-size: 22px; font-weight: 600; line-height: 1.15; margin: 0; }
.cost .terms { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.cost .btn { margin-top: 12px; }
.price-foot { font-size: 13px; color: var(--text-2); margin: 16px 0 0; max-width: 70ch; }
.levers { margin: 48px 0 0; }
.levers h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.levers > p { max-width: 62ch; font-size: 14px; color: var(--text-2); margin: 0 0 14px; }
.levers dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.levers dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.levers dt { font-weight: 500; }
.levers dd { margin: 0; color: var(--text-2); font-size: 13px; }

/* ─── Method + FAQ ───────────────────────────────────────────────────────── */
.rules { list-style: none; margin: 0 0 32px; padding: 0; max-width: 760px; }
.rules li { display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 18px 0; border-top: 1px solid var(--border); }
.rules li:last-child { border-bottom: 1px solid var(--border); }
.rules b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.rules span { color: var(--text-2); font-size: 15px; display: block; max-width: 60ch; }
.split { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 14px; }
.split caption { text-align: left; font-size: 13px; color: var(--text-2); padding-bottom: 8px; }
.split th, .split td { text-align: left; vertical-align: top; padding: 10px 18px 10px 0; border-top: 1px solid var(--border); }
.split thead th { font-weight: 400; color: var(--text-2); font-size: 13px; border-top: 0; border-bottom: 1px solid var(--border-strong); }
.split tbody th { font-weight: 600; width: 34%; }
.sources { margin: 22px 0 0; font-size: 14px; color: var(--text-2); }
.guides { list-style: none; margin: 40px 0 0; padding: 0; max-width: 760px; }
.guides li { border-top: 1px solid var(--border); padding: 16px 0; }
.guides li:last-child { border-bottom: 1px solid var(--border); }
.guides a { font-weight: 600; font-size: 16px; text-decoration: none; }
.guides a:hover { text-decoration: underline; }
.guides span { display: block; font-size: 14px; color: var(--text-2); max-width: 60ch; margin-top: 2px; }
.guides .meta { margin-bottom: 4px; }
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--text-2); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 20px; color: var(--text-2); max-width: 62ch; }
.faq .ans p { margin: 0 0 10px; }
.faq .ans a { color: var(--text); font-weight: 500; }

/* ─── Closing band + footer ──────────────────────────────────────────────── */
.close { background: var(--graphite); color: var(--on-graphite); }
.close .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 56px; padding-bottom: 56px; }
.close h2 { color: #fff; max-width: 20ch; }
.close p { margin: 10px 0 0; color: var(--on-graphite-muted); max-width: 46ch; }
.footer { background: var(--graphite); color: var(--on-graphite-muted); border-top: 1px solid var(--graphite-line); font-size: 14px; }
.footer .wrap { padding-top: 40px; padding-bottom: 32px; }
.endorse { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 32px; color: var(--on-graphite); font-size: 15px; }
.endorse a { display: inline-flex; align-items: center; }
.endorse img { height: 40px; width: auto; display: block; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px 40px; padding-bottom: 28px; border-bottom: 1px solid var(--graphite-line); }
.footer .brand { padding: 0; }
.footer-h { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--on-graphite-muted); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .about { margin: 14px 0 0; max-width: 40ch; }
.disclaimer { margin: 24px 0 0; max-width: 90ch; font-size: 12.5px; line-height: 1.6; }
.copy { margin: 14px 0 0; font-size: 12.5px; }

/* ─── Narrow screens: the rail becomes a compact top bar ─────────────────── */
@media (max-width: 1023px) {
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 12px 0 8px; background: var(--canvas); border-bottom: 1px solid var(--border); }
  .topbar .brand { color: var(--text); padding: 0; gap: 8px; }
  .topbar .brand img { width: 30px; height: 30px; }
  .topbar .brand-wordmark { width: 62px; height: 17px; }
  .topbar .grow { flex: 1; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); border-radius: 6px; cursor: pointer; }
  .rail-close { display: inline-flex; position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--on-graphite-muted); border-radius: 6px; cursor: pointer; }
  .rail-close:hover { color: #fff; }
  .rail-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
  .menu-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
  .rail { transform: translateX(-100%); transition: transform 180ms ease-out; width: 288px; max-width: 88vw; z-index: 60; visibility: hidden; }
  body.menu-open .rail { transform: none; visibility: visible; }
  .scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.5); display: none; }
  body.menu-open .scrim { display: block; }
  .page { margin-left: 0; }
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hero-copy { padding-top: 12px; }
  .sec-in { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 56px; }
  .sec-label { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 14px; margin-bottom: 28px; }
  .sec-label > div { position: static; }
  .annot { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .levers dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .route-opts { grid-template-columns: minmax(0, 1fr); }
  .route-opts label { border-right: 0; border-bottom: 1px solid var(--border); }
  .route-opts label:last-of-type { border-bottom: 0; }
  .assume { grid-template-columns: repeat(2, auto); }
  .price-head { display: none; }
  .price-row { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .price-row .cost { text-align: left; }
  .bars li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .forms, .forms tbody, .forms tr, .forms td, .forms th { display: block; }
  .forms thead { display: none; }
  .forms tr { padding: 14px 0; border-top: 1px solid var(--border); }
  .forms tr.group { border-top: 1px solid var(--border-strong); padding: 18px 0 4px; }
  .forms th, .forms td { border: 0 !important; padding: 2px 0 !important; width: auto !important; }
  .forms tbody td:nth-child(2) { white-space: normal; }
  .levers dl { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td, .compare caption { display: block; }
  .compare thead { display: none; }
  .compare tr { padding: 12px 0; border-top: 1px solid var(--border); }
  .compare th, .compare td { border: 0; padding: 2px 0; }
  .compare td::before { content: attr(data-label) ": "; color: var(--text-2); }
  .compare td.n, .compare th.n { text-align: left; padding-left: 0; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
@media print { .rail, .topbar, .scrim { display: none; } .page { margin: 0; } }
.cost .terms { font-variant-numeric: tabular-nums lining-nums; }

/* ─── Paid-analysis strip (same data, deeper search) ─────────────────────── */
.deeper { border-top: 1px solid var(--border); padding: 16px; }
.frame-body .deeper { padding: 14px 0 0; }
.deeper h2, .deeper h4 { margin: 0 0 2px; font-size: 14px; line-height: inherit; font-weight: 600; letter-spacing: 0; }
.deeper .meta { margin: 0 0 10px; }
.steps-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.steps-t th, .steps-t td { padding: 8px 10px 8px 0; border-top: 1px solid var(--border); vertical-align: baseline; text-align: left; }
.steps-t thead th { border-top: 0; border-bottom: 1px solid var(--border-strong); font-size: 12px; font-weight: 400; color: var(--text-2); }
.steps-t tbody th { font-weight: 500; }
.steps-t th small { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); }
.steps-t .n { text-align: right; padding-right: 0; padding-left: 10px; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.steps-t tbody tr:last-child td.n:last-child { font-weight: 600; }
.fine2 { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-2); max-width: 64ch; }

/* ─── Logo shine: a short sweep across the mark every 20 s ───────────────── */
.logo-shine { position: relative; display: inline-flex; flex: none; overflow: hidden; border-radius: 24%; line-height: 0; }
.logo-shine::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  animation: logo-shine 20s linear -16s infinite; }
@keyframes logo-shine { 0%, 94% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .logo-shine::after { animation: none; } }
