/* Riktigstrøm — styles
   Palett: varm porselen, dypt blekk, elektrisk rav. Geist + Geist Mono (selvhostet). */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --porcelain: #f5f2ec;
  --porcelain-2: #ece7de;
  --paper: #fffdf9;
  --ink: #0d1524;
  --ink-2: #1b2638;
  --ink-3: #2c3a52;
  --text: #0d1524;
  --muted: #545d6c;          /* 6.1:1 på porselen */
  --muted-2: #6b7382;        /* 4.6:1 på porselen */
  --line: #ddd6ca;
  --line-2: #cfc6b7;
  --amber: #f4a81d;          /* aksent: bakgrunn, aldri tekst på lyst */
  --amber-2: #ffc24d;
  --amber-ink: #7a4a00;      /* rav-tekst på lyst: 6.9:1 */
  --amber-wash: #fbecc9;
  --good: #1f6b4a;
  --error: #a3261b;
  --on-dark: #f5f2ec;
  --on-dark-muted: #a9b1bf;  /* 7.6:1 på blekk */

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-1: 0 1px 2px rgba(13, 21, 36, .06), 0 4px 16px rgba(13, 21, 36, .06);
  --shadow-2: 0 2px 6px rgba(13, 21, 36, .08), 0 24px 60px -12px rgba(13, 21, 36, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.028em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--amber-2); }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-feature-settings: normal; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(244, 168, 29, .18); }
.dark .eyebrow, .on-dark .eyebrow { color: var(--on-dark-muted); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: var(--paper);
  white-space: nowrap;
}
.tag--amber { background: var(--amber-wash); border-color: #f0d596; color: var(--amber-ink); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(13, 21, 36, .45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--amber { --bg: var(--amber); --fg: var(--ink); }
.btn--amber:hover { --bg: var(--amber-2); box-shadow: 0 10px 28px -10px rgba(244, 168, 29, .8); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 236, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -.03em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.header-nav { display: none; gap: 28px; font-size: 15px; }
.header-nav a { text-decoration: none; color: var(--ink-3); }
.header-nav a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) { .header-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); position: relative; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); font-weight: 620; letter-spacing: -.045em; line-height: .98; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .06em; height: .2em;
  background: var(--amber); z-index: -1; border-radius: 3px; opacity: .9;
}
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-3); max-width: 36ch; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { width: 18px; height: 18px; color: var(--good); flex: none; }

/* Address check */
.addr {
  margin-top: 28px; position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 10px;
  box-shadow: var(--shadow-1);
  max-width: 580px;
}
.addr-label { display: block; font-size: 14px; font-weight: 600; padding: 6px 10px 8px; }
.addr-row { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 560px) { .addr-row { flex-direction: row; flex-wrap: wrap; } .addr-row .addr-field { flex: 1 1 300px; } .addr-row .btn { flex: 1 0 auto; } }
.addr-field { position: relative; flex: 1; min-width: 0; }
.addr-field svg.pin { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.addr-input {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line-2);
  background: var(--porcelain); padding: 0 40px 0 44px; font-size: 16.5px;
  transition: border-color .2s, background-color .2s;
}
.addr-input::placeholder { color: var(--muted-2); }
.addr-input:hover { border-color: var(--muted-2); }
.addr-input:focus { outline: none; border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 4px rgba(13, 21, 36, .08); }
.addr-spinner { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin .7s linear infinite; display: none; }
.addr.is-loading .addr-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.addr-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-2); padding: 6px; max-height: 320px; overflow: auto;
}
.addr-list[hidden] { display: none; }
.addr-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.addr-list li strong { font-weight: 600; font-size: 15.5px; }
.addr-list li span { font-size: 13.5px; color: var(--muted); }
.addr-list li[aria-selected="true"], .addr-list li:hover { background: var(--porcelain); }
.addr-list li.addr-empty { cursor: default; color: var(--muted); font-size: 14.5px; }
.addr-status { min-height: 0; font-size: 14px; padding: 0 10px; color: var(--muted); }
.addr-status:not(:empty) { padding: 10px 10px 4px; }
.addr-verified { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); }
.addr-verified svg { width: 16px; height: 16px; color: var(--good); }
.addr-note { font-size: 12.5px; color: var(--muted); padding: 8px 10px 4px; }
.addr-note a { color: var(--muted); }

/* hero visual */
.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--ink-2); box-shadow: var(--shadow-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,21,36,0) 55%, rgba(13,21,36,.35)); }
.photo-credit { position: absolute; right: 14px; top: 14px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(245,242,236,.85); background: rgba(13,21,36,.45); padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
@media (max-width: 979px) { .hero-photo { aspect-ratio: 5 / 4; } }

.offer-card {
  position: absolute; z-index: 3; left: clamp(-40px, -3vw, -12px); bottom: 28px;
  width: min(330px, 86%);
  background: rgba(255, 253, 249, .96); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 14px;
  box-shadow: var(--shadow-2);
  animation: floaty 7s ease-in-out infinite;
}
@media (max-width: 979px) { .offer-card { position: relative; left: auto; bottom: auto; width: auto; margin: -72px 14px 0; animation: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.offer-title { font-weight: 600; font-size: 15px; }
.offer-rows { display: grid; gap: 7px; font-size: 14px; }
.offer-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 7px; }
.offer-row span:first-child { color: var(--muted); }
.offer-row .mono { font-weight: 500; }
.offer-foot { margin-top: 10px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.offer-spark { height: 38px; margin: 4px 0 10px; color: var(--amber); }

/* ---------- Supplier strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip .wrap { padding-top: 22px; padding-bottom: 22px; display: grid; gap: 12px; }
@media (min-width: 980px) { .strip .wrap { grid-template-columns: 240px 1fr; align-items: center; gap: 32px; } }
.strip-label { font-size: 14px; color: var(--muted); line-height: 1.4; }
.strip-names { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.strip-names li { font-size: clamp(17px, 1.8vw, 21px); font-weight: 560; letter-spacing: -.025em; color: var(--ink-3); }
.strip-names li.strip-local { font-weight: 400; color: var(--muted); font-size: 16px; }
.strip-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.04em; }
.section-head p { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-3); max-width: 60ch; }
.num { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

/* Steps */
.how-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) { .how-grid { grid-template-columns: .9fr 1.1fr; } }
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--amber-ink); padding-top: 4px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; letter-spacing: -.02em; }
.steps p { color: var(--ink-3); font-size: 16px; }

.film {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink);
  aspect-ratio: 16 / 10; box-shadow: var(--shadow-2);
}
.film video, .film img { width: 100%; height: 100%; object-fit: cover; }
.film-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; color: var(--on-dark);
  background: linear-gradient(0deg, rgba(13,21,36,.8), rgba(13,21,36,0)); display: flex; justify-content: space-between; align-items: end; gap: 12px; font-size: 14px;
}
.film-caption .mono { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.film-toggle {
  position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(13,21,36,.55); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px);
}
.film-toggle svg { width: 16px; height: 16px; }

/* Why cards */
.why-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; } .why-card--photo { grid-row: span 2; } }
.why-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.why-card h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.why-card p { color: var(--ink-3); font-size: 16px; }
.why-card .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--porcelain); display: grid; place-items: center; color: var(--ink); }
.why-card .icon svg { width: 20px; height: 20px; }
.why-card--photo { padding: 0; overflow: hidden; background: var(--ink); color: var(--on-dark); position: relative; min-height: 420px; justify-content: flex-end; }
.why-card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-card--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,21,36,0) 30%, rgba(13,21,36,.92) 85%); }
.why-card--photo .inner { position: relative; z-index: 2; padding: 26px; display: grid; gap: 10px; }
.why-card--photo p { color: #d7dce4; }
.mini-formula { font-family: var(--mono); font-size: 12.5px; background: var(--porcelain); border-radius: 10px; padding: 12px 14px; color: var(--ink-2); line-height: 1.7; }
.mini-formula b { font-weight: 600; color: var(--ink); }
.source-note { margin-top: 20px; font-size: 14.5px; color: var(--muted); max-width: 70ch; }

/* Dark band */
.band { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.band-bg { position: absolute; inset: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .9; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,21,36,.96) 0%, rgba(13,21,36,.82) 45%, rgba(13,21,36,.35) 100%); }
.band .wrap { position: relative; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.band h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -.04em; max-width: 16ch; margin: 16px 0 14px; }
.band p.lede { color: var(--on-dark-muted); max-width: 48ch; font-size: 1.08rem; }
.band .addr { background: rgba(255,253,249,.06); border-color: rgba(245,242,236,.16); box-shadow: none; }
.band .addr-label { color: var(--on-dark); }
.band .addr-input { background: rgba(255,253,249,.96); border-color: transparent; color: var(--ink); }
.band .addr-status, .band .addr-note, .band .addr-note a { color: var(--on-dark-muted); }
.band .addr-verified { color: var(--on-dark); }
.band .addr-verified svg { color: #7ad3a5; }

/* Calculator */
.calc { display: grid; gap: 20px; }
@media (min-width: 980px) { .calc { grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; } .calc .panel--dark { position: sticky; top: calc(var(--header-h) + 20px); } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.panel--dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.fieldset:last-child { margin-bottom: 0; }
.fieldset legend, .field-label { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; display: block; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--paper); font-size: 15px; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.seg label:hover span { border-color: var(--ink-3); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.seg input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.range-row { display: grid; gap: 8px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-top output { font-family: var(--mono); font-size: 15px; font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); margin-top: -9px; box-shadow: 0 2px 6px rgba(13,21,36,.2); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.range-hint { font-size: 13px; color: var(--muted); }
.calc-result { display: flex; flex-direction: column; gap: 20px; }
.calc-result .big { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-feature-settings: "tnum"; }
.calc-result .unit { font-size: 1.1rem; font-weight: 500; color: var(--on-dark-muted); letter-spacing: -.01em; margin-left: 6px; }
.res-label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 8px; }
.res-rows { display: grid; gap: 0; border-top: 1px solid rgba(245,242,236,.14); }
.res-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(245,242,236,.14); font-size: 15.5px; }
.res-row span:first-child { color: #d7dce4; }
.res-row .mono { font-weight: 500; }
.res-row.total { font-weight: 600; }
.res-row.total .mono { color: var(--amber-2); }
.estimate-flag { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--on-dark-muted); border: 1px solid rgba(245,242,236,.2); padding: 6px 10px; border-radius: 10px; align-self: flex-start; }
.calc-foot { font-size: 13px; color: var(--on-dark-muted); line-height: 1.5; }
.checkbox-inline { display: flex; gap: 10px; align-items: center; font-size: 14.5px; margin-top: 4px; }
.checkbox-inline input { width: 20px; height: 20px; accent-color: var(--ink); }

/* Compare table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15.5px; }
.compare caption { text-align: left; padding: 18px 22px; font-size: 14px; color: var(--muted); caption-side: bottom; border-top: 1px solid var(--line); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.compare thead td { background: var(--porcelain); border-bottom-color: var(--line-2); }
.compare thead th { font-size: 1.15rem; letter-spacing: -.02em; font-weight: 600; background: var(--porcelain); border-bottom-color: var(--line-2); }
.compare thead th .tag { margin-left: 8px; vertical-align: middle; }
.compare tbody th { font-weight: 500; color: var(--muted); font-size: 14.5px; width: 22%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.example-box { margin-top: 18px; display: grid; gap: 12px; background: var(--amber-wash); border: 1px solid #f0d596; border-radius: var(--radius); padding: 20px 22px; }
@media (min-width: 760px) { .example-box { grid-template-columns: auto 1fr; align-items: center; gap: 22px; } }
.example-box p { font-size: 15.5px; color: var(--ink-2); }

/* FAQ */
.faq-grid { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 980px) { .faq-grid { grid-template-columns: .75fr 1.25fr; align-items: start; } .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq-grid .section-head { align-content: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: transform .25s var(--ease), background-color .2s; }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-item summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.faq-item[open] summary .plus { background: var(--ink); border-color: var(--ink); }
.faq-item[open] summary .plus::before, .faq-item[open] summary .plus::after { background: var(--on-dark); }
.faq-item[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 0 24px; color: var(--ink-3); display: grid; gap: 12px; max-width: 68ch; font-size: 16px; }
.faq-body ul { padding-left: 20px; display: grid; gap: 6px; }
.faq-body .checked { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Final CTA */
.final { padding: clamp(64px, 9vw, 120px) 0; }
.final-card { background: var(--paper); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; gap: 28px; position: relative; overflow: hidden; }
@media (min-width: 980px) { .final-card { grid-template-columns: 1fr 1fr; align-items: center; } }
.final-card h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.04em; margin: 14px 0 12px; }
.final-card .addr { margin-top: 0; }
.final-glow { position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(244,168,29,.28), rgba(244,168,29,0) 65%); pointer-events: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14.5px; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .logo { color: var(--on-dark); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.site-footer .link-btn { color: var(--on-dark); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(245,242,236,.14); display: grid; gap: 8px; font-size: 13px; }
.footer-h { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 12px; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 242, 236, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s var(--ease);
  display: flex; gap: 12px; align-items: center;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta p { font-size: 13px; line-height: 1.3; color: var(--ink-3); flex: 1; }
.sticky-cta .btn { flex: none; min-height: 48px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Modal / lead flow ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13, 21, 36, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ease); }
.modal.is-visible .modal-backdrop { opacity: 1; }
.modal-panel {
  position: absolute; inset: 0; background: var(--porcelain); display: flex; flex-direction: column;
  transform: translateY(24px); opacity: 0; transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.modal.is-visible .modal-panel { transform: none; opacity: 1; }
@media (min-width: 760px) {
  .modal-panel { inset: auto; left: 50%; top: 50%; width: min(640px, calc(100vw - 48px)); max-height: min(820px, calc(100vh - 48px)); height: auto; border-radius: 28px; transform: translate(-50%, calc(-50% + 24px)); box-shadow: 0 40px 120px -20px rgba(0,0,0,.45); }
  .modal.is-visible .modal-panel { transform: translate(-50%, -50%); }
}
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.modal-top .logo { font-size: 16px; }
.modal-top .logo-mark { width: 24px; height: 24px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--porcelain-2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[hidden] { display: none; }
.progress { padding: 0 20px; }
.progress-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.progress-bar { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .35s var(--ease); }
.modal-body { flex: 1; overflow-y: auto; padding: 24px 20px 20px; -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) { .modal-body { padding: 28px 32px 24px; } .progress { padding: 0 32px; } }
.step { display: none; }
.step.is-active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: clamp(1.5rem, 4.5vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 8px; }
.step .step-lede { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.options { display: grid; gap: 8px; }
.options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.opt span {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; border-radius: 14px;
  background: var(--paper); border: 1.5px solid var(--line); font-size: 16px; font-weight: 500; line-height: 1.25;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.opt span small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.opt span .box { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .15s; }
.opt input[type="checkbox"] + span .box { border-radius: 6px; }
.opt span .box::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-dark); transform: scale(0); transition: transform .15s; }
.opt input[type="checkbox"] + span .box::after { width: 10px; height: 6px; border-radius: 0; background: transparent; border-left: 2px solid var(--on-dark); border-bottom: 2px solid var(--on-dark); transform: rotate(-45deg) scale(0); margin-top: -2px; }
.opt:hover span { border-color: var(--line-2); }
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:checked + span .box { background: var(--ink); border-color: var(--ink); }
.opt input:checked + span .box::after { transform: scale(1); }
.opt input[type="checkbox"]:checked + span .box::after { transform: rotate(-45deg) scale(1); }
.opt input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.group-label { font-weight: 600; font-size: 15px; margin: 22px 0 10px; }
.group-label:first-child { margin-top: 0; }
.tabs { display: inline-flex; background: var(--porcelain-2); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500; cursor: pointer; min-height: 38px; }
.tabs button[aria-selected="true"] { background: var(--paper); box-shadow: var(--shadow-1); }
.prefill-note { display: flex; gap: 10px; align-items: flex-start; background: var(--amber-wash); border: 1px solid #f0d596; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 16px; }
.addr-confirm { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 4px; margin-bottom: 14px; }
.addr-confirm strong { font-size: 1.1rem; }
.addr-confirm .meta { font-size: 14px; color: var(--muted); }
.area-pick { margin-top: 14px; display: grid; gap: 8px; font-size: 14.5px; }
.area-pick select { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); padding: 0 12px; }

.form-grid { display: grid; gap: 14px; }
@media (min-width: 520px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input {
  min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); padding: 0 14px; font-size: 16.5px;
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13,21,36,.08); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 13.5px; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.consent { display: grid; gap: 12px; margin-top: 18px; }
.consent-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.consent-item input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent-item.is-invalid { border-color: var(--error); }
.consent-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.privacy-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.privacy-line svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.modal-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--porcelain); display: flex; gap: 10px; align-items: center; }
@media (min-width: 760px) { .modal-foot { padding: 16px 32px 20px; border-radius: 0 0 28px 28px; } }
.modal-foot .btn { flex: 1; }
.modal-foot .btn--ghost { flex: none; }
.modal-foot[hidden] { display: none; }
.form-error { color: var(--error); font-size: 14px; margin-top: 12px; }
.form-error:empty { display: none; }

.success { text-align: left; }
.success-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--amber-2); display: grid; place-items: center; margin-bottom: 18px; }
.success-icon svg { width: 26px; height: 26px; }
.next-list { list-style: none; display: grid; gap: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.next-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.next-list li b { display: block; font-weight: 600; margin-bottom: 2px; }
.next-list .n { font-family: var(--mono); font-size: 13px; color: var(--amber-ink); padding-top: 2px; }
.ref { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* Cookie banner */
.cookie {
  position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2);
  padding: 16px; max-width: 460px; display: none;
}
.cookie.is-open { display: block; }
@media (min-width: 760px) { .cookie { left: auto; right: 24px; bottom: 24px; padding: 20px; } }
.cookie h2 { font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: 4px; }
.cookie p { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie-actions .btn { flex: 1 1 auto; min-height: 44px; font-size: 14.5px; padding: 0 12px; }
.cookie-prefs { display: none; margin-top: 12px; gap: 8px; }
.cookie.show-prefs .cookie-prefs { display: grid; }
.cookie-pref { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.cookie-pref small { display: block; color: var(--muted); font-size: 12.5px; }
.cookie-pref input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }

/* Legal/simple pages */
.page { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.04em; margin: 14px 0 20px; }
.page h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 36px 0 10px; }
.page p, .page li { color: var(--ink-3); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }

/* Reveal on scroll (progressiv forbedring) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .offer-card { animation: none; } }

/* Tabell på mobil */
.swipe-hint { display: none; font-family: var(--mono); font-size: 12px; color: var(--muted); margin: -8px 0 10px; }
@media (max-width: 759px) {
  .swipe-hint { display: block; }
  .compare tbody th, .compare thead td { position: sticky; left: 0; z-index: 1; background: var(--paper); width: 120px; min-width: 120px; box-shadow: 1px 0 0 var(--line); }
  .compare thead td { background: var(--porcelain); }
  .compare { min-width: 640px; font-size: 14.5px; }
  .compare th, .compare td { padding: 14px 16px; }
}
.table-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.example-box .tag { justify-self: start; }
@media (max-width: 559px) {
  .film { aspect-ratio: 4 / 3; }
  .film-caption { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; }
}
