/* =========================================================
   Hedegaard Polering — Stage 1 site
   Design system: brand blue + white, photo-free (icons/gradients),
   mobile-first, no external fonts/icon libraries (perf budget).
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; text-rendering: optimizeSpeed; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

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

/* ---------- Tokens ---------- */
:root {
  --blue-900: #0e2a4d;
  --blue-800: #12315c;
  --blue-700: #1e4d8c; /* brand base */
  --blue-600: #245da3;
  --blue-500: #2f7dc4;
  --blue-400: #5aa3dd;
  --blue-300: #8fc6ec;
  --blue-100: #e6f1fb;
  --blue-50:  #f4f9fd;

  --ink:      #142336;
  --ink-soft: #435872;
  --white:    #ffffff;
  --line:     #dce6f0;

  --ok-bg:  #e8f6ee;
  --ok-ink: #1b6b3d;
  --err-ink:#b3261e;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(14,42,77,.07), 0 1px 1px rgba(14,42,77,.05);
  --shadow-md: 0 10px 30px rgba(14,42,77,.12);

  --container: 1160px;
  --header-h: 72px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { color: var(--ink-soft); }
p + p { margin-top: .85em; }

a { text-decoration: none; }
a.text-link {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-color: var(--blue-300);
  text-underline-offset: 3px;
  font-weight: 600;
}
a.text-link:hover { color: var(--blue-900); text-decoration-color: currentColor; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

section { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section-tight { padding-block: clamp(1.75rem, 1.5rem + 1.5vw, 3rem); }
.section-alt { background: var(--blue-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .6rem;
}

.lede {
  font-size: 1.1rem;
  max-width: 62ch;
}

.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: -3rem;
  background: var(--blue-900);
  color: var(--white);
  padding: .75rem 1.1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn svg { flex: none; width: 18px; height: 18px; }
.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-800); }
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  border-color: var(--blue-700);
  color: var(--blue-700);
}
.btn-outline:hover { background: var(--blue-100); }

.btn-ghost-inverse {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-ghost-inverse:hover { background: rgba(255,255,255,.16); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: none;
}
.brand img {
  height: 48px;
  width: 48px;
}
.brand-text {
  font-weight: 800;
  color: var(--blue-900);
  font-size: 1.02rem;
  line-height: 1.15;
}
.brand-text small {
  display: block;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
}
.nav-toggle svg { width: 22px; height: 22px; }

.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  padding: 1.25rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.primary-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity .16s ease, transform .16s ease;
}
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.primary-nav a {
  display: block;
  padding: .9rem .25rem;
  font-weight: 700;
  color: var(--blue-900);
  border-bottom: 1px solid var(--line);
}
.primary-nav a[aria-current="page"] { color: var(--blue-600); }
.nav-cta { margin-top: 1.25rem; }
.nav-cta .btn-primary {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  background-color: #1E4D8C;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  box-shadow: 0 4px 14px rgba(30, 77, 140, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.nav-cta .btn-primary:hover {
  background-color: #163b6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 77, 140, 0.45);
}

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
  }
  .primary-nav a {
    padding: .4rem 0;
    border-bottom: 2px solid transparent;
    font-size: .92rem;
    white-space: nowrap;
  }
  .primary-nav a:hover { color: var(--blue-600); }
  .primary-nav a[aria-current="page"] { border-bottom-color: var(--blue-600); }
  .nav-cta { margin-top: 0; }
  .nav-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

/* ---------- Hero (photo-free: gradient + soft orbs) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 45%, var(--blue-600) 100%);
  color: var(--white);
}
/* Soft, blurred light-blue orbs (decorative only) */
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(143,198,236,.42) 0, transparent 16%),
    radial-gradient(circle at 36% 88%, rgba(90,163,221,.40) 0, transparent 20%),
    radial-gradient(circle at 68% 26%, rgba(143,198,236,.32) 0, transparent 13%),
    radial-gradient(circle at 92% 80%, rgba(90,163,221,.42) 0, transparent 18%),
    radial-gradient(circle at 52% 6%, rgba(143,198,236,.26) 0, transparent 10%);
  filter: blur(28px);
  pointer-events: none;
}
/* Subtle grid of rounded squares, layered over the orbs (decorative only) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='0' y='0' width='100' height='100' rx='7' fill='none' stroke='rgba(255,255,255,.6)' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 25% auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 56px, rgba(0,0,0,.9) 160px, transparent 85%);
  mask-image: linear-gradient(180deg, transparent 0, transparent 56px, rgba(0,0,0,.9) 160px, transparent 85%);
  pointer-events: none;
}
.hero .btn-primary { border-color: rgba(255,255,255,.55); } /* white outline, matching the ghost buttons beside it */
.hero .container { position: relative; z-index: 1; } /* keep content above the decorative ::before/::after layers */
.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 2.4rem + 3vw, 5.5rem);
}
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,.92); }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}
.hero-panel {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.hero-panel h2 { color: var(--white); font-size: 1.05rem; margin-bottom: .75rem; }
.hero-towns {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.town-chip {
  font-size: .84rem;
  font-weight: 700;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
}
.badge svg { width: 16px; height: 16px; }

/* Light-section badge/trust variant */
.badge-soft {
  background: var(--blue-100);
  border: 1px solid var(--blue-300);
  color: var(--blue-800);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.trust-item .icon-wrap { color: var(--blue-600); flex: none; }
.trust-item h3 { font-size: 1rem; margin-bottom: .2rem; }
.trust-item p { font-size: .92rem; margin: 0; }

/* ---------- Icon wrap ---------- */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-700);
}
.icon-wrap svg { width: 22px; height: 22px; }

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }

.check-list { display: grid; gap: .65rem; }
.check-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  color: var(--ink);
}
.check-list svg {
  flex: none;
  width: 20px; height: 20px;
  margin-top: .1rem;
  color: var(--blue-600);
}

/* ---------- Section header ---------- */
.section-head { max-width: 68ch; margin-bottom: 2rem; }

/* ---------- Pricing ---------- */
.price-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem);
}
.price-card .price {
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
}
.price-card .price small {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-top: .35rem;
}
.price-note { max-width: 42ch; color: rgba(255,255,255,.9); margin: 0; }

/* ---------- Click-to-call / blocked-value placeholders ---------- */
.todo-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #fff4e5;
  color: #935a00;
  border: 1px dashed #d99a2b;
}

.call-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.call-box .icon-wrap { background: var(--blue-700); color: var(--white); }
.call-box strong { display: block; color: var(--blue-900); font-size: 1.05rem; }

/* ---------- Town blocks (Områder) ---------- */
.town-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.town-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--white);
}
.town-card .town-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: .4rem;
}
.town-card h3 { margin-bottom: .35rem; }
.town-card p { font-size: .93rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .9rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--blue-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: none;
  width: 22px; height: 22px;
  color: var(--blue-600);
  transition: transform .18s ease;
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
}
.faq-item .faq-body p + p { margin-top: .75em; }

.faq-teaser-list { display: grid; gap: .6rem; }
.faq-teaser-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--blue-900);
  background: var(--white);
  transition: border-color .15s ease, background-color .15s ease;
}
.faq-teaser-list a:hover { border-color: var(--blue-400); background: var(--blue-50); }
.faq-teaser-list svg { flex: none; width: 18px; height: 18px; color: var(--blue-600); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
  background: var(--blue-50);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .86rem;
  color: var(--ink-soft);
}
.breadcrumbs a { color: var(--blue-700); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: .4rem;
  color: var(--line);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue-900);
}
.field .hint { font-size: .78rem; color: var(--ink-soft); font-weight: 500; }
.field input,
.field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field.has-error input,
.field.has-error textarea { border-color: var(--err-ink); }
.field-error {
  font-size: .8rem;
  color: var(--err-ink);
  font-weight: 600;
  display: none;
}
.field.has-error .field-error { display: block; }

/* Checkbox row: box beside a normal-weight label (e.g. consent boxes) */
.field-check label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-weight: 500;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
}
.field-check input[type="checkbox"] {
  flex: none;
  width: 18px; height: 18px;
  margin: .1rem 0 0;
  padding: 0;
  accent-color: var(--blue-600);
  cursor: pointer;
}
.field-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; box-shadow: none; }
.field-check.has-error input[type="checkbox"] { outline: 2px solid var(--err-ink); outline-offset: 2px; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: .6rem;
  border-radius: var(--radius-md);
  padding: .95rem 1.1rem;
  font-weight: 600;
  font-size: .93rem;
  margin-top: 1rem;
}
.form-status svg { flex: none; width: 20px; height: 20px; margin-top: .1rem; }
.form-status.is-visible { display: flex; }
.form-status.is-success { background: var(--ok-bg); color: var(--ok-ink); }
.form-status.is-note { background: #fff8ea; color: #7a5300; }

.form-footnote { font-size: .8rem; color: var(--ink-soft); margin-top: .9rem; }

/* ---------- Contact info panel ---------- */
.info-list { display: grid; gap: 1rem; }
.info-row { display: flex; gap: .85rem; align-items: flex-start; }
.info-row .icon-wrap { background: var(--blue-700); color: var(--white); }
.info-row strong { display: block; color: var(--blue-900); }
.info-row p { margin: 0; font-size: .94rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.82);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1.2fr repeat(3, 1fr);
}
.footer-brand img { height: 40px; margin-bottom: .9rem; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .9rem; max-width: 32ch; }
.site-footer h4 {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.78); font-size: .92rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-meta {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.62);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie consent banner ---------- */
/* Fixed to the bottom, non-modal: the page stays usable behind it.
   Accept and reject deliberately share one button style (no nudging). */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: 0 1rem 1rem;
  pointer-events: none;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  pointer-events: auto;
  max-width: 760px;
  margin-inline: auto;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.3rem 1.4rem;
}
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.cookie-banner h2:focus { outline: none; }
.cookie-banner p { font-size: .9rem; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
}
.cookie-actions .btn { flex: 1 1 10rem; padding-block: .7rem; }
.cookie-actions [hidden] { display: none; } /* .btn's display would otherwise override [hidden] */
.cookie-customize {
  background: none;
  border: 0;
  padding: .5rem .3rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-color: var(--blue-300);
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-customize:hover { color: var(--blue-900); }
.cookie-details { margin-top: 1rem; }
.cookie-details[hidden] { display: none; }
.cookie-cats { display: grid; gap: .6rem; }
.cookie-cat {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: .8rem 1rem;
  background: var(--blue-50);
}
.cookie-switch { display: flex; align-items: flex-start; gap: .8rem; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-switch-ui {
  flex: none;
  position: relative;
  width: 40px; height: 22px;
  margin-top: .1rem;
  border-radius: 999px;
  background: #b9c7d6;
  transition: background-color .15s ease;
}
.cookie-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}
.cookie-switch input:checked + .cookie-switch-ui { background: var(--blue-600); }
.cookie-switch input:checked + .cookie-switch-ui::after { transform: translateX(18px); }
.cookie-switch input:disabled + .cookie-switch-ui { opacity: .55; }
.cookie-switch input:disabled ~ .cookie-cat-text { cursor: default; }
.cookie-switch:has(input:disabled) { cursor: default; }
.cookie-switch input:focus-visible + .cookie-switch-ui { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.cookie-cat-text { font-size: .9rem; color: var(--blue-900); }
.cookie-cat-text small { display: block; color: var(--ink-soft); font-size: .82rem; margin-top: .15rem; }
.cookie-always { font-size: .75rem; font-weight: 600; color: var(--ink-soft); margin-left: .3rem; }

/* ---------- Legal text pages (cookiepolitik) ---------- */
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.legal h2:first-of-type { margin-top: 1rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; color: var(--ink-soft); display: grid; gap: .35rem; margin-top: .6rem; }
.table-wrap { overflow-x: auto; margin-top: .8rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.legal th { background: var(--blue-50); color: var(--blue-900); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.legal td { color: var(--ink-soft); }
.legal code { white-space: nowrap; font-size: .85em; background: var(--blue-50); padding: .1rem .35rem; border-radius: 4px; color: var(--blue-900); }

/* ---------- Page hero (inner pages, smaller than home hero) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  padding-block: clamp(2.2rem, 1.9rem + 1.5vw, 3.2rem);
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: rgba(255,255,255,.9); margin-top: .6rem; }

/* ---------- Misc ---------- */
.stack { display: grid; gap: 1.25rem; }
.two-col {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
  .two-col.reverse { direction: rtl; }
  .two-col.reverse > * { direction: ltr; }
}

.divider { height: 1px; background: var(--line); border: 0; margin-block: 0; }

.cta-band {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.3rem + 1.5vw, 2.6rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: .5rem; }
.cta-band .btn { margin-top: 1.2rem; }

.list-plain { display: grid; gap: .5rem; }
.list-plain li { color: var(--ink-soft); }
