/* Monodoc marketing site. Tokens from DESIGN.md: ink on paper, one typeface. */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/HankenGrotesk-100-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/HankenGrotesk-100-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric-matched fallback so the headline does not reflow when the font arrives */
@font-face { font-family: 'Hanken Fallback'; src: local('Arial'); size-adjust: 97%; ascent-override: 98%; descent-override: 26%; }

:root {
  --paper: #FBFAF7;
  --sheet: #FFFFFF;
  --mist: #F1F0EC;
  --ink: #121211;
  --ink-hover: #2E2D2B;
  --graphite: #4A4944;
  --line-strong: #7A7872;
  --line: #DCDAD4;
  --on-ink-muted: #BDBBB5;
  --error: #B42318;
  --tint: rgba(18, 18, 17, .06);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --fast: 160ms;

  --wrap: 1200px;
  --gutter: 32px;
  --nav-h: 72px;
  --sp: clamp(96px, 9vw, 132px);

  --shadow: 0 0 0 1px rgba(18, 18, 17, .05), 0 12px 32px -16px rgba(18, 18, 17, .12);
  --r-md: 14px;
  --r-lg: 24px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); scrollbar-color: var(--line-strong) var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', 'Hanken Fallback', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--sheet); }
.ink ::selection { background: var(--sheet); color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
sub { font-size: .7em; vertical-align: -.2em; line-height: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-ink :focus-visible, .next :focus-visible, .req__item[aria-pressed="true"]:focus-visible { outline-color: var(--sheet); }
main:focus { outline: none; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

/* figures align; running text keeps proportional numerals */
.rec__val, .ans__val, .doc__row b, .sheet td, .hist, .ask__a, .req__state { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--sheet); padding: 12px 20px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout and type scale: 12 / 14 / 17 / 20 / 28 / 40 / 52 / 80 / 120 */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }
.section { position: relative; padding: var(--sp) 0; }
.section--pair { padding-top: 24px; }
.display { font-size: clamp(42px, 5.5vw, 80px); line-height: .98; letter-spacing: -0.045em; }
.h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.035em; max-width: 20ch; }
.h3l { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.lead { font-size: 20px; line-height: 1.45; color: var(--graphite); max-width: 46ch; }
.small { font-size: 14px; line-height: 1.45; color: var(--graphite); }
.muted { color: var(--graphite); }
.open-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 56px; }
.open-split .h2 { grid-column: 1 / span 6; }
.open-split .lead { grid-column: 8 / span 5; padding-top: .45em; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 13px; font-weight: 500; vertical-align: 2px; white-space: nowrap; }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: var(--sheet);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--fast) var(--ease), background-color var(--fast) ease, color var(--fast) ease;
}
.btn:active { transform: scale(.97); }
.btn--light { --bg: var(--sheet); --fg: var(--ink); }
.btn--mist { --bg: var(--mist); --fg: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--ghost { --bg: transparent; --fg: var(--ink); padding: 0 6px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bg: var(--ink-hover); }
  .btn--light:hover { --bg: var(--mist); }
  .btn--mist:hover { --bg: #E7E5DF; }
  .btn--ghost:hover { --bg: transparent; text-decoration-color: var(--ink); }
}

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; transition: background-color 240ms ease, box-shadow 240ms ease; }
.nav.is-solid { background: rgba(251, 250, 247, .96); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 22px; width: auto; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--graphite); transition: color var(--fast) ease, background-color var(--fast) ease; }
.nav__links a[aria-current="true"] { color: var(--ink); background: var(--mist); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }
.nav__cta.is-ink { --bg: var(--ink); --fg: var(--sheet); }
.nav__links .nav__ea { display: none; }
.nav__menu { display: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--mist); font-size: 15px; font-weight: 500; cursor: pointer; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: var(--po, 0); transition: opacity 200ms ease; }

/* Hero */
.hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 72px; overflow: hidden; }
.hero__top { display: grid; gap: 26px; }
.notice { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); }
.notice a { color: var(--ink); }
.notice__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; margin-top: .62em; }
.hero h1 { max-width: none; }
.ruled { position: relative; display: inline-block; }
.ruled::after { content: ''; position: absolute; left: .02em; right: .26em; bottom: -.04em; height: 6px; background: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); transform-origin: left; }
.hero__side { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-top: 8px; }
.hero__side .lead { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding-top: 4px; }
.hero__actions .btn--ghost:last-child { padding-right: 0; }
.hero__frame { margin-top: 56px; margin-inline: calc(50% - min(50vw - 32px, 688px)); }

/* Entrance: words rise from a mask, then the rule draws under "questionnaires." */
.js [data-words]:not(.is-split) { visibility: hidden; animation: show 0s 2s forwards; }
@keyframes show { to { visibility: visible; } }
.js [data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-words] .w > span { display: inline-block; transform: translateY(108%); animation: rise 820ms var(--ease) forwards; animation-delay: calc(var(--i) * 38ms); }
.js .ruled::after { transform: scaleX(0); animation: draw-x 640ms var(--ease-io) 1050ms forwards; }
.js [data-in] { opacity: 0; transform: translateY(12px); animation: up 700ms var(--ease) forwards; }
.js [data-in="0"] { animation-delay: 0ms; }
.js [data-in="1"] { animation-delay: 320ms; }
.js [data-in="2"] { transform: translateY(40px); animation-duration: 1000ms; animation-delay: 480ms; }
@keyframes rise { to { transform: none; } }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* The product frame */
.app { position: relative; background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.app__bar { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 9px 16px 9px 24px; border-bottom: 1px solid var(--mist); font-size: 14px; color: var(--graphite); }
.app__bar .mark { width: 14px; height: auto; color: var(--ink); }
.app__bar b { color: var(--ink); font-weight: 600; }
.app__bar .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.app__pause { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--mist); font-size: 13px; font-weight: 500; cursor: pointer; }
.app__pause svg { width: 12px; height: 12px; }
.app__body { position: relative; display: grid; grid-template-columns: minmax(0, 29fr) minmax(0, 9fr) minmax(0, 33fr) minmax(0, 6fr) minmax(0, 27fr); padding: 28px 36px 36px; }
.app__label { font-size: 14px; font-weight: 500; color: var(--graphite); margin: 0 0 14px; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.c-req { grid-column: 1; }
.c-rec { grid-column: 3; }
.c-ask { grid-column: 5; }

.req { display: grid; gap: 10px; }
.req__item {
  position: relative; text-align: left; width: 100%; border: 0; cursor: pointer;
  background: var(--sheet); border-radius: var(--r-md); padding: 14px 16px; box-shadow: 0 0 0 1px rgba(18, 18, 17, .08);
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), transform var(--fast) var(--ease);
}
.req__item:active { transform: scale(.98); }
.req__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.req__due { font-size: 13px; color: var(--graphite); align-self: center; }
.req__what { grid-column: 1 / -1; font-size: 13px; color: var(--graphite); }
.req__state { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; }
.req__item .strip { grid-column: 1 / -1; margin-top: 8px; display: grid; grid-template-columns: repeat(24, minmax(0, 9px)); gap: 4px; }
.req__item .strip i { width: 100%; height: auto; aspect-ratio: 1; }
.req__item[aria-pressed="true"] { background: var(--ink); color: var(--sheet); box-shadow: none; }
.req__item[aria-pressed="true"] .req__due, .req__item[aria-pressed="true"] .req__what { color: var(--on-ink-muted); }
.req__item[aria-pressed="true"] .strip i { --dot: var(--sheet); }
.req__item[aria-pressed="true"] .strip i.e { background: transparent; box-shadow: inset 0 0 0 1.25px var(--sheet); }
.req__item[aria-pressed="true"] .strip i.n { --dot: rgba(255,255,255,.3); background: rgba(255,255,255,.3); }
@media (hover: hover) and (pointer: fine) { .req__item:not([aria-pressed="true"]):hover { box-shadow: 0 0 0 1px rgba(18, 18, 17, .22); } }

.rec { background: var(--sheet); border-radius: var(--r-md); box-shadow: 0 0 0 1px rgba(18, 18, 17, .08); padding: 0; overflow: hidden; }
.rec__row { position: relative; width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; min-height: 56px; padding: 8px 18px; transition: background-color 200ms ease, color 200ms ease; }
.rec__row + .rec__row { box-shadow: 0 -1px 0 var(--mist); }
.rec__name { font-size: 15px; font-weight: 600; }
.rec__used { font-size: 12px; color: var(--graphite); }
.rec__val { grid-row: 1 / span 2; grid-column: 2; font-size: 15px; font-weight: 600; white-space: nowrap; }
.rec__val small { font-size: 12px; font-weight: 400; color: var(--graphite); margin-left: 3px; }
.rec__row.is-dim { color: var(--graphite); }
.rec__row.is-dim .rec__name, .rec__row.is-dim .rec__val { font-weight: 500; }
.rec__row.is-dim .rec__used { visibility: hidden; }
.rec__row[aria-pressed="true"] { background: var(--mist); }
@media (hover: hover) and (pointer: fine) { .rec__row:hover { background: var(--mist); } }

.ask { display: grid; gap: 10px; transition: opacity 160ms ease; }
.ask.is-swapping { opacity: 0; }
.ask__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ask__list { display: grid; gap: 8px; }
.ask__item { background: var(--mist); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.ask__who { font-size: 12px; color: var(--graphite); }
.ask__q { font-size: 13.5px; line-height: 1.38; }
.ask__a { font-size: 14px; font-weight: 600; }
.ask__src { display: flex; flex-wrap: wrap; gap: 6px; }

/* Small parts */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--mist); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip svg { width: 10px; height: 12px; flex: none; }
.ask__item .chip { background: var(--sheet); }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.dot { --dot: var(--ink); width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--dot); background: var(--dot); }
.dot--draft { background: transparent; }
.dot--half { background: linear-gradient(90deg, var(--dot) 50%, transparent 50%); }
.dot--error { --dot: var(--error); }
.strip { display: flex; flex-wrap: wrap; gap: 4px; }
.strip i { --dot: var(--ink); width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.25px var(--dot); background: var(--dot); transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.strip i.d { background: transparent; }
.strip i.h { background: linear-gradient(90deg, var(--dot) 50%, transparent 50%); }
.strip i.n { --dot: #C9C6BF; background: #C9C6BF; }
.strip i.e { --dot: var(--error); }
.inkline { position: relative; height: 5px; background: var(--mist); }
.inkline i { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); transform-origin: left; }
.inkline.is-drawing i { animation: draw-x 600ms var(--ease-io) both; }

/* Reuse lines */
.rl { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; }
.rl-dot { fill: var(--ink); stroke: var(--sheet); stroke-width: 2.5; paint-order: stroke; }
.rl.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dash 640ms var(--ease-io) forwards; }
.rl-dot.draw { opacity: 0; animation: pop 200ms var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* Scene */
.scene { padding: 0; height: 220svh; }
.scene__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__still { display: none; }
.scene__copy { position: absolute; inset: 0; pointer-events: none; padding-top: calc(var(--nav-h) + 56px); }
.scene__text { max-width: 470px; display: grid; gap: 22px; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.scene__text p { color: var(--graphite); font-size: 19px; line-height: 1.5; }
.scene__copy .wrap { height: calc(100% - var(--nav-h) - 56px); }
.scene__end { position: absolute; top: 50%; left: 0; max-width: 12ch; font-weight: 600; opacity: 0; transform: translateY(calc(-50% + 16px)); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.scene.is-done .scene__text { opacity: 0; transform: translateY(-16px); }
.scene.is-done .scene__end { opacity: 1; transform: translateY(-50%); }
.scene.is-still { height: auto; }
.scene.is-still .scene__pin { position: relative; height: auto; padding: var(--sp) 0; }
.scene.is-still .scene__canvas { display: none; }
.scene.is-still .scene__copy { position: relative; padding: 0; }
.scene.is-still .scene__text { opacity: 1; transform: none; }
.scene.is-still .scene__end { position: static; opacity: 1; transform: none; margin-top: 40px; max-width: 20ch; }
.scene.is-still .scene__still { display: block; width: min(100% - 2 * var(--gutter), var(--wrap)); height: auto; margin: 56px auto 0; border-radius: 4px; }

/* Evidence */
.ev__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--mist); font-size: 15px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color var(--fast) ease, color var(--fast) ease, transform var(--fast) var(--ease); }
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--sheet); }
.tab[aria-selected="true"] .dot { --dot: var(--sheet); }
.ev { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.ev:focus-visible { outline-offset: 12px; border-radius: 12px; }
.ev__docs { grid-column: 1 / span 6; display: grid; gap: 22px; }
.ev__fig { grid-column: 8 / span 5; }
.card { background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 32px; }
.figure__label { font-size: 15px; color: var(--graphite); display: flex; justify-content: space-between; gap: 12px; }
.figure__label .state { color: var(--ink); }
.figure__num { display: flex; align-items: baseline; gap: 10px; margin: 18px 0; }
.figure__num b { font-size: clamp(56px, 5.6vw, 80px); line-height: .95; letter-spacing: -0.045em; font-weight: 600; }
.figure__num > span { font-size: 20px; color: var(--graphite); }
.figure__text { margin-top: 22px; font-size: 16px; color: var(--graphite); }
.figure__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.figure__note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--mist); font-size: 14px; color: var(--graphite); }

.stack { position: relative; }
.stack > i { position: absolute; inset: 0; background: var(--sheet); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); box-shadow: inset 0 0 0 1px rgba(18,18,17,.07); border-radius: 4px; }
.stack > i:nth-child(1) { transform: translateY(10px) rotate(-1.6deg); }
.stack > i:nth-child(2) { transform: translateY(5px) rotate(1deg); }
.doc { position: relative; background: var(--sheet); padding: 26px 28px 22px; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(18,18,17,.07); }
.doc::after { content: ''; position: absolute; top: 0; right: 0; width: 28px; height: 28px; background: linear-gradient(225deg, transparent 50%, var(--mist) 50%); }
.doc__title { font-size: 16px; font-weight: 600; }
.doc__meta { font-size: 13px; color: var(--graphite); margin-top: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc__rows { margin-top: 8px; display: grid; }
.doc__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 14px; border-radius: 8px; }
.doc__row.cited { background: var(--tint); }
.doc__row b { font-weight: 500; }
.doc__foot { margin-top: 12px; font-size: 13px; color: var(--graphite); }
.doc--missing { background: transparent; box-shadow: none; outline: 1.5px solid var(--line-strong); outline-offset: -1.5px; min-height: 120px; display: grid; align-content: center; gap: 8px; clip-path: none; border-radius: 4px; }
.doc--missing::after { display: none; }

/* Change */
.chg { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.chg__card { grid-column: 1 / span 6; }
.chg__side { grid-column: 8 / span 5; display: grid; gap: 20px; align-content: start; }
.chg__side .lead { font-size: 18px; }
.next { position: relative; background: var(--ink); color: var(--sheet); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 6px; margin-top: 8px; }
.next b { font-size: 20px; letter-spacing: -0.01em; padding-right: 48px; }
.next p { color: var(--on-ink-muted); font-size: 15px; }
.next .btn { margin-top: 16px; justify-self: start; }
.next__sheet { position: absolute; top: 24px; right: 28px; width: 34px; height: 44px; background: var(--sheet); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); z-index: 5; }
.hist { margin-top: 22px; display: grid; gap: 10px; font-size: 14px; align-content: start; min-height: calc(3 * 1.55em + 20px); }
.hist li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; color: var(--graphite); }
.hist s { color: var(--graphite); }
.hist b { color: var(--ink); font-weight: 500; }
.hist li.is-new { animation: up 500ms var(--ease) both; }
.chg__answers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.ans { position: relative; background: var(--sheet); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.ans__who { font-size: 13px; color: var(--graphite); }
.ans__q { font-size: 15px; line-height: 1.38; min-height: 2.76em; }
.ans__val { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--mist); }
.ans__val b { font-size: 18px; font-weight: 600; }
.ans__val s { font-size: 13px; color: var(--graphite); margin-left: 8px; font-weight: 400; }
.odo { display: inline-flex; }
.odo__d { display: inline-block; height: .95em; overflow: hidden; }
.odo__c { display: grid; transition: transform 720ms var(--ease-io); }
.odo__c > span { height: .95em; line-height: .95; }

/* Format */
.fmt { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.fmt__text { grid-column: 1 / span 4; display: grid; gap: 28px; position: sticky; top: calc(var(--nav-h) + 40px); }
.fmt__list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.fmt__list li:first-child { border-top: 1px solid var(--line); }
.fmt__list svg { width: 20px; height: 20px; margin-top: 2px; }
.fmt__list .later { color: var(--graphite); }
.fmt__list em { font-style: normal; font-size: 12px; color: var(--ink); background: var(--mist); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sheet { grid-column: 6 / span 7; background: var(--sheet); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; }
.sheet__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sheet__bar .xl { width: 22px; height: 22px; flex: none; }
.sheet__bar b { font-weight: 600; }
.sheet__bar .strip { margin-left: auto; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.sheet__cols td { background: var(--mist); color: var(--graphite); font-size: 11px; text-align: center; padding: 3px 0; border-right: 1px solid var(--line); }
.sheet th { text-align: left; font-weight: 500; color: var(--graphite); background: var(--paper); padding: 8px 12px; font-size: 12px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.sheet td { padding: 11px 12px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; line-height: 1.38; }
.sheet th:last-child, .sheet td:last-child { border-right: 0; }
.sheet td:first-child, .sheet th:first-child { width: 48px; color: var(--graphite); text-align: center; background: var(--paper); }
.sheet th:nth-child(2) { width: 38%; }
.sheet td.a { font-weight: 500; position: relative; }
.sheet td.a.is-cur { box-shadow: inset 0 0 0 2px var(--ink); }
.sheet td.a > span, .sheet td.s > span { opacity: 0; transition: opacity 180ms ease; }
.sheet td.is-in > span { opacity: 1; }
.sheet td.s .chip { min-height: 24px; font-size: 12px; padding: 4px 9px 4px 8px; white-space: normal; }
.sheet__foot { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }

/* VS report */
.vs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.vs__big { grid-column: 1 / span 6; font-size: clamp(80px, 9vw, 120px); line-height: .82; letter-spacing: -0.055em; font-weight: 600; }
.vs__big span { color: var(--graphite); }
.vs__cap { grid-column: 7 / span 6; display: grid; gap: 16px; }
.vs__cap .h2 { font-size: clamp(28px, 2.8vw, 40px); }
.vs__strip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.vs__grp { display: grid; gap: 10px; }
.vs__grp .strip { gap: 6px; flex-wrap: nowrap; }
.vs__grp .strip i { width: 16px; height: 16px; box-shadow: inset 0 0 0 2px var(--dot); }
.vs__grp b { font-size: 12px; font-weight: 600; color: var(--graphite); }
.vs__legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.vs__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.vs__legend .muted { margin-left: auto; }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: var(--sp); }
.rules__head { grid-column: 1 / span 4; display: grid; gap: 18px; align-content: start; position: sticky; top: calc(var(--nav-h) + 40px); }
.rules__list { grid-column: 6 / span 7; }
.rule { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rule:first-child { border-top: 2px solid var(--ink); }
.rule__n { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.rule p { font-size: 17px; line-height: 1.45; }
.rule p b { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.rule p .muted { display: block; margin-top: 8px; font-size: 16px; }
.cite { display: inline-flex; align-items: center; justify-content: center; vertical-align: .35em; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--mist); font-size: 11px; font-weight: 600; line-height: 1; text-decoration: none; position: relative; transition: background-color var(--fast) ease, color var(--fast) ease; }
.cite::before { content: ''; position: absolute; inset: -13px -12px; }
.cite::after { content: attr(data-tip); display: none; position: absolute; right: -8px; bottom: calc(100% + 8px); transform: translateY(4px); background: var(--ink); color: var(--sheet); font-size: 12px; font-weight: 500; white-space: nowrap; padding: 7px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 140ms ease, transform 140ms var(--ease); }
.cite:focus-visible::after { display: block; opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .cite:hover::after { display: block; opacity: 1; transform: none; } }
.tips-off .cite::after { opacity: 0 !important; }
@media (hover: hover) and (pointer: fine) { .cite:hover { background: var(--ink); color: var(--sheet); } }

/* Ink band */
.ink { background: var(--ink); color: var(--sheet); }
.ink .lead, .ink .muted { color: var(--on-ink-muted); }
.section.ink { padding: calc(var(--sp) * 1.2) 0; margin-top: 48px; }
.statement { font-size: clamp(42px, 5.5vw, 80px); line-height: .98; letter-spacing: -0.045em; max-width: 15ch; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; }
.promises li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 2px solid var(--sheet); }
.promises__n { font-size: 14px; color: var(--on-ink-muted); }
.promises b { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.promises li > span:last-child { font-size: 17px; color: var(--on-ink-muted); max-width: 28ch; }
.promises__more { margin-top: 56px; font-size: 15px; color: var(--on-ink-muted); max-width: 70ch; }

/* Who checks */
.who__title { max-width: 16ch; margin-bottom: 56px; }
.who__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.who__row:first-child { border-top: 2px solid var(--ink); }
.who__row:last-child { border-bottom: 1px solid var(--line); }
.who__text { grid-column: 1 / span 5; display: grid; gap: 12px; }
.who__text h3 { font-size: 28px; letter-spacing: -0.025em; line-height: 1.15; }
.who__text p { color: var(--graphite); max-width: 40ch; }
.frag { grid-column: 7 / span 6; background: var(--sheet); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 20px 22px; display: grid; gap: 8px; }
.frag__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--graphite); }
.frag__top .state { color: var(--ink); }
.frag__q { font-size: 15px; line-height: 1.4; }
.frag__a { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.frag__a small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--graphite); margin-left: 4px; }
.frag__src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.frag__meta { font-size: 13px; color: var(--graphite); padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--mist); }
.frag__trail li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-top: 1px solid var(--mist); }
.frag__trail li:first-child { border-top: 0; }

/* Questions */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq .h2 { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__list { grid-column: 6 / span 7; border-top: 2px solid var(--ink); padding-top: 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; padding: 18px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: transform 220ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 64px 24px 0; color: var(--graphite); max-width: 60ch; }

/* Early access */
.section.closing { padding-top: calc(var(--sp) * 1.3); }
.ea__title { margin-bottom: 56px; }
.ea { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.ea__text { grid-column: 1 / span 5; display: grid; gap: 36px; }
.ea__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ea__lists h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.ea__lists li { font-size: 15px; padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.ea__lists .later li { color: var(--graphite); }
.form { grid-column: 7 / span 6; background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 36px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.opt { color: var(--graphite); font-weight: 400; margin-left: 4px; }
.field input, .field select { height: 56px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--sheet); padding: 0 18px; font: inherit; font-size: 16px; color: var(--ink); width: 100%; transition: border-color var(--fast) ease; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23121211' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); border-radius: var(--r-md); }
.field[data-error] input { border-color: var(--error); outline-color: var(--error); }
.field .err { font-size: 13px; color: var(--error); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { margin-bottom: 4px; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (forced-colors: active) { .check input { position: static; opacity: 1; } .check span::before { display: none; } }
.check { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { position: absolute; left: 0; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check span { display: inline-flex; align-items: center; gap: 12px; }
.check span::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--sheet) center / 12px no-repeat; transition: background-color var(--fast) ease; }
.check input:checked + span::before { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5'/%3E%3C/svg%3E"); }
.check input:focus-visible + span::before { outline: 2px solid var(--ink); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--graphite); }
.form__fields { display: grid; gap: 20px; }
.form__fields[hidden] { display: none; }
.form__note a { color: var(--ink); }
.form__error { font-size: 15px; color: var(--error); }
.form__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[aria-busy="true"] { --bg: var(--ink-hover); cursor: progress; }
.form__sent { display: grid; gap: 12px; align-content: center; min-height: 320px; padding: 8px 4px; }
.form__sent:focus { outline: none; }
.form__sent[hidden] { display: none; }
.form__tick { width: 48px; height: 48px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 24px no-repeat; animation: pop-in 420ms var(--ease) both; }
.form__sent-t { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.form__sent-p { color: var(--graphite); max-width: 40ch; }
.form__sent-p b { color: var(--ink); font-weight: 600; word-break: break-all; }
@keyframes pop-in { from { opacity: 0; transform: scale(.9); } }
.foot__mail { color: var(--ink); font-weight: 500; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }

/* Footer */
.foot { padding: 0 0 40px; }
.foot__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-top: 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot__brand { grid-column: 1 / span 5; display: grid; gap: 14px; align-content: start; }
.foot__brand img { height: 22px; width: auto; }
.foot__brand p { color: var(--graphite); max-width: 34ch; }
.foot__links { grid-column: 7 / span 2; display: grid; align-content: start; }
.foot__links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--graphite); }
.foot__links a:hover { color: var(--ink); text-decoration: underline; }
.foot__src { grid-column: 9 / span 4; display: grid; gap: 10px; align-content: start; color: var(--graphite); font-size: 13px; }
.foot__src b { color: var(--ink); font-weight: 600; font-size: 14px; }
.foot__src ol { display: grid; gap: 6px; list-style: decimal; padding-left: 18px; }
.foot__src a { color: var(--graphite); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 32px; font-size: 13px; color: var(--graphite); }

/* Tablet */
@media (max-width: 1023px) {
  :root { --gutter: 24px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; order: 2; }
  .nav__menu { display: inline-flex; align-items: center; order: 3; }
  .nav.is-open .nav__links { display: grid; position: fixed; inset: var(--nav-h) 0 auto; background: var(--paper); padding: 16px var(--gutter) 32px; box-shadow: 0 1px 0 var(--line); gap: 0; }
  .nav.is-open .nav__links a { font-size: 24px; color: var(--ink); min-height: 56px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
  .nav.is-open { background: var(--paper); }
  .hero__frame { margin-inline: 0; }
  .app__body { grid-template-columns: minmax(0, 46fr) minmax(0, 10fr) minmax(0, 44fr); }
  .c-ask { grid-column: 1 / -1; margin-top: 28px; }
  .c-ask .ask__list { grid-template-columns: repeat(3, 1fr); }
  .open-split .h2, .open-split .lead { grid-column: 1 / -1; padding-top: 0; }
  .ev__docs { grid-column: 1 / span 7; }
  .ev__fig { grid-column: 8 / span 5; }
  .chg__card { grid-column: 1 / span 7; }
  .chg__side { grid-column: 8 / span 5; }
  .fmt__text { grid-column: 1 / -1; position: static; }
  .sheet { grid-column: 1 / -1; }
  .vs__big, .vs__cap { grid-column: 1 / -1; }
  .rules__head, .rules__list { grid-column: 1 / -1; position: static; }
  .faq .h2, .faq__list { grid-column: 1 / -1; position: static; }
  .ea__text, .form { grid-column: 1 / -1; }
  .who__text { grid-column: 1 / span 5; }
  .frag { grid-column: 6 / span 7; }
  .foot__brand { grid-column: 1 / span 6; }
  .foot__links { grid-column: 7 / span 6; }
  .foot__src { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 767px) {
  :root { --gutter: 16px; --nav-h: 64px; --sp: 80px; }
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .nav .wrap { gap: 10px; }
  .nav__cta { display: none; }
  .nav__menu { margin-left: auto; }
  .nav.is-open .nav__links .nav__ea { display: flex; font-weight: 600; }
  .hero { padding-bottom: 48px; }
  .hero__side { display: grid; }
  .hero__actions .btn:first-child { flex: 1 1 auto; }
  .hero__frame { margin-top: 40px; }
  .app { border-radius: var(--r-md); }
  .app__bar { padding: 0 8px 0 14px; }
  .app__bar .hide-s { display: none; }
  .app__body { grid-template-columns: 1fr; padding: 16px 14px 20px; }
  #app-lines { display: none; }
  .c-req, .c-rec, .c-ask { grid-column: 1; }
  .req { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .req__item { display: flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; }
  .req__item > :not(.req__name) { display: none; }
  .req__name { font-size: 15px; }
  .c-rec { margin-top: 20px; }
  .rec__row.is-dim { display: none; }
  .c-ask { margin-top: 20px; }
  .c-ask .ask__list { grid-template-columns: 1fr; }
  .rec__row { min-height: 52px; padding: 8px 14px; }
  .h2 { font-size: clamp(30px, 8.4vw, 38px); }
  .open-split { margin-bottom: 32px; }
  .scene { height: 170svh; }
  .scene__copy { padding-top: calc(var(--nav-h) + 28px); }
  .scene__end { top: 0; transform: translateY(16px); max-width: 16ch; }
  .scene.is-done .scene__end { transform: none; }
  .scene__text p { font-size: 16px; }
  .ev__docs, .ev__fig, .chg__card, .chg__side, .trust__list, .who__text, .frag { grid-column: 1 / -1; }
  .chg__side { order: -1; }
  .promises { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .promises li { padding: 20px 0; }
  .ev__fig { order: -1; }
  .chg__answers { grid-template-columns: 1fr; margin-top: 24px; gap: 12px; }
  #chg-lines, #ev-lines { display: none; }
  .card { padding: 24px; }
  .sheet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheet tbody tr { display: grid; grid-template-columns: 36px 1fr; border-top: 1px solid var(--line); padding: 12px 14px 14px 0; }
  .sheet tbody td { border: 0; padding: 2px 0; }
  .sheet tbody td:first-child { grid-row: 1 / span 3; background: none; text-align: center; padding-top: 2px; width: auto; }
  .sheet tbody td:nth-child(2) { color: var(--graphite); font-size: 13px; }
  .sheet tbody td.a { font-size: 16px; min-height: 1.4em; }
  .sheet tbody td.a.is-cur { box-shadow: none; }
  .sheet tbody td.s { padding-top: 6px; }
  .sheet__foot { flex-wrap: wrap; }
  .vs__strip { gap: 14px 16px; }
  .vs__grp .strip i { width: 12px; height: 12px; }
  .vs__legend .muted { margin-left: 0; }
  .rule { grid-template-columns: 64px 1fr; }
  .rule__n { font-size: 20px; }
  .rule p { font-size: 16px; }
  .statement { font-size: clamp(36px, 10vw, 48px); }
  .faq details p { padding-right: 0; }
  .faq summary { font-size: 17px; }
  .ea__lists, .row2, .checks { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .form .btn { justify-self: stretch; }
  .foot__brand, .foot__links { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .rl.draw { stroke-dashoffset: 0; }
}
