/* Meterwise design system. No inline styles anywhere (the CSP forbids them): every visual
   decision lives here as tokens + components. Light and dark are both designed, not flipped. */

:root {
  color-scheme: light;
  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface-2: #f0efe8;
  --ink: #14211d;
  --ink-2: #44514c;
  --muted: #6b7671;
  --line: #e2e1d8;
  --line-strong: #cfcec3;
  --brand: #0d6b57;
  --brand-ink: #0a5546;
  --brand-soft: #e2f1ec;
  --brand-contrast: #ffffff;
  --accent: #e8a317;
  --accent-soft: #fbf0d6;
  --good: #137a4c;
  --good-soft: #e3f3ea;
  --warn: #a4521f;
  --warn-soft: #fbeadf;
  --neutral-soft: #eef0f6;
  --neutral-ink: #3b4a7a;
  /* Chart series (dataviz reference palette, slots 1-3; validated all-pairs vs #ffffff). */
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 33, 29, .05), 0 8px 24px -12px rgba(20, 33, 29, .18);
  --shadow-lg: 0 2px 4px rgba(20, 33, 29, .05), 0 24px 48px -20px rgba(20, 33, 29, .28);
  --max: 76rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1412;
    --surface: #171c1a;
    --surface-2: #1e2522;
    --ink: #eef2ef;
    --ink-2: #c3ccc7;
    --muted: #94a19b;
    --line: #2a332f;
    --line-strong: #3a4540;
    --brand: #4cc4a2;
    --brand-ink: #7fd8bf;
    --brand-soft: #173a31;
    --brand-contrast: #06231c;
    --accent: #f2b84b;
    --accent-soft: #3a2f17;
    --good: #5fd39a;
    --good-soft: #163527;
    --warn: #f0a074;
    --warn-soft: #3d261b;
    --neutral-soft: #1f2537;
    --neutral-ink: #b3c0ec;
    /* Dark steps of the same three hues (validated vs #171c1a). */
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .7);
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16.5px/1.6 var(--font); font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 760; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 720; }
h3 { font-size: 1.05rem; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 700; color: var(--brand-ink); margin: 0 0 .6em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 44rem; }
.good { color: var(--good); font-weight: 600; }
.bad { color: var(--warn); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ header & footer */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 760; font-size: 1.15rem; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.logo-bg { fill: var(--brand); }
.logo-arc { fill: none; stroke: var(--brand-contrast); stroke-width: 2.4; stroke-linecap: round; opacity: .55; }
.logo-arc-hi { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.logo-needle { stroke: var(--brand-contrast); stroke-width: 2.4; stroke-linecap: round; }
.logo-hub { fill: var(--brand-contrast); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 560; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav .nav-cta { background: var(--brand); color: var(--brand-contrast); }
.nav .nav-cta:hover { background: var(--brand-ink); color: var(--brand-contrast); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .site-header .wrap { gap: 8px; } }

.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1.6fr 1fr 1fr; padding-top: 40px; padding-bottom: 32px; }
.site-footer h4 { margin: 0 0 .7em; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: .82rem; color: var(--muted); }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about-col { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ buttons, chips, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650;
  border: 0; border-radius: 10px; padding: 12px 20px; cursor: pointer; text-decoration: none; background: var(--brand);
  color: var(--brand-contrast); transition: transform .08s ease, background .15s ease; }
.btn:hover { background: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.secondary:hover { background: var(--line); }
.btn svg { width: 18px; height: 18px; }
.chip { display: inline-block; font-size: .76rem; font-weight: 650; color: var(--good); background: var(--good-soft);
  border-radius: 999px; padding: 2px 9px; margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  border-radius: 999px; padding: 3px 10px; background: var(--brand); color: var(--brand-contrast); margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.neutral { background: var(--neutral-soft); color: var(--neutral-ink); }
.pill.plain { background: var(--surface-2); color: var(--ink-2); }

/* ------------------------------------------------------------------ cards & sections */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding: 56px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 22px 0 6px; }
.crumbs a { color: var(--muted); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ home */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: .9rem; margin-top: 18px; padding: 0; list-style: none; }
.trust li { display: inline-flex; gap: 6px; align-items: center; }
.trust .icon { width: 18px; height: 18px; color: var(--good); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hero { padding-top: 40px; } }
@media (max-width: 480px) {
  .preview .bar-row { grid-template-columns: minmax(0, 1fr) auto; }
  .preview .bar-row svg { grid-column: 1 / -1; grid-row: 2; }
  .search .row { flex-direction: column; }
}

.search { padding: 22px; }
.search label { display: block; font-weight: 680; margin-bottom: 8px; }
.search .row { display: flex; gap: 10px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; letter-spacing: .08em; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); }
.search input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.search .result { margin: 14px 0 0; }
.search .result:empty { display: none; }
.choice-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.choice-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--bg); font-weight: 600; }
.choice-list a:hover { border-color: var(--brand); }

.preview { padding: 22px; position: relative; }
.preview .eyebrow { margin-bottom: 4px; }
.preview h3 { font-size: 1.15rem; margin-bottom: 12px; }
.preview .bars { display: grid; gap: 10px; margin: 6px 0 14px; }
.preview .bar-row { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.preview svg { width: 100%; height: 12px; display: block; }
.preview .bar-bg { fill: var(--surface-2); }
.preview .bar.s1 { fill: var(--s1); } .preview .bar.s2 { fill: var(--s2); } .preview .bar.s3 { fill: var(--s3); }
.preview .foot { font-size: .86rem; color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; }
.feature .icon-wrap { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .96rem; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; padding: 20px 20px 20px 64px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--ink); font-weight: 760; display: grid; place-items: center; font-size: .92rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 16px; }
.state-card { padding: 22px; text-decoration: none; color: var(--ink); display: grid; gap: 8px; transition: transform .12s ease, box-shadow .12s ease; }
.state-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.state-card h3 { margin: 0; font-size: 1.25rem; }
.state-card p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.state-card .go { color: var(--brand-ink); font-weight: 650; font-size: .93rem; }
.sources { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.sources li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; color: var(--ink-2); background: var(--surface); }

/* ------------------------------------------------------------------ state page */
.page-head { padding: 8px 0 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px; margin: 18px 0 0; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat .v { font-size: 1.3rem; }
  .stat .s { font-size: .78rem; }
}
.stat { padding: 16px 18px; }
.stat .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 0; }
.stat .v { font-size: 1.6rem; font-weight: 760; letter-spacing: -.02em; margin: 2px 0 0; }
.stat .s { font-size: .86rem; color: var(--ink-2); margin: 2px 0 0; }
.filter { display: flex; gap: 10px; align-items: center; margin: 26px 0 14px; flex-wrap: wrap; }
.filter input { font: inherit; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: min(100%, 22rem); }
.filter input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.util-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.util { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.util:hover { border-color: var(--brand); }
.util h3 { margin: 0 0 2px; font-size: 1.02rem; }
.util .meta { font-size: .86rem; color: var(--muted); margin: 0; }
.util .price { text-align: right; font-size: .9rem; }
.util .price strong { display: block; font-size: 1.05rem; }
@media (max-width: 640px) { .util { grid-template-columns: 1fr; gap: 8px; } .util .price { text-align: left; } }
.empty { padding: 18px; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------------ calculator page */
.calc-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; padding: 4px 0 6px; }
.calc-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .25em; }
.calc-head .sub { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
@media (max-width: 720px) { .calc-head { grid-template-columns: 1fr; } }

.calc { display: grid; gap: 22px; margin-top: 22px; grid-template-columns: minmax(18rem, 21.5rem) minmax(0, 1fr);
  grid-template-areas: "form verdict" "form options" "form chart" "form more"; align-items: start; }
.calc > .panel { grid-area: form; position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto; }
.calc > .slot-verdict { grid-area: verdict; }
.calc > .options { grid-area: options; }
.calc > .chart-card { grid-area: chart; }
.calc > .more { grid-area: more; }
@media (max-width: 980px) {
  .calc { grid-template-columns: 1fr; grid-template-areas: "verdict" "form" "options" "chart" "more"; }
  .calc > .panel { position: static; max-height: none; }
}

.panel { padding: 20px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 7px; padding: 0; }
.field .hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.field input[type=number], .field input[type=text] { font: inherit; width: 100%; padding: 9px 12px; border: 1.5px solid var(--line-strong);
  border-radius: 9px; background: var(--bg); color: var(--ink); }
.field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 11px; }
.seg.stack { grid-auto-flow: row; }
.seg label { position: relative; display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 8px 10px;
  border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; line-height: 1.25; }
.seg.stack label { justify-content: flex-start; text-align: left; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }
.seg .icon { width: 18px; height: 18px; color: var(--brand-ink); flex: none; }
.range-row { display: grid; grid-template-columns: 1fr 6.5rem; gap: 12px; align-items: center; }
input[type=range] { width: 100%; accent-color: var(--brand); }
.checks { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
details.adv { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
details.adv > summary { cursor: pointer; font-weight: 650; font-size: .93rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); }
details.adv[open] > summary::after { content: "–"; }
details.adv[open] > summary { margin-bottom: 14px; }
.panel-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.panel-actions .btn { padding: 9px 14px; font-size: .9rem; }
.toast { font-size: .85rem; color: var(--good); margin: 8px 0 0; min-height: 1.2em; }

.verdict-card { padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
  position: relative; overflow: hidden; }
.verdict-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--neutral-ink); }
.verdict-card.tone-good::before { background: var(--good); }
.verdict-card.tone-warn::before { background: var(--warn); }
.verdict-card .eyebrow { color: var(--muted); }
.verdict-title { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-bottom: .35em; }
.tone-good .verdict-title { color: var(--good); }
.tone-warn .verdict-title { color: var(--warn); }
.verdict-text { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 0; max-width: 52rem; }

.meter { margin: 18px 0 0; }
.meter svg { width: 100%; height: auto; display: block; overflow: visible; font: 600 13px var(--font); }
.meter .track { fill: var(--surface-2); }
.meter .zone.ok { fill: color-mix(in srgb, var(--good) 30%, transparent); }
.meter .zone.bad { fill: color-mix(in srgb, var(--warn) 25%, transparent); }
.meter .limit line { stroke: var(--good); stroke-width: 2; }
.meter .limit text { fill: var(--good); font-weight: 700; }
.meter .mark line { stroke: var(--line-strong); stroke-width: 1; }
.meter .mark circle { stroke: var(--surface); stroke-width: 2; }
.meter .mark.s1 circle { fill: var(--s1); } .meter .mark.s2 circle { fill: var(--s2); } .meter .mark.s3 circle { fill: var(--s3); }
.meter .mark text { fill: var(--ink-2); font-weight: 600; }
.meter .mark text.val { fill: var(--ink); font-weight: 760; }
.meter figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 14px; }
.option { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.option.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.option header { display: flex; gap: 10px; align-items: flex-start; }
.option h3 { margin: 0; font-size: 1rem; }
.option .badge { align-self: flex-start; }
.option dl { margin: 0; display: grid; gap: 10px; }
.option dl > div { display: grid; gap: 1px; border-top: 1px dashed var(--line); padding-top: 9px; }
.option dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.option dd { margin: 0; display: flex; flex-direction: column; font-size: .88rem; }
.option dd strong { font-size: 1.12rem; letter-spacing: -.01em; }
.option .range { color: var(--muted); font-size: .8rem; }
.key { width: 12px; height: 12px; border-radius: 4px; flex: none; margin-top: 4px; display: inline-block; }
.key.s1 { background: var(--s1); } .key.s2 { background: var(--s2); } .key.s3 { background: var(--s3); }

.chart-card { padding: 20px 20px 14px; }
.chart-card h2 { font-size: 1.15rem; margin-bottom: 2px; }
.chart-card .sub { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.chart { margin: 0; position: relative; }
.chart svg { width: 100%; height: auto; display: block; font: 500 12.5px var(--font); touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .tick { fill: var(--muted); }
.chart .ln { stroke-width: 2.5; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .s1 .ln { stroke: var(--s1); } .chart .s1 .dot { fill: var(--s1); }
.chart .s2 .ln { stroke: var(--s2); } .chart .s2 .dot { fill: var(--s2); }
.chart .s3 .ln { stroke: var(--s3); } .chart .s3 .dot { fill: var(--s3); }
.chart .end-label text { fill: var(--ink-2); font-weight: 600; }
.chart .end-label text.val { fill: var(--ink); font-weight: 760; }
.chart .leader { stroke: var(--line-strong); stroke-width: 1; }
.chart .cross circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.chart .cross text { fill: var(--ink); font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.chart .hover-line { stroke: var(--ink-2); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 9px; padding: 9px 11px;
  font-size: .82rem; box-shadow: var(--shadow-lg); min-width: 11rem; z-index: 5; }
.chart-tip b { display: block; margin-bottom: 4px; }
.chart-tip div { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.chart-tip .key { margin-top: 0; margin-right: 6px; }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--ink-2); }
.legend li { display: inline-flex; gap: 7px; align-items: center; }
.legend .key { margin-top: 0; }
details.table-view { margin-top: 12px; }
details.table-view > summary { cursor: pointer; font-size: .88rem; color: var(--brand-ink); font-weight: 600; }

.table-wrap { overflow-x: auto; margin-top: 10px; }
table.results { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 34rem; }
table.results th, table.results td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.results thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.results small { display: block; }

.more { display: grid; gap: 18px; }
.more .card { padding: 22px; }
.more h2 { font-size: 1.15rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--ink-2); font-size: .93rem; }
.facts .icon { width: 20px; height: 20px; color: var(--brand-ink); margin-top: 2px; }
.facts ul { padding-left: 1.1rem; margin: 4px 0 0; }
.rebates { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rebates li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--ink-2); background: var(--bg); }
.rebates li strong { color: var(--ink); }
.method details { border-top: 1px solid var(--line); padding: 12px 0; }
.method details:first-of-type { border-top: 0; }
.method summary { cursor: pointer; font-weight: 650; }
.method details p { color: var(--ink-2); font-size: .93rem; margin: 10px 0 0; }

.cta { padding: 22px; border: 2px solid var(--brand); }
.cta p { margin: 0 0 12px; }
.cta .hint { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* ------------------------------------------------------------------ prose pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4em; }
.not-found { text-align: center; padding: 80px 0 40px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header, .site-footer, .panel, .cta, .chart-tip { display: none !important; }
  .calc { grid-template-columns: 1fr; grid-template-areas: "verdict" "options" "chart" "more"; }
  body { background: #fff; }
}
