/* Redroot landing page. Tokens follow the Redroot design system (Oct 2026):
   warm paper, heartwood signature, slate strata, flat surfaces, motion that
   grows rather than pops. */
:root {
  --heartwood-900: #3F150E; --heartwood-700: #5E2217; --heartwood-500: #7B2D1F; --heartwood-300: #B4705F; --heartwood-200: #E0A58C; --heartwood-100: #EBD6D0;
  --slate-700: #2F3F4D; --slate-500: #4F6273; --slate-300: #8EA0B0; --slate-100: #DCE3E9;
  --n0: #F5F1EC; --n50: #EFEAE3; --n100: #DED7CE; --n300: #B9B0A5; --n500: #857C72; --n700: #4F4842; --n800: #2A2522; --n900: #1B1715; --n950: #15110F;
  --bg: var(--n0); --bg-raised: #fff; --bg-sunken: var(--n50); --border: var(--n100); --border-strong: var(--n300);
  --fg: var(--n900); --fg-muted: var(--n700); --fg-subtle: var(--n500);
  --accent: var(--heartwood-500); --accent-hover: var(--heartwood-700); --accent-fg: #fff;
  --secondary: var(--slate-500); --viz-muted: var(--slate-100); --focus: var(--slate-500);
  --ok: #1F6B55; --ok-bg: #DCEFE6; --draft: #6B4FBB; --draft-bg: #E7E1F7; --error: #B22A5B; --info: #2F5FA8; --info-bg: #DDE7F6;
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px;
  --shadow-2: 0 4px 14px rgba(27, 23, 21, .10); --shadow-3: 0 12px 32px rgba(27, 23, 21, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: 'Manrope', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: var(--n900); --bg-raised: var(--n800); --bg-sunken: var(--n950); --border: #3A332E; --border-strong: var(--n700);
  --fg: var(--n0); --fg-muted: var(--n100); --fg-subtle: var(--n300);
  --accent: var(--heartwood-200); --secondary: var(--slate-300);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--r-md); }
.skip:focus { top: 12px; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); }

/* Wordmark rule: "Red" 300, "root" 800 in heartwood. */
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); }
.lockup svg { width: 22px; height: 22px; color: var(--accent); }
.lockup .w { font-size: 22px; letter-spacing: -.01em; }
.w .r1 { font-weight: 300; }
.w .r2 { font-weight: 800; color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid transparent; font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--heartwood-900); }
.btn-secondary { background: var(--bg-raised); border-color: var(--border); color: var(--fg); }
.btn-secondary:hover { background: var(--bg-sunken); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--fg-muted); height: 32px; padding: 0 10px; font-size: 12px; }
.btn-ghost:hover { background: var(--bg-sunken); color: var(--fg); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { position: relative; padding: 22px 0; font: 500 14px/1 var(--sans); color: var(--fg-muted); text-decoration: none; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.current::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-by { font: 500 12px/1 var(--sans); color: var(--fg-subtle); text-decoration: none; }
.nav-by:hover { color: var(--fg); }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg-raised); align-items: center; justify-content: center; cursor: pointer; }
.nav-menu { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-menu { display: block; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  .nav.open .nav-menu { max-height: 420px; border-top: 1px solid var(--border); }
  .nav-menu ul { list-style: none; margin: 0 auto; padding-top: 8px; padding-bottom: 16px; }
  .nav-menu a:not(.btn) { display: block; padding: 13px 0; border-bottom: 1px solid var(--border); font: 500 16px/1.2 var(--sans); color: var(--fg); text-decoration: none; }
  .nav-menu .btn { width: 100%; margin-top: 14px; }
}

/* Shared section pieces */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.eyebrow { display: inline-flex; align-items: center; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); }
.eyebrow .bar { width: 28px; height: 2px; margin-right: 10px; background: var(--accent); transform-origin: left center; transform: scaleX(0); transition: transform .9s var(--ease) .15s; }
.is-in .eyebrow .bar, .eyebrow.is-in .bar { transform: none; }
h2.title { font: 600 clamp(32px, 3.6vw, 44px)/1.1 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.lede { font: 400 17px/1.6 var(--sans); color: var(--fg-muted); text-wrap: pretty; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.copy { display: flex; flex-direction: column; gap: 18px; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Small UI atoms reused by the cards */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font: 500 12px/1 var(--sans); white-space: nowrap; transition: background .24s ease-out, color .24s ease-out; }
.badge .ic { width: 13px; height: 13px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.draft { background: var(--draft-bg); color: var(--draft); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--r-sm); background: var(--bg-sunken); border: 1px solid var(--border); font: 500 12px/1 var(--sans); color: var(--fg-muted); white-space: nowrap; }
.tag.policy { background: var(--bg-raised); border-color: var(--secondary); color: var(--fg); }
.tag .ic { width: 12px; height: 12px; color: var(--secondary); }
.sep { color: var(--fg-subtle); }
.label { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); }

/* ── Hero ───────────────────────────────────────────── */
.hero { border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 80px); }
@media (max-width: 1000px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font: 600 clamp(40px, 5.2vw, 62px)/1.05 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.hero h1 .wd { display: inline-block; }
.js .hero h1 .wd { opacity: 0; transform: translateY(.35em); animation: rr-word .6s var(--ease) forwards; animation-delay: calc(.12s + var(--i) * 70ms); }
.hero h1 .cert { position: relative; color: var(--accent); }
.hero h1 .ul { position: absolute; left: 2px; right: 2px; bottom: .02em; height: max(3px, .07em); border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; animation: rr-grow-x .9s var(--ease) .9s forwards; }
@keyframes rr-word { to { opacity: 1; transform: none; } }
@keyframes rr-grow-x { to { transform: scaleX(1); } }
@keyframes rr-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .in { opacity: 0; animation: rr-up .6s var(--ease) forwards; animation-delay: calc(.45s + var(--n) * 140ms); }
.hero-lede { max-width: 540px; font: 400 19px/1.55 var(--sans); color: var(--fg-muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 400 13px/1.4 var(--sans); color: var(--fg-muted); }

/* The chat demo: a regional credit manager asks; Redroot answers with a receipt. */
.demo { position: relative; min-width: 0; max-width: 600px; justify-self: end; width: 100%; }
@media (max-width: 1000px) { .demo { justify-self: stretch; max-width: none; } }
.chat { display: flex; flex-direction: column; height: 600px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden; position: relative; z-index: 1; }
@media (max-width: 520px) { .chat { height: 560px; } }
.chat-head { flex: none; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-sunken); border: 1px solid var(--border-strong); }
.chat-head b { font: 600 13px/1 var(--sans); }
.connected { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); font: 500 12px/1 var(--sans); color: var(--fg-muted); }
.connected svg { width: 13px; height: 13px; color: var(--accent); }
.chat-body { flex: 1; min-height: 0; overflow: hidden; background: var(--bg); }
.chat-scroll { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 24px; }
.bubble { align-self: flex-end; max-width: 84%; min-height: 40px; padding: 10px 14px; border-radius: 16px; background: var(--bg-sunken); border: 1px solid var(--border); font: 400 14px/1.45 var(--sans); }
.bubble .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: text-bottom; background: var(--fg); animation: rr-blink 1s steps(1) infinite; }
@keyframes rr-blink { 50% { opacity: 0; } }
.thinking { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.3 var(--sans); color: var(--fg-muted); }
.thinking .ic { color: var(--info); animation: rr-spin 1.2s linear infinite; }
@keyframes rr-spin { to { transform: rotate(360deg); } }
.answer-text { font: 400 14px/1.55 var(--sans); }
.grow { transform-origin: top center; animation: rr-grow .6s var(--ease) both; }
@keyframes rr-grow { from { opacity: 0; transform: translateY(10px) scaleY(.96); } to { opacity: 1; transform: none; } }
.chat-foot { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-top: 1px solid var(--border); background: var(--bg-sunken); font: 500 11px/1 var(--mono); color: var(--fg-subtle); }
.chat-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); transition: background .3s; }
.chat-foot.logged .dot { background: var(--ok); }
.chat-foot .txt { transition: opacity .24s; }
.net { position: relative; height: 140px; margin-top: -1px; color: var(--secondary); }
.net svg { width: 100%; height: 100%; overflow: visible; }
.net text { font: 500 9.5px var(--mono); letter-spacing: .08em; fill: var(--fg-subtle); }
.demo-caption { display: flex; align-items: center; gap: 10px; margin-top: 4px; font: 400 12px/1.4 var(--sans); color: var(--fg-subtle); min-height: 32px; }
.demo-caption .btn-ghost { margin-left: auto; }
.demo-caption .ic { width: 13px; height: 13px; }

/* Answer card */
.card { display: flex; flex-direction: column; gap: 16px; padding: clamp(16px, 3vw, 22px); background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.card-head svg.mk { width: 18px; height: 18px; color: var(--accent); }
.card-head .who { font: 500 12px/1 var(--sans); color: var(--fg-muted); }
.views { margin-left: auto; display: flex; gap: 4px; }
.views span { width: 30px; height: 30px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; color: var(--fg-muted); }
.views span.on { border: 1px solid var(--border); background: var(--bg-raised); color: var(--fg); }
.metric-label { font: 500 13px/1.3 var(--sans); color: var(--fg-muted); }
.metric-value { font: 600 clamp(34px, 5vw, 44px)/1 var(--sans); letter-spacing: -.02em; }
.metric-delta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 14px/1.3 var(--sans); }
.metric-delta .up { display: inline-flex; align-items: center; gap: 4px; color: var(--error); }
.metric-delta .vs { color: var(--fg-muted); font-weight: 400; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 12px/1 var(--sans); color: var(--fg-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 10px; border-radius: 2px; background: var(--secondary); }
.legend i.q2 { height: 6px; background: var(--viz-muted); border: 1px solid var(--fg-subtle); }
.bars { display: grid; gap: 8px; }
.brow { display: grid; grid-template-columns: clamp(84px, 22%, 128px) minmax(0, 1fr) 52px; align-items: center; gap: 10px; min-height: 22px; }
.brow .nm { font: 500 13px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .tr { display: flex; flex-direction: column; gap: 2px; }
.brow .b3, .brow .b2 { display: block; border-radius: 0 2px 2px 0; transform: scaleX(0); transform-origin: left center; transition: transform .9s var(--ease); }
.brow .b3 { height: 10px; background: var(--secondary); }
.brow .b2 { height: 6px; background: var(--viz-muted); border: 1px solid var(--fg-subtle); border-left: 0; }
.card.grown .brow .b3, .card.grown .brow .b2 { transform: none; }
.brow .v { font: 600 13px/1 var(--sans); text-align: right; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.trustline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 12px; border-top: 1px solid var(--border); font: 400 12px/1.4 var(--sans); color: var(--fg-muted); }
.trustline .ic { width: 13px; height: 13px; }
.trustline .fresh { display: inline-flex; align-items: center; gap: 5px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .btn { height: 36px; font-size: 13px; }
.card-actions .btn .chev { transition: transform .3s var(--ease); }
.card-actions .btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.fold > div { min-height: 0; overflow: hidden; }
.fold.open { grid-template-rows: 1fr; }
.follow { display: flex; flex-wrap: wrap; gap: 8px; }
.follow span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font: 500 13px/1.3 var(--sans); }
.follow .ic { width: 14px; height: 14px; color: var(--fg-subtle); }

/* Receipt panel */
.receipt { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 16px; }
.receipt.big { background: var(--bg-raised); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 6px 22px; }
.rc-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rc-row:last-child { border-bottom: 0; }
.rc-top { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 12px 0; }
.rc-top .qid { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--sans); color: var(--fg-muted); }
.rc-top .qid b { font: 500 12px/1 var(--mono); color: var(--fg); }
.rc-metric { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rc-metric strong { font: 600 15px/1.2 var(--sans); }
.rc-metric .mid { font: 400 11px/1 var(--mono); color: var(--fg-subtle); }
.rc-def { font: 400 14px/1.5 var(--sans); color: var(--fg-muted); text-wrap: pretty; }
.rc-sub { font: 400 12px/1.4 var(--sans); color: var(--fg-subtle); }
.kv { display: flex; flex-wrap: wrap; gap: 2px 12px; font: 400 13px/1.45 var(--sans); }
.kv > span:first-child { flex: 0 0 104px; color: var(--fg-subtle); }
.kv > span:last-child { flex: 1 1 180px; min-width: 0; }
.kv .pol { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.kv .code { font: 400 12px/1.4 var(--mono); color: var(--fg); }
.src { display: flex; align-items: center; gap: 8px; font: 500 13px/1.4 var(--sans); }
.src svg { width: 16px; height: 16px; color: var(--accent); }
.tables { font: 400 12px/1.4 var(--mono); color: var(--fg-muted); overflow-wrap: anywhere; }
.sql-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 8px 0 0; border: 0; background: none; font: 500 13px/1 var(--sans); cursor: pointer; }
.sql-toggle .ic { transition: transform .3s var(--ease); }
.sql-toggle[aria-expanded="true"] .ic { transform: rotate(90deg); }
.sql-box { position: relative; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-md); }
.receipt.big .sql-box { background: var(--bg-sunken); }
.sql-box pre { margin: 0; padding: 12px 0; overflow-x: auto; font: 400 12px/1.65 var(--mono); color: var(--fg-muted); }
.sql-box pre div { white-space: pre; padding: 0 48px 0 12px; min-width: max-content; }
.sql-box pre .pl { background: var(--viz-muted); }
.sql-box .k { color: var(--secondary); font-weight: 600; }
.sql-box .s { color: var(--accent); font-weight: 500; }
.sql-box .c { color: var(--fg-subtle); font-weight: 500; }
.sql-box .c.p { color: var(--secondary); }
.sql-box pre span:not([class]) { color: var(--fg); }
.copy-btn { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg-raised); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg-muted); }
.copy-btn:hover { background: var(--bg-sunken); color: var(--fg); }

/* Where it works */
.where { border-bottom: 1px solid var(--border); }
.where-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; padding-top: 20px; padding-bottom: 20px; }
@media (max-width: 760px) { .where-in { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.where .k { font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); }
.marquee { overflow: hidden; border-left: 1px solid var(--border); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
@media (max-width: 760px) { .marquee { border-left: 0; } }
.marquee-row { display: flex; width: max-content; animation: rr-marquee 46s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes rr-marquee { to { transform: translateX(-50%); } }
.marquee-row span { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; font: 500 14px/32px var(--sans); color: var(--fg-muted); white-space: nowrap; }
.marquee-row span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); }
.marquee-row span.ai { color: var(--fg); }
.marquee-row span.ai::before { background: var(--accent); }
.marquee-row span.next { color: var(--fg-subtle); }
.marquee-row span.next::before { background: transparent; border: 1px solid var(--slate-300); }
.marquee-row span.next i { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 3px 5px; border-radius: 3px; border: 1px dashed var(--border-strong); color: var(--fg-subtle); }

/* 01 Receipt */
.receipt-sec .split { align-items: start; }
.sticky { position: sticky; top: 96px; }
@media (max-width: 960px) { .sticky { position: static; } }
.points { list-style: none; margin: 0; padding: 0; }
.points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.points .ic { width: 18px; height: 18px; color: var(--secondary); margin-top: 2px; }
.points b { display: block; font: 600 15px/1.35 var(--sans); }
.points span span { display: block; margin-top: 3px; font: 400 14px/1.5 var(--sans); color: var(--fg-muted); }

/* 02 How */
.how { background: var(--bg-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; border-radius: var(--r-md); border: 1px solid var(--border); background: transparent; text-align: left; cursor: pointer; overflow: hidden; transition: background .24s, border-color .24s; }
.step:hover { border-color: var(--border-strong); }
.step[aria-selected="true"] { background: var(--bg-raised); border-color: var(--border-strong); }
.step .n { font: 500 11px/1 var(--mono); color: var(--fg-subtle); }
.step[aria-selected="true"] .n { color: var(--accent); }
.step b { font: 600 16px/1.3 var(--sans); }
.step span.d { font: 400 13px/1.5 var(--sans); color: var(--fg-muted); text-wrap: pretty; }
@media (max-width: 560px) { .step span.d { display: none; } }
.step .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.frame { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-sunken); }
.frame-bar .addr { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--border); font: 400 11px/1 var(--mono); color: var(--fg-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage { position: relative; aspect-ratio: 1440 / 860; overflow: hidden; background: var(--bg); }
@media (max-width: 560px) { .stage { aspect-ratio: 4 / 3.4; } }
.shot { position: absolute; inset: 0; overflow: hidden; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.shot.on { opacity: 1; transform: none; }
.shot img { width: 100%; height: auto; transform: translateY(0); }
.shot.on img.pan { transform: translateY(var(--pan)); transition: transform 4.4s cubic-bezier(.45, 0, .55, 1) .5s; }
.shot.chatshot { background: var(--bg-sunken); display: flex; justify-content: center; padding: 3% 16px 0; }
.shot.chatshot .inner { width: min(640px, 100%); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 560px) { .shot img { width: 160%; max-width: none; } }

/* 03 Certify */
.cert-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.cert-card .t { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cert-card .t strong { font: 600 20px/1.3 var(--sans); }
.diff { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; font: 400 12px/1.7 var(--mono); }
.diff div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; background: var(--info-bg); border-top: 1px solid var(--border); }
.diff div:first-child { border-top: 0; }
.diff .plus { text-align: center; color: var(--info); font-weight: 600; }
.diff .ln { overflow-wrap: anywhere; }
.diff .ai { padding: 0 8px; display: flex; align-items: center; transition: opacity .24s ease-out; }
.diff .ai i { font-style: normal; display: inline-flex; align-items: center; height: 16px; padding: 0 4px; border-radius: 3px; border: 1px dashed var(--draft); color: var(--draft); font: 600 10px/1 var(--mono); }
.cert-card.certified .diff .ai { opacity: 0; }
.stamp { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--ok-bg); font: 400 13px/1.45 var(--sans); }
.stamp .ic { width: 18px; height: 18px; color: var(--ok); }
.cert-replay { align-self: flex-end; }

/* 04 Refuse */
.refusal .card-head .scope { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); font: 500 12px/1 var(--sans); color: var(--fg-muted); white-space: nowrap; }
.refusal h3 { font: 600 18px/1.35 var(--sans); letter-spacing: -.01em; }
.refusal p { font: 400 14px/1.55 var(--sans); color: var(--fg-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font: 500 13px/1.3 var(--sans); }
.chips span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.needed { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--r-md); }
.needed p { color: var(--fg); }
.req { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 14px; border-top: 1px solid var(--border); font: 400 12px/1.4 var(--sans); color: var(--fg-subtle); }
.req-done { display: none; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.req-done b { display: flex; align-items: center; gap: 8px; font: 600 14px/1.3 var(--sans); }
.req-done b .ic { color: var(--info); }
.req-done b .mono { font: 500 12px/1 var(--mono); color: var(--fg-muted); }
.req-done q { align-self: flex-start; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg-sunken); border: 1px solid var(--border); font: 400 12px/1.45 var(--mono); }
.refusal.requested .req { display: none; }
.refusal.requested .req-done { display: flex; animation: rr-grow .6s var(--ease) both; }

/* 05 Govern (dark) */
.govern { background: var(--bg); color: var(--fg); position: relative; overflow: hidden; }
.govern-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: 48px; }
@media (max-width: 900px) { .govern-head { grid-template-columns: minmax(0, 1fr); } }
.gpoints { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
@media (max-width: 520px) { .gpoints { grid-template-columns: minmax(0, 1fr); } }
.gpoints li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.gpoints b { font: 600 14px/1.35 var(--sans); }
.gpoints span { font: 400 13px/1.5 var(--sans); color: var(--fg-muted); }
.shots { position: relative; padding-bottom: 12%; }
.shots .frame { box-shadow: var(--shadow-3); will-change: transform; }
.shots .f1 { position: relative; z-index: 2; width: 86%; }
.shots .f2 { position: absolute; right: 0; bottom: 0; z-index: 1; width: 52%; }
.shots .crop1 { aspect-ratio: 1440 / 900; overflow: hidden; }
.shots .crop2 { aspect-ratio: 1440 / 820; overflow: hidden; }
.shots img { width: 100%; height: auto; }
@media (max-width: 700px) { .shots { padding-bottom: 0; display: grid; gap: 16px; } .shots .f1, .shots .f2 { position: relative; width: 100%; } }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: clamp(80px, 10vw, 120px); padding-bottom: clamp(260px, 30vw, 360px); }
.cta h2 { max-width: 760px; font: 600 clamp(34px, 4.4vw, 52px)/1.08 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.cta p { max-width: 620px; font: 400 18px/1.6 var(--sans); color: var(--fg-muted); text-wrap: pretty; }
.cta .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.roots { position: absolute; left: 50%; bottom: -150px; width: min(760px, 130vw); aspect-ratio: 200 / 120; transform: translateX(-50%); color: var(--slate-300); opacity: .55; pointer-events: none; }
.roots svg { width: 100%; height: 100%; }
.roots path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.roots circle { opacity: 0; transition: opacity .6s ease-out 1.2s; }
.roots.is-in path { stroke-dashoffset: 0; }
.roots.is-in circle { opacity: 1; }
.strata { height: 36px; color: var(--slate-300); opacity: .7; }
.strata svg { width: 100%; height: 100%; }

/* Footer: same structure as the LapisAI and RELAI footers. */
.footer { border-top: 1px solid var(--border); background: var(--bg-sunken); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px 32px; padding: 56px 0 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand, .footer-contact { grid-column: span 2; } }
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--fg-muted); max-width: 300px; }
.footer-brand .by { margin-top: 6px; font-size: 13px; color: var(--fg-subtle); }
.footer-brand .by a { color: var(--fg); font-weight: 600; text-decoration: none; }
.footer h3 { font: 600 14px/1.2 var(--sans); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.footer ul a:hover { color: var(--fg); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.footer-contact .ic { margin-top: 3px; color: var(--fg); }
.footer-contact strong { display: block; color: var(--fg); font-weight: 600; }
.footer-contact small { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 22px 0 28px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--fg-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero h1 .wd, .js .in { opacity: 1; transform: none; animation: none; }
  .hero h1 .ul { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-row, .thinking .ic, .bubble .caret { animation: none; }
  .brow .b3, .brow .b2, .eyebrow .bar { transition: none; transform: none; }
  .shot, .shot img, .shot.on img.pan, .fold, .roots path { transition: none; }
  .roots path { stroke-dashoffset: 0; } .roots circle { opacity: 1; }
  .grow, .refusal.requested .req-done { animation: none; }
}
