/* ═══════════════════════════════════════════════════════════
   VERA — minimalist monochrome
   white canvas · black ink · gray hints · zero radius
   product surfaces are black boxes · Inter + JetBrains Mono
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #0a0a0a;
  --body: #444440;
  --muted: #73736e;
  --muted-soft: #a3a39e;
  --hairline: #e4e4e0;
  --hairline-soft: #efefec;
  --hairline-strong: #c9c9c4;
  --canvas: #ffffff;
  --canvas-soft: #f7f7f5;

  /* black box (product surfaces) */
  --box: #0a0a0a;
  --box-soft: #141414;
  --box-line: #262626;
  --box-line-strong: #3a3a3a;
  --box-ink: #f2f2ef;
  --box-body: #b3b3ad;
  --box-muted: #7a7a75;

  /* single accent — CTAs, swarm flashes, product activity */
  --accent: #d4f24b;
  --accent-active: #c4e13a;

  /* functional color inside black boxes: accent = pass/active, red = blocker */
  --ok: var(--accent);
  --bad: #e06060;

  --tl-thinking: #efefec;
  --tl-grep: #efefec;
  --tl-read: #efefec;
  --tl-edit: #efefec;
  --tl-done: var(--accent);

  --sans: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;
  --w: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: #fff; }
a { color: inherit; }
strong { color: var(--ink); font-weight: 600; }

/* ── type ───────────────────────────────────────────────── */
.display-mega {
  font-size: clamp(44px, 6.4vw, 72px); font-weight: 500; line-height: 1.02;
  letter-spacing: -2.4px; color: var(--ink);
}
.display-lg {
  font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.08;
  letter-spacing: -1.2px; color: var(--ink);
}
.display-md { font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -0.4px; color: var(--ink); }
.title-md { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.title-sm { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.body-md { font-size: 16px; font-weight: 400; line-height: 1.55; }
.body-sm { font-size: 14px; font-weight: 400; line-height: 1.5; }
.caption { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--muted); }
.caption-uppercase {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; line-height: 1.4;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted);
}
.code { font-family: var(--mono); font-size: 13px; font-weight: 400; line-height: 1.5; }

.grad { color: var(--muted-soft); }

/* ── reveal ─────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* word-by-word headline reveal */
.split .w {
  display: inline-block;
  opacity: 0; transform: translateY(.4em);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.split.in .w { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .split .w { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 10px 20px;
  font: 500 14px/1 var(--sans);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: #2b2b28; border-color: #2b2b28; }

/* accent CTA — noise-textured */
.btn-cta {
  position: relative; overflow: hidden;
  background: var(--accent); color: var(--ink); border-color: var(--accent);
  font-weight: 600;
}
.btn-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .2; mix-blend-mode: multiply;
}
.btn-cta:hover:not(:disabled) { background: var(--accent-active); border-color: var(--accent-active); }

/* subtle noise on solid black buttons too */
.btn-primary, .btn-download { position: relative; overflow: hidden; }
.btn-primary::after, .btn-download::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .08; mix-blend-mode: screen;
}
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn-download { background: var(--ink); color: #fff; height: 46px; padding: 12px 24px; border-color: var(--ink); }
.btn-download:hover:not(:disabled) { background: #2b2b28; border-color: #2b2b28; }
.btn-xs { height: 30px; padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* product-action buttons inside black boxes carry the accent */
.ide-card .btn-primary, .demo-card .btn-primary,
.band-guard .btn-primary, .cta-band .btn-primary {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
  font-weight: 600;
}
.ide-card .btn-primary:hover:not(:disabled), .demo-card .btn-primary:hover:not(:disabled),
.band-guard .btn-primary:hover:not(:disabled), .cta-band .btn-primary:hover:not(:disabled) {
  background: var(--accent-active); border-color: var(--accent-active);
}
.ide-card .btn-primary::after, .demo-card .btn-primary::after {
  mix-blend-mode: multiply; opacity: .18;
}
.ide-card .btn-secondary, .demo-card .btn-secondary {
  color: var(--box-ink); border-color: var(--box-line-strong); background: transparent;
}
.ide-card .btn-secondary:hover:not(:disabled), .demo-card .btn-secondary:hover:not(:disabled) {
  border-color: #fff; background: #fff; color: var(--ink);
}
.cta-band .btn-download { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-download:hover:not(:disabled) { background: #dcdcd8; border-color: #dcdcd8; }

/* ── badge ──────────────────────────────────────────────── */
.badge-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink);
  padding: 6px 12px;
}

/* ── logo mark — pixel V ────────────────────────────────── */
.brand-mark { width: 24px; height: 24px; flex: none; }
.brand-mark rect { fill: var(--ink); }
.footer .brand-mark rect { fill: var(--ink); }
@keyframes cell-flick { 0%, 100% { opacity: 1; } 50% { opacity: .18; } }
.brand:hover .brand-mark rect { animation: cell-flick .7s steps(1) infinite; }
.brand:hover .brand-mark rect:nth-child(2n) { animation-delay: .18s; }
.brand:hover .brand-mark rect:nth-child(3n) { animation-delay: .32s; }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font: 600 17px/1 var(--sans); letter-spacing: -0.4px; color: var(--ink); }
.nav-links { display: flex; gap: 26px; margin: 0 auto; }
.nav-links a {
  position: relative;
  font: 500 14px/1.4 var(--sans); color: var(--body);
  text-decoration: none; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-signin { font: 500 14px/1.4 var(--sans); color: var(--body); text-decoration: none; }
.nav-signin:hover { color: var(--ink); }
.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--ink);
  opacity: 0; transition: opacity .3s;
}
.nav.scrolled .nav-progress { opacity: 1; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 6px 0; }
.nav-mobile {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 24px 20px; border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}
.nav-mobile a { padding: 10px 0; text-decoration: none; color: var(--ink); font-size: 16px; }
.nav-mobile .btn { margin-top: 10px; }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--w); margin: 0 auto;
  padding: 80px 24px 72px; text-align: left;
}
.hero-swarm {
  position: absolute; top: 104px; right: 24px;
  width: 320px; z-index: 0;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy { max-width: 880px; margin-bottom: 48px; }
.hero h1 { margin: 24px 0 20px; }
.hero-sub { max-width: 580px; margin: 0 0 30px; font-size: 17px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; }

/* ── product chrome — the black box ─────────────────────── */
.ide-card, .demo-card {
  background: var(--box);
  border: 1px solid var(--box);
  overflow: hidden;
  color: var(--box-body);
  transition: box-shadow .3s var(--ease);
}
.ide-card:hover, .demo-card:hover { box-shadow: 8px 8px 0 var(--hairline); }
.band-guard .demo-card:hover, .cta-band .demo-card:hover { box-shadow: 8px 8px 0 var(--box-line); }
.ide-card.is-live, .demo-card.is-live { box-shadow: 8px 8px 0 var(--accent); }

.ide-topbar, .demo-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--box-line);
}
.demo-bar .btn { margin-left: auto; }

.dots { display: flex; gap: 5px; }
.dots i { width: 8px; height: 8px; background: var(--box-line-strong); }
.dots i:nth-child(1) { background: #4a4a4a; }
.dots i:nth-child(2) { background: #383838; }
.dots i:nth-child(3) { background: #2a2a2a; }

.ide-title {
  color: var(--box-muted); white-space: nowrap;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.ide-status {
  margin-left: auto; color: var(--box-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.ide-status::before {
  content: ""; width: 6px; height: 6px;
  background: currentColor; opacity: .7;
}
.ide-status.running { color: var(--accent); }
.ide-status.running::before { animation: pulse-dot 1.1s ease infinite; }
.ide-status.ok { color: var(--ok); }

@keyframes pulse-dot {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* thin scan progress under the topbar — visible while live */
.ide-progress {
  height: 2px; background: var(--box-line);
  opacity: 0; transition: opacity .3s var(--ease);
}
.ide-card.is-live .ide-progress { opacity: 1; }
.ide-progress span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  transition: width .45s var(--ease);
}

.ide-body {
  display: grid; grid-template-columns: 180px 1fr 300px;
  gap: 1px; background: var(--box-line);
  border-bottom: 1px solid var(--box-line);
}
.ide-body-hero { grid-template-columns: 172px minmax(0, 1.1fr) minmax(0, 1fr); min-height: 420px; }
/* sized to fit the fullest state of every stage (scanning, findings, seeded
   chat) so the card never resizes as the demo plays — measured, not guessed. */
.ide-pane {
  background: var(--box);
  padding: 16px;
  min-height: 420px;
  display: flex; flex-direction: column;
}

/* agent log streaming below findings — collapses smoothly, no hard jump */
.scan-log {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11.5px; color: var(--box-muted);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s var(--ease), opacity .2s var(--ease), padding-top .3s var(--ease);
}
.scan-log.show { max-height: 160px; opacity: 1; padding-top: 12px; }
.scan-log span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: enter .25s var(--ease) both; }
.scan-log .flag { color: var(--bad); }
.scan-log .pass { color: var(--box-muted); }

/* card status footer */
.ide-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 11px 16px;
  font-size: 11.5px; color: var(--box-muted);
}
.ide-foot-hint { text-align: right; }
.pane-label {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--box-muted); margin-bottom: 12px;
}
.pane-label .code { color: var(--box-muted); text-transform: none; letter-spacing: 0; }
.pane-empty { font-size: 13px; color: var(--box-muted); padding-top: 8px; line-height: 1.5; }
.ide-hint { padding: 11px 16px; text-align: center; color: var(--box-muted); }

/* sidebar checks */
.cat-list { list-style: none; }
.cat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; margin: 0 -6px;
  font-size: 13px; color: var(--box-body);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.cat-list li.scanning { background: var(--box-soft); color: var(--box-ink); }
.cat-st { color: var(--box-muted); transition: color .25s; }
.cat-st.ok { color: var(--ok); animation: pop-in .35s var(--ease); }
.cat-st.bad { color: var(--bad); animation: pop-in .35s var(--ease); }
.cat-st.warn { color: var(--box-ink); animation: pop-in .35s var(--ease); }
@keyframes pop-in {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.readiness { margin-top: 28px; }
.meter { height: 4px; background: var(--box-line); overflow: hidden; }
.meter span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  transition: width .6s var(--ease);
}
.readiness-num { margin-top: 8px; color: var(--box-ink); font-variant-numeric: tabular-nums; }

/* findings */
.finding-list { display: flex; flex-direction: column; gap: 8px; }
.finding {
  border: 1px solid var(--box-line); background: var(--box-soft);
  overflow: hidden;
  animation: enter .45s var(--ease) both;
  transition: border-color .25s var(--ease), background .25s;
}
.finding:hover { border-color: var(--box-line-strong); }
.finding-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; background: none; border: 0; cursor: pointer;
  font: 500 13.5px/1.4 var(--sans); color: var(--box-ink); text-align: left;
  transition: background .2s;
}
.finding-head:hover { background: rgba(255,255,255,.03); }
.finding-head > span:nth-child(2) { flex: 1; min-width: 0; }
.finding-head .gl { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--box-muted); }
.finding-head .chev {
  color: var(--box-muted); font-size: 10px;
  transition: transform .25s var(--ease);
}
.finding.open { border-color: var(--box-line-strong); }
.finding.open .chev { transform: rotate(90deg); }
.finding-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
  padding: 0 12px;
}
.finding-detail > .finding-detail-inner { overflow: hidden; }
.finding.open .finding-detail { grid-template-rows: 1fr; padding-bottom: 12px; }
.finding-detail p { font-size: 13px; color: var(--box-body); }
.finding-detail .path {
  font-family: var(--mono); font-size: 12px; color: var(--box-muted);
  margin: 8px 0 12px;
}
.finding.fixed { border-color: color-mix(in srgb, var(--ok) 45%, var(--box-line)); }
.finding .pr-mini {
  display: none; font-family: var(--mono); font-size: 12px; color: var(--ok);
  animation: enter .4s var(--ease);
}
.finding.fixed .pr-mini { display: inline; }
.finding.fixed .fix-btn { display: none; }

.sev {
  flex: none; display: inline-block;
  font-family: var(--mono);
  font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px;
}
.sev-blocker { background: var(--bad); color: #0a0a0a; }
.sev-warning {
  background: transparent; color: var(--box-body);
  border: 1px solid var(--box-line-strong); padding: 2px 7px;
}
.sev-pass { background: var(--ok); color: #0a0a0a; }
.sev-fixed { background: var(--ok); color: #0a0a0a; }

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* agent timeline */
.tl-list { display: flex; flex-direction: column; gap: 10px; }
.tl-entry {
  display: flex; align-items: baseline; gap: 8px;
  animation: enter .4s var(--ease) both;
}
.tl-pill {
  flex: none; display: inline-block;
  font-family: var(--mono);
  font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px;
  background: var(--pill, var(--hairline-soft)); color: var(--ink);
  border: 1px solid var(--hairline);
}
.tl-pill.done { border-color: var(--accent); }
.tl-entry p { font-size: 12.5px; line-height: 1.45; color: var(--body); }
.tl-entry .code { font-size: 11.5px; color: var(--ink); }

/* ── ticker ─────────────────────────────────────────────── */
.ticker {
  border-block: 1px solid var(--hairline);
  overflow: hidden; position: relative;
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex; gap: 44px; width: max-content;
  animation: ticker-slide 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: baseline; gap: 8px;
  font: 400 12.5px/1 var(--sans); color: var(--muted); white-space: nowrap;
}
.ticker-track span i {
  font: 500 11px/1 var(--mono); font-style: normal;
  color: var(--ink);
}
@keyframes ticker-slide { to { transform: translateX(-50%); } }

/* ── stats ──────────────────────────────────────────────── */
.strip { border-block: 1px solid var(--hairline); background: var(--canvas-soft); }
.strip-inner {
  max-width: var(--w); margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.stat { display: flex; flex-direction: column; gap: 8px; padding: 0 36px; border-left: 1px solid var(--hairline); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-idx { font-size: 11px; color: var(--muted-soft); }
.stat-num {
  font-size: 52px; font-weight: 500; letter-spacing: -2.2px;
  line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--muted); max-width: 250px; }

/* ── sections ───────────────────────────────────────────── */
.section-head { text-align: left; max-width: 680px; margin: 0 0 48px; }
.section-head .caption-uppercase { margin-bottom: 16px; }
.section-sub { margin-top: 16px; color: var(--body); }

/* eyebrow rule mark */
.band-intro .caption-uppercase::before,
.ask-copy .caption-uppercase::before,
.manifesto .caption-uppercase::before,
.swarm-copy .caption-uppercase::before,
.section-head .caption-uppercase::before,
.access-intro .caption-uppercase::before,
.guard-layout .caption-uppercase::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  background: currentColor;
  vertical-align: baseline; margin-right: 10px;
}

/* ── manifesto / compare ────────────────────────────────── */
.manifesto { max-width: var(--w); margin: 0 auto; padding: 112px 24px; }
.manifesto-inner { max-width: 920px; }
.manifesto .caption-uppercase { margin-bottom: 16px; }
.manifesto-lede { margin: 18px 0 48px; max-width: 640px; font-size: 17px; }
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; }
.compare-col { padding: 32px 30px; border: 1px solid var(--ink); }
.compare-old { background: var(--canvas); }
.compare-new {
  background: var(--ink); color: var(--box-body);
  border-color: var(--ink); margin-left: -1px;
}
.compare-col .caption-uppercase { margin-bottom: 18px; }
.compare-new .caption-uppercase { color: #fff; }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.compare-col li {
  position: relative; padding-left: 24px;
  font-size: 15px; line-height: 1.45; color: var(--body);
}
.compare-new li { color: var(--box-body); }
.compare-old li::before {
  content: "×"; position: absolute; left: 0; top: 0;
  color: var(--muted); font-weight: 600;
}
.compare-new li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #fff; font-weight: 600;
}
.compare-old em { color: var(--ink); font-style: normal; font-weight: 500; }
.compare-new em { color: #fff; font-style: normal; font-weight: 500; }

/* ── swarm ──────────────────────────────────────────────── */
.swarm { max-width: var(--w); margin: 0 auto; padding: 112px 24px; }
.swarm-copy { max-width: 620px; margin-bottom: 48px; }
.swarm-copy .caption-uppercase { margin-bottom: 16px; }
.swarm-copy h2 { margin-bottom: 14px; }
.swarm-grid, [data-swarm] {
  display: grid;
  grid-template-columns: repeat(var(--cols, 40), 1fr);
  gap: 5px;
}
[data-swarm] { gap: 4px; }
.swarm-grid i, [data-swarm] i {
  aspect-ratio: 1; display: block;
  background: var(--ink);
  transition: background 1.1s ease;
}
.swarm-grid i.on, [data-swarm] i.on { background: var(--hairline-strong); transition: background .1s ease; }
.swarm-grid i.hot, [data-swarm] i.hot { background: var(--accent); transition: background .1s ease; }
/* swarm on black surfaces */
.access-priority [data-swarm] i { background: #1e1e1e; }
.access-priority [data-swarm] i.on { background: #3f3f3f; }
.swarm-caption {
  margin-top: 18px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.swarm-caption b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ── how — pipeline ─────────────────────────────────────── */
.how { max-width: var(--w); margin: 0 auto; padding: 112px 24px; }
.pipeline {
  list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin-bottom: -1px;
}
.pipeline-4 { grid-template-columns: repeat(4, 1fr); }
.pipe {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--hairline);
  margin-right: -1px;
  background: var(--canvas); cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.pipe:hover { background: var(--canvas-soft); }
.pipe.on { background: var(--ink); border-color: var(--ink); z-index: 1; }
.pipe.on .pipe-title { color: #fff; }
.pipe.on .pipe-desc { color: var(--box-body); }
.pipe-num {
  display: block; color: var(--muted-soft); font-size: 11px; margin-bottom: 10px;
  transition: color .3s;
}
.pipe.on .pipe-num { color: #fff; }
.pipe-title { display: block; margin-bottom: 6px; }
.pipe-desc { display: block; color: var(--muted); }
/* timed progress line on the active tab — shows the auto-advance */
.pipe.on::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0; background: var(--accent);
  animation: pipe-run 4.2s linear forwards;
}
.pipeline:hover .pipe.on::after { animation-play-state: paused; }
@keyframes pipe-run { to { width: 100%; } }

/* height is set per-tab in JS (to each view's real content height) and
   animated smoothly on change — so the stage fits every tab exactly instead
   of reserving one oversized box for the tallest of the four. min-height
   here is only a fallback for the instant before JS measures. */
.pipe-stage {
  border: 1px solid var(--hairline);
  background: var(--canvas); min-height: 220px; overflow: hidden;
}
.pipe-frame {
  position: relative; min-height: 220px; padding: 34px 36px;
  transition: height .4s var(--ease);
}
.pipe-view {
  position: absolute; inset: 34px 36px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .45s var(--ease), visibility .4s;
}
.pipe-view-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 44px; align-items: start;
}
.mini-card {
  background: var(--box); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 9px;
  color: var(--box-body); font-size: 12.5px; line-height: 1.5;
}
.mini-line {
  display: flex; gap: 9px; align-items: baseline;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-card .dim { color: var(--box-muted); }
.mini-card .ok { color: var(--ok); }
.pipe-view .stream { opacity: 0; }
.pipe-view.on .stream {
  animation: enter .35s var(--ease) forwards;
  animation-delay: calc(var(--n, 0) * .5s);
}
@media (prefers-reduced-motion: reduce) {
  .pipe-view .stream { opacity: 1; animation: none; }
}
.pipe-view.on { opacity: 1; visibility: visible; transform: none; position: relative; inset: auto; }
.pipe-view .caption-uppercase { margin-bottom: 12px; color: var(--ink); }
.pipe-view .title-md { margin-bottom: 8px; }
.pipe-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pipe-tags span {
  font: 500 12px/1 var(--mono); color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--hairline-strong);
}
.pipe-progress {
  height: 4px; background: var(--hairline);
  overflow: hidden; margin: 14px 0 10px; max-width: 360px;
}
.pipe-view.on[data-view="1"] .pipe-progress span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  animation: how-fill 2.2s var(--ease) forwards;
}
@keyframes how-fill { from { width: 0; } to { width: 100%; } }
.pipe-progress-label { color: var(--muted); margin-bottom: 12px; }
.pipe-chat-mini { display: flex; flex-direction: column; gap: 10px; max-width: 540px; margin-top: 8px; }
.bubble {
  padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
  max-width: 92%; animation: enter .4s var(--ease) both;
}
.bubble.you { align-self: flex-end; background: var(--accent); color: var(--ink); }
.bubble.vera {
  align-self: flex-start; background: var(--canvas-soft); color: var(--body);
  border: 1px solid var(--hairline);
}
.pipe-diff {
  margin: 12px 0; padding: 14px 16px;
  background: var(--box); color: var(--box-body);
  font-size: 12.5px; line-height: 1.8;
}
.pipe-safe { color: var(--ink); }

/* ── chat ───────────────────────────────────────────────── */
.chat-empty { color: var(--box-muted); flex: 1; display: flex; align-items: center; }
/* no overflow/scroll here on purpose — the pane it sits in uses min-height
   so it grows to fit the conversation instead of scrolling internally.
   avoids the inner-scroll/outer-page-scroll handoff jump on mobile. */
.chat-thread {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 12px;
}
.chat-compose { margin-top: auto; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chat-suggestions button, .ask-prompts button {
  border: 1px solid var(--box-line-strong); background: transparent; color: var(--box-body);
  font: 500 12px/1.2 var(--sans); padding: 7px 10px;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.chat-suggestions button:hover, .ask-prompts button:hover {
  border-color: var(--accent); color: var(--ink); background: var(--accent);
}
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row .text-input { flex: 1; height: 36px; padding: 8px 12px; font-size: 13px; }
.chat-msg {
  padding: 10px 12px; font-size: 13px; line-height: 1.5;
  animation: enter .35s var(--ease) both; max-width: 95%;
}
.chat-msg.user { align-self: flex-end; background: var(--accent); color: var(--ink); }
.chat-msg.assistant {
  align-self: flex-start; background: #191919; color: var(--box-body);
  border: 1px solid #2c2c2c;
}
.chat-msg.typing { color: var(--box-muted); font-family: var(--mono); font-size: 12px; }

/* inputs inside black boxes */
.ide-card .text-input, .demo-card .text-input {
  background: var(--box-soft); color: var(--box-ink);
  border-color: var(--box-line-strong);
}
.ide-card .text-input:focus, .demo-card .text-input:focus {
  border-color: #fff; box-shadow: none;
}
.ide-card .text-input::placeholder, .demo-card .text-input::placeholder { color: var(--box-muted); }

/* ── product bands ──────────────────────────────────────── */
.band { padding: 96px 0; }
.band-scan { border-block: 1px solid var(--hairline); background: var(--canvas-soft); }
.band-inner { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.band-intro { max-width: 580px; margin-bottom: 48px; }
.band-intro .caption-uppercase { margin-bottom: 14px; }
.band-intro h2 { margin-bottom: 12px; }
.scan-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 236px;
  gap: 56px; align-items: start;
}
.scan-card .term { min-height: 350px; }
.scan-rail { display: flex; flex-direction: column; }
.scan-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 0; border-top: 1px solid var(--hairline);
}
.scan-stat:last-child { border-bottom: 1px solid var(--hairline); }
.scan-stat-num {
  font-size: 28px; font-weight: 500; letter-spacing: -0.8px;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1;
}

.ask { max-width: var(--w); margin: 0 auto; padding: 96px 24px; }
.ask-layout {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px; align-items: start;
}
.ask-copy .caption-uppercase { margin-bottom: 14px; }
.ask-copy h2 { margin-bottom: 16px; }
.ask-card { overflow: hidden; }
.ask-split { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 360px; }
.ask-finding-meta {
  padding: 20px; border-right: 1px solid var(--box-line);
  background: var(--box-soft); display: flex; flex-direction: column; gap: 12px;
}
.ask-finding-meta .caption { color: var(--box-muted); }
.ask-finding-meta .body-sm { color: var(--box-body); }
.ask-prompts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 6px; }
/* fixed height so additional Q&A turns scroll within the pane instead of growing the card */
/* min-height, not height: grows with the conversation instead of scrolling internally */
.ask-chat { padding: 16px; display: flex; flex-direction: column; min-height: 360px; }

.fix-band { max-width: var(--w); margin: 0 auto; padding: 96px 24px; }
.fix-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1px; background: var(--box-line);
  border-bottom: 1px solid var(--box-line);
}
.fix-pane {
  position: relative;
  background: var(--box); padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
/* each column sized to its own fullest state (measured), not shared: the
   Agent pane ends up much taller once the timeline + diff are both in —
   on desktop grid stretch still matches all three to that tallest column;
   once they stack below 1024px each keeps its own correct height instead. */
.fix-pane:nth-child(1) { min-height: 265px; }
.fix-pane:nth-child(2) { min-height: 470px; }
.fix-pane:nth-child(3) { min-height: 160px; }
/* lime stage line — hands off left to right as the flow progresses */
.fix-pane::before {
  content: ""; position: absolute; top: 0; left: 0;
  height: 2px; width: 0; background: var(--accent);
  transition: width .7s var(--ease);
}
.fix-pane.active::before { width: 100%; }
.fix-card .fix-finding {
  flex-direction: column; align-items: flex-start;
  background: var(--box-soft); border-color: var(--box-line);
}
.fix-card .fix-finding .title-sm { color: var(--box-ink); }
.fix-card .fix-finding .caption { color: var(--box-muted); }
.fix-card .btn { align-self: flex-start; }
.fix-done { color: var(--ok); font-size: 12.5px; }
.fix-card .tl-pill {
  background: transparent; color: var(--box-body);
  border-color: var(--box-line-strong);
}
.fix-card .tl-pill.done { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.fix-card .tl-entry p { color: var(--box-body); }
.fix-card .tl-entry .code { color: var(--box-ink); }
.fix-card .diff { border: 1px solid var(--box-line); background: var(--box-soft); }
.pr-ghost {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px dashed var(--box-line-strong);
  padding: 14px; font-size: 12px; line-height: 1.5;
  color: var(--box-muted);
}
.pr-ghost-title { color: var(--box-body); }
.fix-card .pr-card { border-color: var(--box-line-strong); background: var(--box-soft); }
.fix-card .pr-card svg { color: var(--box-ink); }
.fix-card .pr-card .title-sm { color: var(--box-ink); }
.fix-card .pr-card .code { color: var(--box-muted); }
.fix-card .pr-card .ok { color: var(--ok); }

/* guard — black band */
.band-guard { background: var(--box); color: var(--box-body); }
.band-guard h2 { color: #fff; }
.band-guard .caption-uppercase { color: var(--box-muted); }
.band-guard .demo-card { border: 1px solid var(--box-line); }
.guard-layout {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 56px; align-items: start;
}
.guard-layout > .reveal { padding-top: 8px; }

.feature-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  padding: 26px;
  transition: border-color .3s var(--ease);
}
.feature-card:hover { border-color: var(--ink); }

.feature {
  max-width: var(--w); margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px; align-items: center;
}
.feature-copy .caption-uppercase { margin-bottom: 14px; }
.feature-copy h2 { margin-bottom: 16px; }
.feature-points { list-style: none; margin-top: 20px; }
.feature-points li { position: relative; padding: 6px 0 6px 24px; }
.feature-points li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--ink); font-weight: 600;
}

/* terminal */
.term {
  background: var(--box);
  padding: 18px; min-height: 340px; color: var(--box-body);
}
.term .tl { display: block; white-space: pre-wrap; animation: enter .3s var(--ease) both; }
.term .tl.row { display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.term .tl.row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.term .gl { margin-left: auto; flex: none; font-size: 12px; color: var(--box-muted); }
.term .dim { color: var(--box-muted); }
.term .ok { color: var(--ok); }
.term .warn { color: var(--bad); }
.term .prompt { color: var(--accent); font-weight: 500; }
.term-bar {
  display: inline-block; width: 140px; height: 6px;
  background: var(--box-line); vertical-align: middle;
  margin-right: 4px; overflow: hidden;
}
.term-bar i {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  animation: bar-fill .9s var(--ease) forwards;
}
@keyframes bar-fill { to { width: 100%; } }
.caret {
  display: inline-block; width: 7px; height: 13px; vertical-align: -2px;
  background: var(--accent); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* fix */
.fix-finding {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--hairline); padding: 12px 14px;
  background: var(--canvas-soft);
}
.fix-finding > div { flex: 1; min-width: 0; }
.fix-tl { padding: 0 2px; }
.diff {
  background: var(--box); color: var(--box-body);
  padding: 14px 16px;
  animation: enter .45s var(--ease) both;
}
.diff-file { color: var(--box-muted); font-size: 12px; margin-bottom: 8px; }
.diff pre { font-family: var(--mono); font-size: 12.5px; line-height: 1.8; overflow-x: auto; margin-bottom: 4px; }
.diff-ctx { color: var(--box-muted); display: block; }
.diff-add { color: var(--ok); display: block; animation: enter .4s var(--ease) both; }
.diff-add:nth-child(2) { animation-delay: .05s; }
.diff-add:nth-child(3) { animation-delay: .1s; }
.diff-add:nth-child(4) { animation-delay: .15s; }
.pr-card {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--ink); padding: 12px 14px;
  background: var(--canvas);
  animation: enter .45s var(--ease) both;
}
.pr-card svg { color: var(--ink); flex: none; }
.pr-card > div { flex: 1; min-width: 0; }
.pr-card .ok { color: var(--ink); }
.pr-open {
  flex: none; font-size: 11px; padding: 4px 10px;
  background: var(--ink); color: #fff;
}

/* CI */
.ci-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--box-line);
  cursor: pointer; color: var(--box-body); user-select: none;
  transition: background .2s;
}
.ci-toggle:hover { background: rgba(255,255,255,.03); }
.ci-toggle .caption { color: var(--box-muted); }
.ci-toggle input { position: absolute; opacity: 0; }
.switch {
  flex: none; width: 34px; height: 18px;
  background: var(--box-line-strong); position: relative; transition: background .25s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 12px; height: 12px; background: #fff;
  transition: transform .25s var(--ease);
}
.ci-toggle input:checked + .switch { background: var(--bad); }
.ci-toggle input:checked + .switch::after { transform: translateX(16px); }
.ci { padding: 8px 16px 16px; min-height: 250px; }
.ci-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--box-line);
  color: var(--box-muted);
  transition: color .3s;
}
.ci-row .body-sm { color: inherit; }
.ci-row.run, .ci-row.done, .ci-row.fail { color: var(--box-body); }
.ci-st {
  width: 13px; height: 13px; border: 2px solid var(--box-line-strong);
  flex: none; position: relative; transition: border-color .3s, background .3s;
}
.ci-row.run .ci-st {
  border-color: var(--box-ink); border-top-color: transparent;
  animation: spin .75s linear infinite;
}
.ci-row.done .ci-st {
  border-color: var(--ok); background: var(--ok);
  animation: pop-in .3s var(--ease);
}
.ci-row.done .ci-st::after {
  content: ""; position: absolute; inset: 2px 1px 4px 1px;
  border-left: 2px solid var(--box); border-bottom: 2px solid var(--box); transform: rotate(-45deg);
}
.ci-row.fail .ci-st {
  border-color: var(--bad); background: var(--bad);
  animation: shake .4s var(--ease);
}
.ci-row.fail .ci-st::after {
  content: "!"; position: absolute; inset: 0; color: var(--box);
  font: 700 10px/10px var(--sans); text-align: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
.ci-t { margin-left: auto; font-size: 11px; color: var(--box-muted); font-variant-numeric: tabular-nums; }
.ci-note {
  padding-top: 14px; font-size: 12.5px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.ci-note.show { opacity: 1; transform: none; }
.ci-note.pass { color: var(--ok); }
.ci-note.fail { color: var(--bad); }

/* ── team ───────────────────────────────────────────────── */
.team { max-width: var(--w); margin: 0 auto; padding: 112px 24px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.team-grid .feature-card { margin-right: -1px; }
.team-grid .feature-card:last-child { margin-right: 0; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px;
}
.avatar svg { width: 38px; height: 38px; }
.avatar rect { fill: var(--ink); }
.feature-card:hover .avatar rect { animation: cell-flick .7s steps(1) infinite; }
.feature-card:hover .avatar rect:nth-child(2n) { animation-delay: .18s; }
.feature-card:hover .avatar rect:nth-child(3n) { animation-delay: .32s; }
.team-role { color: var(--muted); margin: 4px 0 10px; }

/* ── waitlist access ────────────────────────────────────── */
.access {
  max-width: var(--w); margin: 0 auto; padding: 112px 24px;
}
.access-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr);
  column-gap: 72px; align-items: end; margin-bottom: 48px;
}
.access-intro .caption-uppercase { grid-column: 1 / -1; margin-bottom: 16px; }
.access-intro p:last-child { max-width: 440px; }
.access-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  border: 1px solid var(--ink);
}
.access-tier {
  min-height: 440px; padding: 34px;
  display: flex; flex-direction: column;
}
.access-priority {
  background: var(--ink); color: var(--box-body);
  border-left: 1px solid var(--ink);
}
.tier-swarm { margin-bottom: 20px; }
.access-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.access-list li {
  position: relative; padding-left: 22px; color: var(--box-body);
}
.access-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px; background: var(--accent);
}
.access-list-light { margin-top: 20px; }
.access-list-light li { color: var(--body); }
.access-list-light li::before { background: var(--ink); }
.access-topline {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 22px; margin-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.access-priority .access-topline { border-bottom-color: var(--box-line); margin-bottom: 22px; }
.access-priority .caption-uppercase { color: var(--box-muted); }
.access-price {
  color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -.5px;
}
.access-priority h3 { color: #fff; }
.access-priority .access-price { color: var(--accent); }
.access-price small {
  font: 400 11px/1 var(--mono); color: var(--box-muted);
  letter-spacing: 0; text-transform: uppercase;
}
.access-tier > .body-sm { max-width: 390px; margin-top: 12px; }
/* CTA block: always keep space above the button/form, even when content fills the card */
.access-cta {
  margin-top: auto;
  padding-top: 48px;
  display: flex; flex-direction: column; gap: 12px;
}
.access-note { color: var(--box-muted); text-align: center; }
.access-hint { color: var(--muted); }
.wl-msg { min-height: 1.2em; }
.wl-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.text-input {
  width: 100%; min-width: 0; height: 46px; padding: 12px 16px;
  background: var(--canvas); color: var(--ink);
  border: 1px solid var(--hairline-strong);
  font: 400 15px/1.5 var(--sans); outline: none;
  transition: border-color .2s;
}
.text-input:focus { border-color: var(--ink); }
.text-input::placeholder { color: var(--muted-soft); }
#waitlistCode {
  font-family: var(--mono); font-size: 14px; letter-spacing: .04em;
  text-transform: uppercase;
}
.wl-form .btn { height: 46px; width: 100%; }

/* ── faq ────────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; padding: 112px 24px; }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list details:first-child { border-top: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  transition: color .2s;
}
.faq-list summary.title-sm { font-size: 16px; }
.faq-list summary:hover { color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--muted-soft);
  transition: transform .25s var(--ease), color .2s;
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg); color: var(--ink);
}
.faq-list details p { padding: 0 24px 20px 0; animation: enter .35s var(--ease); }

/* ── footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline); background: var(--canvas); }
.footer-swarm { max-width: var(--w); margin: 0 auto; padding: 28px 24px 0; }
.footer-inner {
  max-width: var(--w); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand p { margin-top: 14px; }
.footer-h { margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col a { text-decoration: none; color: var(--body); padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-fine { max-width: var(--w); margin: 0 auto; padding: 0 24px 32px; }

/* ── legal / trust pages ────────────────────────────────── */
.legal-page {
  max-width: 760px; margin: 0 auto;
  padding: 112px 24px 96px;
}
.legal-page > .caption-uppercase { margin-bottom: 16px; }
.legal-page > h1 { margin-bottom: 12px; }
.legal-updated { color: var(--muted); margin-bottom: 64px; }
.legal-page section {
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.legal-page section:last-child { border-bottom: 1px solid var(--hairline); }
.legal-page section h2 { margin-bottom: 10px; }
.legal-page section p { max-width: 680px; }
.legal-page a, .legal-footer a {
  color: var(--ink); text-underline-offset: 3px;
}
.legal-footer {
  max-width: 760px; margin: 0 auto; padding: 32px 24px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

.not-found > .caption-uppercase { color: var(--muted); }
.not-found-lead { max-width: 480px; color: var(--muted); margin-bottom: 32px; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pipeline, .pipeline-4 { grid-template-columns: repeat(2, 1fr); }
  .compare, .ask-layout, .guard-layout, .ask-split, .fix-body,
  .scan-layout, .pipe-view-grid { grid-template-columns: 1fr; }
  .compare-new { margin-left: 0; margin-top: -1px; }
  .scan-rail { flex-direction: row; flex-wrap: wrap; gap: 0 32px; }
  .ask-finding-meta { border-right: 0; border-bottom: 1px solid var(--box-line); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid .feature-card { margin-right: 0; margin-bottom: -1px; }
  .ide-body, .ide-body-hero { grid-template-columns: 160px 1fr; min-height: 0; }
  .ide-pane { min-height: 395px; }
  .ide-chat { grid-column: 1 / -1; min-height: 270px; }
  .hero-swarm { width: 200px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav-mobile.open { display: flex; }
  .hero { padding-top: 56px; }
  /* 2x2 grid of compact tabs (number + title only) instead of 4 full
     description-cards — gets to the actual demo much faster on phones */
  .pipeline, .pipeline-4 { grid-template-columns: repeat(2, 1fr); }
  .pipe { margin-right: -1px; margin-bottom: -1px; padding: 16px; }
  .pipe-num { margin-bottom: 6px; }
  .pipe-title { margin-bottom: 0; }
  .pipe-desc { display: none; }
  .ide-body, .ide-body-hero { grid-template-columns: 1fr; }
  .ide-sidebar { display: none; }
  .team-grid, .strip-inner { grid-template-columns: 1fr; }
  .strip-inner { gap: 28px; }
  .stat { padding: 0; border-left: 0; }
  .manifesto, .swarm, .how, .ask, .fix-band, .team, .faq { padding-block: 80px; }
  .band { padding: 80px 0; }
  .access { padding-block: 80px; }
  .access-intro, .access-grid { grid-template-columns: 1fr; }
  .access-intro { gap: 16px; }
  .access-intro .caption-uppercase { grid-column: auto; margin-bottom: 0; }
  .access-tier { min-height: 360px; padding: 26px 22px; }
  .access-priority { border-left: 0; border-top: 1px solid var(--ink); }
  .hero-swarm { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-inline: 24px; }
  .footer-fine { padding-inline: 24px; }
  .demo-bar { flex-wrap: wrap; }
  .swarm-grid { gap: 4px; }
  .legal-page { padding-block: 80px; }
}
