/* flerevurderinger.dk: one stylesheet for every page. Tokens first, then components in page order. */

/* Fonts: self-hosted (@fontsource, OFL). Fallbacks are metric-matched to limit layout shift on swap. */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Times New Roman"), local("Times"), local("Liberation Serif");
  size-adjust: 85%; ascent-override: 116%; descent-override: 36%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107%; ascent-override: 97%; descent-override: 24%; line-gap-override: 0%;
}

:root {
  --paper: #F6F4EF;
  --paper-2: #EEEBE3;
  --card: #FBFAF7;
  --ink: #0F1720;
  --ink-2: #4A5560;
  --line: #DAD6CC;
  --accent: #1F6B4F;
  --accent-hover: #17543E;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(31, 107, 79, .09);
  --accent-line: rgba(31, 107, 79, .35);
  --warn: #B4442F;
  --warn-soft: rgba(180, 68, 47, .09);
  --grey: #7A848D;
  --shadow: 0 1px 2px rgba(15, 23, 32, .04), 0 12px 32px -12px rgba(15, 23, 32, .14);
  --header-bg: rgba(246, 244, 239, .78);

  --serif: "Instrument Serif", "Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --fs-small: .9375rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + .55vw, 1.4375rem);
  --fs-h1: clamp(2.6rem, 1.55rem + 4.9vw, 5.6rem);
  --fs-h2: clamp(2.15rem, 1.45rem + 3vw, 3.9rem);
  --fs-h3: clamp(1.45rem, 1.25rem + .8vw, 1.9rem);

  --gutter: clamp(1.25rem, .6rem + 3vw, 3rem);
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C1117;
    --paper-2: #10171F;
    --card: #131B24;
    --ink: #F2EFE8;
    --ink-2: #A9B2BA;
    --line: #26313C;
    --accent: #4FB68D;
    --accent-hover: #6CC9A2;
    --on-accent: #0C1117;
    --accent-soft: rgba(79, 182, 141, .1);
    --accent-line: rgba(79, 182, 141, .4);
    --warn: #E58A73;
    --warn-soft: rgba(229, 138, 115, .1);
    --grey: #8B949C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --header-bg: rgba(12, 17, 23, .78);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
strong { font-weight: 600; }
[hidden] { display: none !important; }
main:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Typography */
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); margin-top: 1.25rem; max-width: 40ch; }
.body-lg { font-size: var(--fs-lead); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--ink-2); }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }
.center-text { text-align: center; margin-inline: auto; }

/* Sections */
.section { padding-block: var(--section); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head.center { max-width: 52rem; }

.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split-aside { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .split .section-head { margin-bottom: 0; }
}

/* Buttons */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.5rem;
  border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.25rem; height: 1.25rem; flex: none; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:hover .icon { transform: translateX(2px) rotate(-6deg); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: var(--accent); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); box-shadow: 0 14px 28px -12px var(--accent); }
.btn-secondary { --btn-bd: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn-secondary:hover { --btn-bd: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.btn-sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .9375rem; }
.btn-lg { min-height: 60px; padding: 1rem 2rem; font-size: 1.0625rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-row.center { justify-content: center; margin-top: 2rem; }
@media (max-width: 479px) {
  .cta-row .btn { flex: 1 1 100%; }
}

.text-link {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  color: var(--ink-2); font-weight: 500; text-decoration: none;
}
.text-link .icon { width: 1.05rem; height: 1.05rem; transition: transform .35s var(--ease); }
.text-link .icon-down { transform: rotate(90deg); }
.text-link:hover { color: var(--accent); }
.text-link:hover .icon-down { transform: rotate(90deg) translateX(3px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
  transition: height .4s var(--ease);
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .header-inner { height: 60px; }

.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  min-height: 44px;
}
.wordmark:hover { color: var(--ink); }
.mark { width: 30px; height: 30px; flex: none; }
.mark-bg { fill: var(--accent); }
.mark-fg { stroke: var(--on-accent); }

.site-nav { margin-left: auto; display: none; }
.site-nav ul { display: flex; gap: .25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 999px;
  transition: color .25s, background-color .25s;
}
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.header-cta { margin-left: auto; }
@media (min-width: 960px) {
  .site-nav { display: block; }
  .header-cta { margin-left: 0; }
}
@media (max-width: 399px) {
  .header-cta { padding: 0; width: 44px; }
  .header-cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wordmark { font-size: 1.3rem; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 7rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow {
  position: absolute; inset: -30% -20% -10% -20%;
  background:
    radial-gradient(40% 45% at 78% 28%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(35% 40% at 18% 72%, rgba(196, 160, 98, .16), transparent 70%),
    radial-gradient(30% 35% at 60% 85%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  filter: blur(10px);
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("../img/grain.svg");
  background-size: 240px;
  opacity: .22; mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  .hero-grain { opacity: .5; mix-blend-mode: soft-light; }
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(-4%, 3%, 0) rotate(6deg) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) rotate(-4deg) scale(1.02); }
}
.hero-inner { position: relative; }

.status-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem .4rem .75rem; margin-bottom: 1.5rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  font-size: .875rem; font-weight: 600;
}
.status-badge .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--grey); }
.status-ledig .dot { background: var(--accent); }
.status-ledig .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: 0;
  animation: ping 2.6s var(--ease) infinite;
}
.status-kommer .dot { background: transparent; border: 1.5px solid var(--grey); }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.eyebrow { font-size: .9375rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin-bottom: .9rem; }
.hero-title { text-wrap: pretty; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.02em; max-width: 15.5em; }
.h1-line { display: block; }
.h1-line-2 { font-style: italic; color: var(--ink-2); }
@media (min-width: 960px) { .h1-line-2 { text-wrap: balance; } }
.hero-sub { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); font-size: var(--fs-lead); line-height: 1.5; max-width: 38rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2.25rem; }
.trust-strip {
  display: grid; grid-template-columns: 1fr; gap: .75rem 2rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--ink-2);
}
.trust-strip li { display: flex; align-items: flex-start; gap: .6rem; }
.trust-strip .icon { width: 1.25rem; height: 1.25rem; color: var(--accent); flex: none; margin-top: .1rem; }
@media (min-width: 560px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .trust-strip { grid-template-columns: repeat(4, auto); justify-content: start; } }

/* Hero load sequence */
.hero-in, .h1-line { animation: rise 1s var(--ease) both; }
.h1-line { animation-delay: .08s; }
.h1-line-2 { animation-delay: .22s; }
.hero-in-1 { animation-delay: 0s; }
.hero-in-3 { animation-delay: .38s; }
.hero-in-4 { animation-delay: .5s; }
.hero-in-5 { animation-delay: .62s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, .6em, 0); } to { opacity: 1; transform: none; } }
.hero-sub.hero-in, .hero-actions.hero-in, .trust-strip.hero-in { animation-name: rise-sm; }
@keyframes rise-sm { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

.vsl-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--paper-2); }

/* Scroll reveals (only when JS runs) */
.js .reveal, .js .reveal-stagger > * {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in, .js .reveal-stagger.is-in > * { opacity: 1; transform: none; }

/* 5.2 Problem */
.pcards { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); border-top: 1px solid var(--line); }
.pcard {
  display: grid; grid-template-columns: 3rem 1fr; gap: .25rem 1rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.pcard-num { grid-row: span 2; font-family: var(--serif); font-size: 1.5rem; color: var(--accent); line-height: 1.2; }
.pcard h3 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); letter-spacing: -.01em; line-height: 1.15; }
.pcard p { color: var(--ink-2); }
@media (min-width: 720px) {
  .pcard { grid-template-columns: 3.5rem minmax(0, 11rem) 1fr; align-items: baseline; }
  .pcard-num { grid-row: auto; }
}

/* 5.3 Solution */
.section-solution { background: var(--paper-2); }
.sols { display: grid; gap: 1rem; counter-reset: sol; }
.sol {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sol-num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 2.5rem;
  border-radius: 50%; border: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--ink-2);
}
.sol h3 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; margin-bottom: .75rem; }
.sol p { color: var(--ink-2); }
.sol.is-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sol.is-accent p { color: color-mix(in srgb, var(--on-accent) 86%, transparent); }
.sol.is-accent .sol-num { border-color: color-mix(in srgb, var(--on-accent) 40%, transparent); color: var(--on-accent); }
.sol-figure {
  font-family: var(--serif); font-size: clamp(3rem, 2.4rem + 2.5vw, 4.25rem); line-height: 1;
  letter-spacing: -.02em; margin: -1rem 0 1rem; font-variant-numeric: tabular-nums;
}
.sol-figure small { font-size: .45em; letter-spacing: 0; }
@media (min-width: 900px) {
  .sols { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .sol.is-accent .sol-num { margin-bottom: 2.5rem; }
}

/* 5.4 Process flowchart */
.process-grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.75rem; font-size: var(--fs-small); color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
@media (min-width: 960px) {
  .process-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .process-intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .process-intro .section-head { margin-bottom: 0; }
}

.badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: .15rem .65rem;
  border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--card);
}
.badge-jer { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.badge-mix { background: linear-gradient(90deg, var(--card) 0 50%, var(--accent-soft) 50%); }

.flow { --node: 48px; position: relative; }
.flow-steps { position: relative; display: grid; gap: clamp(1.75rem, 1rem + 2vw, 2.5rem); }
/* Static connecting line through the node centres */
.flow-steps::before {
  content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); top: calc(var(--node) / 2); bottom: calc(var(--node) / 2);
  width: 2px; background: linear-gradient(180deg, var(--accent-line), var(--line));
}
.flow-step { position: relative; display: grid; grid-template-columns: var(--node) 1fr; gap: 1.1rem; align-items: start; }
.flow-node {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: var(--node); height: var(--node);
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font-family: var(--serif); font-size: 1.35rem;
  box-shadow: 0 0 0 6px var(--paper);
}
.flow-body { padding-top: calc(var(--node) / 2 - .85rem); }
.flow-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .35rem; }
.flow-body h3 { font-size: 1.1875rem; }
.flow-body p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 720px) {
  .flow { --node: 56px; }
  .flow-step { gap: 1.5rem; }
}

/* 5.5 Roles: two plain lists */
.section-swim { background: var(--paper-2); }
.roles { display: grid; gap: 1rem; max-width: 980px; margin-inline: auto; }
.roles-col {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.roles-you { background: var(--accent-soft); border-color: var(--accent-line); }
.roles-col h3 { display: grid; gap: .2rem; margin-bottom: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.roles-you h3 { border-bottom-color: var(--accent-line); }
.roles-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; }
.roles-who { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.roles-you .roles-who { color: var(--accent); }
.roles-list { display: grid; gap: .9rem; }
.roles-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; align-items: start; line-height: 1.45; }
.roles-list .icon { width: 1.5rem; height: 1.5rem; padding: .2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 2.2; }
.roles-you .roles-list .icon { background: var(--card); }
@media (min-width: 760px) { .roles { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

/* 5.6 Qualification */
.q-list { border-top: 1px solid var(--line); counter-reset: q; }
.q-item {
  display: grid; grid-template-columns: clamp(3rem, 2rem + 4vw, 5.5rem) 1fr; align-items: baseline; gap: 1rem;
  padding: clamp(1.25rem, .75rem + 1.5vw, 2rem) 0; border-bottom: 1px solid var(--line);
}
.q-num { font-family: var(--serif); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: .9; color: var(--accent); }
.q-text { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; }
.q-close { margin-top: 2rem; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }

/* 5.7 Calculator */
.section-calc { background: var(--paper-2); }
.calc {
  position: relative; max-width: 1120px; margin-inline: auto;
  padding: clamp(1.25rem, .75rem + 2vw, 2.5rem);
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}
.calc-tag {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem;
  padding: .3rem .8rem; border-radius: 999px; border: 1px dashed var(--line);
  font-size: .8125rem; font-weight: 600; color: var(--ink-2);
}
.calc-grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (min-width: 960px) { .calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.calc-inputs { display: grid; gap: 1.6rem; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "range num" "help help"; column-gap: 1rem; align-items: center; }
.field-top { display: contents; }
.field label { grid-area: label; font-size: .9375rem; font-weight: 500; line-height: 1.35; margin-bottom: .35rem; }
.num { grid-area: num; position: relative; display: inline-flex; align-items: center; flex: none; }
.num input {
  width: 8rem; height: 44px; padding: 0 2.6rem 0 .75rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  color: var(--ink); font: inherit; font-size: 1rem; font-weight: 600; text-align: right;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s;
}
.num input:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.num input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.num-unit { position: absolute; right: .7rem; font-size: .8125rem; color: var(--ink-2); pointer-events: none; }
.field-help { grid-area: help; margin-top: .35rem; font-size: .875rem; color: var(--ink-2); }

.range {
  --pct: 50%;
  -webkit-appearance: none; appearance: none;
  grid-area: range; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer;
}
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--pct), var(--line) var(--pct));
}
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -10px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(15, 23, 32, .18);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(15, 23, 32, .18);
}
.range:hover::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--accent-soft), 0 0 0 7px var(--accent); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px var(--accent-soft), 0 0 0 7px var(--accent); }

.calc-advanced { border-top: 1px solid var(--line); padding-top: .5rem; }
.calc-advanced summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.calc-advanced summary::-webkit-details-marker { display: none; }
.calc-advanced .icon-plus { width: 1.25rem; height: 1.25rem; color: var(--ink-2); transition: transform .35s var(--ease); }
.calc-advanced[open] .icon-plus { transform: rotate(45deg); }
.calc-advanced-body { padding-top: .75rem; }

.calc-outputs {
  display: flex; flex-direction: column; gap: 1.75rem;
  padding: clamp(1.25rem, .75rem + 1.5vw, 2rem);
  background: var(--paper-2); border-radius: var(--radius);
}
.roas-label { font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.roas-value {
  font-family: var(--serif); font-size: clamp(4rem, 3rem + 5vw, 6.75rem); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; margin-top: .35rem;
  transition: color .4s var(--ease);
}
.roas-value.is-pos { color: var(--accent); }
.roas-value.is-neg { color: var(--warn); }

.bars { display: grid; gap: 1rem; }
.bar-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; margin-bottom: .45rem; }
.bar-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.bar {
  height: 100%; border-radius: 6px; transform-origin: left center;
  transition: transform .7s var(--ease), background-color .4s var(--ease);
}
.bar-cost { background: var(--ink-2); }
.bar-income { background: var(--accent); }
.bar-income.is-neg { background: var(--warn); }

.stats { display: grid; border-top: 1px solid var(--line); }
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.stat dt { font-size: .9375rem; color: var(--ink-2); }
.stat dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-result dd.is-neg { color: var(--warn); }
@media (min-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .stat { flex-direction: column; justify-content: flex-start; gap: .2rem; }
  .stat dd { font-size: 1.25rem; }
}
.calc-note { max-width: 44rem; margin: 2rem auto 0; text-align: center; color: var(--ink-2); }

/* 5.8 Compare */
.cmp-table-wrap { display: none; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; }
.cmp-table th, .cmp-table td { padding: 1.15rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp-table thead th { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; border-bottom-color: var(--ink); }
.cmp-table thead td { border-bottom-color: var(--ink); }
.cmp-table tbody th { font-weight: 600; width: 19%; }
.cmp-table td { color: var(--ink-2); width: 27%; }
.cmp-table .is-us { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.cmp-table thead .is-us { color: var(--accent); border-radius: var(--radius) var(--radius) 0 0; border-bottom-color: var(--accent); }
.cmp-table tbody tr:last-child .is-us { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
.cmp-cards { display: grid; gap: 1rem; }
.cmp-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cmp-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin-bottom: 1rem; }
.cmp-card dl > div { padding: .7rem 0; border-top: 1px solid var(--line); }
.cmp-card dt { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cmp-card dd { margin-top: .15rem; }
.cmp-card.is-us { border: 1.5px solid var(--accent); background: var(--accent-soft); }
.cmp-card.is-us h3 { color: var(--accent); }
.cmp-card.is-us dd { font-weight: 600; }
@media (min-width: 900px) {
  .cmp-table-wrap { display: block; }
  .cmp-cards { display: none; }
}

/* 5.9 Transparency */
.checks { border-top: 1px solid var(--line); }
.checks li {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-lead); line-height: 1.45;
}
.checks .icon {
  width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); stroke-width: 2;
}

/* 5.10 Cities */
.section-cities { background: var(--paper-2); }
.section-cities .body-lg { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.rollout { --node: 44px; position: relative; max-width: 960px; margin: 0 auto clamp(2rem, 1rem + 2vw, 3rem); }
.ro-line {
  position: absolute; left: calc(var(--node) / 2 - 1px); top: calc(var(--node) / 2); bottom: calc(var(--node) / 2 + 1rem);
  width: 2px; background: var(--line);
}
.ro-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 22%, transparent) 100%); transform-origin: top center; transition: transform 1.6s var(--ease) .2s; }
.js .rollout .ro-fill { transform: scaleY(0); }
.js .rollout.is-in .ro-fill { transform: none; }
.ro-steps { position: relative; display: grid; gap: 1.25rem; }
.ro-step {
  display: grid; grid-template-columns: var(--node) 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 450ms);
}
.js .rollout .ro-step { opacity: 0; transform: translateY(14px); }
.js .rollout.is-in .ro-step { opacity: 1; transform: none; }
.ro-node {
  grid-row: span 2; position: relative; display: grid; place-items: center; width: var(--node); height: var(--node);
  border-radius: 50%; background: var(--paper-2); border: 1.5px dashed var(--grey);
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink-2);
}
.ro-ledig .ro-node { background: var(--accent); border: 1.5px solid var(--accent); color: var(--on-accent); }
.ro-ledig .ro-node::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--accent);
  animation: ping 2.6s var(--ease) infinite;
}
.ro-optaget .ro-node { background: var(--grey); border: 1.5px solid var(--grey); color: var(--paper); }
.ro-name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.1; }
.chip {
  justify-self: start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem;
  padding: .2rem .7rem; border-radius: 999px; font-size: .8125rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ledig { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip-optaget { background: color-mix(in srgb, var(--grey) 14%, transparent); }
.chip-kommer::before { background: transparent; border: 1.5px solid currentColor; width: 7px; height: 7px; }
@media (min-width: 760px) {
  .rollout { --node: 52px; }
  .ro-line { left: 16.666%; right: 16.666%; top: calc(var(--node) / 2 - 1px); bottom: auto; width: auto; height: 2px; }
  .ro-fill { transform-origin: left center; background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 22%, transparent) 100%); }
  .js .rollout .ro-fill { transform: scaleX(0); }
  .ro-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .ro-step { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; row-gap: .9rem; }
  .ro-node { grid-row: auto; }
  .chip { justify-self: center; margin-top: 0; }
}
.price-note {
  max-width: 36rem; margin: 2rem auto 0; padding: 1.25rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  text-align: center; font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); line-height: 1.3;
}

/* 5.11 FAQ */
.faq-cta { margin-top: 1.75rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 44px; padding: 1.25rem 0; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); font-weight: 600; line-height: 1.4; transition: color .25s; }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-icon {
  flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.faq-icon .icon { width: 1.1rem; height: 1.1rem; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq-item.is-closing .faq-icon { transform: none; background: transparent; border-color: var(--line); color: var(--ink-2); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 3.5rem 1.5rem 0; color: var(--ink-2); max-width: 62ch; }
.faq-a a { color: var(--accent); }

/* 5.12 About */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-text .section-head { margin-bottom: 1.5rem; }
.about-photo img { border-radius: var(--radius); width: 100%; height: auto; }
@media (min-width: 900px) { .about-grid:has(.about-photo:not([hidden])) { grid-template-columns: 4fr 7fr; } }
.references { margin-top: 3rem; }

/* 5.13 Final CTA: inverted palette, same tokens */
.section-final {
  --ink: #F2EFE8; --ink-2: #B9C1C8; --line: rgba(242, 239, 232, .16);
  --accent: #4FB68D; --accent-hover: #6CC9A2; --on-accent: #0C1117; --accent-soft: rgba(79, 182, 141, .14);
  background: #0F1720; color: var(--ink); overflow: hidden; isolation: isolate;
  border-top: 0 !important;
}
.section-final::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%; z-index: -1;
  background: radial-gradient(45% 50% at 50% 30%, rgba(79, 182, 141, .2), transparent 70%);
}
.section-final a:focus-visible, .section-final .btn:focus-visible { outline-color: #F2EFE8; }
.final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-title { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.75rem); max-width: 16em; }
.section-final .body-lg { margin-top: 1.5rem; color: var(--ink-2); }
.cta-row-lg { justify-content: center; margin-top: 2.5rem; }
@media (min-width: 480px) { .cta-row-lg .btn { min-width: 15rem; } }
.final-legal { margin-top: 2rem; font-size: .875rem; color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  .section-final { background: #070B0F; }
}

/* Footer */
.site-footer { padding: 3.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); background: var(--paper-2); border-top: 1px solid var(--line); font-size: var(--fs-small); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-contact a, .footer-links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; }
.footer-contact .icon, .footer-links .icon { width: 1.1rem; height: 1.1rem; color: var(--accent); }
.footer-contact a:hover span, .footer-links a:hover span { text-decoration: underline; }
.footer-bottom { display: grid; gap: .35rem; padding-top: 1.5rem; color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: .5rem; color: var(--ink); }
.footer-links a:not(:has(.icon)) { text-decoration: underline; }
@media (min-width: 900px) {
  .footer-bottom { grid-template-columns: auto auto auto 1fr; gap: 1.5rem; align-items: center; }
  .footer-links { margin-top: 0; justify-content: flex-end; }
}

/* Sticky mobile bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.mobile-bar .btn { min-height: 48px; padding-inline: 1rem; box-shadow: none; }
.mobile-bar.is-visible { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* Legal page and 404 */
.legal { padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)) 0 var(--section); }
.legal-inner { max-width: calc(46rem + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2.6rem, 1.8rem + 3.5vw, 4.25rem); }
.legal .lead { max-width: none; margin-bottom: 1rem; }
.legal h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal h3 { margin: 1.5rem 0 .4rem; }
.legal p, .legal li, .legal address { color: var(--ink-2); }
.legal p + p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .6rem; }
.legal li::marker { color: var(--accent); }
.legal address { font-style: normal; line-height: 1.8; }
.legal a { color: var(--accent); }
.legal strong { color: var(--ink); }

.notfound { min-height: 80vh; display: grid; align-items: center; padding-top: calc(var(--header-h) + 4rem); }
.notfound h1 { font-size: var(--fs-h1); }
.notfound .lead { max-width: 36rem; margin-bottom: 2rem; }
.notfound-inner > p:last-child { margin-top: 1rem; }

/* Reduced motion: final states, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 0s !important; transition-delay: 0s !important;
  }
  .hero-glow { animation: none; }
  .status-ledig .dot::after, .ro-ledig .ro-node::after { display: none; }
  .js .reveal, .js .reveal-stagger > *, .js .rollout .ro-step { opacity: 1; transform: none; }
  .js .rollout .ro-fill { transform: none; }
  .btn:hover, .btn:hover .icon { transform: none; }
}

@media print {
  .site-header, .mobile-bar, .hero-bg { display: none; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}
