/* ==========================================================================
   Shared Brain — marketing site
   Sections: 1 Tokens · 2 Base · 3 Utilities · 4 Backdrop · 5 Nav · 6 Hero
   7 Hosts · 8 Sections · 9 Problem/demo · 10 Loop · 11 Bento · 12 Roles
   13 Security · 14 Benchmarks · 15 Quickstart · 16 Pricing · 17 FAQ
   18 Final CTA/footer · 19 Motion & accessibility
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #05060a;
  --bg-1: #080a12;
  --bg-2: #0c0f1a;
  --panel: rgba(16, 19, 33, 0.6);
  --panel-solid: #0b0e19;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);

  --ink: #eef0fa;
  --ink-2: #b4b9cf;
  --ink-3: #8a90a8;

  --violet: #a78bfa;
  --violet-2: #8b5cf6;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --mint: #5eead4;
  --amber: #fbbf24;
  --rose: #fb7185;

  --grad: linear-gradient(100deg, var(--violet) 0%, var(--blue) 50%, var(--cyan) 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.14));

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 64px -24px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 12vw, 160px);
  --nav-h: 68px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

p { margin: 0; }
p, li { text-wrap: pretty; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
strong, b { font-weight: 600; color: var(--ink); }

code, pre, kbd { font-family: var(--font-mono); }
:not(pre) > code {
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #dfe3f6;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

/* ---------- 3. Utilities ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}
.eyebrow-amber::before { background: var(--amber); box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }

.grad-text { color: var(--violet); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

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

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.6);
  text-underline-offset: 3px;
}
.link:hover { text-decoration-color: var(--cyan); }

/* Buttons */
.btn {
  --btn-pad: 14px 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad);
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --btn-pad: 10px 16px; font-size: 14px; }

.btn-primary {
  color: #070812;
  background: linear-gradient(100deg, #c4b5fd 0%, #93c5fd 50%, #67e8f9 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 30px -10px rgba(96, 165, 250, 0.7);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 14px 40px -8px rgba(34, 211, 238, 0.65);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }

/* Glass panel */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.badge {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font: 500 11.5px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* Copy buttons */
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font: 500 12px/1 var(--font-mono);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.copy:hover { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, 0.08); }
.copy.is-copied { color: var(--mint); border-color: rgba(94, 234, 212, 0.45); }

/* Syntax tokens */
.t-com { color: #6d7391; }
.t-cmd { color: var(--cyan); }
.t-key { color: #93c5fd; }
.t-str { color: #a7f3d0; }
.t-verb { color: var(--violet); font-weight: 500; }
.t-ok { color: var(--mint); }

/* ---------- 4. Backdrop: aurora + grain ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(76, 61, 160, 0.22), transparent 70%),
    var(--bg);
}
.aurora {
  position: absolute;
  width: 72vmax;
  height: 72vmax;
  border-radius: 50%;
  will-change: transform;
}
.aurora-1 {
  top: -34vmax; left: -18vmax;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.3), transparent 72%);
  animation: drift-a 32s ease-in-out infinite alternate;
}
.aurora-2 {
  top: -26vmax; right: -28vmax;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.17), transparent 72%);
  animation: drift-b 38s ease-in-out infinite alternate;
}
.aurora-3 {
  bottom: -42vmax; left: 18vw;
  background: radial-gradient(closest-side, rgba(96, 165, 250, 0.12), transparent 72%);
  animation: drift-a 44s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-10vw, 8vh, 0) scale(0.94); } }

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 5. Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(5, 6, 10, 0.66);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled, .site-header.menu-open { background: rgba(5, 6, 10, 0.95); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 15px/1 var(--font-display);
  letter-spacing: 0.24em;
}
.brand img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle .bar:nth-of-type(2) { top: 16px; }
.nav-toggle .bar:nth-of-type(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 1179px) {
  .nav-links a { padding: 8px 9px; font-size: 14px; }
}
/* The nav holds eight links, so it collapses before they crowd the brand and the CTA. */
@media (max-width: 1079px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    display: none;
    padding: 8px var(--gutter) 20px;
    background: rgba(5, 6, 10, 0.94);
    border-bottom: 1px solid var(--line);
  }
  .js .site-header.menu-open .nav-menu { display: block; }
  .js .nav-links { flex-direction: column; gap: 0; }
  .js .nav-links a { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .js .nav-links a:hover { background: none; }
  /* Without JS, links stay visible in a horizontally scrollable row. */
  html:not(.js) .nav { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .nav-menu { order: 3; width: 100%; overflow-x: auto; }
}
@media (max-width: 420px) {
  .nav-cta { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(32px, 6vw, 88px);
  padding-bottom: clamp(64px, 8vw, 112px);
}
.hero::before {
  /* hairline grid, faded out radially */
  content: "";
  position: absolute;
  inset: calc(var(--nav-h) * -1) 0 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.048em;
}
.hero h1 .line { display: block; }
.hero h1 .line + .line { padding-bottom: 0.06em; }

.hero-sub {
  max-width: 34em;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-ctas.center { justify-content: center; }

.oneliner {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin-top: 26px;
  padding: 5px 5px 5px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 9, 17, 0.72);
  box-shadow: var(--shadow);
  font: 400 13px/1.4 var(--font-mono);
}
.oneliner .prompt {
  flex: none;
  padding: 0 4px 0 14px;
  color: var(--cyan);
  user-select: none;
}
.oneliner code {
  flex: 1;
  min-width: 0;
  padding: 9px 10px 9px 6px;
  overflow-x: auto;
  white-space: nowrap;
  color: #dfe3f6;
  font-size: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.oneliner code::-webkit-scrollbar { display: none; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0;
  justify-self: center;
  aspect-ratio: 1 / 1;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.06) 60%, transparent);
  filter: blur(10px);
}
.hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.float-card {
  position: absolute;
  display: grid;
  gap: 4px;
  width: min(260px, 44%);
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(10, 12, 24, 0.72);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  animation: floaty 7s ease-in-out infinite alternate;
}
/* Cards sit in the corners, outside the ring of host labels drawn on the canvas. */
.fc-1 { top: -2%; left: -6%; }
.fc-2 { bottom: -2%; right: -6%; animation-delay: -3.5s; }
.fc-kicker {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-3);
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fc-main { color: var(--ink); font-weight: 500; }
.fc-meta { color: var(--ink-3); font: 400 11.5px/1.3 var(--font-mono); }
.fc-meta b { color: var(--mint); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@keyframes floaty { to { transform: translateY(-10px); } }

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { aspect-ratio: 6 / 5; max-width: 600px; }
}
@media (max-width: 600px) {
  /* Too cramped to sit beside the graph; the demo below tells the same story. */
  .float-card { display: none; }
}

/* ---------- 7. Host strip ---------- */
.hosts {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
}
.hosts-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding-block: 28px;
}
.hosts-label {
  font: 500 12px/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.host-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px clamp(20px, 3.4vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.host-list li {
  color: #9298b2;
  font: 600 clamp(1.05rem, 1.8vw, 1.45rem)/1.1 var(--font-display);
  letter-spacing: -0.025em;
  transition: color 0.3s, text-shadow 0.3s;
}
.host-list li:hover { color: var(--ink); text-shadow: 0 0 24px rgba(167, 139, 250, 0.6); }
.host-list li.alt {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  padding: 6px 9px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}

/* ---------- 8. Section scaffolding ---------- */
.section { position: relative; padding-block: var(--section); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  letter-spacing: -0.04em;
}
.section-head > p:not(.eyebrow) {
  max-width: 600px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center > p:not(.eyebrow) { margin-inline: auto; }

/* ---------- 9. Problem + before/after demo ---------- */
.problems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.problem { padding: 32px 32px 8px; }
.problem:first-child { padding-left: 0; }
.problem + .problem { border-left: 1px solid var(--line); }
.problem .num {
  font: 500 13px/1 var(--font-mono);
  color: var(--violet);
  letter-spacing: 0.08em;
}
.problem h3 { margin-top: 18px; font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
.problem p { margin-top: 12px; color: var(--ink-2); }

@media (max-width: 800px) {
  .problems { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .problem, .problem:first-child { padding: 28px 0; border-top: 1px solid var(--line); }
  .problem + .problem { border-left: 0; }
}

.demo {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(20px, 3vw, 36px);
}
.demo-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.demo-title {
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

/* Segmented control + tab thumbs (shared) */
.segmented,
.code-tabs { position: relative; display: flex; }
.segmented {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.segmented [role="tab"],
.code-tabs [role="tab"] {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.25s;
}
.segmented [role="tab"] {
  padding: 10px 18px;
  border-radius: 999px;
  font: 500 14px/1 var(--font-body);
}
.segmented [role="tab"]:hover,
.code-tabs [role="tab"]:hover { color: var(--ink-2); }
.segmented [aria-selected="true"],
.code-tabs [aria-selected="true"] { color: var(--ink); }
.thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 0;
  width: var(--tw, 0);
  transform: translateX(var(--tx, 0));
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), background-color 0.4s, border-color 0.4s;
}
html:not(.js) .thumb { display: none; }
html:not(.js) [role="tab"][aria-selected="true"] { background: rgba(255, 255, 255, 0.08); }

.demo[data-active="without"] .thumb { background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.35); }
.demo[data-active="with"] .thumb { background: linear-gradient(100deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.25)); border-color: rgba(167, 139, 250, 0.5); }

.demo-panel { margin-top: 28px; border-radius: var(--r); }
.js .demo-panel:not([hidden]) { animation: panel-in 0.5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

.timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tl-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 8, 16, 0.6);
}
.tl-when { display: grid; gap: 2px; font: 500 12px/1.4 var(--font-mono); }
.tl-when time { color: var(--ink); }
.tl-when span { color: var(--ink-3); }
.tl-item p { color: var(--ink-2); font-size: 15.5px; }
.tl-item q { color: var(--ink); font-style: italic; }

.tag {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid;
  font: 500 11.5px/1.2 var(--font-mono);
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-bad { color: #fda4af; border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.08); }
.tag-warn { color: #fcd34d; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.tag-good { color: #99f6e4; border-color: rgba(94, 234, 212, 0.35); background: rgba(94, 234, 212, 0.07); }
.tag-info { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.08); }

.demo-outcome {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4em;
  margin-top: 24px;
  font: 600 clamp(1.3rem, 2.4vw, 1.9rem)/1.2 var(--font-display);
  letter-spacing: -0.03em;
}

@media (max-width: 720px) {
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tag { justify-self: start; }
  .segmented { width: 100%; }
  .segmented [role="tab"] { flex: 1; padding-inline: 10px; }
}

/* ---------- 9b. Versus: built-in memory vs Shared Brain ---------- */
.versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.versus-col {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.versus-us {
  border: 1px solid transparent;
  /* Opaque padding layer so the gradient shows only as the border, not through
     the panel — otherwise the bright gradient kills text contrast. */
  background:
    linear-gradient(180deg, #161a33, #0a0d18) padding-box,
    var(--grad) border-box;
  box-shadow: 0 24px 64px -32px rgba(96, 165, 250, 0.55);
}
.versus-label {
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.versus-us .versus-label { color: var(--ink); }
.versus-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.versus-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.versus-them .versus-list li { color: var(--ink-3); }
.versus-list strong { color: var(--ink); }
.v-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  font: 600 13px/1 var(--font-mono);
}
.versus-us .v-mark {
  border-color: transparent;
  background: var(--grad);
  color: #05060a;
}
.versus-foot {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

@media (max-width: 800px) {
  .versus { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 10. How it works: loop ---------- */
.loop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.loop-grid .section-head { margin-bottom: 36px; }

.steps { margin: 0; padding: 0; list-style: none; }
.step {
  position: relative;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  /* progress hairline for the active step */
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}
.step.is-active::before { transform: scaleX(1); }
[data-loop][data-auto="true"] .step.is-active::before { animation: step-progress 3.6s linear; }
@keyframes step-progress { from { transform: scaleX(0); } }

.step-btn {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.step-num { flex: none; width: 24px; font: 500 12px/1 var(--font-mono); color: var(--ink-3); letter-spacing: 0.08em; }
.step-title {
  font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink-3);
  transition: color 0.3s;
}
.step p {
  margin: 10px 0 0 42px;
  color: var(--ink-3);
  transition: color 0.3s;
}
.step-btn:hover .step-title { color: var(--ink-2); }
.step.is-active .step-title { color: var(--ink); }
.step.is-active .step-num { color: var(--cyan); }
.step.is-active p { color: var(--ink-2); }
html:not(.js) .step-title, html:not(.js) .step p { color: var(--ink-2); }

.loop-figure {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1;
}
.loop-svg { width: 100%; height: 100%; overflow: visible; }
.loop-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.loop-flow {
  fill: none;
  stroke: url(#loopGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
  animation: flow 7s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -110; } }
.loop-inner { fill: rgba(9, 11, 22, 0.85); stroke: var(--line-2); }
.loop-core {
  fill: var(--ink);
  font: 700 22px var(--font-display);
  letter-spacing: 0.22em;
  text-anchor: middle;
}
.loop-core-sub {
  fill: var(--ink-3);
  font: 500 11px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-anchor: middle;
}
.loop-comet {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transition: transform 1.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.loop-node .dot { fill: #0a0d1a; stroke: var(--line-2); stroke-width: 1; transition: stroke 0.4s, fill 0.4s; }
.loop-node .halo { opacity: 0; transition: opacity 0.5s; }
.loop-node text {
  fill: var(--ink-2);
  font: 500 12.5px var(--font-mono);
  text-anchor: middle;
  dominant-baseline: middle;
  transition: fill 0.4s;
}
.loop-node.is-active .dot { fill: #101633; stroke: var(--cyan); }
.loop-node.is-active .halo { opacity: 1; }
.loop-node.is-active text { fill: #fff; }

@media (max-width: 900px) {
  .loop-grid { grid-template-columns: minmax(0, 1fr); }
  .loop-figure { max-width: 420px; order: -1; }
}

/* ---------- 11. Feature bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "a a b b"
    "a a c d"
    "e e f g";
  gap: 16px;
}
.tile-a { grid-area: a; }
.tile-b { grid-area: b; }
.tile-c { grid-area: c; }
.tile-d { grid-area: d; }
.tile-e { grid-area: e; }
.tile-f { grid-area: f; }
.tile-g { grid-area: g; }

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: border-color 0.35s, transform 0.5s var(--ease);
}
.tile::before {
  /* cursor spotlight */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.tile:hover { border-color: var(--line-2); }
.tile:hover::before { opacity: 1; }
.tile-a { background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.04) 60%, rgba(255, 255, 255, 0.01)); }

.kicker {
  font: 500 11.5px/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.tile h3 { font-size: 1.4rem; letter-spacing: -0.025em; }
.tile-a h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); max-width: 16ch; }
.tile p { color: var(--ink-2); font-size: 15.5px; }
.tile-viz { margin-top: auto; padding-top: 10px; }
.tile-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tile-divider::before,
.tile-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* A — cross-vendor windows */
.xvendor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.win {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(5, 7, 14, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font: 500 11px/1 var(--font-mono);
}
.win-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.win-bar span { margin-left: 6px; }
.win-body {
  padding: 12px;
  color: #d7dbef;
  font: 400 12px/1.65 var(--font-mono);
  overflow-wrap: anywhere;
}
.xv-link svg { width: 56px; height: auto; }
.xv-path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-dasharray: 3 5;
  animation: flow-short 2.4s linear infinite;
}
@keyframes flow-short { to { stroke-dashoffset: -40; } }

/* B — inbox */
.inbox { display: grid; gap: 8px; }
.inbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 7, 14, 0.6);
  color: var(--ink-2);
  font-size: 13px;
}
.pill { flex: none; padding: 4px 10px; border-radius: 999px; font: 500 11.5px/1.2 var(--font-mono); border: 1px solid; }
.pill-accept { color: #99f6e4; border-color: rgba(94, 234, 212, 0.4); background: rgba(94, 234, 212, 0.08); }
.pill-reject { color: #fda4af; border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.08); }

/* C — provenance chain */
.chain { margin: 0; padding: 10px 0 0; list-style: none; display: grid; gap: 0; }
.chain li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink-2);
  font: 500 12.5px/1.3 var(--font-mono);
}
.chain li::before {
  content: "";
  position: absolute;
  left: 3px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  border: 1.5px solid var(--violet);
  background: var(--bg);
}
.chain li + li::after {
  content: "";
  position: absolute;
  left: 7px; top: -8px;
  width: 1px; height: 16px;
  background: var(--line-2);
}
.chain li.ok { color: var(--mint); }
.chain li.ok::before { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* D — workspaces */
.ws { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font: 500 12px/1 var(--font-mono); }
.ws-box {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(5, 7, 14, 0.6);
  color: var(--ink);
}
.ws-link { padding-left: 14px; color: var(--ink-3); border-left: 1px dashed var(--line-2); margin-left: 14px; line-height: 1.8; }

/* E — delta feed */
.feed {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 7, 14, 0.72);
  font: 400 12.5px/1.5 var(--font-mono);
  color: var(--ink-2);
}
.feed b { display: inline-block; width: 1.4em; font-weight: 600; }
.feed .plus { color: var(--mint); }
.feed .tilde { color: var(--violet); }
.feed i { font-style: normal; color: var(--ink); }
.feed .hot { color: #fcd34d; }
.feed .hot b { color: var(--amber); }
.caret {
  display: inline-block;
  width: 7px; height: 1.05em;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* F — playbook revisions */
.revs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font: 500 12px/1 var(--font-mono); }
.revs li {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  background: rgba(5, 7, 14, 0.55);
}
.revs .retired { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.revs .approved { color: var(--ink); border-color: rgba(167, 139, 250, 0.55); background: rgba(139, 92, 246, 0.12); }
.revs .approved span:last-child { color: var(--violet); }

/* G — retrieval modes */
.modes { display: flex; flex-wrap: wrap; gap: 6px; font: 500 12px/1 var(--font-mono); }
.modes span { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); }
.modes .opt { border-style: dashed; color: var(--ink-3); }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b b" "c d" "e e" "f g"; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d" "e" "f" "g"; }
  .tile { min-height: 0; padding: 22px; }
  .xvendor { grid-template-columns: minmax(0, 1fr); }
  .xv-link { justify-self: center; transform: rotate(90deg); }
}

/* ---------- 12. Roles ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.role {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.role::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: var(--o, 0.3);
}
/* ascending steps: each role holds more of the boundary */
.role:nth-child(1) { min-height: 300px; --o: 0.25; }
.role:nth-child(2) { min-height: 340px; --o: 0.5; }
.role:nth-child(3) { min-height: 380px; --o: 0.75; }
.role:nth-child(4) { min-height: 420px; --o: 1; }
.role-token {
  align-self: flex-start;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--cyan);
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.04em;
}
.role h3 { font-size: 1.55rem; margin-top: 6px; }
.role p { color: var(--ink-2); font-size: 15px; }
.role ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.role li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.role li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
}

@media (max-width: 1023px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .role:nth-child(n) { min-height: 0; }
}
@media (max-width: 600px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 13. Security ---------- */
.sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
}
.sec-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}
.sec-cell {
  padding: 28px 26px;
  background: rgba(7, 9, 16, 0.94);
  transition: background-color 0.3s;
}
.sec-cell:hover { background: rgba(12, 15, 28, 0.96); }
.sec-cell h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.sec-cell h3::before {
  content: "";
  display: block;
  width: 20px; height: 20px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: var(--grad);
  box-shadow:
    0 0 20px rgba(96, 165, 250, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.sec-cell p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

.region {
  display: flex;
  flex-direction: column;
  padding: 30px;
}
.region-map {
  position: relative;
  height: 130px;
  margin: 22px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 62%, rgba(34, 211, 238, 0.18), transparent 40%),
    radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.2px) 0 0 / 12px 12px;
  overflow: hidden;
}
.ping {
  position: absolute;
  left: 72%; top: 62%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.ping::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { to { transform: scale(5); opacity: 0; } }
.coords {
  position: absolute;
  left: 12px; bottom: 10px;
  color: var(--ink-3);
  font: 500 11px/1 var(--font-mono);
}
.region-code {
  font: 600 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-mono);
  letter-spacing: -0.03em;
}
.region-name { margin-top: 8px; color: var(--ink-3); font: 500 12.5px/1.4 var(--font-mono); }
.region-copy { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.region-list { margin: 18px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.region-list li { color: var(--ink-2); font-size: 14px; padding-left: 16px; position: relative; }
.region-list li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }

.noclaim {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 32px;
  margin-top: 16px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px dashed rgba(251, 191, 36, 0.35);
  border-radius: var(--r-lg);
  background: rgba(251, 191, 36, 0.025);
}
.noclaim-head h3 { margin-top: 14px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.noclaim-head p:not(.eyebrow) { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.noclaim-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.noclaim-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.noclaim-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 10px; height: 1.5px;
  background: var(--amber);
}

@media (max-width: 960px) {
  .sec-grid, .noclaim { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sec-cells, .noclaim-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14. Benchmarks ---------- */
.bench::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 50% 55%, rgba(76, 61, 180, 0.2), transparent 70%);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line-2);
}
.stat { padding: 36px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-label {
  color: var(--ink-2);
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 22px;
  font: 600 clamp(2.8rem, 4.8vw, 4.3rem)/1 var(--font-display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat-num { display: inline-block; }
.stat-unit { color: var(--ink-2); font: 500 0.36em/1 var(--font-mono); letter-spacing: 0; }
.stat-pct {
  align-self: center;
  padding: 4px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--cyan);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.04em;
}
.stat-value-text { font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; color: var(--ink-2); }
.stat-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; }

.meter { margin-top: 20px; }
.meter-track { position: relative; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.meter-track::after {
  /* target marker */
  content: "";
  position: absolute;
  right: 0; top: -4px; bottom: -4px;
  width: 2px;
  border-radius: 2px;
  background: var(--ink-3);
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
  transform-origin: left;
}
.js .meter-fill { transform: scaleX(0); transition: transform 1.4s var(--ease) 0.25s; }
.js .is-in .meter-fill { transform: scaleX(1); }
.meter-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-3); font: 500 11px/1 var(--font-mono); }

.stat-open {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 10px);
}

.bench-foot {
  margin-top: 20px;
  color: var(--ink-3);
  font: 400 12px/1.6 var(--font-mono);
  text-align: center;
}

@media (max-width: 1023px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 28px 4px; }
}

/* ---------- 15. Quickstart ---------- */
.qs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.qs-intro h2 { margin-top: 18px; font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -0.04em; }
.qs-intro .lede { margin-top: 20px; color: var(--ink-2); font-size: clamp(1.04rem, 1.35vw, 1.18rem); }
.qs-steps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: qs;
  display: grid;
  gap: 16px;
}
.qs-steps li {
  position: relative;
  padding-left: 44px;
  color: var(--ink-2);
  font-size: 15.5px;
  counter-increment: qs;
}
.qs-steps li::before {
  content: counter(qs);
  position: absolute;
  left: 0; top: -2px;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--cyan);
  font: 500 12px/1 var(--font-mono);
}
.verbs-label { margin-top: 32px; color: var(--ink-3); font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.04em; }
.verbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.verbs li {
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: 500 13px/1 var(--font-mono);
}
.verbs li.future { border-style: dashed; color: var(--ink-3); background: none; }
.verbs small { margin-left: 6px; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; }

.code-card {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(6, 8, 15, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-tabs {
  gap: 2px;
  padding: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs [role="tab"] {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  font: 500 12.5px/1 var(--font-mono);
}
.code-tabs .thumb { top: 6px; bottom: 6px; background: var(--grad-soft); border-color: rgba(167, 139, 250, 0.4); }
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font: 500 12px/1.2 var(--font-mono);
}
.code-head b { font-weight: 500; }
.code-card pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  color: #d7dbef;
  font: 400 13.5px/1.75 var(--font-mono);
  tab-size: 2;
}
.code-card pre code { font: inherit; }
.code-card [role="tabpanel"] pre { min-height: 214px; }
.js .code-card [role="tabpanel"]:not([hidden]) { animation: panel-in 0.4s var(--ease); }

.qs-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.qs-note { margin-top: 18px; color: var(--ink-3); font-size: 14.5px; }

@media (max-width: 960px) {
  .qs-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .qs-pair { grid-template-columns: minmax(0, 1fr); }
  .code-card pre { font-size: 12.5px; padding: 16px; }
  .code-card [role="tabpanel"] pre { min-height: 0; }
}

/* ---------- 16. Pricing ---------- */
.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.price-card:hover::before { opacity: 1; }
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, #0f1124, #090b16) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 80px -30px rgba(139, 92, 246, 0.55);
}
.featured-tag {
  position: absolute;
  top: 20px; right: 20px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--ink);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink-2); }
.price { margin-top: 18px; font: 600 clamp(2.2rem, 3.4vw, 2.8rem)/1 var(--font-display); letter-spacing: -0.04em; }
.price-for { margin-top: 10px; color: var(--ink-3); font-size: 15px; }
.checks { margin: 24px 0 28px; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 14.5px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 16px; height: 16px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-card .btn { margin-top: auto; }

@media (max-width: 960px) {
  .prices { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

/* ---------- 17. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font: 500 clamp(1.05rem, 1.5vw, 1.2rem)/1.35 var(--font-display);
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq-icon {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: var(--ink-2);
  border-radius: 2px;
}
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon { transform: rotate(45deg); border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.08); }
.faq-body { padding: 0 52px 24px 0; color: var(--ink-2); }

@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq::details-content {
      height: 0;
      overflow: clip;
      transition: height 0.4s var(--ease), content-visibility 0.4s allow-discrete;
    }
    .faq[open]::details-content { height: auto; }
  }
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { margin-bottom: 8px; }
  .faq-body { padding-right: 0; }
}

/* ---------- 18. Final CTA + footer ---------- */
.final {
  position: relative;
  padding-block: clamp(110px, 15vw, 200px);
  text-align: center;
  overflow: hidden;
}
.final::before {
  /* concentric orbit rings rising from below */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-radial-gradient(circle at 50% 115%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 64px),
    radial-gradient(60% 70% at 50% 100%, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.08) 50%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
}
.final h2 {
  margin-top: 22px;
  font-size: clamp(3rem, 8.5vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.final h2 .grad-text { padding-bottom: 0.08em; display: inline-block; }
.final-sub {
  max-width: 34em;
  margin: 26px auto 0;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(4, 5, 9, 0.7);
  color: var(--ink-3);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p { margin-top: 14px; max-width: 28ch; }
.footer-h {
  margin-bottom: 14px;
  color: var(--ink-2);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer nav a { text-decoration: none; transition: color 0.2s; }
.site-footer nav a:hover { color: var(--ink); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.footer-legal p:first-child { max-width: 80ch; }
.footer-legal p:last-child { flex: none; font-family: var(--font-mono); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- 19. Motion, reveal & accessibility ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .aurora { animation: none !important; }
  .caret { animation: none !important; }
}

@media (forced-colors: active) {
  .grad-text { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
  .btn, .copy, .tile, .price-card, .code-card, .tag, .pill { border: 1px solid CanvasText; }
  .thumb { background: Highlight; }
  .backdrop, .hero::before, .final::before { display: none; }
}

@media print {
  .backdrop, .site-header, .hero-visual, .copy { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   20. Product site additions — record, walkthrough, benefits, control,
       integration matrix, forms and documentation pages.
   ========================================================================== */

.hero-support {
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 14.5px;
}

/* ---------- Memory record (hero visual) ---------- */
.record-wrap { display: flex; align-items: center; aspect-ratio: auto; max-width: 540px; }
.record {
  width: 100%;
  padding: clamp(20px, 3vw, 30px);
}
.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.record-ws { color: var(--ink-3); font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.record-statement {
  margin-top: 20px;
  color: var(--ink);
  font: 600 clamp(1.15rem, 2vw, 1.45rem)/1.4 var(--font-display);
  letter-spacing: -0.02em;
}
.record-meta { display: grid; gap: 10px; margin: 22px 0 0; }
.record-meta > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.record-meta dt { color: var(--ink-3); font: 500 11.5px/1.5 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.record-meta dd { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.record-history {
  display: grid;
  gap: 6px;
  margin: 24px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font: 500 12.5px/1.4 var(--font-mono);
}
.record-history li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-3);
  background: rgba(6, 8, 16, 0.5);
}
.record-history li.current { color: var(--ink); border-color: rgba(94, 234, 212, 0.35); background: rgba(94, 234, 212, 0.06); }
.record-history li.current span:last-child { color: var(--mint); }
.record-history li span:first-child { color: var(--ink-2); }
.record-history li span:last-child { justify-self: end; }

/* ---------- Walkthrough ---------- */
.walk-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 32px;
  color: var(--ink-3);
  font-size: 14px;
}
.walk-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.walk-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.walk-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 8, 16, 0.5);
  color: var(--ink-2);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.walk-step:hover { border-color: var(--line-2); color: var(--ink); }
.walk-step[aria-selected="true"] {
  border-color: rgba(167, 139, 250, 0.5);
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.08));
  color: var(--ink);
}
.walk-num { color: var(--ink-3); font: 500 12px/1.5 var(--font-mono); letter-spacing: 0.08em; }
.walk-step[aria-selected="true"] .walk-num { color: var(--cyan); }
.walk-step b { display: block; font-size: 15.5px; font-weight: 600; }
.walk-step small { display: block; margin-top: 5px; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.walk-stage { position: relative; min-height: 300px; }
.walk-panel:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 12px; }
.walk-cap { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.rec-line { margin: 0 0 6px; }
.rec-line:last-child { margin-bottom: 0; }
.rec-muted { color: var(--ink-3); }
.rec-ok { color: var(--mint); }
.rec-bad { color: #fda4af; }

.walk-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
}
.walk-boundary h3 { margin-top: 14px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; }
.walk-boundary p:not(.eyebrow) { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Four benefits ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.benefit {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.benefit-icon {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--ink-3);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
}
.benefit h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); letter-spacing: -0.03em; }
.benefit p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Control & review ---------- */
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.control-cell { padding: clamp(24px, 3vw, 34px); }
.control-cell h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.control-cell p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.control-foot { margin-top: 28px; color: var(--ink-3); font-size: 15px; }

/* ---------- Integration matrix ---------- */
.matrix-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow-x: auto;
}
.matrix-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.matrix-table th, .matrix-table td { padding: 16px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.matrix-table thead th {
  border-top: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-3);
  font: 500 11.5px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.matrix-table td { color: var(--ink-2); }
.matrix-table td:first-child { color: var(--ink); }
.matrix-table .tag { white-space: nowrap; }
.matrix-note { margin-top: 22px; color: var(--ink-3); font-size: 15px; max-width: 78ch; }
@media (max-width: 720px) {
  .matrix-table th, .matrix-table td { padding: 12px 14px; }
}

/* ---------- Pricing additions ---------- */
.price-note { margin: 0 0 20px; color: var(--ink-3); font-size: 13.5px; line-height: 1.55; }
.pricing-foot { margin-top: 28px; color: var(--ink-3); font-size: 14.5px; text-align: center; }

/* ---------- Sub-page hero, prose and forms ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(48px, 7vw, 88px);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.page-hero .lede {
  max-width: 62ch;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}
.breadcrumb { margin-bottom: 26px; color: var(--ink-3); font: 500 12.5px/1 var(--font-mono); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.prose { max-width: 74ch; }
.prose h2 { margin-top: clamp(48px, 6vw, 72px); font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 34px; font-size: 1.2rem; letter-spacing: -0.01em; }
.prose p { margin-top: 16px; color: var(--ink-2); font-size: 16px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.prose li::marker { color: var(--cyan); }
.prose code { color: var(--ink); }
.prose a { color: var(--cyan); }
.prose .callout {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--violet);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.03);
}
.prose .callout p { margin-top: 0; }
.prose .callout p + p { margin-top: 12px; }
.prose table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink-3); font: 500 11.5px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; background: rgba(255, 255, 255, 0.03); }
.prose td { color: var(--ink-2); }
.prose td strong { color: var(--ink); }

.form-card { max-width: 620px; padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; gap: 20px; margin-top: 26px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.field .hint { color: var(--ink-3); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(5, 7, 14, 0.75);
  color: var(--ink);
  font: 400 15px/1.5 var(--font-body);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-color: transparent;
}
.field textarea { min-height: 110px; resize: vertical; }
.field .optional { color: var(--ink-3); font-weight: 400; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 22px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14.5px; }
.form-status[data-state="ok"] { border-color: rgba(94, 234, 212, 0.4); background: rgba(94, 234, 212, 0.07); color: var(--ink); }
.form-status[data-state="error"] { border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.07); color: var(--ink); }
.form-status[data-state="error"] a { color: var(--cyan); }
.form-note { margin-top: 18px; color: var(--ink-3); font-size: 13.5px; }

.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.doc-links { display: grid; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.doc-links a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; transition: border-color 0.2s, color 0.2s; }
.doc-links a:hover { border-color: var(--line-2); color: var(--ink); }
.doc-links code { display: block; margin-top: 3px; color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 1023px) {
  .walk-grid { grid-template-columns: minmax(0, 1fr); }
  .walk-stage { min-height: 0; }
}
@media (max-width: 860px) {
  .walk-boundary, .doc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .benefits, .control-grid { grid-template-columns: minmax(0, 1fr); }
  .record-meta > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
