/* =========================================================================
   Læsegnist · designforslag, runde 1
   Fælles stilark for oversigt, forside, forløb og logo.
   NB: Mockup til at vurdere designet. I det rigtige projekt bliver tokens
   til src/styles/tokens.css og blokkene til Astro-komponenter.
   ========================================================================= */

/* 1. Design tokens ---------------------------------------------------------- */
:root {
  --ink: #14233a;
  --text: #2b3442;
  --muted: #5b6675;
  --paper: #fffbf3;
  --paper-2: #f3eee3;
  --blue: #2d68af;
  --blue-deep: #1c4a85;
  --blue-soft: #e4eefa;
  --spark: #f8c838;
  --spark-soft: #fff3c4;
  --coral: #ee7b5e;
  --line: rgb(20 35 58 / 0.12);

  --font-body: "Lexend", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-heading: var(--font-serif);
  --heading-weight: 620;
  --heading-tracking: -0.012em;
  --heading-vars: "SOFT" 100, "WONK" 0;

  --fs-body: clamp(1.125rem, 1.09rem + 0.18vw, 1.1875rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.27rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.9vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.75rem + 3.3vw, 3.75rem);

  --radius-lg: 28px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 14px -6px rgb(20 35 58 / 0.16);
  --shadow: 0 12px 32px -12px rgb(20 35 58 / 0.22);
  --shadow-lg: 0 28px 60px -24px rgb(20 35 58 / 0.32);

  --container: 1180px;
  --gutter: clamp(1rem, 0.55rem + 2vw, 2rem);
  --header-h: 76px;
  --section-y: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Alternativ: Lexend også til overskrifter (skiftes i "Designvalg") */
html[data-heading="lexend"] {
  --font-heading: var(--font-body);
  --heading-weight: 600;
  --heading-tracking: -0.025em;
  --heading-vars: normal;
}

/* 2. Base ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) {
    scroll-behavior: smooth;
  }
}

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-variation-settings: var(--heading-vars);
  letter-spacing: var(--heading-tracking);
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.05;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
}

strong,
b {
  font-weight: 600;
  color: var(--ink);
}

a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

::selection {
  background: var(--spark-soft);
  color: var(--ink);
}

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

.on-dark {
  color: #fff;
}

.on-dark :focus-visible {
  outline-color: var(--spark);
}

.on-dark strong,
.on-dark h2,
.on-dark h3 {
  color: inherit;
}

/* 3. Layout og hjælpeklasser ------------------------------------------------ */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--paper-2);
}

.section--soft {
  background: var(--blue-soft);
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(2.25rem, 1.6rem + 2.5vw, 3.75rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center p {
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  font-variation-settings: normal;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.eyebrow .icon--fill {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--spark);
}

.on-dark .eyebrow {
  color: var(--spark-soft);
}

.draft-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #fde3da;
  color: #8a2e17;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.badge .icon {
  width: 1rem;
  height: 1rem;
}

/* 4. Knapper og links --------------------------------------------------------- */
.btn {
  --btn-bg: var(--spark);
  --btn-fg: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1.0625rem/1.25 var(--font-body);
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgb(20 35 58 / 0.45);
  cursor: pointer;
  transition:
    transform 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out),
    background-color 0.18s,
    border-color 0.18s;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgb(20 35 58 / 0.5);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary:hover {
  --btn-bg: #ffd65a;
}

.btn--blue {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
}

.btn--blue:hover {
  --btn-bg: var(--blue-deep);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--blue-deep);
  --btn-border: rgb(28 74 133 / 0.35);
  box-shadow: none;
}

.btn--ghost:hover {
  --btn-bg: var(--blue-soft);
  --btn-border: var(--blue-deep);
  box-shadow: none;
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  font-size: 1rem;
}

.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.btn--primary .btn-spark {
  color: var(--blue-deep);
}

.btn:hover .btn-spark {
  animation: glimmer 0.6s var(--ease-out);
}

.btn .icon-arrow {
  transition: transform 0.2s var(--ease-out);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow span {
  text-decoration: underline;
  text-decoration-color: rgb(45 104 175 / 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.link-arrow:hover span {
  text-decoration-color: currentColor;
}

.link-arrow .icon {
  transition: transform 0.2s var(--ease-out);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

.on-dark .link-arrow,
.on-dark .link-arrow:hover {
  color: #fff;
}

.on-dark .link-arrow span {
  text-decoration-color: rgb(255 255 255 / 0.45);
}

/* 5. Logo (mockup: tekst + SVG – konverteres til paths i fase 4) -------------- */
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--blue);
  line-height: 1;
  white-space: nowrap;
}

.logo-variant {
  display: none;
}

html:not([data-logo="b"]):not([data-logo="c"]) .logo--a.logo-variant,
html[data-logo="b"] .logo--b.logo-variant,
html[data-logo="c"] .logo--c.logo-variant {
  display: inline-flex;
}

/* A · Gnisten: gnist-figuren står på æ'et */
.wm-a {
  padding-top: 0.42em;
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 1.9em;
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  letter-spacing: -0.012em;
}

.wm-a-ae {
  position: relative;
  display: inline-block;
}

.gnist-fig {
  position: absolute;
  bottom: 0.5em;
  left: calc(50% - 0.41em);
  width: 0.82em;
  height: 0.82em;
  overflow: visible;
}

/* B · Bogen: gnisten springer op af en åben bog */
.logo--b {
  gap: 0.4em;
}

.logo-book {
  width: 2.45em;
  height: 2.45em;
  color: var(--blue);
  overflow: visible;
}

.wm-b {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 1.62em;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.wm-b > span {
  color: var(--ink);
}

/* C · Prikken over i'et: gnisten er i'ets prik */
.wm-c {
  color: var(--blue-deep);
  font-family: var(--font-body);
  font-size: 1.8em;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.wm-c-i {
  position: relative;
  display: inline-block;
}

.i-spark {
  position: absolute;
  top: -0.06em;
  left: calc(50% - 0.165em);
  width: 0.36em;
  height: 0.36em;
  fill: var(--spark);
  stroke: #e3a90f;
  stroke-width: 0.6;
  overflow: visible;
}

.on-dark .wm-a,
.on-dark .wm-c {
  color: #fff;
}

.on-dark .wm-b {
  color: var(--spark-soft);
}

.on-dark .wm-b > span {
  color: #fff;
}

.on-dark .logo-book {
  color: #fff;
}

.on-dark .i-spark {
  stroke: none;
}

/* Gnisten tændes ved load og glimter ved hover */
.logo-spark {
  transform-origin: 50% 55%;
}

g.logo-spark {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.logo-spark.is-igniting {
  animation: ignite 0.8s 0.2s var(--ease-out) both;
}

.brand:hover .logo-spark:not(.is-igniting),
.logo-hover:hover .logo-spark:not(.is-igniting) {
  animation: glimmer 0.7s var(--ease-out);
}

@keyframes ignite {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-120deg);
    filter: drop-shadow(0 0 0 rgb(248 200 56 / 0));
  }
  55% {
    opacity: 1;
    transform: scale(1.25) rotate(12deg);
    filter: drop-shadow(0 0 10px rgb(248 200 56 / 0.95));
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgb(248 200 56 / 0));
  }
}

@keyframes glimmer {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgb(248 200 56 / 0));
  }
  45% {
    transform: scale(1.18) rotate(-12deg);
    filter: drop-shadow(0 0 8px rgb(248 200 56 / 0.9));
  }
}

/* 6. Header og menu ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  height: var(--header-h);
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 8px 28px -18px rgb(20 35 58 / 0.45);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
}

html.menu-open .site-header {
  background: var(--paper);
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-inner .brand {
  margin-right: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.3rem;
  left: 0.8rem;
  height: 3px;
  border-radius: 3px;
  background: var(--spark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: 0.5rem;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.2s;
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

html.menu-open .menu-toggle-bars {
  background: transparent;
}

html.menu-open .menu-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

html.menu-open .menu-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: calc(var(--header-h) + 1.25rem) var(--gutter) 2rem;
  overflow-y: auto;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0s 0.3s;
}

html.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0s;
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: var(--heading-weight);
  font-variation-settings: var(--heading-vars);
  letter-spacing: var(--heading-tracking);
  text-decoration: none;
}

html.menu-open .mobile-menu li {
  animation: reveal-up 0.45s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 55ms + 80ms);
}

.mobile-menu li .icon {
  color: var(--blue);
}

.mobile-menu-foot {
  display: grid;
  gap: 1rem;
  margin-top: auto;
}

.mobile-menu-contact {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 959px) {
  .js .main-nav,
  .js .header-cta {
    display: none;
  }

  .js .menu-toggle {
    display: inline-grid;
  }

  html:not(.js) .site-header {
    height: auto;
    padding-block: 0.75rem;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
  }
}

@media (min-width: 960px) {
  .mobile-menu {
    display: none;
  }
}

/* 7. Dekoration: bølger, svævende bogstaver og gnister ----------------------- */
.wave {
  position: absolute;
  left: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: clamp(28px, 4vw, 64px);
  color: var(--paper);
  pointer-events: none;
}

.wave path {
  fill: currentColor;
}

.wave--top {
  top: -1px;
}

.wave--bottom {
  bottom: -1px;
}

.float-letters {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.float-letters span {
  position: absolute;
  color: var(--blue);
  font-family: var(--font-serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  line-height: 1;
  opacity: 0.055;
  animation: drift 26s ease-in-out infinite alternate;
}

.on-dark .float-letters span {
  color: #fff;
  opacity: 0.07;
}

@keyframes drift {
  from {
    transform: translate(0, 0) rotate(-6deg);
  }
  to {
    transform: translate(18px, -26px) rotate(6deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(0.84) rotate(14deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.twinkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 4s ease-in-out infinite;
}

/* 8. Scroll-reveal (kun når JS kører – ellers er alt synligt) ---------------- */
.js [data-reveal]:not(.is-visible) {
  opacity: 0;
}

.js [data-reveal].is-visible {
  animation: reveal-up 0.6s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 75ms);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (max-width: 700px) {
  .js [data-stagger] > [data-reveal].is-visible {
    animation-delay: 0ms;
  }
}

/* 9. Forside ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(1.5rem, 0.5rem + 3vw, 3.5rem) clamp(4rem, 2.5rem + 5vw, 6.5rem);
  overflow: clip;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    align-items: center;
    min-height: calc(100svh - var(--header-h));
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.hero-title {
  margin-bottom: 1.5rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

html[data-heading="lexend"] .hero-title {
  font-variation-settings: normal;
}

.hero-title .eyebrow {
  display: flex;
  margin-bottom: 1.1rem;
}

.hero-title-main {
  display: block;
}

.marker {
  padding-bottom: 0.04em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16C70 7 160 5 296 12' fill='none' stroke='%23F8C838' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat left 98% / 100% 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: marker-draw 1s 0.35s var(--ease-out) both;
}

@keyframes marker-draw {
  from {
    background-size: 0% 0.3em;
  }
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: var(--fs-lead);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust .icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.22rem;
  border-radius: 50%;
  background: var(--spark-soft);
  color: var(--blue-deep);
  stroke-width: 2.6;
}

.hero-art {
  position: relative;
}

.hero-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-photo {
  position: relative;
  display: none;
  max-width: 34rem;
  margin: 0 auto;
}

html[data-hero="photo"] .hero-photo {
  display: block;
}

html[data-hero="photo"] .hero-illustration {
  display: none;
}

.hero-photo-frame {
  overflow: hidden;
  aspect-ratio: 1 / 1.08;
  border-radius: 48% 52% 44% 56% / 44% 46% 54% 56%;
  background: var(--blue-soft);
  box-shadow: var(--shadow-lg);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  filter: saturate(1.06) sepia(0.05);
}

.float-card {
  position: absolute;
  bottom: 6%;
  left: -2%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 17.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 1rem;
  line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}

.float-card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 12px;
  background: var(--blue);
  color: var(--spark);
}

.float-card strong {
  display: block;
}

.float-card small {
  color: var(--muted);
  font-size: 0.9375rem;
}

.photo-sparks {
  position: absolute;
  top: -4%;
  right: -2%;
  width: 26%;
  overflow: visible;
}

/* Hero-illustration: bogstaver og gnister svæver op af bogen */
.hero-illustration text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
}

.rise {
  transform-box: fill-box;
  transform-origin: center;
  animation: rise var(--dur, 8s) var(--d, 0s) infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translate(0, 70px) scale(0.6) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 0px), -60px) scale(1.05) rotate(var(--rot, 25deg));
  }
}

.hero-sun-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation:
    ignite 0.9s 0.35s var(--ease-out) both,
    twinkle 5s 1.5s ease-in-out infinite;
}

/* Citat-bånd */
.quote-band {
  position: relative;
  overflow: clip;
  padding-block: calc(var(--section-y) + 2.5rem);
  background:
    radial-gradient(60% 90% at 88% 10%, rgb(45 104 175 / 0.95), transparent 70%),
    var(--blue-deep);
}

.quote-inner {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  text-align: center;
}

.quote-mark {
  display: block;
  width: 3.75rem;
  height: 2.8rem;
  margin: 0 auto 1.5rem;
  color: var(--spark);
  fill: currentColor;
}

.quote {
  margin: 0;
}

.quote-text {
  max-width: 24ch;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem);
  font-weight: 560;
  font-variation-settings: var(--heading-vars);
  letter-spacing: var(--heading-tracking);
  line-height: 1.18;
  text-wrap: balance;
}

html[data-heading="lexend"] .quote-text {
  font-weight: 500;
}

.quote-sub {
  max-width: 46ch;
  margin: 0 auto 1.75rem;
  color: rgb(255 255 255 / 0.9);
  font-size: var(--fs-lead);
}

/* Problemet */
.problem-grid {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.problem-text h2 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
}

.goal {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--spark);
  border-radius: 0 16px 16px 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* Bogstavklods-trappe: l-æ-s-e + gnist */
.tile-stairs {
  --tile: clamp(3.4rem, 2.3rem + 4.2vw, 5.4rem);
  --gap: clamp(0.35rem, 0.2rem + 0.6vw, 0.6rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--gap);
}

.js .tile-stairs[data-reveal] {
  opacity: 1;
}

.tile-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
}

.tile {
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  border: 2px solid rgb(28 74 133 / 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 0 rgb(28 74 133 / 0.1);
  color: var(--blue-deep);
  font-family: var(--font-serif);
  font-size: calc(var(--tile) * 0.54);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  line-height: 1;
}

.tile--blank {
  border-color: transparent;
  background: var(--blue-soft);
  box-shadow: none;
}

.tile--warm {
  background: var(--spark-soft);
}

.tile-mascot {
  display: block;
  width: calc(var(--tile) * 0.95);
  height: calc(var(--tile) * 0.95);
  margin-bottom: -0.2rem;
}

.tile-mascot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.js .tile-stairs:not(.is-visible) .tile,
.js .tile-stairs:not(.is-visible) .tile-mascot {
  opacity: 0;
}

.js .tile-stairs.is-visible .tile,
.js .tile-stairs.is-visible .tile-mascot {
  animation: tile-pop 0.55s var(--ease-spring) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes tile-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.8);
  }
}

/* Om Mette */
.about-grid {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.portrait {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 27rem;
  margin: 0 auto;
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 46% 54% 42% 58% / 40% 42% 58% 60%;
  background: var(--blue-soft);
  box-shadow: var(--shadow-lg);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  filter: saturate(1.04) sepia(0.06);
}

.portrait-blob {
  position: absolute;
  right: -7%;
  bottom: -5%;
  z-index: -1;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--spark-soft);
}

.portrait-badge {
  position: absolute;
  bottom: 9%;
  left: -3%;
  display: grid;
  place-content: center;
  width: clamp(7.5rem, 6rem + 4vw, 9rem);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.portrait-badge .num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 2.8rem);
  font-weight: 650;
  font-variation-settings: var(--heading-vars);
  line-height: 1;
}

.deco-spark {
  position: absolute;
  top: 3%;
  right: 6%;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--spark);
  fill: currentColor;
  overflow: visible;
}

.about-text .btn {
  margin-top: 1rem;
}

/* Fordele */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  background: var(--spark-soft);
  color: var(--blue-deep);
}

.benefit-icon .icon {
  width: 1.85rem;
  height: 1.85rem;
}

.card:hover .benefit-icon .icon {
  animation: glimmer 0.6s var(--ease-out);
}

/* For alle · Modulbaseret · Velafprøvet */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pillar-art {
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1.25rem;
  overflow: visible;
}

.pillar p {
  flex: 1;
}

.pillar .link-arrow {
  margin-top: 1.25rem;
}

/* Sådan kommer du i gang */
.steps-list {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-list::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    right: 16.66%;
    left: 16.66%;
    border-top: 3px dashed rgb(45 104 175 / 0.4);
    transform-origin: left;
    transition: transform 1.3s var(--ease-out) 0.3s;
  }

  .js .steps-list:not(.is-visible)::before {
    transform: scaleX(0);
  }
}

.step {
  position: relative;
  text-align: center;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px var(--paper-2);
  color: var(--blue-deep);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 650;
  font-variation-settings: var(--heading-vars);
  line-height: 1;
}

.step .badge {
  margin-bottom: 0.75rem;
}

.step p {
  max-width: 32ch;
  margin-inline: auto;
}

.center {
  text-align: center;
}

/* CTA-kort */
.cta {
  padding-block: var(--section-y);
}

.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 4.5rem);
  border-radius: clamp(24px, 1rem + 2vw, 40px);
  background: var(--blue-deep);
}

.cta-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgb(20 35 58 / 0.95) 0%, rgb(28 74 133 / 0.9) 50%, rgb(28 74 133 / 0.4) 100%);
}

.cta-card h2 {
  max-width: 17ch;
  margin-bottom: 1.75rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.cta-phone:hover {
  color: var(--spark-soft);
}

.cta-sparks {
  position: absolute;
  top: 12%;
  right: 6%;
  width: clamp(5rem, 3rem + 8vw, 10rem);
  overflow: visible;
}

@media (max-width: 700px) {
  .cta-card::before {
    background: linear-gradient(180deg, rgb(20 35 58 / 0.93), rgb(28 74 133 / 0.86));
  }

  .cta-sparks {
    display: none;
  }
}

/* Footer */
.site-footer {
  position: relative;
  padding: clamp(5rem, 4rem + 4vw, 7rem) 0 2rem;
  background: var(--blue-deep);
  color: rgb(255 255 255 / 0.88);
  font-size: 1.0625rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 2.5rem;
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.2fr 1.25fr 0.8fr;
  }
}

.footer-brand .brand {
  font-size: 1.05rem;
}

.footer-tagline {
  max-width: 21ch;
  margin-top: 1.5rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  font-variation-settings: var(--heading-vars);
  line-height: 1.3;
}

.footer-title {
  margin: 0 0 1rem;
  color: var(--spark-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  font-variation-settings: normal;
  letter-spacing: 0.02em;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--spark-soft);
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
  max-width: 18rem;
}

.hours li span {
  white-space: nowrap;
}

.site-footer address {
  font-style: normal;
  line-height: 1.75;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.2);
  color: rgb(255 255 255 / 0.78);
  font-size: 0.9375rem;
}

.footer-bottom ul {
  display: flex;
  gap: 1.25rem;
}

/* 10. Forløb ------------------------------------------------------------------ */
.page-hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(1.5rem, 0.5rem + 3vw, 3.5rem) clamp(3.5rem, 2rem + 4vw, 5.5rem);
}

.page-hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.page-hero h1 {
  font-size: clamp(2.75rem, 1.8rem + 4vw, 4.5rem);
}

.book-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  background: #8ec3ea;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.book-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
}

.media-split {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .media-split {
    grid-template-columns: 1fr 1.05fr;
  }
}

.figure-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.figure-card figcaption {
  padding: 0.85rem 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.fact {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.fact-value {
  display: block;
  color: var(--blue-deep);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: var(--heading-weight);
  font-variation-settings: var(--heading-vars);
  letter-spacing: var(--heading-tracking);
  line-height: 1.1;
}

.fact-label {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.common-note {
  max-width: 64ch;
}

/* Interaktiv læsetrappe */
.stairs {
  margin: clamp(4rem, 3rem + 3vw, 5.5rem) 0 1.25rem;
}

.js .stairs[data-reveal] {
  opacity: 1;
}

.stairs-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  height: clamp(21rem, 18rem + 6vw, 23rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stair {
  position: relative;
  height: calc(var(--h) * 25%);
}

.stair-link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: clamp(0.6rem, 0.35rem + 1vw, 1.15rem);
  border-radius: 18px 18px 0 0;
  background: var(--stair-bg);
  color: var(--ink);
  text-decoration: none;
  transition:
    background-color 0.25s,
    color 0.25s,
    transform 0.25s var(--ease-out);
}

.stair:nth-child(1) {
  --stair-bg: #e4eefa;
}

.stair:nth-child(2) {
  --stair-bg: #d4e4f7;
}

.stair:nth-child(3) {
  --stair-bg: #c3d8f2;
}

.stair:nth-child(4) {
  --stair-bg: #b1ccec;
}

.stair-link:hover {
  color: var(--ink);
  transform: translateY(-4px);
}

.stair.is-active .stair-link {
  background: var(--blue);
  color: #fff;
}

.stair-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  font-weight: var(--heading-weight);
  font-variation-settings: var(--heading-vars);
  line-height: 1;
}

.stair-name {
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
  font-weight: 600;
  line-height: 1.2;
}

.stair-mascot {
  position: absolute;
  bottom: 100%;
  left: calc(50% - 1.75rem);
  width: 3.5rem;
  height: 3.5rem;
  opacity: 0;
  transform: translateY(10px) scale(0.4);
  transition:
    opacity 0.25s,
    transform 0.5s var(--ease-spring);
  pointer-events: none;
}

.stair-mascot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stair.is-active .stair-mascot {
  opacity: 1;
  transform: none;
}

.js .stairs:not(.is-visible) .stair {
  clip-path: inset(100% 0 0 0);
}

.js .stairs .stair {
  transition: clip-path 0.8s var(--ease-out);
  transition-delay: calc(var(--h) * 120ms);
}

.stairs-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.stairs-hint .icon {
  color: var(--blue);
}

/* Moduler som harmonika (virker uden JS) */
.modules {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.module {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}

.module[open] {
  box-shadow: var(--shadow);
}

.module summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem clamp(1rem, 0.75rem + 1vw, 1.6rem);
  border-radius: var(--radius);
  list-style: none;
  cursor: pointer;
}

.module summary::-webkit-details-marker {
  display: none;
}

.module-num {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 650;
  font-variation-settings: var(--heading-vars);
  transition:
    background-color 0.25s,
    color 0.25s;
}

.module[open] .module-num {
  background: var(--blue);
  color: #fff;
}

.module-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.module-heading h3 {
  margin: 0;
}

.module-kicker {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  font-variation-settings: normal;
  letter-spacing: 0;
}

.chevron {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--blue-deep);
  transition: transform 0.3s var(--ease-out);
}

.module[open] .chevron {
  transform: rotate(180deg);
}

.module-body {
  display: grid;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 0.75rem + 1vw, 1.6rem) 1.75rem;
}

@media (min-width: 900px) {
  .module-body {
    padding-left: calc(1.6rem + 3.25rem + 1rem);
  }

  .module-cols {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.module-cols {
  display: grid;
  gap: 1.5rem;
}

.list-title {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variation-settings: normal;
  letter-spacing: 0;
}

.spark-list,
.check-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spark-list li,
.check-list li {
  position: relative;
  padding-left: 1.9rem;
}

.spark-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  background: center / contain no-repeat;
}

.spark-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-11 -11 22 22'%3E%3Cpath d='M0-10C1.3-2.9 2.9-1.3 10 0 2.9 1.3 1.3 2.9 0 10-1.3 2.9-2.9 1.3-10 0-2.9-1.3-1.3-2.9 0-10Z' fill='%23F8C838' stroke='%23D99A00' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D68AF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.prereq {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

@supports (interpolate-size: allow-keywords) {
  .module {
    interpolate-size: allow-keywords;
  }

  .module::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.45s var(--ease-out),
      content-visibility 0.45s allow-discrete;
  }

  .module[open]::details-content {
    block-size: auto;
  }
}

/* 11. Oversigt og logo-side --------------------------------------------------- */
.doc-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgb(255 251 243 / 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.doc-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 4rem;
  padding-block: 0.5rem;
}

.doc-bar-title {
  color: var(--ink);
  font-weight: 600;
}

.doc-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 1rem;
}

.doc-bar nav a {
  font-weight: 500;
  text-decoration: none;
}

.doc-bar nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--spark);
  text-decoration-thickness: 3px;
}

.doc-hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.doc-hero h1 {
  max-width: 18ch;
}

.doc-section {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--line);
}

.doc-section > h2 {
  margin-bottom: 0.4em;
}

.doc-section > p {
  margin-bottom: 1.75rem;
}

.proposal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  margin: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem);
  padding: 0;
  list-style: none;
}

.proposal-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 1.25rem 1.25rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.proposal-card:hover {
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.proposal-card h2 {
  margin: 0.6rem 0 0;
  font-size: var(--fs-h3);
}

.proposal-card p {
  margin: 0;
  font-size: 1.0625rem;
}

.proposal-card .link-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
}

.proposal-thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--blue-soft);
}

.proposal-thumb svg {
  width: 100%;
  height: 100%;
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.principle h3 {
  font-size: 1.25rem;
}

.principle p {
  margin: 0;
  font-size: 1.0625rem;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.swatch {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.swatch-color {
  height: 5.5rem;
}

.swatch-meta {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.swatch-meta strong {
  display: block;
  font-size: 1rem;
}

.swatch-meta code {
  color: var(--muted);
  font-size: 0.875rem;
}

.contrast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.contrast-table th,
.contrast-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.contrast-table th {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.sample {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
}

.level {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.level[data-level="AAA"] {
  background: #dff3e4;
  color: #1d5a2e;
}

.level[data-level="AA"] {
  background: #e7f0fb;
  color: var(--blue-deep);
}

.level[data-level="Kun pynt"] {
  background: #fde3da;
  color: #8a2e17;
}

.table-wrap {
  overflow-x: auto;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.specimen {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.spec-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.spec-heading {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1.1;
}

.spec-heading--fraunces {
  font-family: var(--font-serif);
  font-weight: 620;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.012em;
}

.spec-heading--lexend {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.spec-alphabet {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.element-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.icon-row li {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  width: 6.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.choices {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0;
  padding-left: 1.4rem;
}

/* Logo-side */
.current-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px dashed rgb(20 35 58 / 0.25);
  border-radius: var(--radius);
}

.current-logo img {
  width: 13rem;
}

.current-logo p {
  flex: 1 1 18rem;
  margin: 0;
  font-size: 1.0625rem;
}

.logo-option {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--line);
}

.option-head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.option-letter {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: 16px;
  background: var(--spark);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 650;
  font-variation-settings: "SOFT" 100;
}

.option-head h2 {
  margin-bottom: 0.25em;
}

.logo-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.logo-tile {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 13rem;
  padding: 2.5rem 1.5rem 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.logo-tile--hero {
  grid-column: 1 / -1;
  min-height: 17rem;
  background: var(--paper);
}

.logo-tile--dark {
  border-color: transparent;
  background: var(--blue-deep);
}

.logo-tile--soft {
  background: var(--blue-soft);
}

.tile-label {
  position: absolute;
  bottom: 0.9rem;
  left: 1.1rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.logo-tile--dark .tile-label {
  color: rgb(255 255 255 / 0.75);
}

.stack {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}

.stack-tag {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.icon-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1.1rem;
}

.icon-sizes figure {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.tab-mock {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 -1px 0 var(--line), 0 6px 18px -10px rgb(20 35 58 / 0.3);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
}

.tab-strip {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6rem 0.75rem 0;
  border-radius: 14px 14px 0 0;
  background: #dfe3ea;
}

.tab-mock span:last-child {
  color: var(--muted);
}

.option-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem 2rem;
  margin-top: 1.75rem;
}

.option-notes h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variation-settings: normal;
  letter-spacing: 0;
}

.option-notes ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.0625rem;
}

.mini-headers {
  display: grid;
  gap: 1rem;
}

.mini-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.mini-header .logo {
  font-size: 0.95rem;
  margin-right: auto;
}

.mini-nav {
  display: flex;
  gap: 1.1rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 700px) {
  .mini-nav {
    display: none;
  }
}

/* 12. Designvalg-panel og toast (kun i forslaget) ---------------------------- */
.design-panel {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
}

.dp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #14233a;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.45);
  color: #fff;
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
}

.dp-toggle .icon--fill {
  width: 16px;
  height: 16px;
  color: var(--spark);
}

.dp-body {
  display: grid;
  gap: 12px;
  width: min(280px, calc(100vw - 24px));
  padding: 16px;
  border-radius: 18px;
  background: #14233a;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.5);
}

.design-panel[data-open="false"] .dp-body {
  display: none;
}

.dp-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.dp-group {
  display: grid;
  gap: 6px;
}

.dp-label {
  color: rgb(255 255 255 / 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dp-options {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.09);
}

.dp-options button {
  flex: 1;
  padding: 7px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font: 500 13px/1.15 var(--font-body);
  cursor: pointer;
}

.dp-options button:hover {
  background: rgb(255 255 255 / 0.1);
}

.dp-options button[aria-pressed="true"] {
  background: var(--spark);
  color: #14233a;
  font-weight: 600;
}

.dp-note {
  margin: 0;
  color: rgb(255 255 255 / 0.6);
  font-size: 12px;
}

.design-panel :focus-visible {
  outline-color: var(--spark);
}

.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  z-index: 95;
  max-width: min(30rem, calc(100vw - 32px));
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.25s,
    transform 0.3s var(--ease-out);
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 13. Reduceret bevægelse og fallback ---------------------------------------- */
.no-reveal [data-reveal],
.no-reveal .tile-stairs .tile,
.no-reveal .tile-stairs .tile-mascot {
  opacity: 1 !important;
}

.no-reveal .stairs .stair {
  clip-path: none !important;
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

html[data-motion="off"] [data-reveal],
html[data-motion="off"] .tile-stairs .tile,
html[data-motion="off"] .tile-stairs .tile-mascot {
  opacity: 1 !important;
}

html[data-motion="off"] .stairs .stair {
  clip-path: none !important;
}

html[data-motion="off"] .steps-list::before {
  transform: none !important;
}

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

  [data-reveal],
  .tile-stairs .tile,
  .tile-stairs .tile-mascot {
    opacity: 1 !important;
  }

  .stairs .stair {
    clip-path: none !important;
  }

  .steps-list::before {
    transform: none !important;
  }
}
