/* geist-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* geist-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geist-vietnamese-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* geist-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geist-latin-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* geist-mono-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-mono-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* geist-mono-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-mono-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geist-mono-symbols2-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-mono-symbols2-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F;
}

/* geist-mono-vietnamese-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-mono-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* geist-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geist-mono-latin-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/*
 * Demander site styles. Near-white and near-black with one electric-blue signal. Geist for everything people read,
 * Geist Mono for labels and data. Hairline rules and quiet panels; no gradients, no decorative shadows.
 */

:root {
  --paper: #fcfcfc;
  --paper-2: #f4f4f5;
  --panel: #f8f8f9;
  --ink: #0b0c0e;
  --ink-2: #4c4f57;
  --ink-3: #868a93;
  --rule: rgba(11, 12, 14, 0.09);
  --rule-strong: rgba(11, 12, 14, 0.24);
  --signal: #2f54ff;
  --signal-text: #2f54ff;
  --on-signal: #ffffff;
  --dot: rgba(11, 12, 14, 0.1);
  --hatch: rgba(11, 12, 14, 0.06);
  --field: #ffffff;
  --shadow: 0 16px 40px -18px rgba(11, 12, 14, 0.22);

  --display: 'Geist Variable', 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Geist Variable', 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 128px);
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 64px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0a0b0d;
    --paper-2: #131418;
    --panel: #0f1013;
    --ink: #edeef0;
    --ink-2: #a4a7ae;
    --ink-3: #6f737b;
    --rule: rgba(237, 238, 240, 0.1);
    --rule-strong: rgba(237, 238, 240, 0.26);
    --signal: #6b86ff;
    --signal-text: #8ea3ff;
    --on-signal: #0a0b0d;
    --dot: rgba(237, 238, 240, 0.09);
    --hatch: rgba(237, 238, 240, 0.06);
    --field: #111215;
    --shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --paper: #0a0b0d;
  --paper-2: #131418;
  --panel: #0f1013;
  --ink: #edeef0;
  --ink-2: #a4a7ae;
  --ink-3: #6f737b;
  --rule: rgba(237, 238, 240, 0.1);
  --rule-strong: rgba(237, 238, 240, 0.26);
  --signal: #6b86ff;
  --signal-text: #8ea3ff;
  --on-signal: #0a0b0d;
  --dot: rgba(237, 238, 240, 0.09);
  --hatch: rgba(237, 238, 240, 0.06);
  --field: #111215;
  --shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'ss02';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--rule-strong);
  transition:
    text-decoration-color 0.15s,
    color 0.15s;
}

a:hover {
  text-decoration-color: var(--signal);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

::selection {
  background: var(--signal);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

h1 strong,
h2 strong {
  font-weight: inherit;
  color: var(--signal-text);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38em;
  margin-top: 1.4rem;
}

.meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 1.6rem;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75em 1.35em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: 500 0.95rem/1.2 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
}

.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--line:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--small {
  min-height: 38px;
  padding: 0.5em 1em;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.more {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
}

.more::after {
  content: '';
  width: 0.5em;
  height: 0.5em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-0.05em) rotate(45deg);
  transition: transform 0.15s;
}

.more:hover::after {
  transform: translate(0.2em, -0.05em) rotate(45deg);
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--rule);
}

.site-header__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.logo__mark {
  width: 26px;
  height: 26px;
}

.logo__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav__link,
.menu > summary {
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav__link[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}

.menu {
  position: relative;
}

.menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}

.menu[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

.menu[open] > summary,
.menu > summary:hover,
.nav__link:hover {
  background: var(--paper-2);
}

.menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  width: min(420px, 90vw);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px 18px;
  z-index: 60;
}

.menu--wide {
  position: static;
}

.menu--wide .menu__panel {
  left: var(--gutter);
  right: var(--gutter);
  width: auto;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-inline: auto;
  top: calc(var(--header-h) - 4px);
}

.menu__cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.menu__group {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.menu__list a {
  display: block;
  padding: 7px 8px;
  margin-inline: -8px;
  text-decoration: none;
  border-radius: var(--radius);
}

.menu__list a:hover {
  background: var(--paper-2);
}

.menu__label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
}

.menu__sum {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-3);
  margin-top: 2px;
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  font-weight: 500;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

/* Language menu: the current code in the header, every published language in the panel. */
.menu--lang > summary {
  padding-inline: 10px;
}

.lang__code {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.menu__panel--lang {
  inset-inline-start: auto;
  inset-inline-end: 0;
  width: auto;
  min-width: 190px;
  padding: 10px 12px;
}

.lang__list a {
  margin-inline: 0;
  padding: 7px 10px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.lang__list a[aria-current] {
  font-weight: 600;
  background: var(--paper-2);
}

/* The page is not translated into this language: the link goes to that language's home page. */
.lang__list a[data-fallback] {
  color: var(--ink-3);
}

.mobile-nav__lang {
  border-top: 1px solid var(--rule);
  margin-top: 20px;
  font-weight: 400;
}

.mobile-nav__lang a[aria-current] {
  font-weight: 600;
  text-decoration-color: var(--signal);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav__bars,
.nav__bars::before,
.nav__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition:
    transform 0.2s,
    background 0.2s;
}

.nav__bars::before,
.nav__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav__bars::before {
  top: -6px;
}

.nav__bars::after {
  top: 6px;
}

.nav__toggle[aria-expanded='true'] .nav__bars {
  background: transparent;
}

.nav__toggle[aria-expanded='true'] .nav__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded='true'] .nav__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--rule);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 8px 0 32px;
  background: var(--paper);
}

.mobile-nav__sec {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.mobile-nav__sec > p {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.mobile-nav__sec > p a {
  text-decoration: none;
}

.mobile-nav__sec ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 16px;
}

.mobile-nav__sec li a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-2);
}

.mobile-nav__plain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 20px;
  font-weight: 500;
}

@media (max-width: 1080px) {
  .nav,
  .nav__signin,
  .menu--lang {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
}

@media (max-width: 420px) {
  .site-header__cta .btn--small {
    display: none;
  }
}

/* ---------- Breadcrumbs ---------- */

.crumbs ol {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}

.crumbs li + li::before {
  content: '/';
  margin: 0 0.7em;
  color: var(--rule-strong);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

/* ---------- Figures (three.js scenes) ---------- */

.scene {
  margin: 0;
  min-width: 0;
}

.scene__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background-color: var(--panel);
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.4px);
  background-size: 20px 20px;
  background-position: 9px 9px;
}

.scene--hero .scene__stage {
  aspect-ratio: 1 / 1;
}

.scene__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scene__stage canvas[data-ready] {
  opacity: 1;
}

.scene figcaption {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 18px;
  max-width: 34em;
}

.scene__no {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-right: 0.6em;
}

@media (prefers-reduced-motion: reduce) {
  .scene__stage canvas {
    transition: none;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: clamp(36px, 6vw, 88px) 0 var(--sec);
  border-bottom: 1px solid var(--rule);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero__alt {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ---------- Snapshot form ---------- */

.snap {
  margin-top: 2.2rem;
  max-width: 600px;
}

.snap__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.snap__row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule-strong);
  background: var(--field);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.snap__row:focus-within {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.snap__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.15rem/1.2 var(--sans);
  padding: 0 18px;
  min-height: 58px;
}

.snap__input:focus {
  outline: none;
}

.snap__input::placeholder {
  color: var(--ink-3);
}

.snap__go {
  margin: 5px;
  min-height: 46px;
}

.snap__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.snap__small {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: 12px;
  max-width: 34em;
}

.snap__error {
  font-size: 0.9rem;
  color: var(--signal-text);
  margin-top: 10px;
}

.snap[aria-busy='true'] .snap__go {
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 520px) {
  .snap__row {
    flex-direction: column;
  }
  .snap__input {
    min-height: 54px;
  }
  .snap__go {
    margin: 0 5px 5px;
  }
}

/* ---------- Snapshot result ---------- */

.snapres {
  margin-top: var(--sec);
  border-top: 1px solid var(--rule-strong);
  padding-top: clamp(32px, 4vw, 56px);
}

.band .snapres {
  margin-top: clamp(40px, 5vw, 72px);
}

.snapres__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.snapres__title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.snapres__url {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-2);
  word-break: break-all;
}

.snapres__stages {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.snapres__stages li {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  padding: 12px 8px 0 0;
  position: relative;
}

.snapres__stages li::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--ink);
  transition: width 0.6s ease;
}

.snapres__stages li[data-state='done'] {
  color: var(--ink);
}

.snapres__stages li[data-state='done']::before {
  width: 100%;
}

.snapres__stages li[data-state='active'] {
  color: var(--ink);
}

.snapres__stages li[data-state='active']::before {
  width: 45%;
  background: var(--signal);
  animation: snapres-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes snapres-pulse {
  from {
    width: 15%;
  }
  to {
    width: 75%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snapres__stages li[data-state='active']::before {
    animation: none;
  }
}

.snapres__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
}

.snapres__sec {
  grid-column: span 6;
  min-width: 0;
}

.snapres__sec--wide {
  grid-column: 1 / -1;
}

.snapres__sec h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.snapres__count {
  color: var(--ink-3);
}

.snapres__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.1;
}

.snapres__cat {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  margin: 6px 0 14px;
}

.snapres__list {
  margin: 12px 0 0;
  padding-left: 1.1em;
}

.snapres__list li {
  margin-bottom: 6px;
}

.snapres__kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 16px 0 0;
  font-size: 0.92rem;
}

.snapres__kv dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  padding-top: 0.2em;
}

.snapres__kv dd {
  margin: 0;
}

.snapres__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.snapres__item:first-of-type {
  padding-top: 0;
}

.snapres__item h4 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.snapres__role {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.snapres__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.snapres__tags li {
  font-family: var(--mono);
  font-size: 0.72rem;
  border: 1px solid var(--rule-strong);
  padding: 2px 8px;
  border-radius: var(--radius);
}

.snapres__locked {
  padding: 16px 0;
  display: grid;
  gap: 8px;
}

.snapres__locked span {
  display: block;
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--hatch) 0 6px, transparent 6px 12px);
  border: 1px solid var(--rule);
}

.snapres__locked span:nth-child(2) {
  width: 82%;
}

.snapres__locked span:nth-child(3) {
  width: 64%;
}

.snapres__locked p {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  margin-top: 6px;
}

.snapres__funnel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.snapres__funnel th,
.snapres__funnel td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
}

.snapres__funnel thead th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.snapres__funnel tbody th {
  font-family: var(--display);
  font-weight: 600;
  font-weight: 400;
  font-size: 1.15rem;
  text-transform: capitalize;
}

.snapres__creatives {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.snapres__creatives figure {
  margin: 0;
}

.snapres__creatives img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}

.snapres__creatives figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  margin-top: 8px;
}

.snapres__creatives img[data-state='loading'],
.snapres__creatives img[data-state='failed'] {
  background: repeating-linear-gradient(135deg, var(--hatch) 0 6px, transparent 6px 12px);
}

.snapres__gate {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink);
  color: var(--paper);
}

.snapres__gate h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--paper);
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  display: block;
}

.snapres__gate p {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}

.snapres__gate ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  display: grid;
  gap: 8px;
}

.snapres__gate li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  padding-bottom: 8px;
}

.snapres__gate .btn {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
  margin-top: 20px;
}

.snapres__gate .btn:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.snapres__fail {
  border-left: 2px solid var(--signal);
  padding: 4px 0 4px 18px;
  max-width: 44em;
}

@media (max-width: 860px) {
  .snapres__sec {
    grid-column: 1 / -1;
  }
  .snapres__stages {
    grid-template-columns: repeat(5, minmax(56px, 1fr));
    overflow-x: auto;
  }
  .snapres__creatives {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .snapres__gate,
  .snapres__head {
    grid-template-columns: 1fr;
  }
}

/* ---------- Home: the loop ---------- */

.loop {
  padding: var(--sec) 0;
  border-bottom: 1px solid var(--rule);
}

.loop__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.loop__head p {
  color: var(--ink-2);
  max-width: 30em;
}

.loop__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}

.loop__step {
  padding: 22px clamp(14px, 1.6vw, 24px) 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.loop__step + .loop__step {
  padding-left: clamp(14px, 1.6vw, 24px);
  border-left: 1px solid var(--rule);
}

.loop__step h3 {
  font-size: 1.75rem;
}

.loop__step p {
  font-size: 0.94rem;
  color: var(--ink-2);
  flex: 1;
}

.loop__step .more {
  font-size: 0.88rem;
}

.loop__no {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--signal-text);
}

.h-sec__title {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.024em;
}

/* ---------- Facts ---------- */

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--rule);
}

.fact {
  padding: 20px 20px 0 0;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
}

.fact dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.fact dt {
  font-size: 0.86rem;
  color: var(--ink-2);
  max-width: 14em;
}

.facts--strip {
  margin-top: clamp(48px, 6vw, 88px);
}

/* ---------- Home sections ---------- */

.h-sec {
  padding: var(--sec) 0;
  border-bottom: 1px solid var(--rule);
}

.h-sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.h-sec--flip .h-sec__text {
  order: 2;
}

.h-sec__text > p {
  color: var(--ink-2);
  max-width: 34em;
}

.h-sec__title + p {
  margin-top: 1.6rem;
}

.h-links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

/* ---------- Bands ---------- */

.band {
  padding: var(--sec) 0;
}

.band--ink {
  --paper: #0b0c0e;
  --paper-2: #16171b;
  --panel: #101115;
  --ink: #edeef0;
  --ink-2: #a4a7ae;
  --ink-3: #6f737b;
  --rule: rgba(237, 238, 240, 0.1);
  --rule-strong: rgba(237, 238, 240, 0.26);
  --dot: rgba(237, 238, 240, 0.09);
  --signal: #6b86ff;
  --signal-text: #8ea3ff;
  --on-signal: #0b0c0e;
  background: var(--paper);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .band--ink {
    --paper: #121317;
    --panel: #16171c;
  }
}

:root[data-theme='dark'] .band--ink {
  --paper: #121317;
  --panel: #16171c;
}

.levels {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0 1.6rem;
  font-size: 0.95rem;
}

.levels th,
.levels td {
  text-align: left;
  vertical-align: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.levels th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  width: 3.6em;
  color: var(--signal-text);
}

.levels td {
  color: var(--ink-2);
}

.limits {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.limits li {
  padding-left: 18px;
  position: relative;
}

.limits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1.5px;
  background: var(--ink);
}

.band--cta {
  border-top: 1px solid var(--rule-strong);
  background: var(--paper-2);
}

.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.band__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.022em;
  margin-bottom: 1rem;
}

.band__grid > div > p {
  color: var(--ink-2);
  max-width: 32em;
}

.band--cta .snap {
  margin-top: 0;
}

.band--cta .actions {
  margin-top: 0;
  justify-content: flex-start;
}

/* ---------- Index lists (hubs, use cases) ---------- */

.h-uses,
.h-price {
  padding: var(--sec) 0;
  border-bottom: 1px solid var(--rule);
}

.h-uses .h-sec__title {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.index {
  margin-top: clamp(40px, 5vw, 72px);
}

.index__group {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0;
  padding-bottom: 12px;
}

.index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}

.index__list--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.index__item {
  padding: 22px 28px 24px 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

.index__item > a {
  text-decoration: none;
  display: inline-block;
}

.index__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.012em;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 0 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease;
}

.index__item > a:hover .index__label {
  background-size: 100% 1.5px;
}

.index__item p {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.page-head .index__list {
  margin-top: 2.4rem;
}

/* ---------- Home pricing teaser ---------- */

.tiers {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}

.tier {
  padding: 24px 24px 28px 0;
}

.tier + .tier {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.tier h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier__price {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 14px 0 10px;
}

.tier__price span {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-left: 4px;
}

.tier__inc {
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 22em;
}

/* ---------- Inner page head ---------- */

.page-head {
  padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--rule);
}

.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.page-head h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.026em;
}

.page-head--plain .page-head__text {
  max-width: 52rem;
}

.page-head .scene--hero .scene__stage {
  aspect-ratio: 5 / 4;
}

/* ---------- Page body and blocks ---------- */

.page-body {
  padding-block: clamp(48px, 6vw, 88px);
}

.flow {
  max-width: 50rem;
}

.flow > * + * {
  margin-top: clamp(48px, 5vw, 72px);
}

.block__title {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.block--prose p {
  color: var(--ink-2);
}

.block--prose p strong {
  color: var(--ink);
}

.flow a:not(.btn):not(.more) {
  text-decoration-color: var(--signal);
}

.block__intro {
  color: var(--ink-2);
  margin-bottom: 1.6rem;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.point {
  padding: 18px 0 22px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 2.4em 1fr;
  column-gap: 8px;
}

.point > p {
  grid-column: 2;
  font-size: 0.96rem;
  color: var(--ink-2);
  margin-top: 6px;
}

.point__no {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--signal-text);
  padding-top: 0.35em;
}

.point__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.step:last-child {
  border-bottom: 1px solid var(--rule);
}

.step__no {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--ink);
}

.step__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 6px;
}

.step p {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--rule-strong);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 12px 18px 12px 0;
  border-bottom: 1px solid var(--rule);
}

.table-wrap thead th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 14px;
  white-space: nowrap;
}

.table-wrap tbody th {
  font-weight: 600;
  color: var(--ink);
  min-width: 9em;
}

.table-wrap td {
  color: var(--ink-2);
}

.table-wrap td[data-v]::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  vertical-align: 0.05em;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.table-wrap td[data-v='yes']::before {
  background: var(--ink);
}

.table-wrap td[data-v='partial']::before {
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}

.table-wrap td[data-v='no']::before {
  border-color: var(--ink-3);
}

.table-note {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 12px;
}

.note {
  border-left: 2px solid var(--signal);
  padding: 4px 0 4px 20px;
}

.note__title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.note p:not(.note__title) {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.sources ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.code {
  margin: 0;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre;
}

.block--figure .scene__stage {
  aspect-ratio: 16 / 9;
}

.flow .block--figure {
  max-width: none;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--rule-strong);
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 0;
  position: relative;
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.faq__item > summary::before,
.faq__item > summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s;
}

.faq__item > summary::after {
  transform: rotate(90deg);
}

.faq__item[open] > summary::after {
  transform: rotate(0);
}

.faq__item > summary:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-underline-offset: 0.2em;
}

.faq__a {
  padding: 0 44px 22px 0;
  color: var(--ink-2);
}

/* ---------- Guides ---------- */

.page-body--toc {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: 0.88rem;
}

.toc__title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1.5px solid var(--rule);
  text-decoration: none;
  color: var(--ink-2);
}

.toc a:hover,
.toc a[aria-current='true'] {
  color: var(--ink);
  border-left-color: var(--signal);
}

.byline {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

/* ---------- Glossary ---------- */

.letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.letters a {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  text-decoration: none;
}

.letters a:hover {
  border-color: var(--ink);
}

.glossary {
  margin: 0;
  max-width: 60rem;
}

.glossary__letter {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  border-top: 1px solid var(--rule-strong);
  padding-top: 8px;
  margin-bottom: 40px;
}

.glossary__l {
  font-family: var(--display);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 1;
  grid-row: span 50;
  margin: 0;
}

.glossary__term {
  grid-column: 2;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.glossary__term:target {
  background: linear-gradient(90deg, color-mix(in srgb, var(--signal) 14%, transparent), transparent 70%);
}

.glossary dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.glossary dd {
  margin: 0;
  color: var(--ink-2);
}

.glossary__see {
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ---------- Pricing ---------- */

.plans {
  list-style: none;
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}

.plans--other {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 40%;
  min-width: 320px;
}

.plan {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.plan + .plan {
  border-left: 1px solid var(--rule);
}

.plan:first-child {
  padding-left: 0;
}

.plan--anchor {
  background: var(--paper-2);
  position: relative;
}

.plan--anchor::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--signal);
}

.plan__name {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan__pitch {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 10px 0 0;
  min-height: 4.2em;
}

.plan__price {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 18px 0 6px;
}

.plan__price span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-top: 8px;
}

.plan__alt {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.plan .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.plan__points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--ink-2);
  display: grid;
  gap: 8px;
}

.plan__points li {
  padding-left: 16px;
  position: relative;
}

.plan__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 1.5px;
  background: var(--ink);
}

.calc input[type='range'] {
  width: 100%;
  margin: 18px 0 28px;
  accent-color: var(--signal);
  height: 28px;
}

.calc__label {
  display: block;
  font-weight: 500;
}

.calc__label output {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
  margin-left: 6px;
}

.calc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border-top: 1px solid var(--rule-strong);
}

.calc__table th,
.calc__table td {
  text-align: left;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--rule);
}

.calc__table thead th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.calc__table td:last-child {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
}

.calc__table tr[data-best] th::after {
  content: attr(data-best);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--signal-text);
  margin-left: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.limits-table {
  min-width: 860px !important;
}

/* ---------- Related and footer ---------- */

.related {
  padding: clamp(48px, 6vw, 88px) 0;
  border-top: 1px solid var(--rule);
}

.related__title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--rule-strong);
}

.related__list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 24px 22px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.related__kind {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.related__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.15;
}

.related__list a:hover .related__label {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.related__sum {
  font-size: 0.88rem;
  color: var(--ink-2);
}

.book {
  border-top: 1px solid var(--rule-strong);
  padding-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--rule-strong);
  padding: clamp(48px, 6vw, 80px) 0 24px;
  overflow: hidden;
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 24px;
}

.foot__title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--ink-2);
}

.foot__title a {
  text-decoration: none;
}

.foot__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
}

.foot__col a {
  text-decoration: none;
  color: var(--ink-2);
}

.foot__col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
}

.foot__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(5rem, 21vw, 19rem);
  line-height: 0.8;
  letter-spacing: -0.065em;
  margin: clamp(48px, 7vw, 96px) 0 0;
  white-space: nowrap;
  user-select: none;
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

.foot__base p {
  margin: 0;
  display: flex;
  gap: 18px;
}

.foot__base a {
  text-decoration: none;
}

.foot__button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.foot__button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
}

/* ---------- Consent banner (the site's own tracker) ---------- */

.consent {
  position: fixed;
  inset-inline-start: var(--gutter);
  bottom: var(--gutter);
  z-index: 40;
  width: min(26rem, calc(100% - 2 * var(--gutter)));
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.consent[hidden] {
  display: none;
}

.consent__title {
  font-weight: 600;
  margin-bottom: 6px;
}

.consent__text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.consent__text a {
  color: var(--ink);
}

.consent__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* Accept and decline: same size, same weight. */
.consent__actions .btn {
  flex: 1 1 0;
}

/* ---------- Legal ---------- */

.flow--legal {
  max-width: 46rem;
  font-size: 1rem;
}

.flow--legal > * + * {
  margin-top: 1em;
}

.flow--legal h2 {
  font-size: 1.7rem;
  margin-top: 2.4em;
}

.flow--legal h3 {
  font-size: 1.25rem;
  margin-top: 1.8em;
}

.flow--legal h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  margin-top: 1.4em;
}

.flow--legal p,
.flow--legal li {
  color: var(--ink-2);
}

.flow--legal ul,
.flow--legal ol {
  padding-left: 1.3em;
}

.flow--legal li + li {
  margin-top: 0.4em;
}

/* ---------- 404 ---------- */

.kind-page .page-head--plain .index__list {
  max-width: 52rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .menu__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plans .plan:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }
  .plans .plan:nth-child(n + 4) {
    border-top: 1px solid var(--rule);
  }
  .plans--other {
    max-width: none;
  }
  .foot__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .loop__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .loop__step,
  .loop__step + .loop__step {
    padding: 22px 20px 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }
  .loop__step:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--rule);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 58px;
  }
  .hero__grid,
  .h-sec__grid,
  .page-head__grid,
  .band__grid,
  .loop__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-sec--flip .h-sec__text {
    order: 0;
  }
  .scene--hero .scene__stage {
    aspect-ratio: 4 / 3;
  }
  .page-head .scene--hero {
    max-width: 560px;
  }
  .page-body--toc {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
  }
  .index__list--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiers {
    grid-template-columns: minmax(0, 1fr);
  }
  .tier + .tier {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 1rem;
  }
  .points,
  .index__list,
  .index__list--3,
  .limits {
    grid-template-columns: minmax(0, 1fr);
  }
  .loop__steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .loop__step:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan,
  .plan:first-child,
  .plans .plan:nth-child(4) {
    padding: 24px 0 28px;
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .plan--anchor {
    padding-inline: 16px !important;
    margin-inline: -16px;
  }
  .plan__pitch {
    min-height: 0;
  }
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glossary__letter {
    grid-template-columns: minmax(0, 1fr);
  }
  .glossary__l {
    grid-row: auto;
    font-size: 2.4rem;
  }
  .glossary__term {
    grid-column: 1;
  }
  .step {
    grid-template-columns: 2.4rem 1fr;
  }
  .step__no {
    font-size: 2rem;
  }
}

@media print {
  .consent,
  .site-header,
  .site-footer,
  .band--cta,
  .snap,
  .scene {
    display: none !important;
  }
}
