/* Kvitteret · kobsbevis.dk
   Varm lys bund, rund venlig sans, pastelpaneler med rigtige appskærme.
   Kvitteringen er det gennemgående motiv: takket kant og kode i mono.
   Ingen eksterne skrifter: SF Pro Rounded på Apple-enheder, systemets sans ellers. */

/* Nunito (SIL OFL 1.1, se /fonts/OFL.txt), latin-udsnit, selvhostet: intet sendes til tredjepart. */
@font-face {
  font-family: "KV Round";
  src: url("/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --sunken: #EEEDE8;
  --ink: #0F1B33;
  --muted: #545E70;
  --faint: #5F6878;
  --line: #E4E2DB;
  --accent: #2463EB;
  --accent-press: #1B4FC4;
  --accent-soft: #E3EBFF;
  --on-accent: #FFFFFF;
  --soft-ink: #1B4FC4;
  --band: #1F56D6;
  --on-band: #FFFFFF;
  --on-band-muted: #D3DFFB;
  --ok: #0F9D58;
  --ok-soft: #E1F5EA;
  --ok-fg: #0B6B3C;

  /* Pastelpaneler */
  --p-blue: #DCE5FF;
  --p-sand: #F2E7D3;
  --p-mint: #D6EFE1;
  --p-lilac: #E6E1FA;
  --i-blue: #2463EB;

  --phone: #0F1B33;
  --shadow: 15, 27, 51;

  --round: "KV Round", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-panel: 28px;
  --r-card: 22px;
  --top-h: 72px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F17;
    --surface: #151B26;
    --sunken: #0F141D;
    --ink: #EEF2F8;
    --muted: #A3ADBE;
    --faint: #8A94A6;
    --line: #232B39;
    --accent: #5A8DFF;
    --accent-press: #7BA3FF;
    --accent-soft: #1A2540;
    --on-accent: #08101F;
    --soft-ink: #8CB0FF;
    --band: #1C4BC2;
    --on-band: #F4F7FD;
    --on-band-muted: #C3D2F7;
    --ok: #3DD68C;
    --ok-soft: #0F2C1E;
    --ok-fg: #7BE5B0;
    --p-blue: #1A2442;
    --p-sand: #2B2620;
    --p-mint: #162720;
    --p-lilac: #231F3D;
    --i-blue: #8CB0FF;
    --phone: #000000;
    --shadow: 0, 0, 0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--round); font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.section-title {
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  text-align: center; margin-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- Knapper (piller) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 2px solid transparent; /* bliver synlig i tvungne farver */
  font: 700 16px/1 var(--round); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, transform .1s ease;
  touch-action: manipulation;
}
.pill:active { transform: scale(.97); }
.pill--lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.pill--primary { background: var(--accent); color: var(--on-accent); }
.pill--primary:hover { background: var(--accent-press); }
.pill--soft { background: var(--accent-soft); color: var(--soft-ink); }
.pill--soft:hover { background: color-mix(in srgb, var(--accent-soft) 85%, var(--accent)); }
.pill--white { background: #fff; color: #1F56D6; }
.pill--white:hover { background: #EEF3FF; }

/* ---------- Topbar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
}
.top__row { display: flex; align-items: center; justify-content: space-between; height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 700 20px/1 var(--round); }
.brand__mark { width: 34px; height: 34px; color: var(--accent); }
.top__nav { display: flex; align-items: center; gap: 30px; }
.top__nav a:not(.pill) { color: var(--ink); text-decoration: none; font: 500 16px/1 var(--round); padding: 14px 0; }
.top__nav a:not(.pill):hover { color: var(--accent); }
@media (max-width: 640px) { .top__nav a:not(.pill) { display: none; } }
@media (max-height: 500px) { :root { --top-h: 56px; } }

/* ---------- Paneler og telefoner ---------- */
.panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-panel);
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: clamp(40px, 6vw, 72px);
  min-height: 520px; height: 100%;
}
.panel--blue { background: var(--p-blue); }
.panel--sand { background: var(--p-sand); }
.panel--mint { background: var(--p-mint); }
.panel--lilac { background: var(--p-lilac); }
.panel--center { align-items: center; padding: clamp(32px, 5vw, 64px) 24px; }

/* Telefonen står i panelet og beskæres af underkanten */
.phone {
  width: min(300px, 72%);
  margin-bottom: -160px;
  padding: 9px;
  border-radius: 48px;
  background: var(--phone);
  box-shadow: 0 30px 60px rgba(var(--shadow), .18);
}
.phone img {
  width: 100%; height: auto;
  aspect-ratio: 552 / 1200;
  border-radius: 39px;
  background: #F1F4F9;
}
@media (prefers-color-scheme: dark) { .phone img { background: #0A0E16; } }

/* Bevis-stumpen over heltepanelet */
.stub {
  position: absolute; left: clamp(16px, 4%, 32px); bottom: clamp(24px, 5%, 40px);
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); color: var(--ink);
  padding: 16px 20px 24px; border-radius: 16px 16px 0 0;
  box-shadow: 0 18px 36px rgba(var(--shadow), .14);
  --tooth: 14px;
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, #0000 97%, #000) 0 0 / var(--tooth) 100% repeat-x;
          mask: radial-gradient(circle 5px at 50% 100%, #0000 97%, #000) 0 0 / var(--tooth) 100% repeat-x;
}
.stub__state { display: inline-flex; align-items: center; gap: 7px; color: var(--ok-fg); font: 600 13px/1 var(--round); }
.stub__code { font: 600 18px/1.1 var(--mono); letter-spacing: .06em; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(16px, 3vw, 32px) 0 clamp(48px, 7vw, 88px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 800; text-wrap: balance;
}
.lead {
  margin-top: 22px; max-width: 30em;
  font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted);
}
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero__note { color: var(--faint); font: 500 15px/1.3 var(--round); }
.hero__remote { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; max-width: 30em; }
.hero__remote a { font-weight: 600; color: var(--soft-ink); }
.hero__panel { min-height: clamp(480px, 52vw, 620px); }
.hero__panel .phone { width: min(320px, 70%); margin-bottom: -200px; margin-left: 18%; }

/* ---------- Trin ---------- */
.steps { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.steps__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.step {
  background: var(--surface); border-radius: var(--r-card);
  padding: 26px 24px 28px;
}
.step__no {
  display: block; margin-bottom: 18px;
  font: 800 56px/1 var(--round); letter-spacing: -0.04em;
  color: var(--i-blue);
}
.step h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ---------- Rækker (billede + tekst) ---------- */
.row { padding: clamp(24px, 4vw, 48px) 0; }
.row__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.row--flip .panel { order: 2; }
.row__copy { max-width: 32em; }
.row__copy h2 {
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px; text-wrap: balance;
}
.row__copy p { color: var(--muted); font-size: 18px; }
.row__copy p + p { margin-top: 14px; }

/* ID-kortet: også en kvittering med takket kant */
.idcard {
  width: 100%; max-width: 340px;
  background: var(--surface); color: var(--ink);
  border-radius: 26px 26px 0 0; padding: 26px 26px 38px;
}
.idcard > * { position: relative; }
.idcard__status {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ok-soft); color: var(--ok-fg);
  font: 600 14px/1 var(--round); padding: 8px 12px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.idcard__name { margin-top: 18px; font: 800 30px/1.1 var(--round); letter-spacing: -0.02em; }
.idcard__meta { margin-top: 6px; color: var(--muted); font-size: 15px; }
.idcard__lines { margin: 20px 0 0; background: var(--sunken); border-radius: 16px; padding: 4px 16px; }
.idcard__lines div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15px; }
.idcard__lines div + div { border-top: 1px solid var(--line); }
.idcard__lines dt { color: var(--muted); flex: none; }
.idcard__lines dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.idcard__next {
  margin-top: 18px; padding-top: 16px; border-top: 1.5px dashed var(--line);
  color: var(--ok-fg); font: 600 16px/1.3 var(--round); text-align: center;
}
.idcard {
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, #0000 97%, #000) 0 0 / 16px 100% repeat-x;
          mask: radial-gradient(circle 6px at 50% 100%, #0000 97%, #000) 0 0 / 16px 100% repeat-x;
}

/* ---------- Midt-CTA ---------- */
.midcta { display: flex; justify-content: center; padding: clamp(32px, 5vw, 56px) var(--gutter) 0; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px); }
.faq__wrap { max-width: 820px; }
.faq details { background: var(--surface); border-radius: 18px; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; min-height: 64px;
  font: 600 18px/1.35 var(--round);
}
.faq summary:hover { color: var(--soft-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background-color: var(--accent-soft);
  background-image: linear-gradient(var(--soft-ink), var(--soft-ink)), linear-gradient(var(--soft-ink), var(--soft-ink));
  background-size: 12px 2px, 2px 12px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 40em; }

/* ---------- Venteliste ---------- */
.signup { padding: 0 0 clamp(64px, 9vw, 112px); }
.signup__card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  background: var(--band); color: var(--on-band);
  border-radius: var(--r-panel);
  padding: clamp(32px, 5vw, 64px);
}
.signup h2 { color: var(--on-band); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 12px; text-wrap: balance; }
.signup__copy p { color: var(--on-band-muted); font-size: 18px; }
.signup__form label { display: block; font: 600 15px/1 var(--round); margin-bottom: 10px; color: var(--on-band); }
.signup__row { display: flex; gap: 10px; }
.signup__row input {
  flex: 1; min-width: 0; min-height: 54px; padding: 0 22px;
  border-radius: 999px; border: 2px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.15); color: #fff; font: 17px var(--sans);
}
.signup__row input::placeholder { color: rgba(255,255,255,.72); }
.signup__row input:focus { outline: 2px solid #fff; outline-offset: 2px; border-color: #fff; background: rgba(0,0,0,.22); }
.signup__row input:-webkit-autofill {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  box-shadow: 0 0 0 100px #1A49B6 inset;
}
.signup__error { margin-top: 10px; font: 600 15px/1.4 var(--round); color: #fff; }
.signup__fine { margin-top: 12px; font-size: 14px; color: var(--on-band-muted); }
.signup__fine a { color: #fff; display: inline-block; padding: 12px 0; margin: -12px 0; }
.signup :focus-visible, .signup__card :focus-visible { outline-color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fod ---------- */
.foot { border-top: 1px solid var(--line); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 15px; }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); display: inline-block; padding: 12px 0; }
.confirm { margin-top: 28px; }

/* ---------- Undersider (privatliv, tak, 404) ---------- */
.page { padding: clamp(40px, 7vw, 88px) 0; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 24px; }
.page h2 { font-size: 21px; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page p a { padding: 12px 0; } /* inline: større trykflade uden at skubbe linjerne */
.page .signup__card { margin-top: 32px; grid-template-columns: 1fr; max-width: 560px; }
.page .signup__card p { color: var(--on-band-muted); }
.page .signup__card .signup__error { color: #fff; }

/* ---------- Brud ---------- */
@media (max-width: 1000px) {
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__grid, .row__grid, .signup__card { grid-template-columns: 1fr; }
  .row--flip .panel { order: 0; }
  .row__copy { max-width: none; }
  .panel { min-height: 440px; }
  .hero__panel { min-height: 460px; }
  .hero__panel .phone { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps__list { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 22px; }
  .step__no { grid-row: span 2; font-size: 44px; margin: 0; }
  .hero__cta .pill { width: 100%; }
  .hero__note { width: 100%; text-align: center; }
  .panel { min-height: 380px; border-radius: 24px; padding-top: 32px; }
  .hero__panel { min-height: 420px; }
  .phone, .hero__panel .phone { width: 86%; margin-bottom: -280px; border-radius: 42px; padding: 8px; }
  .phone img { border-radius: 34px; }
  .stub { left: 12px; bottom: 16px; padding: 12px 16px 20px; }
  .stub__code { font-size: 15px; }
  .signup__row { flex-direction: column; }
  .faq summary { padding: 18px 20px; font-size: 17px; }
  .faq details p { padding: 0 20px 20px; }
}

/* ---------- Bevægelse, tvungne farver, print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .faq summary::after { transition: none; }
  .pill:active { transform: none; }
}
@media (forced-colors: active) {
  .faq summary::after { content: "+"; background: none; border: 2px solid CanvasText; display: grid; place-items: center; font: 600 18px/1 var(--sans); }
  .faq details[open] summary::after { content: "\2212"; transform: none; }
  .idcard, .stub { -webkit-mask: none; mask: none; border: 1px solid CanvasText; }
}
@media print {
  :root { --ink: #000; --muted: #333; --faint: #444; --surface: #fff; --sunken: #fff; --line: #ccc; --accent: #1B4FC4; --soft-ink: #1B4FC4; }
  .faq details::details-content { content-visibility: visible; height: auto; }
  .top, .skip, .signup, .midcta, .phone, .stub, .hero__cta { display: none; }
  body { background: #fff; color: #000; }
  .panel { min-height: 0; padding: 0; background: none; }
  .faq details { background: none; }
}
