:root {
  --accent: #2f56e0;
  --bg: #f3f1ec;
  --bg-2: #ebe8e1;
  --surface: #ffffff;
  --ink: #13151a;
  --ink-2: #3b3f47;
  --muted: #6c7079;
  --line: rgba(19, 21, 26, 0.09);
  --line-2: rgba(19, 21, 26, 0.16);
  --good: #13855f;
  --warn: #b5671b;
  --shadow: 0 1px 2px rgba(19, 21, 26, 0.05), 0 8px 30px -12px rgba(19, 21, 26, 0.16);
  --shadow-lg: 0 2px 4px rgba(19, 21, 26, 0.04), 0 24px 60px -24px rgba(19, 21, 26, 0.3);
  --stage: linear-gradient(180deg, #f6f5f2 0%, #e9e7e1 100%);
  --r: 22px;
  --r-sm: 14px;
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --accent-soft: color-mix(in oklab, var(--accent) 11%, transparent);
  --accent-ink: color-mix(in oklab, var(--accent) 82%, var(--ink));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1013; --bg-2: #15181d; --surface: #171a1f; --ink: #eef0f3; --ink-2: #c9cdd3; --muted: #959ba4;
    --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.15); --good: #3ccf98; --warn: #e8a35a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    --stage: linear-gradient(180deg, #1d2127 0%, #14171b 100%);
    --accent-soft: color-mix(in oklab, var(--accent) 22%, transparent);
    --accent-ink: color-mix(in oklab, var(--accent) 55%, white);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e1013; --bg-2: #15181d; --surface: #171a1f; --ink: #eef0f3; --ink-2: #c9cdd3; --muted: #959ba4;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.15); --good: #3ccf98; --warn: #e8a35a;
  --stage: linear-gradient(180deg, #1d2127 0%, #14171b 100%);
  --accent-soft: color-mix(in oklab, var(--accent) 22%, transparent);
  --accent-ink: color-mix(in oklab, var(--accent) 55%, white);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01', 'cv11'; overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.num, .card-price, .big-num, table { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Demolinje og topp ---------- */
.demobar {
  background: #0b0c0f; color: #e9ebee; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; display: flex; align-items: center; gap: 14px;
  padding: 7px 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.demobar::-webkit-scrollbar { display: none; }
.demobar a { text-decoration: none; opacity: 0.7; padding: 2px 10px; border-radius: 99px; }
.demobar a:hover { opacity: 1; }
.demobar a[aria-current='page'] { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.demobar .label { opacity: 0.55; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.demobar .spacer { flex: 1; }
.engine-pill { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); opacity: 0.85; }
.engine-pill.on { background: var(--accent); opacity: 1; color: #fff; }

.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 14px 24px;
  background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-size: 24px; line-height: 1; flex: none; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.15);
}
.brand-name { font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand-tag { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 99px; padding: 9px 16px; font-size: 14px; font-weight: 550; white-space: nowrap; transition: transform 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: color-mix(in oklab, var(--ink) 86%, var(--accent)); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- Forstått-linja ---------- */
.understood {
  position: sticky; top: 65px; z-index: 25; display: flex; align-items: center; gap: 8px; padding: 10px 24px; overflow-x: auto;
  scrollbar-width: none; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.understood::-webkit-scrollbar { display: none; }
.understood[hidden] { display: none; }
.understood .lbl { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--line-2); font-size: 13.5px; white-space: nowrap; animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.chip button { border: 0; background: var(--bg-2); width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0; color: var(--muted); font-size: 13px; line-height: 1; }
.chip button:hover { background: var(--ink); color: var(--bg); }
.chip.new { animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3) both, glow 2.6s ease-out both; }
@keyframes glow { 0%, 45% { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } 100% { border-color: var(--line-2); box-shadow: none; } }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Start ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 24px 160px; }
.hero { padding: clamp(40px, 9vh, 110px) 0 40px; transition: opacity 0.4s, transform 0.4s; }
.hero .eyebrow { margin: 0 0 18px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 104px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 640; margin: 0; max-width: 13ch;
}
.hero h1 em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--accent-ink); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 54ch; margin: 22px 0 34px; }
.ask {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 99px;
  padding: 7px 7px 7px 22px; box-shadow: var(--shadow-lg); max-width: 760px; transition: border-color 0.2s, box-shadow 0.2s;
}
.ask:focus-within { border-color: var(--accent); box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-soft); }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; padding: 12px 0; }
.ask input::placeholder { color: var(--muted); }
.ask .go {
  width: 50px; height: 50px; border-radius: 99px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none;
  transition: transform 0.15s;
}
.ask .go:active { transform: scale(0.92); }
.ask .go svg { width: 22px; height: 22px; }
.ask .mic { width: 44px; height: 44px; border-radius: 99px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; }
.ask .mic svg { width: 20px; height: 20px; }
.ask .mic.listening { color: #fff; background: #d33; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(221, 51, 51, 0.15); } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 900px; }
.suggest button {
  border: 1px solid var(--line-2); background: transparent; border-radius: 99px; padding: 9px 15px; font-size: 14.5px; color: var(--ink-2);
  transition: background 0.15s, border-color 0.15s, color 0.15s; text-align: left;
}
.suggest button:hover { background: var(--surface); border-color: var(--ink-2); color: var(--ink); }
.strip { margin-top: clamp(48px, 9vh, 96px); }
.strip h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.how div { border-top: 1px solid var(--line-2); padding-top: 14px; color: var(--ink-2); font-size: 14.5px; }
.how strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

body.started .hero { display: none; }

/* ---------- Visninger ---------- */
.feed { display: flex; flex-direction: column; gap: 56px; padding-top: 28px; }
.turn { scroll-margin-top: 130px; }
.turn-head { margin-bottom: 18px; }
.turn-q {
  font-size: clamp(28px, 3.8vw, 46px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 620; margin: 0; max-width: 24ch;
  text-wrap: balance;
}
.turn-q .quote { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted); }
.turn-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 12px 0 0; flex-wrap: wrap; }
.turn-meta .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }
.turn.building .turn-meta .dot { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.step { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--bg-2); color: var(--muted); animation: pop 0.3s both; }
.step.active { background: var(--accent-soft); color: var(--accent-ink); }
.step.done::before { content: '✓ '; }
.turn:not(.building) .steps { display: none; }
.answer { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; max-width: 62ch; margin: 0 0 22px; color: var(--ink); text-wrap: pretty; }
.answer:empty { display: none; }
.turn.building .answer:not(:empty)::after { content: ''; display: inline-block; width: 0.5em; height: 1em; background: var(--accent); vertical-align: -0.12em; margin-left: 3px; animation: blink 0.9s infinite; border-radius: 2px; }

.blocks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.block {
  grid-column: span 12; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  box-shadow: var(--shadow); animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; min-width: 0;
}
.block.half { grid-column: span 6; }
.block.half.full { grid-column: span 12; }
.block.flat { background: transparent; border: 0; box-shadow: none; padding: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block-head h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; font-weight: 640; }
.block-head .meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.block .fine { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.skeleton { grid-column: span 12; height: 240px; border-radius: var(--r); background: linear-gradient(100deg, var(--bg-2) 30%, color-mix(in oklab, var(--bg-2) 50%, var(--surface)) 50%, var(--bg-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton.short { height: 120px; grid-column: span 6; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Kort */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.card {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; text-align: left; padding: 0;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-stage { background: var(--stage); padding: 18px 14px 6px; position: relative; }
.card-stage .car-svg { display: block; width: 100%; height: auto; transition: transform 0.4s; }
.card:hover .car-svg { transform: translateX(6px); }
.badge { position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); }
.badge.hot { background: var(--accent); color: #fff; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card h4 { margin: 0; font-size: 16.5px; letter-spacing: -0.015em; line-height: 1.2; }
.card h4 span { display: block; font-weight: 450; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.ring {
  --p: 80; width: 42px; height: 42px; border-radius: 99px; flex: none; display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 78% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-2) 0);
  color: var(--accent-ink);
}
.card-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.card-price { margin: 4px 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price strong { font-size: 19px; letter-spacing: -0.02em; }
.card-price span { color: var(--muted); font-size: 13.5px; }
.reasons { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.reasons li { display: flex; gap: 7px; align-items: baseline; }
.reasons li::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: var(--good); flex: none; transform: translateY(-1px); }
.reasons li.warn::before { background: var(--warn); }
.reasons li.warn { color: var(--warn); }
.why { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.35; color: var(--ink-2); margin: 6px 0 0; padding-top: 8px; border-top: 1px dashed var(--line-2); }

/* Bil i fokus */
.spot { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.spot > .spot-stage { position: sticky; top: 140px; }
.spot-stage { background: var(--stage); border-radius: 18px; padding: 22px; position: relative; overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: center; }
.spot-stage::before { content: ''; position: absolute; inset: auto 10% 8% 10%; height: 30%; background: radial-gradient(closest-side, var(--accent-soft), transparent); }
.spot-stage .car-svg { position: relative; width: 100%; height: auto; display: block; animation: drive 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes drive { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.spot h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -0.035em; margin: 6px 0 6px; }
.spot h3 span { display: block; font-size: 16px; color: var(--muted); font-weight: 450; letter-spacing: -0.01em; margin-top: 6px; }
.spot-price { font-size: 17px; margin: 10px 0 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.spot-price strong { font-size: 26px; letter-spacing: -0.02em; }
.spot-price span { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fact { font-size: 13px; padding: 5px 10px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); }
.points { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; font-size: 15px; }
.points li::before { content: '→'; color: var(--accent); font-weight: 700; }
.seller-note { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; color: var(--ink-2); margin: 0 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Tabeller */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; min-width: 520px; }
.cmp th, .cmp td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { border-bottom: 0; vertical-align: bottom; padding-bottom: 6px; }
.cmp thead .car-svg { width: 100%; max-width: 200px; height: auto; display: block; }
.cmp thead strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.cmp thead span { color: var(--muted); font-weight: 450; font-size: 13px; }
.cmp tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; width: 1%; position: sticky; left: 0; background: var(--surface); }
.cmp td.best { background: var(--accent-soft); font-weight: 600; }
.cmp td.best::after { content: ' ●'; color: var(--accent); font-size: 10px; vertical-align: 2px; }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }

/* Kontroller */
.ctl { display: grid; gap: 16px; }
.ctl label { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.ctl .row { display: flex; justify-content: space-between; gap: 10px; }
.ctl .row b { color: var(--ink); font-weight: 600; }
input[type='range'] { width: 100%; accent-color: var(--accent); height: 24px; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 99px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; color: var(--ink-2); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.field { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.field input, .field select {
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; background: var(--surface); font-size: 15px; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.big-num { font-size: clamp(38px, 4.4vw, 54px); font-weight: 680; letter-spacing: -0.045em; line-height: 1; margin: 0; }
.big-num small { font-size: 0.38em; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin-left: 4px; }
.result { background: var(--bg); border-radius: 18px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.result .lines { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.result .lines div { display: flex; justify-content: space-between; gap: 10px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.mini { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mini .car-svg { width: 96px; height: auto; flex: none; }
.mini strong { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.mini span { color: var(--muted); font-size: 13.5px; }
.done-msg { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: 16px; padding: 16px; font-size: 14.5px; animation: pop 0.35s both; }
.done-msg .tick { width: 28px; height: 28px; border-radius: 99px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; font-weight: 700; }

/* Rekkevidde */
.route { position: relative; height: 86px; margin: 26px 22px 6px; }
.route .line { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--good), color-mix(in oklab, var(--good) 40%, var(--warn))); }
.route .pin { position: absolute; top: 18px; transform: translateX(-50%); text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.route .pin i { display: block; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 99px; background: var(--surface); border: 3px solid var(--ink); font-style: normal; line-height: 24px; font-size: 13px; }
.route .pin.charge i { border-color: var(--accent); background: var(--accent); color: #fff; }
.route .pin.end i { background: var(--ink); color: var(--bg); }
.route .pin b { display: block; color: var(--ink); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 18px; }
.stat { background: var(--bg); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 13px; }

/* Konfigurator */
.cfg { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; }
.cfg-stage { background: var(--stage); border-radius: 18px; padding: 34px 20px 14px; margin-bottom: 18px; }
.cfg-stage .car-svg { width: 100%; height: auto; display: block; }
.cfg h4 { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; font-weight: 600; }
.trims { display: grid; gap: 8px; }
.trim { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 12px 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.trim small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.trim[aria-pressed='true'] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 99px; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); padding: 0; transition: transform 0.15s; }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.08); }
.color-name { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.pkgs { display: grid; gap: 8px; }
.pkg { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; cursor: pointer; }
.pkg input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pkg div { flex: 1; font-size: 14.5px; }
.pkg small { display: block; color: var(--muted); font-size: 12.5px; }
.pkg b { font-weight: 600; font-size: 14px; white-space: nowrap; }
.delivery { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.delivery i { width: 10px; height: 10px; border-radius: 99px; background: var(--good); flex: none; }
.delivery.later i { background: var(--warn); }

/* Lager */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.stock-item { border: 1px solid var(--line); border-radius: 16px; padding: 12px; cursor: pointer; background: var(--surface); text-align: left; transition: border-color 0.15s, transform 0.2s; }
.stock-item:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stock-item .car-svg { width: 100%; height: auto; display: block; margin-bottom: 6px; }
.stock-item strong { display: block; font-size: 14.5px; }
.stock-item span { color: var(--muted); font-size: 13px; }
.stock-item em { font-style: normal; display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.factory { margin-top: 18px; display: grid; gap: 0; }
.factory div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.factory div:last-child { border-bottom: 0; }
.factory span { color: var(--muted); }

/* Historikk */
.hist { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; }
.cond { display: grid; gap: 10px; }
.cond div { display: grid; grid-template-columns: 80px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; }
.bar5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.bar5 i { height: 8px; border-radius: 3px; background: var(--bg-2); }
.bar5 i.on { background: var(--good); }
.bar5.mid i.on { background: color-mix(in oklab, var(--good) 50%, var(--warn)); }
.gauge { --p: 90; width: 108px; height: 108px; border-radius: 99px; display: grid; place-items: center; background: radial-gradient(closest-side, var(--surface) 80%, transparent 81% 100%), conic-gradient(var(--good) calc(var(--p) * 1%), var(--bg-2) 0); }
.gauge b { font-size: 24px; letter-spacing: -0.03em; }
.gauge small { display: block; font-size: 11px; color: var(--muted); text-align: center; margin-top: -2px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line-2); display: grid; gap: 14px; }
.timeline li { position: relative; font-size: 14.5px; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 99px; background: var(--surface); border: 2px solid var(--good); }
.timeline li.gap::before { border-color: var(--warn); background: var(--warn); }
.timeline li.owner::before { border-color: var(--muted); }
.timeline li.check::before { background: var(--accent); border-color: var(--accent); }
.timeline time { display: block; color: var(--muted); font-size: 12.5px; }
.timeline span { color: var(--muted); font-size: 13px; }

/* Eierkostnad */
.tco-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tco-row:last-of-type { border-bottom: 0; }
.tco-row strong { font-size: 14.5px; display: block; line-height: 1.25; }
.tco-row small { color: var(--muted); font-size: 12.5px; }
.stack { display: flex; height: 28px; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.stack i { display: block; height: 100%; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tco-total { text-align: right; white-space: nowrap; }
.tco-total b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.tco-total small { color: var(--muted); font-size: 12.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Ny mot brukt */
.nvu { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.nvu > div { background: var(--stage); border-radius: 18px; padding: 16px; cursor: pointer; }
.nvu .tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.nvu .car-svg { width: 100%; height: auto; display: block; margin: 6px 0; }
.nvu strong { font-size: 16px; display: block; }
.nvu span { color: var(--muted); font-size: 13px; }
.verdict { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); font-size: 16px; line-height: 1.45; }
.verdict b { color: var(--accent-ink); }

/* Spørsmål */
.q { display: flex; flex-direction: column; gap: 12px; }
.q p { margin: 0; font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; font-weight: 560; }
.q .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q .opts button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 10px 16px; font-size: 14.5px; transition: all 0.15s; }
.q .opts button:hover { border-color: var(--accent); background: var(--accent-soft); }
.block.question { background: transparent; border: 1px dashed var(--line-2); box-shadow: none; }

/* Selger */
.seller { display: flex; gap: 16px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 99px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 21px; letter-spacing: -0.02em; flex: none; position: relative; }
.avatar::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 99px; background: #2fbf71; border: 3px solid var(--surface); }
.seller strong { font-size: 19px; letter-spacing: -0.02em; display: block; }
.seller span { color: var(--muted); font-size: 14px; }
.brief { margin-top: 18px; background: var(--bg); border-radius: 16px; padding: 16px; }
.brief h5 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.brief ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.brief li { font-size: 13.5px; padding: 4px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.brief p { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.inline-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 160px; border: 1px solid var(--line-2); border-radius: 99px; padding: 10px 16px; background: var(--surface); font-size: 15px; }
.inline-form input:focus { outline: 0; border-color: var(--accent); }

/* Prøvekjøring */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.day h5 { margin: 0 0 8px; font-size: 14px; }
.day h5 span { color: var(--muted); font-weight: 450; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.times button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 7px 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.times button:hover { border-color: var(--accent); }
.times button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }

.note { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); align-items: flex-start; }
.note::before { content: 'i'; width: 22px; height: 22px; border-radius: 99px; background: var(--bg-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; font-family: var(--serif); font-style: italic; }

/* ---------- Skrivefelt nederst ---------- */
.composer {
  position: fixed; left: 0; right: 0; margin: 0 auto; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; width: min(760px, calc(100% - 32px));
  animation: rise 0.45s both;
}
.composer[hidden] { display: none; }
.composer .ask { max-width: none; box-shadow: var(--shadow-lg), 0 0 0 6px color-mix(in oklab, var(--bg) 70%, transparent); }
.composer .ask input { font-size: 16.5px; padding: 10px 0; }
.composer .ask .go { width: 44px; height: 44px; }
.composer .restart { position: absolute; right: 0; top: -38px; font-size: 13px; }

footer { max-width: 1240px; margin: 0 auto; padding: 30px 24px 120px; color: var(--muted); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .block.half { grid-column: span 12; }
  .spot, .split, .cfg, .hist { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding: 0 16px 150px; }
  .top { padding: 12px 16px; }
  .understood { padding: 8px 16px; top: 61px; }
  .demobar { padding: 7px 16px; }
  .brand-tag { display: none; }
  .top .btn .long { display: none; }
  .block { padding: 18px; border-radius: 20px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .ask { padding-left: 18px; }
  .ask input { font-size: 16px; }
  .hero .ask .go { width: 46px; height: 46px; }
  .cards { grid-template-columns: 1fr; }
  .nvu { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tco-row { grid-template-columns: 1fr auto; }
  .tco-row .stack { grid-column: 1 / -1; order: 3; }
  footer { padding: 30px 16px 120px; }
  .route .pin { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
