/* Munra public site: the homepage and the secondary pages (body.page). CSP-safe: no inline
   styles in markup. Fonts are subset to Latin + Swedish and pinned to the weights in use
   (README: "Fonts"); the deck keeps the full files. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/geist-v5-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-5.2.7-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-mono-5.2.7-500-latin.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/newsreader-v26-latin.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/newsreader-italic-v26-latin.woff2) format('woff2'); }
/* Metric-matched local fallbacks for Newsreader (ascent 73.5%, descent 26.5%, lineGap 0%)
   calibrated per platform serif (Georgia on iOS/macOS/Windows, Noto Serif on Android/Linux,
   Times New Roman / Liberation Serif fallback) to prevent hero heading reflow on font swap (#3377). */
@font-face { font-family: 'Newsreader Fallback'; font-style: normal; font-weight: 400; src: local('Georgia'); size-adjust: 89%; ascent-override: 82.6%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback Noto'; font-style: normal; font-weight: 400; src: local('Noto Serif'), local('Noto Serif Regular'); size-adjust: 87%; ascent-override: 84.5%; descent-override: 30.5%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback Times'; font-style: normal; font-weight: 400; src: local('Times New Roman'), local('Liberation Serif'); size-adjust: 102.5%; ascent-override: 71.7%; descent-override: 25.9%; line-gap-override: 0%; }

/* One palette, Scandinavian clinical editorial: warm paper, blue-black ink and
   the brand navy. Headings are the serif, reading text the sans. Yellow (--mark) means
   evidence only: a marked draft row, cited quotes, evidence thread and active review callout.
   Motion: the first three durations and both curves copy the dashboard register
   (apps/verification-ui-dd/src/styles/tokens.css; check-public.mjs fails on drift). Editorial
   SVG animations use tokens in :root only, zero scroll machinery, and stop under reduced motion. */
:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --paper-rgb: 251, 250, 247;
  --wall: #f3f0ea;
  --card: #ffffff;
  --ink: #1b2430;
  --ink-2: #3c4552;
  --muted: #5c6470;
  --line: #e2ddd3;
  --mark: #fae7bb;
  --mark-soft: #f9ecce;
  --mark-ink: #6e4d04;
  --mark-rule: #9e7107;
  /* the shared brand navy root (.planning/codebase/design-system.md "Varumärkeslager") */
  --navy: #1a2f4a;
  --night: #16212f;
  --night-ink: #eef1f4;
  --night-2: #b7c0cb;
  --night-rule: rgba(238, 241, 244, .16);
  --gradient-paper: linear-gradient(125deg, var(--paper), #efe6d6);
  --gradient-coach: linear-gradient(125deg, #f1f5ec, #c7dbcf);
  --gradient-scribe: linear-gradient(125deg, var(--paper), #dde7eb);
  --gradient-vardminnet: linear-gradient(125deg, #faf4e9, #edd5c3);
  --gradient-evidence: linear-gradient(125deg, #fff9ed, #eed9b3);
  --gradient-trust: linear-gradient(125deg, #32464a, #20382f);
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', 'Newsreader Fallback', 'Newsreader Fallback Noto', 'Newsreader Fallback Times', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(20px, 4.4vw, 64px);
  --max: 1240px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --motion-fast: 120ms;
  --motion-base: 160ms;
  --motion-enter: 200ms;
  --ease-enter: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --anim-draw: 720ms;
  --anim-pulse: 680ms;
  --anim-ambient: 4800ms;
  --anim-delay-1: 120ms;
  --anim-delay-2: 260ms;
  --anim-delay-3: 400ms;
  --anim-delay-4: 540ms;
  --anim-wave-1: 0ms;
  --anim-wave-2: 360ms;
  --anim-wave-3: 720ms;
  --anim-wave-4: 1080ms;
  --anim-wave-5: 1440ms;
  --anim-wave-6: 1800ms;
  --text-label: .75rem;
  --text-body: 1rem;
  --text-lead: clamp(1.0625rem, 1.4vw, 1.1875rem);
  --text-h1: clamp(2rem, 9vw, 2.75rem);
  --text-h2: clamp(1.75rem, 3.4vw, 2.5rem);
  --measure-prose: 65ch;
  --space-copy: 14px;
  --shadow-card: 0 0 0 1px var(--line), 0 1px 2px rgba(27, 36, 48, .04), 0 18px 40px -28px rgba(27, 36, 48, .28);
}
@media (min-width: 900px) { :root { --text-h1: clamp(2.75rem, 4.4vw, 4rem); } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
/* in-page link targets take focus but are not controls */
[tabindex='-1']:focus { outline: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.trust :focus-visible { outline-color: var(--night-ink); }

/* ---------- nav: solid and sticky on every page, with no scrolled state ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 max(var(--gut), calc((100% - var(--max)) / 2)); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
/* the wordmark: the shared mark (assets/munra-mark.svg, generated from brand/) in the
   brand navy, then the name in the sans */
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: .3em; font: 600 22px/1 var(--sans); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.brand-mark { flex: none; width: 1.18em; height: 1em; background: var(--navy); -webkit-mask: url(assets/munra-mark.svg) center / contain no-repeat; mask: url(assets/munra-mark.svg) center / contain no-repeat; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav nav > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-2); transition: color var(--motion-fast) var(--ease-standard); }
.nav nav > a:hover { color: var(--ink); }
.nav nav > .nav-cta { background: var(--navy); color: #fff; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 500; transition: background-color var(--motion-fast) var(--ease-standard); }
.nav nav > .nav-cta:hover { color: #fff; background: var(--night); }
/* phones: a no-script disclosure menu beside the call to action */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; transition: background-color var(--motion-fast) var(--ease-standard); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ''; width: 16px; height: 10px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 4px / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 8px / 100% 2px no-repeat; }
.menu[open] summary { background: var(--wall); }
.menu[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) 0 4px / 100% 2px no-repeat; }
@media (hover: hover) { .menu summary:hover { background: var(--wall); } }
.menu-list { position: absolute; right: 0; top: calc(100% + 10px); display: grid; min-width: 220px; max-height: calc(100dvh - 80px); overflow-y: auto; padding: 8px; border: 1px solid transparent; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.menu-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-size: 16px; transition: background-color var(--motion-fast) var(--ease-standard); }
.menu-list a:hover { background: var(--wall); }
.menu-list a:not([hreflang]) + a[hreflang] { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
/* below 1120 px the seven links and the call to action no longer fit on one line */
@media (max-width: 1120px) {
  .nav nav { gap: 6px; }
  .nav nav > a:not(.nav-cta) { display: none; }
  .nav nav > .nav-cta { font-size: 14px; padding: 0 14px; }
  .menu { display: block; }
}
/* 320-360 px: wordmark, call to action and menu still fit on one line */
@media (max-width: 360px) {
  .nav nav { gap: 2px; }
  .nav nav > .nav-cta { white-space: nowrap; font-size: 14px; padding: 0 10px; }
  .menu summary { gap: 6px; padding: 0 6px; }
  .brand { font-size: 18px; }
}

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--navy); color: #fff; text-decoration: none; font-family: inherit; font-weight: 500; font-size: 16px; cursor: pointer; transition: background-color var(--motion-fast) var(--ease-standard); }
.btn:hover { background: var(--night); }
.btn:disabled { opacity: .65; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--muted); }
.btn-ghost:hover { background: var(--card); }

/* Labels and headings the secondary pages share with the homepage */
.step, .eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 500 var(--text-label)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.scope-tag { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 500 0.875rem/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.kicker { display: inline-block; font: 500 var(--text-label)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { font: 400 var(--text-h1)/1.08 var(--serif); letter-spacing: -.015em; margin: 18px 0 22px; }
h1 em { font: italic 400 1em/1.08 var(--serif); color: var(--ink-2); display: block; }
.lede { margin-bottom: 28px; }

/* ---------- the first screen: two doors + watercolour; no text sits on art ---------- */
.hero { display: grid; gap: 24px; max-inline-size: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding: clamp(20px, 4vw, 56px) var(--gut) clamp(28px, 4vw, 48px); }
/* Font-independent em measure (matches Newsreader's 16ch / 21ch) so swapping from the fallback
   serif to Newsreader never widens the heading box and shifts .hero-doors on phones (#3377). */
.hero h1 { margin: 12px 0 10px; max-width: 9.35em; text-wrap: balance; }
.hero-intro { margin-bottom: 16px; max-width: 40ch; color: var(--ink-2); font-size: var(--text-body); line-height: 1.5; text-wrap: pretty; }
.hero-doors { display: grid; gap: 12px; max-width: 38em; }
@media (min-width: 600px) { .hero-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-door { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--muted); border-radius: var(--radius-lg); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(27, 36, 48, .04), 0 14px 32px -24px rgba(27, 36, 48, .22); transition: background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard); }
.hero-door-open { border: 1.5px solid var(--navy); }
@media (hover: hover) {
  .hero-door:hover { border-color: var(--navy); }
  .hero-door:hover .door-cta { text-decoration-thickness: 2.5px; }
}
.door-status { font: 500 0.875rem/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hero-door-open .door-status { color: var(--navy); }
.door-title { font: 400 20px/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.door-desc { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.door-cta { margin-top: auto; padding-top: 2px; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--navy); text-decoration: underline; text-decoration-color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.hero-door-open .door-cta {
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
@media (hover: hover) {
  .hero-door-open:hover .door-cta { background: var(--night); }
}
.hero-note { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.hero-art { display: grid; gap: 6px; }
.hero-art-fig { display: grid; gap: 6px; margin: 0; }
.hero-art-svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--wall); box-shadow: 0 1px 2px rgba(27, 36, 48, .04), 0 18px 38px -28px rgba(27, 36, 48, .24); }
.hero-art-cap { font: 500 var(--text-label)/1.4 var(--mono); color: var(--muted); }
.hero-art-ctrl { display: flex; justify-content: flex-end; }
.anim-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--muted); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font: 500 13px/1.2 var(--mono); letter-spacing: .02em; cursor: pointer; transition: background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard); }
.anim-toggle:hover { background: var(--wall); border-color: var(--navy); }
.anim-toggle-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); flex: none; }
.hero-art.is-paused .anim-toggle-dot { background: var(--muted); }
html:not(.js) .hero-art-ctrl,
.hero-art:not(.is-wired) .hero-art-ctrl { display: none; }
@media (min-width: 900px) {
  .hero-art { margin-inline-end: calc(var(--gut) * -.25); }
  .hero-art-svg { max-block-size: min(400px, calc(100svh - 178px)); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
  /* The owner's headline in three lines beside the art: at the page h1 size it broke into four. */
  .hero h1 { font-size: clamp(2.5rem, 3.6vw, 3.375rem); max-width: 12.15em; }
}
/* short windows and small phones tighten: every hero door and note stays on the first screen */
@media (max-height: 760px) {
  .hero { padding-block: 8px 14px; gap: 12px; }
  .hero h1 { margin: 4px 0 8px; }
  .hero-doors { gap: 8px; }
  .hero-door { padding: 8px 12px; gap: 2px; }
  .door-title { font-size: 19px; }
  .hero-note { margin-top: 6px; }
}
@media (max-width: 360px) and (max-height: 760px) {
  .hero-door { padding-block: 6px; }
  .hero-door-open .door-cta { padding-block: 0; }
}
@media (max-height: 760px) and (min-width: 900px) {
  :root { --text-h1: clamp(2.125rem, 3.3vw, 2.75rem); }
  .hero h1 { font-size: var(--text-h1); }
  .hero-doors { max-width: none; gap: 12px; }
  .hero-art { gap: 4px; }
  .hero-art-svg { max-block-size: calc(100svh - 176px); }
}

/* ---------- the sections: one vertical rhythm, one column width ---------- */
.band { padding: clamp(56px, 7vw, 96px) var(--gut); }
.band > * { max-inline-size: var(--max); margin-inline: auto; }
.band-alt { background: var(--wall); }
.band h2, .pilot h2 { font: 400 var(--text-h2)/1.12 var(--serif); letter-spacing: -.01em; max-width: 22ch; text-wrap: balance; }
.sec-head { display: grid; gap: var(--space-copy); margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head > p:not(.eyebrow) { color: var(--ink-2); font-size: var(--text-lead); max-width: 52ch; text-wrap: pretty; }

/* ---------- the example visit ----------
   The draft and the transcript side by side; every quote is always shown. Choosing a draft row
   or a transcript quote marks the linked row and every quote it cites in evidence yellow, paired
   with a 3 px left rule and inverted timestamp chips. Only colour animates, so nothing moves. */
.scene { border-top: 1px solid var(--line); }
.scene-inner { display: grid; gap: 28px; }
@media (min-width: 900px) { .scene-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; } }
.scene-hint { display: none; }
html.js .scene-hint { display: block; }
.draft { background: var(--card); border: 1px solid transparent; border-radius: var(--radius-lg); padding: 18px 22px 14px; box-shadow: var(--shadow-card); }
.draft-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font: 600 15px/1.2 var(--sans); }
.draft-tag { font: 500 var(--text-label)/1.3 var(--mono); letter-spacing: .03em; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px 10px 9px; margin: 0 -12px; border-left: 3px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; transition: background-color var(--motion-fast) var(--ease-standard); }
.row-k { grid-column: 1 / -1; font: 500 var(--text-label)/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.row-t { font-size: 16px; line-height: 1.5; }
.row-pin { grid-column: 2; display: flex; flex-direction: column; gap: 4px; align-self: start; }
.row-pin span { font: 500 var(--text-label)/1 var(--mono); padding: 4px 6px; border: 1px solid transparent; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.row.is-active, .scene:not(.is-wired) .row[data-default] { background: var(--mark); border-left-color: var(--mark-ink); }
.row.is-active .row-k, .scene:not(.is-wired) .row[data-default] .row-k { color: var(--mark-ink); }
.row.is-active .row-pin span, .scene:not(.is-wired) .row[data-default] .row-pin span, .bubble.is-on .at { background: var(--mark-ink); color: #fff; box-shadow: inset 0 0 0 1px var(--mark-ink); }
.is-wired .row, .is-wired .bubble { cursor: pointer; }
.is-wired .row:focus-visible, .is-wired .bubble:focus-visible { outline-offset: -2px; }
@media (hover: hover) {
  .is-wired .row:not(.is-active):hover { background: var(--wall); }
  .is-wired .bubble:not(.is-on):hover { background: var(--wall); }
}
.draft-foot { display: flex; align-items: center; gap: 9px; margin: 8px -22px 0; padding: 12px 22px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.tick { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); flex: none; }

.src-head { font: 500 var(--text-label)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.bubbles { display: grid; border-top: 1px solid var(--line); }
.bubble { display: grid; gap: 6px; padding: 12px 14px 12px 11px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; transition: background-color var(--motion-fast) var(--ease-standard); }
/* static structural distinction between Patient (flush left, outlined tag) and Läkare (inset, navy tag) */
.bubble[data-who="D"] { margin-left: 16px; }
@media (max-width: 360px) { .bubble[data-who="D"] { margin-left: 10px; } }
.bubble.is-on { background: var(--mark-soft); border-left-color: var(--mark-ink); }
.say { display: block; font: 400 17px/1.5 var(--serif); }
/* upright serif quotes, Swedish style (the same mark opens and closes): the homepage never
   loads the italic face (subpages use it for h1 em) */
.say::before, .say::after { content: '\201D'; color: var(--muted); }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 var(--text-label)/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.meta-sep { display: none; }
.who { display: inline-block; padding: 3px 6px; border: 1px solid transparent; border-radius: var(--radius-sm); letter-spacing: .06em; text-transform: uppercase; }
.bubble[data-who="P"] .who { background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.bubble[data-who="D"] .who { background: var(--navy); color: #fff; }
.bubble.is-on[data-who="P"] .who { background: var(--card); color: var(--mark-ink); box-shadow: inset 0 0 0 1px var(--mark-rule); }
.at { display: inline-block; padding: 4px 6px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.bubble.is-on .say::before, .bubble.is-on .say::after { color: var(--mark-ink); }
.draft-note { margin-top: 12px; font-size: 16px; color: var(--muted); }
/* Narrow screens: keep the cited quotes right below the selected draft row.
   Overlap the slots to leave the full transcript below the card in place. */
.src-peek { display: none; }
@media (max-width: 899px) {
  /* Padding keeps the preview height independent of neighbouring margins. */
  html.js .src-peek { display: block; padding-block: 8px 14px; }
}
.src-peek-stack { display: grid; }
.src-peek-slot { grid-area: 1 / 1; display: grid; align-content: start; visibility: hidden; }
.src-peek-slot.is-active { visibility: visible; }
.src-peek-item { display: grid; gap: 2px; padding: 12px 14px; background: var(--mark-soft); border-left: 3px solid var(--mark-ink); }
.src-peek-item:first-child { border-top-right-radius: var(--radius-sm); }
.src-peek-item:last-child { border-bottom-right-radius: var(--radius-sm); }
.src-peek-item + .src-peek-item { border-top: 1px solid var(--mark-rule); }
.src-peek-meta { display: block; font: 500 var(--text-label)/1.4 var(--mono); letter-spacing: .04em; color: var(--mark-ink); }
.src-peek-quote { display: block; font: 400 17px/1.5 var(--serif); color: var(--ink); }
.src-peek-quote::before, .src-peek-quote::after { content: '\201D'; color: var(--mark-ink); }
/* Narrow-screen (<900 px) fixed-height mirror of the active draft row docked below the sticky
   nav at the top of .transcript while reading quotes, so tapping any quote (first or last at
   320x640) keeps the citing draft row immediately visible with 0 px load or selection shift
   and without covering the first quote at rest. */
.draft-peek { display: none; }
@media (max-width: 899px) {
  html.js .draft-peek { display: block; position: sticky; top: 64px; z-index: 10; margin-bottom: 10px; padding: 10px 0 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
  html.js .draft-peek .src-head { margin-bottom: 6px; }
  html.js .bubble { scroll-margin-top: 224px; }
}
.draft-peek-stack { display: grid; }
.draft-peek-slot { grid-area: 1 / 1; display: grid; align-content: start; visibility: hidden; }
.draft-peek-slot.is-active { visibility: visible; }
.draft-peek-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px 10px 9px; background: var(--mark); border-left: 3px solid var(--mark-ink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.draft-peek-k { grid-column: 1 / -1; font: 500 var(--text-label)/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mark-ink); }
.draft-peek-t { font-size: 16px; line-height: 1.5; color: var(--ink); }
.draft-peek-pin { grid-column: 2; display: flex; flex-direction: column; gap: 4px; align-self: start; }
.draft-peek-pin span { font: 500 var(--text-label)/1 var(--mono); padding: 4px 6px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--mark-ink); color: #fff; box-shadow: inset 0 0 0 1px var(--mark-ink); }

/* ---------- Vårdminnet ---------- */
.step-item { display: grid; align-content: start; gap: 10px; }
.step-item > p:not(.eyebrow) { color: var(--ink-2); font-size: 16px; max-width: 44ch; text-wrap: pretty; }
.step-home { display: grid; gap: 28px; }
@media (min-width: 900px) { .step-home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; } }
.home-art { margin: 0; }
.home-art .home-art-text { display: none; }
@media (max-width: 760px) {
  .home-art .vardminne-svg { display: none; }
  .home-art .home-art-text { display: grid; gap: 12px; margin: 0; }
  .home-art-text .scope-tag { justify-self: start; }
  .home-art-title { font: 400 22px/1.25 var(--serif); }
  .home-art-text dt { font-weight: 600; }
  .home-art-text time { color: var(--muted); font-weight: 400; }
  .home-art-text dd + dt { margin-top: 8px; }
}
.vardminne-svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--wall); box-shadow: 0 1px 2px rgba(27, 36, 48, .04), 0 18px 38px -28px rgba(27, 36, 48, .22); }
.memo { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--ink); max-width: 480px; }
.memo-big { font: 400 clamp(2.5rem, 4vw, 3.25rem)/1 var(--serif); letter-spacing: -.01em; margin-bottom: 10px; }
.memo-t { font-size: 17px; color: var(--ink-2); }
.memo-src { margin-top: 10px; font: 500 14px/1.5 var(--mono); color: var(--muted); }
.memo-src cite { font-style: normal; }
.page-sec .research-note { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; }
.page-sec .research-note > * { margin: 0; }
.research-type { font-weight: 600; }
.research-note .memo-src { font: 500 var(--text-body)/1.5 var(--sans); }

/* ---------- editorial SVG typography & bounded GPU motion ---------- */
.svg-mono { font-family: var(--mono); font-weight: 500; letter-spacing: .05em; }
.svg-sans { font-family: var(--sans); }
.svg-serif { font-family: var(--serif); }
.hero-wave-bar { transform-box: fill-box; transform-origin: center; }
.hero-thread { stroke-dasharray: 240; stroke-dashoffset: 0; }
.hero-arc-draw { stroke-dasharray: 180; stroke-dashoffset: 0; }
.vm-check-path { stroke-dasharray: 28; stroke-dashoffset: 0; }

@keyframes wave-breathe {
  0%, 100% { transform: scaleY(0.72); opacity: .72; }
  50% { transform: scaleY(1.16); opacity: 1; }
}
@keyframes stroke-draw {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}
@keyframes arc-draw {
  from { stroke-dashoffset: 180; }
  to { stroke-dashoffset: 0; }
}
@keyframes check-draw {
  from { stroke-dashoffset: 28; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes shot-ring-pulse {
  0% { transform: scale(1); opacity: .78; }
  100% { transform: scale(1.75); opacity: 0; }
}
@keyframes spot-focus {
  0% { opacity: 0; transform: scale(0.985); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .hero-art.is-wired:not(.is-paused) .hero-wave-bar { animation: wave-breathe var(--anim-ambient) var(--ease-standard) infinite; }
  html.js .hero-art.is-wired:not(.is-paused) .w-d1 { animation-delay: var(--anim-wave-1); }
  html.js .hero-art.is-wired:not(.is-paused) .w-d2 { animation-delay: var(--anim-wave-2); }
  html.js .hero-art.is-wired:not(.is-paused) .w-d3 { animation-delay: var(--anim-wave-3); }
  html.js .hero-art.is-wired:not(.is-paused) .w-d4 { animation-delay: var(--anim-wave-4); }
  html.js .hero-art.is-wired:not(.is-paused) .w-d5 { animation-delay: var(--anim-wave-5); }
  html.js .hero-art.is-wired:not(.is-paused) .w-d6 { animation-delay: var(--anim-wave-6); }
  html.js .hero-art.is-paused .hero-wave-bar { animation: none; }
  html.js .hero-thread { animation: stroke-draw var(--anim-draw) var(--ease-enter) var(--anim-delay-1) both; }
  html.js .hero-arc-draw { animation: arc-draw var(--anim-draw) var(--ease-enter) var(--anim-delay-2) both; }
  html.js .vm-check-1 { animation: check-draw var(--anim-draw) var(--ease-enter) var(--anim-delay-1) both; }
  html.js .vm-check-2 { animation: check-draw var(--anim-draw) var(--ease-enter) var(--anim-delay-2) both; }
  html.js .vm-check-3 { animation: check-draw var(--anim-draw) var(--ease-enter) var(--anim-delay-3) both; }
}

/* Reduced motion is live: the end state at once. Page cross-fades stay inside no-preference. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms; --motion-base: 0ms; --motion-enter: 0ms;
    --anim-draw: 0ms; --anim-pulse: 0ms; --anim-ambient: 0ms;
    --anim-delay-1: 0ms; --anim-delay-2: 0ms; --anim-delay-3: 0ms; --anim-delay-4: 0ms;
    --anim-wave-1: 0ms; --anim-wave-2: 0ms; --anim-wave-3: 0ms; --anim-wave-4: 0ms; --anim-wave-5: 0ms; --anim-wave-6: 0ms;
  }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; animation-iteration-count: 1 !important; }
  .hero-wave-bar { animation: none !important; }
  .anim-toggle { display: none; }
}
/* page to page: a short cross-fade, the nav held still */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--motion-base); animation-timing-function: var(--ease-enter); }
  .nav { view-transition-name: site-nav; }
  ::view-transition-group(site-nav) { z-index: 1; }
  ::view-transition-group(site-nav), ::view-transition-new(site-nav) { animation: none; }
  ::view-transition-old(site-nav) { display: none; }
}

/* the real product: one crop per screen size, with interactive numbered callouts */
.shot { margin-top: 0; }
.shot-frame { position: relative; border: 1px solid transparent; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(27, 36, 48, .4); }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.shot-overlay { position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius-lg); overflow: hidden; }
.shot-spot { position: absolute; border: 2px solid var(--navy); border-radius: var(--radius-md); background: rgba(26, 47, 74, .08); opacity: 0; transition: opacity var(--motion-base) var(--ease-standard); }
.shot-spot.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .shot-spot.is-pulsing { animation: spot-focus var(--anim-pulse) var(--ease-enter) 1; }
}
/* Desktop screenshot region highlights (granskning-v2-wide.webp 1760x1080) */
.shot-spot-1 { left: 2.6%; top: 32.8%; width: 55.6%; height: 9.8%; }
.shot-spot-2 { left: 69.8%; top: 9.2%; width: 29.4%; height: 55.4%; }
.shot-spot-3 { left: 71.4%; top: 55.6%; width: 26.0%; height: 5.8%; }

.co { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; z-index: 2; }
.co > span { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 13px/1 var(--mono); box-shadow: 0 0 0 3px #fff; transition: background-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-enter); }
.co:hover > span { background: var(--night); transform: scale(1.06); }
.co.is-active > span { background: var(--night); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.co > span::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--navy); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .co.is-pulsing > span::after { animation: shot-ring-pulse var(--anim-pulse) var(--ease-enter) 1; }
}
/* positions in % of the wide crop (1760x1080) */
/* positions from site-shots.ts, which prints them for each new capture */
.co-1 { left: 0; top: 37.8%; }
.co-2 { left: 68.1%; top: 13.5%; }
.co-3 { left: 70%; top: 58.7%; }
.co-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px clamp(16px, 2.5vw, 28px); margin-top: 20px; }
.co-list li { display: flex; min-width: 0; }
.co-item-btn { display: flex; gap: 12px; align-items: start; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: var(--ink-2); font: 400 16px/1.5 var(--sans); text-align: left; overflow-wrap: break-word; cursor: pointer; transition: background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard); }
.co-item-btn:hover { background: var(--card); border-color: var(--line); }
.co-item-btn.is-active { background: var(--card); border-color: var(--navy); color: var(--ink); }
.co-item-btn > span:first-child { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 13px/1 var(--mono); transition: background-color var(--motion-fast) var(--ease-standard); }
.co-item-btn.is-active > span:first-child { background: var(--night); box-shadow: 0 0 0 2px var(--navy); }
.shot-hint { margin-top: 10px; font: 500 var(--text-label)/1.5 var(--mono); color: var(--muted); }
html:not(.js) .shot-hint,
html:not(.js) .shot-overlay { display: none; }
html:not(.js) .co,
html:not(.js) .co-item-btn { cursor: default; pointer-events: none; }
html:not(.js) .co-item-btn.is-active { background: transparent; border-color: transparent; color: var(--ink-2); }
html:not(.js) .co.is-active > span { background: var(--navy); box-shadow: 0 0 0 3px #fff; }
@media (max-width: 960px) { .page-sec .co-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .co-list { grid-template-columns: 1fr; }
  .shot { max-width: 440px; }
  /* inset the portrait crop so the left-rail callout badges align with the page gutter and stay clear of the screenshot text at 320-390 px */
  .shot-frame { margin-left: 34px; }
  .co-1, .co-2, .co-3 { left: -16px; }
  .co-1 { top: 22.4%; }
  .co-2 { top: 45.2%; }
  .co-3 { top: 61.4%; }
  .shot-spot-1 { left: 3.5%; top: 13.0%; width: 93%; height: 15.5%; }
  .shot-spot-2 { left: 4.0%; top: 32.2%; width: 92%; height: 34.4%; }
  .shot-spot-3 { left: 8.5%; top: 58.6%; width: 83%; height: 5.8%; }
  .co-list { gap: 4px; margin-top: 16px; padding: 6px; border: 1px solid transparent; border-radius: var(--radius-md); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
  .co-item-btn { padding: 10px 12px; }
}

/* The homepage Coach example links directly to the interactive product page. */
.soon { padding-block: clamp(40px, 5vw, 64px); }
.soon .sec-head { margin-bottom: 0; }

/* straight talk about data: a dark band, 2x2 scannable definition list linking to /sakerhet */
.trust { background: var(--night); color: var(--night-ink); }
.trust h2 { color: var(--night-ink); }
.trust .eyebrow { color: var(--night-2); }
.trust .scope-tag { border-color: var(--night-rule); color: var(--night-2); }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 4.5vw, 64px); }
.trust-item { padding: 24px 0; display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 8px; border-top: 1px solid var(--night-rule); }
.trust-list dt { font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--night-ink); }
.trust-list dd { display: grid; align-content: space-between; gap: 4px; color: var(--night-2); font-size: 16px; line-height: 1.55; max-width: 48ch; }
.trust-list dd a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--night-ink); font-weight: 500; text-decoration-color: rgba(238, 241, 244, .48); text-underline-offset: 4px; transition: text-decoration-color var(--motion-fast) var(--ease-standard); }
.trust-list dd a:hover { text-decoration-color: var(--night-ink); }
.trust-note { margin-top: clamp(24px, 3.5vw, 40px); padding-top: 20px; border-top: 1px solid var(--night-rule); padding-inline-end: max(0px, calc(100% - 64ch)); color: var(--night-2); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.trust-note b { color: var(--night-ink); font-weight: 600; }
.trust-note a { color: var(--night-ink); text-underline-offset: 3px; }
@media (max-width: 759px) { .trust-list { grid-template-columns: 1fr; gap: 0; } }

/* the team and the pilot invitation: two plain columns on paper */
.pilot { display: grid; gap: 56px clamp(32px, 6vw, 96px); }
.pilot > * { margin-inline: 0; }
@media (min-width: 900px) { .pilot { grid-template-columns: 1fr 1fr; max-inline-size: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; } }
.pilot-copy { display: grid; align-content: start; gap: 14px; }
.pilot-copy h2 { margin-bottom: 8px; }
.pilot-copy > p:not(.eyebrow):not(.cta-row) { color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.pilot .people { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.pilot .people p { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.pilot .people b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; margin-bottom: 2px; }
/* founder rows (homepage, /en, /bolaget): a camera portrait beside the name. Crop and
   resize only, no retouching or background edits (README "Founder photos"). */
.person { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 24px; align-items: center; }
.person-photo { width: 128px; height: 128px; border-radius: var(--radius-md); object-fit: cover; }
@media (max-width: 480px) {
  .person { grid-template-columns: 88px minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .person-photo { width: 88px; height: 88px; border-radius: var(--radius-sm); margin-top: 4px; }
}
.pilot a:not(.btn) { color: var(--ink); text-decoration-color: var(--navy); text-underline-offset: 3px; }
.pilot-side { padding: clamp(24px, 3vw, 40px); border: 1px solid transparent; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.pilot .pilot-aside { font-size: 16px; }
.pilot .cta-row { margin-top: 6px; }

.foot { padding: 40px var(--gut) 36px; border-top: 1px solid var(--line); }
.foot > * { max-inline-size: var(--max); margin-inline: auto; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 15px; }
.foot-grid p { display: grid; gap: 0; align-content: start; }
.foot-grid b { font: 500 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-grid a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid a[aria-current='page'] { color: var(--ink); font-weight: 500; }
.foot-bottom { margin-top: 32px; font-size: 14px; line-height: 1.5; color: var(--muted); }
/* With a mouse the footer links sit closer; any touch input keeps the 44px target. */
@media (min-width: 1001px) and (hover: hover) and (pointer: fine) { .foot-grid a { min-height: 32px; } }
@media (any-pointer: coarse) { .foot-grid a { min-height: 44px; } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- secondary pages: body.page ----------
   Same tokens, nav and footer as the homepage; no script, and every section reads as plain flow. */
.page main { padding: clamp(48px, 7vw, 88px) var(--gut) clamp(64px, 8vw, 104px); max-inline-size: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; }
.page-head { max-width: 820px; }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); text-wrap: balance; }
.page-head .lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 39rem; text-wrap: pretty; }
.page-head .updated { margin-top: 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.page-head .cta-row { margin-top: 28px; }
/* in-page anchor index (/prenumerera, /sakerhet, /en): scannable jump row under the page head */
.page-toc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-top: clamp(24px, 3vw, 36px); padding: var(--space-copy) 0; border-top: 1px solid var(--line); }
.page-toc-label { font: 500 var(--text-label)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.page-toc ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.page-toc a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color var(--motion-fast) var(--ease-standard); }
.page-toc a:hover { color: var(--navy); text-decoration-color: var(--navy); }
.page-toc + .page-sec { margin-top: clamp(16px, 2vw, 24px); }
.page-sec { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--space-copy) clamp(24px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.page-sec .step { align-self: start; padding-top: 14px; }
.page-sec h2 { font: 400 var(--text-h2)/1.12 var(--serif); letter-spacing: -.01em; margin-bottom: var(--space-copy); text-wrap: balance; }
.page-sec h3 { font: 600 20px/1.25 var(--sans); letter-spacing: -.01em; margin: 28px 0 10px; }
.page-sec p:not(.step):not(.cta-row) { color: var(--ink-2); max-width: var(--measure-prose); text-wrap: pretty; }
.page-sec p + p { margin-top: var(--space-copy); }
.page-sec ul.bullets { display: grid; gap: 8px; margin: var(--space-copy) 0; max-width: var(--measure-prose); color: var(--ink-2); }
.page-sec ul.bullets li { position: relative; padding-left: 20px; }
.page-sec ul.bullets li::before { content: ''; position: absolute; left: 2px; top: .75em; width: 8px; height: 1.5px; background: var(--navy); }
.page-sec .people { display: grid; gap: 18px; margin: 18px 0; max-width: 43rem; }
.page-sec .people p { margin: 0; }
.page-sec .people b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; margin-bottom: 2px; }
/* /en shows the product crop in the text column: one block, caption under it */
.page-sec .shot { display: block; max-width: 760px; margin: 28px 0 0; }
.page-sec .shot figcaption { margin-top: 12px; color: var(--muted); font-size: 16px; }
.page-sec .shot:not([data-shot-scene]) figcaption { max-width: var(--measure-prose); }
/* Above phone width the capture fills the section's text column, as on the homepage: at 760 px
   the journal text in it was too small to read. */
@media (min-width: 761px) { .page-sec .shot { max-width: none; } }
@media (max-width: 760px) { .page-sec .shot { max-width: 420px; } .page-sec .shot:not([data-shot-scene]) .shot-frame { margin-left: 0; } }
/* /en and /bolaget show the portraits larger than the homepage card: they are where a
   reader checks who runs the company. Phones keep the homepage's small photo beside the text:
   stacked, each founder took a screen of its own. */
.page-sec .person { grid-template-columns: 160px minmax(0, 1fr); gap: 0 24px; }
.page-sec .person-photo { width: 160px; height: 160px; border-radius: var(--radius-md); }
.person-links { display: block; margin-top: 4px; }
.person-links i { font-style: normal; }
@media (max-width: 480px) {
  /* one record link per line: beside an 88px photo they broke mid-phrase */
  .person-links a { display: flex; align-items: center; width: fit-content; min-height: 44px; }
  .person-links i { display: none; }
  .page-sec .person { grid-template-columns: 88px minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .page-sec .person-photo { width: 88px; height: 88px; border-radius: var(--radius-sm); margin-top: 4px; }
}
.page-sec a:not(.btn) { color: var(--ink); text-decoration-color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.page-sec a:not(.btn):hover { color: var(--navy); }
.page-sec .cta-row { margin-top: 26px; }
.page-note { margin-top: 26px !important; padding: 16px 20px; border: 1px solid transparent; border-radius: var(--radius-md); background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 16px; }
/* status cards (/sakerhet): what holds now, what comes before real patient data */
.status-list { display: grid; gap: 14px; max-width: 760px; }
.status-list li { padding: 20px 22px; border: 1px solid transparent; border-radius: var(--radius-md); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.status-list li.is-now { box-shadow: 0 0 0 1.5px var(--navy); }
.status-when { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.status-when b { font-weight: 500; color: var(--navy); padding: 5px 8px; border: 1px solid transparent; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.page-sec .status-list h3 { margin: 0 0 8px; text-wrap: balance; }
/* questions and answers (/sakerhet): native disclosures */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid transparent; border-radius: var(--radius-md); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 20px; font-weight: 600; font-size: 17px; list-style: none; border-radius: var(--radius-md); transition: background-color var(--motion-fast) var(--ease-standard); }
@media (hover: hover) { .faq summary:hover { background: var(--wall); } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--sans); color: var(--navy); }
.faq details[open] summary::after { content: '\2212'; }
.page-sec .faq details p { padding: 0 20px 18px; margin: 0; }
.posture-controls ul.bullets { margin-inline: 20px; }
/* a long Swedish compound on a phone breaks at its marked &shy; (or, failing that, anywhere)
   instead of widening the page */
.page-head h1, .page-sec h2 { overflow-wrap: break-word; }
@media (max-width: 760px) { .page-sec { grid-template-columns: minmax(0, 1fr); } .page-sec .step { padding-top: 0; } }
/* synthetic output excerpts (/patient, /bolaget, /prenumerera): one labelled card, no app chrome.
   The source quote carries the evidence yellow; the Vårdminne text reads in the
   serif of the patient's sheet. */
.excerpt { margin: 28px 0; max-width: 620px; padding: 18px 22px 16px; border: 1px solid transparent; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.excerpt:last-child { margin-bottom: 0; }
.excerpt-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font: 600 16px/1.3 var(--sans); }
.excerpt-tag, .excerpt-k, .excerpt-who { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.excerpt-tag { color: var(--muted); }
.page-sec .excerpt .excerpt-k { color: var(--navy); margin-bottom: 4px; }
.page-sec .excerpt .excerpt-t { color: var(--ink); font-size: 17px; line-height: 1.5; }
.page-sec .excerpt-memo .excerpt-t { font: 400 20px/1.5 var(--serif); }
.excerpt-src { margin: 14px 0 0; padding: 12px 14px; border: 1px solid transparent; border-left: 3px solid var(--mark-ink); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--mark-soft); }
.excerpt-quote { transition: background-color var(--motion-fast) var(--ease-standard); border-radius: var(--radius-sm); }
/* Reserve the evidence edge before a quote is selected, as in the Scribe draft. */
.excerpt-quote[data-coach-quote] { padding: 8px 10px; margin-inline: -10px; border-left: 3px solid transparent; }
.excerpt-quote.is-linked { background: var(--mark); border-left-color: var(--mark-ink); }
.excerpt-quote + .excerpt-quote { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--mark-rule); }
.page-sec .excerpt-src p { color: var(--ink); margin: 0; }
.page-sec .excerpt-src .excerpt-who { color: var(--mark-ink); margin-bottom: 6px; }
.page-sec .excerpt .excerpt-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
/* the patient page's editorial Vårdminne card, under its heading */
.page-art { margin-top: clamp(24px, 3.5vw, 40px); max-width: 720px; }
.page-art .vardminne-svg { display: block; width: 100%; height: auto; }

/* ---------- two-track product separation (/en #tracks) ---------- */
.tracks-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .tracks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.track-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 32px); border: 1px solid transparent; border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.track-card.track-featured { box-shadow: 0 0 0 1.5px var(--navy); }
.track-card .status-when { margin-bottom: 0; }
.track-card h3 { margin: 0; font: 400 clamp(1.375rem, 2.2vw, 1.75rem)/1.18 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.track-card p { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 0; }
.track-card .track-boundary { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); }
.track-card .cta-row { margin-top: 0; padding-top: 6px; }
.page-sec .tracks-grid { margin-top: 18px; }
.page-sec .track-card p + p:not(.track-boundary) { margin-top: 0; }

/* ---------- /prenumerera: audience, comparison table, tiers ---------- */
.audience-grid { display: grid; gap: 18px 28px; margin: 20px 0; max-width: 780px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.audience-grid li { display: grid; align-content: start; gap: 4px; padding: 16px 0 4px; border-bottom: 1px solid var(--line); }
.audience-grid b { color: var(--ink); font-size: 17px; font-weight: 600; }
.audience-grid span { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.sub-detail { margin-top: 18px; }

.plan-table { width: 100%; border-collapse: collapse; margin: 24px 0 28px; background: var(--card); border: 1px solid var(--line); }
.plan-table th,
.plan-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink); }
.plan-table thead th { font: 500 var(--text-label)/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.plan-table tbody th { font-weight: 600; color: var(--ink); }
.plan-table thead th:nth-child(n+3),
.plan-table tbody td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-table tbody tr:last-child th,
.plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table tbody tr.is-featured { background: var(--paper); }
.tbl-sub { display: block; font: 400 14px/1.5 var(--mono); color: var(--muted); white-space: normal; }
@media (max-width: 900px) {
  .plan-table thead th:nth-child(n+3),
  .plan-table tbody td:nth-child(n+3) { white-space: normal; }
}
/* below tablet width the four .tier-card blocks immediately below carry every price, VAT,
   intro-term and quota figure; omit the redundant stacked table copy on phones */
@media (max-width: 767px) {
  .plan-table { display: none; }
}

.tier-grid { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 820px) { .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier-card { display: grid; grid-template-rows: auto auto auto auto 1fr auto; align-content: start; gap: 10px; padding: 22px; border: 1px solid transparent; border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.tier-card.tier-featured { box-shadow: 0 0 0 1.5px var(--navy); }
.tier-card .status-when { margin-bottom: 0; }
.page-sec .tier-card h3 { margin: 2px 0 0; font: 400 26px/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.page-sec .tier-card .tier-price { margin: 0; font: 400 30px/1.15 var(--serif); color: var(--ink); }
.tier-price span { font: 400 16px/1.4 var(--sans); color: var(--muted); }
.page-sec .tier-card .tier-tax { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.page-sec .tier-card ul.bullets { margin: 6px 0 14px; gap: 8px; }
.page-sec .tier-card .tier-cta { margin: 0; align-self: end; }
.tier-cta .btn { width: 100%; }

.start-steps { display: grid; gap: 12px; margin: 20px 0 24px; max-width: 680px; border-top: 1px solid var(--line); }
.start-steps li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.start-steps b { color: var(--ink); font-size: 17px; font-weight: 600; }
.start-steps span { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.page-sec code { font-family: var(--mono); font-size: 14px; color: var(--ink); }

/* ---------- Scene 4 (/coach): Consultation Compass (Jan-Helge Larsen) ---------- */
.compass-card { margin: 24px 0 28px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.compass-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.compass-title { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.compass-tag { font: 500 var(--text-label)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compass-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .compass-grid { grid-template-columns: minmax(240px, 310px) minmax(0, 1fr); gap: 28px; } }
.compass-svg { display: block; width: 100%; max-width: 310px; height: auto; margin-inline: auto; }
.compass-needle { transform-origin: 180px 180px; transition: transform var(--motion-enter) var(--ease-enter); }
[data-compass-scene][data-active="1"] .compass-needle { transform: rotate(0deg); }
[data-compass-scene][data-active="2"] .compass-needle { transform: rotate(60deg); }
[data-compass-scene][data-active="3"] .compass-needle { transform: rotate(120deg); }
[data-compass-scene][data-active="4"] .compass-needle { transform: rotate(180deg); }
[data-compass-scene][data-active="5"] .compass-needle { transform: rotate(240deg); }
[data-compass-scene][data-active="6"] .compass-needle { transform: rotate(300deg); }
.compass-arc { opacity: .55; }
.compass-node { cursor: pointer; }
.compass-node circle { transition: fill var(--motion-fast) var(--ease-standard), stroke var(--motion-fast) var(--ease-standard); }
.compass-node.is-active circle { fill: var(--navy); stroke: var(--wall); stroke-width: 4; }
.compass-node.is-active text { fill: #ffffff; }
.compass-controls { display: grid; gap: 14px; }
.compass-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .compass-btns { grid-template-columns: 1fr; } }
.compass-btn { display: grid; gap: 2px; align-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--muted); border-radius: var(--radius-md); background: var(--paper); color: var(--ink); font: 500 15px/1.3 var(--sans); text-align: left; cursor: pointer; transition: background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard); }
.compass-btn:hover { background: var(--wall); border-color: var(--navy); }
.compass-btn.is-active { background: var(--wall); border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); color: var(--ink); }
.compass-btn-part { font: 500 var(--text-label)/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.compass-btn.is-active .compass-btn-part { color: var(--navy); }
.page-sec .compass-method-note { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
html:not(.js) .compass-btns { display: none; }
html:not(.js) .compass-node { cursor: default; pointer-events: none; }
html:not(.js) .compass-detail-stack { gap: 12px; }
html:not(.js) .compass-panel { grid-area: auto; visibility: visible; padding-top: 10px; border-top: 1px solid var(--line); }
html:not(.js) .compass-panel:first-child { padding-top: 0; border-top: 0; }
.compass-detail-stack { display: grid; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); padding: 14px 16px; }
.compass-panel { grid-area: 1 / 1; display: grid; gap: 6px; align-content: start; visibility: hidden; }
.compass-panel.is-active { visibility: visible; }
.compass-panel-k { font: 500 var(--text-label)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.page-sec .compass-panel p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.page-sec .compass-panel .compass-cite { font: 500 13px/1.45 var(--mono); color: var(--mark-ink); background: var(--mark-soft); border-left: 3px solid var(--mark-ink); padding: 6px 10px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Scene 5 (/prenumerera): unified-app switches & Option B intro offer ---------- */
.app-switches { margin: 24px 0 8px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); display: grid; gap: 16px; }
.sw-head { display: grid; gap: 4px; }
.sw-kicker { font: 500 var(--text-label)/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--navy); }
.page-sec .app-switches h3 { margin: 0; font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.page-sec .app-switches .sw-lead { margin: 0; font-size: 16px; color: var(--ink-2); }
.sw-list { display: grid; gap: 10px; }
@media (min-width: 760px) { .sw-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sw-btn { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: start; min-height: 44px; padding: 14px; border: 1px solid var(--muted); border-radius: var(--radius-md); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard); }
.sw-btn:hover { background: var(--wall); border-color: var(--navy); }
.sw-btn[aria-checked="true"] { border-color: var(--navy); background: var(--card); }
.sw-name { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.sw-desc { grid-column: 1 / -1; font: 400 16px/1.45 var(--sans); color: var(--ink-2); }
.sw-track { position: relative; width: 42px; height: 24px; border-radius: 999px; border: 1px solid var(--muted); background: var(--wall); flex: none; transition: background-color var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard); }
.sw-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform var(--motion-base) var(--ease-enter), background-color var(--motion-base) var(--ease-standard); }
.sw-btn[aria-checked="true"] .sw-track { background: var(--navy); border-color: var(--navy); }
.sw-btn[aria-checked="true"] .sw-thumb { transform: translateX(18px); background: #ffffff; }
.sw-preview { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.sw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .sw-cards { grid-template-columns: 1fr; } }
.sw-card { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: opacity var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard); }
.sw-card b { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.sw-card span { font: 500 var(--text-label)/1.4 var(--mono); color: var(--navy); }
.sw-card.is-off { opacity: .42; }
.sw-card.is-off span { color: var(--muted); }
.page-sec .app-switches .sw-status { margin: 0; font: 500 13px/1.45 var(--mono); color: var(--muted); }
.sw-static-list { display: none; }
html:not(.js) .sw-list,
html:not(.js) .sw-preview { display: none; }
html:not(.js) .sw-static-list { display: grid; gap: 10px; }
@media (min-width: 760px) { html:not(.js) .sw-static-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sw-static-list li { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.sw-static-list b { font: 600 16px/1.3 var(--sans); color: var(--ink); }
.sw-static-list span { font: 400 16px/1.45 var(--sans); color: var(--ink-2); }

.intro-offer { margin: 20px 0 22px; padding: 18px 22px; border: 1.5px solid var(--navy); border-radius: var(--radius-lg); background: var(--card); display: grid; gap: 8px; }
.intro-offer-tag { font: 500 var(--text-label)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.page-sec .intro-offer p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; }
.tier-orig { display: block; margin-top: 4px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.pre-ce-box { margin-top: 22px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.pre-ce-box b { color: var(--ink); }

/* Public module surfaces. The opaque labels and controls keep the shared ink and navy. */
.surface-paper { background-image: var(--gradient-paper); }
.surface-coach,
:where(.band#coach),
.surface-vardminnet,
:where(#story-1) .step-home { --muted: #4f5864; }
.surface-coach,
:where(.band#coach) { background-image: var(--gradient-coach); }
.surface-scribe { background-image: var(--gradient-scribe); }
.surface-vardminnet,
:where(#story-1) .step-home { background-image: var(--gradient-vardminnet); }
.trust { background-image: var(--gradient-trust); }

:where(#story-1) .step-home,
.page-head:is(.surface-paper, .surface-coach, .surface-scribe, .surface-vardminnet, .trust) {
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 36px);
}
.page-head.trust .lede,
.page-head.trust .kicker { color: var(--night-ink); }

.row.is-active,
.scene:not(.is-wired) .row[data-default],
.bubble.is-on,
.src-peek-item,
.draft-peek-item,
.excerpt-src,
.page-sec .compass-panel .compass-cite { background-image: var(--gradient-evidence); }
.bubble.is-on .meta { color: var(--mark-ink); }

/* ---------- forced-colors (Windows High Contrast): explicit borders and focus rings ---------- */
@media (forced-colors: active) {
  .surface-paper,
  .surface-coach,
  :where(.band#coach),
  .surface-scribe,
  .surface-vardminnet,
  :where(#story-1) .step-home,
  .trust,
  .row.is-active,
  .scene:not(.is-wired) .row[data-default],
  .bubble.is-on,
  .src-peek-item,
  .draft-peek-item,
  .excerpt-src,
  .page-sec .compass-panel .compass-cite { background-image: none; }
  .brand-mark { forced-color-adjust: none; background: CanvasText; }
  :focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
  .trust :focus-visible { outline-color: Highlight; }
  .nav { border-bottom: 1px solid CanvasText; }
  .hero-door-open .door-cta { border-color: ButtonText; }
  .btn,
  .nav nav > .nav-cta,
  .menu summary,
  .menu-list,
  .hero-door,
  .hero-art-svg,
  .vardminne-svg,
  .anim-toggle,
  .draft,
  .shot-frame,
  .co > span,
  .co-item-btn,
  .compass-card,
  .compass-btn,
  .compass-detail-stack,
  .app-switches,
  .sw-btn,
  .sw-track,
  .sw-card,
  .intro-offer,
  .pre-ce-box,
  .pilot-side,
  .page-note,
  .status-list li,
  .status-when b,
  .faq details,
  .excerpt,
  .track-card,
  .tier-card,
  .plan-table,
  .scope-tag,
  .row-pin span,
  .at,
  .who { border: 1px solid CanvasText; }
  .hero-door-open,
  .intro-offer,
  .track-card.track-featured,
  .tier-card.tier-featured,
  .status-list li.is-now,
  .plan-table tbody tr.is-featured,
  .sw-btn[aria-checked="true"],
  .compass-btn.is-active,
  .co-item-btn.is-active { border: 2px solid Highlight; }
  .shot-spot.is-active { border: 2px solid Highlight; background: transparent; }
  .co.is-active > span,
  .co-item-btn.is-active > span:first-child,
  .sw-btn[aria-checked="true"] .sw-track { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .sw-thumb,
  .anim-toggle-dot { forced-color-adjust: none; background: CanvasText; }
  .sw-btn[aria-checked="true"] .sw-thumb { background: HighlightText; }
  .excerpt-src,
  .src-peek-item,
  .compass-cite { border: 1px solid CanvasText; border-left: 3px solid Highlight; }
  .row.is-active,
  .scene:not(.is-wired) .row[data-default],
  .bubble.is-on,
  .draft-peek-item,
  .excerpt-quote.is-linked { outline: 2px solid Highlight; outline-offset: -2px; border-left-color: Highlight; }
  .row.is-active .row-pin span,
  .scene:not(.is-wired) .row[data-default] .row-pin span,
  .bubble.is-on .at,
  .draft-peek-pin span { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .is-wired .row:focus-visible,
  .is-wired .bubble:focus-visible,
  .co:focus-visible,
  .co-item-btn:focus-visible,
  .compass-btn:focus-visible,
  .sw-btn:focus-visible,
  .anim-toggle:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}
@media (forced-colors: active) and (max-width: 760px) {
  .co-list { border: 1px solid CanvasText; }
}
