@import url("palette.css");

/* ==========================================================================
   Book.dk 2.0 — designsystem
   Farver ligger i palette.css (Realtime Colors: text/background/primary/secondary/accent).
   Outfit/Inter, flydende pill-navigation.
   ========================================================================== */

:root {
  /* Form */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Typografi */
  --display: "Outfit", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  /* Mål */
  --max: 1360px;
  --max-wide: 1520px;
  --max-prose: 68ch;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
figure, blockquote { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, .wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
}

.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.wrap-wide {
  width: min(var(--max-wide), calc(100% - 48px));
  margin-inline: auto;
}

section[id] { scroll-margin-top: 100px; }

/* ==========================================================================
   Knapper
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
              transform 0.1s ease, box-shadow 0.16s ease;
}
.btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: var(--text); }
.btn-outline { background: var(--white); color: var(--ink); border-color: color-mix(in srgb, var(--text) 18%, transparent); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-sm { padding: 8px 15px; font-size: 0.9rem; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid var(--orange);
  padding-bottom: 1px;
}
.textlink:hover { color: var(--orange-d); }

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Header — flydende pill med mega-menu
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0 0;
  pointer-events: none;
}
.site-header.is-scrolled .nav-pill { box-shadow: 0 10px 40px rgba(23, 23, 23, 0.1); }

.nav-pill {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  gap: 16px;
  padding: 8px 10px 8px 22px;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 24px rgba(23, 23, 23, 0.06);
  border: 1px solid rgba(23, 23, 23, 0.04);
}
.nav-pill > .wordmark { justify-self: start; }

.wordmark {
  font-size: 1.7rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.wordmark .dot { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links a,
.nav-links .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.nav-links a:hover,
.nav-links .nav-trigger:hover,
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(23, 23, 23, 0.04); }
.nav-links .nav-trigger svg { transition: transform 0.18s ease; }
.nav-links .nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.nav-cta .login {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-cta .login:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0; background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.18s ease, top 0.18s ease, background 0.18s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; right: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mega-menu */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(820px, calc(100vw - 32px));
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-trigger[aria-expanded="true"] + .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
}
.mega-col-head {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 10px 10px 6px;
}
.mega a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  background: transparent;
}
.mega a:hover { background: var(--canvas); }
.mega a strong {
  font-family: var(--display);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mega a span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
}
.mega-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 23, 23, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}
.hero-badge .flag { font-size: 1rem; line-height: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  text-wrap: balance;
}
.hero-split h1 {
  max-width: 18ch;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
}
.hero-split h1 .accent { white-space: nowrap; }
.hero-center { text-align: center; }
.hero-center h1 { max-width: 18ch; margin-inline: auto; }
.hero-center .lede { margin-inline: auto; }
.hero-center .hero-actions { justify-content: center; }

.hero .lede {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 44ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-faces { display: flex; }
.hero-faces img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--canvas);
  margin-left: -10px;
}
.hero-faces img:first-child { margin-left: 0; }
.hero-proof p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.hero-proof strong { color: var(--ink); }

.trust {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   Page header (undersider)
   ========================================================================== */

.page-head {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 23, 23, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 80%);
  pointer-events: none;
}
.page-head-inner { position: relative; z-index: 1; max-width: 46rem; }
.page-head.is-center .page-head-inner { margin-inline: auto; text-align: center; }
.page-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  text-wrap: balance;
}
.page-head .lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 48ch;
}
.page-head.is-center .lede { margin-inline: auto; }
.page-head .hero-actions { margin-top: 26px; }
.page-head.is-center .hero-actions { justify-content: center; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.5; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

/* ==========================================================================
   Sektions-hoved
   ========================================================================== */

.section { padding: 76px 0; }
.section-soft { background: var(--canvas-soft); }
.section-white { background: var(--white); }
.section-tight { padding: 48px 0; }

.section-head {
  max-width: 44rem;
  margin-bottom: 40px;
}
.section-head.is-center { text-align: center; margin-inline: auto; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  text-wrap: balance;
}
.section-head p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 48ch;
}
.section-head.is-center p { margin-inline: auto; }

/* ==========================================================================
   Fordele (4-kolonne med prikkede skillelinjer)
   ========================================================================== */

.benefits { padding: 52px 0 40px; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.benefit {
  padding: 8px 28px;
  border-right: 1px dotted rgba(23, 23, 23, 0.18);
}
.benefit:last-child { border-right: 0; }
.benefit-icon { color: var(--orange); margin-bottom: 14px; }
.benefit h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.benefit p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* Brancher-pills */
.trust-strip { padding: 32px 0 52px; text-align: center; }
.trust-strip-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.pill:hover { border-color: var(--orange); transform: translateY(-2px); }

/* ==========================================================================
   Feature-bånd
   ========================================================================== */

.feature-band { padding: 72px 0; }
.feature-band-alt { background: var(--canvas-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.feature-grid-reverse .feature-text { order: 2; }
.feature-grid-reverse .feature-media { order: 1; }
.feature-text h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 16px;
  text-wrap: balance;
}
.feature-text > p {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 20px;
}

.check-list { display: grid; gap: 10px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-weight: 500;
  font-size: 0.98rem;
}
.check-list li::before {
  content: "";
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--orange-l);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--orange-d);
  border-bottom: 2px solid var(--orange-d);
  transform: translateY(-50%) rotate(-45deg);
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--line-soft);
}
.feature-media img,
.feature-media video {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.feature-media.is-free img,
.feature-media.is-free video { aspect-ratio: auto; }
.feature-media figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--muted-2);
  border-top: 1px solid var(--line-soft);
}

/* ==========================================================================
   Kort-grid
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}
.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--orange-l);
  color: var(--orange-d);
  display: grid;
  place-items: center;
  line-height: 0;
  flex: 0 0 auto;
}
.card-icon svg { display: block; }
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; flex: 1; }
.card .more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange-d);
}
.card-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-l);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Trin / how it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line);
}
.step.is-on { border-top-color: var(--orange); }
.step-n {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 10px;
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p { color: var(--muted); font-size: 0.96rem; }

/* ==========================================================================
   Case-bånd (mørkt)
   ========================================================================== */

.case { padding: 40px 0 72px; }
.case-card {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  box-shadow: var(--shadow-lg);
}
.case-person { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.case-person img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.case-tag { color: var(--orange); font-size: 0.9rem; font-weight: 600; }
.case-role { color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; margin-top: 2px; }
.case-left h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 14px;
  color: var(--white);
  text-wrap: balance;
}
.case-left > p { color: rgba(255, 255, 255, 0.78); max-width: 42ch; margin-bottom: 20px; }
.case-link { color: var(--orange); font-weight: 600; text-decoration: none; }
.case-link:hover { text-decoration: underline; }
.case-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 40px;
}
.case-stat { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.case-stat:first-child { padding-top: 0; }
.case-stat-label { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 6px; }
.case-stat-value {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.04em;
  line-height: 1;
}
.case-foot {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
}

/* ==========================================================================
   Citater
   ========================================================================== */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-card .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote-card blockquote { flex: 1; }
.quote-card blockquote p { font-size: 1.02rem; line-height: 1.5; }
.quote-card footer { display: flex; flex-direction: column; gap: 2px; }
.quote-card footer strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
}
.quote-card footer span { color: var(--muted); font-size: 0.88rem; }
.quote-stars { color: var(--orange); letter-spacing: 2px; font-size: 0.9rem; }

/* ==========================================================================
   Beats (store salgsargumenter)
   ========================================================================== */

.why { padding: 0; }
.beat {
  display: flex;
  align-items: center;
  min-height: 52vh;
  padding: 60px 0;
}
.beat:nth-child(even) { background: var(--white); }
.beat-n {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.beat h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  max-width: 16ch;
  text-wrap: balance;
}
.beat-line {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  max-width: 34ch;
}

/* ==========================================================================
   Statistik-bånd
   ========================================================================== */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.stat {
  padding: 30px 28px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

/* ==========================================================================
   Priser
   ========================================================================== */

/* Skifter mellem årsbetaling og måned for måned. */
.price-cycle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 32px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.price-cycle[hidden] { display: none; }
.price-cycle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.price-cycle button:hover { color: var(--ink); }
.price-cycle button.is-on { background: var(--ink); color: var(--white); }
.price-cycle .save {
  background: var(--orange-l);
  color: var(--orange-d);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-cycle button.is-on .save { background: var(--orange); color: var(--ink); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-card-featured {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  padding-top: 52px;
}
.price-card .badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 9px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.price-card h3 { font-size: 1.25rem; font-weight: 600; }
.price-amount {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 8px 0 2px;
}
.price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
/* Betalingsformen: kun den valgte linje vises. */
.price-billing {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  min-height: 2.2em;
  margin-bottom: 6px;
}
.price-grid[data-cycle="year"] .price-billing [data-when="month"],
.price-grid[data-cycle="month"] .price-billing [data-when="year"] { display: none; }
.price-note { color: var(--orange-d); font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
.price-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.price-card ul { display: grid; gap: 9px; margin: 8px 0 22px; flex: 1; }
.price-card li { position: relative; padding-left: 24px; font-size: 0.9rem; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.45em;
  width: 7px;
  height: 4px;
  border-left: 2.2px solid var(--orange-d);
  border-bottom: 2.2px solid var(--orange-d);
  transform: rotate(-45deg);
}

/* Sammenlignings-tabel */
.cmp-wrap { overflow-x: auto; }
.cmp {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line-soft);
  min-width: 620px;
}
.cmp th, .cmp td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.cmp thead th {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--canvas-soft);
}
.cmp tbody th { font-weight: 500; color: var(--ink); }
.cmp td { color: var(--muted); }
.cmp .yes { color: var(--orange-d); font-weight: 600; }
.cmp .no { color: var(--muted-2); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: grid; gap: 10px; max-width: 46rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  box-shadow: var(--shadow-xs);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p {
  color: var(--muted);
  padding-bottom: 20px;
  max-width: 62ch;
  font-size: 0.98rem;
}

/* ==========================================================================
   Prose (juridiske sider, hjælp)
   ========================================================================== */

.prose { max-width: var(--max-prose); }
.prose h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
}
.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 8px;
}
.prose p, .prose li { color: var(--muted); }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; display: grid; gap: 6px; }
.prose ol { list-style: decimal; padding-left: 22px; margin-bottom: 18px; display: grid; gap: 6px; }
.prose a { color: var(--orange-d); font-weight: 500; }
.prose strong { color: var(--ink); }
.prose-meta {
  font-size: 0.88rem;
  color: var(--muted-2);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Formularer
   ========================================================================== */

.form-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span, .field > label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(23, 23, 23, 0.14);
  border-radius: 12px;
  background: var(--canvas-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: 0.8rem; color: var(--muted-2); font-weight: 400; }
.form-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 10px; text-align: center; }
.form-note a { color: var(--ink); font-weight: 600; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-list { display: grid; gap: 22px; margin-top: 26px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  line-height: 0;
}
.contact-item > div { display: grid; gap: 2px; }
.contact-item strong { display: block; font-family: var(--display); font-weight: 600; line-height: 38px; }
.contact-item > div span,
.contact-item > div a { display: block; color: var(--muted); font-size: 0.94rem; text-decoration: none; }
.contact-item a:hover { color: var(--orange-d); }
.form-error { color: #b42318; font-size: 0.92rem; margin: 0 0 14px; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Endelig CTA
   ========================================================================== */

.final-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--canvas-soft);
}
.final-cta-inner h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  max-width: 20ch;
  margin: 0 auto 14px;
  text-wrap: balance;
}
.final-cta-inner > p { color: var(--muted); margin-bottom: 8px; }
.final-cta .hero-actions { justify-content: center; }

/* Tilvalg under “Det koster ikke ekstra” */
.addon-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 28px;
  align-items: center;
  max-width: 820px;
  margin: 8px auto 36px;
  padding: 22px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  text-align: left;
}
.addon-kicker {
  margin: 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--orange-l);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.addon-copy h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.addon-copy p {
  margin: 0;
  color: var(--muted);
}
.addon-price {
  margin: 0;
  white-space: nowrap;
}
.addon-price b {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.addon-price span {
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 700px) {
  .addon-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--canvas);
  padding: 64px 0 36px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px 28px;
}
.foot-brand .wordmark { font-size: 1.35rem; }
.foot-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 28ch;
}
.foot-brand .btn { margin-top: 20px; }
.foot-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-family: var(--body);
  margin-bottom: 14px;
}
.foot-col ul { display: grid; gap: 9px; }
.foot-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
}
.foot-col a:hover { color: var(--ink); }
.foot-meta {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 0.85rem;
}
.foot-meta nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { color: var(--ink); }

/* ==========================================================================
   Modal (demo-booking) — ingen alert()/confirm()
   ========================================================================== */

body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.45);
  backdrop-filter: blur(4px);
}
.modal-dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(23, 23, 23, 0.06);
  padding: 32px 28px 28px;
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  border-radius: 50%;
}
.modal-close:hover { background: var(--canvas); color: var(--ink); }
.modal-dialog h2 { font-size: 1.55rem; margin-bottom: 8px; }
.modal-lede { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.modal-success { text-align: center; padding: 12px 4px 4px; }
.modal-success[hidden] { display: none !important; }
.modal-success-ico {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
}
.modal-success h2 { font-size: 1.35rem; max-width: 22ch; margin-inline: auto; }
.modal-success p { color: var(--muted); font-size: 0.95rem; margin: 10px 0 22px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivt
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-split h1 { max-width: 18ch; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .benefit { border-right: 0; padding: 12px 16px; border-bottom: 1px dotted rgba(23,23,23,0.12); }
  .benefit:nth-child(odd) { border-right: 1px dotted rgba(23,23,23,0.12); }
  .feature-grid { gap: 36px; }
  .case-card { gap: 32px; padding: 36px; }
  .quote-grid { grid-template-columns: 1fr 1fr; }
  /* Fire pakker bliver to og to. */
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
  .price-card-featured { padding-top: 52px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 820px) {
  .wrap, .wrap-wide { width: min(var(--max), calc(100% - 32px)); }
  .nav-pill {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: calc(100% - 16px);
    padding: 6px 6px 6px 12px;
    border-radius: 18px;
  }
  .wordmark { font-size: 1.22rem; }
  .nav-cta { margin-left: auto; gap: 4px; }
  .nav-links { display: none; }
  .nav-cta .login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1;
    padding: 8px 9px;
    border-radius: var(--radius-pill);
    border: 1.5px solid color-mix(in srgb, var(--text) 16%, transparent);
    background: var(--white);
    white-space: nowrap;
  }
  .nav-cta .btn-ink { padding: 8px 11px; font-size: 0.8rem; }
  .nav-pill.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--white);
    padding: 12px 18px 18px;
    gap: 2px;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-soft);
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-pill.is-open .nav-links a,
  .nav-pill.is-open .nav-links .nav-trigger {
    padding: 11px 8px;
    font-size: 1.02rem;
    color: var(--ink);
    justify-content: space-between;
    width: 100%;
  }
  .nav-toggle { display: block; flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; }
  .mega {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px;
    opacity: 1;
    visibility: visible;
    display: none;
    background: transparent;
  }
  .nav-trigger[aria-expanded="true"] + .mega { display: block; transform: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .mega a span { display: none; }
  .mega-foot { display: none; }
  .hero { padding: 40px 0 24px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { border-right: 0 !important; border-bottom: 1px dotted rgba(23,23,23,0.12); padding: 16px 0; }
  .feature-grid, .feature-grid-reverse { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid-reverse .feature-text,
  .feature-grid-reverse .feature-media { order: unset; }
  .case-card { grid-template-columns: 1fr; padding: 28px 24px; border-radius: 22px; }
  .case-stats {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
  }
  .quote-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; }
  .price-cycle { width: 100%; }
  .price-cycle button { flex: 1; justify-content: center; padding: 9px 12px; font-size: 0.88rem; }
  .price-cycle .save { font-size: 0.68rem; padding: 2px 6px; }
  .beat { min-height: 44vh; padding: 44px 0; }
  .beat h2 { max-width: 13ch; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .feature-band { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
