/* Apprentice website (ADR-0036). Rules and reasons are in website/DESIGN.md; keep the two in step.
   Palette roles come from the app's design system v3 (src/apprentice/shared/frontend/app.css). */

/* ---------- fonts (self-hosted: no visitor data goes to a font CDN) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/bricolage-var-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-var-latin.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  /* brand tokens (palette, faces, radii) come from tokens.css, ADR-0039; these are the site's own */
  --sunk: var(--paper);
  --lift: 0 1px 2px rgb(21 23 28 / .05), 0 24px 48px -24px rgb(21 23 28 / .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-press: 120ms; --t-state: 240ms; --t-beat: 420ms;
  --nav-h: 64px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 650; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -.028em; }
h3 { font: 600 1.12rem/1.35 var(--text); letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: clamp(20px, 3.5vw, 48px); }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } body { font-size: 16px; } }
section { padding-block: clamp(40px, 4.6vw, 68px); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 38em; }
.kicker { font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 46rem; margin-bottom: clamp(24px, 3vw, 40px); }
.alt { background: var(--paper-2); }
.measure { max-width: 42rem; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r);
  font: 600 1rem/1 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-state) var(--ease), transform var(--t-press) var(--ease), border-color var(--t-state); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #34322E; }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--ink-3); }
.btn.on-dark { background: #fff; color: var(--ink); }
.btn.on-dark:hover { background: #E9E7E2; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.more { font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.more:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color var(--t-state); }
.nav.scrolled, .nav.open { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
/* the lockup (ADR-0039): The Correction, mark 1.05em, gap .32em, wordmark Inter 600 at -.035em */
.brand { display: inline-flex; gap: var(--lockup-gap); align-items: center; color: var(--ink); text-decoration: none; min-height: 44px; font-size: 1.4rem; }
.brand .mark { width: var(--lockup-mark); height: var(--lockup-mark); flex: none; }
.brand .mark path { fill: none; stroke: currentColor; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.brand .mark circle { fill: var(--blue); }
.brand b { font: 600 1em/1 var(--text); letter-spacing: -.035em; font-feature-settings: "cv11", "ss01"; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 10px 12px; border-radius: var(--r-sm); transition: color var(--t-state), background-color var(--t-state); }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-cta { min-height: 44px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; place-items: center; padding: 0; }
.menu-btn .i-close, .nav.open .menu-btn .i-open { display: none; }
.nav.open .menu-btn .i-close { display: block; }
.menu { display: none; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: grid; }
  .menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgb(21 23 28 / .25); }
  .menu:not(.is-open):not(.is-closing) { visibility: hidden; }
  .menu ul { display: flex; flex-direction: column; padding-block: 8px 16px; }
  .menu a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font: 600 1.15rem var(--display); border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 400px) { .nav-cta { padding: 0 12px; font-size: .92rem; } .bar { gap: 12px; } }
@media (max-width: 379px) { .nav-cta { display: none; } .menu-btn { margin-left: auto; } .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; } }
/* on phones the call to action follows you once the hero has gone */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45; display: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px rgb(21 23 28 / .3); }
@media (max-width: 720px) {
  .sticky-cta:not([hidden]) { display: block; animation: rise var(--t-state) var(--ease); }
  .foot { padding-bottom: 96px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- breadcrumbs and page heads ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 20px; font-size: .88rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.phero { padding-block: clamp(28px, 4vw, 52px) clamp(36px, 5vw, 64px); }
.phero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.phero .copy { display: flex; flex-direction: column; gap: 20px; }
.phero h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
.phero.solo .wrap { grid-template-columns: minmax(0, 1fr); }
.phero.solo .copy { max-width: 900px; }
@media (max-width: 960px) { .phero .wrap { grid-template-columns: minmax(0, 1fr); } }
.updated { font-size: .85rem; color: var(--ink-3); padding-bottom: 32px; }

/* ---------- hero (home) ---------- */
.hero { padding-block: clamp(20px, 2.6vw, 40px) clamp(32px, 4vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero .copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .promise { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 1040px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- product window: the app, as a visitor would see it ---------- */
.win { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden; font-family: var(--text); }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: .85rem; color: var(--ink-2); }
/* the product's chrome carries the app icon (kit 01-brand-kit/logo: ink square, white caret, light-blue dot) */
.win-bar .a { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; flex: none; }
.win-bar .a svg { width: 14px; height: 14px; }
.win-bar .a path { fill: none; stroke: #fff; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.win-bar .a circle { fill: var(--blue-light); }
.win-bar b { color: var(--ink); font-weight: 600; }
.win-bar .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: var(--pill); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); background: var(--ok-soft); }
.status.wait { color: var(--blue); background: var(--blue-soft); }
.status.learn { color: var(--learn); background: var(--learn-soft); }
.win-pad { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mark-google, .mark-ms, .mark-slack, .mark-xero { width: 18px; height: 18px; flex: none; display: block; }
.chip-logo { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; }

/* the demo: a request lands, Apprentice drafts, a partner edits, Apprentice learns */
.demo { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.demo .win-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 380px; }
.demo .col { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.demo .col + .col { border-left: 1px solid var(--line-2); background: #FBFAF8; }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.msg small { display: block; font-size: .78rem; color: var(--ink-3); }
.msg p { font-size: .94rem; line-height: 1.45; }
.work { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.work li { display: flex; gap: 10px; align-items: center; }
.tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; flex: none; }
.tick .icon { width: 12px; height: 12px; stroke-width: 3; }
.work .rule { font-size: .78rem; color: var(--ink-3); }
.deck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slide { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); padding: 10px 12px; min-height: 76px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.slide small { font-size: .7rem; color: var(--ink-3); font-weight: 600; }
.slide b { font-size: .84rem; line-height: 1.25; }
.slide span { font-size: .74rem; color: var(--ink-3); }
.slide.cover { grid-column: 1 / -1; min-height: 120px; background: var(--stage); border-color: var(--stage); color: var(--on-stage); padding: 16px; }
.slide.cover small, .slide.cover span { color: var(--on-stage-3); }
.slide.cover b { font: 650 1.25rem/1.1 var(--display); letter-spacing: -.02em; }
.slide.fee { position: relative; }
del { color: var(--del); text-decoration-thickness: 1.5px; }
ins { color: var(--ins); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.slide .editor { position: absolute; right: 8px; top: -10px; font-size: .68rem; font-weight: 600; background: var(--blue); color: #fff; padding: 2px 8px; border-radius: var(--pill); white-space: nowrap; }
.learned { display: flex; gap: 10px; align-items: center; margin: 0 14px 14px; padding: 10px 14px; border-radius: var(--r); background: var(--learn-soft); color: #5E3906; font-size: .9rem; }
.learned b { font-weight: 600; }
.demo-ctl { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--ink-3); }
.demo-ctl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; flex: none; }
.demo-ctl button .icon { width: 16px; height: 16px; }
.demo-ctl .i-play, .demo-ctl [aria-pressed="true"] .i-pause { display: none; }
.demo-ctl [aria-pressed="true"] .i-play { display: block; }
html:not(.moving) .demo-ctl button { display: none; }
.demo-ctl [data-caption] { min-height: 1.5em; }
@media (max-width: 640px) { .demo .win-body { grid-template-columns: minmax(0, 1fr); min-height: 0; } .demo .col + .col { border-left: 0; border-top: 1px solid var(--line-2); } }
/* the story beats: each piece shows once the demo reaches its step (s1…s5). Without the script,
   or with reduced motion, every step class is present, so the finished state shows. */
[data-at] { transition: opacity var(--t-beat) var(--ease), transform var(--t-beat) var(--ease); }
.demo:not(.s1) [data-at="1"], .demo:not(.s2) [data-at="2"], .demo:not(.s3) [data-at="3"],
.demo:not(.s4) [data-at="4"], .demo:not(.s5) [data-at="5"] { opacity: 0; transform: translateY(10px) scale(.97); }
.demo .swap { display: inline-grid; }
.demo .swap > * { grid-area: 1 / 1; transition: opacity var(--t-state) var(--ease); }
.demo:not(.s5) .swap .after, .demo.s5 .swap .before { opacity: 0; }

/* ---------- the problem: where the week goes ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.points { display: flex; flex-direction: column; gap: 22px; }
.points li { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 2px solid var(--ink); }
.points p { color: var(--ink-2); }
.week { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.week h3 { font: 650 1.25rem/1.2 var(--display); letter-spacing: -.015em; }
.week-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: .92rem; color: var(--ink-2); }
.week-row b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hbar { height: 10px; border-radius: var(--pill); background: var(--paper-2); overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.week-row.repeat .hbar i { background: var(--blue); }
.week-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: .95rem; }
.week-total b { font: 650 1.6rem/1 var(--display); color: var(--blue); }
@media (max-width: 420px) { .week-row { grid-template-columns: 110px minmax(0, 1fr) 46px; gap: 8px; } }

/* ---------- stage: the product, on a dark band ---------- */
.stage { background: var(--stage); color: var(--on-stage); }
.stage h2, .stage h3 { color: var(--on-stage); }
.stage .lead, .stage p { color: var(--on-stage-2); }
.stage a:not(.btn) { color: #A9C1FF; }
.stage :focus-visible { outline-color: #A9C1FF; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flow > li { background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.flow .when { font-size: .85rem; color: var(--on-stage-3); }
.flow h3 { font: 650 1.35rem/1.15 var(--display); letter-spacing: -.02em; }
.mini { background: var(--card); color: var(--ink); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.mini p, .stage .mini p { color: var(--ink-2); font-size: .86rem; }
.bubble { padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--paper); font-size: .86rem; color: var(--ink); max-width: 92%; }
.bubble.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--blue-soft); color: var(--blue-ink); }
.bubble small { display: block; font-size: .7rem; font-weight: 600; color: var(--ink-3); }
.rulecard { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .86rem; }
.rulecard span { font-size: .75rem; color: var(--ink-3); }
.draftrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .86rem; }
.loopline { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding: 18px 22px; border: 1px solid var(--stage-line); border-radius: var(--r-lg); }
.loopline p { flex: 1 1 24rem; }
.loopline b { color: var(--on-stage); }
@media (max-width: 960px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cards that link somewhere ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards.two, .cards.four { grid-template-columns: minmax(0, 1fr); } }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--t-state) var(--ease), transform var(--t-state) var(--ease); min-width: 0; }
.card:not(.t-tilt-card):has(a.cover):hover { border-color: var(--ink-3); transform: translateY(-2px); }
.card h3 { font: 650 1.3rem/1.15 var(--display); letter-spacing: -.02em; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card a.cover { color: inherit; text-decoration: none; }
.card a.cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .go { margin-top: auto; font-weight: 600; color: var(--blue); font-size: .95rem; }
.saving { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; color: var(--ink-3); }
.saving s { color: var(--ink-2); }
.saving b { font: 650 1.15rem var(--display); color: var(--ink); }
.card.soon { border-style: dashed; background: transparent; }

/* ---------- tools row ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-weight: 500; font-size: .95rem; }

/* ---------- answer blocks (question as heading, short answer first) ---------- */
.qa { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px); }
.qa > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.qa h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.qa .ans { display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); }
.qa .ans > p:first-child { color: var(--ink); font-size: 1.1rem; }
.qa .ans ul { display: flex; flex-direction: column; gap: 8px; }
.qa .ans li { position: relative; padding-left: 16px; }
.qa .ans li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.qa .ans .tools li::before, .qa .ans .trust li::before { display: none; }
@media (max-width: 860px) { .qa > div { grid-template-columns: minmax(0, 1fr); } }
/* a question row can carry a live visual under its question, filling the left column */
@media (min-width: 861px) {
  .qa > div:has(> .viz) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 16px; column-gap: clamp(32px, 5vw, 72px); }
  .qa > div > h2 { grid-column: 1; grid-row: 1; }
  .qa > div:has(> .viz) > .ans { grid-column: 1; grid-row: 2; }
  .qa > div > .viz { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: stretch; }
  .qa > div:not(:has(> .viz)) > .ans { grid-column: 2; grid-row: 1 / span 2; }
}
/* the visual is the picture of the answer: give it room and readable type */
.qa .viz { max-width: none; zoom: 1.18; padding: 16px; gap: 10px; }
@media (max-width: 860px) { .qa .viz { zoom: 1; } }

/* ---------- live visuals (.viz): small product moments that play when their row arrives ----------
   Each is real HTML (readable without JavaScript, finished under reduced motion); site.js adds
   .is-live when it comes on screen and the CSS below plays it. */
.viz { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgb(21 23 28 / .04), 0 18px 36px -26px rgb(21 23 28 / .3); max-width: 420px; }
.viz.dark { background: var(--stage); border-color: var(--stage-line); color: var(--on-stage); }
.viz-h { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--ink-3); padding: 0 2px 4px; }
.viz.dark .viz-h { color: var(--on-stage-3); }
.viz-h .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--blue); }
.viz-h .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.moving .viz.is-live .viz-h .live::before { animation: viz-blink 1.6s ease-in-out infinite; }
@keyframes viz-blink { 50% { opacity: .25; } }
/* rows with a status that resolves */
.viz-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; font-size: .9rem; color: var(--ink-2); background: var(--paper); }
.viz.dark .viz-row { background: var(--stage-2); border-color: var(--stage-line); color: var(--on-stage-2); }
.viz-row b { color: var(--ink); font-weight: 600; }
.viz.dark .viz-row b { color: var(--on-stage); }
.viz-row .status { transition: background-color var(--duration-fast) var(--ease-soft), color var(--duration-fast) var(--ease-soft); }
.viz-row .status.pending { color: var(--ink-3); background: var(--line-2); }
/* a chain of steps that light up in order, with a pulse travelling along it */
.viz-flow { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 8px 0 4px; }
.viz-flow::before { content: ""; position: absolute; left: 14px; right: 14px; top: 21px; height: 2px; background: var(--line); }
.viz-flow::after { content: ""; position: absolute; left: 14px; top: 18px; width: 40px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: 0; }
.moving .viz.is-live .viz-flow::after { animation: viz-pulse 2.8s var(--ease-soft) infinite; }
@keyframes viz-pulse { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--run, 300px)); } }
.viz-flow span { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .82rem; color: var(--ink-3); }
.viz-flow span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); transition: background-color var(--duration-medium) var(--ease-soft), border-color var(--duration-medium) var(--ease-soft), transform var(--duration-medium) var(--ease-soft); }
.viz-flow span.on { color: var(--ink); }
.viz-flow span.on::before { background: var(--blue); border-color: var(--blue); transform: scale(1.15); }
.viz-flow span.ok.on::before { background: var(--ok); border-color: var(--ok); }
html:not(.moving) .viz-flow span { color: var(--ink); }
html:not(.moving) .viz-flow span::before { background: var(--blue); border-color: var(--blue); }
html:not(.moving) .viz-flow span.ok::before { background: var(--ok); border-color: var(--ok); }
/* on the dark stage: readable labels, a visible track */
.viz.dark .viz-flow::before { background: var(--stage-line); }
.viz.dark .viz-flow span { color: var(--on-stage-3); }
.viz.dark .viz-flow span::before { background: var(--stage-2); border-color: var(--stage-line); }
.viz.dark .viz-flow span.on, html:not(.moving) .viz.dark .viz-flow span { color: var(--on-stage); }
.viz.dark .viz-flow span.on::before, html:not(.moving) .viz.dark .viz-flow span::before { background: var(--blue-light); border-color: var(--blue-light); }
.viz.dark .viz-flow span.ok.on::before, html:not(.moving) .viz.dark .viz-flow span.ok::before { background: #5FD08A; border-color: #5FD08A; }
/* a setting that slides into place */
.viz-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; font-size: .9rem; background: var(--paper); }
.viz-toggle i { position: relative; width: 38px; height: 22px; border-radius: 22px; background: var(--line); flex: none; transition: background-color var(--duration-medium) var(--ease-soft); }
.viz-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transform: translateX(var(--x, 16px)); transition: transform var(--duration-medium) var(--ease-soft); }
.viz-toggle[data-on="true"] i { background: var(--ok); }
.viz-toggle[data-on="false"] i::after { --x: 0px; }
.viz-toggle small { display: block; color: var(--ink-3); font-size: .76rem; }
/* a meter that fills */
.viz-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: .88rem; color: var(--ink-2); }
.viz-meter .hbar { grid-column: 1 / -1; height: 8px; }
.viz-meter b { font-variant-numeric: tabular-nums; color: var(--ink); }
.viz-meter .hbar i { transform-origin: left; transition: transform 1100ms var(--ease-soft); }
/* page-specific artifacts: the thing each page is about, drawn small */
.viz-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.viz-deck .vs { border-radius: 6px; border: 1px solid var(--line); background: var(--paper); padding: 8px; min-height: 58px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; font-size: .68rem; color: var(--ink-3); transition: opacity 500ms var(--ease-soft), transform 600ms var(--ease-soft); transition-delay: calc(var(--j, 0) * 180ms + 200ms); }
.viz-deck .vs b { font-size: .74rem; color: var(--ink); line-height: 1.2; }
.viz-deck .vs.cover { grid-column: 1 / -1; min-height: 72px; background: var(--stage); border-color: var(--stage); color: var(--on-stage-3); }
.viz-deck .vs.cover b { color: #fff; font: 650 .95rem/1.15 var(--display); }
.moving .viz:not(.is-live) .viz-deck .vs { opacity: 0; transform: translate3d(0, 8px, 0) scale(.94); }
.viz-chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 120px; padding: 6px 4px 0; border-bottom: 1px solid var(--line); }
.viz-chart div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font: 500 .7rem var(--mono); color: var(--ink-3); }
.viz-chart i { display: block; width: 70%; border-radius: 5px 5px 0 0; background: var(--line); transform-origin: bottom; transition: transform 900ms var(--ease-soft); transition-delay: calc(var(--j, 0) * 140ms + 250ms); }
.viz-chart .now i { background: var(--blue); }
.moving .viz:not(.is-live) .viz-chart i { transform: scaleY(0); }
.viz-chart-x { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; font: 500 .7rem var(--mono); color: var(--ink-3); text-align: center; }
.viz-mail { display: flex; flex-direction: column; gap: 7px; padding: 4px 2px; }
.viz-mail small { font-size: .76rem; color: var(--ink-3); }
.viz-mail b { font-size: .86rem; }
.viz-mail .ln { height: 7px; border-radius: 7px; background: var(--line); transform-origin: left; transition: transform 700ms var(--ease-soft); transition-delay: calc(var(--j, 0) * 160ms + 300ms); }
.moving .viz:not(.is-live) .viz-mail .ln { transform: scaleX(0); }
.viz-doc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.viz-doc b { font-size: .84rem; }
.viz-doc small { font-size: .72rem; color: var(--ink-3); }
.viz-doc .ln { height: 6px; border-radius: 6px; background: var(--line-2); transform-origin: left; transition: transform 700ms var(--ease-soft); transition-delay: calc(var(--j, 0) * 120ms + 300ms); }
.viz-doc .ln.mark { background: rgb(36 80 200 / .22); }
.moving .viz:not(.is-live) .viz-doc .ln { transform: scaleX(0); }
.viz-path { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; align-items: center; padding: 10px 0 26px; }
.viz-path .node { position: relative; z-index: 1; text-align: center; padding: 10px 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); font-size: .76rem; color: var(--ink-2); }
.viz-path .node b { display: block; font-size: .82rem; color: var(--ink); }
.viz-path .node.core { background: var(--stage); border-color: var(--stage); color: var(--on-stage-3); }
.viz-path .node.core b { color: #fff; }
.viz-path::before { content: ""; position: absolute; left: 12%; right: 12%; top: calc(50% - 8px); height: 2px; background: var(--line); }
.viz-path .pk { position: absolute; top: calc(50% - 11px); left: 12%; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: 0; }
.moving .viz.is-visible .viz-path .pk { animation: viz-packet 3.2s var(--ease-soft) infinite; animation-delay: var(--d, 0s); }
@keyframes viz-packet { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--run, 260px)); } }
.viz-path .drop { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: .72rem; font-weight: 600; color: var(--blue); white-space: nowrap; }
.viz-log { font: .76rem/1.5 var(--mono); color: var(--ink-3); display: flex; flex-direction: column; gap: 3px; padding: 4px 2px; }
.viz.dark .viz-log { color: var(--on-stage-3); }
.viz-log span { display: grid; grid-template-columns: 46px 1fr; gap: 8px; transition: opacity 500ms var(--ease-soft), transform 600ms var(--ease-soft); transition-delay: calc(var(--j, 0) * 260ms + 250ms); }
.viz-log em { font-style: normal; color: var(--ink); }
.viz.dark .viz-log em { color: var(--on-stage); }
.viz-log .ok { color: var(--ok); } .viz.dark .viz-log .ok { color: #5FD08A; }
.moving .viz:not(.is-live) .viz-log span { opacity: 0; transform: translate3d(0, 6px, 0); }
.viz-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.viz-trio > div { border: 1px solid var(--line-2); border-radius: 9px; padding: 8px; background: var(--paper); display: flex; flex-direction: column; gap: 6px; font-size: .72rem; color: var(--ink-3); }
.viz-trio > div > b { font-size: .76rem; color: var(--ink); }
.viz-trio .viz-chart { height: 54px; gap: 4px; } .viz-trio .viz-deck .vs { min-height: 22px; padding: 4px; } .viz-trio .viz-deck .vs.cover { min-height: 26px; }
@media (prefers-reduced-motion: reduce) { .viz-deck .vs, .viz-chart i, .viz-mail .ln, .viz-doc .ln, .viz-log span { transition: none !important; } .viz-path .pk { display: none; } }

/* entrance: the visual's parts settle in one after another as it arrives */
.moving .viz:not(.is-live) > *:not(.viz-h) { opacity: 0; transform: translate3d(0, 10px, 0); }
.viz > * { transition: opacity 600ms var(--ease-soft), transform 700ms var(--ease-soft); transition-delay: calc(var(--i, 0) * 110ms); }
.moving .viz:not(.is-live) .viz-meter .hbar i { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .viz > *, .viz-meter .hbar i, .viz-toggle i, .viz-toggle i::after { transition: none !important; } .viz-flow::after { display: none; } }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 44rem; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-top: 20px; }
.prose ul { list-style: disc; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* ---------- steps with real time labels ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.steps .when { font: 650 1rem var(--display); color: var(--blue); }
.steps p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- security list ---------- */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.trust li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.trust .tick { margin-top: 3px; }
.trust p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 760px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.compare thead th { font: 650 1.05rem var(--display); background: var(--paper); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td { color: var(--ink-2); }
.compare .us { background: #F8FAFF; color: var(--ink); }
.compare tr:last-child > * { border-bottom: 0; }
.scroll-hint { display: none; font-size: .88rem; color: var(--ink-3); margin-bottom: 8px; }
@media (max-width: 720px) { .scroll-hint { display: block; } }

/* ---------- examples (use-case pages): a timeline and the draft ---------- */
.ex { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .ex { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tl { display: flex; flex-direction: column; gap: 14px; position: relative; padding-left: 64px; }
.tl::before { content: ""; position: absolute; left: 52px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl li { position: relative; display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--ink-2); min-height: 26px; }
.tl time { position: absolute; left: -64px; width: 42px; font: 500 .78rem var(--mono); color: var(--ink-3); }
.tl li::before { content: ""; position: absolute; left: -16px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); }
.tl li.msg-row { align-items: flex-start; }
.tl li.msg-row::before { top: 16px; } .tl li.msg-row time { top: 14px; }
@media (max-width: 520px) { .tl { padding-left: 24px; } .tl time { display: none; } .tl::before { left: 12px; } }
.doc { display: flex; flex-direction: column; gap: 12px; }
.doc > small { font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.doc p { color: var(--ink-2); font-size: .95rem; }
.chart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; height: 150px; padding: 10px 6px 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.chart div { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart i { display: block; width: 58%; border-radius: 8px 8px 0 0; background: var(--line); }
.chart .now i { background: var(--ink); }
.chart span { position: absolute; bottom: -22px; font-size: .78rem; color: var(--ink-3); }
.chart b { font-size: .82rem; margin-bottom: 6px; order: -1; }
.nums { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.nums th, .nums td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.nums th { font-weight: 500; color: var(--ink-2); } .nums td { font-weight: 600; } .nums td.chg { text-align: right; font-weight: 500; color: var(--ink-2); }
.ready { align-self: flex-start; margin-top: auto; }

/* ---------- savings calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--lift); }
.calc-in { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 8px; }
.calc-in label { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; margin-top: 12px; }
.calc-in label:first-child { margin-top: 0; }
.calc-in output { font: 650 1.1rem var(--display); font-variant-numeric: tabular-nums; }
.calc-in input[type="range"] { width: 100%; accent-color: var(--ink); height: 32px; margin: 0; cursor: pointer; }
.calc-in .note { font-size: .86rem; color: var(--ink-3); margin-top: 12px; }
.calc-out { background: var(--stage); color: var(--on-stage); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.calc-out small { display: block; font-size: .88rem; color: var(--on-stage-3); }
.calc-out b { display: block; font: 650 clamp(2.6rem, 5vw, 3.6rem)/1.02 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; transition: transform var(--t-press) var(--ease); }
.calc-out b.pop { transform: scale(1.03); }
.calc-out .btn { align-self: flex-start; }
.calc-out :focus-visible { outline-color: #A9C1FF; }
@media (max-width: 820px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- questions ---------- */
.faq { border-top: 1px solid var(--line); max-width: 54rem; }
.faq .t-acc { border-bottom: 1px solid var(--line); }
.faq .t-acc-h { font: 600 1.08rem/1.35 var(--text); letter-spacing: -.01em; }
.faq .t-acc-head { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 44px; }
.faq .t-acc-head:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.faq .t-acc-head:hover span { text-decoration: underline; text-underline-offset: 4px; }
.faq .t-acc-chevron svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 46rem; display: flex; flex-direction: column; gap: 10px; }

/* ---------- closing and footer ---------- */
.closing { background: var(--stage); color: var(--on-stage); text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.closing h2 { color: var(--on-stage); max-width: 20em; }
.closing .lead { color: var(--on-stage-2); margin-inline: auto; }
.closing .reply { font-size: .92rem; color: var(--on-stage-3); }
.closing .reply a { color: #A9C1FF; }
.closing :focus-visible { outline-color: #A9C1FF; }
.foot { background: var(--stage); color: var(--on-stage-3); border-top: 1px solid var(--stage-line); padding-block: 56px 40px; font-size: .94rem; }
.foot .brand { color: var(--on-stage); }
.foot .brand .mark circle { fill: var(--blue-light); }
/* the founders (about) and the promises in every footer */
.people, .ans .people { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 14px; }
.people li { display: flex; gap: 14px; align-items: flex-start; }
.people .avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 .95rem/1 var(--text); }
.foot-promises { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; padding-top: 24px; border-top: 1px solid var(--stage-line); }
.foot-promises li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-stage-2); font-size: .92rem; line-height: 1.45; }
.foot-promises li b { color: var(--on-stage); font-weight: 600; display: block; }
.foot-promises .tick { width: 18px; height: 18px; margin-top: 2px; }
@media (max-width: 760px) { .foot-promises { grid-template-columns: 1fr; } }
.foot-top { display: flex; flex-direction: column; gap: 14px; max-width: 40rem; }
.foot-def { color: var(--on-stage-2); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot h2 { font: 600 .9rem var(--text); color: var(--on-stage); letter-spacing: 0; margin-bottom: 8px; }
.foot a { color: var(--on-stage-3); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot :focus-visible { outline-color: #A9C1FF; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--stage-line); align-items: center; }

/* ================= motion (transitions.dev snippets, verbatim, with their tokens) =================
   The home page moves: the hero copy reveals on load, sections reveal as they arrive, the week's
   bars grow, numbers pop when they change, the product clips play while on screen. Everything has
   a finished state without JavaScript and nothing moves for visitors who ask for reduced motion. */
:root {
  --duration-stagger: 40ms; --duration-micro: 80ms; --duration-quick: 150ms; --duration-fast: 250ms;
  --duration-medium: 350ms; --duration-slow: 400ms; --duration-very-slow: 500ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --distance-base: 8px; --distance-medium: 12px; --blur-small: 2px; --blur-medium: 3px;
  /* texts reveal (18) */
  --stagger-dur: 760ms; --stagger-distance: 18px; --stagger-stagger: 70ms; --stagger-blur: 0px; --stagger-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* accordion (21) */
  --acc-expand: 250ms; --acc-collapse: 250ms; --acc-chevron: 250ms; --acc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* menu dropdown (05) */
  --dropdown-open-dur: 250ms; --dropdown-close-dur: 150ms; --dropdown-pre-scale: 0.97; --dropdown-closing-scale: 0.99; --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* number pop-in (02) */
  --digit-dur: 500ms; --digit-distance: 8px; --digit-stagger: 70ms; --digit-blur: 2px; --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1); --digit-dir-x: 0; --digit-dir-y: 1;
  /* tabs sliding (16) */
  --tabs-dur: 250ms; --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1); --tabs-text-muted: #57534E; --tabs-text-active: #1C1B19; --tabs-bar-bg: #E9E7E2; --tabs-pill-bg: #FFFFFF;
  /* learn more hover (24) */
  --learn-shift: 2px; --learn-spread: 8deg; --learn-in: 350ms; --learn-out: 350ms; --learn-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 18 · texts reveal: JS adds these classes, so without JavaScript nothing is hidden */
.t-stagger-line {
  display: block;
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  filter: blur(var(--stagger-blur));
  transition:
    opacity   var(--stagger-dur) var(--stagger-ease),
    transform var(--stagger-dur) var(--stagger-ease),
    filter    var(--stagger-dur) var(--stagger-ease);
  will-change: transform, opacity, filter;
}
.actions.t-stagger-line { display: flex; }
.t-stagger-line--2 { transition-delay: var(--stagger-stagger); }
.t-stagger-line--3 { transition-delay: calc(var(--stagger-stagger) * 2); }
.t-stagger-line--4 { transition-delay: calc(var(--stagger-stagger) * 3); }
.t-stagger-line--5 { transition-delay: calc(var(--stagger-stagger) * 4); }
.t-stagger.is-shown .t-stagger-line {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .t-stagger-line { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}
/* items in a list arrive one after another, 40ms apart (total stays under 300ms) */
.reveal-item { opacity: 0; transform: translateY(18px); transition: opacity 760ms var(--ease-soft), transform 760ms var(--ease-soft); transition-delay: calc(var(--i, 0) * 60ms); }
.is-shown .reveal-item, .reveal-item.is-shown { opacity: 1; transform: none; }
/* the week's bars grow when they come into view */
.moving .week:not(.is-shown) .hbar i { transform: scaleX(0); }
.week .hbar i { transform-origin: left; transition: transform 900ms var(--ease-smooth-out); transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; } .week .hbar i { transform: none !important; } }

/* 21 · accordion */
.t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
.t-acc-panel-inner {
  overflow: hidden;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity var(--acc-collapse) var(--acc-ease),
    filter var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity var(--acc-expand) var(--acc-ease),
    filter var(--acc-expand) var(--acc-ease);
}
.t-acc-chevron {
  display: inline-flex;
  transform: scaleY(1);
  transform-origin: center;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron {
  transform: scaleY(-1);
}
@media (prefers-reduced-motion: reduce) {
  .t-acc-panel, .t-acc-panel-inner, .t-acc-chevron {
    transition: none !important;
  }
}
html:not(.js) .t-acc-panel { grid-template-rows: 1fr; }
html:not(.js) .t-acc-panel-inner { opacity: 1; filter: none; }
html:not(.js) .t-acc-chevron { display: none; }

/* 05 · menu dropdown (the phone menu grows from the top bar) */
@media (max-width: 920px) {
  .t-dropdown {
    transform-origin: top left;
    transform: scale(var(--dropdown-pre-scale));
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--dropdown-open-dur) var(--dropdown-ease),
      opacity   var(--dropdown-open-dur) var(--dropdown-ease);
    will-change: transform, opacity;
  }
  .t-dropdown[data-origin="top-right"]     { transform-origin: top right; }
  .t-dropdown[data-origin="top-center"]    { transform-origin: top center; }
  .t-dropdown.is-open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .t-dropdown.is-closing {
    transform: scale(var(--dropdown-closing-scale));
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--dropdown-close-dur) var(--dropdown-ease),
      opacity   var(--dropdown-close-dur) var(--dropdown-ease);
  }
}
@media (prefers-reduced-motion: reduce) {
  .t-dropdown { transition: none !important; }
}

/* 02 · number pop-in (the calculator's results) */
@keyframes t-digit-pop-in {
  0%   {
    transform: translate(
      calc(var(--digit-distance) * var(--digit-dir-x)),
      calc(var(--digit-distance) * var(--digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--digit-blur));
  }
  100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}
.t-digit-group {
  display: inline-flex;
  align-items: baseline;
}
.t-digit {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.t-digit-group.is-animating .t-digit {
  animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}
.t-digit-group.is-animating .t-digit[data-stagger="1"] {
  animation-delay: var(--digit-stagger);
}
.t-digit-group.is-animating .t-digit[data-stagger="2"] {
  animation-delay: calc(var(--digit-stagger) * 2);
}
.t-digit-group.is-animating .t-digit[data-same] {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .t-digit-group .t-digit { animation: none !important; }
}

/* 16 · tabs sliding (the video switcher) */
.t-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 48px;
  background: var(--tabs-bar-bg);
}
.t-tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  height: 30px;
  padding: 4px 12px;
  color: var(--tabs-text-muted);
  cursor: pointer;
  border-radius: 48px;
  z-index: 1;
  transition: color var(--tabs-dur) var(--tabs-ease);
}
.t-tab:not([aria-selected="true"]):hover,
.t-tab[aria-selected="true"] {
  color: var(--tabs-text-active);
}
.t-tabs-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: 30px;
  width: 0;
  background: var(--tabs-pill-bg);
  border-radius: 48px;
  transform: translateX(0);
  transition:
    transform var(--tabs-dur) var(--tabs-ease),
    width     var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .t-tabs-pill, .t-tab { transition: none !important; }
}
.t-tab { font: 600 .95rem var(--text); height: 40px; padding: 4px 16px; }
.t-tabs-pill { height: 40px; box-shadow: 0 1px 2px rgb(21 23 28 / .08), 0 0 0 1px var(--line); }
.t-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
html:not(.js) .t-tab[aria-selected="true"] { background: var(--tabs-pill-bg); }

/* 24 · learn more hover (links on cards and "more" links) */
.t-learn-chevron {
  display: inline-flex;
  transform: translateX(0);
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn-arm {
  transform-box: view-box;
  transform-origin: 10px 8px;
  vector-effect: non-scaling-stroke;
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn:hover .t-learn-chevron { transform: translateX(var(--learn-shift)); transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm { transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm-top { transform: rotate(var(--learn-spread)); }
.t-learn:hover .t-learn-arm-bot { transform: rotate(calc(var(--learn-spread) * -1)); }
@media (prefers-reduced-motion: reduce) {
  .t-learn-chevron, .t-learn-arm { transition: none !important; }
}
.t-learn-chevron svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.card:hover.t-learn .t-learn-chevron, .card.t-learn:has(a.cover:focus-visible) .t-learn-chevron { transform: translateX(var(--learn-shift)); }
.card .go, .more { display: inline-flex; align-items: center; gap: 6px; }

/* cards lift a little under the pointer */
.card { transition: border-color var(--duration-fast) var(--ease-smooth-out), transform var(--duration-fast) var(--ease-smooth-out), box-shadow var(--duration-fast) var(--ease-smooth-out); }
.card:has(a.cover):hover { box-shadow: 0 18px 36px -24px rgb(21 23 28 / .35); }

/* page to page: the content cross-fades and slides while the bar stays put (view transitions) */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
main { view-transition-name: page; }
::view-transition-old(page) { animation: page-out 180ms ease-in both; }
::view-transition-new(page) { animation: page-in 420ms var(--ease-soft) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- watch it work: product clips ---------- */
.watch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.watch-head .head { margin-bottom: 0; }
.player { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--stage); box-shadow: var(--lift); aspect-ratio: 16 / 9; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity var(--duration-slow) var(--ease-smooth-out); }
.player video.on { opacity: 1; }
.player-ctl { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 10px; align-items: center; z-index: 2; }
.player-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 6px 18px rgb(21 23 28 / .25); transition: transform var(--duration-quick) var(--ease-smooth-out); }
.player-ctl button:active { transform: scale(.94); }
.player-ctl .icon { width: 18px; height: 18px; }
.player-ctl .i-play, .player-ctl [aria-pressed="true"] .i-pause { display: none; }
.player-ctl [aria-pressed="true"] .i-play { display: block; }
.player-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .15); z-index: 2; }
.player-progress i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
.clip-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.clip-notes p { color: var(--ink-3); font-size: .94rem; }
.clip-notes p.on { color: var(--ink); }
.clip-notes b { display: block; color: inherit; font-weight: 600; }
@media (max-width: 760px) { .clip-notes { grid-template-columns: minmax(0, 1fr); } .clip-notes p:not(.on) { display: none; } .watch-head .t-tabs { width: 100%; } .t-tab { flex: 1; padding: 4px 8px; font-size: .86rem; } }

/* 19 · card hover tilt (the use-case cards). Mouse only: touch-action stays default so phones scroll. */
:root {
  --tilt-perspective: 1000px; --tilt-return: 1000ms; --tilt-return-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tilt-follow: 400ms; --tilt-follow-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tilt-glare-opacity: 0.32; --tilt-glare-fade: 300ms; --tilt-glare-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.t-tilt-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transform:
    perspective(var(--tilt-perspective))
    rotateX(var(--tilt-rx, 0deg))
    rotateY(var(--tilt-ry, 0deg));
  transform-style: preserve-3d;
  transition: transform var(--tilt-return) var(--tilt-return-ease);
  will-change: transform;
}
.t-tilt-card.is-tilting {
  transition: transform var(--tilt-follow) var(--tilt-follow-ease);
}
/* glare tinted with the accent: white light disappears on white cards */
.t-tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle 95px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgb(36 80 200 / .16), rgb(36 80 200 / .03) 52%, rgb(36 80 200 / 0) 84%),
    radial-gradient(circle 260px at var(--tilt-gx, 50%) var(--tilt-gy, 50%),
      rgb(36 80 200 / .08), rgb(36 80 200 / 0) 80%);
  transition: opacity var(--tilt-glare-fade) var(--tilt-glare-ease);
}
.t-tilt.is-hover .t-tilt-glare { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .t-tilt-card { transform: none !important; transition: none !important; }
}
.tilt-cards > .t-tilt { display: flex; }
.tilt-cards .card { flex: 1; }
.t-tilt.is-hover .card { border-color: var(--ink-3); box-shadow: 0 24px 40px -26px rgb(21 23 28 / .45); }

/* ---------- how it works: a pinned, scroll-scrubbed story ----------
   Phones, reduced motion and no JavaScript: four stacked cards. Wide screens with motion: the
   block pins while you scroll and site.js scrubs between the steps, so text and panel always
   change together and continuously (each item's --v is its visibility, --t its offset from now). */
.scrolly { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sstep { background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.sstep .when { font-size: .85rem; color: var(--on-stage-3); }
.sstep h3 { font: 650 1.35rem/1.15 var(--display); letter-spacing: -.02em; }
.scrolly-stage, .scrolly-rail { display: none; }

.scrolly.is-pinned { display: block; height: calc(100vh + var(--steps, 4) * 42vh); position: relative; }
.scrolly.is-pinned .scrolly-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: grid;
  grid-template-columns: 150px minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
/* the rail: where you are in the story */
.scrolly.is-pinned .scrolly-rail { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 16px; }
.scrolly-rail::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--stage-line); }
.scrolly-rail::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: #A9C1FF;
  transform-origin: top; transform: scaleY(var(--p, 0)); }
.scrolly-rail button { all: unset; cursor: pointer; padding: 12px 0; font-size: .9rem; color: var(--on-stage-3); transition: color var(--duration-fast) var(--ease-soft); }
.scrolly-rail button[aria-current="step"] { color: var(--on-stage); }
.scrolly-rail button:hover { color: var(--on-stage-2); }
.scrolly-rail button:focus-visible { outline: 2px solid #A9C1FF; outline-offset: 4px; border-radius: 4px; }
/* the words and the panel for every step sit on top of each other and cross over as you scroll */
.scrolly.is-pinned .scrolly-steps { display: grid; }
.scrolly.is-pinned .sstep { grid-area: 1 / 1; background: none; border: 0; padding: 0; gap: 14px; opacity: 0; } /* site.js writes opacity and transform each frame */
.scrolly.is-pinned .sstep h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.scrolly.is-pinned .sstep p { font-size: 1.08rem; }
.scrolly.is-pinned .sstep .spanel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* kept for screen readers; the stage shows a copy */
.scrolly.is-pinned .scrolly-stage { display: grid; }
.scrolly-stage > .spanel { grid-area: 1 / 1; align-self: center; margin: 0; opacity: 0; } /* site.js writes opacity and transform each frame */
.scrolly-stage .mini { padding: 24px; gap: 10px; font-size: 1rem; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
.scrolly-stage .bubble, .scrolly-stage .draftrow, .scrolly-stage .rulecard { font-size: 1rem; }
@media (max-width: 1100px) { .scrolly.is-pinned .scrolly-pin { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } .scrolly.is-pinned .scrolly-rail { display: none; } }

/* the company brain graph */
.brainpanel { background: #0F1116; border: 1px solid var(--stage-line); }
.brain { width: 100%; height: auto; display: block; }
.brain .e { fill: none; stroke: rgb(169 193 255 / .22); stroke-width: 1.5; }
.brain .p { fill: none; stroke: #A9C1FF; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 400; stroke-dashoffset: 414; animation: pulse-run 2.1s linear infinite; animation-delay: var(--d); animation-play-state: paused; opacity: .9; }
.brainpanel.is-on .p { animation-play-state: running; }
@keyframes pulse-run { to { stroke-dashoffset: 0; } }
.brain .person circle { fill: #F5F4F1; }
.brain .person text { fill: #15171C; font: 700 12px var(--text); text-anchor: middle; dominant-baseline: central; }
.brain .rule rect { fill: #2450C8; stroke: #A9C1FF; stroke-width: 1.5; }
.brain .flowc circle { fill: #157A3B; stroke: #5FD08A; stroke-width: 1.5; }
.brain .labels text { fill: #C9C6C0; font: 500 12.5px var(--text); text-anchor: middle; }
@media (prefers-reduced-motion: reduce) { .brain .p { animation: none; opacity: 0; } }


/* ---------- smoothing (transitions-polish + fixing-motion-performance) ----------
   One soft long-tail curve for every reveal; no blur on large surfaces; no permanent
   will-change (each one is a GPU layer for the life of the page). */
:root { --ease-soft: cubic-bezier(0.16, 1, 0.3, 1); }
.t-stagger-line { will-change: auto; filter: none; }
.t-stagger.is-shown .t-stagger-line { filter: none; }
.t-digit { will-change: auto; }
.t-tilt-card { will-change: auto; }
.t-tilt-card.is-tilting { will-change: transform; }
/* the hero demo: its beats ease in softly, list rows one after another */
.demo [data-at] { transition: opacity 600ms var(--ease-soft), transform 700ms var(--ease-soft); }
.demo .work li:nth-child(2) { transition-delay: 500ms; } .demo .work li:nth-child(3) { transition-delay: 1000ms; } .demo .work li:nth-child(4) { transition-delay: 1400ms; }
/* between loops the whole window dims, resets out of sight, then comes back */
.demo .win-body, .demo .learned, .demo .win-bar .status { transition: opacity 450ms var(--ease-soft); }
.demo.resetting .win-body, .demo.resetting .learned, .demo.resetting .win-bar .status { opacity: 0; }
.demo.instant [data-at] { transition: none !important; }
/* clips: the next one only shows once it can play, then cross-fades */
.player video { transition: opacity 500ms var(--ease-soft); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
}
@media print { .nav, .sticky-cta, .closing, .foot, .demo-ctl { display: none !important; } body, .alt, .stage { background: #fff; color: #000; } }

/* the Repeat Work Audit page: the worksheet's cover beside the copy */
.audit-cover { margin: 0; justify-self: center; }
.audit-cover img { display: block; width: min(360px, 80vw); height: auto; border-radius: var(--r-lg); box-shadow: var(--lift); }
.qa .ans .people li { padding-left: 0; }
.qa .ans .people li::before { content: none; }

/* questions: the heading on the left, the answers filling the right, so the row uses the width */
@media (min-width: 961px) {
  .wrap:has(> .faq) { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; }
  .wrap:has(> .faq) > .head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
  .wrap:has(> .faq) > .faq { max-width: none; }
}
/* the toggle row on the dark stage */
.viz.dark .viz-toggle { background: var(--stage-2); border-color: var(--stage-line); color: var(--on-stage); }
.viz.dark .viz-toggle small { color: var(--on-stage-3); }
.viz.dark .viz-toggle i { background: var(--stage-line); }

/* What it drafts: each card shows the work it drafts, above its name */
.card-art { margin: 0 0 18px; padding: 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-2); min-height: 168px; display: flex; flex-direction: column; justify-content: center; }
.card-art .viz-deck .vs { min-height: 52px; }
.card-art .viz-chart { height: 112px; }
/* the company brain reads best at diagram size, not stretched to the full column */
.brainpanel .brain { max-width: 640px; margin-inline: auto; }

/* ---------- real screens of the product (SPEC.md §4, ADR-0063) ---------- */
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shot-frame { border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(28 27 25 / .05), 0 28px 60px -28px rgb(28 27 25 / .38); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: .9rem; color: var(--ink-2); max-width: 62ch; }
.shot figcaption .muted { color: var(--ink-3); }
.stage .shot-frame { border-color: var(--stage-line); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .7); }
.stage .shot figcaption { color: var(--on-stage-2); }
.stage .shot figcaption .muted { color: var(--on-stage-3); }

/* the home hero: a short promise, then the product itself as the page's main image */
.hero-v2 .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 52px); }
.hero-v2 .copy { align-items: center; text-align: center; max-width: 52rem; }
.hero-v2 h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; text-wrap: balance; }
.hero-v2 h1 em { display: block; }
.hero-v2 .lead { margin-inline: auto; }
.hero-v2 .actions { justify-content: center; }
.hero-v2 .shot { width: 100%; max-width: 1240px; }
.hero-v2 .shot figcaption { align-self: center; text-align: center; }

/* three facts under the hero */
.facts { padding-block: 8px clamp(32px, 4vw, 56px); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  border-top: 1px solid var(--line); padding-top: 24px; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts b { font-weight: 600; }
.facts span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .facts ul { grid-template-columns: minmax(0, 1fr); } }

/* the product tour: one idea a row, text and screen alternating */
.tour { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 112px); margin-bottom: 32px; }
.tour-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.tour-row.flip .tour-copy { order: 2; }
.tour-copy { display: flex; flex-direction: column; gap: 14px; }
.tour-copy h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.tour-copy p { color: var(--ink-2); }
.label { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--blue);
  padding: 4px 10px; border-radius: var(--pill); background: color-mix(in srgb, var(--blue) 9%, transparent); }
.stage .label { color: #A9C1FF; background: rgb(169 193 255 / .12); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.ticks .icon { color: var(--ok); margin-top: 3px; }
.ticks.on-dark li { color: var(--on-stage-2); }
.ticks.on-dark .icon { color: #7FE0A4; }
@media (max-width: 900px) {
  .tour-row { grid-template-columns: minmax(0, 1fr); }
  .tour-row.flip .tour-copy { order: 0; }
}

/* you stay in charge: the one dark band */
.control { padding-block: clamp(64px, 8vw, 112px); }
.control .split { align-items: center; }
.control h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; text-wrap: balance; margin: 10px 0 16px; }
.control .ticks { margin-top: 20px; }
.tour-copy h2 { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }

.split > .shot { align-self: center; }

/* a question beside a screen: stack the question over the answer */
.split .qa > div { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.split .qa > div > h2, .split .qa > div > .ans { grid-column: 1; grid-row: auto; }

/* Minimal home (ADR-0063, after paperclip.ing): more air, shorter lines, hairline grids */
.hero-v2 { padding-block: clamp(56px, 8vw, 120px) clamp(32px, 4vw, 56px); }
.hero-v2 h1 { letter-spacing: -.045em; }
.hero-v2 .lead { max-width: 34rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.textlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: .95rem; }
.textlinks a { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.textlinks a:hover { color: var(--ink); text-decoration: underline; }
.statement { padding-block: clamp(48px, 7vw, 104px); }
.statement h2 { text-align: center; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; margin-bottom: clamp(32px, 4vw, 56px); }
.gridbox { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.gridbox.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gridbox.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gridbox > li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: clamp(22px, 2.4vw, 32px); box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.gridbox h3 { font-size: 1.05rem; font-weight: 600; }
.gridbox p { color: var(--ink-2); font-size: .95rem; }
.gridbox .num { font: 500 .8rem var(--mono); color: var(--ink-3); margin-bottom: 18px; }
.gridbox .icon { width: 22px; height: 22px; color: var(--ink-2); margin-bottom: 14px; stroke-width: 1.5; }
.gridbox.links > li { transition: background var(--duration-fast) var(--ease-smooth-out); }
.gridbox.links > li:hover { background: var(--paper-2); }
.gridbox.links a.cover { color: inherit; text-decoration: none; }
.gridbox.links a.cover::after { content: ""; position: absolute; inset: 0; }
.gridbox.links a.cover:focus-visible { outline: none; }
.gridbox.links > li:has(a:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (max-width: 900px) { .gridbox.three, .gridbox.four { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 901px) and (max-width: 1100px) { .gridbox.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.label { font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tour-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.tour-copy p:not(.label) { font-size: 1.05rem; max-width: 28rem; }
.control h2 { letter-spacing: -.04em; }
.control .lead.strong { color: var(--on-stage); font-weight: 600; margin-bottom: 12px; }
#tour { padding-top: clamp(64px, 8vw, 120px); }

/* ================= v2: minimal on every page, after paperclip.ing (ADR-0063, website/DESIGN.md) ================= */
h1 { letter-spacing: -.045em; }
h2 { letter-spacing: -.038em; }
section { padding-block: clamp(56px, 7vw, 104px); }
.kicker { font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stage .kicker, .quote .kicker { color: var(--on-stage-3); }
:root { --lift: 0 1px 2px rgb(21 23 28 / .04), 0 20px 40px -28px rgb(21 23 28 / .28); }

/* page heroes: centred, one line of headline, short lead, the visual underneath */
.phero { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.phero .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(36px, 4.5vw, 64px); }
.phero .copy { align-items: center; text-align: center; max-width: 52rem; gap: 22px; }
.phero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.03; }
.phero .lead { margin-inline: auto; max-width: 40rem; }
.phero .actions { justify-content: center; }
.phero .wrap > .shot { width: 100%; max-width: 1120px; }
.phero .wrap > .shot figcaption { text-align: center; align-self: center; }
.phero .wrap > .win, .phero .wrap > .viz, .phero .wrap > .panel { width: 100%; max-width: 640px; }
.phero.solo .copy { max-width: 52rem; }
.crumbs ol { justify-content: center; }

/* a strip of three facts with big figures */
.stats { padding-block: 0; }
.stats ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stats li { text-align: center; padding: clamp(28px, 4vw, 52px) 16px; display: flex; flex-direction: column; gap: 8px; }
.stats li + li { box-shadow: -1px 0 0 var(--line); }
.stats b { font: 650 clamp(2rem, 4.2vw, 3.2rem)/1 var(--display); letter-spacing: -.045em; color: var(--ink); }
.stats span { color: var(--ink-3); font-size: .92rem; }
@media (max-width: 700px) { .stats ul { grid-template-columns: minmax(0, 1fr); } .stats li + li { box-shadow: 0 -1px 0 var(--line); } }

/* feature rows (label, heading, a short paragraph, a dash list, the visual beside) */
.rows { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 128px); }
.tour-row > .viz, .tour-row > .win, .tour-row > .panel { justify-self: stretch; max-width: none; }
.tour-copy .lead { font-size: 1.08rem; }
.dash { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: .96rem; }
.dash li { padding-left: 22px; position: relative; }
.dash li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.stage .dash { color: var(--on-stage-2); }
.qa .ans li::before { content: "—"; top: 0; width: auto; height: auto; border-radius: 0; background: none; color: var(--ink-3); }
.qa .ans li { padding-left: 22px; }
@media (max-width: 900px) { .tour-row { grid-template-columns: minmax(0, 1fr); } .tour-row.flip .tour-copy { order: 0; } }

/* one principle, said plainly, on the dark band */
.quote { background: var(--stage); color: var(--on-stage); text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 54rem; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.quote blockquote > p { font: 550 clamp(1.5rem, 3vw, 2.3rem)/1.22 var(--display); letter-spacing: -.03em; color: var(--on-stage); text-wrap: balance; }
.quote footer { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.quote footer b { color: var(--on-stage); font-weight: 600; }
.quote footer span { color: var(--on-stage-3); }

/* a big centred line on its own */
.statement h2, .center-h { text-align: center; }

/* keep exploring */
.explore h2 { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.gridbox .kicker { margin-bottom: 4px; }
.gridbox .go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.gridbox .go .icon { width: 16px; height: 16px; margin: 0; color: currentColor; transition: transform var(--t-state) var(--ease); }
.gridbox.links > li:hover .go .icon { transform: translateX(3px); }

/* every grid of cards is one hairline box */
.cards { gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.card { border: 0; border-radius: 0; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); padding: clamp(22px, 2.4vw, 32px); }
.card:not(.t-tilt-card):has(a.cover):hover { transform: none; background: var(--paper); }
.card a.cover::after { border-radius: 0; }
.card h3 { font: 600 1.12rem/1.3 var(--text); letter-spacing: -.01em; }
.card .go { color: var(--ink); }
.card.soon { background: var(--paper); }
.steps { gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.steps li { border: 0; border-radius: 0; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); padding: clamp(22px, 2.4vw, 32px); }
.steps .when { font: 500 .76rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.flow { gap: 0; border: 1px solid var(--stage-line); border-radius: var(--r-lg); overflow: hidden; }
.flow > li { border: 0; border-radius: 0; background: transparent; box-shadow: 1px 0 0 var(--stage-line), 0 1px 0 var(--stage-line); padding: clamp(22px, 2.4vw, 32px); }
.flow .when { font: 500 .76rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tools li { border-radius: var(--pill); }
.viz { box-shadow: 0 1px 2px rgb(21 23 28 / .04); }
.win { box-shadow: var(--lift); }

/* footer: the wordmark, then columns */
.foot { padding-block: clamp(56px, 7vw, 96px) 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 48px; }
.foot .brand.big { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.foot-top { gap: 18px; }
.foot-def { font-size: .9rem; max-width: 24rem; color: var(--on-stage-3); }
.foot-cols { margin-top: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* closing band: room to breathe */
.closing { padding-block: clamp(72px, 9vw, 128px); }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 22ch; }

/* ---------- blog ---------- */
.blog-hero { padding-block: clamp(40px, 6vw, 88px) 0; }
.blog-hero .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.blog-hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); line-height: 1; }
.blog-hero p { max-width: 21rem; }
.blog-top { padding-block: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 56px); }
.feat { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.feat-copy { display: flex; flex-direction: column; gap: 18px; }
.feat h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.04; }
.cover-link { color: inherit; text-decoration: none; }
.cover-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cover-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font: 500 .74rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.post-meta .tag { color: var(--blue); }
.post-meta a { position: relative; z-index: 2; color: var(--ink-2); text-decoration: none; }
.post-meta a:hover { color: var(--ink); text-decoration: underline; }
.byline { font-size: .9rem; color: var(--ink-3); }
.pcover { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 16 / 10; }
.shot-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.type-cover { display: grid; place-items: center; background: var(--stage); border-color: var(--stage); }
.type-cover.tone-blue { background: radial-gradient(120% 120% at 20% 0%, #4F78E8 0%, #2450C8 45%, #16255E 100%); border-color: #2450C8; }
.type-cover.tone-paper { background: var(--paper-2); border-color: var(--line); }
.cover-grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 72%); mask-image: radial-gradient(circle at 50% 50%, #000 15%, transparent 72%); }
.tone-paper .cover-grid { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); }
.type-cover .cover-icon { position: relative; z-index: 1; width: 26%; height: auto; aspect-ratio: 1; color: #fff; stroke-width: 1.1; filter: drop-shadow(0 8px 24px rgb(0 0 0 / .25)); }
.tone-ink .cover-icon { color: #A9C1FF; }
.tone-paper .cover-icon { color: var(--ink); filter: none; }
.cover-tag { position: absolute; left: 18px; top: 16px; z-index: 1; font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.tone-paper .cover-tag { color: var(--ink-3); }
.post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); margin-top: clamp(48px, 6vw, 88px); }
.post-cards article { position: relative; display: flex; flex-direction: column; gap: 14px; }
.post-cards h3 { font: 650 1.3rem/1.18 var(--display); letter-spacing: -.028em; }
.post-cards article:hover .pcover { border-color: var(--ink-3); }
.blog-all { padding-top: clamp(24px, 3vw, 40px); }
.all-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.all-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { font: 500 .9rem var(--text); min-height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color var(--t-state), color var(--t-state), border-color var(--t-state); }
.pill:hover { border-color: var(--ink-3); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.count { font: 500 .74rem var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.post-list { border-bottom: 1px solid var(--line); }
.post-list li { border-top: 1px solid var(--line); }
.post-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; padding: 22px 0; color: inherit; text-decoration: none; }
.row-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.row-title { font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.post-list a:hover .row-title { text-decoration: underline; text-underline-offset: 3px; }
.row-main .tag { font: 500 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-3); }
.row-desc { flex-basis: 100%; color: var(--ink-2); font-size: .95rem; }
.post-list time { flex: none; color: var(--ink-3); font-size: .9rem; white-space: nowrap; }
@media (max-width: 900px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat .pcover { order: -1; }
  .post-cards { grid-template-columns: minmax(0, 1fr); }
  .post-list a { flex-direction: column; gap: 8px; }
  .blog-hero p { max-width: none; }
}

/* a post */
.post-head { max-width: 54rem; padding-block: clamp(32px, 5vw, 72px) clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.post-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.04; }
.post-head .lead { margin-inline: auto; }
.post-head .post-meta { justify-content: center; }
.post-hero { max-width: 1040px; }
.post-hero .pcover { aspect-ratio: 16 / 8; }
.post-body { margin: clamp(40px, 5vw, 72px) auto 0; max-width: 42rem; gap: 20px; font-size: 1.08rem; line-height: 1.72; color: var(--ink-2); padding-bottom: clamp(24px, 3vw, 40px); }
.post-body > p:first-child { font-size: 1.2rem; color: var(--ink); }
.post-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 28px; color: var(--ink); }
.post-body h3 { margin-top: 10px; font-size: 1.15rem; }
.post-body strong, .post-body b { color: var(--ink); }
.post-body ul { list-style: none; padding-left: 0; gap: 8px; }
.post-body ul li { position: relative; padding-left: 24px; }
.post-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.post-body ol { list-style: decimal; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.post-body ol li::marker { font: 500 .9em var(--mono); color: var(--ink-3); }
.post-body blockquote { margin: 12px 0; padding-left: 20px; border-left: 2px solid var(--blue); font: 550 1.35rem/1.38 var(--display); letter-spacing: -.02em; color: var(--ink); }
.post-body .callout { margin: 8px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 1rem; color: var(--ink-2); }
.post-body .callout b:first-child { display: block; font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.post-body .shot { margin: 16px 0; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { font-weight: 600; color: var(--ink); }
.post-body code { font: .9em var(--mono); background: var(--paper-2); padding: 1px 6px; border-radius: 5px; }
.page-blog .crumbs ol { justify-content: flex-start; }
/* tables in a post: compact; on phones each row becomes a small block */
.post-body table { margin: 8px 0; }
.post-body td:last-child { color: var(--ink); }
@media (max-width: 640px) {
  .post-body table, .post-body tbody, .post-body tr, .post-body th, .post-body td { display: block; }
  .post-body thead { display: none; }
  .post-body tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .post-body th, .post-body td { border: 0; padding: 2px 0; }
  .post-body th { font-size: 1rem; }
}
/* flipped rows: the visual keeps the wide column */
@media (min-width: 901px) { .tour-row.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
/* one look for section labels, wherever they sit */
.label { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.stage .label, .quote .label { color: var(--on-stage-2); background: rgb(255 255 255 / .08); }
/* three figures on a phone: compact */
@media (max-width: 700px) { .stats li { padding: 18px 12px; flex-direction: row; justify-content: center; align-items: baseline; gap: 10px; } .stats b { font-size: 1.7rem; } }
.updated { padding-block: 24px 0; }
.updated + .explore { padding-top: clamp(48px, 6vw, 80px); }
/* tool chips inside an answer stay a row of chips */
.qa .ans .tools { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qa .ans .tools li { padding-left: 14px; }
.qa .ans .tools li::before { content: none; }
/* real screens on phones: let a reader open the full-size screen */
@media (max-width: 600px) { .shot figcaption { font-size: .85rem; } }
a.shot-frame { display: block; cursor: zoom-in; }
/* a real screen as a post's cover shows in full */
.post-hero .shot-cover { aspect-ratio: auto; }
.post-hero .shot-cover img { height: auto; }

/* product snippets: small pieces of real screens, never a whole screen (ADR-0063) */
.snip { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.snip img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--lift); }
.snip figcaption { font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.stage .snip img { border-color: var(--stage-line); }
.stage .snip figcaption { color: var(--on-stage-3); }
.snip-hero { width: 100%; max-width: 960px; margin-inline: auto; }
.snip-hero figcaption { text-align: center; }
.tour-row > .snip, .split > .snip { width: 100%; max-width: 560px; justify-self: center; align-self: center; }
.tour-row > .snip-interview, .split > .snip-interview { max-width: 380px; }
.phero .wrap > .snip { width: 100%; max-width: 860px; }
.phero .wrap > .snip-interview { max-width: 400px; }
.phero .wrap > .snip figcaption { text-align: center; }
/* a row of three snippets, each with a line under it */
.snips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: clamp(28px, 4vw, 48px) 0; align-items: start; }
.snips > li { display: flex; flex-direction: column; gap: 10px; }
.snips .snip { aspect-ratio: 4 / 3.4; }
.snips .snip img { height: 100%; object-fit: cover; object-position: top center; }
.snips .snip figcaption { display: none; }
.snips h3 { margin-top: 6px; }
.snips p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .snips { grid-template-columns: minmax(0, 1fr); } .snips .snip { aspect-ratio: auto; } .snips .snip img { height: auto; } }
.snips .snip-needs-you img, .snips .snip-disagree img, .snips .snip-workflow-rows img { object-position: left top; }
.blog-empty { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 96px); }

/* ---------- HTML snippets: pieces of the app, drawn small (ADR-0063) ---------- */
.ui { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--lift); padding: 16px; font: 400 .9rem/1.4 var(--text); color: var(--ink); text-align: left; display: flex; flex-direction: column; gap: 12px; }
.ui small { font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.ui .pill { margin-left: auto; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.ui .pill.ok { background: var(--ok-soft); color: var(--ok); }
.ui .row { display: flex; align-items: center; gap: 10px; }
.ui .t { font: 650 1.15rem/1.2 var(--display); letter-spacing: -.02em; }
.ui .b { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.ui .b.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.ui .b svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ui .btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* interview */
.ui-ask { background: radial-gradient(120% 80% at 50% 35%, #1d2442 0%, #10131f 70%); border-color: #232838; color: #fff; align-items: center; padding: 14px 16px 16px; }
.ask-top { align-self: stretch; display: flex; align-items: center; gap: 10px; }
.ask-top .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 600; background: #2a3047; color: #fff; }
.ask-top .who { display: flex; flex-direction: column; line-height: 1.2; }
.ask-top .who b { font-size: .82rem; font-weight: 600; }
.ask-top .who small { color: #8d93a8; font-weight: 500; }
.ui-ask .pill.live { background: rgb(157 182 255 / .14); color: #b9cbff; }
.ui-ask .pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.ui-ask .orb { width: min(200px, 62%); height: auto; aspect-ratio: 1; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%); mask-image: radial-gradient(circle, #000 55%, transparent 71%); }
.ui-ask .q { font: 600 1.2rem/1.25 var(--display); letter-spacing: -.02em; text-align: center; color: #fff; }
.ask-in { align-self: stretch; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid #3a4160; border-radius: 10px; font-size: .78rem; color: #8d93a8; }
.ask-in i { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
/* knowledge graph: one rule and its links */
.ui-graph { flex-direction: row; align-items: center; gap: 0; padding: 18px; background: var(--paper); }
.ui-graph .rule { flex: 1 1 52%; background: #fff; border: 1.5px solid var(--blue); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 18px -10px rgb(36 80 200 / .5); }
.ui-graph .rule small { color: var(--blue); text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; display: flex; align-items: center; gap: 6px; }
.ui-graph .rule small i { width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.ui-graph .rule p { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.ui-graph .links { flex: 1 1 48%; display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.ui-graph .links li { position: relative; display: flex; align-items: center; gap: 8px; padding-left: 18px; }
.ui-graph .links li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1.5px; background: var(--ink-3); }
.ui-graph .links em { font-style: normal; font-size: .66rem; color: var(--ink-3); white-space: nowrap; width: 66px; text-align: right; }
.ui-graph .links span { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: .8rem; }
.ui-graph .links b { font-weight: 600; }
/* outcome */
.ui-outcome .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-outcome .facts li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .76rem; color: var(--ink-3); display: flex; flex-direction: column; }
.ui-outcome .facts b { font: 650 1.3rem/1.1 var(--display); color: var(--ink); }
/* pick one of two */
.ui-pick { border-color: #f0c9c2; }
.ui-pick .warn { color: #b42318; }
.ui-pick .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-pick .opts > div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ui-pick .opts p { font-weight: 600; font-size: .86rem; }
/* lists */
.ui-list p { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: .86rem; font-weight: 500; }
.ui-list p span:first-child { display: flex; align-items: center; gap: 10px; }
.ui-list .st { font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.ui-list .st.ok { color: var(--ok); }
.ui-list .m { display: inline-block; width: 54px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--ok) var(--p), var(--line) var(--p)); }
.ui-list .m1 { --p: 20%; } .ui-list .m4 { --p: 75%; } .ui-list .m5 { --p: 100%; }
/* sizes and placement */
.snip-html { max-width: 440px; width: 100%; }
.snip-interview { max-width: 340px; }
.snips .snip-html { aspect-ratio: auto; max-width: none; }
.snips .snip-html .ui { height: 100%; }
.snips > li > .snip { min-height: 0; }
@media (min-width: 901px) { .snips { align-items: stretch; } .snips > li { justify-content: flex-start; } }
/* fixes: pills inside snippets, a graph that stacks */
.ui .pill { min-height: 0; border: 0; cursor: default; line-height: 1.4; font-family: var(--text); }
.ui-graph { flex-direction: column; align-items: stretch; gap: 0; }
.ui-graph .rule { flex: none; }
.ui-graph .links { flex: none; position: relative; margin: 0 0 0 22px; padding: 14px 0 0 0; gap: 8px; border-left: 1.5px solid var(--ink-3); }
.ui-graph .links li { padding-left: 18px; gap: 10px; }
.ui-graph .links li::before { width: 14px; left: 0; }
.ui-graph .links li, .ui-graph .links li:last-child { background: none; border: 0; box-shadow: none; padding-block: 0; }
.ui-graph .links em { width: auto; min-width: 74px; text-align: left; font-size: .7rem; }
.ui-graph .links b { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.ui-graph .rule p, .ui .t { color: var(--ink); }
