/* Agentic development longread: design concept in Apple's visual language.
   Glass lives only in the control layer (floating navigation, the hero object, transient controls).
   Reading happens on solid surfaces. */

@font-face { font-family: Inter; src: url('/matter/assets/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212; }
@font-face { font-family: Inter; src: url('/matter/assets/inter-cyrillic.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: 'JetBrains Mono'; src: url('/matter/assets/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'JetBrains Mono'; src: url('/matter/assets/jetbrains-mono-cyrillic.woff2') format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0400-045F; }

:root {
  --font: -apple-system, BlinkMacSystemFont, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #f5f5f7;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --blue: #0071e3;
  --link: #0066cc;
  --link-night: #2997ff;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -.011em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .65); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Sections ---------- */
.sec { position: relative; padding: clamp(96px, 12vw, 168px) 0 clamp(88px, 9vw, 128px); }
/* Text right after a chart or diagram. */
:is(.wrap, .block) > :is(.chart, .diagram) + .prose { margin-top: 48px; }
/* One rhythm after a section's lead, whatever block follows it. */
/* Chapter CSS never sets the top margin of the block after a lead; text that continues the lead takes .lead-cont. */
.wrap > .lead + * { margin-top: 56px; }
.wrap > .lead + :is(.block, .diagram) { margin-top: 72px; }
.wrap > .lead + :is(.checks, .prose, .lead-cont) { margin-top: 32px; }
.wrap > .lead + .block-lead { margin-top: 12px; }
@media (max-width: 680px) {
  .wrap > .lead + * { margin-top: 44px; }
  .wrap > .lead + :is(.block, .diagram) { margin-top: 56px; }
  .wrap > .lead + :is(.checks, .prose, .lead-cont) { margin-top: 28px; }
  .wrap > .lead + .block-lead { margin-top: 10px; }
}
/* A section on the same background as the one before continues the chapter: no second top gap. */
.sec.same { padding-top: 0; }
/* ch4 opens on its approved black stage; the white reading section right after it continues the chapter. */
#ch4-read.sec { padding-top: clamp(56px, 6vw, 88px); }
.h2-sub { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.032em; max-width: 20em; }
.sec[data-theme=dark] { background: #000; color: var(--night-ink); }
.sec[data-theme=light] { background: var(--paper); }
.sec[data-theme=white] { background: #fff; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.col { width: min(700px, 100% - 2 * var(--gutter)); margin-inline: auto; }

h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -.036em; font-weight: 650; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(19px, 1.9vw, 27px); line-height: 1.36; letter-spacing: -.019em; font-weight: 500; color: var(--ink-2); margin: 22px 0 0; max-width: 33em; text-wrap: pretty; }
body [data-theme=dark] .lead { color: var(--night-ink-2); }
body [data-theme=dark] a { color: var(--link-night); }
sup.fn { font-size: .65em; line-height: 0; vertical-align: super; margin-left: .08em; font-weight: 500; }
.nw { white-space: nowrap; }
/* Nothing in the page may make it pan sideways on a phone (a tap area at a column edge, for one). */
main { overflow-x: clip; }
/* A finger-sized target without moving the text: padding cancelled by an equal negative margin. */
sup.fn a { color: inherit; opacity: 1; padding: 12px 10px; margin: -12px -10px; border-radius: 4px; position: relative; }
/* Hover only where a pointer hovers (a tap would leave it stuck on the digit under the finger), and on the whole group. */
@media (hover: hover) { sup.fn:hover a { background: rgba(0, 113, 227, .1); background-clip: content-box; } }
sup.fn a:hover { text-decoration: none; }
sup.fn.is-open a { background: rgba(0, 113, 227, .12); background-clip: content-box; }
sup.fn a:focus-visible { outline: none; background: rgba(0, 113, 227, .14); background-clip: content-box; text-decoration: underline 2px #0071e3; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 270vh; background: #000; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-pin > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(#000 calc(100% - 96px), transparent); mask-image: linear-gradient(#000 calc(100% - 96px), transparent); }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .18) 34%, rgba(0, 0, 0, 0) 56%), linear-gradient(to right, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 44%); }
.hero-copy { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 9vh, 100px); color: #fff; max-width: 860px; }
.hero h1 { font-size: clamp(50px, 8.4vw, 138px); line-height: .94; letter-spacing: -.048em; font-weight: 650; margin: 0; }
.hero .lede { margin: 26px 0 0; font-size: clamp(19px, 1.75vw, 26px); line-height: 1.36; letter-spacing: -.018em; font-weight: 500; color: rgba(255, 255, 255, .84); max-width: 30em; text-wrap: pretty; }
.hero .meta { margin: 18px 0 0; font-size: 15px; color: rgba(255, 255, 255, .7); font-weight: 500; }
.drop-label { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 2px rgba(0, 20, 60, .55), 0 0 16px rgba(0, 25, 80, .6); will-change: transform, opacity; }
.core-label { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; will-change: transform; }
.core-label span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; font-weight: 650; letter-spacing: -.02em; color: #0a2a66; transition: opacity .45s var(--ease); }
.core-label .a { font-size: clamp(16px, 1.35vw, 21px); }
.core-label .b { font-size: clamp(20px, 2vw, 30px); letter-spacing: -.03em; }
.hero.no-gl .hero-pin { background: radial-gradient(60% 70% at 72% 42%, #2f6dff 0%, #0b2a7a 38%, #01030b 75%); }
.hero.no-gl .drop-label { display: none; }
.hero.no-gl .core-label::before { content: ""; position: absolute; left: 0; top: 0; width: 150px; height: 150px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 40% 35%, #ffffff, #b9d8ff 38%, #4f8bff 72%, #2f6dff 100%); box-shadow: 0 0 90px 24px rgba(80, 140, 255, .45); }
/* A lost WebGL context leaves a dead canvas: the fallback shows through it. */
.hero.no-gl .hero-pin > canvas, .stage.no-gl > canvas { visibility: hidden; }
/* A short phone screen (an iPhone SE with Safari's toolbars shows about 550 px): smaller hero type leaves room for the drops. */
@media (max-width: 680px) and (max-height: 620px) {
  .hero h1 { font-size: 42px; }
  .hero .lede { margin-top: 18px; font-size: 17px; }
  .hero .meta { margin-top: 12px; }
}

/* ---------- Ten rules ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.tile { background: #fff; border-radius: 30px; padding: 34px 34px 30px; display: flex; flex-direction: column; min-height: 250px; }
.tile.wide { grid-column: span 2; }
.tile .num { font-size: clamp(56px, 6vw, 84px); font-weight: 650; letter-spacing: -.05em; line-height: 1; margin-bottom: 18px; background: linear-gradient(120deg, #0071e3, #5aa2ff 60%, #8a7dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.12; letter-spacing: -.026em; font-weight: 650; margin: 0; text-wrap: balance; }
.tile p { font-size: 17px; line-height: 1.47; color: var(--ink-2); margin: 12px 0 0; text-wrap: pretty; }
.tile.wide p { font-size: 19px; max-width: 34em; }
.tile .more { margin-top: auto; padding-top: 22px; font-size: 17px; font-weight: 500; color: var(--link); }
.tile .more::after { content: "\00a0›"; }

/* ---------- Chapter opener ---------- */
.statement { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .14em; margin: 56px 0 0; font-weight: 650; letter-spacing: -.055em; line-height: .86; }
.statement .big { font-size: clamp(104px, 18vw, 260px); background: linear-gradient(180deg, #ffffff 30%, #7fb0ff 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement .unit { font-size: clamp(34px, 4.8vw, 68px); color: #7fb0ff; letter-spacing: -.035em; }
.statement-note { font-size: clamp(19px, 1.9vw, 27px); line-height: 1.36; letter-spacing: -.019em; color: var(--night-ink-2); font-weight: 500; max-width: 31em; margin: 26px 0 0; text-wrap: pretty; }
.statement-note strong { color: #fff; font-weight: 600; }
.layers { margin: clamp(72px, 9vw, 120px) 0 0; }
.layers svg { width: 100%; height: auto; display: block; overflow: visible; }
.layers text { font-family: var(--font); }
.layers .layers-narrow { display: none; }
.layers figcaption { margin-top: 22px; font-size: 15px; color: var(--night-ink-2); max-width: 40em; }
.quote { margin: clamp(80px, 10vw, 140px) 0 0; max-width: 940px; }
.quote p { font-size: clamp(30px, 3.7vw, 50px); line-height: 1.1; letter-spacing: -.032em; font-weight: 600; margin: 0; text-wrap: balance; }
.quote.long p { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.14; }
/* One size for a chapter's closing verdict line. */
.verdict { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.22; letter-spacing: -.024em; font-weight: 600; max-width: 24em; margin: 40px 0 0; text-wrap: balance; color: var(--strong); }
html.sf .verdict { letter-spacing: -.014em; }
.quote footer { margin-top: 22px; font-size: 17px; color: var(--muted, var(--night-ink-2)); }

/* ---------- Reading ---------- */
.prose p { font-size: clamp(18px, 1.42vw, 21px); line-height: 1.6; letter-spacing: -.012em; margin: 0 0 1.05em; text-wrap: pretty; }
.prose h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.028em; font-weight: 650; margin: 2.2em 0 .7em; text-wrap: balance; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 44px; }
.compare > div { background: var(--paper); border-radius: 26px; padding: 26px 28px 22px; }
.compare h4 { font-size: 21px; font-weight: 650; letter-spacing: -.022em; margin: 0; }
.compare p.sub { font-size: 15px; line-height: 1.3; color: var(--ink-2); margin: 3px 0 14px; }
.compare ul { margin: 0; padding: 0; list-style: none; }
.compare li { padding: 5px 0; font-size: 17px; line-height: 1.4; }
.code-card { background: #1d1d1f; border-radius: 26px; overflow: hidden; margin: 40px 0 14px; }
.code { color: #f5f5f7; background: none; padding: 28px 30px; margin: 0; font: 400 15px/1.62 var(--mono); overflow-x: auto; white-space: pre; tab-size: 2; }
.code .c { color: #98989d; }
.code .h { color: #ffd479; }
.code .k { color: #9ecbff; }
.code .s { color: #a5e3a1; }
.prose p.code-caption, .code-caption { font-size: 15px; line-height: 1.45; color: var(--muted, var(--ink-2)); margin: 0 0 1.4em; }

/* ---------- Shared blocks for chapters (documented in BLOCKS.md) ---------- */
/* Each section theme sets the surface for cards inside it: white cards on grey, grey cards on white, graphite on black. */
:root { --c-blue: #0071e3; --c-indigo: #5e5ce6; --c-gray: #8e8e93; --c-green: #248a3d; --c-orange: #c93400; }
.sec[data-theme=light] { --card: #fff; --muted: var(--ink-2); --zebra: rgba(0, 0, 0, .03); --axis: #6e6e73; --strong: var(--ink); }
.sec[data-theme=white] { --card: var(--paper); --muted: var(--ink-2); --zebra: rgba(0, 0, 0, .035); --axis: #6e6e73; --strong: var(--ink); }
.sec[data-theme=dark] { --card: #161617; --muted: var(--night-ink-2); --zebra: rgba(255, 255, 255, .05); --axis: #8e8e93; --strong: #fff; --c-blue: #2997ff; --c-indigo: #7d7aff; --c-green: #30d158; --c-orange: #ff9f0a; }

.block { margin-top: clamp(72px, 9vw, 128px); }
.h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -.03em; font-weight: 650; margin: 0; max-width: 22em; text-wrap: balance; }
.block-lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; letter-spacing: -.014em; color: var(--muted); margin: 14px 0 0; max-width: 38em; text-wrap: pretty; }
a.more { font-weight: 500; }
a.more::after { content: "\00a0›"; }
.card { background: var(--card); border-radius: 26px; padding: clamp(24px, 2.6vw, 34px); }
.card h3 { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.18; letter-spacing: -.022em; font-weight: 650; margin: 0; text-wrap: balance; }
.card p { font-size: 17px; line-height: 1.47; color: var(--muted); margin: 10px 0 0; text-wrap: pretty; }
.card { display: flex; flex-direction: column; }
.card > .more { margin-top: auto; padding-top: 18px; }
.grid-2, .grid-3 { display: grid; gap: 20px; margin-top: 40px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Big numbers in a row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 48px 40px; margin-top: 64px; }
.stat b { display: block; font-size: clamp(46px, 5.4vw, 76px); line-height: .98; letter-spacing: -.048em; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--strong); }
.stat > span { display: block; margin-top: 14px; font-size: 17px; line-height: 1.42; color: var(--muted); max-width: 21em; text-wrap: pretty; }
.sec[data-theme=dark] .stat b { color: #f5f5f7; }

/* Tables: no rules between rows; a quiet zebra carries the eye */
.table-wrap { margin-top: 40px; background: var(--card); border-radius: 26px; padding: 8px; overflow-x: auto; }
.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 17px; line-height: 1.42; }
.dt th { text-align: left; font-size: 15px; font-weight: 600; color: var(--muted); padding: 14px 18px 10px; vertical-align: bottom; }
.dt td { padding: 14px 18px; vertical-align: top; }
.dt tbody tr:nth-child(odd) td { background: var(--zebra); }
.dt tbody td:first-child { border-radius: 14px 0 0 14px; font-weight: 600; color: var(--strong); }
.dt tbody td:last-child { border-radius: 0 14px 14px 0; }
.dt .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt th.n { white-space: normal; }
:where(.sec) :not(pre) > code { font-family: var(--mono); font-size: .88em; background: var(--zebra); padding: .06em .2em; border-radius: 6px; }
.stat b small { font-size: .46em; font-weight: 600; letter-spacing: -.01em; margin-left: .1em; }
.dt td .sub { display: block; font-size: 15px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.table-note { margin: 14px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 46em; }

/* Checklist */
.checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }

/* One style for every step-by-step flow: blue dots on a quiet track, left-aligned labels. */
.steps-row { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 20px; }
.steps-row > li { position: relative; padding-top: 30px; }
.steps-row > li::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--c-blue); }
.steps-row > li::after { content: ""; position: absolute; left: 18px; right: -14px; top: 5px; height: 2px; border-radius: 1px; background: #d2d2d7; }
.sec[data-theme=dark] .steps-row > li::after { background: #424245; }
.steps-row > li:last-child::after { display: none; }
.steps-row > li.is-alert::before { background: #e30000; }
.steps-row b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.016em; color: var(--strong); text-wrap: balance; }
.steps-row span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
@media (max-width: 860px) {
  .steps-row { grid-auto-flow: row; row-gap: 22px; }
  .steps-row > li { padding: 0 0 0 30px; }
  .steps-row > li::before { top: .35em; }
  .steps-row > li::after { left: 5px; right: auto; top: calc(.35em + 18px); bottom: -16px; width: 2px; height: auto; }
}
.checks li { position: relative; padding-left: 42px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.45; text-wrap: pretty; }
.checks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%; background: var(--c-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.5 12.5 4 4 9-9.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.checks li b { font-weight: 600; color: var(--strong); }

/* Voices: a quote, who said it, when */
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; margin-top: 56px; }
.voice { margin: 0; background: var(--card); border-radius: 26px; padding: 30px 30px 26px; display: flex; flex-direction: column; }
.voice blockquote { margin: 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.36; letter-spacing: -.018em; font-weight: 500; text-wrap: pretty; }
.voice figcaption { margin-top: auto; padding-top: 22px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.voice figcaption b { display: block; font-weight: 600; color: var(--strong); }

/* Charts and diagrams: SVG drawn to scale, text set in the page font */
.chart { margin: 56px 0 0; background: var(--card); border-radius: 30px; padding: clamp(24px, 3vw, 40px); }
.chart h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.024em; font-weight: 650; margin: 0; max-width: 26em; text-wrap: balance; }
.chart .chart-sub { margin: 8px 0 0; font-size: 17px; line-height: 1.45; color: var(--muted); max-width: 38em; }
.chart svg, .diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart svg { margin-top: 28px; }
.chart svg text, .diagram svg text { font-family: var(--font); }
.chart .ax { fill: var(--axis); font-size: 13px; }
.chart figcaption, .diagram figcaption { margin-top: 18px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 44em; }
.diagram { margin: clamp(56px, 7vw, 96px) 0 0; }
.chart .narrow, .diagram .narrow { display: none; }

/* Aside: a side note that is not part of the argument */
.aside { margin-top: 56px; background: var(--card); border-radius: 26px; padding: clamp(24px, 3vw, 38px); max-width: 860px; }
.aside h3 { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -.022em; font-weight: 650; margin: 0; }
.aside p { font-size: 17px; line-height: 1.52; margin: 10px 0 0; text-wrap: pretty; }
.aside p + p { margin-top: 10px; }

/* Wide SVGs shrink their labels below 12 px under ~860 px, so the narrow drawing takes over there, capped so it does not balloon on tablets. */
@media (max-width: 860px) {
  .chart .wide, .diagram .wide { display: none; }
  .chart .narrow, .diagram .narrow { display: block; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: 36px; margin-top: 48px; }
  .table-wrap { border-radius: 22px; padding: 6px; }
  .dt { font-size: 16px; }
  .dt th, .dt td { padding: 12px 14px; }
  .dt-stack thead { display: none; }
  .dt-stack, .dt-stack tbody, .dt-stack tr, .dt-stack td { display: block; width: 100%; }
  .dt-stack tr { padding: 12px 14px; border-radius: 16px; }
  .dt-stack tbody tr:nth-child(odd) { background: var(--zebra); }
  .dt-stack tbody tr td, .dt-stack tbody tr:nth-child(odd) td { background: none; padding: 3px 0; border-radius: 0; }
  .dt-stack td.n { text-align: left; }
  .dt-stack td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
  .chart { border-radius: 26px; }
  .voice { padding: 26px 24px 22px; }
}

/* ---------- Stages with glass controls ---------- */
.stage { position: relative; margin-top: 56px; border-radius: 40px; overflow: hidden; height: clamp(460px, 46vw, 580px); background: #160b33; color: #fff; isolation: isolate; }
.stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 85% at 0% 0%, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0) 62%); }
.readout { position: absolute; left: clamp(24px, 4.2vw, 52px); top: clamp(28px, 4.4vw, 52px); right: 24px; max-width: 600px; }
.readout .val { font-size: clamp(60px, 7.4vw, 104px); font-weight: 650; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.readout .note { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.42; color: rgba(255, 255, 255, .9); margin-top: 16px; max-width: 25em; font-weight: 500; text-wrap: pretty; }
.stops { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.stop { position: absolute; top: 0; transform: translateX(-50%); font: 600 15px/1 var(--font); color: rgba(255, 255, 255, .82); text-shadow: 0 1px 10px rgba(10, 0, 40, .55); background: none; border: 0; cursor: pointer; padding: 10px 8px; border-radius: 999px; transition: color .3s; }
.stop[aria-current=true] { color: #fff; }
.hit { position: absolute; cursor: grab; touch-action: none; }
.hit:active { cursor: grabbing; }
.stage input[type=range] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.stage .focus-ring { position: absolute; border-radius: 999px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 6px rgba(0, 113, 227, .7); opacity: 0; transition: opacity .2s; pointer-events: none; }
.stage.kb-focus .focus-ring { opacity: 1; }
.stage-source { margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.stage.no-gl { background: linear-gradient(135deg, #2a0f5c, #5b2bd6 55%, #c084fc); }
.stage.no-gl.teal { background: linear-gradient(135deg, #063b36, #0f8f7f 55%, #7ae7cf); }
.fb-track, .fb-fill { position: absolute; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .26); pointer-events: none; }
.fb-fill { background: #fff; }
.fb-knob { position: absolute; width: 58px; height: 34px; border-radius: 17px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); pointer-events: none; transition: transform .2s var(--ease); }

.seg { position: absolute; display: grid; grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; z-index: 1; display: grid; place-items: center; font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: #fff; cursor: pointer; border-radius: 999px; white-space: nowrap; }
.seg label span { transition: color .25s var(--ease), transform .35s var(--ease); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.stage:not(.is-moving) .seg label.is-on span { color: #0b2b27; }
.stage.is-moving .seg label.is-on span { transform: scale(1.08); }
.seg label:has(input:focus-visible) { outline: 3px solid rgba(255, 255, 255, .9); outline-offset: -4px; }
.stage.no-gl .seg { background: rgba(0, 0, 0, .3); border-radius: 999px; }
.stage.no-gl .seg label { margin: 5px; }
.stage.no-gl .seg label.is-on { background: #fff; }
.modes-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0, 12, 10, .55), rgba(0, 12, 10, .16) 38%, rgba(0, 0, 0, 0) 58%); }
.mode-card { position: absolute; left: clamp(24px, 4.2vw, 52px); right: clamp(24px, 4.2vw, 52px); bottom: clamp(28px, 4.4vw, 52px); display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: end; }
.mode-card .val { font-size: clamp(64px, 8vw, 112px); font-weight: 650; letter-spacing: -.055em; line-height: .9; }
.mode-card .note { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.42; font-weight: 500; color: rgba(255, 255, 255, .92); max-width: 30em; padding-bottom: 6px; text-wrap: pretty; }
.mode-card .fade { transition: opacity .3s var(--ease); }

/* ---------- Stepper (light, ref 3) ---------- */
.split { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: start; }
.split-text h2:not(.h2-sub) { font-size: clamp(40px, 5.6vw, 76px); }
.split-text { position: sticky; top: 120px; }
.stepper { margin: 0; padding: 40px; list-style: none; background: #fff; border-radius: 78px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .16), 0 1px 0 rgba(0, 0, 0, .02); }
.step { position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: 26px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step-dot {
  position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #8e8e93; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .06), 0 8px 18px rgba(0, 0, 0, .07);
  transition: color .4s var(--ease), transform .35s var(--ease);
}
.step-dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .45s var(--ease);
  background: linear-gradient(#2d8cff, #0a6cff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -2px 4px rgba(0, 40, 140, .35), 0 10px 24px rgba(10, 108, 255, .32);
}
.step-dot svg { position: relative; z-index: 1; width: 30px; height: 30px; }
.step.is-active .step-dot { color: #fff; }
.step.is-active .step-dot::before { opacity: 1; }
.step-dot:active { transform: scale(.94); }
.step-line { position: absolute; left: 36px; top: 76px; bottom: 0; width: 4px; border-radius: 2px; background: #ececf0; }
.step-line i { position: absolute; left: 0; top: 0; width: 100%; height: var(--fill, 0%); border-radius: 2px; background: linear-gradient(#0a6cff, #4da3ff); transition: height .8s var(--ease); }
.step-line i::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 12px; transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: #4da3ff; opacity: var(--drip, 0); transition: opacity .3s; }
.step-title { font-size: clamp(26px, 3vw, 38px); font-weight: 650; letter-spacing: -.032em; line-height: 1.1; color: var(--ink-3); margin: 0; padding-top: 18px; transition: color .4s var(--ease); }
.step.is-active .step-title { color: var(--ink); }
.step-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .4s var(--ease); }
.step-more > p { overflow: hidden; margin: 0; }
.step.is-active .step-more, .step.is-open .step-more, .stepper.expand-all .step-more { grid-template-rows: 1fr; opacity: 1; }
.step.is-done .step-dot { color: #0071e3; }
.step.is-done .step-title { color: var(--ink); }
.step-text { font-size: 17px; line-height: 1.47; color: var(--ink-2); padding-top: 10px; max-width: 30em; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; column-gap: 16px; row-gap: 16px; margin-top: 60px; }
.plan { grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: 0; background: var(--paper); border-radius: 30px; padding: 30px 28px; }
.plan h3 { font-size: 24px; font-weight: 650; letter-spacing: -.024em; margin: 0; }
.plan .price { font-size: 44px; font-weight: 650; letter-spacing: -.045em; line-height: 1; margin: 18px 0 6px; }
.plan .per { font-size: 15px; color: var(--ink-2); }
.plan dl { display: contents; }
.plan dl > div { margin-top: 20px; }
.plan dt { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.plan dd { margin: 3px 0 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.callout { margin-top: 20px; background: var(--card, var(--paper)); border-radius: 30px; padding: 30px 34px; display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; }
.callout p { margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.38; font-weight: 500; letter-spacing: -.018em; }
.callout .api { font-size: 15px; color: var(--ink-2); text-align: right; line-height: 1.5; max-width: 15em; }
.callout .api b { display: block; font-size: 30px; color: var(--ink); letter-spacing: -.03em; }
.stamp { margin-top: 18px; font-size: 15px; color: var(--ink-2); }

/* ---------- Footnotes ---------- */
.footnotes { background: var(--paper); display: flow-root; padding: 88px 0 180px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.footnotes .wrap > p:first-child { margin-top: 0; }
.footnotes ol { padding-left: 20px; margin: 0; }
.footnotes .fn-head { font-size: 28px; line-height: 1.1; letter-spacing: -.024em; font-weight: 650; color: var(--ink); margin: 0 0 8px; }
@media (min-width: 1000px) { .footnotes ol { columns: 2; column-gap: 48px; } .footnotes li { break-inside: avoid; } }
.footnotes li { margin: 7px 0; }
.footnotes ol > li:first-child { margin-top: 0; } /* both columns start level */
.footnotes li:target { color: var(--ink); }
.footnotes a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(110, 110, 115, .4); text-underline-offset: 2px; }
.end { padding: clamp(140px, 14vw, 200px) 0; }
.end-line { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -.036em; font-weight: 650; margin: 0; max-width: 14em; text-wrap: balance; }
@media (max-width: 680px) { .end-line { font-size: min(40px, calc((100vw - 2 * var(--gutter)) / 11.2)); } }
.end-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.pill { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 24px; border: 0; font: 600 17px/1 var(--font); letter-spacing: -.016em; cursor: pointer; text-decoration: none !important; }
.pill.primary { background: var(--blue); color: #fff; }
.pill.primary:hover { background: #0077ed; }
.pill.quiet { background: rgba(0, 0, 0, .06); color: var(--ink); }
.pill.quiet:hover { background: rgba(0, 0, 0, .09); }
.sec[data-theme=dark] .pill.quiet { background: rgba(255, 255, 255, .12); color: #f5f5f7; }
.sec[data-theme=dark] .pill.quiet:hover { background: rgba(255, 255, 255, .18); }
html.sf .end-line { letter-spacing: -.016em; }

/* ---------- Floating glass (CSS) ---------- */
/* The band under the header: page text dissolves into the surface colour before it reaches the controls. */
.edge { position: fixed; left: 0; right: 0; z-index: 55; pointer-events: none; opacity: 0; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: opacity .3s; --edge-bg: rgba(0, 0, 0, .35); }
.edge-top { top: 0; height: 76px; background: linear-gradient(var(--edge-bg), transparent); -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.edge[data-on=light] { --edge-bg: rgba(245, 245, 247, .72); }
.edge[data-on=white] { --edge-bg: rgba(255, 255, 255, .74); }
.edge[data-on=dark] { --edge-bg: rgba(0, 0, 0, .55); }
body.is-scrolled .edge-top { opacity: 1; }
/* Across two surfaces the band would smear one over the other, so it steps aside. */
body .edge-top.is-split { opacity: 0; }
/* Wide screens: the back link sits in the margin, so the band only follows the title button. */
@media (min-width: 1360px) {
  .edge-top { left: 50%; right: auto; width: calc(var(--tw, 150px) + 240px); transform: translateX(-50%); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(#000 40%, transparent), linear-gradient(90deg, transparent, #000 120px, #000 calc(100% - 120px), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(#000 40%, transparent), linear-gradient(90deg, transparent, #000 120px, #000 calc(100% - 120px), transparent); mask-composite: intersect; }
}

/* Glass that straddles two surfaces turns nearly opaque until it settles over one. */
.lg.is-mixed:not([data-on=light]) { background: rgba(28, 28, 30, .78); }
.lg.is-mixed[data-on=light] { --a: .9; }
/* Large glass in dark mode needs a dark base: white text on a white tint does not read. */
.toc-pop:not([data-on=light]), .fn-pop:not([data-on=light]) { background: rgba(28, 28, 30, .8); }

.lg {
  position: fixed; z-index: 60; isolation: isolate; color: #fff; --a: .22;
  background: rgba(255, 255, 255, var(--a));
  -webkit-backdrop-filter: blur(16px) saturate(170%) brightness(1.04);
  backdrop-filter: blur(16px) saturate(170%) brightness(1.04);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .32), inset 0 1px 1.5px rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(255, 255, 255, .16), 0 14px 34px rgba(0, 0, 0, .26), 0 2px 6px rgba(0, 0, 0, .14);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.lg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; background: radial-gradient(140% 120% at 18% -30%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 48%), radial-gradient(120% 140% at 100% 140%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 52%); }
.lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(155deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .14) 30%, rgba(255, 255, 255, .03) 58%, rgba(255, 255, 255, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
.lg[data-on=media] { --a: .14; -webkit-backdrop-filter: blur(10px) saturate(180%) brightness(1.04); backdrop-filter: blur(10px) saturate(180%) brightness(1.04); }
.lg[data-on=light] { --a: .74; color: #1d1d1f; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .8), inset 0 1px 1.5px #fff, 0 12px 30px rgba(0, 0, 0, .12), 0 1px 4px rgba(0, 0, 0, .08); }
.lg[data-on=light]::after { background: linear-gradient(155deg, #fff, rgba(255, 255, 255, .3) 32%, rgba(0, 0, 0, .05) 60%, rgba(255, 255, 255, .85)); }
.lg.lg-refract:not(.lg-moving) { -webkit-backdrop-filter: var(--lg-filter) saturate(170%) brightness(1.04); backdrop-filter: var(--lg-filter) saturate(170%) brightness(1.04); }
.lg button { font: inherit; color: inherit; }

/* The header: a back link and the title button. The title is centred while there is room; on a narrow
   screen it moves right of the back link instead of running into it, and a long title is cut with an ellipsis. */
.bar { position: fixed; z-index: 60; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); display: grid; grid-template-columns: 1fr minmax(0, max-content) 1fr; column-gap: 8px; align-items: center; pointer-events: none; }
.bar > .lg { position: relative; z-index: auto; pointer-events: auto; }
.lg-back { justify-self: start; height: 44px; padding: 0 16px 0 10px; border-radius: 22px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none !important; }
.lg-back svg { width: 17px; height: 17px; }
.lg-back .mark { font: 600 17px/1 var(--font); letter-spacing: -.022em; }
.lg-title { min-width: 0; max-width: 100%; height: 44px; padding: 0 13px 0 18px; border: 0; border-radius: 22px; display: inline-flex; align-items: center; gap: 6px; font: 600 17px/1.3 var(--font); letter-spacing: -.022em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lg-title .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-title svg { flex: none; width: 14px; height: 14px; opacity: .62; transition: transform .3s var(--ease); }
.lg-title[aria-expanded=true] svg { transform: rotate(180deg); }
.lg-title[hidden] { display: none; }

/* The contents: a plain list of chapters that drops from the title button. */
.toc-pop { z-index: 61; display: flex; flex-direction: column; padding: 6px; border-radius: 26px; --a: .8; overflow: hidden; opacity: 0; transform: scale(.94); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); transition: opacity .2s var(--ease), transform .28s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.toc-pop[hidden] { display: none; }
.toc-pop.is-on { opacity: 1; transform: none; }
.toc-pop[data-on=light] { --a: .9; }
.toc { list-style: none; margin: 0; padding: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: 20px; }
.toc button { width: 100%; min-height: 44px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; border: 0; background: none; padding: 11px 14px; border-radius: 20px; cursor: pointer; font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -.012em; }
.toc button:hover { background: rgba(127, 127, 127, .12); }
.toc button .mn { flex: none; font-size: 13px; opacity: .6; font-variant-numeric: tabular-nums; }
.toc button[aria-current=true] { font-weight: 650; background: rgba(255, 255, 255, .12); }
.toc-pop[data-on=light] .toc button[aria-current=true] { background: rgba(0, 0, 0, .06); }
.toc button:focus-visible { outline: 3px solid rgba(0, 113, 227, .7); outline-offset: -3px; }
/* With a mouse the rows can be tighter, so the whole list fits a laptop screen without scrolling. */
@media (hover: hover) and (pointer: fine) { .toc button { min-height: 40px; padding: 9px 14px; } }

.fn-pop { width: 320px; max-width: calc(100vw - 24px); padding: 16px 18px 14px; border-radius: 22px; --a: .8; font-size: 15px; line-height: 1.42; opacity: 0; transform: scale(.92); transition: opacity .22s var(--ease), transform .3s var(--ease); }
.fn-pop.is-on { opacity: 1; transform: none; }
.fn-pop[data-on=dark], .fn-pop[data-on=media] { --a: .55; -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
.fn-pop p a { color: inherit; text-decoration: underline; text-decoration-color: rgba(127, 127, 127, .5); text-underline-offset: 2px; }
.fn-pop p { margin: 0; }
.fn-pop .fn-item { display: block; }
.fn-pop .fn-item + .fn-item { margin-top: 10px; }
.fn-pop .fn-all { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 500; }
.fn-pop[data-on=dark] .fn-all, .fn-pop[data-on=media] .fn-all { color: var(--link-night); }

/* ---------- Apple devices: SF Pro needs less negative tracking than Inter ---------- */
html.sf .hero h1 { letter-spacing: -.022em; }
html.sf h2 { letter-spacing: -.016em; }
html.sf .h2-sub { letter-spacing: -.02em; }
html.sf .statement { letter-spacing: -.03em; }
html.sf .readout .val, html.sf .mode-card .val, html.sf .tile .num, html.sf .plan .price { letter-spacing: -.03em; }
html.sf .lead, html.sf .hero .lede, html.sf .statement-note { letter-spacing: -.01em; }
html.sf .quote p, html.sf .step-title, html.sf .prose h3 { letter-spacing: -.016em; }
html.sf .tile h3 { letter-spacing: -.012em; }

/* ---------- Accessibility settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .lg, .lg.lg-refract:not(.lg-moving) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #1d1d1f; }
  .lg[data-on=light] { background: #fff; }
  .edge { display: none; }
}
@media (prefers-contrast: more) {
  .lg { box-shadow: inset 0 0 0 1.5px currentColor, 0 10px 24px rgba(0, 0, 0, .3); --a: .7; }
  .lg:not([data-on=light]) { background: rgba(0, 0, 0, .82); }
  .hero .lede, .statement-note, .lead { color: inherit; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .split-text { position: static; }
  .split .stepper { margin-top: 48px; }
}
@media (max-width: 680px) {
  .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile { min-height: 0; }
  .tile.wide p { font-size: 17px; }
  .plans { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 82vw; scroll-snap-align: start; display: flex; flex-direction: column; }
  .compare { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .callout .api { text-align: left; }
  .code { font-size: 13px; padding: 22px 22px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .code .c { white-space: pre-wrap; display: inline-block; vertical-align: top; max-width: calc(100% - 1ch); padding-left: 2ch; text-indent: -2ch; }
  .code .c.c3 { padding-left: 3ch; text-indent: -3ch; }
  .hero-copy { bottom: 30px; }
  .layers .layers-wide { display: none; }
  .layers .layers-narrow { display: block; max-width: 420px; margin: 0 auto; }
  .stage { border-radius: 32px; }
  #effort-stage { height: 470px; }
  #modes-stage { height: 540px; }
  .mode-card { grid-template-columns: 1fr; }
  .seg label { font-size: 15px; }
  .stepper { padding: 26px; border-radius: 56px; }
  .step { grid-template-columns: 60px 1fr; column-gap: 18px; }
  .step-dot { width: 60px; height: 60px; }
  .step-line { left: 28px; top: 60px; }
  .step-title { padding-top: 12px; }
  .h2-sub { font-size: 28px; line-height: 1.1; letter-spacing: -.026em; }
  main :is(.lead, .block-lead, .chart-sub, figcaption, .stat > span, .tile p, .card p, .step p, td, dd, #ch14 li, .statement-note) { text-wrap: balance; }
  .h3, .prose h3, .step-title { font-size: 24px; }
  .footnotes { font-size: 14px; }
  .table-wrap:has(> .dt-stack) { background: none; padding: 0; border-radius: 0; overflow: visible; }
  .table-wrap:not(:has(.dt-stack)) { background: none; padding: 0; }
  .table-wrap:not(:has(.dt-stack)) .dt tbody tr:nth-child(odd) td { background: var(--card); }
  .dt-stack tbody { display: grid; gap: 12px; }
  .dt-stack tbody tr, .dt-stack tbody tr:nth-child(odd) { background: var(--card); border-radius: 22px; padding: 18px 20px 16px; }
  .dt-stack td[data-label]::before { font-size: 15px; margin-top: 10px; }
}
/* Desktop: short text never ends on one word. Long prose, checklists, the bibliography and blocks that open
   with a bold lead-in keep their own wrapping, so a lead-in or a product name is never torn to balance lines.
   Chapter CSS never sets text-wrap: pretty outside a phone query (build.py checks). */
@media (min-width: 681px) {
  main :is(p, li, td, dd, figcaption, blockquote, .stat > span):not(.prose p, .prose li, .sr-only, .checks li, .footnotes li, .lead-cont, :has(> b:first-child, > strong:first-child)) { text-wrap: balance; }
}
.lead-cont { text-wrap: pretty; }

@media (max-width: 480px) {
  .stats { gap: 32px; margin-top: 40px; }
  .stat b { font-size: 42px; }
  .stat > span { margin-top: 10px; }
}
