/* ─── o11ykit — Unified Design System ─────────────────────────────────── */

:root {
  /* ── Brand Colors ────────────────────────────────────────────────────── */
  --paper: #f2efe7;
  --paper-2: #e8e3d5;
  --paper-3: #d9d2be;
  --ink: #11110f;
  --ink-2: #2a2823;
  --ink-3: #6b6657;
  --rule: rgba(17, 17, 15, 0.16);
  --rule-2: rgba(17, 17, 15, 0.08);

  /* Global accent — engines override this in their base.css */
  --signal: oklch(0.66 0.16 42);
  --signal-2: oklch(0.55 0.17 38);
  --signal-3: oklch(0.86 0.06 60);

  /* Per-product accent defaults */
  --accent-otlp: var(--signal);
  --accent-tsdb: var(--signal);
  --accent-octo: var(--signal-2);
  --accent-bench: var(--ink-2);

  /* ── Typography ───────────────────────────────────────────────────────── */
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;
  --display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, sans-serif;

  /* ── Layout ──────────────────────────────────────────────────────────── */
  --max-w: 1440px;
  --gutter: 48px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;

  /* ── Shadows ─────────────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(17, 17, 15, 0.06);
  --shadow-md: 0 4px 12px rgba(17, 17, 15, 0.08);
  --shadow-lg: 0 8px 24px rgba(17, 17, 15, 0.12);

  /* ── Transitions ─────────────────────────────────────────────────────── */
  --ease: 120ms ease;
  --ease-out: 200ms ease-out;

  /* ── Compatibility aliases (used by legacy component CSS) ─────────────── */
  --ink-soft: var(--ink-2);
  --ink-muted: var(--ink-3);
  --surface: var(--paper);
  --surface-strong: var(--paper);
  --line: var(--rule);
  --line-strong: var(--rule);
  --bg: var(--paper);
  --text: var(--ink);
  --text-secondary: var(--ink-2);
  --text-tertiary: var(--ink-3);
  --border: var(--rule);
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Inline code */
code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Typography Scale ──────────────────────────────────────────────────── */
.t-display {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.t-h1 {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.t-h2 {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.t-h3 {
  font-family: var(--sans);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.t-body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.t-mono {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.t-mono-sm {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.t-eyebrow,
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 12px;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ── Background Utilities ──────────────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(var(--rule-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-2) 1px, transparent 1px);
  background-size: 8px 8px;
}

.grid-bg-major {
  background-image:
    linear-gradient(var(--rule-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-2) 1px, transparent 1px),
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size:
    8px 8px,
    8px 8px,
    64px 64px,
    64px 64px;
}

.dots-bg {
  background-image: radial-gradient(circle, var(--rule) 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn,
.stamp,
.stamp-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--ease);
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}

.btn:hover,
.stamp:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

.btn-primary,
.stamp-fill {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover,
.stamp-fill:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

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

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--ink-2);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
}

.btn-lg {
  font-size: 15px;
  padding: 12px 24px;
}

/* ── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  flex-shrink: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 0;
}

.topnav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 14px 14px;
  border-bottom: 2px solid transparent;
  transition:
    color var(--ease),
    border-color var(--ease);
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

.topnav-cta {
  margin-left: 14px;
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  padding: 80px var(--gutter) 64px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--signal);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--signal);
}

.hero-sub {
  max-width: 56ch;
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-lede {
  max-width: 58ch;
  margin: 0 auto 24px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--signal);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

/* ── Tags ──────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
  padding: 4px 10px;
  color: var(--ink-3);
  background: transparent;
}

/* ── Card / Panel ──────────────────────────────────────────────────────── */
.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 16px;
}

.card p {
  margin: 8px 0 0;
  color: var(--ink-2);
  line-height: 1.45;
  font-size: 14px;
}

.card-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-links a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  transition: border-color var(--ease);
}

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

/* ── Section Containers ────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gutter);
}

section {
  border-bottom: 1px solid var(--ink);
}

section:last-of-type {
  border-bottom: none;
}

/* ── Section Intro ─────────────────────────────────────────────────────── */
.section-intro {
  margin: 0 0 18px;
  color: var(--ink-2);
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Stat Strips ───────────────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--paper);
}

.stat-strip .stat {
  padding: 32px;
  border-right: 1px solid var(--ink);
  text-align: center;
}

.stat-strip .stat:last-child {
  border-right: none;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ── Pipeline (used in hero only) ────────────────────────────────────────── */
.hero .pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}

.hero .pipeline-stage {
  padding: 20px;
  border-right: 1px solid var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.hero .pipeline-stage:last-child {
  border-right: none;
}

.hero .pipeline-stage.active {
  background: var(--paper-2);
}

.hero .stage-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.hero .stage-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.hero .stage-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}

.hero .pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 18px;
  background: var(--paper);
  padding: 2px 0;
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

/* ── Hair / Section Rules ──────────────────────────────────────────────── */
.hair {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.section-rule {
  border: none;
  border-top: 1px solid var(--ink);
  margin: 0;
}

/* ── Pipeline Step (grid-based hero pipeline) ─────────────────────────── */
.pipeline-step {
  padding: 20px;
  border-right: 1px solid var(--ink);
  position: relative;
}

.pipeline-step:last-child {
  border-right: none;
}

.pipeline-step-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.pipeline-step-name {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.pipeline-step-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}

.pipeline-arrow-r::after {
  content: "\2192";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-3);
  background: var(--paper);
  padding: 2px;
  z-index: 1;
}

/* ── Accent Color Utilities ───────────────────────────────────────────── */
.card.accent-otlp {
  border-left: 3px solid var(--accent-otlp);
}
.card.accent-tsdb {
  border-left: 3px solid var(--accent-tsdb);
}
.card.accent-octo {
  border-left: 3px solid var(--accent-octo);
}
.card.accent-bench {
  border-left: 3px solid var(--accent-bench);
}

.pipeline-stage.accent-otlp {
  border-top: 3px solid var(--accent-otlp);
}
.pipeline-stage.accent-tsdb {
  border-top: 3px solid var(--accent-tsdb);
}
.pipeline-stage.accent-octo {
  border-top: 3px solid var(--accent-octo);
}
.pipeline-stage.accent-bench {
  border-top: 3px solid var(--accent-bench);
}

/* ── Pipeline (default flex, used on product pages) ───────────────────── */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.pipeline-stage {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  position: relative;
  text-align: center;
}

.pipeline-stage .stage-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.pipeline-stage .stage-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.pipeline-stage .stage-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 18px;
  background: var(--paper);
  padding: 0 4px;
  flex-shrink: 0;
}

/* ── Primitives Grid (index page) ─────────────────────────────────────── */
.primitives-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}

.primitive-card {
  padding: 24px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.primitive-card:last-child {
  border-right: none;
}

.primitive-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.primitive-signal {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--signal);
}

.primitive-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.primitive-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  display: inline-block;
  margin-top: auto;
  padding-bottom: 1px;
}

.primitive-link:hover {
  border-bottom-color: var(--signal);
  color: var(--signal);
}

/* ── Boundaries Grid ───────────────────────────────────────────────────── */
.boundaries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}

.boundary-card {
  padding: 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.boundary-card:nth-child(3n) {
  border-right: none;
}

.boundary-card:nth-child(n + 4) {
  border-bottom: none;
}

.boundary-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.boundary-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 0;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--paper);
  padding: 32px 0;
}
.site-footer > p {
  text-align: center;
}

.signal-link,
.signal-text {
  color: var(--signal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gutter);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand-tagline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  font-size: 13px;
  color: var(--ink-2);
  transition: color var(--ease);
}

.footer-col a:hover {
  color: var(--signal);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* ── Dark Section (Manifesto) ──────────────────────────────────────────── */
.section-dark {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--ink);
}

.section-dark .t-eyebrow {
  color: var(--ink-3);
}

.manifesto-quote {
  font-family: var(--display);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
  max-width: 52ch;
}

/* ── Code Block ────────────────────────────────────────────────────────── */
.code-block {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  border: 1px solid var(--ink);
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

.code-block .code-comment {
  color: var(--ink-3);
}

.code-block .code-signal {
  color: var(--signal-3);
}

.code-panel pre {
  max-width: 100%;
  overflow-x: auto;
}

.code-panel pre code {
  display: block;
  width: max-content;
  min-width: 100%;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.regression-table {
  min-width: 420px;
  width: 100%;
  border-collapse: collapse;
}

/* ── Skip Link ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

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

/* ── Layout Utilities ──────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 12px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.try-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.try-strip a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color var(--ease);
  text-decoration: none;
}
.try-strip a:hover {
  border-color: var(--ink);
}

.learn-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.learn-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  transition: border-color var(--ease);
  text-decoration: none;
}
.learn-strip a:hover {
  border-color: var(--ink);
}

.format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.format-tag {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 6px 12px;
}

.checklist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
  line-height: 1.4;
  display: grid;
  gap: 4px;
}
.checklist.wide {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-left: 0;
  list-style: none;
}
.checklist.wide li {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 10px 12px;
}

.actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.actions a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--rule);
  padding: 10px 12px;
  transition: border-color var(--ease);
}
.actions a:hover {
  border-color: var(--ink);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: 999px;
}
.pill:hover {
  border-color: var(--ink);
}

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

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
  }

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

  .primitive-card:nth-child(3) {
    border-right: none;
  }
  .primitive-card:nth-child(n + 4) {
    border-top: 1px solid var(--ink);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .topbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px var(--gutter);
    gap: 8px;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 0;
  }

  .topnav a {
    padding: 8px 10px;
    font-size: 11px;
  }

  .topnav-cta {
    margin-left: 0;
  }

  .hero {
    padding: 48px var(--gutter) 40px;
  }

  .pipeline {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hero .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-step {
    border-right: none;
    border-bottom: 1px solid var(--ink);
  }

  .pipeline-step:last-child {
    border-bottom: none;
  }

  .pipeline-arrow-r::after {
    display: none;
  }

  .pipeline-stage {
    min-width: 0;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--ink);
  }

  .pipeline-stage:last-child {
    border-bottom: none;
  }

  .pipeline-arrow {
    display: none;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-strip .stat {
    border-bottom: 1px solid var(--ink);
  }

  .stat-strip .stat:nth-child(odd) {
    border-right: 1px solid var(--ink);
  }
  .stat-strip .stat:nth-child(even) {
    border-right: none;
  }
  .stat-strip .stat:nth-child(n + 3) {
    border-bottom: none;
  }

  .primitives-grid {
    grid-template-columns: 1fr;
  }

  .primitive-card {
    border-right: none;
    border-bottom: 1px solid var(--ink);
  }

  .primitive-card:last-child {
    border-bottom: none;
  }

  .boundaries-grid {
    grid-template-columns: 1fr;
  }

  .boundary-card {
    border-right: none;
    border-bottom: 1px solid var(--ink);
  }

  .boundary-card:last-child {
    border-bottom: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip .stat {
    border-right: none;
    border-bottom: 1px solid var(--ink);
  }

  .stat-strip .stat:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
