@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  interpolate-size: allow-keywords;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --paper: #f3f0e8;
  --paper-2: #e9e4d8;
  --card: #fbfaf6;
  --ink: #15171a;
  --ink-2: #3a3f44;
  --muted: #6a6e72;
  --line: #d5cfc1;
  --signal: #d4461a;
  --signal-dark: #b23a14;
  --green: #2d6a49;
  --radius: 6px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
}

/* Lange norske sammensatte ord: del dem pent i stedet for å flyte over */
p, li, td, th, dd, .spec, .lead, summary {
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
  overflow-wrap: break-word;
}
p { max-width: 68ch; }

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--signal-dark); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.025em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--signal); border-radius: 50%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.btn svg { width: 16px; height: 16px; }

/* Stage: hero + contents with sticky 3D view */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: clamp(24px, 4vw, 64px);
}
.stage__copy { min-width: 0; }
.stage__view { position: relative; }
.view-sticky {
  position: sticky; top: calc(var(--header-h) + 8px);
  height: calc(100svh - var(--header-h) - 16px);
  min-height: 460px; max-height: 820px;
}
.view-sticky canvas { width: 100%; height: 100%; touch-action: pan-y; opacity: 0; transition: opacity 0.6s; }
.view-sticky.is-ready canvas { opacity: 1; }
.view-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.4s; pointer-events: none; }
.view-fallback img { width: 100%; height: 100%; object-fit: contain; }
.view-sticky.is-ready .view-fallback { opacity: 0; }
.view-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 0.8rem; color: var(--muted); white-space: nowrap; transition: opacity 0.4s;
}
.view-sticky.is-open .view-hint { opacity: 0; }

.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding-block: 48px 64px;
}
.hero h1 { max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--signal); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--ink-2); }
.facts strong { display: block; font-size: 1.6rem; font-weight: 750; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }

/* Packing list */
.contents { padding-block: 32px 120px; }
.contents h2 { margin-bottom: 14px; }
.contents > p { color: var(--ink-2); max-width: 46ch; }

/* Pakkevelger */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.packs button {
  display: grid; place-content: center; gap: 2px; padding: 10px 6px;
  min-height: 60px; border: 0; border-left: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font: inherit; font-size: 0.98rem; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.packs button:first-child { border-left: 0; }
.packs button strong { font-size: 1.15rem; color: var(--ink); margin-right: 2px; }
.packs__price { font-size: 0.85rem; color: var(--muted); }
.packs button[aria-selected="true"] .packs__price { color: #c9c6be; }
.packs button:hover { background: var(--paper-2); }
.packs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.packs button[aria-selected="true"] strong { color: var(--paper); }
.buy {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.buy__text { display: grid; gap: 2px; }
.buy__price { font-size: 1.7rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.buy__meta { font-size: 0.88rem; color: var(--muted); }
.btn--buy { background: var(--signal); border-color: var(--signal); color: #fff; min-width: 170px; }
.btn--buy:hover { background: var(--ink); border-color: var(--ink); }
.btn--buy[aria-disabled="true"] { cursor: not-allowed; }
.buy + .slip { margin-top: 16px; }
.assure { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); list-style: none; font-size: 0.85rem; color: var(--ink-2); }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translateY(-2px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.point { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink); }
.point .num { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.point .num small { font-size: 1rem; font-weight: 600; margin-left: 6px; color: var(--muted); }
.point p { color: var(--ink-2); }

.evening { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 24px; }
.evening__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.evening__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.evening__col { padding: clamp(20px, 3vw, 32px); background: var(--paper-2); }
.evening__col--ready { background: var(--ink); color: var(--paper); }
.evening__label { display: block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; color: var(--muted); }
.evening__col--ready .evening__label { color: #e9a184; }
.evening ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.evening li { padding-left: 22px; position: relative; color: var(--ink-2); }
.evening li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--muted); }
.evening__col--ready li { color: #e7e3da; }
.evening__col--ready li::before { background: var(--signal); }
.evening .btn { justify-self: start; }
.evening__note { color: var(--ink-2); max-width: 70ch; }
.slip + .slip { margin-top: 16px; }
.slip[hidden] { display: none; }

.compare { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 0.95rem; }
.compare caption { text-align: left; font-weight: 700; font-size: 1.15rem; padding-bottom: 12px; letter-spacing: -0.01em; }
.compare th, .compare td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { border-bottom: 1.5px solid var(--ink); font-size: 0.9rem; white-space: nowrap; }
.compare tbody th { font-weight: 500; color: var(--ink-2); width: 36%; }
.compare td { font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) {
  .compare { font-size: 0.85rem; }
  .compare th, .compare td { padding: 10px 4px; white-space: normal; }
  .packs button { font-size: 0.9rem; }
}

.slip { margin-top: 32px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.slip__head, .slip__foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 18px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
}
.slip__head { border-bottom: 1.5px solid var(--ink); }
.slip__foot { border-top: 1px dashed var(--line); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.85rem; }
.slip ol { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.slip li {
  counter-increment: item;
  display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px;
  padding: 14px 18px; border-top: 1px solid var(--line); cursor: default;
  transition: background 0.15s;
}
.slip li:first-child { border-top: 0; }
.slip li::before { content: counter(item, decimal-leading-zero); color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.slip li:hover, .slip li.is-active { background: var(--paper-2); }
.slip li:hover::before, .slip li.is-active::before { color: var(--signal); }
.slip .name { font-weight: 650; }
.slip .spec { grid-column: 2 / 4; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.slip .qty { font-weight: 650; white-space: nowrap; }

/* Generic sections */
.section { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 16px; max-width: 720px; margin-bottom: 48px; }
.section__head p { color: var(--ink-2); font-size: 1.1rem; max-width: 58ch; }
.section__head--flush { margin-bottom: 0; }
.more { margin-top: 28px; font-weight: 600; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.need { padding: 26px 22px 28px; display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--line); }
.need:first-child { border-left: 0; }
.need .num { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.need .num small { font-size: 1rem; font-weight: 600; margin-left: 4px; }
.need p { color: var(--ink-2); font-size: 0.97rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; padding-top: 18px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); font-weight: 750; color: var(--signal); font-size: 0.95rem; }
.steps p { color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split p + p { margin-top: 14px; }
.split .ink-box { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.split .ink-box p { color: #c9c6be; }
.split .ink-box .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); justify-self: start; }
.split .ink-box .btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 2px; font-weight: 650; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform 0.2s; color: var(--muted); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2px 24px; color: var(--ink-2); max-width: 68ch; }
.faq .answer p + p { margin-top: 10px; }

/* Footer */
.site-footer { padding-block: 48px 64px; font-size: 0.92rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: start; }

/* Article pages (guide, privacy) */
.article { padding-block: clamp(48px, 8vw, 96px) 96px; }
.article .wrap { max-width: 820px; }
.article header { display: grid; gap: 18px; margin-bottom: 40px; }
.article h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 56px 0 16px; }
.article p, .article li { color: var(--ink-2); }
.article p + p { margin-top: 14px; }
.article ul { padding-left: 1.2em; }
.article li + li { margin-top: 6px; }
.meta { font-size: 0.9rem; color: var(--muted); }

.checklist { list-style: none; padding: 0 !important; margin: 0; border-top: 1.5px solid var(--ink); }
.checklist li { margin: 0 !important; border-bottom: 1px solid var(--line); }
.checklist label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 14px 2px; cursor: pointer; color: var(--ink); }
.checklist input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--signal); }
.checklist .note { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.checklist input:checked + span { color: var(--muted); }
.checklist input:checked + span strong { text-decoration: line-through; text-decoration-thickness: 1.5px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.progress { font-size: 0.95rem; color: var(--ink-2); }

.callout { margin-top: 56px; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); background: var(--card); display: grid; gap: 14px; }
.callout h2 { margin: 0; }
.callout .btn { justify-self: start; }

.sources { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.sources h2 { font-size: 1rem; margin: 0 0 10px; letter-spacing: 0; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need:nth-child(3) { border-left: 0; }
  .need:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --header-h: 58px; }
  .nav a:not(.btn) { display: none; }
  .stage { display: flex; flex-direction: column; }
  .stage__copy { display: contents; }
  /* Esken vises rett under ingressen på mobil */
  .hero { display: contents; }
  .hero .eyebrow { order: 1; margin-top: 32px; align-self: flex-start; }
  .hero h1 { order: 2; margin-top: 16px; }
  .hero .lead { order: 3; margin-top: 16px; }
  .stage__view { order: 4; margin-inline: calc(var(--gutter) * -1); }
  .hero__actions { order: 5; margin-top: 4px; }
  .facts { order: 6; margin-top: 28px; }
  .contents { order: 7; padding-block: 56px 72px; }
  .view-sticky { position: relative; top: 0; height: min(96vw, 520px); min-height: 0; }
  .view-hint { bottom: 6px; }
  .steps, .grid-3, .evening__cols { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .need { border-left: 0; border-top: 1px solid var(--line); }
  .need:first-child { border-top: 0; }
  .slip li { padding: 13px 14px; grid-template-columns: 1.9rem minmax(0, 1fr) auto; }
  .slip__head, .slip__foot { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .toolbar, .callout, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .article { padding: 0; }
  .checklist label { padding: 6px 0; }
}

/* Rolig inngang ved rulling (kun med JavaScript) */
.reveal { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* Ny pakkliste glir inn ved bytte */
@keyframes slip-in { from { opacity: 0; transform: translateY(8px); } }
.slip.is-entering { animation: slip-in 0.35s var(--ease-out); }

/* Spørsmål åpnes mykt der nettleseren støtter det */
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

.btn { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

@media (max-width: 520px) {
  h1, h2 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 5 5; }
  .compare thead th { white-space: normal; }
}

/* Tidslinje (strømbruddguide) */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline > li { position: relative; padding: 0 0 32px 28px; margin: 0 !important; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: 0.35em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline > li:last-child { padding-bottom: 4px; }
.timeline__when { display: block; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-dark); margin-bottom: 4px; }
.timeline h3 { margin-bottom: 8px; }
.timeline ul { margin-top: 8px; }
.src { font-size: 0.85rem; color: var(--muted); }
.src a { color: inherit; }
.factbox { margin-top: 24px; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); background: var(--card); }
.factbox h3 { margin-bottom: 8px; }
.factbox p + p { margin-top: 10px; }
.factbox--wide { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 4px; }

/* Kalkulator */
.nav a.nav__calc { color: var(--ink); font-weight: 650; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }

.calc-intro { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.calc-intro h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 18ch; }
.calc-intro .lead { max-width: 52ch; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.calc > *, .calc__result > *, .res-card > * { min-width: 0; }

.calc__form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 1px 0 rgba(21, 23, 26, 0.04), 0 12px 32px -18px rgba(21, 23, 26, 0.18); }
.calc__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__group + .calc__group { margin-top: 28px; }
.calc__group legend { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; padding: 0; }

.stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stepper:last-child { border-bottom: 0; }
.stepper__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--ink-2); }
.stepper__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.stepper__label { display: grid; gap: 1px; min-width: 0; }
.stepper__label strong { font-size: 1.02rem; }
.stepper__label span { font-size: 0.85rem; color: var(--muted); }
.stepper__ctrl { display: flex; align-items: center; gap: 4px; background: var(--paper); border-radius: 999px; padding: 4px; }
.stepper__btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink);
  font: inherit; font-size: 1.25rem; font-weight: 500; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 2px rgba(21, 23, 26, 0.12);
  transition: background 0.15s, color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.stepper__btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.stepper__btn:active:not(:disabled) { transform: scale(0.92); }
.stepper__btn:disabled { opacity: 0.35; box-shadow: none; cursor: default; }
.stepper__value { min-width: 2.4ch; text-align: center; font-size: 1.2rem; font-weight: 750; font-variant-numeric: tabular-nums; }
@keyframes bump { 45% { transform: scale(1.25); } }
.stepper__value.is-bump { display: inline-block; animation: bump 0.25s var(--ease-out); }

.choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.choice:last-child { border-bottom: 0; }
.choice__q { font-weight: 600; font-size: 0.98rem; }
.seg { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; gap: 2px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; min-width: 56px; padding: 7px 16px; border-radius: 999px; text-align: center; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); transition: background 0.18s, color 0.18s, box-shadow 0.18s; }
.seg input:checked + span { background: var(--ink); color: var(--paper); box-shadow: 0 1px 3px rgba(21, 23, 26, 0.25); }
.seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.calc__note { margin-top: 18px; font-size: 0.84rem; color: var(--muted); }

.calc__result { display: grid; gap: 12px; }
.res-card { border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(21, 23, 26, 0.04), 0 18px 40px -22px rgba(21, 23, 26, 0.3); }
.res-top { background: var(--ink); color: var(--paper); padding: clamp(20px, 3vw, 28px); display: grid; gap: 16px; }
.res-head { display: grid; gap: 6px; }
.res-kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #f0a27f; }
.res-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--paper); }
.res-packs { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.res-pack { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.res-pack__qty { font-weight: 750; color: #f0a27f; font-variant-numeric: tabular-nums; }
.res-pack__name { font-weight: 600; }
.res-pack__price { font-variant-numeric: tabular-nums; color: #d9d5cc; }
.res-pack__note { padding: 10px 0 0; font-size: 0.85rem; color: #b8b4ab; }
.res-total { display: flex; justify-content: space-between; align-items: baseline; }
.res-total span { font-weight: 600; color: #c9c6be; }
.res-total strong { font-size: clamp(1.9rem, 3vw, 2.3rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.res-cta { width: 100%; }
.res-top .btn--buy:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.res-body { padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
.res-sub { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.res-sub + * { margin-top: -4px; }
.res-needs { list-style: none; margin: 0; padding: 0; }
.need-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.need-row:last-child { border-bottom: 0; }
.need-row__what { display: grid; gap: 1px; }
.need-row__what strong { font-weight: 650; }
.need-row__what span { font-size: 0.86rem; color: var(--muted); }
.need-row__has { text-align: right; font-weight: 600; font-size: 0.94rem; }
.need-row__has small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.need-row .ok { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.68rem; font-weight: 750; vertical-align: 1px; }
.res-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: todo; }
.res-todo li { counter-increment: todo; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; font-size: 0.94rem; }
.res-todo li::before { content: counter(todo); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 0.78rem; font-weight: 750; color: var(--ink-2); }
.res-todo strong { font-weight: 650; }
.res-todo span { color: var(--ink-2); }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.res-status { font-size: 0.86rem; color: var(--green); }

.calc-bar { display: none; }

.calc-teaser { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border: 1px dashed var(--ink-2); border-radius: var(--radius); }
.calc-teaser p { font-weight: 600; }

@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .nav a.nav__calc { display: inline; }
  .brand { white-space: nowrap; }
  .calc-bar {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--ink); color: var(--paper);
    box-shadow: 0 12px 30px -10px rgba(21, 23, 26, 0.5);
    transform: translateY(140%); transition: transform 0.35s var(--ease-out);
  }
  .calc-bar.is-on { transform: none; }
  .calc-bar__text { display: grid; line-height: 1.15; }
  .calc-bar__text > span { font-size: 0.78rem; color: #c9c6be; }
  .calc-bar__text strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
  .calc-bar .btn { min-height: 44px; }
}

@media (max-width: 520px) {
  .choice { grid-template-columns: minmax(0, 1fr); }
  .seg { justify-self: start; }
  .stepper { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .stepper__icon { width: 36px; height: 36px; }
}

@media (max-width: 420px) {
  .site-header .wrap { gap: 10px; }
  .brand { font-size: 0.98rem; gap: 8px; }
  .brand svg { width: 22px; height: 22px; }
  .nav { gap: 14px; }
  .nav .btn--small { padding: 0 12px; }
}

@media print {
  .calc-intro, .calc__form, .res-actions, .res-cta, .calc__result > .src, .calc-bar { display: none !important; }
  .res-top { background: none; color: var(--ink); padding: 0; }
  .res-head h2 { color: var(--ink); }
  .calc { display: block; }
  .res-card { border: 0; padding: 0; }
}

/* Annonsemerking (agentmodell) */
.buy__meta strong { font-weight: 650; color: var(--ink); }
.buy__ad { flex-basis: 100%; font-size: 0.82rem; color: var(--muted); margin: 0; }
.ad-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); }
.buy__code strong { color: var(--ink); }
.btn--buy[aria-disabled="true"] { opacity: 0.55; }
.res-seller { margin: -6px 0 0; font-size: 0.85rem; color: #c9c6be; }
