/* JevFilter landing. Precision instrument / schema as contract. */

:root {
  color-scheme: light;
  --bg: #f5f4ee;
  --bg-2: #eeede5;
  --surface: #fbfbf7;
  --surface-2: #ffffff;
  --line: rgba(20, 24, 28, 0.12);
  --line-strong: rgba(20, 24, 28, 0.22);
  --grid: rgba(20, 24, 28, 0.055);
  --text: #15181b;
  --text-2: #3b4148;
  --muted: #555c63;
  --accent: #c6f432;
  --accent-ink: #151c02;
  --accent-text: #466000;
  --accent-soft: rgba(111, 150, 0, 0.12);
  --focus: #466000;

  --code-bg: #fdfdf9;
  --code-bar: #f0efe7;
  --tk-kw: #8a3b8f;
  --tk-str: #466000;
  --tk-fn: #1d5f9a;
  --tk-num: #a04a00;
  --tk-com: #6b7178;
  --tk-punct: #5a6168;
  --tk-prop: #15181b;

  --st-ready: #1c7a3c;
  --st-clar: #946000;
  --st-unsup: #5f45b8;
  --st-block: #b42323;
  --st-unavail: #5a6068;

  --font-display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --section-y: 64px;

  --radius: 10px;
  --radius-sm: 6px;
  --gutter: 16px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0e11;
    --bg-2: #101317;
    --surface: #13161a;
    --surface-2: #181c21;
    --line: rgba(230, 236, 242, 0.09);
    --line-strong: rgba(230, 236, 242, 0.18);
    --grid: rgba(230, 236, 242, 0.035);
    --text: #eceee9;
    --text-2: #c3c8cd;
    --muted: #9aa2a9;
    --accent: #c6f432;
    --accent-ink: #151c02;
    --accent-text: #c6f432;
    --accent-soft: rgba(198, 244, 50, 0.1);
    --focus: #c6f432;

    --code-bg: #111418;
    --code-bar: #161a1f;
    --tk-kw: #e39bea;
    --tk-str: #c6f432;
    --tk-fn: #8ecbff;
    --tk-num: #ffbf70;
    --tk-com: #8a929a;
    --tk-punct: #9aa2a9;
    --tk-prop: #eceee9;

    --st-ready: #5fdc8a;
    --st-clar: #f5c14b;
    --st-unsup: #b3a2ff;
    --st-block: #ff8080;
    --st-unavail: #a4abb2;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e11;
  --bg-2: #101317;
  --surface: #13161a;
  --surface-2: #181c21;
  --line: rgba(230, 236, 242, 0.09);
  --line-strong: rgba(230, 236, 242, 0.18);
  --grid: rgba(230, 236, 242, 0.035);
  --text: #eceee9;
  --text-2: #c3c8cd;
  --muted: #9aa2a9;
  --accent: #c6f432;
  --accent-ink: #151c02;
  --accent-text: #c6f432;
  --accent-soft: rgba(198, 244, 50, 0.1);
  --focus: #c6f432;

  --code-bg: #111418;
  --code-bar: #161a1f;
  --tk-kw: #e39bea;
  --tk-str: #c6f432;
  --tk-fn: #8ecbff;
  --tk-num: #ffbf70;
  --tk-com: #8a929a;
  --tk-punct: #9aa2a9;
  --tk-prop: #eceee9;

  --st-ready: #5fdc8a;
  --st-clar: #f5c14b;
  --st-unsup: #b3a2ff;
  --st-block: #ff8080;
  --st-unavail: #a4abb2;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* hairline blueprint grid */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 30%, transparent 75%);
}

body > * { position: relative; z-index: 1; }

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

a { color: inherit; }

code, pre, kbd { font-family: var(--font-mono); font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }

:not(pre) > code {
  font-size: 0.88em;
  padding: 0.08em 0.36em;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.nw, code.nw { white-space: nowrap; }

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

p { margin: 0; }

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

.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 {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip:focus { top: 12px; }

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

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1024px) {
  :root { --section-y: 96px; }
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand-mark .bm-bg { fill: var(--text); }
.brand-mark .bm-br { stroke: var(--bg); }
.brand-mark .bm-dot { fill: var(--accent); }

.site-nav { display: none; margin-left: 12px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--bg-2); }

@media (min-width: 920px) { .site-nav { display: block; } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.icon-link, .theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.icon-link:hover, .theme-toggle:hover { color: var(--text); border-color: var(--line); background: var(--surface); }
.theme-toggle:active { transform: translateY(1px); }

.theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 var(--section-y); }

.hero-grid, .wont-grid, .faq-grid, .byok-grid, .steps, .pipe { grid-template-columns: minmax(0, 1fr); }
.hero-grid > *, .wont-grid > *, .faq-grid > *, .byok-grid > * { min-width: 0; }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1100px) {
  .hero { padding: 72px 0 var(--section-y); }
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
  .hero-copy { padding-top: 8px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 16ch;
}
.hero h1 .hl {
  color: var(--muted);
  display: block;
  margin-top: 0.12em;
}

.lede {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text-2);
  max-width: 50ch;
}

.install {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9rem;
}
.install-prompt { font-family: var(--font-mono); color: var(--accent-text); font-weight: 500; }
.install code {
  flex: 1;
  min-width: 0;
  white-space: normal;
  line-height: 1.5;
  padding: 6px 0;
}

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.78rem/1 var(--font-mono);
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
.copy-btn:active { transform: translateY(1px); }
.copy-btn.is-copied { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background-color 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.btn span[aria-hidden] { transition: transform 0.2s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-soft);
}
.btn-primary:hover { box-shadow: 0 0 0 5px var(--accent-soft); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--text); }

.meta-row {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.meta-row li + li::before {
  content: "·";
  margin: 0 10px;
  color: var(--line-strong);
}

/* hero load reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(6) { animation-delay: 0.3s; }
  .hero-term { animation: rise 0.8s 0.2s var(--ease) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- terminal: always a dark panel with its own fixed tokens ---------- */
.hero-term { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.term-queries { display: flex; flex-wrap: wrap; gap: 6px; }
.q {
  font: 400 0.78rem/1.3 var(--font-mono);
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.q:hover { color: var(--text); border-color: var(--text); }
.q:active { transform: translateY(1px); }
.q[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.term-frame { position: relative; min-width: 0; }
.term-frame::before, .term-frame::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--accent-text);
  pointer-events: none;
}
.term-frame::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.term-frame::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }

.term {
  --t-bg: #0d1117;
  --t-line: rgba(240, 246, 252, 0.1);
  --t-text: #e6edf3;
  --t-muted: #9da7b3;
  --t-accent: #c6f432;
  --j-key: #e6edf3;
  --j-str: #c6f432;
  --j-num: #ffb86b;
  --j-lit: #79c0ff;
  --j-punct: #8b949e;

  background: #0d1117;
  color: var(--t-text);
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(1, 4, 9, 0.55), 0 8px 18px -10px rgba(1, 4, 9, 0.3);
  color-scheme: dark;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: #0d1117;
  border-bottom: 1px solid var(--t-line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--t-muted);
}
.term-dots { display: inline-flex; gap: 6px; flex: none; }
.term-dots span { width: 10px; height: 10px; border-radius: 50%; background: #30363d; }
.term-dots span:first-child { background: #3d444d; }
.term-title { color: var(--t-text); }
.term-note { margin-left: auto; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 440px) { .term-note { display: none; } }

.term-screen { background: #0d1117; display: flex; flex-direction: column; height: 36rem; }
@media (min-width: 600px) { .term-screen { height: 32rem; } }

.term-cmd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  flex: none;
}
.term-prompt { color: var(--t-accent); flex: none; }
.term-cmd-text { color: var(--t-text); white-space: pre-wrap; word-break: break-word; min-width: 0; }
.install code, .term-cmd-text { background: none; border: 0; border-radius: 0; font-size: inherit; padding-left: 0; padding-right: 0; }
.term-cmd-text .t-kw { color: #d2a8ff; }
.term-cmd-text .t-fn { color: #79c0ff; }
.term-cmd-text .t-str { color: #c6f432; }
.term-cmd-text .t-p { color: var(--j-punct); }

.caret {
  display: inline-block;
  width: 0.55em; height: 1.1em;
  margin-left: -8px;
  transform: translateY(0.2em);
  background: var(--t-accent);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.05s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }
.caret.is-hidden { visibility: hidden; }

.term-live { position: relative; background: #0d1117; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.term-live::after {
  content: "";
  position: absolute;
  left: 0; right: 10px; bottom: 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 17, 23, 0), #0d1117 85%);
  opacity: 0;
  transition: opacity 0.2s;
}
.term-live.has-more::after { opacity: 1; }
.term-out {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 2px 18px 16px;
  background: #0d1117;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--t-text);
  scrollbar-width: thin;
  scrollbar-color: #30363d #0d1117;
}
.term-out::-webkit-scrollbar { width: 10px; height: 10px; background: #0d1117; }
.term-out::-webkit-scrollbar-thumb { background: #30363d; border-radius: 8px; border: 2px solid #0d1117; }
.term-out::-webkit-scrollbar-corner { background: #0d1117; }
.term-out:focus-visible { outline: 2px solid var(--t-accent); outline-offset: -2px; border-radius: 0; }

.jl { display: block; min-height: 1.6em; white-space: pre; }
@media (prefers-reduced-motion: no-preference) {
  .jl.is-new { animation: jl-in 0.22s var(--ease) both; }
}
@keyframes jl-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: none; }
}
.j-key { color: var(--j-key); }
.j-str { color: var(--j-str); }
.j-num { color: var(--j-num); }
.j-lit { color: var(--j-lit); }
.j-p { color: var(--j-punct); }

.term-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
  flex: none;
  padding: 14px 18px 18px;
  background: #0d1117;
  border-top: 1px solid var(--t-line);
}

.badge {
  --c: #9da7b3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 0.74rem/1 var(--font-mono);
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 12%, #0d1117);
  border-radius: 999px;
  padding: 6px 10px;
  flex: none;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.badge[data-status="ready"] { --c: #56d364; }
.badge[data-status="needs_clarification"] { --c: #e3b341; }
.badge[data-status="unsupported"] { --c: #bc8cff; }
.badge[data-status="blocked"] { --c: #ff7b72; }
.badge[data-status="unavailable"] { --c: #9da7b3; }
.badge[data-status="running"] { --c: #9da7b3; }
@media (prefers-reduced-motion: no-preference) {
  .badge.is-pop { animation: pop 0.35s var(--ease) both; }
}
@keyframes pop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

.term-extra { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; }
.x-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--t-muted); }
.x-msg { color: var(--t-text); }
.x-q { color: var(--t-text); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip .d { white-space: nowrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 5px 6px 5px 10px;
  border-radius: 6px;
  background: #1a2210;
  border: 1px solid rgba(198, 244, 50, 0.38);
  color: #e8f5c8;
}
.chip-x { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; color: #b7c49a; font-size: 0.85rem; line-height: 1; }
.chip.is-option { padding: 5px 10px; background: #211b0c; border-color: rgba(227, 179, 65, 0.45); color: #f6e3b4; }
.chip.is-option .chip-sub { color: #c9b98f; font-family: var(--font-mono); font-size: 0.72rem; }
@media (prefers-reduced-motion: no-preference) {
  .chip.is-new { animation: pop 0.34s var(--ease) both; }
}

.term-caption {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.status-legend {
  list-style: none;
  padding: 0;
  margin: -4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.78rem;
  color: var(--muted);
}
.status-legend li { display: inline-flex; align-items: center; gap: 6px; }
.status-legend code { background: none; border: 0; padding: 0; color: var(--text-2); font-size: 0.76rem; }
.legend-note { color: var(--accent-text); font-family: var(--font-mono); font-size: 0.72rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-unavail); }
.dot[data-status="ready"] { background: var(--st-ready); }
.dot[data-status="needs_clarification"] { background: var(--st-clar); }
.dot[data-status="unsupported"] { background: var(--st-unsup); }
.dot[data-status="blocked"] { background: var(--st-block); }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; border-top: 1px solid var(--line); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2, .byok-copy h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-lede { margin-top: 16px; color: var(--text-2); font-size: 1rem; max-width: 60ch; }

.annot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 18px;
  text-transform: lowercase;
}
.annot-idx {
  font-family: var(--font-mono);
  color: var(--accent-text);
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 0.72rem;
}

/* ---------- pipeline ---------- */
.pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: pipe;
}

.pipe-step {
  position: relative;
  padding: 18px 18px 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: pipe;
}
.pipe-step::before {
  content: counter(pipe, decimal-leading-zero);
  position: absolute;
  bottom: 12px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
/* connector (vertical by default) */
.pipe-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -29px;
  width: 1px;
  height: 28px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 7px);
}

.pipe-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  margin-bottom: 14px;
}
.pipe-title {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.pipe-detail { color: var(--text-2); font-size: 0.92rem; }
.pipe-detail code { font-size: 0.82em; }
.pipe-detail code.quote { line-height: 1.9; }

.pipe-step[data-kind="input"] { background: transparent; border-style: dashed; }

.pipe-step[data-kind="model"] {
  border: 1.5px solid var(--accent-text);
  background:
    repeating-linear-gradient(135deg, var(--accent-soft) 0 6px, transparent 6px 12px),
    var(--surface);
}
.pipe-step[data-kind="model"] .pipe-tag {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 500;
}

.pipe-step[data-kind="yours"] { background: var(--text); border-color: var(--text); }
.pipe-step[data-kind="yours"] .pipe-title,
.pipe-step[data-kind="yours"] .pipe-detail { color: var(--bg); }
.pipe-step[data-kind="yours"] .pipe-tag { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.pipe-step[data-kind="yours"]::before { color: color-mix(in srgb, var(--bg) 70%, transparent); }

@media (min-width: 700px) and (max-width: 1179px) {
  .pipe-step {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    column-gap: 24px;
    align-items: baseline;
    padding: 18px 48px 18px 20px;
  }
  .pipe-step .pipe-tag { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; justify-self: start; }
  .pipe-step .pipe-title, .pipe-step .pipe-detail { grid-column: 2; }
  .pipe-step::before { bottom: auto; top: 20px; }
}

@media (min-width: 1180px) {
  .pipe { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .pipe-step { display: flex; flex-direction: column; }
  .pipe-step:not(:last-child)::after {
    left: auto;
    right: -21px;
    top: 50%;
    bottom: auto;
    width: 20px;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--line-strong) 0 4px, transparent 4px 7px);
  }
  .pipe-step[data-kind="model"] { transform: translateY(-14px); }
}

.pipe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}
.pipe-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--surface); }
.swatch[data-kind="model"] { border: 1.5px solid var(--accent-text); background: var(--accent-soft); }

/* ---------- won't do ---------- */
.wont-grid { display: grid; gap: 8px; }
@media (min-width: 1000px) {
  .wont-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .wont .section-head { margin-bottom: 0; position: sticky; top: 32px; }
}
.wont-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.wont-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
  .wont-list li { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: baseline; }
}
.wont-key {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--st-block);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wont-key::before { content: "✕"; font-size: 0.8em; }
.wont-list p { font-size: 1.05rem; color: var(--text); line-height: 1.45; }

/* ---------- compare ---------- */
.cmp-wrap { width: 100%; overflow-x: auto; }
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.cmp th, .cmp td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-top: 0;
}
.cmp tbody th { font-weight: 600; width: 34%; }
.cmp tbody td { color: var(--text-2); }
.cmp-us th, .cmp-us td { background: var(--accent-soft); }
.cmp-us th { position: relative; color: var(--accent-text); }
.cmp-us th::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-text);
}
.cmp-us td { color: var(--text); font-weight: 500; }

@media (max-width: 599px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .cmp tbody th, .cmp td { border: 0; padding: 0 0 0 0; width: 100%; }
  .cmp tbody th { margin-bottom: 4px; }
  .cmp-us { padding: 14px 14px !important; }
  .cmp-us th, .cmp-us td { background: none; }
  .cmp tr.cmp-us { background: var(--accent-soft); border-left: 3px solid var(--accent-text); }
  .cmp-us th::before { display: none; }
}

/* ---------- code blocks ---------- */
.code {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--code-bg);
  min-width: 0;
}
.code-bar { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.code pre { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }

/* corner-bracket frame: the typed box motif */
.framed::before, .framed::after, .mini-frame::before, .mini-frame::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--accent-text);
  pointer-events: none;
}
.framed::before, .mini-frame::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.framed::after, .mini-frame::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
@media (max-width: 400px) {
  .framed::before, .framed::after, .mini-frame::before, .mini-frame::after { width: 12px; height: 12px; }
  .framed::before, .mini-frame::before { left: -6px; top: -6px; }
  .framed::after, .mini-frame::after { right: -6px; bottom: -6px; }
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 14px;
  background: var(--code-bar);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.code-bar .copy-btn { padding: 6px 9px; }
.code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.65;
  tab-size: 2;
  scrollbar-width: thin;
  color: var(--tk-prop);
}
.code pre:focus-visible { outline-offset: -2px; }
.tk-kw { color: var(--tk-kw); }
.tk-str { color: var(--tk-str); }
.tk-fn { color: var(--tk-fn); }
.tk-num { color: var(--tk-num); }
.tk-com { color: var(--tk-com); font-style: italic; }
.tk-p { color: var(--tk-punct); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.step { display: grid; gap: 16px; min-width: 0; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--text);
  color: var(--bg);
}
.step h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }
.step-note { color: var(--text-2); font-size: 0.95rem; max-width: 72ch; }

@media (min-width: 1100px) {
  .step { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 16px; align-items: start; }
  .step-head { grid-column: 1; grid-row: 1; align-items: flex-start; }
  .step .code { grid-column: 2; grid-row: 1 / span 2; }
  .step-note { grid-column: 1; grid-row: 2; font-size: 0.92rem; }
  .step .code pre { font-size: 0.78rem; }
}

/* ---------- byok ---------- */
.byok-grid { display: grid; gap: 32px; }
.byok-copy { max-width: 640px; }
.byok-powered { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.byok-powered a { color: var(--accent-text); text-underline-offset: 3px; }

.evidence {
  margin-top: 56px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--surface);
}
.evidence-title {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin: 0;
}
@media (min-width: 900px) { .evidence-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.evidence-grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.evidence-grid dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.evidence-grid dt { font-size: 0.84rem; color: var(--text-2); line-height: 1.4; }
.evidence-foot { margin-top: 20px; font-size: 0.88rem; color: var(--muted); }
.evidence-foot a { color: var(--accent-text); text-underline-offset: 3px; font-weight: 500; }

/* ---------- faq ---------- */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: transform 0.2s var(--ease), color 0.15s;
}
.faq-list details[open] summary::after { content: "−"; color: var(--accent-text); }
.faq-list summary:hover::after { color: var(--text); }
.faq-list details p { padding: 0 2px 22px 2px; color: var(--text-2); max-width: 64ch; }

/* ---------- closer ---------- */
.closer { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.closer-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.closer-copy { min-width: 0; }
.closer-copy .section-lede { margin: 0 0 4px; }
@media (min-width: 1000px) { .closer-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.mini-frame { position: relative; min-width: 0; }
.mini-term {
  background: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(1, 4, 9, 0.55);
  color-scheme: dark;
}
.mini-term .term-bar { --t-line: rgba(240, 246, 252, 0.1); --t-text: #e6edf3; --t-muted: #9da7b3; }
.mini-out { margin: 0; padding: 18px; overflow-x: auto; font-size: 0.8rem; line-height: 1.7; background: #0d1117; scrollbar-width: thin; scrollbar-color: #30363d #0d1117; }
.m-p { color: #8b949e; }
.m-kw { color: #d2a8ff; }
.m-fn { color: #79c0ff; }
.m-str { color: #c6f432; }
.m-key { color: #e6edf3; }
.m-num { color: #ffb86b; }
.m-com { color: #9da7b3; font-style: italic; }
.closer h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.08; max-width: 16ch; margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.footer-brand p { color: var(--muted); margin-top: 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- scroll reveal (only when JS is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- why jev ---------- */
.why-story { display: grid; gap: 16px; max-width: 68ch; color: var(--text-2); font-size: 1.02rem; }
.why-story p:first-child { color: var(--text); }

.why-sides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
@media (min-width: 800px) { .why-sides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.why-side { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; background: var(--surface); min-width: 0; }
.why-side[data-side="hosted"] { background: transparent; border-style: dashed; }
.why-side[data-side="jev"] { border: 1.5px solid var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.why-side-title { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 12px; }
.why-side[data-side="hosted"] .why-side-title { color: var(--text-2); }
.why-side dl { margin: 0; }
.why-side dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
@media (min-width: 480px) { .why-side dl > div { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; } }
.why-side dt { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.why-side dd { margin: 0; font-size: 0.95rem; color: var(--text); }
.why-side[data-side="hosted"] dd { color: var(--text-2); }

.why-notes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 800px) { .why-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1200px) { .why-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; } }
.why-notes li { padding: 20px 0 22px; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 1200px) { .why-notes li { border-bottom: 0; } }
.why-key { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-text); margin-bottom: 8px; }
.why-notes h3 { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }
.why-notes p { font-size: 0.93rem; color: var(--text-2); }
.why-cta { margin-top: 32px; }

/* ---------- faint blueprint grid behind lower sections ---------- */
.gridded { position: relative; isolation: isolate; }
.gridded::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 10%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 10%, #000 10%, transparent 70%);
}
.closer.gridded::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 70% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 70% 50%, #000 20%, transparent 75%);
}
@media (max-width: 599px) { .mini-out { white-space: pre-wrap; overflow-wrap: break-word; font-size: 0.76rem; } }
