/* Kvitteringer.dk - "postgang": postkasse-rød, kuverthvid, stempelblæk, frimærke-amber. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --red: #c8102e;
  --red-deep: #a10d25;
  --red-tint: #fbe4e7;
  --ink: #16213e;
  --ink-2: #414b68;
  --ink-3: #5c6681;
  --paper: #ffffff;
  --ground: #edf0f5;
  --ground-2: #e2e7ef;
  --tint: #d5ddea;
  --amber: #f59e0b;
  --amber-press: #e08c00;
  --ok-tint: #e2ebf6;
  --on-red: #ffffff;
  --on-red-2: #ffe1e5;
  --radius: 6px;
  --radius-lg: 10px;
  --f: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --security: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M0 7 Q3.5 3 7 7 T14 7' fill='none' stroke='%2316213e' stroke-opacity='.13' stroke-width='1.4'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.on-red :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.noscript { padding: 40px var(--gutter); max-width: 640px; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---------- Ikoner ---------- */
.ic { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 18px; height: 18px; }

/* ---------- Ordmærke ---------- */
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-stretch: 108%; font-size: 19px; letter-spacing: -0.015em; text-decoration: none; min-height: 44px; }
.mark svg { width: 30px; height: 30px; }
.mark .dk { color: #a85a00; }
.on-red .mark .dk { color: #ffe9b8; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn[disabled] { cursor: not-allowed; opacity: 0.55; transform: none; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover:not([disabled]) { background: var(--amber-press); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover:not([disabled]) { background: #24315a; }
.btn-quiet { background: var(--ground-2); color: var(--ink); }
.btn-quiet:hover:not([disabled]) { background: var(--tint); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not([disabled]) { background: var(--red-deep); }
.btn-ghost { background: transparent; color: inherit; padding: 0 12px; }
.btn-ghost:hover { background: rgba(22, 33, 62, 0.07); }
.on-red .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-wide { width: 100%; }

.textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.textlink:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Felter ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field > span { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius);
  border: 1.5px solid #c4ccdb; background: #fff; color: var(--ink); font-size: 16px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
/* iOS Safari: datofelter har en indbygget minimumsbredde og centreret tekst og stikker ud af rammen */
input.input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input.input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.input::placeholder { color: #7a839c; }
.input:hover { border-color: #9aa5bd; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45); }
textarea.input { min-height: 84px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316213e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.hint { font-size: 14px; color: var(--ink-3); }
.err { background: var(--red-tint); color: var(--red-deep); padding: 12px 14px; border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.note-ok { background: var(--ok-tint); padding: 12px 14px; border-radius: var(--radius); font-size: 15px; }

/* ---------- Rød flade (forside, login) ---------- */
.on-red { background: var(--red); color: var(--on-red); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.topbar .btn-ghost { font-weight: 700; }

/* ---------- Kuverten ---------- */
.envelope {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 18px 20px;
  box-shadow: 0 24px 48px -20px rgba(70, 0, 10, 0.55), 0 2px 6px rgba(70, 0, 10, 0.2); /* taste-skill-ignore: kuverten er et fysisk objekt på den røde flade (impeccable: dybde med offset+blur) */
  isolation: isolate;
}
.envelope::before {
  /* sikkerhedsskravering der skinner igennem papiret */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--security); opacity: 0.75;
}
.env-window {
  grid-column: 1; grid-row: 1;
  background: #f7f9fc; border-radius: 8px; padding: 14px 16px;
  box-shadow: inset 0 0 0 2px #e6ebf3;
  max-width: 34ch;
}
.env-window .from { font-size: 13px; font-weight: 700; color: var(--red); font-stretch: 90%; }
.env-window p { font-size: 15px; line-height: 1.45; margin-top: 4px; }
.env-window strong { font-weight: 750; }
.env-stamp { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: relative; }
.env-address { grid-column: 1; grid-row: 2; display: grid; gap: 12px; align-content: end; }
.env-address label { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.env-line {
  width: 100%; border: 0; border-bottom: 2.5px solid var(--ink); background: transparent; border-radius: 0;
  font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; padding: 6px 2px 8px; min-height: 52px; color: var(--ink);
}
.env-line::placeholder { color: #8b93a8; font-weight: 500; }
.env-line:focus { outline: none; border-bottom-color: var(--amber); }
.env-fine { font-size: 14px; color: var(--ink-3); }
.env-caption { margin-top: 14px; font-size: 14px; color: var(--on-red-2); }

/* Frimærket = send-knappen */
.stamp {
  /* taste-skill-ignore: maske til frimærkets perforering, ikke en farveovergang */
  --perf: radial-gradient(circle at 6px 6px, transparent 4px, #000 4.5px) -6px -6px / 12px 12px, linear-gradient(#000 0 0) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat;
  position: relative; width: 112px; height: 132px; border: 0; padding: 10px; cursor: pointer;
  background: var(--amber); color: var(--ink);
  -webkit-mask: var(--perf); mask: var(--perf);
  display: grid; place-items: center; text-align: center;
  transition: transform 200ms var(--ease), background-color 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.stamp-inner {
  width: 100%; height: 100%; border-radius: 3px; background: #fbb73a;
  display: grid; align-content: center; justify-items: center; gap: 4px; padding: 6px;
}
.stamp-inner svg { width: 44px; height: 44px; }
.stamp-label { font-weight: 800; font-stretch: 85%; font-size: 17px; line-height: 1.05; letter-spacing: 0.01em; }
.stamp:hover:not([disabled]) { transform: rotate(-2deg) translateY(-2px); }
.stamp:active:not([disabled]) { transform: scale(0.97); }
.stamp[disabled] { cursor: progress; }
.stamp:focus-visible { outline: none; }
.stamp:focus-visible .stamp-inner { box-shadow: 0 0 0 3px var(--ink); }

/* Håndskrevet note med pil op mod frimærket */
.env-note {
  display: grid; justify-items: start; width: 150px; margin: 2px 0 0 -26px;
  color: var(--red); pointer-events: none; user-select: none;
}
.env-note svg { width: 46px; height: 37px; margin-left: 4px; transform: rotate(-4deg); }
.env-note span {
  font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 600;
  font-size: 21px; line-height: 1.02; transform: rotate(-3deg); transform-origin: left top;
}
.stamp[disabled] ~ .env-note { opacity: 0; transition: opacity 200ms var(--ease); }

/* Poststempel */
.postmark {
  position: absolute; left: -98px; top: 34px; width: 112px; height: 112px; pointer-events: none;
  color: var(--ink); opacity: 0; transform: scale(1.35) rotate(-24deg);
}
.postmark.on { animation: stempel 420ms var(--ease) forwards; }
.postmark.fast { opacity: 0.85; transform: scale(1) rotate(-12deg); }
@keyframes stempel { 60% { opacity: 0.95; transform: scale(0.96) rotate(-12deg); } 100% { opacity: 0.85; transform: scale(1) rotate(-12deg); } }

/* ---------- Forside ---------- */
.hero { padding-bottom: clamp(56px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(24px, 5vw, 56px); }
.hero-grid h1 { grid-column: 1 / -1; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 88px); line-height: 0.92; font-weight: 850; font-stretch: 112%;
  letter-spacing: -0.035em; max-width: 17ch;
}
.hero .lede { font-size: clamp(18px, 1.7vw, 23px); max-width: 30ch; color: var(--on-red); }
.hero .reassure { margin-top: 18px; font-size: 15px; color: var(--on-red-2); }
.hero .open-app { margin-top: 28px; }
.hero-env { transform: rotate(1.5deg); }

.sec { padding: clamp(72px, 11vw, 160px) 0; }
.sec h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; font-weight: 820; font-stretch: 110%; letter-spacing: -0.03em; }
.sec .sub { font-size: 19px; color: var(--ink-2); margin-top: 16px; max-width: 46ch; }

.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.feat-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 34px; }
.feat-list li { display: grid; gap: 6px; }
.feat-list h3 { font-size: 22px; font-weight: 760; font-stretch: 104%; letter-spacing: -0.01em; }
.feat-list p { color: var(--ink-2); }

/* Ægte app-udsnit på forsiden */
.demo { background: var(--ground); border-radius: 14px; padding: clamp(16px, 2.4vw, 26px); }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; }
.demo-head strong { font-size: 18px; }
.demo-head span { font-size: 14px; color: var(--ink-3); }

.route { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.route::before { content: ""; position: absolute; inset: 0; background: var(--security); filter: invert(1); opacity: 0.5; pointer-events: none; }
.route .wrap { position: relative; }
.route .sub { color: #c9d1e3; }
.route-steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.route-steps::before { content: ""; position: absolute; left: 44px; right: 44px; top: 43px; height: 4px; background: var(--red); border-radius: 2px; }
.route-steps li { position: relative; }
.pm {
  width: 88px; height: 88px; border-radius: 50%; background: var(--ink); color: #fff;
  border: 3px solid #fff; outline: 4px solid var(--ink);
  display: grid; place-items: center; position: relative;
}
.pm::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid #fff; }
.pm .ic { width: 34px; height: 34px; }
.route-steps h3 { font-size: 24px; font-weight: 760; font-stretch: 106%; margin-top: 26px; letter-spacing: -0.01em; }
.route-steps p { color: #d7ddea; margin-top: 8px; max-width: 30ch; }

.faq-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.faq-grid .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.faq-grid .faq > div { border-top: 2px solid var(--ground-2); }
.faq { margin: 0; display: grid; gap: 0; }
.faq > div { padding: 22px 0; }
.faq dt { font-size: 20px; font-weight: 740; font-stretch: 104%; }
.faq dd { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }

.close { padding: clamp(80px, 12vw, 170px) 0 0; }
.close h2 { font-size: clamp(28px, 4.6vw, 64px); line-height: 1; font-weight: 850; font-stretch: 112%; letter-spacing: -0.035em; max-width: 24ch; }
.close > .wrap > p { font-size: 19px; margin-top: 22px; color: var(--on-red-2); max-width: 44ch; }
.close .btn { margin-top: 34px; min-height: 56px; padding: 0 30px; font-size: 18px; }
.bigmark { font-weight: 900; font-stretch: 125%; font-size: min(calc((100vw - 2 * var(--gutter)) / 10.6), 112px); letter-spacing: -0.045em; line-height: 0.8; margin-top: clamp(64px, 10vw, 140px); white-space: nowrap; overflow: hidden; color: #fff; }
.bigmark span { color: #ffe9b8; }
.foot { display: grid; gap: 18px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; color: var(--on-red-2); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.foot a { color: #fff; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Login ---------- */
.auth { min-height: 100svh; display: flex; flex-direction: column; }
.auth main { flex: 1; display: grid; align-content: center; padding-bottom: clamp(40px, 8vw, 96px); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.auth h1 { font-size: clamp(44px, 6vw, 84px); line-height: 0.95; font-weight: 850; font-stretch: 112%; letter-spacing: -0.035em; }
.auth .lede { margin-top: 20px; font-size: 19px; max-width: 34ch; }
.auth .lede + .lede { margin-top: 12px; color: var(--on-red-2); font-size: 16px; }
.auth .notice { margin-top: 22px; background: #fff; color: var(--ink); padding: 14px 16px; border-radius: var(--radius); font-weight: 600; max-width: 40ch; }
.auth .foot { padding-top: 0; }

/* ---------- Læseside (privatliv, 404) ---------- */
.read-shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.read-shell > main { flex: 1; }
.read-top { background: var(--red); color: #fff; }
.read { padding: clamp(40px, 7vw, 88px) 0 96px; }
.read article { max-width: 68ch; }
.read h1 { hyphens: auto; overflow-wrap: anywhere; font-size: clamp(32px, 5.6vw, 72px); line-height: 0.98; font-weight: 850; font-stretch: 112%; letter-spacing: -0.035em; }
.read .meta { color: var(--ink-3); margin-top: 14px; font-size: 15px; }
.read section { margin-top: 44px; }
.read h2 { font-size: 24px; font-weight: 760; font-stretch: 106%; letter-spacing: -0.01em; margin-bottom: 10px; }
.read p + p, .read ul + p, .read p + ul { margin-top: 12px; }
.read ul { padding-left: 1.2em; margin: 0; }
.read li { margin: 6px 0; }
.read li::marker { color: var(--red); }
.read code { font-family: ui-monospace, Menlo, monospace; background: var(--ground); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }
.read a:not(.btn) { color: var(--red-deep); font-weight: 600; }
.read-foot { background: var(--ground); padding: 26px 0; font-size: 15px; color: var(--ink-2); }

.nf { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.nf .postmark-big { width: clamp(120px, 20vw, 220px); height: auto; color: var(--red); transform: rotate(-10deg); }
.nf p { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 40ch; }
.nf .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }

/* ---------- App ---------- */
.app { background: var(--ground); min-height: 100svh; display: flex; flex-direction: column; }
.app-bar { background: var(--paper); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--ground-2); }
.app-bar::before { content: ""; display: block; height: 4px; background: var(--red); }
.app-bar .wrap { display: flex; align-items: center; gap: 8px; min-height: 64px; max-width: 1040px; }
.app-bar .mark { margin-right: auto; }
.app-nav { display: flex; gap: 4px; }
.app-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius); font-weight: 650; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.app-nav a:hover { color: var(--ink); background: var(--ground); }
.app-nav a[aria-current="page"] { color: var(--ink); background: var(--ground-2); }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 8px 0 4px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; }
.acct-btn:hover { background: var(--ground); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: 16px; }
.acct-email { font-size: 14px; color: var(--ink-2); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border-radius: 10px; padding: 8px;
  box-shadow: 0 18px 40px -12px rgba(22, 33, 62, 0.35), 0 2px 6px rgba(22, 33, 62, 0.12);
  transform-origin: top right; animation: menu-in 160ms var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.menu .who { padding: 8px 12px 10px; font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.menu .who strong { display: block; color: var(--ink); font-weight: 650; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--ground); }
.menu .only-mobile { display: none; }

.app main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) var(--gutter) 120px; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.page-head h1, .app h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.02; font-weight: 820; font-stretch: 108%; letter-spacing: -0.03em; }
.back { margin: -6px 0 8px -6px; padding: 0 6px; }

.tools { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; margin-bottom: 26px; }
.search { position: relative; }
.search .ic { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 42px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--radius); background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; }
.toggle input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }

.group + .group { margin-top: 34px; }
.group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.group-head h2 { font-size: 19px; font-weight: 760; font-stretch: 104%; }
.group-head span { font-size: 14px; color: var(--ink-3); }
.group.soon .group-head h2 { color: var(--red-deep); }

.rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rcard {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  background: #fff; border-radius: 10px; padding: 12px 16px 12px 12px; text-decoration: none; color: inherit;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.rcard:hover { box-shadow: 0 8px 22px -14px rgba(22, 33, 62, 0.45); transform: translateY(-1px); }
.rcard:active { transform: translateY(0) scale(0.995); }
.rcard .thumb { grid-row: span 2; }
.rcard h3 { font-size: 17px; font-weight: 720; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard .amt { font-stretch: 84%; font-size: 18px; font-weight: 780; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rcard .meta { font-size: 14px; color: var(--ink-3); grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard .chipcell { grid-column: 3; grid-row: 2; justify-self: end; }
.rcard.archived { opacity: 0.72; }

/* Kvitteringsfoto som frimærke */
.thumb {
  /* taste-skill-ignore: perforeringsmaske */
  --perf: radial-gradient(circle at 4.5px 4.5px, transparent 3px, #000 3.5px) -4.5px -4.5px / 9px 9px, linear-gradient(#000 0 0) 4.5px 4.5px / calc(100% - 9px) calc(100% - 9px) no-repeat;
  width: 64px; height: 76px; background: #fff; padding: 6px;
  -webkit-mask: var(--perf); mask: var(--perf);
  background-color: var(--tint);
}
.thumb img, .thumb .ph { width: 100%; height: 100%; object-fit: cover; background: #f4f6fa; border-radius: 2px; }
.thumb .ph { display: grid; place-items: center; color: var(--ink-3); }

/* Frist-stempler */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; font-stretch: 82%; white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.chip.ok { background: var(--ok-tint); color: var(--ink); }
.chip.warn { background: var(--red); color: #fff; }
.chip.expired { background: var(--ground-2); color: var(--ink-2); }
.chip.none { background: var(--ground); color: var(--ink-3); }

.empty { background: #fff; border-radius: 14px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.empty > svg { width: 120px; height: auto; }
.empty h2 { font-size: 26px; font-weight: 780; font-stretch: 106%; letter-spacing: -0.02em; }
.empty p { color: var(--ink-2); margin: 8px 0 20px; }
.nomatch { padding: 26px; background: #fff; border-radius: 10px; color: var(--ink-2); }

.skel { height: 100px; border-radius: 10px; background: #fff; position: relative; overflow: hidden; }
.skel::after { /* taste-skill-ignore: indlæsningsskelet */ content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(213, 221, 234, 0.6), transparent); animation: skel 1.3s infinite; translate: -100% 0; }
@keyframes skel { to { translate: 100% 0; } }

.fab { /* kun på listen, kun mobil */ position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 15; width: 64px; height: 64px; border-radius: 50%; background: var(--amber); color: var(--ink); display: none; place-items: center; box-shadow: 0 12px 28px -10px rgba(22, 33, 62, 0.6); }
.fab .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.fab:active { transform: scale(0.95); }

/* Ny / rediger */
.panel { background: #fff; border-radius: 14px; padding: clamp(18px, 3vw, 28px); }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 20px; font-weight: 760; font-stretch: 104%; }
.panel .lead { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.formgrid { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; align-items: start; }
.expires { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.expires strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.edit-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.photo { background: #fff; border-radius: 14px; padding: 12px; position: sticky; top: 84px; }
.photo img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 6px; }
.drop {
  background: #fff; border-radius: 14px; padding: clamp(28px, 6vw, 64px) 24px; text-align: center; display: grid; justify-items: center; gap: 14px;
  outline: 2.5px dashed #b8c2d5; outline-offset: -12px;
}
.drop svg.big { width: 96px; height: 96px; color: var(--red); }
.drop h2 { font-size: 24px; font-weight: 780; }
.drop p { color: var(--ink-2); max-width: 36ch; }
.drop .btn { min-height: 56px; padding: 0 28px; font-size: 18px; }
.drop-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 560px) { .drop-btns { display: grid; } }
.progress { margin-top: 12px; }
.progress .bar { height: 8px; background: var(--ground-2); border-radius: 4px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--amber); transform-origin: left; transition: transform 200ms linear; }
.progress .lbl { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* Detalje */
.detail { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.d-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; align-items: baseline; }
.d-head > div:first-child { min-width: 0; flex: 1 1 260px; }
.d-head h1 { font-size: clamp(26px, 3vw, 36px); overflow-wrap: anywhere; }
.d-head p { color: var(--ink-3); margin-top: 6px; }
.d-amount { font-size: clamp(28px, 3.6vw, 40px); font-weight: 820; font-stretch: 80%; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.02em; }
.terms-view { display: grid; gap: 10px; margin-top: 22px; }
.term { border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; }
.term .ic { margin-top: 2px; }
.term strong { font-weight: 740; }
.term small { grid-column: 2; font-size: 14px; opacity: 0.85; }
.term.ok { background: var(--ok-tint); }
.term.warn { background: var(--red); color: #fff; }
.term.expired { background: var(--ground-2); color: var(--ink-2); }
.term.none { background: var(--ground); color: var(--ink-3); }
.facts { margin: 20px 0 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.facts dt { color: var(--ink-3); font-size: 15px; }
.facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.archived-note { margin-top: 16px; background: var(--ground); border-radius: 10px; padding: 12px 14px; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.d-actions .spacer { flex: 1; }
.d-new { display: flex; width: 100%; margin-top: 12px; }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--red-tint); color: var(--red-deep); border-radius: 10px; padding: 10px 12px; font-weight: 650; width: 100%; }
.confirm span { margin-right: auto; }

/* Profil */
.prof { display: grid; gap: 14px; max-width: 720px; }
.welcome { margin-bottom: 18px; box-shadow: inset 0 0 0 2px var(--amber); }
.welcome .two, .welcome .err { margin-top: 14px; }
.welcome-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ts:empty { display: none; }
.btn[hidden] { display: none; }
.ts { max-width: 100%; overflow: hidden; }
.prof dl { margin: 14px 0 0; display: grid; gap: 10px; }
.prof dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.prof dt { color: var(--ink-3); }
.prof dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.danger h2 { color: var(--red-deep); }
.del-row { display: grid; grid-template-columns: 160px auto; gap: 10px; margin-top: 14px; justify-content: start; }

/* Indgang på forsiden: synligt som standard, kun skjult når JS har sat .rv */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 520ms var(--ease), transform 620ms var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.hero-env { animation: kuvert-ind 700ms var(--ease) both 120ms; }
@keyframes kuvert-ind { from { opacity: 0; transform: translateY(24px) rotate(5deg); } to { opacity: 1; transform: rotate(1.5deg); } }

/* Bevægelse ved sideskift */
.view-in { animation: view-in 260ms var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .hero-grid, .auth-grid, .features { grid-template-columns: 1fr; }
  .faq-grid .faq { grid-template-columns: 1fr; }
  .hero-env { transform: none; }
  .edit-layout, .detail { grid-template-columns: 1fr; }
  .photo { position: static; }
  .photo img { max-height: 46vh; }
}
@media (max-width: 720px) {
  .route-steps { grid-template-columns: 1fr; gap: 36px; }
  .route-steps::before { left: 42px; right: auto; top: 44px; bottom: 44px; width: 4px; height: auto; }
  .route-steps li { display: grid; grid-template-columns: 88px 1fr; gap: 0 20px; }
  .route-steps h3 { margin-top: 10px; }
  .route-steps p { grid-column: 2; }
  .route-steps .pm { grid-row: span 2; }
  .app-nav, .acct-email { display: none; }
  .menu .only-mobile { display: flex; }
  .fab { display: grid; }
  .list-new { display: none; }
  .tools { grid-template-columns: 1fr 1fr; }
  .tools .search { grid-column: 1 / -1; }
  .tools .toggle { justify-content: center; }
  .empty { grid-template-columns: 1fr; text-align: left; }
  .empty svg { width: 88px; }
  .nf { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .envelope { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .env-stamp { grid-column: 1; grid-row: 3; justify-self: end; }
  .env-address { grid-row: 2; }
  .env-window { max-width: none; }
  .stamp { width: 172px; height: 76px; }
  .stamp-inner { grid-auto-flow: column; justify-content: center; align-content: center; align-items: center; gap: 10px; }
  .stamp-inner svg { width: 30px; height: 30px; }
  .stamp-label br { display: none; }
  .env-note { width: 172px; margin: 4px 0 0; grid-template-columns: auto 1fr; align-items: start; gap: 2px; }
  .env-note svg { margin: -6px 0 0; }
  .env-note span { font-size: 20px; padding-top: 10px; }
  .postmark { left: -92px; top: -6px; width: 88px; height: 88px; }
  .two, .terms { grid-template-columns: 1fr; }
  .rcard { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 10px 12px 10px 10px; gap: 2px 12px; }
  .rcard .thumb { width: 56px; height: 66px; }
  .rcard .chipcell { grid-column: 2 / -1; grid-row: 3; justify-self: start; margin-top: 4px; }
  .rcard .chipcell { min-width: 0; max-width: 100%; }
  .chip { white-space: normal; line-height: 1.25; padding: 4px 10px; }
  .rcard .thumb { grid-row: span 3; }
  .facts div, .prof dl div { grid-template-columns: 1fr; gap: 2px; }
  .del-row { grid-template-columns: 1fr; }
  .d-actions .btn { flex: 1 1 auto; }
  .d-actions .spacer { display: none; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 35px; }
  .mark { font-size: 17px; gap: 8px; font-stretch: 100%; }
  .mark svg { width: 26px; height: 26px; }
  .topbar .btn-ghost { padding: 0 8px; gap: 4px; }
  .rcard { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 10px; }
  .rcard .thumb { width: 44px; height: 54px; padding: 5px; }
  .rcard .amt { font-size: 15px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .auth main { align-content: start; padding-top: 12px; }
  .app-bar { position: static; }
}

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

/* Poststempel i hvile på kuverten (dagens dato), over frimærkets venstre kant */
.pm-rest { position: absolute; left: -72px; top: 44px; width: 96px; height: 96px; color: var(--ink); opacity: 0.7; transform: rotate(-12deg); pointer-events: none; }
@media (max-width: 560px) { .pm-rest { left: -70px; top: -4px; width: 84px; height: 84px; } }

@media print {
  .rv { opacity: 1 !important; transform: none !important; }
  .fab, .app-bar, .acct { display: none !important; }
}

/* ---------- Forsidens nye sektioner (samme postgang-system) ---------- */
.sec-tight { padding: clamp(64px, 9vw, 128px) 0; }
.ground { background: var(--ground); }
.route-note { margin-top: 48px; color: #c9d1e3; font-size: 16px; max-width: 60ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-head { align-items: start; }
.split-text { max-width: 58ch; }
.split-text h2 + p { margin-top: 24px; }
.split-text p + p { margin-top: 14px; }
.split-text p { color: var(--ink-2); }
.split-text a { color: var(--red-deep); font-weight: 650; }
.split-fig { margin: 0; }
.split-fig img { width: 100%; height: auto; border-radius: 14px; background: var(--ground); }
.links { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--red-deep); }
.frist-eks { background: #fff; border-radius: 14px; padding: clamp(18px, 3vw, 28px); }
.frist-eks .demo-head { margin-bottom: 4px; }
.frist-koebt { font-size: 15px; color: var(--ink-3); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.frist-eks .terms-view { margin-top: 18px; }
.frist-eks .term strong { font-stretch: 92%; font-variant-numeric: tabular-nums; }
.split h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; }
.why { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); }
.why li { padding: 18px 0; border-top: 2px solid var(--tint); color: var(--ink-2); }
.why li { max-width: 40ch; }
.why strong { display: block; color: var(--ink); font-size: 19px; font-weight: 750; font-stretch: 104%; margin-bottom: 2px; }
#guides .sub { margin-bottom: clamp(28px, 4vw, 44px); }

/* Guide-liste (forside og "Læs også"): linjer som i FAQ'en, lille illustration til venstre */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); }
.guide-list li { border-top: 2px solid var(--tint); }
.gl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; text-decoration: none; color: var(--ink); }
.gl img { width: 120px; height: 63px; object-fit: cover; border-radius: 6px; background: var(--ground-2); }
.gl h3 { font-size: 19px; font-weight: 750; font-stretch: 104%; letter-spacing: -0.01em; margin: 0; }
.gl-tekst > span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.gl:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.foot-guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-h { font-weight: 750; font-size: 14px; letter-spacing: 0.02em; }

/* ---------- Guides (statiske læsesider) ---------- */
.guide .read { padding-top: clamp(20px, 3vw, 32px); }
.crumbs ol { list-style: none; margin: 0 0 clamp(24px, 4vw, 40px); padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--tint); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs span { display: inline-flex; align-items: center; min-height: 44px; }
.read .crumbs a { color: var(--ink-2); font-weight: 600; }
.guide-art { max-width: 68ch; }
.guide-art h1 { max-width: 22ch; hyphens: manual; font-size: clamp(34px, 5vw, 64px); }
.guide-art > h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.15; margin: 56px 0 12px; }
.guide-art h3 { font-size: 20px; font-weight: 760; font-stretch: 104%; letter-spacing: -0.01em; margin: 32px 0 8px; }
.guide-art p + p, .guide-art ul + p, .guide-art ol + p, .guide-art p + ul, .guide-art p + ol, .guide-art .tabel-wrap + p { margin-top: 14px; }
.guide-art ul, .guide-art ol { padding-left: 1.3em; margin: 0; }
.guide-art ol li::marker { color: var(--red); font-weight: 750; }
.guide-art li { margin: 8px 0; }
.svar { margin-top: clamp(20px, 3vw, 28px); background: var(--ok-tint); border-radius: 10px; padding: 16px 20px; font-size: 18px; line-height: 1.5; }
.guide-fig { margin: clamp(24px, 4vw, 36px) 0 8px; }
.guide-fig img { width: 100%; height: auto; border-radius: 14px; background: var(--ground); }
.tabel-wrap { margin: 20px 0; overflow-x: auto; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--ground-2); -webkit-overflow-scrolling: touch; }
.tabel-wrap table { border-collapse: collapse; min-width: 100%; font-size: 15px; }
.tabel-wrap th, .tabel-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; white-space: nowrap; border-bottom: 1.5px solid var(--ground-2); }
.tabel-wrap thead th { background: var(--ground); font-weight: 750; font-stretch: 96%; }
.tabel-wrap tbody tr:last-child td, .tabel-wrap tbody tr:last-child th { border-bottom: 0; }
.tabel-wrap tbody th, .tabel-wrap td:first-child { font-weight: 650; }
.tabel-wrap th:first-child, .tabel-wrap td:first-child { position: sticky; left: 0; background: #fff; box-shadow: 1.5px 0 0 var(--ground-2); }
.tabel-wrap thead th:first-child { background: var(--ground); }
.skabelon { margin: 18px 0; background: #fff var(--security); border-radius: 10px; padding: 18px 20px; box-shadow: inset 0 0 0 2px #e6ebf3; font-size: 16px; }
.skabelon p + p { margin-top: 10px; }
.cta-box { margin: 48px 0; background: var(--red); color: #fff; border-radius: 14px; padding: clamp(22px, 4vw, 36px); }
.cta-box .cta-t { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.12; font-weight: 820; font-stretch: 108%; letter-spacing: -0.02em; max-width: 26ch; }
.cta-box p + p { margin-top: 12px; color: var(--on-red-2); max-width: 52ch; }
.cta-box .btn { margin-top: 22px; }
.cta-box :focus-visible { outline-color: #fff; }
.guide-art .faq > div { border-top: 2px solid var(--ground-2); }
.guide-art .faq dt { font-size: 19px; }
.read .faq dd a { color: var(--red-deep); }
.kilder { font-size: 15px; }
.kilder li { overflow-wrap: anywhere; }
.guide-more { margin-top: clamp(64px, 9vw, 112px); max-width: 1000px; }
.guide-more h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 820; font-stretch: 108%; letter-spacing: -0.02em; margin-bottom: 20px; }
.read a.gl:not(.btn) { color: var(--ink); font-weight: 400; }
.read .guide-list { padding: 0; }
.read .guide-list li { margin: 0; }
.site-foot { background: var(--ground); padding: 36px 0 28px; font-size: 15px; color: var(--ink-2); }
.site-foot .wrap { display: grid; gap: 18px; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); }
.site-foot .foot-h { color: var(--ink); }

@media (max-width: 1000px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .guide-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .why { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gl { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .gl img { width: 88px; height: 46px; }
  .svar { font-size: 17px; padding: 14px 16px; }
  .guide-art > h2 { margin-top: 44px; }
}
@media print {
  .cta-box, .guide-more, .site-foot, .crumbs { display: none !important; }
}
