/* Munra public site: one scroll story on a sticky stage, plus the secondary pages
   (body.page). CSP-safe: no inline styles in markup; script only writes CSSOM.
   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: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(assets/fonts/geist-mono-v6-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'); }

/* One palette: cool mint paper, ink and a navy accent. Yellow (--mark) means evidence
   only: a marked row, a source bubble, a thread. The canvas room (story.js, A) uses the
   same wall and line tones. */
:root {
  color-scheme: light;
  --paper: #f2f7f4;
  --paper-rgb: 242, 247, 244;
  --wall: #e3efe8;
  --card: #ffffff;
  --ink: #18211e;
  --ink-2: #3f4b46;
  --muted: #56635d;
  --line: #cfe0d6;
  --mark: #f6dc7a;
  --mark-soft: #fbedb6;
  --mark-ink: #6b4f00;
  --thread: #9a7210;
  --teal: #1d4e89;
  --night: #14201d;
  --night-ink: #e8f0ec;
  --night-2: #b4c6bf;
  --night-rule: rgba(232, 240, 236, .16);
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(20px, 4.4vw, 56px);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --shadow-card: 0 0 0 1px var(--line), 0 1px 2px rgba(20, 40, 32, .06), 0 24px 48px -28px rgba(20, 40, 32, .35);
}
* { 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.55 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; }
.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: 8px; }
.skip:focus { top: 12px; }
/* in-page link targets (main, sections, the plain-text story) take focus but are not controls */
[tabindex='-1']:focus { outline: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.trust :focus-visible, .pilot :focus-visible { outline-color: var(--night-ink); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--gut); transition: background .3s, box-shadow .3s; }
/* near-solid once scrolled, so it reads the same over the dark bands as over paper */
.nav.is-scrolled, .page .nav { background: rgba(var(--paper-rgb), .97); box-shadow: 0 1px 0 var(--line); }
.brand { font: 400 26px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.brand i, .foot-mark i { color: var(--teal); font-style: normal; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav > a { text-decoration: none; color: var(--ink-2); }
.nav nav > a:hover { color: var(--ink); }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 999px; }
.nav .nav-cta:hover { color: var(--paper); background: #000; }
/* 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 4px 0 6px; color: var(--ink); font-weight: 500; }
.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::after { background: linear-gradient(var(--ink), var(--ink)) 0 4px / 100% 2px no-repeat; }
.menu-list { position: absolute; right: 0; top: calc(100% + 10px); display: grid; min-width: 230px; padding: 8px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-card); }
.menu-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: 16px; }
.menu-list a:hover { background: var(--paper); }
@media (max-width: 720px) {
  .nav nav { gap: 6px; }
  .nav nav > a:not(.nav-cta) { display: none; }
  .nav .nav-cta { font-size: 14px; padding: 8px 14px; }
  .menu { display: block; }
}

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: 16px; transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* ======================================================================
   STORY. Without .js the chapters read as a normal page (fallback below).
   ====================================================================== */
.js .story { position: relative; height: 950vh; height: 950svh; }
.js .stage { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--wall); }
.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .8s var(--ease), scale 1.4s var(--ease); transform-origin: 45% 60%; }
.art-home { opacity: 0; scale: 1.04; }
.stage[data-scene='home'] .art-home { opacity: 1; scale: 1; }
.stage[data-scene='home'] .art-room { opacity: 0; }
/* the veil keeps the caption column legible; it thins out towards the floor so the room continues under the text */
.veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--paper-rgb), .97) 0, rgba(var(--paper-rgb), .92) 32%, rgba(var(--paper-rgb), 0) 52%); transition: opacity .6s var(--ease); -webkit-mask-image: linear-gradient(180deg, #000 0, #000 74%, rgba(0, 0, 0, .45) 100%); mask-image: linear-gradient(180deg, #000 0, #000 74%, rgba(0, 0, 0, .45) 100%); }
.veil-top { position: absolute; inset: 0 0 auto; height: 44%; pointer-events: none; background: linear-gradient(180deg, rgba(var(--paper-rgb), .97) 0, rgba(var(--paper-rgb), .86) 52%, rgba(var(--paper-rgb), 0) 100%); opacity: 0; transition: opacity .6s var(--ease); }
html.lw .stage[data-ch='2'] .veil, html.lw .stage[data-ch='3'] .veil, html.lw .stage[data-ch='4'] .veil { opacity: 0; }
html.lw .stage[data-ch='2'] .veil-top, html.lw .stage[data-ch='3'] .veil-top, html.lw .stage[data-ch='4'] .veil-top { opacity: 1; }
html.lw .captions .ch-top, html.lw .captions .ch-top.is-on { top: 108px; width: min(620px, 52vw); }
html.lw .captions .ch-top { transform: translateY(14px); }
html.lw .captions .ch-top.is-on { transform: none; }
html.lw .ch-top h2 { font-size: clamp(30px, 3vw, 42px); margin: 8px 0 8px; }
html.lw .captions .ch-top p { max-width: 58ch; }
html.lw .ch-0 { width: min(620px, 47vw); }
/* a short landscape window: the top captions keep only their heading so the bubbles have room */
html.lw.short .captions .ch-top p:not(.step) { display: none; }
html.lw.short .captions .ch-top h2 { margin-bottom: 0; }

/* captions */
.captions { position: absolute; left: var(--gut); top: 0; bottom: 0; width: min(440px, 34vw); pointer-events: none; }
.ch { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-50% + 18px)); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.ch.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .6s var(--ease) .12s, transform .8s var(--ease) .12s, visibility 0s; pointer-events: auto; }
.ch h2 { font: 600 clamp(32px, 3.5vw, 50px)/1.04 var(--sans); letter-spacing: -.035em; margin: 12px 0 14px; text-wrap: balance; }
.ch p { color: var(--ink-2); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; max-width: 30ch; text-wrap: pretty; }
.ch .cta-row { max-width: none; }
.step { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--teal) !important; }
.step::before { content: ''; width: 22px; height: 1.5px; background: var(--teal); border-radius: 1px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.2 var(--mono) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2) !important; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .7); max-width: none !important; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
h1 { font: 650 clamp(42px, 4.3vw, 66px)/1 var(--sans); letter-spacing: -.05em; margin: 22px 0 22px; }
h1 em { font: italic 400 1.04em/1 var(--serif); letter-spacing: -.02em; color: var(--teal); display: block; }
.lede { margin-bottom: 28px; }
.ways { margin-top: 22px; max-width: 320px; border-top: 1px solid var(--line); }
.ways li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ways em { font: 500 12px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.ways li:first-child em { color: var(--ink); }

/* the first screen: chapter 0 of the story carries the page heading over the drawn room */
.hero h1 { font-size: clamp(44px, 4.6vw, 72px); line-height: .98; letter-spacing: -.055em; margin: 22px 0 26px; max-width: 12ch; text-wrap: balance; }
.hero .hero-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.hero .hero-two p { font-size: 17px; line-height: 1.5; max-width: none; padding-top: 14px; border-top: 2px solid var(--ink); }
.hero .hero-two b { display: block; color: var(--ink); font-weight: 600; font-size: 19px; margin-bottom: 4px; letter-spacing: -.01em; }
.hero .hero-note { margin-top: 18px; font-size: 16px; color: var(--muted); max-width: none; }

/* progress */
.progress { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
.progress i { width: 3px; height: 18px; border-radius: 2px; background: rgba(24, 33, 30, .14); transition: background .4s, height .4s var(--ease); }
.progress i.is-on { background: var(--ink); height: 30px; }

/* speech bubbles: positioned by script, tail tip on the speaker */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
/* entrance: a small grow from the tail, the way a thought surfaces. translate/scale are
   separate properties so the script can keep writing transform for position. */
.bubble { position: absolute; left: 0; top: 0; width: max-content; max-width: 250px; padding: 12px 15px 11px; background: var(--card); border-radius: 16px; box-shadow: 0 0 0 1.5px var(--ink), 0 10px 24px -14px rgba(20, 40, 32, .45); opacity: 0; scale: .92; translate: 0 8px; transition: opacity .3s var(--ease), scale .5s var(--ease), translate .5s var(--ease), background .3s; will-change: transform; }
.bubble[data-who='D'] { transform-origin: 28px 100%; }
.bubble[data-who='P'] { transform-origin: calc(100% - 28px) 100%; }
.bubble::after { content: ''; position: absolute; bottom: -7px; width: 13px; height: 13px; background: inherit; box-shadow: 1.5px 1.5px 0 0 var(--ink); transform: rotate(45deg) skew(8deg, 8deg); }
.bubble[data-who='D']::after { left: 22px; }
.bubble[data-who='P']::after { right: 22px; }
.bubble.is-on { opacity: 1; scale: 1; translate: 0 0; }
.bubble.is-src { background: var(--mark); }
.say { display: block; font: 400 16px/1.4 var(--sans); }
.say::before { content: '\201D'; font: italic 400 1.3em/0 var(--serif); margin-right: 2px; vertical-align: -.2em; color: var(--muted); }
.meta { display: block; margin-top: 6px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.bubble.is-src .meta { color: var(--mark-ink); }

/* evidence threads: the dotted thread is drawn from the row to its bubble through a mask */
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.links .thread { fill: none; stroke: var(--thread); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 6; opacity: 0; transition: opacity .25s; }
.links .thread.is-on { opacity: 1; }
.links .reveal { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.links .reveal.is-on { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease) .05s; }

/* the panel: draft + the many texts */
.panel { position: absolute; right: var(--gut); top: 50%; width: min(430px, 34vw); transform: translate(40px, -50%); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.stage[data-ch='2'] .panel, .stage[data-ch='3'] .panel, .stage[data-ch='4'] .panel { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s; }
.draft { background: var(--card); border-radius: 14px; padding: 18px 20px 8px; box-shadow: var(--shadow-card); }
.draft-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font: 600 15px/1.2 var(--sans); }
.draft-tag { font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 10px; margin: 0 -10px; border-radius: 9px; transition: background .3s, opacity .45s var(--ease), translate .55s var(--ease), max-height .5s var(--ease), padding .5s var(--ease); max-height: 180px; overflow: hidden; }
.row-k { grid-column: 1 / -1; font: 500 12px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.row-t { font-size: 16px; line-height: 1.45; }
.row-pin { grid-column: 2; display: flex; flex-direction: column; gap: 4px; align-self: start; }
.row-pin span { font: 500 12px/1 var(--mono); padding: 4px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); background: var(--card); transition: background .3s, color .3s, box-shadow .3s; }
.row.is-active { background: var(--mark); }
.row.is-active .row-k { color: var(--mark-ink); }
.row.is-active .row-pin span { box-shadow: inset 0 0 0 1px rgba(107, 79, 0, .4); color: var(--mark-ink); background: var(--mark-soft); }
/* chapter 2: rows write in one at a time, rising a little as the ink settles */
.row.is-pending { opacity: 0; translate: 0 10px; }
.stage[data-ch='3'] .row:not(.is-active) { cursor: pointer; }
.draft-foot { display: flex; align-items: center; gap: 9px; margin: 6px -20px 0; padding: 12px 20px 6px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tick { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; flex: none; transition: background .3s, box-shadow .3s; }
.tick::after { content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease) .1s; }
.foot-b { display: none; color: var(--ink); font-weight: 500; }
.stage[data-ch='4'] .tick { background: var(--ink); box-shadow: none; }
.stage[data-ch='4'] .tick::after { transform: rotate(45deg) scale(1); }
.stage[data-ch='4'] .foot-a { display: none; }
.stage[data-ch='4'] .foot-b { display: inline; }
/* chapter 4: the draft folds to its title and the other texts line up under it */
.stage.is-folded .row { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.stage.is-folded .draft-foot { margin-top: 0; }
.texts { position: relative; margin-top: 10px; display: grid; gap: 10px; max-height: 0; overflow: visible; }
/* opaque cards: the script fades them in fast while they slide, so the art never shows through.
   The title carries the evidence highlighter: each text keeps its source. */
.tx { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 15px 18px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-card); position: relative; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .65s var(--ease); }
.tx b { font-weight: 600; font-size: 16px; background: linear-gradient(transparent 58%, var(--mark-soft) 58%); }
.tx span { font-size: 14px; color: var(--muted); text-align: right; }
.tx-4 { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.tx-4 b { background: none; }
.stage.is-folded .texts { max-height: 400px; }
/* the folded panel sits on a paper backing, so the gaps between its cards stay calm */
.panel { border-radius: 18px; }
.stage.is-folded .panel { background: rgba(var(--paper-rgb), .94); box-shadow: 0 0 0 10px rgba(var(--paper-rgb), .94); }
.stage.is-folded .tx { opacity: 1; transform: none; }

.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -18px -20px 14px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); background: var(--paper); border-radius: 14px 14px 0 0; font-size: 13px; }
.app-mark { font: 400 18px/1 var(--serif); }
.app-mark i { color: var(--teal); font-style: normal; }
.app-tabs { display: flex; gap: 14px; color: var(--muted); }
.app-tabs b { color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 var(--ink); padding-bottom: 3px; }
.app-sign { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 6px 12px; font-weight: 500; }
.sign-b { display: none; }
.stage[data-ch='4'] .sign-a { display: none; }
.stage[data-ch='4'] .sign-b { display: inline; }
.stage[data-ch='4'] .app-sign { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* the patient's own copy: a sheet of paper, set down square so its figures stay crisp */
.memo { position: absolute; right: var(--gut); top: 50%; width: min(400px, 32vw); padding: 26px 28px 22px; background: var(--card); border-radius: 3px; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(20, 40, 32, .08), 0 34px 60px -30px rgba(20, 40, 32, .4); transform: translate(40px, -50%); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), transform .9s var(--ease), visibility 0s .9s; }
.stage[data-ch='5'] .memo { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .6s var(--ease) .3s, transform .9s var(--ease) .3s, visibility 0s; }
.memo-big { font: 600 clamp(56px, 6vw, 84px)/1 var(--sans); letter-spacing: -.04em; margin-bottom: 10px; background: linear-gradient(transparent 64%, var(--mark-soft) 64%); display: inline-block; }
.memo-t { font: 400 22px/1.42 var(--serif); }
.memo-src { margin-top: 12px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.memo-src cite { font-style: normal; }
.memo-pitch { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }

/* ---------- small screens: caption on top, art in the middle, panel at the bottom ---------- */
html.lt .veil { background: linear-gradient(180deg, rgba(var(--paper-rgb), .98) 0, rgba(var(--paper-rgb), .9) 22%, rgba(var(--paper-rgb), 0) 34%); -webkit-mask-image: none; mask-image: none; }
/* the first screen keeps its text on paper; the room shows below it */
html.lt .stage[data-ch='0'] .veil { background: linear-gradient(180deg, rgba(var(--paper-rgb), .98) 0, rgba(var(--paper-rgb), .94) 64%, rgba(var(--paper-rgb), 0) 77%); }
html.lt .captions { left: 20px; right: 20px; width: auto; top: 76px; bottom: auto; }
html.lt .ch, html.lt .ch.is-on { top: 0; transform: translateY(14px); }
html.lt .ch.is-on { transform: none; }
html.lt .ch h2 { font-size: 30px; margin: 8px 0 8px; }
html.lt .ch p { font-size: 16px; max-width: 34ch; }
html.lt .hero h1 { font-size: clamp(36px, 10.4vw, 52px); margin: 14px 0 16px; max-width: none; }
html.lt .hero .hero-two { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
html.lt .hero .hero-two p { font-size: 16px; padding-top: 10px; border-top-width: 1.5px; }
html.lt .hero .hero-two b { font-size: 17px; display: inline; }
html.lt .hero .hero-note { margin-top: 12px; }
html.lt .hero .kicker { letter-spacing: .02em; padding: 7px 10px; }
html.lt .hero .btn-ghost { display: none; }
html.lt .lede { margin-bottom: 18px; }
html.lt .ways { display: none; }
html.lt .progress { right: 6px; }
html.lt .panel, html.lt .memo { left: 14px; right: 14px; width: auto; top: auto; bottom: 34px; transform: translateY(30px); }
html.lt .stage[data-ch='2'] .panel, html.lt .stage[data-ch='3'] .panel, html.lt .stage[data-ch='4'] .panel { transform: none; }
html.lt .stage[data-ch='5'] .memo { transform: none; }
html.lt .panel, html.lt .memo { max-width: 560px; margin: 0 auto; }
html.lt .memo { padding: 18px 20px 16px; }
html.lt .memo-t { font-size: 18px; }
html.lt .draft { padding: 14px 16px 4px; }
html.lt .draft-foot { margin: 4px -16px 0; padding: 10px 16px 4px; }
html.lt .row { padding: 7px 8px; margin: 0 -8px; }
html.lt .tx { padding: 11px 14px; }
html.lt .bubble { max-width: 210px; padding: 9px 12px 9px; }
html.lt .say { font-size: 16px; }
html.lt .veil-top { display: none; }
html.lt .app-bar { margin: -14px -16px 10px; padding: 8px 12px; }
html.lt .app-tabs span { display: none; }
/* the source chapter: the marked row keeps its text, the others fold to their label, so the
   source bubbles fit in one row above the draft */
html.lt .stage[data-ch='3'] .draft-foot, html.lt .stage[data-ch='3'] .app-bar, html.lt .stage[data-ch='3'] .ch-3 .step { display: none; }
html.lt .stage[data-ch='3'] .row { padding-top: 5px; padding-bottom: 5px; }
html.lt .stage[data-ch='3'] .row:not(.is-active) .row-t { display: none; }

/* small phones: the draft must fit between caption and the bottom edge */
html.lt.short .ch-top p:not(.step), html.lt.short .ch-top .step, html.lt.short .app-bar { display: none; }
html.lt.short .ch h2 { font-size: 26px; }
html.lt.short .panel, html.lt.short .memo { bottom: 22px; }
html.lt.short .row { padding-top: 4px; padding-bottom: 4px; }
html.lt.short .draft-top { padding-bottom: 6px; }
html.lt.short .memo-t { font-size: 16px; line-height: 1.42; }
html.lt.short .tx { padding-top: 8px; padding-bottom: 8px; }
html.lt.short .hero .kicker, html.lt.short .hero .btn-ghost { display: none; }
html.lt.short .hero h1 { font-size: 34px; margin-top: 4px; }
html.lt.short .hero .hero-two p:last-child { display: none; }
html.lt.short .memo-big { font-size: 44px; }
html.lt.short .memo { padding: 14px 16px 12px; }

/* ---------- no script: the story as a plain page ---------- */
html:not(.js) .art, html:not(.js) .veil, html:not(.js) .veil-top, html:not(.js) .links, html:not(.js) .progress, html:not(.js) .hint { display: none; }
html:not(.js) .stage { padding: 96px var(--gut) 40px; display: grid; gap: 28px; max-width: 760px; overflow-x: clip; }
html:not(.js) .captions, html:not(.js) .ch, html:not(.js) .panel, html:not(.js) .memo, html:not(.js) .bubbles { position: static; opacity: 1; visibility: visible; transform: none; width: auto; max-width: 100%; }
html:not(.js) .captions { display: grid; gap: 40px; order: -1; }
html:not(.js) .bubbles { display: grid; gap: 12px; }
html:not(.js) .bubble { position: relative; opacity: 1; scale: 1; translate: none; max-width: 100%; }
html:not(.js) .tx { opacity: 1; transform: none; }
html:not(.js) .texts { max-height: none; }
html:not(.js) .hero .hero-two { grid-template-columns: 1fr; }
/* the screen-reader story exists only while the stage is scripted */
.story-sr { display: none; }
.story-on .story-sr { display: block; }

/* scrubbed by script: positions and opacity follow the scroll, so no CSS transitions fight it */
html.scrub .ch, html.scrub .panel, html.scrub .memo, html.scrub .tx, html.scrub .art, html.scrub .veil, html.scrub .veil-top, html.scrub .progress i, html.scrub .links .reveal, html.scrub .links .thread { transition: none; }
html.scrub .bubble { transition: background .35s var(--ease); }
html.scrub .row { transition: background .35s var(--ease), max-height .55s var(--ease), padding .55s var(--ease); }
html.measuring *, html.measuring *::before, html.measuring *::after { transition: none !important; }
.hint { position: absolute; right: var(--gut); bottom: 24px; display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.hint i { position: relative; width: 1.5px; height: 34px; background: rgba(24, 33, 30, .16); overflow: hidden; border-radius: 1px; }
.hint i::after { content: ''; position: absolute; left: 0; top: -12px; width: 100%; height: 12px; background: var(--ink); animation: hint-run 1.8s var(--ease) infinite; }
@keyframes hint-run { to { transform: translateY(46px); } }
html.lt .hint { right: auto; left: 50%; transform: translateX(-50%); bottom: 30px; flex-direction: column-reverse; gap: 6px; }
html.lt .hint i { height: 22px; }

@media (prefers-reduced-motion: reduce) {
  .hint i::after { animation: none; top: 0; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ======================================================================
   After the story: one vertical rhythm
   ====================================================================== */
.band { padding: clamp(64px, 8vw, 112px) var(--gut); }
.band h2 { font: 600 clamp(34px, 4.4vw, 60px)/1.02 var(--sans); letter-spacing: -.04em; max-width: 18ch; }

/* what it means: three quiet statements, set in the serif of the patient's sheet */
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.why-list div { display: grid; grid-template-rows: auto 1fr; gap: 16px; padding-top: clamp(22px, 3vw, 30px); align-content: start; }
.why-list dt { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 10px; }
.why-list dt::before { content: ''; width: 22px; height: 1.5px; background: var(--teal); border-radius: 1px; }
.why-list dd { font: 400 clamp(24px, 2.4vw, 34px)/1.18 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
@media (max-width: 760px) { .why-list { grid-template-columns: 1fr; gap: 0; } .why-list div { padding: 22px 0; border-bottom: 1px solid var(--line); gap: 10px; } }

/* the real product: one crop per screen size, with numbered callouts */
.product-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 5vw, 80px); align-items: end; }
.product-head p { color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; }
.shot { margin-top: clamp(28px, 4vw, 48px); max-width: 1100px; }
.shot-frame { position: relative; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -48px rgba(20, 40, 32, .5); }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; }
.co { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); box-shadow: 0 0 0 3px #fff; }
/* positions in % of the wide crop (1760x1080) */
.co-1 { left: 0; top: 43.5%; }
.co-2 { left: 67.4%; top: 12.8%; }
.co-3 { left: 68.6%; top: 51%; }
.co-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px clamp(20px, 3vw, 40px); margin-top: 20px; }
.co-list li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); font-size: 16px; }
.co-list span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--sans); transform: translateY(5px); }
.practice { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.practice li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.practice b { font-weight: 600; font-size: 17px; }
.practice span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) {
  .product-head, .practice, .co-list { grid-template-columns: 1fr; }
  .shot { max-width: 420px; }
  /* the portrait crop of the source panel (554x900) */
  .co-1, .co-2, .co-3 { left: -6px; }
  .co-1 { top: 16%; }
  .co-2 { top: 4.7%; }
  .co-3 { top: 50.5%; }
}

/* coming soon: one lead card, then the rest in a row */
.soon-k { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); margin-bottom: 18px; }
.soon-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.soon-list li { display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.soon-list b { font-weight: 600; font-size: 18px; }
.soon-list span { color: var(--ink-2); font-size: 16px; }
.soon-list .soon-lead { grid-column: 1 / -1; padding: clamp(24px, 3vw, 36px); background: var(--wall); box-shadow: none; }
.soon-lead b { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; }
.soon-lead span { font-size: 17px; max-width: 60ch; }
.soon-more { margin-top: 22px; color: var(--ink-2); }
.soon-more a { color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (max-width: 900px) { .soon-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .soon-list { grid-template-columns: 1fr; } }

/* straight talk about data: a dark band, four facts on one row */
.trust { background: var(--night); color: var(--night-ink); }
.trust h2 { color: var(--night-ink); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--night-rule); }
.trust-list li { padding: 26px 0 22px; display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 8px; margin-top: -1px; position: relative; }
.trust-list li::before { content: ''; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; background: var(--night-ink); }
.trust-list b { font-weight: 600; font-size: 18px; line-height: 1.3; }
.trust-list span { color: var(--night-2); font-size: 16px; line-height: 1.5; }
.trust-note { margin-top: clamp(28px, 4vw, 44px); max-width: 64ch; color: var(--night-2); font-size: 16px; text-wrap: pretty; }
.trust-note a { color: var(--night-ink); text-underline-offset: 3px; }
@media (max-width: 900px) { .trust-list { grid-template-columns: 1fr 1fr; gap: 0 28px; } }
@media (max-width: 520px) { .trust-list { grid-template-columns: 1fr; gap: 0; } .trust-list li { padding: 18px 0; border-bottom: 1px solid var(--night-rule); } .trust-list li::before { display: none; } }

/* the team and the pilot invitation share one card */
.pilot { margin: clamp(64px, 8vw, 112px) var(--gut); border-radius: 22px; overflow: hidden; background: var(--teal); color: var(--night-ink); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; box-shadow: 0 40px 80px -50px rgba(20, 40, 32, .6); }
.pilot-copy { padding: clamp(28px, 4vw, 56px); }
.pilot-side { background: var(--night); }
.pilot h2 { font: 600 clamp(30px, 3.4vw, 46px)/1.05 var(--sans); letter-spacing: -.035em; margin-bottom: 18px; text-wrap: balance; }
.pilot p { color: #d3e0ea; margin-bottom: 22px; max-width: 42ch; text-wrap: pretty; }
.pilot-side p { color: var(--night-2); }
.pilot .people { display: grid; gap: 18px; margin-top: 26px; }
.pilot .people p { margin: 0; padding-top: 16px; border-top: 1px solid rgba(232, 240, 236, .24); }
.pilot .people b { display: block; color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 4px; letter-spacing: -.01em; }
.pilot a:not(.btn) { color: #fff; text-underline-offset: 3px; }
.pilot .pilot-aside { margin: 28px 0 0; }
.pilot-steps { display: grid; gap: 10px; margin: 0 0 24px; }
.pilot-steps li { display: flex; gap: 12px; align-items: baseline; color: var(--night-ink); }
.pilot-steps span { font: 500 12px/1 var(--mono); color: #8fc7c1; }
.pilot .pilot-note { font-size: 16px; }
.pilot .cta-row { margin-bottom: 14px; }
.pilot .pilot-mail { font-size: 16px; margin-bottom: 0; }
@media (max-width: 860px) { .pilot { grid-template-columns: 1fr; } }

.foot { padding: 20px var(--gut) 36px; }
.foot-mark { font: 400 clamp(90px, 18vw, 240px)/.8 var(--serif); letter-spacing: -.04em; margin-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.foot-grid p { display: grid; gap: 4px; align-content: start; }
.foot-grid b { font: 500 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.foot-grid a { 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: 40px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- secondary pages: body.page ----------
   Same tokens, nav and footer as the homepage; no script, so the nav keeps its scrolled
   look and every section reads as plain flow. */
.page main { padding: clamp(112px, 14vw, 168px) var(--gut) clamp(64px, 8vw, 112px); max-width: 1180px; }
.page-head { max-width: 820px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 80px); text-wrap: balance; }
.page-head .lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 44ch; 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; }
.page-sec { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px clamp(24px, 5vw, 80px); margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); }
.page-sec .step { align-self: start; padding-top: 14px; }
.page-sec h2 { font: 600 clamp(28px, 2.8vw, 40px)/1.08 var(--sans); letter-spacing: -.03em; margin-bottom: 18px; 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: 62ch; text-wrap: pretty; }
.page-sec p + p { margin-top: 14px; }
.page-sec ul.bullets { display: grid; gap: 8px; margin: 14px 0; max-width: 62ch; 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(--teal); }
.page-sec a:not(.btn) { color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.page-sec a:not(.btn):hover { color: var(--teal); }
.page-sec .cta-row { margin-top: 26px; }
.page-note { margin-top: 26px !important; padding: 16px 20px; border-radius: 12px; 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-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.status-list li.is-now { box-shadow: 0 0 0 1.5px var(--teal); }
.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(--teal); padding: 5px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.page-sec .status-list h3 { margin: 0 0 8px; }
/* questions and answers (/sakerhet): native disclosures */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border-radius: 12px; 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: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--sans); color: var(--teal); }
.faq details[open] summary::after { content: '\2212'; }
.page-sec .faq details p { padding: 0 20px 18px; margin: 0; }
@media (max-width: 760px) { .page-sec { grid-template-columns: 1fr; } .page-sec .step { padding-top: 0; } }
