/* EdgeCMS Cloud — Apple-like dark product pages: black voids, soft gray type, quiet CTAs. */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  /* Near-black voids + soft hierarchy — AA body ≥4.5:1 on paper */
  --paper: #000000;
  --paper-2: #111111;
  --ink: #f5f5f7;
  --ink-2: #e8e8ed;
  --muted: #a1a1a6;
  --line: rgb(245 245 247 / 0.1);
  --line-strong: rgb(245 245 247 / 0.18);
  --signal: #f5f5f7;          /* primary fill = white (Buy-button energy) */
  --signal-text: #2997ff;     /* thin Apple-like link blue — no glow */
  --signal-soft: rgb(41 151 255 / 0.1);
  --surface: #1d1d1f;
  --deep: #000000;
  --display: 'Space Grotesk', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --sans: 'IBM Plex Sans', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 980px;
  --gutter: clamp(20px, 5vw, 48px);
  /* Shared spacing ladder — bind section/page/cta/demo to these */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-section: clamp(72px, 10vw, 128px);
  --space-section-tight: clamp(40px, 5vw, 72px);
  --space-page-head: clamp(64px, 9vw, 112px);
  --space-cta: clamp(56px, 8vw, 96px);
  --radius: 12px; /* soft rect CTAs — not pill clusters */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --rise: 1.25s;
  color-scheme: dark only;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark only;
  background: #000;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-text); }
code { font: 0.88em var(--mono); background: rgb(245 245 247 / 0.08); padding: 0.1em 0.35em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; font-family: var(--display); letter-spacing: -0.022em; }
:focus-visible { outline: 2px solid var(--signal-text); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); color: var(--ink); padding: 8px 12px; border: 1px solid var(--line-strong); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* Type — brand leads; headline quieter; soft gray hierarchy */
.brand-hero {
  margin: 0 0 0.35em;
  font: 600 clamp(56px, 11vw, 112px)/0.98 var(--display);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-hero-page { font-size: clamp(40px, 7vw, 64px); margin-bottom: 0.3em; }
.display-xl {
  font: 500 clamp(36px, 5vw, 56px)/1.12 var(--display);
  letter-spacing: -0.028em;
  color: var(--ink-2);
  max-width: 17em;
}
.display-lg {
  font: 600 clamp(28px, 4vw, 44px)/1.12 var(--display);
  letter-spacing: -0.025em;
  margin-bottom: 0.5em;
}
.display-md {
  font: 600 clamp(22px, 2.8vw, 32px)/1.15 var(--display);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}
.display-xl em, .display-lg em, .display-md em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}
.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  font-weight: 400;
  max-width: 34em;
  color: var(--muted);
  margin-top: 1.25em;
}
.narrow { max-width: 14em; }
.label {
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0 0 1.1em;
  display: flex;
  align-items: center;
  gap: 0.75em;
  color: var(--muted);
}
.label a { text-decoration: none; }
.section-label span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; margin-right: 0.35em; }
.dot { width: 6px; height: 6px; background: var(--muted); display: inline-block; border-radius: 50%; }

/* Buttons — white primary, thin outline secondary; quiet blue text links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.78em 1.35em;
  font: 400 15px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.35s var(--ease);
}
.btn-signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #000;
}
.btn-signal:hover {
  color: #000;
  background: #fff;
  border-color: #fff;
  opacity: 0.9;
  transform: scale(1.02);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgb(245 245 247 / 0.35);
}
.btn-ghost:hover {
  background: transparent;
  color: var(--ink);
  border-color: rgb(245 245 247 / 0.7);
}
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin-top: var(--space-5); align-items: center; }
.actions-col { flex-direction: column; align-items: flex-start; margin-top: 0; }
.link-arrow {
  font: 400 15px var(--sans);
  text-decoration: none;
  color: var(--signal-text);
  border-bottom: none;
  padding-bottom: 0;
  transition: opacity 0.3s var(--ease);
}
.link-arrow:hover { opacity: 0.8; border-bottom-color: transparent; }

/* Header — frosted black bar */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: saturate(180%) blur(20px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 15px/1 var(--display);
  letter-spacing: -0.02em;
}
.logo em {
  font: 400 15px/1 var(--display);
  margin-left: 5px;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav > a:not(.btn) {
  font: 400 13px/1 var(--sans);
  text-decoration: none;
  color: var(--muted);
}
.site-nav > a:not(.btn):hover { color: var(--ink); }
.site-nav > a[aria-current='page'] { color: var(--ink); }
.site-nav .btn { padding: 0.55em 1em; font-size: 13px; }
.menu-toggle, .menu-label { display: none; }

/* Hero — sparse, cinematic, full-bleed product plane */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 132px) 0 0;
  isolation: isolate;
  overflow: hidden;
  border-bottom: none;
  background: var(--paper);
}
.hero::before { display: none; }
.hero-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 55%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgb(255 255 255 / 0.07), transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 20%, rgb(41 151 255 / 0.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-intro {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  padding-bottom: clamp(56px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-intro .brand-hero { text-align: center; }
.hero-intro .display-xl { margin: 0; text-align: center; max-width: 18em; }
.hero-intro .lede { margin-top: 1.2em; margin-bottom: 0; text-align: center; max-width: 30em; }
.hero-intro .actions { margin-top: 2em; justify-content: center; }
.hero-plane {
  margin: 0;
  width: 100%;
  border-top: none;
  background: var(--deep);
  position: relative;
}
.hero-plane img {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: clamp(280px, 52vh, 720px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: #111;
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.hero-plane figcaption {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter) 28px;
  font: 400 12px/1.4 var(--sans);
  color: var(--muted);
  background: var(--deep);
  text-align: center;
}
.hero-plane figcaption span { color: var(--muted); margin-right: 0.6em; }
.hero-plane figcaption em { font-style: normal; color: rgb(245 245 247 / 0.4); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes plane-in {
    from { opacity: 0; transform: translateY(56px) scale(1.03); }
    to { opacity: 1; transform: none; }
  }
  @keyframes glow-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .hero-glow { animation: glow-in 1.8s var(--ease) both; }
  .hero-intro > * {
    animation: rise var(--rise) var(--ease) both;
  }
  .hero-intro > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-intro > *:nth-child(2) { animation-delay: 0.28s; }
  .hero-intro > *:nth-child(3) { animation-delay: 0.44s; }
  .hero-intro > *:nth-child(4) { animation-delay: 0.58s; }
  .hero-plane {
    animation: plane-in 1.6s 0.4s var(--ease) both;
    transform-origin: center top;
  }
  .site-header {
    animation: rise 1s var(--ease) both;
  }
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* Product plates (body only — never in hero) */
.plate {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
  overflow: hidden;
  border-radius: 12px;
}
.plate-hero { display: none; } /* hero uses .hero-plane */
.plate-bar { display: none; }
.plate img { width: 100%; background: #111; }
.plate figcaption {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  color: var(--muted);
  font: 400 12px/1.4 var(--sans);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.plate figcaption span { color: var(--muted); font-weight: 500; }
.plate figcaption em { font-style: normal; color: rgb(245 245 247 / 0.4); }
button.btn {
  appearance: none;
  font: inherit;
  cursor: pointer;
}
button.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.demo-status { margin-top: var(--space-3); min-height: 1.4em; }
.demo-status.ok { color: #30d158; }
.demo-status.err { color: #ff453a; }

.demo-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin: var(--space-5) auto 0;
  max-width: 36em;
}
.demo-flow a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font: 500 13px/1.3 var(--sans);
  letter-spacing: 0.01em;
}
.demo-flow a span {
  font: 500 11px/1 var(--mono);
  color: rgb(245 245 247 / 0.35);
  letter-spacing: 0.08em;
}
.demo-flow a[aria-current='true'],
.demo-flow a:hover {
  color: var(--ink);
}
.demo-configure,
.demo-waiting {
  max-width: 34em;
  margin-inline: auto;
}
.demo-form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.demo-form label {
  display: grid;
  gap: 8px;
}
.demo-form label > span {
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-form select {
  appearance: none;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0a0a0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2386868b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 14px center no-repeat;
  color: var(--ink);
  font: 400 16px/1.3 var(--sans);
}
.demo-form .btn { justify-self: start; }
.demo-script-link { margin-top: var(--space-5); }

.waiting-panel {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(720px 280px at 50% 0%, rgb(41 151 255 / 0.08), transparent 60%),
    #080809;
}
.waiting-kicker {
  margin: 0;
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.waiting-position {
  margin: var(--space-3) 0 var(--space-2);
}
.waiting-eta { margin: 0 0 var(--space-4); }
.waiting-bar {
  height: 2px;
  margin: 0 auto var(--space-5);
  max-width: 16em;
  background: rgb(245 245 247 / 0.08);
  overflow: hidden;
}
.waiting-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.4s ease;
}
.waiting-attrs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  text-align: left;
}
.waiting-attrs div { margin: 0; }
.waiting-attrs dt {
  margin: 0 0 4px;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(245 245 247 / 0.35);
}
.waiting-attrs dd {
  margin: 0;
  color: var(--ink-2);
  font: 500 15px/1.3 var(--sans);
}
@media (max-width: 640px) {
  .waiting-attrs { grid-template-columns: 1fr; }
}

.demo-site-shell { padding-bottom: var(--space-8); }
.demo-site-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: end;
  margin-top: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.demo-site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.demo-site-meta { margin: 6px 0 0; font: 12px/1.4 var(--mono); }
.demo-site-page {
  margin-top: var(--space-6);
  min-height: 50vh;
  background:
    radial-gradient(900px 420px at 20% -10%, rgb(41 151 255 / 0.07), transparent 55%),
    radial-gradient(700px 360px at 100% 10%, rgb(245 245 247 / 0.04), transparent 50%),
    #050506;
  border-block: 1px solid var(--line);
}
.site-hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  max-width: 40em;
}
.site-brand {
  margin: 0 0 var(--space-3);
  font: 600 13px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-hero [contenteditable='true'] {
  outline: none;
  border-radius: 4px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-hero [contenteditable='true']:hover,
.site-hero [contenteditable='true']:focus {
  background: rgb(245 245 247 / 0.03);
  box-shadow: 0 0 0 1px rgb(245 245 247 / 0.12);
}
.site-legal {
  margin-top: var(--space-6);
  font-size: 14px;
  max-width: 32em;
}

/* Sections — generous whitespace, sparse rules */
.section { padding: var(--space-section) 0; border-bottom: 1px solid var(--line); }
.section-tight { padding-top: var(--space-section-tight); }
.band-paper-2 { background: var(--paper-2); }
.band-ink {
  background: var(--paper-2);
  color: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: none;
}
.band-ink a:hover { color: #fff; }
.band-ink .section-label span,
.band-ink .display-lg em,
.band-ink .display-md em { color: var(--ink); }
.band-ink .label { color: var(--muted); }
.band-ink .muted { color: var(--muted); }
.band-ink .btn-ghost { border-color: rgb(245 245 247 / 0.35); color: var(--ink); }
.band-ink .btn-ghost:hover { background: transparent; border-color: rgb(245 245 247 / 0.7); color: var(--ink); }
.band-ink .link-arrow { color: var(--signal-text); }
.band-ink .link-arrow:hover { opacity: 0.8; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(var(--space-5), 6vw, var(--space-7)); align-items: center; }
.split > *, .cta-row > *, .feature-group > * { min-width: 0; }
.split-reverse > :first-child { order: 2; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.three-col p { border-top: 1px solid var(--line-strong); padding-top: var(--space-3); font-size: 15px; }
.page-head {
  padding: var(--space-page-head) 0 var(--space-section-tight);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}
.page-head .wrap { display: flex; flex-direction: column; align-items: center; }
.page-head .display-xl, .page-head .lede, .page-head .brand-hero { text-align: center; }
.page-head .lede { max-width: 34em; }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 1.6em 0 0; }
.ticks li { padding: 12px 0 12px 22px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 1px;
  background: var(--muted);
}

/* Code */
.code {
  margin: 0;
  background: var(--deep);
  color: #d7dee8;
  padding: clamp(18px, 3vw, 28px);
  font: 400 clamp(12px, 1.2vw, 14px)/1.75 var(--mono);
  overflow-x: auto;
  border: 1px solid var(--line-strong);
}
.code .c { color: #9aa3b5; }
.code .k { color: #fff; }
.code .s { color: #93c5fd; }
.code .n { color: #86efac; }

/* Read path */
.readpath { margin: 40px 0 0; }
.readpath svg { width: 100%; height: auto; overflow: visible; }
.rp-line { stroke: var(--ink-2); stroke-width: 2; }
.rp-stop circle { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.rp-first circle, .rp-stop:last-child circle { fill: var(--signal); stroke: var(--ink); }
.rp-stop text { font: 600 28px var(--display); fill: var(--ink); }
.rp-stop .rp-sub { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; fill: var(--muted); }
.readpath figcaption { font: 400 13px/1.5 var(--sans); color: var(--muted); max-width: 52em; margin-top: 16px; }

/* AI flow */
.flow { list-style: none; margin: 0; padding: 0; }
.flow li {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow span { font: 500 17px/1.2 var(--display); color: var(--ink); letter-spacing: -0.02em; }

/* Versus */
.versus { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.versus > div { padding: 24px 24px 8px 0; }
.versus > div + div { border-left: 1px solid var(--line); padding-left: 24px; }

/* Ledgers */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ledger li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-num { font: 500 12px var(--mono); color: var(--muted); }
.ledger-main { display: flex; flex-direction: column; gap: 2px; }
.ledger-main strong, .ledger-main a {
  font: 600 20px/1.25 var(--display);
  letter-spacing: -0.02em;
}
.ledger-main a { text-decoration: none; }
.ledger-main .muted { font-size: 14px; }
.ledger > li > a {
  font: 600 20px/1.25 var(--display);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.tag {
  display: inline-block;
  font: 400 12px/1 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  margin: 0;
  vertical-align: middle;
  white-space: nowrap;
}
.band-ink .tag { color: var(--muted); }
.tag-inline { margin: 0 2px; }

/* Features */
.feature-group {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.feature-group:first-child { padding-top: 8px; }
.feature-head .section-label { font-size: 13px; }
.feature-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.feature-list > div { padding: 14px 0; border-top: 1px solid var(--line); }
.feature-list dt { font-weight: 600; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feature-list dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.feature-list-single { grid-template-columns: 1fr; }
.feature-list-trust {
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  border-top: 1px solid var(--line-strong);
}
.feature-list-trust > div { padding: 28px 0; border-top: 1px solid var(--line); }
.feature-list-trust dt {
  font: 600 22px/1.2 var(--display);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feature-list-trust dd { font-size: 16px; color: var(--muted); max-width: 28em; }
.cta-lede { margin-top: 0; font-size: clamp(17px, 1.4vw, 19px); }
.security-ticks { margin-top: 0; }

/* Pricing */
.price-table { border-top: 1px solid var(--line-strong); }
.price-row {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.price-row .display-md { margin-bottom: 10px; }
.price-row p:not(.tag) { margin: 0; max-width: 34em; }
.price-cta { justify-self: end; }
.dimension-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
  border-top: 1px solid var(--line-strong);
}
.dimension-list li {
  break-inside: avoid;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font: 500 14px var(--mono);
}
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.rules p { border-top: 1px solid var(--line-strong); padding-top: 14px; font-size: 15px; }

/* Compare */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td {
  text-align: left;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font: 600 28px/1.15 var(--display);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-strong);
}
.compare thead th:last-child { color: var(--ink); }
.compare tbody th {
  font: 500 12px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 24%;
}

/* CTA */
.cta { padding: var(--space-cta) 0; }
.cta-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: end; }
.cta .display-md { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }

/* Legal */
.legal { padding-top: clamp(48px, 6vw, 88px); padding-bottom: 96px; max-width: 900px; }
.draft-banner {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 16px 20px;
  margin: 24px 0 40px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 12px;
}
.draft-banner strong {
  color: var(--ink);
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  margin-right: 6px;
}
.prose h2 { font: 600 26px/1.2 var(--display); letter-spacing: -0.02em; margin: 1.6em 0 0.5em; }
.prose h3 { font: 600 17px var(--sans); letter-spacing: 0; margin: 1.4em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose blockquote {
  margin: 0 0 1.5em;
  padding: 10px 16px;
  border-left: 2px solid var(--muted);
  background: var(--surface);
}
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
}
.prose th {
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-strong);
}

/* Footer */
.site-footer { background: var(--paper); color: var(--ink); padding: var(--space-8) 0 var(--space-6); border-top: 1px solid var(--line); }
.site-footer .logo em { color: var(--muted); }
.site-footer .muted { color: var(--muted); font-size: 14px; margin-top: var(--space-3); max-width: 22em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-5); }
.footer-grid > div > a:not(.logo) {
  display: block;
  text-decoration: none;
  font-size: 13px;
  padding: 5px 0;
  color: var(--muted);
}
.footer-grid > div > a:not(.logo):hover { color: var(--ink); }
.footer-grid .label { color: var(--ink); margin-bottom: 12px; font-size: 12px; }
.footer-note {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font: 400 12px var(--sans);
  color: var(--muted);
}

/* Narrow screens */
@media (max-width: 1000px) {
  .split, .cta-row, .feature-group { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
  .price-row { grid-template-columns: 1fr 1.6fr; }
  .price-cta { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-group { gap: 8px; }
}

@media (max-width: 860px) {
  .menu-label { display: flex; flex-direction: column; gap: 6px; padding: 12px 4px; cursor: pointer; }
  .menu-label span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.15s; }
  .site-nav {
    display: none;
    position: absolute;
    top: 52px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgb(0 0 0 / 0.96);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .site-nav > a:not(.btn) {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .site-nav .btn { margin-top: 20px; }
  .menu-toggle:checked ~ .site-nav { display: flex; }
  .menu-toggle:checked + .menu-label span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle:checked + .menu-label span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header-row { position: relative; }
  .menu-toggle {
    display: block;
    position: absolute;
    right: var(--gutter);
    top: 14px;
    width: 36px;
    height: 36px;
    margin: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
  }
  .menu-toggle:focus-visible + .menu-label { outline: 2px solid var(--signal); outline-offset: 2px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .three-col, .rules, .versus, .feature-list { grid-template-columns: 1fr; }
  .versus > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .price-row { grid-template-columns: 1fr; gap: 14px; }
  .price-cta { grid-column: auto; }
  .dimension-list { columns: 1; }
  .flow li { grid-template-columns: 96px 1fr; }
  .flow span { font-size: 16px; }
  .ledger li { grid-template-columns: 36px 1fr auto; gap: 10px; }
  .ledger-main strong, .ledger-main a, .ledger > li > a { font-size: 18px; }
  .rp-stop text { font-size: 36px; }
  .rp-stop .rp-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-plane img { aspect-ratio: 4 / 3; }
}

/* Docs */
.docs-hero { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: end; }
.docs-hero > * { min-width: 0; }
.docs-diag { margin: 0 0 var(--space-4); }
.docs-diag .display-md { margin: 0.2em 0 0.4em; }
.docs-diag-lead { margin: 0 0 var(--space-3); max-width: 40em; }
.docs-article .docs-diag { margin-top: var(--space-4); margin-bottom: var(--space-5); }
.docs-index { padding-top: var(--space-section-tight); padding-bottom: var(--space-section); }
.docs-index-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(var(--space-4), 4vw, var(--space-7));
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line-strong);
}
.docs-index-group .ledger { border-top: 0; }
.docs-index-group .ledger li:first-child { padding-top: 0; }
.docs-index-group .ledger-main .muted { max-width: 46em; }

.code-plate {
  margin: 1.4em 0 1.8em;
  background: var(--deep);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.code-plate figcaption {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-text);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.code-plate pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 13.5px/1.6 var(--mono); }
.code-plate code { background: none; padding: 0; font: inherit; color: inherit; }
.code-plate-hero { margin: 0; }

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: 96px;
  align-items: start;
}
.docs-side, .docs-toc { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; }
.docs-nav-group { margin-bottom: 26px; }
.docs-nav-group .label { margin-bottom: 8px; color: var(--muted); }
.docs-nav ol, .docs-toc ol { list-style: none; margin: 0; padding: 0; }
.docs-nav a {
  display: grid;
  grid-template-columns: 26px 1fr;
  padding: 6px 0 6px 10px;
  margin-left: -10px;
  border-left: 2px solid transparent;
  font-size: 14.5px;
  line-height: 1.35;
  text-decoration: none;
}
.docs-nav a span { font: 500 11px/1.9 var(--mono); color: var(--muted); }
.docs-nav a[aria-current='page'] { border-left-color: var(--signal); color: var(--ink); font-weight: 600; }
.docs-nav a[aria-current='page'] span { color: var(--signal-text); }
.docs-nav-mobile { display: none; }
.docs-toc { border-left: 1px solid var(--line); padding-left: 18px; }
.docs-toc li a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--muted);
}
.docs-toc li a:hover { color: var(--signal-text); }

.docs-article { min-width: 0; max-width: 760px; }
.docs-article > .display-lg {
  margin-bottom: 0.6em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--line-strong);
}
.docs-prose { font-size: 16.5px; }
.docs-prose > p:first-child { font-size: 18px; color: var(--ink-2); }
.docs-prose h2 { scroll-margin-top: 88px; padding-top: 0.6em; border-top: 1px solid var(--line); }
.docs-prose h3 { scroll-margin-top: 88px; }
.docs-prose h2, .docs-prose h3 { position: relative; }
.docs-prose .anchor {
  position: absolute;
  left: -1.1em;
  width: 1em;
  color: var(--signal-text);
  text-decoration: none;
  opacity: 0;
  font-family: var(--mono);
  font-size: 0.7em;
  top: 50%;
  transform: translateY(-50%);
}
.docs-prose h2 .anchor { top: calc(50% + 0.3em); }
.docs-prose h2:hover .anchor,
.docs-prose h3:hover .anchor,
.docs-prose .anchor:focus-visible { opacity: 1; }
.docs-prose li > code, .docs-prose p > code { white-space: normal; overflow-wrap: anywhere; }
.docs-prose td > code, .docs-prose th > code { white-space: nowrap; }
.docs-prose td { min-width: 9em; }
.docs-prose td:first-child { min-width: 0; }
.table-scroll { overflow-x: auto; margin: 1.2em 0 1.8em; border-top: 1px solid var(--line-strong); }
.docs-prose table { display: table; width: 100%; margin: 0; }
.docs-prose th { border-bottom: 1px solid var(--line); }
.docs-source { margin: 2.8em 0 0; }
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  font: 600 20px/1.2 var(--display);
  letter-spacing: -0.02em;
}
.pager .label { margin: 0; color: var(--muted); }
.pager-next { text-align: right; align-items: flex-end; }

@media (max-width: 1100px) {
  .docs-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 860px) {
  .docs-hero, .docs-index-group { grid-template-columns: 1fr; }
  .docs-index-group { gap: 8px; }
  .docs-shell { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .docs-side { display: none; }
  .docs-nav-mobile {
    display: block;
    border: 1px solid var(--line-strong);
    padding: 12px 14px;
    background: var(--paper-2);
  }
  .docs-nav-mobile summary { margin: 0; cursor: pointer; list-style: none; }
  .docs-nav-mobile summary::after { content: '+'; margin-left: auto; font-size: 16px; }
  .docs-nav-mobile[open] summary::after { content: '−'; }
  .docs-nav-mobile .docs-nav { margin-top: 16px; }
  .docs-prose .anchor { display: none; }
}
@media (max-width: 640px) {
  .code-plate pre { font-size: 12.5px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; align-items: flex-start; }
  .pager a { font-size: 18px; }
}

@media (max-width: 640px) {
  .feature-list-trust { grid-template-columns: 1fr; }
}

/* Anatomy-inspired diagram cards — Fig chrome, live readout, calm SVG motion */
.diag-lead { max-width: var(--wrap); }
.diag-lead .display-lg { margin-bottom: 0.35em; }
.diag-lede { max-width: 36em; color: var(--muted); margin-bottom: 1.6em; }
.diag-more { margin: 1.4em 0 0; }
.diag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 0.5em;
}
.diag { margin: 0; min-width: 0; }
.diag-frame {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  touch-action: pan-y;
}
.diag-frame:focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 6px;
}
.diag-chrome {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font: 500 12px/1.3 var(--mono);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.diag-chrome-foot { border-bottom: 0; border-top: 1px solid var(--line); }
.diag-fig { text-transform: uppercase; color: rgb(245 245 247 / 0.45); }
.diag-title { color: var(--ink-2); text-align: right; }
.diag-hint { color: rgb(245 245 247 / 0.4); }
.diag-readout { color: var(--signal-text); text-align: right; font-variant-numeric: tabular-nums; }
.diag-stage {
  padding: 12px 8px 4px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(41 151 255 / 0.06), transparent 55%),
    linear-gradient(180deg, #161618, #0c0c0e);
}
.diag-svg { display: block; width: 100%; height: auto; color: rgb(245 245 247 / 0.55); }
.diag-box, .diag-pill {
  fill: rgb(245 245 247 / 0.04);
  stroke: rgb(245 245 247 / 0.22);
  stroke-width: 1.25;
}
.diag-box-lit, .diag-pill-lit, [data-step].is-active .diag-box, [data-step].is-active .diag-pill,
[data-step].is-active .diag-node {
  fill: rgb(41 151 255 / 0.12);
  stroke: rgb(41 151 255 / 0.55);
}
.diag-node {
  fill: rgb(245 245 247 / 0.04);
  stroke: rgb(245 245 247 / 0.28);
  stroke-width: 1.5;
}
.diag-overlay {
  fill: rgb(41 151 255 / 0.08);
  stroke: rgb(41 151 255 / 0.45);
  stroke-width: 1.25;
  stroke-dasharray: 5 4;
}
.diag-overlay.is-pulse { animation: diag-pulse 1.8s var(--ease) infinite; }
.diag-label {
  fill: var(--ink);
  font: 600 15px/1 var(--display);
  letter-spacing: -0.02em;
}
.diag-sub, .diag-chip {
  fill: var(--muted);
  font: 500 12px/1 var(--mono);
}
.diag-chip { fill: var(--signal-text); }
.diag-flow, .diag-swap, .diag-return {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.7s var(--ease), stroke 0.3s var(--ease);
}
.diag.is-inview .diag-flow,
.diag.is-inview .diag-swap,
.diag.is-inview .diag-return,
.diag.is-calm .diag-flow,
.diag.is-calm .diag-swap,
.diag.is-calm .diag-return,
[data-flow].is-drawn {
  stroke-dashoffset: 0;
  stroke: rgb(41 151 255 / 0.7);
}
.diag-pulse circle {
  fill: var(--signal-text);
  opacity: 0;
}
.diag[data-diag="promote"] [data-step="1"].is-active ~ .diag-pulse circle,
.diag[data-diag="promote"].is-calm .diag-pulse circle {
  opacity: 1;
  animation: diag-ping 1.6s var(--ease) infinite;
}
[data-step] { opacity: 0.55; transition: opacity 0.35s var(--ease); }
[data-step].is-active, [data-step].is-done { opacity: 1; }
.diag-caption {
  margin: 10px 2px 0;
  font-size: 0.92em;
  line-height: 1.5;
  color: var(--muted);
}
@keyframes diag-pulse {
  0%, 100% { stroke-opacity: 0.45; }
  50% { stroke-opacity: 1; fill: rgb(41 151 255 / 0.16); }
}
@keyframes diag-ping {
  0% { r: 5; opacity: 0.9; }
  70% { r: 18; opacity: 0; }
  100% { r: 18; opacity: 0; }
}

@media (max-width: 860px) {
  .diag-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .hero-intro > *, .hero-plane, .site-header, .hero-glow { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .diag-flow, .diag-swap, .diag-return { transition: none; stroke-dashoffset: 0; }
  .diag-overlay.is-pulse, .diag-pulse circle { animation: none !important; }
}
