/*
  Zonuur design system. One stylesheet for the static pages (web/) and the pages the API renders.
  No external fonts or assets: nothing on the page talks to a third party.
*/

:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #f0ede4;
  --text: #17201c;
  --muted: #5a6560;
  --line: #e2dfd5;
  --sun: #f2a33a;
  --sun-soft: #fde9c8;
  --on-sun: #1d1405;
  --link: #8a4f00;
  --focus: #1d6fd1;
  --good: #1f7a4d;
  --bad: #b3261e;
  --cheap: #2e9e64;
  --mid: #e0ad4b;
  --dear: #d65a45;
  --neg: #2f7fb8;
  --shadow: 0 1px 2px rgb(23 32 28 / 6%), 0 4px 16px rgb(23 32 28 / 6%);
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1311;
    --surface: #171e1b;
    --surface-2: #1f2824;
    --text: #e9ede9;
    --muted: #a3ada8;
    --line: #2c3632;
    --sun: #f5ad4a;
    --sun-soft: #3a2a12;
    --on-sun: #1d1405;
    --link: #f5b65e;
    --focus: #7fb4ff;
    --good: #6fcf97;
    --bad: #ff8a80;
    --cheap: #4cc283;
    --mid: #e0b257;
    --dear: #ef7a66;
    --neg: #5aa9e6;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
svg.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num, .price { font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- App shell ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1040px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav svg.icon { width: 18px; height: 18px; }

/* On phones the navigation is a tab bar at the bottom, in reach of the thumb. */
@media (max-width: 719px) {
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    margin: 0; gap: 0; justify-content: space-around;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  /* A backdrop filter would make the top bar the containing block of the fixed tab bar. */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav a { flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 0.75rem; border-radius: 12px; }
  .nav a[aria-current="page"] { background: transparent; color: var(--link); }
  .nav svg.icon { width: 24px; height: 24px; }
  body { padding-bottom: 76px; }
}

main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 24px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

footer.site {
  max-width: 1040px; margin: 24px auto 0; padding: 24px 16px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.85rem;
}
footer.site p { margin: 0 0 8px; }
footer.site a { color: inherit; }

/* ---------- Type ---------- */

h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.02em; margin: 24px 0 10px; }
h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; margin: 36px 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 8px; max-width: 62ch; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); margin: 16px 0 0; }

/* ---------- Surfaces ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

p.notice {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--sun-soft);
  border: 1px solid color-mix(in srgb, var(--sun) 40%, transparent);
}
p.notice.good { background: color-mix(in srgb, var(--neg) 14%, var(--surface)); border-color: color-mix(in srgb, var(--neg) 40%, transparent); }

/* ---------- Buttons ---------- */

.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  font: inherit; font-weight: 700;
  border: 0; border-radius: 12px;
  background: var(--sun); color: var(--on-sun);
  text-decoration: none; cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.button:hover, button:hover { filter: brightness(1.05); }
.button:active, button:active { transform: translateY(1px); }
button.secondary, .button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.button.block, button.block { width: 100%; }
button:disabled { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
@media (max-width: 519px) { .actions .button { width: 100%; } }

/* ---------- Price levels: bars, dots, chips and badges share them ---------- */

.cheap { --level: var(--cheap); }
.mid { --level: var(--mid); }
.dear { --level: var(--dear); }
.neg { --level: var(--neg); }

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; line-height: 1.6;
  color: #10140f; background: var(--level, var(--sun));
}
.badge.plain { background: var(--surface-2); color: var(--text); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--level); }
.dot.current { background: transparent; border: 2px solid var(--text); }

/* ---------- Home ---------- */

.hero { display: grid; gap: 28px; align-items: center; padding: 8px 0 8px; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.05fr 1fr; padding: 32px 0 16px; } }
.hero h1 { margin-top: 12px; }

.live {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--sun) 28%, transparent) 0%, transparent 60%),
    var(--surface);
}
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.live-label { font-weight: 700; color: var(--muted); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--cheap); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cheap) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2s infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
}
.live-price { font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 4px 0; }
.live-price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.live-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }

.picker { display: flex; gap: 8px; margin-top: 14px; }
.picker select { flex: 1; min-width: 0; }
.picker .button { flex: none; }

.steps { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sun-soft); color: var(--link);
  margin-bottom: 12px;
}
.feature-icon svg.icon { width: 24px; height: 24px; }
.steps p, .features p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 20px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } }

.compare { display: grid; gap: 12px; }
.compare-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
.compare-row span { font-weight: 700; font-size: 0.9rem; }
svg.compare-bar { display: block; width: 100%; height: 34px; border-radius: 10px; overflow: hidden; }
svg.compare-bar rect { fill: var(--level); }
svg.compare-bar rect.lost, .legend .swatch.lost { --level: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--level); }

.features { display: grid; gap: 14px; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .feature-icon { margin: 0; }

/* A phone drawn in CSS, showing the notification the app sends. */
.phone {
  width: 260px; max-width: 100%; margin: 0 auto;
  aspect-ratio: 9 / 17;
  border-radius: 38px; padding: 12px;
  background: #121715; box-shadow: var(--shadow), inset 0 0 0 2px #2c3632;
}
.phone-screen {
  height: 100%; border-radius: 28px; padding: 44px 12px 12px;
  background: linear-gradient(170deg, #f8c46b 0%, #e98a3b 45%, #7b4a8e 100%);
  display: flex; flex-direction: column; gap: 10px;
}
.phone-time { text-align: center; color: #fff; font-size: 2.6rem; font-weight: 300; line-height: 1; margin-bottom: 18px; text-shadow: 0 1px 6px rgb(0 0 0 / 20%); }
.notif { background: rgb(255 255 255 / 88%); color: #17201c; border-radius: 16px; padding: 10px 12px; font-size: 0.8rem; line-height: 1.35; box-shadow: 0 4px 14px rgb(0 0 0 / 15%); }
.notif b { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #5a6560; font-weight: 600; margin-bottom: 2px; }
.notif b svg { width: 14px; height: 14px; }
.notif strong { display: block; font-size: 0.85rem; }

.cta-band {
  margin-top: 40px; padding: 28px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sun) 0%, #f7c46f 100%); color: var(--on-sun);
  display: grid; gap: 14px; align-items: center;
}
@media (min-width: 720px) { .cta-band { grid-template-columns: 1fr auto; padding: 32px; } }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; }
.cta-band .button { background: #17201c; color: #fff; }

/* ---------- Price pages ---------- */

.crumb { margin: 16px 0 0; font-size: 0.9rem; }
.crumb a { text-decoration: none; font-weight: 600; }

.now-grid { display: grid; gap: 14px; margin: 16px 0 8px; }
.now-grid > *, .hero > *, .split > *, .result-grid > * { min-width: 0; }
@media (min-width: 880px) { .now-grid { grid-template-columns: 1fr 1.2fr; } }
.now-price { font-size: clamp(2.6rem, 2rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0; }
.now-price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.now-next { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.now-next .feature-icon { margin: 0; }
.now-next p { margin: 0; }

/* The next hours as a strip of chips, scrollable sideways on phones. */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 10px 0 0; scroll-snap-type: x proximity; list-style: none; }
.strip li { scroll-snap-align: start; }
.chip {
  min-width: 74px; padding: 8px 10px; border-radius: 12px;
  background: var(--surface-2); border-top: 4px solid var(--level);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.chip span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.chip strong { font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.chip.current { outline: 2px solid var(--text); outline-offset: -2px; }

/* Tabs that work without script: radio inputs before the panels. */
.tabs { margin-top: 28px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tablist { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: 12px; }
.tablist label { margin: 0; padding: 8px 18px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--muted); }
.tabs > .panel { display: none; }
#tab-today:checked ~ .tablist label[for="tab-today"],
#tab-tomorrow:checked ~ .tablist label[for="tab-tomorrow"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
#tab-today:checked ~ .panel-today, #tab-tomorrow:checked ~ .panel-tomorrow { display: block; }
#tab-today:focus-visible ~ .tablist label[for="tab-today"],
#tab-tomorrow:focus-visible ~ .tablist label[for="tab-tomorrow"] { outline: 3px solid var(--focus); outline-offset: 2px; }
.panel h2 { margin: 18px 0 10px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 14px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile-label { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.tile-price { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile.cheap, .tile.dear { border-top: 4px solid var(--level); }

/* Chart */
.chart-card { padding: 16px 16px 12px; }
svg.chart { display: block; width: 100%; height: auto; touch-action: pan-y; }
svg.chart rect.bar { fill: var(--level); }
svg.chart rect.bar.current { stroke: var(--text); stroke-width: 3; }
svg.chart rect.bar.selected { stroke: var(--focus); stroke-width: 4; }
svg.chart rect.hit { fill: transparent; cursor: pointer; }
svg.chart line.axis { stroke: var(--muted); stroke-width: 1; }
svg.chart line.guide { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
svg.chart text { fill: var(--muted); font-size: 22px; text-anchor: middle; font-family: inherit; }
svg.chart text.scale { text-anchor: end; }
svg.chart text.now-mark { fill: var(--text); font-weight: 800; }

/* The hour under the finger: its price and what it is made of. */
.detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.detail-head strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.stack { height: 14px; border-radius: 7px; overflow: hidden; margin: 10px 0 8px; background: var(--surface-2); }
.stack svg { display: block; width: 100%; height: 100%; }
.stack rect { fill: var(--level); }
.w { --level: #8a95a5; }
.s { --level: var(--sun); }
.t { --level: #9b7ad1; }
.v { --level: #5bb5b0; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; }
@media (max-width: 419px) { .parts { grid-template-columns: 1fr; } }
.parts li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.parts li b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.parts .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--level); }

/* Folded detail */
details.fold { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
details.fold > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s; margin-right: 4px; }
details.fold[open] > summary::after { transform: rotate(-135deg); }
details.fold > .fold-body { padding: 0 16px 14px; }
.scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 9px 6px; border-bottom: 1px solid var(--line); }
th { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
th:first-child, td:first-child { text-align: left; }
tr:last-child td { border-bottom: 0; }
tr.current td { font-weight: 800; background: var(--surface-2); }
tr.total td { font-weight: 800; border-top: 2px solid var(--line); }

/* Supplier picker */
.search { position: relative; margin: 18px 0 4px; max-width: 420px; }
.search svg.icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search input[type="search"] { padding-left: 44px; }
ul.picks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
@media (min-width: 640px) { ul.picks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { ul.picks { grid-template-columns: 1fr 1fr 1fr; } }
a.pick {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; height: 100%;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
a.pick:hover { border-color: var(--sun); transform: translateY(-1px); }
.pick-name { font-weight: 800; font-size: 1.1rem; }
.pick-product { color: var(--muted); font-size: 0.88rem; grid-column: 1; }
.pick-price { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.pick-price strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pick-price small { color: var(--muted); }
.pick svg.spark { grid-column: 1 / -1; width: 100%; height: 44px; margin-top: 10px; }
.pick .pick-hint { grid-column: 1 / -1; color: var(--muted); font-size: 0.86rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
svg.spark rect { fill: var(--level); }

/* ---------- Forms (calculator) ---------- */

label { display: block; margin: 14px 0 6px; font-weight: 600; }
input[type="text"], input[type="number"], input[type="search"], select {
  width: 100%; min-height: 48px;
  font: inherit; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text);
}
input:focus, select:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field-unit { position: relative; }
.field-unit input { padding-right: 64px; }
.field-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }

.step { margin-bottom: 14px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--on-sun); font-weight: 800; flex: none; }
.step-head h2 { margin: 0; font-size: 1.15rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 0; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; margin: 0; transition: background 0.15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 30%); transition: transform 0.15s; }
.switch input:checked { background: var(--cheap); }
.switch input:checked::after { transform: translateX(22px); }

/* Choice chips: radio inputs that look like buttons. */
fieldset.choices { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
fieldset.choices legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.choice-grid { display: grid; gap: 8px; }
.choice-grid.compass { grid-template-columns: repeat(3, 1fr); max-width: 320px; }
.choice-grid.tilts { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 519px) { .choice-grid.tilts { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; margin: 0; font-weight: 600; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; padding: 8px; border-radius: 12px; text-align: center;
  border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; cursor: pointer;
}
.choice span small { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.choice input:checked + span { border: 2px solid var(--sun); background: var(--sun-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.compass .center { display: grid; place-items: center; color: var(--muted); }
.compass .center svg { width: 34px; height: 34px; }
.choice svg.roof { width: 44px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.error { color: var(--bad); font-weight: 600; }

/* Calculator result */
.result-hero .big { font-size: clamp(2.4rem, 1.8rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 4px 0 6px; }
.result-hero .big small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.bars { display: grid; gap: 10px; margin: 16px 0 4px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 10px; align-items: center; font-size: 0.92rem; }
.track { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.fill { height: 100%; border-radius: 7px; background: var(--level); width: 0; }
@media (prefers-reduced-motion: no-preference) { .fill { transition: width 0.6s ease; } }
.bar-row b { font-variant-numeric: tabular-nums; }
.result-grid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 880px) { .result-grid { grid-template-columns: 1fr 1fr; } }
.flow { display: flex; height: 28px; border-radius: 9px; overflow: hidden; background: var(--surface-2); margin: 12px 0 6px; }
.flow i { display: block; height: 100%; background: var(--level); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kpi { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.kpi span { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.grey { --level: #8a95a5; }
.sun { --level: var(--sun); }
ul.assumptions { color: var(--muted); padding-left: 20px; margin: 0; }
ul.assumptions li { margin-bottom: 8px; }

/* ---------- Privacy and other reading pages ---------- */

.summary { display: grid; gap: 12px; margin: 18px 0 8px; }
@media (min-width: 720px) { .summary { grid-template-columns: 1fr 1fr; } }
.summary .feature p { color: var(--text); margin: 0; }
ul.facts { padding-left: 20px; margin: 8px 0 16px; }
ul.facts li { margin-bottom: 6px; }
article.prose h2 { margin-top: 32px; }
