/* HusWatt – shared stylesheet. Mobile-first, light/dark, print. */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #ece9e1;
  --ink: #1b2624;
  --ink-2: #4b5855;
  --line: #d8d3c7;
  --accent: #0f6e66;
  --accent-ink: #ffffff;
  --accent-soft: #dcefeb;
  --warm: #a3561a;
  --warm-soft: #f7e7d6;
  --pos: #1f7a3f;
  --pos-soft: #e0f1e5;
  --neg: #a33a2a;
  --neg-soft: #f8e1dc;
  --info-soft: #e7ecf3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 4px 18px rgba(20, 30, 28, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111715; --surface: #18201e; --surface-2: #212b28; --ink: #e5ece9; --ink-2: #a8b6b2; --line: #2f3b38;
    --accent: #4cbfb1; --accent-ink: #0b1513; --accent-soft: #173431; --warm: #e2a46b; --warm-soft: #3a2a1b;
    --pos: #6fd08f; --pos-soft: #17301f; --neg: #f08b79; --neg-soft: #3a1f1a; --info-soft: #1d2633;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111715; --surface: #18201e; --surface-2: #212b28; --ink: #e5ece9; --ink-2: #a8b6b2; --line: #2f3b38;
  --accent: #4cbfb1; --accent-ink: #0b1513; --accent-soft: #173431; --warm: #e2a46b; --warm-soft: #3a2a1b;
  --pos: #6fd08f; --pos-soft: #17301f; --neg: #f08b79; --neg-soft: #3a1f1a; --info-soft: #1d2633;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); margin: .2em 0 .4em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1.05rem; margin: 1.4em 0 .5em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted, .small { color: var(--ink-2); font-size: .9rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; display: inline-block; }
.brand-country { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--ink-2); }
.theme-toggle { display: inline-grid; place-items: center; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.site-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { white-space: nowrap; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: .9rem; }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.site-nav a:hover { color: var(--ink); }

main { padding-top: 16px; padding-bottom: 48px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.page-head { margin-bottom: 8px; }

/* home */
.hero { padding: 16px 0 8px; }
.promises { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; max-width: 62ch; }
.promises li { padding-left: 28px; position: relative; }
.promises li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.start { margin: 8px 0 28px; }
.start h2 { margin-top: .4em; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.start-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 128px; padding: 16px 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-weight: 700; font-size: 1rem; text-align: center; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.start-btn .heat-icon { width: 56px; height: 56px; }
@media (min-width: 760px) { .start-btn .heat-icon { width: 68px; height: 68px; } }
.start-btn .heat-icon { filter: drop-shadow(0 3px 4px rgba(20, 30, 28, .18)); }
.start-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(15, 110, 102, .16); }
.start-btn:active { transform: translateY(0); }
.chip .heat-icon { vertical-align: -5px; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .start-btn, .start-btn:hover { transition: none; transform: none; } }
.start-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.start .hint { margin-top: 10px; }
.other-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.other-list a { font-weight: 700; }
.other-list span { display: block; color: var(--ink-2); font-size: .95rem; }
.tool-grid { display: grid; gap: 12px; }
.tool-card { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 44px 18px 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s; }
.tool-card:hover { border-color: var(--accent); }
.tool-card h3 { margin: 0 0 6px; }
.tool-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.tool-card .arrow { position: absolute; right: 18px; top: 18px; color: var(--accent); font-size: 1.2rem; }
.how { max-width: 70ch; }

/* forms */
.calc-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.calc-layout > * { min-width: 0; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 10px; padding: 0; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .95rem; cursor: pointer; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { margin-top: 12px; min-width: 0; }
.field[hidden] { display: none; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field .unit { font-weight: 400; color: var(--ink-2); }
input[type=text], select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; font-variant-numeric: tabular-nums; }
input[type=text]:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { display: block; color: var(--ink-2); font-size: .82rem; margin-top: 4px; line-height: 1.4; }
.typical { color: var(--warm); font-style: italic; white-space: nowrap; }
.row2, .row3 { display: grid; gap: 0 14px; }
.span2 { grid-column: 1 / -1; }
.subsidy-box { background: var(--surface-2); border-radius: 10px; padding: 4px 12px 10px; }
.subsidy-box .check { margin-top: 8px; font-weight: 600; }
.elig { margin-top: 6px; font-size: .88rem; }
.elig summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.elig ul { margin: 6px 0; padding-left: 20px; }
.check input:disabled + * , .check:has(input:disabled) { opacity: .6; }
.verdict p + p { margin-top: 6px; }
.verdict-basis { font-weight: 400; font-size: .88rem; }
.stats.pair { margin-top: 10px; }
.stat.basis { outline: 2px solid var(--accent); outline-offset: -2px; }
.formula { font-size: .82rem; color: var(--ink-2); display: block; }
.vat-note { margin: 0 0 12px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.stale-banner { background: var(--warm-soft); border-left: 5px solid var(--warm); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-weight: 600; }
.stale-banner p { margin: 0; }
.stale-banner p + p { margin-top: 4px; }
.subsidy-box input:disabled { opacity: .6; }
.disclaimer { font-size: .85rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 16px; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.advanced { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.advanced summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.note { background: var(--warm-soft); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 12px 0 0; }
.note[hidden] { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn { font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 12px 22px; min-height: 44px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); font-weight: 600; }
.error { color: var(--neg); font-weight: 600; }

/* results */
.results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); align-self: start; }
.results h2 { margin-top: 0; }
.verdict { border-left: 5px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-weight: 600; }
.verdict p { margin: 0; }
.verdict-current_cheaper, .verdict-not_paying { border-color: var(--neg); background: var(--neg-soft); }
.verdict-uncertain { border-color: var(--warm); background: var(--warm-soft); }
.verdict-likely_paying { border-color: var(--pos); background: var(--pos-soft); }
.verdict-info { border-color: var(--ink-2); background: var(--info-soft); font-weight: 400; }
.stats { display: grid; gap: 10px; grid-template-columns: 1fr; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.stat-value { font-size: 1.35rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .85rem; color: var(--ink-2); }
.stat.pos .stat-value { color: var(--pos); }
.stat.neg .stat-value { color: var(--neg); }
.stat.main { background: var(--accent-soft); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l v" "b b"; gap: 2px 10px; font-size: .9rem; }
.bar-label { grid-area: l; color: var(--ink-2); }
.bar-val { grid-area: v; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-track { grid-area: b; background: var(--surface-2); border-radius: 6px; height: 12px; overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 6px; }
.bar-cur { background: var(--ink-2); }
.bar-hp { background: var(--accent); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .8rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
caption { text-align: left; font-weight: 700; padding: 6px 0; }
tr.base td { font-weight: 700; }
tr.tax td { background: var(--warm-soft); }
.assumptions { margin-top: 18px; }
.assumptions summary { cursor: pointer; font-weight: 700; }
.print-btn { margin-top: 16px; }

/* offer box */
.offer { margin-top: 20px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.offer h2 { margin: 0 0 6px; font-size: 1.1rem; }
.offer p { margin: 6px 0; color: var(--ink-2); }
.offer-label { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; background: var(--surface-2); padding: 2px 8px; border-radius: 4px; }
.offer-placeholder { font-style: italic; }

/* methods */
.prose { max-width: 78ch; }
.prose li { margin-bottom: .5em; }
.conf { font-size: .78rem; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.conf-verified { background: var(--pos-soft); color: var(--pos); }
.conf-typical { background: var(--accent-soft); color: var(--ink); }
.conf-estimate { background: var(--warm-soft); color: var(--warm); }
.defaults { min-width: 640px; }
.sources li { word-break: break-word; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0 32px; font-size: .88rem; color: var(--ink-2); }
.site-footer p { max-width: 80ch; }
.verified { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .9rem; }
.verified .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pos); }

/* root country chooser */
.chooser main { padding-top: 48px; }
.chooser h1 { display: flex; align-items: center; gap: 12px; }
.country-list { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 480px; }
.country-list a { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.country-list span { color: var(--ink-2); font-size: .95rem; }
.country-list .cl-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.country-list .cl-text strong { color: var(--ink); }
.brand-country .flag { border-radius: 1px; }
.flag { flex: none; filter: drop-shadow(0 0 .6px rgba(0,0,0,.45)) drop-shadow(0 1px 2px rgba(0,0,0,.12)); }
.country-list .soon .flag { opacity: .55; }
.chooser h1 .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
.country-list .soon-inner { display: flex; align-items: center; gap: 14px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink-2); }
.country-list .soon strong { color: var(--ink-2); }

@media (min-width: 640px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 1fr 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .start-grid { grid-template-columns: repeat(5, 1fr); }
  .start-btn:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1000px) {
  .calc-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .results { position: sticky; top: 16px; }
  .calc, .results { padding: 22px; }
  main { padding-top: 28px; }
}

/* quick path + tune fold-out */
.stats.one { grid-template-columns: 1fr !important; }
.actions.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.actions.quick .hint { margin: 0; flex: 1 1 200px; }
details.tune { margin-top: 18px; border-top: 1px solid var(--line); }
details.tune > summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 14px 0; min-height: 44px; }
details.tune[open] > summary { margin-bottom: 6px; }
.stat.main .stat-value { font-size: 1.6rem; }
.small-stats .stat { background: transparent; border: 1px solid var(--line); }
.small-stats .stat-value { font-size: 1.15rem; }
div.used { font-size: .9rem; color: var(--ink-2); margin: 14px 0 4px; }
div.used p { margin: 0 0 4px; }
div.used ul { margin: 0 0 6px; padding-left: 20px; }
p.trust { font-size: .9rem; color: var(--ink-2); margin: 0 0 8px; }

/* result fold-outs */
details.more { margin-top: 18px; border-top: 1px solid var(--line); }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 14px 0; min-height: 44px; }
.scen .formula { display: block; margin-top: 4px; font-weight: 400; color: var(--ink-2); font-size: .82rem; }
table.kv th { font-weight: 500; color: var(--ink-2); text-align: left; }


/* ---------- home hero art + flow ---------- */
.hero { display: grid; gap: 18px; align-items: center; }
.hero-art { width: 100%; height: auto; max-height: 190px; display: block; border-radius: 18px; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.15fr 1fr; } .hero-art { max-height: 300px; } }
.ha-flow { animation: ha-flow 1.6s linear infinite; }
.ha-heat path { animation: ha-rise 2.4s ease-in-out infinite; transform-box: fill-box; }
.ha-heat path:nth-child(2n) { animation-delay: .8s; }
.ha-heat path:nth-child(3n) { animation-delay: 1.6s; }
.ha-blades { animation: ha-spin 3s linear infinite; transform-origin: 318px 183px; }
@keyframes ha-flow { to { stroke-dashoffset: -36; } }
@keyframes ha-rise { 0%, 100% { opacity: .25; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes ha-spin { to { transform: rotate(360deg); } }
.flow { list-style: none; padding: 0; margin: 12px 0 8px; display: grid; gap: 10px; grid-template-columns: 1fr; counter-reset: f; }
.flow li { position: relative; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.flow-icon { grid-row: 1 / 3; display: flex; }
.flow-h { font-weight: 700; }
.flow-v { color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .flow li { grid-template-columns: 1fr; grid-template-rows: auto; text-align: center; justify-items: center; row-gap: 4px; padding: 16px 10px; }
  .flow-icon { grid-row: auto; }
  .flow li:not(:last-child)::after { content: ""; position: absolute; right: -20px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
}
@media (max-width: 759px) {
  .flow li:not(:last-child)::after { content: ""; position: absolute; left: 34px; bottom: -11px; width: 10px; height: 10px; border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(45deg); background: var(--bg); z-index: 1; }
}

/* ---------- results: chart ---------- */
.viz, .whatif, .compare { margin-top: 22px; }
.chart { width: 100%; }
svg.cum { display: block; overflow: visible; }
svg.cum .grid { stroke: var(--line); stroke-width: 1; }
svg.cum .tick { fill: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
svg.cum .l-cur { stroke: var(--warm); stroke-width: 4; stroke-linecap: round; }
svg.cum .l-hp { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
svg.cum .d-hp { fill: var(--accent); }
svg.cum .gain { fill: var(--pos); opacity: .14; }
svg.cum .lab { font-size: 15px; font-weight: 700; }
svg.cum .lab-cur { fill: var(--warm); }
svg.cum .lab-hp { fill: var(--accent); }
svg.cum .pb-line { stroke: var(--pos); stroke-width: 2; stroke-dasharray: 4 4; }
svg.cum .pb-dot { fill: var(--surface); stroke: var(--pos); stroke-width: 4; }
svg.cum .pb-box { fill: var(--pos); }
svg.cum .pb-lab { fill: var(--bg); font-size: 14px; font-weight: 800; }
.legend { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95rem; font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 22px; height: 5px; border-radius: 3px; }
.sw-cur { background: var(--warm); } .sw-hp { background: var(--accent); }
.sw-gain { height: 14px; width: 18px; border-radius: 3px; background: var(--pos); opacity: .25; }
.chart-sum { font-size: 1.05rem; font-weight: 600; margin: 10px 0 4px; }

/* ---------- results: try it yourself ---------- */
.whatif { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; }
.whatif h3 { margin-top: 0; }
.wi-row { margin: 14px 0; }
.wi-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wi-head label { font-weight: 700; }
.wi-head output { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wi-ctrl { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: center; margin-top: 6px; }
.wi-step { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); font-size: 1.6rem; font-weight: 700; line-height: 1; cursor: pointer; }
.wi-step:hover { background: var(--accent); color: var(--accent-ink); }
.whatif input[type=range] { width: 100%; height: 44px; margin: 0; accent-color: var(--accent); background: transparent; -webkit-appearance: none; appearance: none; }
.whatif input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.whatif input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.whatif input[type=range]::-moz-range-track { height: 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.whatif input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.wi-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.wi-out > div { background: var(--surface); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.wi-k { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.wi-v small { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.wi-v { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wi-v.pos { color: var(--pos); } .wi-v.neg { color: var(--neg); }
.whatif .chart { background: var(--surface); border-radius: 12px; padding: 10px 6px 4px; }
.wi-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- results: all heating types ---------- */
.cmp { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.cmp li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.cmp li.cheapest { border-color: var(--pos); box-shadow: inset 4px 0 0 var(--pos); }
.cmp li.own { background: var(--surface-2); }
.cmp-icon { display: flex; }
.cmp-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.cmp-name { font-weight: 700; }
.cmp-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.cmp-track { display: block; height: 10px; border-radius: 6px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.cmp li.own .cmp-track { background: var(--bg); }
.cmp-bar { display: block; height: 100%; border-radius: 6px; background: var(--ink-2); opacity: .55; }
.cmp li.hp .cmp-bar { background: var(--accent); opacity: 1; }
.cmp li.cheapest .cmp-bar { background: var(--pos); opacity: 1; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--info-soft); color: var(--ink); vertical-align: 2px; }
.tag-best { background: var(--pos-soft); color: var(--pos); }

@media (prefers-reduced-motion: reduce) {
  .ha-flow, .ha-heat path, .ha-blades { animation: none; }
}


/* ---------- guides ---------- */
.guide-head { display: flex; gap: 16px; align-items: flex-start; }
.guide-icon { flex: none; margin-top: 8px; filter: drop-shadow(0 3px 4px rgba(20,30,28,.18)); }
@media (max-width: 560px) { .guide-head { flex-direction: column; gap: 4px; } .guide-icon svg { width: 56px; height: 56px; } }
.guide h2 { margin-top: 1.8em; }
.status-box { background: var(--pos-soft); border-left: 5px solid var(--pos); border-radius: 10px; padding: 12px 16px; font-size: 1.02rem; }
.warn-box { background: var(--warm-soft); border-left: 5px solid var(--warm); border-radius: 10px; padding: 12px 16px; margin-top: 16px; }
.facts { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 16px 0; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.fact-k { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.fact-v { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.fact-s { color: var(--ink-2); font-size: .88rem; }
ul.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.checks li { position: relative; padding-left: 34px; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%; background: var(--pos-soft); }
ul.checks li::after { content: ""; position: absolute; left: 7px; top: .42em; width: 9px; height: 5px; border-left: 2.5px solid var(--pos); border-bottom: 2.5px solid var(--pos); transform: rotate(-45deg); }
ol.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; }
ol.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 58px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 52px; display: flex; align-items: center; }
ol.steps li::before { content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pb-bars { display: grid; gap: 12px; margin: 16px 0 6px; }
.pb-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l v" "b b"; gap: 4px 10px; }
.pb-l { grid-area: l; font-weight: 700; }
.pb-v { grid-area: v; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pb-track { grid-area: b; height: 18px; border-radius: 9px; background: var(--surface); overflow: hidden; }
.pb-fill { display: block; height: 100%; border-radius: 9px; transition: width .25s; }
.pb-fill.no { background: var(--ink-2); } .pb-fill.yes { background: var(--pos); }
@media (prefers-reduced-motion: reduce) { .pb-fill { transition: none; } }
.wi-out.one { grid-template-columns: 1fr; }
.whatif > a.btn { display: inline-block; margin-top: 16px; text-decoration: none; }
.formula-line { font-variant-numeric: tabular-nums; color: var(--ink-2); background: var(--surface); border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
.price-range { margin: 18px 0 8px; }
.pr-track { position: relative; height: 34px; border-radius: 17px; background: var(--surface-2); }
.pr-band { position: absolute; top: 4px; bottom: 4px; border-radius: 13px; background: var(--accent); opacity: .85; }
.pr-band.sub { top: 12px; bottom: 12px; background: var(--pos); opacity: .9; }
.pr-mark { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.pr-labels { position: relative; height: 24px; margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }
.pr-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.pr-labels span:last-child { transform: translateX(-80%); }
.pr-labels .ours { top: 22px; color: var(--ink); }
.price-range .legend { margin-top: 26px; }
.sw-sub { background: var(--pos); } .sw-mark { width: 4px; height: 16px; background: var(--ink); }
ul.drivers { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { ul.drivers { grid-template-columns: 1fr 1fr; } }
ul.drivers li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
ul.drivers span { color: var(--ink-2); }
.cmp-table th svg { vertical-align: -8px; }
.cmp-table thead th { text-transform: none; letter-spacing: 0; }
@media (max-width: 639px) {
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: 100%; }
  .cmp-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
  .cmp-table tbody th { color: var(--ink); font-weight: 800; padding: 0 0 6px; border: 0; }
  .cmp-table td { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; padding: 4px 0; border: 0; }
  .cmp-table td::before { content: attr(data-label); font-weight: 600; color: var(--ink-2); }
}
.cmp-table thead th { text-align: left; font-size: 1rem; }
.cmp-table tbody th { font-weight: 600; color: var(--ink-2); text-align: left; }
.cta-box { margin: 28px 0; padding: 20px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.cta-box h2 { margin: 0; color: inherit; font-size: 1.25rem; }
.cta-box .btn { background: var(--surface); color: var(--accent); }
.btn.big { padding: 14px 22px; font-size: 1.05rem; }
.src-list { font-size: .92rem; }
.guides { margin-top: 28px; }
.guide-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card svg { flex: none; filter: drop-shadow(0 3px 4px rgba(20,30,28,.18)); }
.guide-card > span { display: flex; flex-direction: column; gap: 4px; }
.guide-card strong { color: var(--accent); }
.guide-card > span > span { color: var(--ink-2); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .guide-card, .guide-card:hover { transition: none; transform: none; } }

@media print {
  .whatif { display: none !important; }
  :root { --bg: #fff; --surface: #fff; --surface-2: #f3f3f3; --ink: #000; --ink-2: #333; --line: #bbb; color-scheme: light; }
  .site-header nav, .theme-toggle, .calc, .offer, .print-btn, .skip, .actions { display: none !important; }
  .calc-layout { display: block; }
  .results { border: 0; box-shadow: none; padding: 0; position: static; }
  .results[hidden] { display: none; }
  .assumptions:not([open]) > *:not(summary), details.more:not([open]) > *:not(summary) { display: block; }
  a { color: #000; }
  .site-footer { background: #fff; }
}
