/* Kørebog — website styles.
   One file, no framework, no build step. Mobile first.
   Palette comes from the v1.0 app icon: ink #1A2130 (gradient
   #232C3E → #141922), white route, green destination #2D9F79. */

:root {
  --ink: #1a2130;
  --ink-2: #474f5f;
  --ink-3: #626a79;
  --paper: #faf8f4;
  --surface: #ffffff;
  --line: #e6e1d7;
  --line-strong: #d6d0c4;
  --green: #1f6f54;
  --green-dot: #2d9f79;
  --green-tint: #e7f1ec;
  --band: #1a2130;
  --band-ink: #f2f3f6;
  --band-ink-2: #b9c0cc;
  --band-line: #2d3647;
  --shadow: 0 1px 2px rgb(20 25 34 / 0.06), 0 8px 28px rgb(20 25 34 / 0.08);
  --radius: 16px;
  --header-h: 60px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0f4;
    --ink-2: #bcc2cd;
    --ink-3: #959dac;
    --paper: #12161e;
    --surface: #1a2130;
    --line: #262e3c;
    --line-strong: #343d4e;
    --green: #5fc79f;
    --green-dot: #2d9f79;
    --green-tint: #173029;
    --band: #1c2432;
    --band-line: #323c4f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 28px rgb(0 0 0 / 0.35);
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

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

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

h1, h2, h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.35rem + 4.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.008em;
  font-weight: 650;
}

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 720px) {
  .wrap { padding-inline: 32px; }
}

.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: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--paper) 80%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  flex: none;
  width: 30px;
  max-width: none;
  height: 30px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.08);
}

.brand-name { display: none; }

@media (min-width: 480px) {
  .brand-name { display: inline; }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.site-nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 374px) {
  .site-header .wrap { gap: 4px; padding-inline: 14px; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 0 5px; font-size: 0.8125rem; }
  .site-header .lang summary { padding: 0 5px; }
  .site-header .lang summary svg { display: none; }
}

/* Language menu: <details>, so it works without JavaScript. */
.lang { position: relative; }

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.lang summary svg { width: 10px; height: 10px; }
.lang[open] summary svg { transform: rotate(180deg); }

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 164px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.lang li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}
.lang li a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.lang li a[aria-current="true"]::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-dot);
}

.site-header .header-store { display: none; }

@media (min-width: 960px) {
  .site-header .header-store { display: block; flex: none; margin-left: 6px; }
  .site-header .header-store img { height: 36px; width: auto; max-width: none; }
}

/* ---------- App Store badge ---------- */

.store-badge {
  display: inline-block;
  border-radius: 9px;
  line-height: 0;
  transition: transform 120ms ease-out, opacity 120ms ease-out;
}
.store-badge:active { transform: scale(0.97); opacity: 0.9; }
.store-badge img { height: 52px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  .store-badge { transition: none; }
  .store-badge:active { transform: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 36px 0 56px; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    align-items: center;
  }
}

.hero h1 span { display: block; }

/* Danish compounds are long: let the Danish hero headline hyphenate
   instead of breaking mid-word on narrow screens. */
html[lang="da"] .hero h1 { -webkit-hyphens: auto; hyphens: auto; }

.app-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.app-id img {
  width: 64px;
  height: 64px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.1), 0 6px 18px rgb(20 25 34 / 0.16);
}

.app-id strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.app-id span {
  display: block;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.lede {
  max-width: 34rem;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
}

.cta-meta {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* The worked example beside the hero copy. */
.example {
  margin: 44px 0 0;
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .example { margin-top: 0; }
}

.example-label {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.example-route {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.example-route li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}

.example-route .pin {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.example-route .pin::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--surface);
}

.example-route li:first-child .pin::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -8px;
  left: 50%;
  width: 2.5px;
  margin-left: -1.25px;
  border-radius: 2px;
  background: var(--ink);
}

.example-route li:last-child .pin::before {
  width: 14px; height: 14px;
  margin-top: -2px;
  border: 0;
  background: var(--green-dot);
}

.example-route .place { font-weight: 600; }
.example-route .place small { display: block; color: var(--ink-3); font-size: 0.875rem; font-weight: 400; }
.example-route li:first-child .place { padding-bottom: 12px; }

.example dl { margin: 0; }

.example dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.example dt { color: var(--ink-2); }
.example dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.example dl .total dt { color: var(--ink); font-weight: 600; }
.example dl .total dd { font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; }

.example-note {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; border-top: 1px solid var(--line); }

@media (min-width: 900px) {
  .section { padding: 96px 0; }
}

.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 1.0625rem; }

/* How it works: three stops along a route, ending in the green dot. */
.steps {
  --step-gap: 28px;
  display: grid;
  gap: var(--step-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: step;
}

/* One route segment from each stop to the next, so the line ends at the green dot. */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: calc(-1 * var(--step-gap) + 6px);
  left: 11px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps li:last-child::before {
  background: var(--green-dot);
  border-color: var(--green-dot);
  color: #141922;
}

.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); }

@media (min-width: 820px) {
  .steps { --step-gap: 40px; grid-template-columns: repeat(3, 1fr); }
  .steps li { padding-left: 0; padding-top: 44px; }
  .steps li:not(:last-child)::after {
    top: 11px;
    bottom: auto;
    left: 30px;
    right: calc(-1 * var(--step-gap) + 6px);
    width: auto;
    height: 2px;
  }
}

/* Features: a plain two-column list with hairlines — no cards. */
.features {
  display: grid;
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
}

.features li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.features h3 { margin-bottom: 6px; }
.features p { color: var(--ink-2); }

.fit-note {
  max-width: 44rem;
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--green-tint);
  color: var(--ink);
  font-size: 0.9875rem;
}

/* Privacy band — the one dark moment, echoing the icon's ink ground. */
.band {
  padding: 64px 0;
  background: var(--band);
  color: var(--band-ink);
}

@media (min-width: 900px) {
  .band { padding: 96px 0; }
}

.band h2, .band h3 { color: var(--band-ink); }
.band .section-head p { color: var(--band-ink-2); }
.band a { color: #7dd8b3; }

.band-points {
  display: grid;
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) {
  .band-points { grid-template-columns: repeat(3, 1fr); }
}

.band-points li { padding: 22px 0; border-top: 1px solid var(--band-line); }
.band-points h3 { margin-bottom: 6px; }
.band-points p { color: var(--band-ink-2); }

.band-link { margin-top: 28px; }

/* Closing call to action */
.closing { padding: 72px 0 80px; text-align: center; }
.closing img.closing-icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.1), 0 6px 18px rgb(20 25 34 / 0.16);
}
.closing p { max-width: 32rem; margin: 14px auto 0; color: var(--ink-2); }
.closing .cta-row { justify-content: center; }

/* ---------- Document pages (support, privacy) ---------- */

.doc-header { padding: 44px 0 8px; }

@media (min-width: 900px) {
  .doc-header { padding: 72px 0 12px; }
}

.doc-header h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 2.9rem); }
.doc-header .lede { margin-top: 16px; }

.updated { margin-top: 14px; color: var(--ink-3); font-size: 0.9375rem; }

.doc {
  max-width: 44rem;
  padding-bottom: 72px;
}

.doc h2 {
  margin: 56px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.7rem);
}

.doc h3 { margin: 28px 0 8px; }

.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }

.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.25em; }
.doc li { margin-bottom: 0.45em; }
.doc li::marker { color: var(--ink-3); }

.toc {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc p { margin: 0 0 8px; color: var(--ink-3); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
.toc li { margin: 0; padding: 3px 0; color: var(--ink-3); }
.toc a { display: inline-block; padding: 4px 0; }

@media (min-width: 620px) {
  .toc ol { columns: 2; column-gap: 32px; }
}

.summary {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--green-tint);
}

.summary h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 1.125rem;
  letter-spacing: -0.008em;
}

.summary ul { margin: 0; }
.summary li { color: var(--ink); }

.contact-card {
  margin: 28px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card h2 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 1.125rem;
  letter-spacing: -0.008em;
}

.contact-card p { color: var(--ink-2); }
.contact-card .email { font-size: 1.125rem; font-weight: 600; }

.faq h3 { margin-top: 30px; }

.path {
  font-weight: 600;
  color: var(--ink);
}

.doc-footer-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-links, .footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a, .footer-langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}

.footer-links a:hover, .footer-langs a:hover { text-decoration: underline; }
.footer-langs a { color: var(--ink-2); font-weight: 450; }
.footer-langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }

.footer-legal {
  max-width: 48rem;
  margin-top: 20px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-legal p { margin-bottom: 0.6em; }
