/* Voolukratt — uus kujundus 3 "Hinnasilt" (uus3/)
   The page is a shop shelf: paper price labels clipped to shelf-edge rails,
   big euros with raised cents, a unit price under every total (s/kWh, like
   €/kg), and the yellow promo label reserved for the one cheapest answer. */

/* ---------- Fonts (self-hosted, SIL OFL: see fonts/LICENSE-*.txt) ---------- */
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url(fonts/anton-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url(fonts/anton-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url(fonts/archivo-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url(fonts/archivo-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(fonts/archivo-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(fonts/archivo-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(fonts/archivo-800-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(fonts/archivo-800-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens (hex: Chart.js reads --series-*, --ink-2, --grid, --muted) ---------- */
:root {
    color-scheme: light;
    --ground: #F3F4F1;       /* shop shelf, cool white */
    --shelf: #E2E4DF;        /* shelf-edge strip */
    --rail: #C6CAC3;         /* clear label rail */
    --label: #FFFFFE;        /* paper label */
    --label-2: #F7F8F5;
    --ink: #141517;
    --ink-2: #3D4045;
    --muted: #595D63;
    --line: #D3D6D0;
    --grid: #E3E5E0;
    --promo: #FFD400;        /* the one promo colour: only the cheapest answer wears it */
    --promo-2: #FFF1A6;      /* promo tint for best rows */
    --on-promo: #141517;
    --cut: #D3221D;          /* price-cut red: differences, errors, drag-over */
    --good: #1C6E35;
    --good-bg: #E0EFE3;
    --warn-bg: #FFF1BF;
    --warn-ink: #5B4300;
    --error-bg: #FBE0DE;
    --error-ink: #861915;
    --info-bg: #ECEEEA;
    --series-a: #1F4FA3;
    --series-b: #9A6400;
    --series-c: #141517;
    --series-d: #D3221D;
    --day: #F2B705;
    --night: #1F3F7A;

    --lift: 0 1px 1px rgba(20,21,23,.06), 0 3px 8px rgba(20,21,23,.07);
    --lift-2: 0 2px 3px rgba(20,21,23,.10), 0 10px 24px rgba(20,21,23,.12);

    --f-body: "Archivo", system-ui, sans-serif;
    --f-price: "Anton", Impact, sans-serif;
    --r: 3px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --wrap: 1180px;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --ground: #111214;
    --shelf: #1B1D20;
    --rail: #2E3135;
    --label: #1F2226;
    --label-2: #25292E;
    --ink: #EEEDE8;
    --ink-2: #C4C6C8;
    --muted: #A1A5A9;
    --line: #34383D;
    --grid: #2C3034;
    --promo: #FFD400;
    --promo-2: #3A3212;
    --on-promo: #141517;
    --cut: #FF6A5E;
    --good: #8FDDA5;
    --good-bg: #173222;
    --warn-bg: #3A3011;
    --warn-ink: #F6DE93;
    --error-bg: #3E1B18;
    --error-ink: #F7B8B0;
    --info-bg: #1B1E21;
    --series-a: #7CA6EE;
    --series-b: #E3AD45;
    --series-c: #EEEDE8;
    --series-d: #FF6A5E;
    --day: #F2B705;
    --night: #7CA6EE;
    --lift: 0 1px 1px rgba(0,0,0,.4), 0 3px 8px rgba(0,0,0,.3);
    --lift-2: 0 2px 3px rgba(0,0,0,.5), 0 10px 24px rgba(0,0,0,.45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; scrollbar-color: var(--rail) var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16.5px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--promo); color: #141517; }
:focus-visible { outline: 3px solid var(--series-a); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--f-price); font-weight: 400; line-height: 1.05; letter-spacing: 0; margin: 0; text-wrap: balance; }
p { margin: 0; }
strong { font-weight: 600; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.sub { color: var(--ink-2); margin-top: 6px; max-width: 70ch; }
.hint { color: var(--muted); font-size: 14.5px; margin-top: 8px; max-width: 70ch; }
.footnote { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; max-width: 80ch; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--label); padding: 8px 14px; z-index: 20; }
.skip-link:focus { left: 12px; }

/* the shelf-edge strip: a rail that labels clip onto */
.site-header, .step-head, .compare-grid, .modules, .stepper { --rail-h: 10px; }

/* ---------- Header ---------- */
.site-header { background: var(--label); box-shadow: inset 0 -8px 0 var(--shelf), inset 0 -9px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 28px/1 var(--f-price); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.site-header nav { display: flex; gap: 2px; margin-left: auto; }
.site-header nav a { font-weight: 600; font-size: 15.5px; padding: 9px 14px; text-decoration: none; color: var(--ink-2); border-radius: var(--r); }
.site-header nav a:hover { background: var(--label-2); color: var(--ink); }
.site-header nav a[aria-current="page"] { background: var(--ink); color: var(--label); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--label); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--label-2); }

/* ---------- Door: headline + the three step tags ---------- */
.door { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; padding: 60px 0 48px; }
.hero h1 { font-size: clamp(2.6rem, 1.3rem + 3.8vw, 4.8rem); line-height: 1; max-width: 17ch; }
.lead { font-size: 19px; color: var(--ink-2); margin-top: 20px; max-width: 58ch; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.trust li { font-weight: 600; font-size: 15px; background: var(--label); border: 1px solid var(--line); padding: 7px 12px; border-radius: var(--r); display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 12px; border: solid var(--good); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -2px); flex: none; }

.stepper { list-style: none; margin: 0; padding: 26px 0 0; display: flex; gap: 14px; position: relative; }
.stepper::before { content: ""; position: absolute; left: -14px; right: -14px; top: 0; height: 12px; background: var(--shelf); border-bottom: 1px solid var(--line); border-radius: 2px; }
.stepper li { position: relative; }
.stepper li::before { /* the string the tag hangs on */
    content: ""; position: absolute; left: 50%; top: -20px; width: 1.5px; height: 30px; background: var(--muted);
}
.stepper a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
    width: 118px; height: 148px; padding: 12px 10px 14px; text-decoration: none; text-align: center;
    background: var(--label); border: 1px solid var(--line); border-radius: var(--r);
    clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
    transform-origin: 50% 0; transition: transform 240ms var(--ease), background-color 240ms var(--ease);
}
.tag-hole { position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.step-label { font-weight: 600; font-size: 14.5px; line-height: 1.2; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step-num { font: 400 46px/1 var(--f-price); color: var(--ink); }
.stepper li:nth-child(1) a { transform: rotate(-2deg); }
.stepper li:nth-child(3) a { transform: rotate(1.5deg); }
.stepper .is-current a { background: var(--promo); border-color: transparent; transform: rotate(0deg) translateY(4px); }
.stepper .is-current .step-label, .stepper .is-current .step-num { color: var(--on-promo); }
.stepper .is-done a::after { /* a check-mark sticker */
    content: ""; position: absolute; top: 32px; right: 14px; width: 9px; height: 16px;
    border: solid var(--good); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.stepper .is-locked a { opacity: .6; }
.stepper a:hover { transform: rotate(0deg) translateY(2px); }

/* ---------- Steps: each sits on its own shelf ---------- */
.flow { padding-bottom: 24px; }
.step { position: relative; padding: 0 0 60px; }
.step-head { position: relative; display: flex; align-items: flex-end; gap: 18px; margin-bottom: 26px; padding-top: 34px; }
.step-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--shelf); border-bottom: 1px solid var(--line); border-radius: 2px; }
.step-head h2 { font-size: clamp(2rem, 1.4rem + 1.4vw, 2.8rem); }
.step-badge {
    flex: none; display: grid; place-items: center; width: 58px; height: 64px; margin-top: -40px;
    font: 400 38px/1 var(--f-price); background: var(--label); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--lift);
}
body:has(#stepTab1.is-done) #step1 .step-badge,
body:has(#stepTab2.is-done) #step2 .step-badge { color: var(--good); }
body:has(#stepTab3.is-current) #results .step-badge { background: var(--promo); color: var(--on-promo); border-color: transparent; }

/* ---------- Step 1: tear-off drop label ---------- */
.dropzone {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px;
    padding: 28px 30px; background: var(--label); border: 2px dashed var(--rail); border-radius: var(--r);
    cursor: pointer; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.dropzone:hover { border-color: var(--muted); box-shadow: var(--lift); }
.dropzone:focus-within { outline: 3px solid var(--series-a); outline-offset: 3px; }
.dropzone.is-over { border-color: var(--cut); background: var(--label-2); }
.dropzone-plug { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--promo); color: var(--on-promo); }
.dropzone-text { display: flex; flex-direction: column; gap: 4px; }
.dropzone-title { font: 400 30px/1.1 var(--f-price); }
.dropzone-hint { color: var(--muted); font-size: 14.5px; }
.dropzone-btn, .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 800; font-size: 16.5px; letter-spacing: 0.01em;
    background: var(--ink); color: var(--label); padding: 15px 24px; border-radius: var(--r); border: 0;
    text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 120ms var(--ease);
}
.dropzone:hover .dropzone-btn, .btn-primary:hover { background: var(--ink-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary { margin-top: 26px; }
.btn-primary::after { content: ""; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }

.file-status { margin-top: 12px; }
.file-status:empty { display: none; }
.file-status .file-ok { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; background: var(--good-bg); color: var(--good); padding: 8px 14px; border-radius: var(--r); }
.file-status .file-ok::before { content: ""; width: 6px; height: 11px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-2px); flex: none; }

.howto { margin-top: 16px; max-width: 70ch; }
.howto summary { cursor: pointer; font-weight: 600; color: var(--ink-2); list-style: none; display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 160ms var(--ease); }
.howto[open] summary::before { transform: rotate(45deg); }
.howto summary:hover { color: var(--ink); }
.howto ol { margin: 10px 0 0; padding: 16px 20px 16px 40px; background: var(--label); border: 1px solid var(--line); border-radius: var(--r); }
.howto li { margin: 4px 0; }

/* ---------- Step 2: choices are shelf tags on a rail ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
.field-label, .field > label:not(.switch), .label-like { display: block; font-weight: 800; font-size: 16.5px; margin-bottom: 10px; }
.field select:not(.visually-hidden), .field input[type="number"], .filters select {
    width: 100%; padding: 10px 12px; min-height: 44px; background: var(--label); border: 1px solid var(--rail); border-radius: var(--r);
}
.field input[type="number"] { font-variant-numeric: tabular-nums; }
.unit { font-weight: 400; font-size: 14px; color: var(--muted); }

.modules { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; position: relative; }
.modules::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--shelf); border-bottom: 1px solid var(--line); border-radius: 2px; }
.module {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px;
    min-height: 88px; padding: 26px 12px 11px; text-align: left;
    background: var(--label); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}
.module::before { /* clip at the top of each tag */
    content: ""; position: absolute; top: -9px; left: 12px; width: 22px; height: 12px; background: var(--rail); border-radius: 2px;
}
.modules-net .module { flex: 1 1 0; min-width: 104px; }
.modules-amp .module { flex: 1 1 0; min-width: 54px; align-items: center; text-align: center; }
.modules-amp .module::before { left: 50%; margin-left: -11px; }
.module:hover { box-shadow: var(--lift); transform: translateY(1px); }
.module-main { font: 400 24px/1 var(--f-price); white-space: nowrap; }
.modules-amp .module-main { font-size: 22px; }
.modules-net .module-main { white-space: normal; font-size: 22px; line-height: .98; }
.module-sub { font-size: 13px; line-height: 1.2; color: var(--muted); }
.module[aria-checked="true"] { background: var(--promo); border-color: transparent; box-shadow: var(--lift-2); transform: translateY(3px); }
.module[aria-checked="true"] .module-main, .module[aria-checked="true"] .module-sub { color: var(--on-promo); }
.module:focus-visible { outline: 3px solid var(--series-a); outline-offset: 2px; }

.home-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 30px; }

/* checkbox switch */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; flex: none; width: 46px; height: 26px; border-radius: 13px; background: var(--rail); transition: background-color 160ms var(--ease); }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--label); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform 180ms var(--ease); }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); background: var(--promo); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--series-a); outline-offset: 3px; }
.switch-block { margin-top: 22px; align-items: flex-start; }

/* network fee as a small shelf label: amount big, "kuus" as the unit line */
.readout { display: inline-flex; align-items: baseline; gap: 14px; background: var(--label); padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r); }
.readout-label { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.readout-value { font: 400 26px/1 var(--f-price); font-variant-numeric: tabular-nums; }
.hint-wide { margin-top: 14px; }

/* ---------- Notices ---------- */
.notice { padding: 12px 16px; border-radius: var(--r); margin: 14px 0; background: var(--info-bg); color: var(--ink); max-width: 90ch; }
.notice-info { background: var(--info-bg); }
.notice-good { background: var(--good-bg); color: var(--good); }
.notice-warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice-error { background: var(--error-bg); color: var(--error-ink); }
.notice-strong { font-size: 16.5px; }
.notice-strong a { font-weight: 600; }
.notice-gap { margin-top: 20px; }
.notice-icon { display: inline-grid; place-items: center; vertical-align: 1px; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--warn-ink); color: var(--warn-bg); font: 800 13px/1 var(--f-body); }
.notice strong { font-weight: 700; }

/* ---------- Results ---------- */
.results-head > div { flex: 1; }
.busy { font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 6px 12px; background: var(--label); border-radius: var(--r); }

/* The answer: the one yellow promo label on the shelf */
.answer {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 44px;
    grid-template-areas: "eyebrow figures" "title figures" "meta figures" "note figures" "btn figures";
    grid-template-rows: auto auto auto auto 1fr;
    padding: 34px 38px 34px;
    background: var(--promo); color: var(--on-promo);
    border-radius: var(--r); box-shadow: var(--lift-2);
    margin-bottom: 52px;
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}
.answer::before { /* punched hole of the hanging promo tag */
    content: ""; position: absolute; top: 14px; right: 44px; width: 12px; height: 12px; border-radius: 50%; background: var(--ground);
}
.answer-eyebrow { grid-area: eyebrow; font-weight: 600; font-size: 17px; }
.answer-title { grid-area: title; font: 400 clamp(2rem, 1.3rem + 2vw, 3.2rem)/1.02 var(--f-price); margin-top: 8px; text-wrap: balance; }
.answer-meta { grid-area: meta; font-weight: 600; margin-top: 10px; }
.answer-note { grid-area: note; margin-top: 18px; font-size: 15.5px; max-width: 62ch; }
.answer a.btn-light {
    grid-area: btn; justify-self: start; align-self: start; margin-top: 22px;
    font-weight: 800; font-size: 16px; text-decoration: none; padding: 13px 20px; border-radius: var(--r);
    background: var(--on-promo); color: var(--promo);
}
.answer a.btn-light:hover { background: #33363B; }
.answer-figures { grid-area: figures; display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
.answer-figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 12px 0; border-top: 1.5px solid rgba(20,21,23,.8); }
.answer-figures div:nth-child(even) { padding-right: 14px; }
.answer-figures div > span { font-size: 14px; font-weight: 600; line-height: 1.3; }
.answer-figures div strong { font: 400 28px/1.05 var(--f-price); font-variant-numeric: tabular-nums; font-weight: 400; }
.answer-figures div:first-child { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
.answer-figures div:first-child strong { font-size: clamp(5rem, 3rem + 5vw, 8.4rem); line-height: .9; letter-spacing: -0.01em; }
.answer-figures div:first-child > span { font-size: 16px; }
.answer-figures div:last-child strong { color: var(--cut); }
:root[data-theme="dark"] .answer-figures div:last-child strong { color: #B3140F; }

/* price label typography: euros big, cents raised, € small */
.p-eur { display: inline; }
.p-cents { display: inline-block; vertical-align: top; font-size: .46em; line-height: 1; margin: .08em 0 0 .04em; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.p-cur { display: inline-block; font-size: .42em; margin-left: .12em; vertical-align: baseline; }

.section-title { font-size: 30px; margin: 0 0 22px; }

/* three pricing models: three shelf labels on one rail */
.compare-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 18px; align-items: stretch; }
.compare-grid::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--shelf); border-bottom: 1px solid var(--line); border-radius: 2px; }
.vcard {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 20px 22px 20px; background: var(--label); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--lift);
}
.vcard::before { content: ""; position: absolute; top: -10px; left: 22px; width: 26px; height: 13px; background: var(--rail); border-radius: 2px; }
.vcard.is-best { background: var(--promo); color: var(--on-promo); border-color: transparent; box-shadow: var(--lift-2); }
.vcard.is-best .vcard-name, .vcard.is-best .vcard-sub { color: var(--on-promo); }
.vcard-type { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.vcard-type::before { content: ""; width: 16px; height: 4px; border-radius: 1px; background: var(--k, var(--ink)); flex: none; }
.vcard.is-best .vcard-type::before { background: var(--on-promo); }
.vcard-name { font-size: 14.5px; color: var(--ink-2); line-height: 1.35; min-height: 2.7em; }
.vcard-total { font: 400 60px/1 var(--f-price); font-variant-numeric: tabular-nums; margin-top: 10px; }
.vcard-sub { font-size: 13.5px; color: var(--muted); line-height: 1.35; padding-top: 8px; border-top: 1px solid var(--line); }
.vcard.is-best .vcard-sub { border-top-color: rgba(20,21,23,.5); }
.vcard .notice { font-size: 13.5px; margin: 8px 0 0; padding: 8px 10px; }
.badge { align-self: flex-start; margin-top: 8px; font-weight: 800; font-size: 14px; line-height: 1; padding: 7px 10px; border-radius: var(--r); }
.badge-best { background: var(--on-promo); color: var(--promo); }
.badge-more { background: var(--error-bg); color: var(--cut); }
:root[data-theme="dark"] .badge-more { color: var(--error-ink); }
.badge-off { background: var(--warn-bg); color: var(--warn-ink); line-height: 1.25; font-weight: 600; }

.key { display: inline-block; width: 16px; height: 4px; border-radius: 1px; margin-right: 7px; vertical-align: middle; background: var(--k); }
.key-a, .variant-a, .vcard-a { --k: var(--series-a); }
.key-b, .variant-b, .vcard-b { --k: var(--series-b); }
.key-c, .variant-c, .vcard-c { --k: var(--series-c); }
.key-d { --k: var(--series-d); }

/* consumption facts */
.stats { display: grid; grid-template-columns: 1fr 1fr 2fr; margin: 44px 0 28px; background: var(--label); border: 1px solid var(--line); border-radius: var(--r); }
.stat { padding: 18px 22px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat[style] { grid-column: auto !important; }
.stat-label { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.stat-value { font: 400 34px/1.1 var(--f-price); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.split { display: flex; height: 16px; margin-top: 12px; border-radius: 2px; overflow: hidden; }
.split span { display: block; height: 100%; }
.split .split-day { background: var(--day); }
.split .split-night { background: var(--night); }
.split-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* panels: flat paper labels */
.panel { background: var(--label); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; margin-top: 20px; }
.panel > h3 { font-size: 28px; }
.chart-container { position: relative; height: 380px; margin-top: 18px; }

/* dense tables */
.table-scroll { overflow-x: auto; margin-top: 16px; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.data-table th { font-weight: 800; font-size: 13.5px; color: var(--ink); text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.data-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table tbody tr.is-clickable { cursor: pointer; }
.data-table tbody tr.is-clickable:hover td, .data-table tbody tr.is-clickable:focus-visible td { background: var(--label-2); }
.data-table tbody tr.is-clickable:focus-visible { outline: 3px solid var(--series-a); outline-offset: -3px; }
.data-table tfoot td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; padding-top: 10px; }
.data-table .is-min { font-weight: 700; color: var(--good); }
.data-table tr.is-best td { background: var(--promo-2); }
.data-table tr.is-current td { background: var(--label-2); }
.data-table .pkg-name { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.data-table .col-pkg { min-width: 220px; }
.data-table .pkg-meta { color: var(--muted); font-size: 13.5px; }
.tag { display: inline-block; font-weight: 700; font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: var(--r); background: var(--info-bg); color: var(--ink-2); }
.tag-best { background: var(--promo); color: var(--on-promo); }
.tag-green { background: var(--good-bg); color: var(--good); }
.mobile-only { display: none; }

.btn-ghost { font-weight: 600; font-size: 13px; white-space: nowrap; padding: 7px 10px; border-radius: var(--r); cursor: pointer; background: transparent; border: 1px solid var(--rail); color: var(--ink-2); }
.btn-ghost:hover { background: var(--label-2); color: var(--ink); }
.btn-ghost.is-on { background: var(--ink); color: var(--label); border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; font: inherit; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14.5px; line-height: 1; padding: 9px 12px; border-radius: var(--r); background: var(--label); border: 1px solid var(--rail); color: var(--ink-2); }
.chip::before { content: ""; width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid var(--muted); flex: none; }
.chip:has(input:checked) { background: var(--ink); color: var(--label); border-color: var(--ink); }
.chip:has(input:checked)::before { border-color: var(--promo); background: var(--promo); }
.chip:has(input:focus-visible) { outline: 3px solid var(--series-a); outline-offset: 2px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters select { width: auto; min-width: 180px; min-height: 38px; padding: 6px 10px; font-weight: 600; font-size: 14.5px; }

/* advanced */
.advanced { padding: 0; }
.advanced > summary { display: flex; align-items: center; gap: 16px; cursor: pointer; padding: 22px 28px; list-style: none; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary > span { flex: 1; }
.advanced > summary strong { display: block; font: 400 26px/1.1 var(--f-price); }
.advanced > summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-right: 6px; transition: transform 180ms var(--ease); }
.advanced[open] > summary::after { transform: rotate(-135deg); }
.advanced[open] > summary { border-bottom: 1px solid var(--line); }
.advanced > :not(summary) { margin-left: 28px; margin-right: 28px; }
.advanced > .switch-block { margin-bottom: 26px; }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.variant { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 18px; margin: 0; background: var(--label-2); min-width: 0; }
.variant legend { font: 400 22px/1 var(--f-price); padding: 0 6px; }
.variant-b { grid-column: 1 / -1; }
.variant .field { margin-top: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.variant .field > label:not(.switch) { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.autofill-info { font-size: 13.5px; color: var(--ink-2); background: var(--label); padding: 8px 10px; border-radius: var(--r); }
.autofill-info:empty { display: none; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 4px; }
.month-grid .field { margin-top: 0; }
.month-input label { font-weight: 600 !important; font-size: 13px !important; color: var(--ink-2); margin-bottom: 4px !important; }
.month-input input { padding: 6px 8px !important; min-height: 36px !important; }

.disclaimer { color: var(--muted); font-size: 14.5px; margin-top: 28px; max-width: 80ch; }

.modal { max-width: min(680px, calc(100vw - 32px)); width: 100%; padding: 28px; border: 0; border-radius: var(--r); background: var(--label); color: var(--ink); box-shadow: var(--lift-2); }
.modal::backdrop { background: rgba(17,18,20,.55); }
.modal-close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.modal h3 { font-size: 30px; padding-right: 48px; }

/* ---------- Footer: the bottom shelf ---------- */
.site-footer { background: var(--shelf); border-top: 1px solid var(--line); margin-top: 24px; padding: 28px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-meta { font-size: 14.5px; color: var(--ink-2); display: grid; gap: 4px; }
.beer-btn {
    display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; text-decoration: none;
    background: var(--promo); color: var(--on-promo); padding: 12px 18px; border-radius: var(--r);
    box-shadow: var(--lift); transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.beer-btn:hover { transform: translateY(-2px); box-shadow: var(--lift-2); }

.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: 18px; background: var(--label); color: var(--ink); padding: 16px 18px; border-radius: var(--r); box-shadow: var(--lift-2); border: 1px solid var(--line); font-size: 14.5px; }
.consent-bar span { flex: 1; }
.consent-bar button { font-weight: 800; font-size: 16px; background: var(--ink); color: var(--label); border: 0; border-radius: var(--r); padding: 12px 20px; cursor: pointer; }
.consent-bar button:hover { background: var(--ink-2); }

/* ---------- Reading pages ---------- */
.prose { padding-top: 52px; padding-bottom: 32px; }
.prose h1 { font-size: clamp(2.4rem, 1.4rem + 2.8vw, 4rem); line-height: 1; max-width: 18ch; }
.prose > .lead { margin-bottom: 40px; }
.prose-body { max-width: 78ch; display: grid; gap: 16px; }
.prose .card { position: relative; background: var(--label); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 28px; }
.prose h2 { font-size: 28px; margin-bottom: 8px; }
.prose p, .prose ul, .prose ol { margin: 10px 0 0; max-width: 72ch; }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.prose td, .prose th { text-align: left; padding: 8px 18px 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.prose th { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
    .door { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
    .stepper { justify-self: start; margin-left: 14px; }
    .home-grid { grid-template-columns: 1fr; gap: 28px; }
    .answer { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "meta" "figures" "note" "btn"; grid-template-rows: none; }
    .answer-figures { margin-top: 24px; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .header-row { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px 16px; min-height: 0; }
    .site-header nav { order: 3; width: 100%; }
    .site-header nav a { padding: 8px 10px; }
    #themeToggle { margin-left: auto; }
    .door { padding: 30px 0 28px; gap: 44px; }
    .lead { font-size: 17px; }
    .stepper { margin-left: 0; width: 100%; gap: 8px; }
    .stepper::before { left: 0; right: 0; }
    .stepper li { flex: 1; }
    .stepper a { width: 100%; height: 124px; }
    .step-num { font-size: 38px; }
    .step-label { font-size: 13px; }
    .step-head { gap: 14px; }
    .step-badge { width: 48px; height: 54px; font-size: 30px; }
    .dropzone { grid-template-columns: auto 1fr; padding: 20px; gap: 16px; }
    .dropzone-btn { grid-column: 1 / -1; }
    .dropzone-plug { width: 50px; height: 50px; }
    .dropzone-title { font-size: 25px; }
    .modules-net .module { flex: 1 1 calc(33% - 6px); }
    .modules-amp .module { flex: 1 1 calc(25% - 6px); }
    .home-foot { flex-direction: column; align-items: flex-start; }
    .answer { padding: 26px 20px; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
    .answer::before { right: 30px; }
    .answer-figures div:first-child strong { font-size: 4.6rem; }
    .answer-figures div strong { font-size: 24px; }
    .compare-grid { grid-template-columns: 1fr; gap: 16px; }
    .vcard-name { min-height: 0; }
    .vcard-total { font-size: 52px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { grid-column: 1 / -1 !important; border-left: 0; border-top: 1px solid var(--line); }
    .panel { padding: 20px 16px; }
    .chart-container { height: 300px; }
    .hide-m { display: none; }
    .mobile-only { display: block; }
    .data-table .col-pkg { min-width: 0; }
    .adv-grid, .field-row { grid-template-columns: 1fr; }
    .advanced > summary { padding: 18px 16px; }
    .advanced > :not(summary) { margin-left: 16px; margin-right: 16px; }
    .consent-bar { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; }
    .prose .card { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .stepper, .dropzone, .howto, .consent-bar, .beer-btn, #themeToggle { display: none !important; }
    body { background: #fff; }
    .answer { clip-path: none; box-shadow: none; }
}

/* loaded files + estimate tags (2026-09-29) */
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.file-list .link-btn { font-size: 14px; color: var(--muted); }
.file-kind { font-weight: 400; }
.file-status .hint { margin-top: 10px; }
.howto .hint { margin-top: 10px; }
.tag-est { background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; vertical-align: 2px; }
.vcard.is-best .tag-est, .answer .tag-est { background: var(--on-promo); color: var(--promo); }
.file-list .file-ok { flex-wrap: wrap; row-gap: 2px; max-width: 100%; overflow-wrap: anywhere; }
