/* karenai.dk: three pages (Forside, Produktet, Om os) on one stylesheet. The app's own tokens (src/app.css, the
   Karen Alive palette, 2026-09-27): lavender paper, an ink-violet shell, violet for what you act on, green for done. */
:root {
  --paper: #f6f4fb; --surface: #fdfcff; --shell: #1a1530; --ink: #1e1836; --muted: #5e5680; --faint: #736c90;
  --line: #e2ddf0; --line-strong: #cbc3e2; --ai: #6b4fd8; --ai-text: #4b34a8; --ai-soft: #ece7fb;
  --shell-accent: #a896f5; --done: #1f7a4d; --coral: #c2452f; --shell-muted: #c9c2e6;
  --head: Fraunces, Georgia, serif; --body: Manrope, system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--ai); text-decoration: none; }
a:hover { color: var(--ai-text); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ai); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 200ms ease, border-color 200ms ease, color 200ms ease; display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; }
.btn-primary { background: var(--ai); color: #fff; }
.btn-primary:hover { background: var(--ai-text); color: #fff; }
.btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-quiet:hover { color: var(--ai-text); border-color: var(--ai); }

/* The header: the brand, one tab per page, the language switch, and "Log ind" once the app is hosted. */
.top { background: var(--shell); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--paper); font-family: var(--head); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.brand:hover { color: var(--paper); }
.brand-karen { width: 32px; height: 32px; display: block; }
.tabs { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.tabs a { color: var(--shell-muted); padding: 8px 14px; border-radius: 999px; }
.tabs a:hover { color: var(--paper); }
.tabs a[aria-current="page"] { color: var(--paper); background: rgba(168, 150, 245, .18); }
.top-end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 12px; color: #9a93b8; }
.lang button { background: none; border: 0; padding: 6px 4px; font: inherit; letter-spacing: .06em; color: #9a93b8; cursor: pointer; }
.lang button:hover { color: var(--paper); }
.lang button[aria-pressed="true"] { color: var(--paper); font-weight: 500; }
.login, .demo { height: 36px; padding: 0 16px; font-size: 14px; }
.btn:active { transform: scale(.97); }
::selection { background: var(--ai-soft); color: var(--ink); }
.login[hidden] { display: none; }

/* The Årshjul: one ring for the year. A line runs from 1 January to today, a dot marks each filing, and the wheel
   walks through them on its own, the centre saying what each one is and when. */
.wheel-wrap { position: relative; width: 100%; max-width: min(460px, 62vh); justify-self: center; }
.wheel { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wheel-track { fill: none; stroke: var(--line); stroke-width: 14; }
.wheel-progress { fill: none; stroke: url(#wheel-grad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s cubic-bezier(.3, .7, .2, 1); }
.wheel.on .wheel-progress { stroke-dashoffset: 0; }
.wheel-tick { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; fill: var(--faint); text-anchor: middle; dominant-baseline: middle; }
.wheel-dot { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.wheel-dot circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2.5; transition: fill .3s, stroke .3s; }
.wheel-dot.done circle { fill: var(--shell); stroke: var(--surface); }
.wheel-dot.active { transform: scale(1.55); }
.wheel-dot.active circle { stroke: var(--ai); }
.wheel-now { opacity: 0; transition: opacity .4s 1.6s; }
.wheel.on .wheel-now { opacity: 1; }
.wheel-now-halo { fill: var(--ai); opacity: .25; transform-box: fill-box; transform-origin: center; animation: wheel-pulse 2.4s ease-out infinite; }
@keyframes wheel-pulse { from { transform: scale(.6); opacity: .35; } to { transform: scale(2.2); opacity: 0; } }
.wheel-centre { position: absolute; inset: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; transition: opacity .35s; }
.wheel-centre.fade { opacity: 0; }
.wheel-centre small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ai); }
.wheel-big { font-family: var(--head); font-weight: 600; font-size: clamp(52px, min(7vw, 10vh), 84px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.wheel-big.done { color: var(--ai); }
.wheel-unit { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wheel-what { font-family: var(--head); font-weight: 600; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.2; margin-top: 6px; text-wrap: balance; }
.wheel-when { font-size: 14px; color: var(--muted); }
karen-mascot:not(:defined) { visibility: hidden; }

/* Produktet and Om os: a page head, then cards. */
.page { padding-top: clamp(40px, 7vh, 72px); padding-bottom: clamp(48px, 8vh, 88px); display: flex; flex-direction: column; gap: 36px; }
.page-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.page-head p { font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.cards h2 { font-size: 20px; letter-spacing: -.01em; }
.cards p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Produktet: the old way beside Karen's. */
.versus { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.versus > div { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.versus .karen-side { background: var(--shell); color: var(--paper); }
.versus h2 { font-size: 22px; }
.versus ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.versus li { display: flex; gap: 10px; }
.versus .old li { color: var(--muted); }
.versus .old li::before { content: "–"; color: var(--faint); }
.versus .karen-side li::before { content: "✓"; color: var(--shell-accent); font-weight: 700; }

/* Om os: the people and the company, each with a public link to check them by. */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; gap: 16px; align-items: center; }
.initials { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--ai-soft); color: var(--ai-text); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 22px; font-weight: 600; }
.person-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person h2 { font-size: 19px; line-height: 1.2; }
.role { font-size: 14px; color: var(--muted); }
.ext { font-size: 14px; font-weight: 600; }
.ext::after { content: " ↗"; }
.company { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; }
.company dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.company dd { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; }

/* The footer on every page: what Karen is, the news signup, and the company line. */
footer { background: var(--shell); color: var(--shell-muted); }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
footer h2 { color: var(--paper); font-size: 20px; margin-bottom: 8px; }
footer p { font-size: 14px; line-height: 1.55; }
footer a { color: var(--paper); }
footer a:hover { color: var(--shell-accent); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 12px; margin-top: 16px; }
.trust span { display: flex; align-items: center; gap: 7px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--shell-accent); }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(201, 194, 230, .2); padding-top: 16px; font-family: var(--mono); font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.signup input { flex: 1 1 220px; min-width: 0; height: 46px; border: 1px solid rgba(201, 194, 230, .35); background: rgba(253, 252, 255, .06); border-radius: 999px; padding: 0 20px; font: inherit; font-size: 16px; color: var(--paper); }
.signup input::placeholder { color: #9a93b8; }
.signup input:focus { outline: 2px solid var(--shell-accent); outline-offset: 1px; }
.signup input[aria-invalid="true"] { border-color: #f08a76; }
.signup button { height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--shell-accent); color: var(--shell); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.signup button:hover { background: var(--paper); }
.signup button[disabled] { opacity: .6; cursor: progress; }
.signup-note { flex-basis: 100%; font-size: 13px; color: var(--shell-muted); }
.signup-status { flex-basis: 100%; font-size: 14px; font-weight: 600; }
.signup-status:empty { display: none; }
.signup-status.ok { color: var(--paper); }
.signup-status.err { color: #f08a76; }
.signup.done input, .signup.done button, .signup.done .signup-note { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wheel-progress, .wheel-now, .wheel-dot, .wheel-centre { transition: none; }
  .wheel-now-halo { animation: none; }
}
@media (max-width: 899px) {
  .cards, .versus { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
/* A phone: the tabs move under the brand row, the wheel goes small and first. */
@media (max-width: 599px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .tabs { order: 3; flex-basis: 100%; justify-content: space-between; padding: 6px 0 8px; font-size: 13px; }
  .tabs a { padding: 6px 10px; }
  .brand-karen { width: 28px; height: 28px; }
  .btn { height: 46px; padding: 0 20px; font-size: 15px; }
  .wheel-big { font-size: 48px; }
  .wheel-what { font-size: 15px; }
  .wheel-when { font-size: 12.5px; }
}

/* Forside: the paper river, exactly one viewport. Documents flow into Karen from the left and leave as booked lines
   on the ledger page to her right; river.2.js walks four chapters on a timer. Nothing scrolls: the body is a
   header / main / footer grid and every size below answers to both the width and the height. */
html:has(body.home) { overflow: hidden; }
body.home { height: 100vh; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
body.home main { min-height: 0; }
.river { --ease-out: cubic-bezier(.23, 1, .32, 1); position: relative; height: 100%; min-height: 0; background: var(--shell); color: var(--paper); }
.river-stage { height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: clamp(10px, 3vh, 40px) 0 clamp(10px, 2vh, 24px); gap: clamp(8px, 2vh, 28px); }
.river-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.river-copy { display: flex; flex-direction: column; gap: clamp(8px, 1.8vh, 20px); }
.river h1 { font-size: clamp(30px, min(4.8vw, 7vh), 104px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; color: var(--paper); }
.hero-sub { font-size: clamp(14px, min(1.3vw, 2.2vh), 20px); line-height: 1.5; color: var(--shell-muted); max-width: 34em; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.river .btn { height: clamp(40px, 6.4vh, 56px); }
.river .btn-quiet { background: transparent; color: var(--paper); border-color: rgba(201, 194, 230, .35); }
.river .btn-quiet:hover { border-color: var(--shell-accent); color: var(--paper); }
.river .btn-primary:hover { background: #5b3fd0; }

/* One chapter at a time, all stacked in one grid cell so the box is the tallest one, crossfaded through a little
   blur so the two never read as two. */
.chapters { display: grid; }
.chapter { grid-area: 1 / 1; align-self: end; display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); filter: blur(4px); transition: opacity 320ms ease, transform 520ms var(--ease-out), filter 320ms ease, visibility 0s 320ms; }
.chapter.on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.chapter h2 { font-size: clamp(20px, min(2.2vw, 3.6vh), 30px); line-height: 1.15; letter-spacing: -.02em; color: var(--paper); }
.chapter p { font-size: clamp(14px, min(1.2vw, 2.1vh), 17px); line-height: 1.5; color: var(--shell-muted); text-wrap: pretty; }
.chapter-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: clamp(8px, 2vh, 18px); }
.rail-btn { height: 18px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; border-radius: 4px; }
.rail-btn i { position: absolute; left: 0; right: 0; top: 7px; height: 3px; border-radius: 3px; background: rgba(201, 194, 230, .18); overflow: hidden; }
.rail-btn i::after { content: ""; position: absolute; inset: 0; background: var(--shell-accent); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.rail-btn[aria-current="true"] i { background: rgba(201, 194, 230, .3); }

.river-flow { --dock: clamp(124px, 11vw, 176px); flex: 1; min-height: 0; display: grid; grid-template-columns: clamp(200px, 18vw, 260px) 1fr minmax(280px, min(380px, 34vw)); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.river-karen { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: clamp(4px, 1vh, 12px); min-height: 0; }
.river-karen karen-mascot { position: relative; z-index: 2; width: clamp(120px, min(30vh, 21vw), 460px); height: auto; margin-right: calc(var(--dock) + 18px); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }
.river-count { position: relative; z-index: 2; margin-right: calc(var(--dock) + 18px); align-self: flex-end; width: clamp(120px, min(30vh, 21vw), 460px); text-align: center; font-family: var(--mono); font-size: 13px; color: var(--shell-muted); font-variant-numeric: tabular-nums; }
/* The lane reaches back to the window's left edge so documents arrive from off screen. */
.lane { position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; left: calc(-50vw + 50%); pointer-events: none; }
.slip { position: absolute; left: 0; top: 0; width: 156px; padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); color: var(--ink); border-radius: 4px; box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .2); will-change: transform, opacity; isolation: isolate; }
.slip small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ai-text); }
.slip b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip .amt { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.slip.invoice { border-top: 3px solid var(--ai); }
.slip.paper { border-radius: 2px; background: repeating-linear-gradient(var(--surface) 0 17px, #f0edf8 17px 18px); }
.slip.bank { background: var(--ai-soft); }
.slip.payslip { border-top: 3px solid var(--done); }
/* A bundle is a stack: two more sheets just behind the top one. */
.slip.bundle::before, .slip.bundle::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface); border-radius: inherit; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.slip.bundle::before { transform: rotate(4deg) translate(4px, 3px); }
.slip.bundle::after { transform: rotate(-3deg) translate(-3px, 5px); }

/* The ledger page: rows arrive at the top, the newest highlighted while Karen explains herself. */
.ledger { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 18px 20px 0; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); overflow: hidden; }
.ledger-head { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-bottom: 10px; border-bottom: 2px solid var(--ai); }
.ledger-rows { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); transition: opacity 300ms ease, filter 300ms ease; }
.row { padding: 11px 8px; margin: 0 -8px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; border-radius: 8px; transition: background-color 400ms ease; }
.row-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.row .amt { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.why { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.vat { font-family: var(--mono); font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ledger.explain .row:first-child { background: var(--ai-soft); }
.ledger.explain .row:first-child .why { color: var(--ai-text); font-weight: 600; }

/* Chapters four to six: the rows fold away and the matching document lands (VAT return, corporation tax, annual
   report), stamped ready to approve. river.2.js sets .filed on the ledger and .on on one card. */
.ledger.filed .ledger-rows { opacity: 0; filter: blur(6px); }
.fcard { position: absolute; inset: clamp(36px, 6vh, 52px) 20px 14px; display: flex; flex-direction: column; gap: clamp(4px, 1.2vh, 14px); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97); transition: opacity 260ms ease, transform 260ms ease, visibility 0s 260ms; pointer-events: none; }
.fcard.on { opacity: 1; visibility: visible; transform: none; transition: opacity 420ms 120ms ease, transform 620ms 120ms var(--ease-out); }
.fcard-title { font-family: var(--head); font-weight: 600; font-size: clamp(16px, 2.6vh, 22px); letter-spacing: -.01em; }
.fcard dl { margin: 0; display: flex; flex-direction: column; }
.fcard dl div { display: flex; justify-content: space-between; gap: 12px; padding: clamp(3px, .9vh, 10px) 0; border-bottom: 1px solid var(--line); font-size: clamp(12px, 1.9vh, 15px); }
.fcard dt { color: var(--muted); }
.fcard dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fcard .fcard-total { border-bottom: 2px solid var(--ink); font-weight: 700; }
.fcard .fcard-total dt { color: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: clamp(14px, 3vh, 28px); }
.bars i { flex: 1; max-width: 28px; background: var(--ai-soft); border-radius: 3px 3px 0 0; }
.bars i:nth-child(1) { height: 45%; } .bars i:nth-child(2) { height: 70%; } .bars i:nth-child(3) { height: 100%; background: var(--ai); }
.stamp { position: absolute; right: 8px; bottom: 28px; transform-origin: right bottom; margin: 0; padding: clamp(4px, 1vh, 8px) 14px; border: 2.5px solid var(--ai); border-radius: 8px; color: var(--ai); font-family: var(--mono); font-weight: 500; font-size: clamp(11px, 1.7vh, 13px); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: rotate(-14deg) scale(1.6); }
.fcard.on .stamp { opacity: .92; transform: rotate(-7deg) scale(1); transition: opacity 120ms 620ms ease, transform 380ms 620ms cubic-bezier(.3, 1.5, .5, 1); }

/* The deadline strip: the next filings from today on one track, the nearest with a countdown and a bell. */
.deadlines { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-top: clamp(6px, 1.4vh, 14px); border-top: 1px solid rgba(201, 194, 230, .16); }
.dl-label { flex: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; line-height: 1.3; color: var(--shell-muted); }
.bell { width: 16px; height: 16px; flex: none; fill: var(--shell-accent); transform-origin: 50% 10%; }
.dl-track { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; }
.dl-track li { flex: 1; min-width: 0; position: relative; padding-top: 14px; font-size: 12px; line-height: 1.3; color: var(--shell-muted); }
.dl-track li::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: rgba(201, 194, 230, .2); }
.dl-track li::after { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--shell); border: 2px solid var(--shell-muted); }
.dl-track li.done::after { background: var(--done); border-color: var(--done); }
.dl-track li.next::after { background: var(--shell-accent); border-color: var(--shell-accent); box-shadow: 0 0 0 4px rgba(168, 150, 245, .25); }
.dl-track b { display: block; font-weight: 600; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-track small { font-family: var(--mono); font-size: 11px; }
.dl-chip { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--shell-accent); color: var(--shell); font-weight: 700; font-size: 11px; vertical-align: 1px; white-space: nowrap; }
.dl-chip .bell { width: 12px; height: 12px; fill: var(--shell); }

/* Produktet: the Årshjul beside what it is for. */
.year { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.year-copy { display: flex; flex-direction: column; gap: 14px; }
.year h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.year p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 32em; text-wrap: pretty; }


/* Forside footer: one compact strip. */
body.home footer .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
body.home footer h2, body.home footer .wrap > div:first-child > p, body.home .signup-note { display: none; }
body.home .trust { margin-top: 0; font-size: 11px; }
body.home .signup { margin-top: 0; flex-wrap: nowrap; align-items: center; }
body.home .signup input { flex: 0 1 240px; height: 34px; font-size: 14px; padding: 0 16px; }
body.home .signup button { height: 34px; font-size: 13px; padding: 0 16px; }
body.home .signup-status { flex-basis: auto; font-size: 12px; white-space: nowrap; }
body.home .legal { padding-top: 8px; font-size: 11px; gap: 2px 18px; }

@media (max-width: 899px) {
  .river-head { grid-template-columns: 1fr; align-items: start; gap: clamp(8px, 2vh, 20px); }
  .river-flow { grid-template-columns: clamp(170px, 30vw, 230px) 1fr; grid-template-rows: minmax(0, 1fr); }
  .river-karen karen-mascot { width: clamp(100px, min(26vh, 30vw), 260px); }
  .ledger { display: none; }
  .wheel-wrap { max-width: 360px; }
  body.home footer .wrap { grid-template-columns: 1fr; }
  .year { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .river-stage { padding-top: 10px; gap: 8px; }
  .river h1 { font-size: clamp(28px, 8vw, 36px); }
  .river .hero-sub { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .chapter p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .river .cta { flex-wrap: nowrap; }
  .river .cta .btn { padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .river-flow { --dock: 0px; }
  .river-karen karen-mascot { width: clamp(72px, min(17vh, 40vw), 150px); margin-right: 0; }
  .river-count { margin-right: 0; width: auto; align-self: center; }
  .slip { width: 128px; padding: 8px 10px; }
  body.home .trust, body.home .signup, .inbox { display: none; }
  .dl-label span { display: none; }
  .dl-track li.done, .dl-track li:nth-child(n+4) { display: none; }
  .dl-chip { margin-left: 0; display: flex; width: max-content; margin-top: 2px; }
}
@media (max-height: 700px) and (max-width: 599px) { .river .hero-sub { display: none; } }
@media (max-height: 560px) { .river .hero-sub, .dl-label { display: none; } }

/* The work moment: Karen reads the document as a card docked beside her, a scan line reads it, the fields become chips that fly to
   the ledger line. Transform and opacity only while it moves. */
.reader { position: absolute; z-index: 5; left: 0; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 9px; overflow: hidden; background: var(--surface); color: var(--ink); border-radius: 6px; font-size: clamp(10px, 1.6vh, 12px); line-height: 1.3; box-shadow: 0 18px 36px -10px rgba(0, 0, 0, .65), 0 2px 5px rgba(0, 0, 0, .25); pointer-events: none; transform: rotate(-3deg); }
.reader[hidden] { display: none; }
.reader small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ai-text); }
.reader b { font-size: 1.05em; }
.reader .r-date, .reader .r-line { color: var(--muted); }
.r-tot { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; padding-top: 3px; border-top: 1px solid var(--line); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.reader .f { border-radius: 3px; padding: 0 2px; margin: 0 -2px; }
.reader .f.hl { background: var(--ai-soft); color: var(--ai-text); }
.reader-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ai); box-shadow: 0 0 10px 2px rgba(107, 79, 216, .55); }
.reader-ok { position: absolute; right: 7px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--done); opacity: 0; display: grid; place-items: center; }
.reader-ok svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--ai-soft); color: var(--ai-text); font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.chip.fly { position: absolute; z-index: 6; left: 0; top: 0; background: var(--ai); color: #fff; pointer-events: none; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .5); }
/* The tag line of a ledger row: its height is reserved from the start so the chips that land in it never touch the text. */
.row .chips { display: flex; gap: 6px; flex-wrap: nowrap; min-height: 22px; overflow: hidden; }
.row .chips .chip { flex: none; }
.row .vat { display: none; }
.dl-track .ck { margin-right: 5px; color: #5fd09a; }
.rail-btn:focus-visible { outline-offset: -2px; }
/* Karen's box can reach past her circle: the rail stays above it so its buttons always take the click. */
.chapters-wrap { position: relative; z-index: 3; }
@media (max-height: 800px) { .bars { display: none; } }
body.home .wrap { max-width: min(1800px, max(1200px, 80vw)); }

/* The inbox: where the river starts. Each slip leaves from the tile of its kind. */
.inbox { display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, 1vh, 10px); min-height: 0; position: relative; z-index: 2; }
.inbox-head { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--shell-muted); }
.tile { position: relative; display: flex; align-items: center; gap: 10px; padding: clamp(6px, 1.2vh, 11px) 12px; border: 1px solid rgba(201, 194, 230, .2); border-radius: 12px; background: rgba(253, 252, 255, .04); min-height: 0; }
.tile svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--shell-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.tile-text b { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-text small { font-family: var(--mono); font-size: 10.5px; color: var(--shell-muted); opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-n { position: relative; flex: none; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--shell-accent); }
.tile-plus { position: absolute; right: 0; top: -12px; font-family: var(--mono); font-size: 11px; color: var(--paper); pointer-events: none; }
@media (max-height: 700px) { .tile-text small, .inbox-head { display: none; } }
@media (max-width: 899px) { .tile-text small { display: none; } }

/* Volume: cards flick through the dock, a stack of sheets behind each. */
.reader.stack::before, .reader.stack::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface); border-radius: inherit; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.reader.stack::before { transform: translate(5px, 4px); }
.reader.stack::after { transform: translate(-4px, 6px); }
.reader.stack { overflow: visible; isolation: isolate; }


/* ===== v2: one grid, Karen as the centre, everything on the site ease-out ===== */
body.home { background: var(--shell); }
.rail-btn { height: 28px; }
.rail-btn i { top: 12.5px; transition: background-color 160ms var(--ease-out, ease); }
.rail-btn:hover i { background: rgba(201, 194, 230, .42); }
.rail-btn:focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 1px; }
.chapter-rail.paused:not(.frozen) .rail-btn[aria-current="true"] i::after { transform: scaleX(1); opacity: .75; }
.chapter { filter: none; transform: translateY(8px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s 260ms; }
.chapter.on { transform: none; transition-delay: 0s; }
.tile::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--shell-accent); border-radius: 12px; opacity: 0; pointer-events: none; }
.river-karen karen-mascot { filter: none; }

@media (min-width: 900px) {
  .river-stage { --g: clamp(24px, 2.4vw, 32px); }
  .river-head, .river-flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr); column-gap: var(--g); }
  .river-head { grid-template-areas: "h1 h1 ." "sub sub ch" "cta cta ch"; align-items: start; row-gap: clamp(8px, 1.6vh, 16px); }
  .river-copy { display: contents; }
  .river h1 { grid-area: h1; font-size: clamp(28px, min(4vw, 6vh), 84px); }
  .river .hero-sub { grid-area: sub; }
  .river .cta { grid-area: cta; align-self: start; }
  .chapters-wrap { grid-area: ch; align-self: start; }
  .chapter { align-self: start; }
  .river-flow { container-type: size; --dock: clamp(120px, 10vw, 150px); --kw: min(calc(100cqh - 44px), calc(100cqw * .275)); align-items: stretch; }
  .inbox { justify-content: flex-start; gap: 8px; }
  .inbox .tile { flex: 1 1 0; min-height: 0; }
  .river-karen { align-items: flex-end; justify-content: center; }
  .river-karen::before { content: ""; position: absolute; z-index: 0; top: 50%; right: calc(var(--dock) + 18px - var(--kw) * .3); width: calc(var(--kw) * 1.6); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(107, 79, 216, .26), rgba(107, 79, 216, 0) 66%); pointer-events: none; }
  .river-karen karen-mascot { width: var(--kw); margin-right: calc(var(--dock) + 18px); }
  .river-count { position: absolute; bottom: 0; right: calc(var(--dock) + 18px); margin: 0; width: var(--kw); align-self: auto; }
}

/* ===== Produktet and Om os: the homepage's world, one window, in-page tabs ===== */
body.sub .page { height: 100%; min-height: 0; padding: clamp(12px, 3vh, 32px) 24px clamp(12px, 2vh, 24px); display: flex; flex-direction: column; gap: clamp(10px, 2vh, 20px); }
body.sub .page-head { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head-text { display: flex; flex-direction: column; gap: clamp(4px, 1vh, 10px); min-width: 0; max-width: 62em; }
body.sub .eyebrow { color: var(--shell-accent); font-size: 11px; }
body.sub .page-head h1 { font-size: clamp(22px, min(2.8vw, 4.6vh), 44px); line-height: 1.08; color: var(--paper); }
body.sub .page-head p { font-size: clamp(13px, min(1.2vw, 2.1vh), 17px); line-height: 1.5; color: var(--shell-muted); }

.ptabs { position: relative; display: flex; gap: 4px; flex: none; border-bottom: 1px solid rgba(201, 194, 230, .16); overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { flex: none; padding: 10px 16px 12px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--shell-muted); cursor: pointer; border-radius: 8px 8px 0 0; transition: color 160ms var(--ease-out, ease); }
.ptabs button:hover { color: var(--paper); }
.ptabs button[aria-selected="true"] { color: var(--paper); }
.ptabs button:focus-visible { outline: 2px solid var(--shell-accent); outline-offset: -2px; }
.ptab-ind { position: absolute; left: 0; bottom: 0; width: 100px; height: 2px; background: var(--shell-accent); transform-origin: left; transition: transform 220ms var(--ease-out, cubic-bezier(.23, 1, .32, 1)); }

.ppanels { position: relative; flex: 1; min-height: 0; container-type: size; }
.ppanel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 220ms cubic-bezier(.23, 1, .32, 1), transform 220ms cubic-bezier(.23, 1, .32, 1), visibility 0s 220ms; }
.ppanel.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ppanel:focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 2px; border-radius: 12px; }

body.sub .cards { height: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vh, 16px); }
body.sub .cards li { padding: clamp(10px, 2vh, 24px); gap: clamp(4px, 1vh, 10px); border: 0; border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); overflow: hidden; justify-content: flex-start; }
body.sub .cards h2 { font-size: clamp(15px, min(1.6vw, 2.8vh), 20px); }
body.sub .cards p { font-size: clamp(12px, min(1.1vw, 2vh), 15px); line-height: 1.45; }

body.sub .year { height: 100%; grid-template-columns: .9fr 1.1fr; gap: clamp(16px, 4vw, 56px); align-items: center; }
body.sub .year h2 { font-size: clamp(22px, min(2.6vw, 4.6vh), 38px); color: var(--paper); }
body.sub .year p { color: var(--shell-muted); font-size: clamp(13px, min(1.2vw, 2.1vh), 17px); line-height: 1.5; }
body.sub .wheel-wrap { width: min(100cqh, 46cqw); max-width: none; justify-self: center; }
.wheel { container-type: inline-size; }
.wheel-track { stroke: rgba(201, 194, 230, .16); }
.wheel-tick { fill: var(--shell-muted); }
.wheel-dot circle { fill: var(--shell); stroke: var(--shell-muted); }
.wheel-dot.done circle { fill: var(--shell-accent); stroke: var(--shell); }
.wheel-dot.active circle { stroke: var(--paper); }
.wheel-now-halo { fill: var(--shell-accent); }
.wheel-centre small { color: var(--shell-accent); font-size: max(10px, 3cqw); }
.wheel-big { font-size: max(30px, 15cqw); color: var(--paper); }
.wheel-big.done { color: var(--shell-accent); }
.wheel-unit { color: var(--shell-muted); font-size: max(10px, 2.9cqw); }
.wheel-what { color: var(--paper); font-size: max(13px, 4.6cqw); }
.wheel-when { color: var(--shell-muted); font-size: max(11px, 3.4cqw); }

body.sub .versus { height: 100%; border: 0; border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
body.sub .versus > div { padding: clamp(14px, 3vh, 28px); gap: clamp(8px, 2vh, 14px); justify-content: center; }
body.sub .versus h2 { font-size: clamp(18px, min(1.8vw, 3.2vh), 24px); }
body.sub .versus ul { font-size: clamp(13px, min(1.2vw, 2.2vh), 16px); gap: clamp(6px, 1.4vh, 12px); }
body.sub .versus .karen-side { background: #2b2150; color: var(--paper); }

body.sub .team { height: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; align-content: start; gap: clamp(8px, 2vh, 16px); }
body.sub .person, body.sub .company { border: 0; border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
body.sub .company { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }

@media (max-width: 899px) {
  body.sub .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  body.sub .year { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  body.sub .wheel-wrap { width: min(100cqh - 90px, 90cqw, 360px); }
  body.sub .year-copy { gap: 6px; }
  body.sub .year-copy p { display: none; }
  body.sub .company { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  body.sub .page { padding: 10px 16px 8px; gap: 8px; }
  body.sub .page-head p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ptabs button { padding: 8px 14px 10px; font-size: 13px; }
  .ppanel { overflow-y: auto; overscroll-behavior: contain; }
  body.sub .cards { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  body.sub .cards li { overflow: visible; }
  body.sub .versus { grid-template-columns: 1fr; height: auto; }
  body.sub .team { grid-template-columns: 1fr; height: auto; }
  body.sub .company { height: auto; }
  body.sub .year { height: auto; }
  body.sub .year-copy p { display: block; }
}
@media (prefers-reduced-motion: reduce) { .ppanel, .ptab-ind { transition: none; } }
@media (min-width: 900px) {
  .river-head { grid-template-areas: "h1 h1 ch" "sub sub ch" "cta cta ch"; }
  .chapters-wrap { align-self: end; }
  .river h1 { font-size: clamp(28px, min(3.8vw, 5.4vh), 80px); }
  .river .btn { height: clamp(38px, 5.4vh, 52px); }
  .river-stage { padding-top: clamp(8px, 1.8vh, 24px); }
}


/* ===== The demo dialog ===== */
.demo-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid rgba(201, 194, 230, .22); border-radius: 16px; background: #221b3f; color: var(--paper); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7); overflow: auto; overscroll-behavior: contain; }
.demo-dialog::backdrop { background: rgba(10, 8, 22, .62); }
.demo-form { padding: clamp(16px, 3vh, 28px); display: flex; flex-direction: column; gap: 12px; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-head h2, .demo-done h2 { font-size: clamp(22px, 3vh, 28px); color: var(--paper); letter-spacing: -.02em; }
.demo-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(201, 194, 230, .25); background: none; color: var(--shell-muted); font-size: 22px; line-height: 1; cursor: pointer; transition: color 160ms, border-color 160ms; }
.demo-x:hover { color: var(--paper); border-color: var(--shell-accent); }
.demo-body { display: flex; flex-direction: column; gap: 12px; }
.demo-intro { font-size: 14px; line-height: 1.5; color: var(--shell-muted); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.demo-grid .f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.demo-grid .f.wide { grid-column: 1 / -1; }
.demo-grid label { font-size: 13px; font-weight: 600; color: var(--paper); }
.demo-grid input, .demo-grid select, .demo-grid textarea { width: 100%; min-height: 42px; padding: 9px 14px; border: 1px solid rgba(201, 194, 230, .35); border-radius: 12px; background: rgba(253, 252, 255, .06); color: var(--paper); font: inherit; font-size: 16px; }
.demo-grid textarea { resize: vertical; min-height: 64px; }
.demo-grid select option { color: var(--ink); }
.demo-grid input::placeholder, .demo-grid textarea::placeholder { color: #9a93b8; }
.demo-grid input:focus-visible, .demo-grid select:focus-visible, .demo-grid textarea:focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 1px; }
.demo-grid [aria-invalid="true"] { border-color: #f08a76; }
.field-err { min-height: 0; font-size: 12.5px; line-height: 1.3; color: #f6a090; }
.field-err:empty { display: none; }
.demo-consent { font-size: 12.5px; line-height: 1.4; color: var(--shell-muted); }
.demo-consent a { color: var(--shell-accent); font-weight: 600; }
.demo-consent a:hover { color: var(--paper); }
.demo-fail { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(240, 138, 118, .5); color: #f6a090; font-size: 14px; }
.demo-fail[hidden], .demo-body[hidden], .demo-done[hidden] { display: none; }
.demo-send { align-self: flex-start; height: 46px; }
.demo-send[disabled] { opacity: .7; cursor: progress; }
.demo-send[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; margin-left: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: demo-spin 700ms linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo-done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 8px 0; }
.demo-done p { font-size: 16px; line-height: 1.5; color: var(--shell-muted); }
@media (max-width: 599px) { .demo-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .demo-send[aria-busy="true"]::after { animation: none; } }

/* Om os: the team and the company on one panel, both always visible. */
.ppanels.about .ppanel { display: flex; flex-direction: column; gap: clamp(8px, 2vh, 16px); }
.ppanels.about .sec { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--shell-muted); }
.ppanels.about .team, .ppanels.about .company { height: auto; }
.ppanels.about .person { padding: clamp(14px, 3vh, 28px); }
@media (max-width: 599px) { .ppanels.about .ppanel { overflow-y: auto; } }

/* Company information: a quiet fact list on the same white card as the other pages. */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; align-self: flex-start; width: min(640px, 100%); background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: clamp(10px, 2vh, 16px) 20px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-right: 32px; display: flex; align-items: center; }
.facts dd { font-weight: 600; }
.facts dt:nth-last-of-type(1), .facts dd:last-of-type { border-bottom: 0; }
body.home .legal a[href^="/"] { color: var(--shell-muted); }
@media (max-width: 599px) { .facts { grid-template-columns: 1fr; } .facts dt { padding-bottom: 0; border-bottom: 0; } .facts dd { padding-top: 2px; } }
/* Privacy: six short sections on the same white card, in columns sized to fit one window. When they cannot (a phone),
   the card scrolls inside itself and the page stays put. */
.policy { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: clamp(12px, 2.6vh, 28px) clamp(20px, 2.6vw, 36px); padding: clamp(14px, 2.8vh, 28px) clamp(16px, 2vw, 28px); background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.policy section { display: flex; flex-direction: column; gap: clamp(4px, .8vh, 8px); min-width: 0; }
.policy h2 { font-size: clamp(15px, min(1.5vw, 2.6vh), 19px); }
.policy p { font-size: clamp(12.5px, min(1.05vw, 1.9vh), 14.5px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.policy .policy-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 600; }
@media (max-width: 899px) { .policy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .policy { grid-template-columns: 1fr; } }
/* Focus rings: the accent on the dark ground, the violet on white cards. */
:focus-visible { outline-color: var(--shell-accent); }
.person a:focus-visible, .company a:focus-visible, .facts a:focus-visible, .policy a:focus-visible, .cards a:focus-visible, .ledger a:focus-visible { outline-color: var(--ai); }


/* Inbox tiles hug their content and sit centred on Karen's centre line; "Just received" fills the freed space below. */
@media (min-width: 900px) {
  .inbox { justify-content: center; gap: 8px; }
  .inbox .tile { flex: none; padding: 10px 12px; }
}
.recent { display: none; position: absolute; left: 0; right: 0; bottom: 0; }
@container (min-height: 400px) { .recent { display: block; } }
.recent-head { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--shell-muted); margin-bottom: 6px; }
.recent ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.recent li { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--shell-muted); white-space: nowrap; }
.recent li svg { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--shell-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.recent li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.recent li span { font-variant-numeric: tabular-nums; }

/* Produkt cards: hug their content, an icon tile top left and one example chip at the foot. */
body.sub .cards { grid-template-rows: none; grid-auto-rows: auto; align-content: center; align-items: stretch; }
body.sub .cards li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 10px; row-gap: clamp(4px, 1vh, 8px); align-content: start; }
body.sub .cards li p { grid-column: 1 / -1; }
.ci { width: 32px; height: 32px; border-radius: 9px; background: var(--ai-soft); display: grid; place-items: center; flex: none; }
.ci svg { width: 18px; height: 18px; fill: none; stroke: var(--ai-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.sub .cards li h2 { align-self: center; }
.ex { grid-column: 1 / -1; align-self: end; justify-self: start; margin-top: clamp(4px, 1vh, 8px); max-width: 100%; padding: 3px 10px; border-radius: 999px; background: var(--ai-soft); color: var(--ai-text); font-family: var(--mono); font-size: 11.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pp-vs { display: flex; flex-direction: column; justify-content: center; }
#pp-vs .versus { height: auto; }
@media (max-width: 599px) { body.sub .cards li { grid-template-rows: none; } }

/* Reduced motion on the homepage: it still plays, with opacity only. A chapter and a card cross-fade without the rise,
   the stamp is simply there, and the rail's fill still grows (it is a progress indicator, not decoration). */
.river.still .chapter { transform: none; transition: opacity 260ms ease, visibility 0s 260ms; }
.river.still .chapter.on { transition-delay: 0s; }
.river.still .fcard { transform: none; transition: opacity 260ms ease, visibility 0s 260ms; }
.river.still .fcard.on { transition: opacity 360ms ease; }
.river.still .stamp { transform: rotate(-7deg); }
.river.still .fcard.on .stamp { transition: opacity 260ms 300ms ease; }

/* The pause button at the end of the rail. */
.rail-row { display: flex; align-items: center; gap: 10px; margin-top: clamp(8px, 2vh, 18px); }
.rail-row .chapter-rail { flex: 1; min-width: 0; margin-top: 0; }
.rail-pause { flex: none; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(201, 194, 230, .35); background: none; color: var(--shell-muted); cursor: pointer; transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.rail-pause:hover { color: var(--paper); border-color: var(--shell-accent); }
.rail-pause:focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 2px; }
.rail-pause:active { transform: scale(.97); }
.rail-pause svg { width: 12px; height: 12px; fill: currentColor; }
.rail-pause .i-play, .rail-pause[aria-pressed="true"] .i-pause { display: none; }
.rail-pause[aria-pressed="true"] .i-play { display: block; }

/* Safe areas (viewport-fit=cover): the header grows by the top inset so its row stays centred, the header, content and
   footer share one side gutter that never goes under a notch, and the footer clears the home indicator. On a desktop
   every inset is 0, so nothing moves there. */
:root { --gutter: 24px; }
.top { padding-top: env(safe-area-inset-top); }
.wrap, body.sub .page { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
body.home footer .wrap { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* ===== Below 900px (phones, small tablets): the page scrolls in one column =====
   The one-window rule is for a desktop or a tablet in landscape. On a phone every height lock, line clamp, ellipsis and
   inner scroll box above would cut text (the owner, 2026-11-09: no text is ever cut or clamped), so here they are
   undone: the page grows to its content and scrolls, and every label wraps. */
@media (max-width: 899px) {
  html:has(body.home) { overflow: visible; }
  body.home { height: auto; overflow: visible; }
  :root { --gutter: 16px; }

  /* Forside: headline, subtitle, buttons, chapter and rail; then Karen in her own row beside the inbox, the counter
     under her; then every deadline. */
  .river, .river-stage { height: auto; }
  .river-stage { padding-bottom: 16px; gap: 20px; }
  .river .hero-sub { display: block; overflow: visible; -webkit-line-clamp: none; }
  .chapter p { display: block; overflow: visible; -webkit-line-clamp: none; }
  .river .cta { flex-wrap: wrap; }
  .river-flow { --dock: 0px; --kw: clamp(104px, 34vw, 220px); flex: none; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; gap: 20px; }
  .river-karen { align-items: center; }
  .river-karen karen-mascot { width: var(--kw); margin-right: 0; }
  .river-count { margin-right: 0; width: auto; align-self: center; }
  .tile-text b, .tile-text small, .dl-track b, .slip b { white-space: normal; overflow: visible; text-overflow: clip; }
  .tile-text small, .inbox-head { display: block; }
  /* Wide enough that a long supplier name ("Dansk Supermarked Indkøb A/S") takes two lines, not three. */
  .slip { width: 168px; }
  .deadlines { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; }
  .dl-label { display: flex; white-space: normal; }
  .dl-label span { display: inline; }
  .dl-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); row-gap: 14px; }
  .dl-track li.done, .dl-track li:nth-child(n+4) { display: block; }
  .dl-track li { padding-right: 8px; }

  /* Produktet, Om os, Virksomhedsoplysninger, Privatliv: the panels stack in the page instead of filling a box. */
  body.sub .page { height: auto; }
  body.sub .page-head p { display: block; overflow: visible; -webkit-line-clamp: none; }
  .ptabs { flex-wrap: wrap; overflow: visible; }
  .ppanels { flex: none; container-type: inline-size; }
  .ppanel, .ppanels.about .ppanel { position: static; overflow: visible; }
  .ppanel:not(.on), #pp-vs:not(.on) { display: none; }
  /* A panel comes in from display: none, so its fade and rise start here (no motion under reduced motion: .ppanel has no transition). */
  @starting-style { .ppanel.on { opacity: 0; transform: translateY(8px); } }
  body.sub .cards, body.sub .year, body.sub .versus, body.sub .team, body.sub .company { height: auto; }
  body.sub .cards li { overflow: visible; }
  .ex { white-space: normal; overflow: visible; }
  body.sub .year-copy p { display: block; }
  body.sub .wheel-wrap { width: min(100%, 360px); }
  .policy { overflow: visible; }
  .company dd { overflow-wrap: anywhere; }
}
@media (max-width: 599px) {
  body.sub .company { grid-template-columns: 1fr; }
}
/* A tablet or a phone on its side (600-899px): Karen keeps the dock beside her, so the reading moment (river.2.js,
   placeReader) has room to show its card. */
@media (min-width: 600px) and (max-width: 899px) {
  .river-flow { --dock: clamp(124px, 11vw, 176px); }
  .river-karen { align-items: flex-end; }
  .river-karen karen-mascot { margin-right: calc(var(--dock) + 18px); }
  .river-count { margin-right: calc(var(--dock) + 18px); width: var(--kw); align-self: flex-end; text-align: center; }
}
/* A narrow phone (an iPhone SE, 320px): the brand, the language switch and "Book en demo" keep one row, and the inbox
   tiles take the full width above Karen, so a tile label never runs into its count. */
@media (max-width: 479px) {
  .river-flow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .top .wrap { column-gap: 8px; }
  .top-end { gap: 8px; }
  .lang button { padding: 6px 2px; }
  .top .demo { padding: 0 12px; font-size: 13px; }
}

/* A phone (the owner, 2026-11-09: Karen sat below the fold, under Safari's toolbar): the first screen is the headline,
   Karen at work and the chapter she is on; the inbox and the deadlines follow. The two layout rows are dissolved so
   their parts can be ordered; "Sådan arbejder Karen" only repeats the Produktet tab right above it, so it goes. */
@media (max-width: 599px) {
  .top .demo { height: 40px; padding: 0 16px; font-size: 14px; }
  .river-stage { gap: 16px; }
  .river-head, .river-flow { display: contents; }
  .river-copy, .chapters-wrap, .inbox, .river-karen { padding: 0 var(--gutter); }
  .river-copy { order: 1; }
  .river .cta { display: none; }
  .river-karen { order: 2; --kw: clamp(120px, 40vw, 200px); }
  .chapters-wrap { order: 3; }
  .chapter { align-self: start; }
  .inbox { order: 4; }
  .deadlines { order: 5; }
}
