:root {
  --paper:        #FAF9F6;
  --paper-2:      #F3F1EB;
  --paper-3:      #EAE7DE;

  --ink:          #0F172A;
  --ink-2:        #1E293B;
  --text:         #334155;
  --text-mute:    #64748B;
  --text-faint:   #94A3B8;

  --bd:           #E5E1D8;
  --bd-2:         #CFCABE;

  --accent:       #0F172A;       /* deep ink navy, links + active */
  --accent-soft:  #ECEDF1;
  --accent-bd:    #C6C9D3;

  --ok:           #0F766E;

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.06);
  --shadow-screen: 0 18px 44px rgba(15,23,42,0.09);

  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,246,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); cursor: pointer; background: none; border: 0; font-family: inherit;
}
.brand img { width: 28px; height: 28px; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--text-mute); background: none; border: 0; cursor: pointer;
  padding: 8px 14px; border-radius: var(--r-md);
  transition: color 160ms ease, background 160ms ease;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-link.active { color: var(--accent); }
.nav-cta {
  margin-left: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff;
  border: 0; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 500;
  padding: 9px 17px; border-radius: var(--r-md);
  transition: background 160ms ease;
}
.nav-cta:hover { background: var(--ink-2); }
.nav-cta { white-space: nowrap; text-decoration: none; }
.nav-cta svg { width: 15px; height: 15px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--bd); border-radius: var(--r-md);
  color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .nav-toggle-close { display: none; }
.nav.open .nav-toggle .nav-toggle-open { display: none; }
.nav.open .nav-toggle .nav-toggle-close { display: block; }

/* ============ LAYOUT PRIMITIVES ============ */
.page { display: none; }
.page.active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .page.active { animation: pageIn 360ms cubic-bezier(0.4,0,0.2,1); }
}
@keyframes pageIn { from { transform: translateY(8px); } to { transform: translateY(0); } }

section { padding: 76px 32px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.surface-2 { background: var(--paper-2); }
.divider-top { border-top: 1px solid var(--bd); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
}
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em;
}
.sec-head p { font-size: 17px; color: var(--text-mute); line-height: 1.6; }

/* asymmetric editorial split */
.split { display: grid; grid-template-columns: 0.82fr 1.5fr; gap: 24px 64px; align-items: start; }
.split-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 14px; }
.split-head p { font-size: 16px; color: var(--text-mute); line-height: 1.6; }
.split-list { display: flex; flex-direction: column; }
.point { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--bd); }
.split-list .point:first-child { border-top: 0; padding-top: 2px; }
.point-idx { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-faint); padding-top: 5px; }
.point h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
.point p { font-size: 14.5px; color: var(--text-mute); line-height: 1.55; }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--bd); }
.trust-grid .tp { padding: 26px 28px; }
.trust-grid .tp:first-child { padding-left: 0; }
.trust-grid .tp + .tp { border-left: 1px solid var(--bd); }
.trust-grid .tp .point-idx { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 14px; }
.trust-grid .tp h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
.trust-grid .tp p { font-size: 14.5px; color: var(--text-mute); line-height: 1.55; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 11px 20px; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid transparent; transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--bd-2); }
.btn-outline:hover { background: var(--paper-2); border-color: var(--text-faint); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0;
  transition: gap 160ms ease;
}
.link-arrow:hover { gap: 9px; }
.link-arrow svg { width: 14px; height: 14px; }

/* ============ HERO (light) ============ */
.hero { padding: 64px 32px 56px; text-align: center; }
.hero .eyebrow { display: inline-block; margin-bottom: 20px; white-space: nowrap; color: var(--accent); }
.hero h1 {
  font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em;
  max-width: 760px; margin: 0 auto 20px; text-wrap: balance;
}
.hero .lead {
  font-size: 19px; color: var(--text-mute); line-height: 1.6;
  max-width: 600px; margin: 0 auto 30px; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-uses {
  max-width: 920px; margin: 56px auto 0; text-align: left;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--bd);
}
.hero-uses > div { padding: 26px 28px; }
.hero-uses > div + div { border-left: 1px solid var(--bd); }
.hero-uses strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: -0.01em; }
.hero-uses span { font-size: 14.5px; color: var(--text-mute); line-height: 1.55; }

/* ============ HERO EVIDENCE VISUAL ============ */
.hero-evidence { max-width: 760px; margin: 54px auto 0; position: relative; }
.evidence {
  position: relative; z-index: 1; text-align: left; overflow: hidden;
  background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.ev-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--bd); background: var(--paper-2); }
.ev-bar-title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.ev-bar-coll { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: #fff; background: var(--ink); padding: 5px 11px; border-radius: var(--r-pill); }
.ev-bar-coll svg { width: 13px; height: 13px; }
.ev-body { padding: 22px 26px 20px; }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; }
.ev-q { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); line-height: 1.4; margin-bottom: 14px; }
.ev-answer { font-size: 15.5px; line-height: 1.85; color: var(--text); }
.ev-answer strong { color: var(--ink); font-weight: 600; }
.ev-answer .cite { vertical-align: middle; margin: 0 1px; }
.ev-sources { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bd); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ev-src { border: 1px solid var(--bd); border-radius: var(--r-md); background: var(--paper-2); padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 9px; }
.ev-src-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-kind { font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.ev-thumb { height: 34px; border-radius: 6px; background: var(--paper); border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.ev-thumb.doc { flex-direction: column; align-items: stretch; gap: 3.5px; }
.ev-thumb.doc i { height: 2px; border-radius: 2px; background: var(--bd-2); }
.ev-thumb.doc i:nth-child(2) { width: 78%; }
.ev-thumb.doc i:nth-child(3) { width: 90%; }
.ev-thumb.audio { gap: 3px; }
.ev-thumb.audio i { width: 2.5px; border-radius: 2px; background: var(--accent); opacity: 0.5; }
.ev-thumb.data { gap: 4px; }
.ev-thumb.data i { width: 8px; height: 20px; border-radius: 2px; background: var(--bd-2); }
.ev-thumb.data i:nth-child(2) { background: var(--accent); opacity: 0.5; }
.ev-title { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ev-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.02em; }
.ev-foundry { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 11px 14px; border: 1px solid var(--accent-bd); border-radius: var(--r-md); background: var(--accent-soft); cursor: pointer; transition: border-color 160ms ease; }
.ev-foundry:hover { border-color: var(--accent); }
.ev-foundry-txt { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--accent); }
.ev-foundry-txt svg { width: 15px; height: 15px; flex: none; }
.ev-foundry > svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* chat bubble + reply */
.ev-bubble { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: 13px; padding: 13px 15px; margin-bottom: 18px; }
.ev-bubble-txt { flex: 1; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.ev-avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ev-avatar svg { width: 17px; height: 17px; }
.ev-reply { display: flex; gap: 13px; align-items: flex-start; }
.ev-bot { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ev-bot svg { width: 16px; height: 16px; }
.ev-reply-body { flex: 1; min-width: 0; }
.ev-steps { border: 1px solid var(--bd); border-radius: 10px; background: var(--paper-2); padding: 4px; margin-bottom: 14px; }
.ev-step { display: flex; align-items: center; gap: 9px; padding: 7px 10px; font-size: 12.5px; color: var(--ink); font-weight: 500; }
.ev-step + .ev-step { border-top: 1px solid var(--bd); }
.ev-step .chk { width: 14px; height: 14px; color: var(--ok); flex: none; }
.ev-step .mg { width: 13px; height: 13px; color: var(--text-faint); flex: none; }
.ev-step-q { flex: 1; min-width: 0; font-style: italic; font-weight: 400; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-step-t { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); flex: none; }
.ev-answer .cite { cursor: pointer; transition: background 140ms ease, border-color 140ms ease, color 140ms ease; }
.ev-answer .cite:hover, .ev-src:hover .cite { background: var(--ink); border-color: var(--ink); color: #fff; }
.ev-answer .cite:hover img, .ev-src:hover .cite img { filter: invert(1) brightness(2.2); }
.ev-src { cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease; }
.ev-src:hover { border-color: var(--bd-2); box-shadow: var(--shadow-sm); }

/* document viewer overlay */
.doc-viewer {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--bd); border-radius: var(--r-lg);
  box-shadow: var(--shadow-screen); overflow: hidden;
  opacity: 0; transform: scale(0.985); pointer-events: none;
  transition: opacity 200ms ease, transform 240ms cubic-bezier(.22,1,.36,1);
}
.doc-viewer.show { opacity: 1; transform: none; pointer-events: auto; }
.dv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px 11px 18px; border-bottom: 1px solid var(--bd); }
.dv-title { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.dv-icon { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--text-mute); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dv-icon:hover { background: var(--paper-2); color: var(--ink); }
.dv-icon svg { width: 17px; height: 17px; }
.dv-tabs { display: flex; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--bd); }
.dv-tabs span { padding: 9px 2px; font-size: 13px; color: var(--text-faint); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dv-tabs span.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.dv-toolbar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--bd); background: var(--paper); }
.dv-search { display: inline-flex; align-items: center; gap: 7px; flex: 1; max-width: 210px; padding: 6px 10px; border: 1px solid var(--bd); border-radius: 7px; font-size: 12px; color: var(--text-faint); }
.dv-search svg { width: 13px; height: 13px; flex: none; }
.dv-pages { font-size: 12.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.dv-pages b { color: var(--ink); }
.dv-zoom { margin-left: auto; font-size: 12px; color: var(--text-mute); border: 1px solid var(--bd); border-radius: 7px; padding: 5px 10px; font-variant-numeric: tabular-nums; }
.dv-stage { position: relative; flex: 1; overflow: auto; padding: 22px 26px; background: #fff; }
.dv-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 84px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink); opacity: 0.045; transform: rotate(-16deg); pointer-events: none; white-space: nowrap; z-index: 0; }
.dv-doc { position: relative; z-index: 1; display: none; }
.dv-doc.on { display: block; }
.dv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dv-table th { text-align: left; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); padding: 8px 12px; border-bottom: 1px solid var(--bd-2); }
.dv-table td { padding: 9px 12px; border-bottom: 1px solid var(--bd); color: var(--text); }
.dv-table td:nth-child(n+2) { font-variant-numeric: tabular-nums; text-align: right; }
.dv-table tr.hl td { background: #F8F0D8; color: var(--ink); font-weight: 600; }
.dv-lines { list-style: decimal; padding-left: 46px; font-size: 14px; line-height: 2; color: var(--text); }
.dv-lines li { padding-left: 8px; }
.dv-lines li::marker { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.dv-lines li.hl { background: #F8F0D8; color: var(--ink); }
.dv-wave { display: flex; align-items: center; gap: 14px; padding: 9px 13px; margin-bottom: 16px; border: 1px solid var(--bd); border-radius: 8px; background: var(--paper-2); }
.dv-bars { display: flex; align-items: center; gap: 2.5px; flex: 1; height: 26px; }
.dv-bars i { width: 2.5px; background: var(--accent); opacity: 0.5; border-radius: 2px; height: 45%; }
.dv-bars i:nth-child(3n) { height: 80%; }
.dv-bars i:nth-child(4n+1) { height: 62%; }
.dv-bars i:nth-child(5n) { height: 100%; }
.dv-bars i:nth-child(7n) { height: 28%; }
.dv-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); flex: none; }
.dv-turns { display: flex; flex-direction: column; gap: 4px; }
.turn { display: flex; gap: 13px; padding: 8px 10px; border-radius: 7px; }
.turn .ts { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); flex: none; padding-top: 2px; }
.turn p { font-size: 14px; line-height: 1.5; color: var(--text); }
.turn p b { color: var(--ink); margin-right: 5px; }
.turn.hl { background: #F8F0D8; }
.turn.hl p, .turn.hl p b { color: var(--ink); }

.ev-caption { margin-top: 18px; text-align: center; font-size: 13px; font-style: italic; color: var(--text-mute); }

/* ============ TICKER (newsroom names) ============ */
.ticker { border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); background: var(--paper); padding: 26px 0; overflow: hidden; }
.ticker-cap { text-align: center; font-size: 13.5px; color: var(--text-faint); margin: 0 0 18px; }
.ticker-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 56px; padding-right: 56px;
  white-space: nowrap; animation: ticker-scroll 55s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-mute); transition: color 160ms ease; }
.ticker-item:hover { color: var(--ink); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* browser-style screenshot frame */
.shot {
  background: var(--paper); border: 1px solid var(--bd);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-screen);
}
.shot-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 15px; border-bottom: 1px solid var(--bd); background: var(--paper-2);
}
.shot-bar .dots { display: flex; gap: 6px; }
.shot-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--bd-2); display: block; }
.shot-bar .crumb { font-size: 13px; color: var(--text-faint); font-family: var(--font-sans); letter-spacing: 0; }
.shot img { width: 100%; display: block; }

/* layered shot: answer frame with a source-open card overlapping */
.shot-stack { position: relative; }
.src-pop {
  position: absolute; right: -20px; bottom: -36px; width: 62%; z-index: 2;
  margin: 0; background: var(--paper); border: 1px solid var(--bd);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 26px 54px -20px rgba(15,23,42,0.5), 0 4px 12px -6px rgba(15,23,42,0.2);
}
.src-pop img { width: 100%; display: block; }
.src-pop figcaption {
  display: flex; align-items: center; gap: 8px; padding: 10px 13px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500;
  letter-spacing: -0.01em; text-transform: none; color: var(--text-mute);
  border-top: 1px solid var(--bd); background: var(--paper-2);
}
.src-pop figcaption svg { width: 14px; height: 14px; flex: none; }

/* click-to-expand lightbox */
.zoomable { cursor: zoom-in; transition: filter 150ms ease; }
.zoomable:hover { filter: brightness(0.97); }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 5vh 5vw; background: rgba(15,23,42,0.85); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--r-md); box-shadow: 0 40px 90px -20px rgba(0,0,0,0.65); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 150ms ease; }
.lightbox-close:hover { background: rgba(255,255,255,0.26); }
.lightbox-close svg { width: 20px; height: 20px; }

.hero-shot { max-width: 940px; margin: 52px auto 0; }
.hero-answer { padding: 24px 26px 28px; text-align: left; }
.ha-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ha-meta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-faint); }
.ha-meta svg { width: 13px; height: 13px; color: var(--ok); }
.ha-sources { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bd); }
.ha-src-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.ha-src { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-mute); background: var(--paper-2); border: 1px solid var(--bd); padding: 5px 10px; border-radius: var(--r-pill); }
.ha-src svg { width: 13px; height: 13px; color: var(--text-faint); }
.ha-lines { flex: 1; }
.ha-lines .bar { margin-bottom: 9px; }
.ha-lines > :last-child { margin-bottom: 0; }
.ha-cline { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ha-cline .bar { margin: 0; }
.ha-coll { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--ink); padding: 6px 12px; border-radius: var(--r-pill); }
.ha-coll svg { width: 13px; height: 13px; }
.ha-ask { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 18px; line-height: 1.4; }
.ha-row { display: flex; gap: 13px; align-items: flex-start; }
.ha-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ha-mark svg { width: 15px; height: 15px; }
.ha-row p { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.ha-row p strong { color: var(--ink); font-weight: 600; }

/* ============ FEATURE / PILLAR CARDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg);
  padding: 26px 24px; transition: border-color 180ms ease, box-shadow 180ms ease;
}
.card.hoverable:hover { border-color: var(--bd-2); box-shadow: var(--shadow-md); }
.card-ic {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--paper-3); color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-ic svg { width: 20px; height: 20px; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-mute); line-height: 1.55; }

/* product cards (clickable) */
.prod-card { display: flex; flex-direction: column; cursor: pointer; }
.prod-card p { flex: 1; }
.prod-card .card-foot { margin-top: 16px; }
.prod-card.feat { border-color: var(--accent-bd); }
.tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-bd);
  padding: 3px 8px; border-radius: var(--r-pill); margin-bottom: 14px;
}

/* media uses list */
.use-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--bd); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.use-item { padding: 26px 26px; border-bottom: 1px solid var(--bd); }
.use-item:nth-child(odd) { border-right: 1px solid var(--bd); }
.use-item:nth-last-child(-n+2) { border-bottom: 0; }
.use-item .ic { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--paper-3); color: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.use-item .ic svg { width: 18px; height: 18px; }
.use-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 7px; letter-spacing: -0.01em; }
.use-item p { font-size: 14.5px; color: var(--text-mute); line-height: 1.55; }

/* ============ FOUNDRY PIPELINE RAIL ============ */
.rail {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 4px;
  background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg);
  padding: 28px 26px;
}
.rstep { display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; flex: 1; min-width: 0; text-align: center; }
.rstep .rd {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper-3); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center; z-index: 1;
  border: 1px solid var(--bd);
}
.rstep .rd svg { width: 16px; height: 16px; }
.rstep .rl { font-size: 12.5px; color: var(--text-mute); font-weight: 500; }
.rstep.on .rd { background: var(--accent); color: #fff; border-color: var(--accent); }
.rstep.on .rl { color: var(--accent); font-weight: 600; }
.rail-uniform .rstep .rd { background: var(--accent); color: #fff; border-color: var(--accent); }
.rail-uniform .rstep .rl { color: var(--accent); font-weight: 600; }

/* Homepage pipeline: hover tooltips */
.rail-uniform { position: relative; }
.rail-uniform .rstep { cursor: default; }
.rail-uniform .rstep .rd { transition: transform .26s cubic-bezier(.22,1,.36,1), box-shadow .26s ease; }
.rail-uniform .rstep:hover .rd { transform: translateY(-2px) scale(1.12); box-shadow: 0 9px 22px -7px color-mix(in srgb, var(--accent) 55%, transparent); }
.rtip {
  position: absolute; bottom: calc(100% + 16px); left: 50%; width: 234px;
  transform: translateX(-50%) translateY(9px) scale(.95);
  background: var(--paper); border: 1px solid var(--bd); border-radius: 13px;
  box-shadow: 0 20px 44px -18px rgba(15,23,42,.38), 0 5px 14px -8px rgba(15,23,42,.2);
  padding: 13px 15px 14px; text-align: left;
  opacity: 0; pointer-events: none; z-index: 30;
  transition: opacity .24s ease, transform .36s cubic-bezier(.22,1,.36,1);
}
.rtip strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 4px; letter-spacing: -.01em; }
.rtip span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--text-mute); }
.rtip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--paper); margin-top: -1px; }
.rtip::before { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--bd); }
.rail-uniform .rstep:hover .rtip,
.rail-uniform .rstep:focus-visible .rtip,
.rail-uniform .rstep.show .rtip { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.rail-uniform .rstep:focus-visible { outline: none; }
.rail-uniform .rstep:focus-visible .rd { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 38%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .rtip, .rail-uniform .rstep .rd { transition: opacity .15s ease; }
  .rail-uniform .rstep:hover .rd { transform: none; }
  .rail-uniform .rstep:hover .rtip,
  .rail-uniform .rstep:focus-visible .rtip,
  .rail-uniform .rstep.show .rtip { transform: translateX(-50%); }
}
.rstep:not(:last-child)::after {
  content: ''; position: absolute; top: 17px;
  left: calc(50% + 19px); right: calc(-50% + 19px);
  height: 2px; background: var(--bd); z-index: 0;
}

/* ============ COLLECTIONS ============ */
.coll-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.coll-card {
  background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.coll-card.hoverable:hover { border-color: var(--bd-2); box-shadow: var(--shadow-md); }
.coll-visual { aspect-ratio: 16/8; background: var(--paper-3); overflow: hidden; }
.coll-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coll-body { padding: 20px 22px; }
.coll-body .kicker { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.coll-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.coll-body p { font-size: 14px; color: var(--text-mute); line-height: 1.5; }

/* ============ BLOG / UPDATES ============ */
.blog-feed { display: flex; flex-direction: column; max-width: 760px; }
.post { padding: 30px 0; border-top: 1px solid var(--bd); }
.blog-feed .post:first-child { border-top: 0; padding-top: 2px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.post-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  padding: 4px 11px 4px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--bd-2); color: var(--text-mute); white-space: nowrap;
}
.post-tag svg { width: 13px; height: 13px; flex: none; }
.post-tag.tag-coll { color: var(--accent); border-color: var(--accent-bd); background: var(--accent-soft); }
.post-tag.tag-chat { color: var(--accent); border-color: var(--accent-bd); background: var(--accent-soft); }
.post-tag.tag-story { color: var(--ink); border-color: var(--ink); background: transparent; }
.post-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.02em; }
.post-card-link { display: block; color: inherit; text-decoration: none; }
.post h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.post-card-link:hover h2 { color: var(--accent); }
.post-excerpt { font-size: 15.5px; color: var(--text-mute); line-height: 1.6; margin-bottom: 14px; }
.post-body { display: none; }
.post-body p { font-size: 16.5px; color: var(--text); line-height: 1.75; margin-bottom: 18px; max-width: 68ch; }
.post-read { text-decoration: none; }

.blog-back {
  display: none; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-mute); text-decoration: none; margin-bottom: 28px;
}
.blog-back svg { width: 15px; height: 15px; }
.blog-back:hover { color: var(--accent); }

/* detail view */
.page.blog-viewing .blog-back { display: inline-flex; }
.page.blog-viewing .post { display: none; border-top: 0; padding: 0; }
.page.blog-viewing .post.active { display: block; }
.page.blog-viewing .post.active .post-excerpt,
.page.blog-viewing .post.active .post-read { display: none; }
.page.blog-viewing .post.active .post-body { display: block; }
.page.blog-viewing .post.active .post-card-link { pointer-events: none; }
.page.blog-viewing .post.active h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 18px; max-width: 20ch; }
.page.blog-viewing .post.active .post-meta { margin-bottom: 16px; }
@media (max-width: 640px) { .blog-back { margin-bottom: 20px; } }

/* homepage latest-updates cards */
.upd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.upd-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg);
  padding: 22px 24px; color: inherit; text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.upd-card:hover { border-color: var(--bd-2); box-shadow: var(--shadow-md); }
.upd-card .post-meta { margin-bottom: 12px; }
.upd-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }
.upd-card:hover h3 { color: var(--accent); }
.upd-card p { font-size: 14px; color: var(--text-mute); line-height: 1.55; }
@media (max-width: 760px) { .upd-grid { grid-template-columns: 1fr; } }
.post-body .post-console { margin-top: 6px; }
.post-collection {
  display: flex; width: fit-content; max-width: 100%;
  align-items: baseline; gap: 11px; margin: 0 0 18px;
  padding: 11px 15px; background: var(--paper-2);
  border: 1px solid var(--bd); border-radius: var(--r-md);
}
.post-collection .pc-label {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--text-mute);
}
.post-collection .pc-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

/* directory grid on collections page */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dir-card { background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: 22px 22px; }
.dir-card .kicker { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.dir-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.dir-list li { font-size: 14px; color: var(--text); padding-left: 16px; position: relative; line-height: 1.4; }
.dir-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--bd-2); }

/* collections: breadth figure line + category cards */
.cat-figures { font-size: 15.5px; line-height: 1.75; color: var(--text-mute); margin: -18px 0 34px; max-width: 760px; }
.cat-figures b { color: var(--ink); font-weight: 600; }
.cat-figures .sep { color: var(--bd-2); margin: 0 11px; }
.cat-card { display: block; background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: 22px 24px; text-decoration: none; transition: border-color 180ms ease, box-shadow 180ms ease; }
.cat-card:hover { border-color: var(--bd-2); box-shadow: var(--shadow-md); }
.cat-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.cat-card .cat-name { font-family: inherit; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; text-transform: none; color: var(--ink); margin: 0; line-height: 1.2; }
.cat-count { font-family: inherit; font-size: 13.5px; font-weight: 400; color: var(--text-faint); }
.cat-eg { font-size: 14.5px; color: var(--text-mute); line-height: 1.6; }
.cat-eg .cat-more { color: var(--text-faint); }
.cat-build { display: flex; flex-direction: column; }
.cat-build .cat-eg { color: var(--text-mute); }
.cat-go { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.cat-go svg { width: 15px; height: 15px; }

/* ============ PRODUCT DETAIL ROWS ============ */
.detail { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--bd); }
.detail:last-child { border-bottom: 0; }
.detail.rev .detail-text { order: 2; }
.detail-text .tag { margin-bottom: 16px; }
.detail-text h2 { font-size: clamp(24px, 3vw, 31px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 14px; }
.detail-text > p { font-size: 16px; color: var(--text-mute); line-height: 1.65; margin-bottom: 14px; }
.feat-list { list-style: none; display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--bd); }
.feat-list li { font-size: 14.5px; color: var(--text); line-height: 1.45; padding: 9px 2px; border-bottom: 1px solid var(--bd); }

/* ============ FOUNDRY PAGE STEPS ============ */
.steps { position: relative; padding-left: 60px; max-width: 880px; margin: 0 auto; }
.steps::before { content: ''; position: absolute; left: 18px; top: 14px; bottom: 60px; width: 2px; background: var(--bd); }
.fstep { position: relative; padding-bottom: 56px; }
.fstep:last-child { padding-bottom: 0; }
.fstep .num {
  position: absolute; left: -60px; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; box-shadow: 0 0 0 5px var(--paper);
}
.fstep h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.fstep .fstep-lead { font-size: 16.5px; color: var(--text-mute); line-height: 1.6; margin-bottom: 24px; max-width: 680px; }

.two-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.path { background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.path-head { padding: 18px 20px 15px; border-bottom: 1px solid var(--bd); }
.path-tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.path-head h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.path-head p { font-size: 14px; color: var(--text-mute); line-height: 1.5; }
.path-body { padding: 16px 18px; flex: 1; }
.coll-row { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-md); }
.coll-row + .coll-row { margin-top: 2px; }
.coll-row.sel { background: var(--accent-soft); }
.coll-row .ic { width: 30px; height: 30px; border-radius: 7px; background: var(--paper-3); color: var(--text-mute); display: flex; align-items: center; justify-content: center; flex: none; }
.coll-row.sel .ic { background: #fff; color: var(--accent); }
.coll-row .ic svg { width: 16px; height: 16px; }
.coll-row .cn { font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.coll-row .cm { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.coll-row .meta { flex: 1; min-width: 0; }
.coll-row .pick { color: var(--accent); display: inline-flex; }
.coll-row .pick svg { width: 15px; height: 15px; }
.dropzone { border: 1.5px dashed var(--bd-2); border-radius: var(--r-md); background: var(--paper-2); padding: 24px 18px; text-align: center; }
.dropzone .up { width: 38px; height: 38px; border-radius: 9px; background: #fff; border: 1px solid var(--bd); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 11px; }
.dropzone .up svg { width: 19px; height: 19px; }
.dropzone .dz-main { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.dropzone .dz-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.uploaded { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding: 8px 11px; background: #fff; border: 1px solid var(--bd); border-radius: var(--r-md); }
.uploaded svg { width: 16px; height: 16px; color: var(--text-mute); flex: none; }
.uploaded .fn { font-size: 13.5px; color: var(--text); flex: 1; }
.uploaded .st { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); }
.ephemeral { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; font-size: 12.5px; color: var(--text-mute); }
.ephemeral svg { width: 13px; height: 13px; color: var(--text-faint); flex: none; }

/* automation level cards */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.level { background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; }
.level .lv-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.level .lv-name { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.level .lv-tag { margin-left: auto; font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 3px 8px; border-radius: var(--r-pill); }
.level p { font-size: 13.5px; line-height: 1.5; color: var(--text-mute); flex: 1; margin-bottom: 14px; }
.lv-meter { display: flex; gap: 5px; }
.lv-meter i { height: 5px; flex: 1; border-radius: 3px; background: var(--paper-3); display: block; }
.lv-meter i.on { background: var(--accent); }
.lv-foot { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--text-faint); margin-top: 9px; }

/* effort note */
.effort { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 14px; border: 1px solid var(--bd); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.effort div { padding: 14px 18px; font-size: 13.5px; color: var(--text-mute); line-height: 1.45; }
.effort div + div { border-left: 1px solid var(--bd); }
.effort b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 3px; }

/* legend rows */
.legend { background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: 8px 24px 14px; margin-top: 16px; }
.legend-cap { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); padding: 16px 0 2px; }
.lg-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--bd); }
.lg-ic { width: 32px; height: 32px; border-radius: 8px; flex: none; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.lg-ic svg { width: 16px; height: 16px; }
.lg-txt { font-size: 14.5px; line-height: 1.5; color: var(--text-mute); }
.lg-txt b { color: var(--ink); font-weight: 600; margin-right: 5px; }

/* outcomes */
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.outcome { background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; }
.outcome .oc-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.outcome .oc-ic svg { width: 16px; height: 16px; }
.outcome h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
.outcome p { font-size: 13.5px; color: var(--text-mute); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.preview { border-top: 1px solid var(--bd); padding-top: 13px; }
.pv-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.bar { height: 6px; border-radius: 3px; background: var(--paper-3); margin-bottom: 6px; }
.bar.w90 { width: 90%; } .bar.w75 { width: 75%; } .bar.w60 { width: 60%; }
.pv-line { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.pv-bul { width: 4px; height: 4px; border-radius: 50%; background: var(--bd-2); flex: none; }
.cite { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-bd); font-size: 10px; font-weight: 600; }
.cite img { width: 9px; height: 9px; display: block; }
.stop-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper-3); font-size: 12px; font-weight: 600; color: var(--text-mute); }
.stop-pill svg { width: 13px; height: 13px; color: var(--ok); }

/* note + done actions */
.note { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--bd); border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: 17px 20px; margin-bottom: 24px; }
.note svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 1px; }
.note p { font-size: 15.5px; line-height: 1.55; color: var(--text); }
.note p b { color: var(--ink); font-weight: 600; }
.done-cap { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin: 4px 0 14px; }
.done-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.da { display: flex; gap: 13px; align-items: flex-start; background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-md); padding: 16px 18px; }
.da .da-ic { width: 36px; height: 36px; border-radius: 8px; flex: none; background: var(--paper-3); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.da .da-ic svg { width: 18px; height: 18px; }
.da b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; letter-spacing: -0.01em; }
.da span { font-size: 13.5px; line-height: 1.45; color: var(--text-mute); }

/* ============ INK BAND (CTA / closing) ============ */
.band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 44px 44px; }
.band.flat { border-radius: 0; }
.band-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.band p { font-size: 16.5px; color: rgba(226,232,240,0.82); line-height: 1.55; max-width: 520px; }
.band .btn-primary { background: #fff; color: var(--ink); }
.band .btn-primary:hover { background: var(--paper-2); }

/* ============ STAT STRIP ============ */
.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ink); border-radius: var(--r-lg); overflow: hidden; }
.stat-strip .stat { padding: 30px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,0.09); }
.stat-strip .stat:last-child { border-right: 0; }
.stat-strip .stat .n { font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.stat-strip .stat .l { margin-top: 11px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(226,232,240,0.62); line-height: 1.4; }

/* ============ METRIC CARDS ============ */
.metric { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.metric-card .src { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.metric-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }

/* ============ GUARDRAILS LIST ============ */
.guardrails { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin-top: 22px; }
.guardrails li { position: relative; font-size: 14.5px; color: var(--text); line-height: 1.45; padding: 13px 0 13px 24px; border-top: 1px solid var(--bd); }
.guardrails li::before { content: ''; position: absolute; left: 0; top: 20px; width: 13px; height: 2px; background: var(--accent); }

/* ============ ABOUT ============ */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px,3vw,32px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 16px; }
.prose p { font-size: 17px; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.prose p strong { color: var(--ink); font-weight: 600; }

/* about — mission */
.about-mission { max-width: 980px; margin: 0 auto; }
.mission-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.mission-statement { font-size: clamp(27px, 3.6vw, 42px); font-weight: 700; line-height: 1.18; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 40px; text-wrap: balance; }
.mission-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 56px; }
.mission-cols p { font-size: 16px; color: var(--text); line-height: 1.72; margin-bottom: 16px; }
.mission-cols div p:last-child { margin-bottom: 0; }

/* about — testimonial */
.testimonial { max-width: 880px; margin: 0 auto; text-align: center; }
.testimonial blockquote { font-size: clamp(22px, 2.7vw, 31px); font-weight: 500; line-height: 1.42; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 24px; text-wrap: balance; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 4px; }
.testimonial .t-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.testimonial .t-role { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 760px) { .mission-cols { grid-template-columns: 1fr; gap: 0; } }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; max-width: 1040px; margin: 0 auto; }
.team-card { text-align: center; }
.team-photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; background: var(--paper-3); border: 1px solid var(--bd); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(100%); }
.team-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.team-card .role { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.team-card .bio { font-size: 12.5px; color: var(--text-mute); line-height: 1.5; }
.team-li { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-top: 11px; border-radius: 50%; color: var(--text-faint); transition: color .15s, background .15s; }
.team-li:hover { color: var(--accent); background: var(--paper-3); }
.team-li svg { width: 15px; height: 15px; }

/* ============ PRICING ============ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card { background: var(--paper); border: 1px solid var(--bd); border-radius: var(--r-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.price-card.feat { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.price-badge { position: absolute; top: -11px; left: 28px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 11px; border-radius: var(--r-pill); }
.price-tier { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.price-for { font-size: 13.5px; color: var(--text-mute); margin-top: 7px; line-height: 1.45; min-height: 40px; }
.price-amt { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 2px; }
.price-num { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.price-per { font-size: 13px; color: var(--text-mute); }
.price-card > .btn { margin-top: 22px; width: 100%; justify-content: center; }
.price-feats { list-style: none; display: flex; flex-direction: column; margin-top: 24px; border-top: 1px solid var(--bd); }
.price-feats li { font-size: 14px; color: var(--text); line-height: 1.45; padding: 9px 2px; border-bottom: 1px solid var(--bd); }
.price-feats li:last-child { border-bottom: 0; }
.price-feats li.grp { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); padding-top: 13px; }
.price-foot { text-align: center; font-size: 14px; color: var(--text-mute); margin-top: 30px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--bd); padding: 28px 32px; background: var(--paper); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.footer-brand img { width: 18px; height: 18px; }
.footer-meta { font-size: 12.5px; color: var(--text-faint); }
.footer-links { display: flex; gap: 18px; }
.footer-links button { font-family: inherit; font-size: 13px; color: var(--text-mute); background: none; border: 0; cursor: pointer; }
.footer-links button:hover { color: var(--ink); }
.footer-li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-mute); transition: color .15s; }
.footer-li:hover { color: var(--accent); }
.footer-li svg { width: 15px; height: 15px; }

/* ============ PRIVACY MODAL ============ */
.pp-scrim {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw; background: rgba(15,23,42,0.55);
}
.pp-scrim[hidden] { display: none; }
.pp-dialog {
  display: flex; flex-direction: column;
  width: 100%; max-width: 760px; max-height: 90vh;
  background: var(--paper); border: 1px solid var(--bd);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.pp-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--bd);
  background: var(--paper-2); flex: none;
}
.pp-bar-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.pp-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; background: none;
  border: 1px solid var(--bd); border-radius: var(--r-md);
  color: var(--text-mute); cursor: pointer; transition: color .15s, border-color .15s;
}
.pp-close:hover { color: var(--ink); border-color: var(--text-faint); }
.pp-close svg { width: 16px; height: 16px; }
.pp-body { padding: 32px 40px 40px; overflow-y: auto; }
.pp-h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 6px; }
.pp-updated { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 24px; }
.pp-body p { font-size: 14.5px; line-height: 1.7; color: var(--text); margin-bottom: 15px; }
.pp-h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 30px 0 12px; }
.pp-h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 22px 0 10px; }
.pp-list { margin: 0 0 15px; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.pp-list li { font-size: 14.5px; line-height: 1.65; color: var(--text); }
.pp-list li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .pp-body { padding: 24px 22px 30px; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--bd);
    box-shadow: var(--shadow-md);
    padding: 12px 22px 18px;
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links .nav-link { text-align: left; padding: 12px 12px; font-size: 16px; }
  .nav-cta {
    margin-left: 0; margin-top: 8px;
    justify-content: center; padding: 13px 17px; font-size: 15px;
  }
  .grid-3, .grid-4, .grid-2, .levels, .outcomes, .two-paths, .coll-grid, .dir-grid, .done-actions, .effort, .hero-uses, .guardrails, .price-grid, .split, .ev-sources, .trust-grid { grid-template-columns: 1fr; }
  .trust-grid .tp, .trust-grid .tp:first-child { padding: 22px 0; }
  .trust-grid .tp + .tp { border-left: 0; border-top: 1px solid var(--bd); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2n) { border-right: 0; }
  .stat-strip .stat:nth-child(5) { grid-column: 1 / -1; }
  .hero-uses > div + div { border-left: 0; border-top: 1px solid var(--bd); }
  .effort div + div { border-left: 0; border-top: 1px solid var(--bd); }
  .use-list { grid-template-columns: 1fr; }
  .use-item:nth-child(odd) { border-right: 0; }
  .use-item:nth-last-child(2) { border-bottom: 1px solid var(--bd); }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .detail.rev .detail-text { order: 0; }
  .src-pop { position: static; width: 100%; right: auto; bottom: auto; margin-top: 16px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .rail { overflow-x: auto; }
  section { padding: 52px 22px; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 12px 18px; }
  section { padding: 44px 18px; }
  .hero-split { padding: 44px 18px 40px; }
  .hero-lede h1 { font-size: clamp(40px, 12vw, 56px); max-width: 100%; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .stat:nth-child(5) { grid-column: auto; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}