/* Quanta by DocuFlow, website-next. One component set, two looks:
   html[data-look="hybrid"]  deep-ink hero, showcase and closing bands; crisp white content (default)
   html[data-look="light"]   light editorial throughout; ".tone-dark" surfaces become pale tints
   html[data-look="dark"]    dark throughout; content sections near-black, ".tone-dark" bands a shade lighter with glows
   Brand: Ink #0F2433, Amber #D4893A (accent), Mist #EEF3F6, Steel #26506D, Sky #6F9CC0. Wordmark face Jost.
   Colour meaning (kept from the product): amber = governed and approved by people; verdigris = an agent or a proposal. */

@font-face { font-family: "Jost"; src: url("fonts/jost-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink-950: #06121b; --ink-900: #0a1a26; --ink-850: #0d2130; --ink: #0f2433; --ink-700: #173a52;
  --steel: #26506d; --sky: #6f9cc0; --sky-200: #cfe0ec; --sky-100: #e7eff6;
  --amber: #d4893a; --amber-hover: #e29b50; --amber-600: #9a5b18; /* amber for text: brand #A8651C deepened so it passes AA on tinted panels too */ --amber-300: #f0b978; --amber-50: #fbf3e9;
  --verd: #5cc7bf; --verd-700: #1b6a64; --verd-50: #e8f6f4;
  --mist: #eef3f6;
  --display: "Jost", "Avenir Next", "Futura", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1200px;
  --r-xl: 24px; --r-lg: 18px; --r: 12px; --r-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
  /* Look-dependent buttons */
  --btn-bg: var(--amber); --btn-fg: #1a1006; --btn-bg-hover: var(--amber-hover);
}
html[data-look="light"] { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bg-hover: var(--ink-700); }

/* Tones: every surface reads these. */
body, .tone-light {
  --bg: #fff; --bg-soft: #f6f8fa; --fg: #0f2433; --fg-2: #485a6a; --fg-3: #5f7183;
  --line: #e3e9ef; --card: #fff; --card-line: #e1e8ee; --chip: #eef3f6;
  --card-shadow: 0 1px 2px rgba(15,36,51,.04), 0 12px 32px -16px rgba(15,36,51,.16);
  --accent-text: var(--amber-600); --agent: var(--verd-700); --agent-soft: var(--verd-50); --gov-soft: var(--amber-50);
  --heat-1: #eef4f9; --heat-2: #d6e5f0; --heat-3: #aecbe1; --heat-4: #6f9cc0; --heat-5: #2f5d7d; --heat-fg-hi: #fff;
}
.tone-dark {
  --bg: var(--ink-900); --bg-soft: var(--ink-850); --fg: #eef3f6; --fg-2: #aabbcb; --fg-3: #8397a9;
  --line: rgba(238,243,246,.1); --card: rgba(255,255,255,.035); --card-line: rgba(238,243,246,.1); --chip: rgba(255,255,255,.07);
  --card-shadow: none;
  --accent-text: var(--amber-300); --agent: var(--verd); --agent-soft: rgba(92,199,191,.12); --gov-soft: rgba(212,137,58,.14);
  --heat-1: rgba(111,156,192,.1); --heat-2: rgba(111,156,192,.2); --heat-3: rgba(111,156,192,.34); --heat-4: rgba(111,156,192,.55); --heat-5: rgba(140,182,214,.82); --heat-fg-hi: #06121b;
}
html[data-look="light"] .tone-dark {
  --bg: #f3f6f9; --bg-soft: #eaf0f5; --fg: #0f2433; --fg-2: #485a6a; --fg-3: #5f7183;
  --line: #dde5ec; --card: #fff; --card-line: #dfe7ee; --chip: #e6edf3;
  --card-shadow: 0 1px 2px rgba(15,36,51,.04), 0 12px 32px -16px rgba(15,36,51,.16);
  --accent-text: var(--amber-600); --agent: var(--verd-700); --agent-soft: var(--verd-50); --gov-soft: var(--amber-50);
  --heat-1: #eef4f9; --heat-2: #d6e5f0; --heat-3: #aecbe1; --heat-4: #6f9cc0; --heat-5: #2f5d7d; --heat-fg-hi: #fff;
}

/* Dark look: every surface dark. Content sections sit on near-black; .tone-dark bands keep the ink with glows. */
html[data-look="dark"] { color-scheme: dark; }
html[data-look="dark"] body, html[data-look="dark"] .tone-light {
  --bg: #06111a; --bg-soft: #0a1823; --fg: #eef3f6; --fg-2: #a7b8c8; --fg-3: #8195a7;
  --line: rgba(238,243,246,.09); --card: rgba(255,255,255,.03); --card-line: rgba(238,243,246,.09); --chip: rgba(255,255,255,.07);
  --card-shadow: 0 0 0 1px rgba(255,255,255,.015) inset;
  --accent-text: var(--amber-300); --agent: var(--verd); --agent-soft: rgba(92,199,191,.12); --gov-soft: rgba(212,137,58,.14);
  --heat-1: rgba(111,156,192,.1); --heat-2: rgba(111,156,192,.2); --heat-3: rgba(111,156,192,.34); --heat-4: rgba(111,156,192,.55); --heat-5: rgba(140,182,214,.82); --heat-fg-hi: #06121b;
}
html[data-look="dark"] .tone-dark { --bg: #0a1a26; --bg-soft: #0d2130; }
html[data-look="dark"] .logo-on-dark { display: block; }
html[data-look="dark"] .logo-on-light { display: none; }
html[data-look="dark"] .site-header { background: rgba(6,17,26,.66); }
html[data-look="dark"] .site-header.scrolled { background: rgba(6,17,26,.88); }
html[data-look="dark"] .card-link:hover, html[data-look="dark"] .card:hover { border-color: rgba(238,243,246,.16); }
html[data-look="dark"] .band + .band:not(.tone-dark):not(.soft) { border-top-color: rgba(238,243,246,.06); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; color: var(--fg); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.06; letter-spacing: -0.028em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -999px; top: 10px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 10px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.placeholder { background: rgba(212,137,58,.18); color: inherit; padding: 0 .3em; border-radius: 4px; }
.mono { font-family: var(--mono); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 .98rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -10px rgba(212,137,58,.6); }
html[data-look="light"] .btn-primary { box-shadow: 0 8px 22px -10px rgba(15,36,51,.55); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--card-line); }
.btn-secondary:hover { background: var(--chip); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--fg); text-decoration: none; }
.link-arrow .ic { transition: transform .2s var(--ease); }
a:hover .link-arrow .ic, .link-arrow:hover .ic { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.site-header.scrolled { border-bottom-color: var(--line); }
html[data-look="light"] .site-header { background: rgba(255,255,255,.82); }
html[data-look="hybrid"] .site-header { background: rgba(10,26,38,.6); }
html[data-look="hybrid"] .site-header.scrolled { background: rgba(10,26,38,.86); }
.header-bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.logo-on-dark { display: none; }
.logo-on-light { display: block; }
:is(html[data-look="hybrid"] .tone-dark, html[data-look="dark"]) .logo-on-dark { display: block; }
:is(html[data-look="hybrid"] .tone-dark, html[data-look="dark"]) .logo-on-light { display: none; }
.primary-nav { display: flex; gap: 4px; margin-right: auto; }
.primary-nav a { padding: 8px 14px; border-radius: 999px; color: var(--fg-2); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s, background .2s; }
.primary-nav a:hover { color: var(--fg); background: var(--chip); }
.primary-nav a[aria-current="page"] { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-link { color: var(--fg-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.header-link:hover { color: var(--fg); }
.primary-nav .nav-mobile-only { display: none; }
@media (max-width: 920px) { .primary-nav .nav-mobile-only { display: block; } }
.menu-toggle { display: none; background: none; border: 1px solid var(--card-line); color: var(--fg); width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .ic { width: 20px; height: 20px; }
@media (max-width: 920px) {
  .header-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 400px) { .header-actions .btn { padding: 0 12px; } .brand img { height: 30px; } }

/* Sections */
.band { position: relative; background: var(--bg); color: var(--fg); padding-block: clamp(80px, 10vw, 136px); overflow: clip; }
.band.soft { background: var(--bg-soft); }
.band.tight { padding-block: clamp(56px, 7vw, 88px); }
.band + .band:not(.tone-dark):not(.soft) { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 + .lede { margin-top: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; opacity: .7; }
.section-head.center .eyebrow::after { content: ""; width: 18px; height: 1.5px; background: currentColor; opacity: .7; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--fg-2); }
.muted { color: var(--fg-2); }
.small { font-size: .9rem; }

/* Reveal on scroll (JS adds .in). Content is visible without JS and under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Hero */
.hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 0; padding-bottom: 1px; background: var(--bg); }
.hero-stage.hero-overlap { position: relative; z-index: 3; margin-bottom: -200px; }
.hero + .proof { padding-top: 240px; }
@media (max-width: 760px) { .hero-stage.hero-overlap { margin-bottom: -110px; } .hero + .proof { padding-top: 150px; } }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; inset: -10% -10% 30%; background:
  radial-gradient(42% 50% at 22% 28%, rgba(111,156,192,.24), transparent 70%),
  radial-gradient(30% 38% at 82% 18%, rgba(212,137,58,.16), transparent 70%),
  radial-gradient(40% 40% at 60% 70%, rgba(92,199,191,.08), transparent 70%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 55% at 50% 20%, #000 10%, transparent 75%); mask-image: radial-gradient(70% 55% at 50% 20%, #000 10%, transparent 75%); opacity: .55; }
html[data-look="light"] .hero { background: linear-gradient(#fff, #f6f9fb); }
html[data-look="light"] .hero-bg::before { background:
  radial-gradient(40% 50% at 18% 26%, rgba(111,156,192,.30), transparent 70%),
  radial-gradient(32% 40% at 86% 14%, rgba(212,137,58,.22), transparent 70%),
  radial-gradient(40% 40% at 60% 64%, rgba(92,199,191,.14), transparent 70%); }
.hero-copy { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.hero-copy h1 em { font-style: normal; background: linear-gradient(100deg, var(--fg) 10%, var(--sky) 55%, var(--amber) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html:is([data-look="hybrid"], [data-look="dark"]) .hero-copy h1 em { background: linear-gradient(100deg, #fff 10%, #a9c6dd 55%, var(--amber-300) 95%); -webkit-background-clip: text; background-clip: text; }
.hero-copy .lede { max-width: 680px; margin: 26px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--fg-3); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .ic { color: var(--agent); }
.announce { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 28px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card); text-decoration: none; color: var(--fg-2); font-size: .88rem; box-shadow: var(--card-shadow); }
.announce b { background: var(--agent-soft); color: var(--agent); font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: .78rem; letter-spacing: .02em; }
.announce:hover { color: var(--fg); }
@media (max-width: 560px) { .announce { font-size: .8rem; text-align: left; gap: 8px; } .announce .ic { display: none; } }
.hero-stage { position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1180px; padding: 0 24px; perspective: 1800px; }
.hero-stage::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6%; height: 70%; background: radial-gradient(closest-side, rgba(111,156,192,.35), transparent); filter: blur(40px); pointer-events: none; }
html[data-look="light"] .hero-stage::before { background: radial-gradient(closest-side, rgba(111,156,192,.28), transparent); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 2; }
html[data-look="light"] .hero-fade { background: linear-gradient(rgba(246,249,251,0), #f6f9fb); }

/* Product window mock (the app) */
.app { --app-bg: #fff; --app-side: #f7f9fb; --app-line: #e3e9ef; --app-fg: #0f2433; --app-fg2: #5a6c7d; --app-chip: #eef3f6;
  position: relative; border-radius: 16px; background: var(--app-bg); border: 1px solid var(--app-line); color: var(--app-fg); font-size: 13px; line-height: 1.45; overflow: hidden;
  box-shadow: 0 2px 4px rgba(15,36,51,.04), 0 40px 80px -30px rgba(15,36,51,.35), 0 0 0 1px rgba(255,255,255,.4) inset; text-align: left; }
:is(html[data-look="hybrid"] .tone-dark, html[data-look="dark"]) .app { --app-bg: #0c1d2a; --app-side: #0a1823; --app-line: rgba(238,243,246,.09); --app-fg: #e6eef4; --app-fg2: #8fa3b5; --app-chip: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 50px 100px -30px rgba(0,0,0,.7), 0 0 120px -40px rgba(111,156,192,.45); }
.app-chrome { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--app-line); background: var(--app-side); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--app-line); }
.app-crumb { color: var(--app-fg2); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.app-crumb b { color: var(--app-fg); font-weight: 600; }
.app-search { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 26px; min-width: 200px; border-radius: 7px; background: var(--app-chip); color: var(--app-fg2); font-size: 12px; }
.app-search kbd { margin-left: auto; font: 500 11px var(--mono); opacity: .8; }
.app-body { display: grid; grid-template-columns: 196px 1fr 318px; min-height: 500px; }
.app-side { background: var(--app-side); border-right: 1px solid var(--app-line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.app-ws { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; font-weight: 600; font-size: 13px; }
.app-ws i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--steel), var(--ink)); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; }
.app-nav { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: var(--app-fg2); }
.app-nav .ic { width: 15px; height: 15px; }
.app-nav.on { background: var(--app-chip); color: var(--app-fg); font-weight: 600; }
.app-nav em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--agent-soft); color: var(--agent); }
.app-side-label { margin: 14px 8px 6px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--app-fg2); opacity: .8; }
.app-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app-main-head { display: flex; align-items: center; gap: 12px; }
.app-main-head h4 { font: 600 16px var(--body); letter-spacing: -.01em; color: var(--app-fg); }
.app-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--app-chip); margin-left: auto; }
.app-tabs span { padding: 4px 10px; border-radius: 6px; font-size: 12px; color: var(--app-fg2); }
.app-tabs span.on { background: var(--app-bg); color: var(--app-fg); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.app-legend { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--app-fg2); }
.app-legend .scale { display: flex; gap: 2px; }
.app-legend .scale i { width: 16px; height: 8px; border-radius: 2px; }
.capmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cap-col { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; border: 1px solid var(--app-line); }
.cap-col h5 { margin: 0 0 4px; font: 600 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--app-fg2); }
.cap { position: relative; padding: 8px 9px; border-radius: 7px; font-size: 12px; font-weight: 500; transition: box-shadow .4s, transform .4s var(--ease); display: flex; justify-content: space-between; gap: 6px; }
.cap small { font: 500 10.5px var(--mono); opacity: .75; }
.cap[data-m="1"] { background: var(--heat-1); } .cap[data-m="2"] { background: var(--heat-2); } .cap[data-m="3"] { background: var(--heat-3); }
.cap[data-m="4"] { background: var(--heat-4); color: var(--heat-fg-hi); } .cap[data-m="5"] { background: var(--heat-5); color: var(--heat-fg-hi); }
.cap.lit { box-shadow: 0 0 0 2px var(--amber), 0 0 24px -4px rgba(212,137,58,.7); transform: translateY(-1px); }
.cap.flag::after { content: "!"; position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); color: #1a1006; font: 700 10px/16px var(--body); text-align: center; }
.app-table { border: 1px solid var(--app-line); border-radius: 10px; overflow: hidden; }
.app-table div { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr; gap: 8px; padding: 7px 12px; font-size: 12px; align-items: center; }
.app-table div + div { border-top: 1px solid var(--app-line); }
.app-table .th { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--app-fg2); background: var(--app-side); }
.app-table b { font-weight: 600; }
.app-table span { color: var(--app-fg2); }
.app-table .bad { color: var(--accent-text); font-weight: 600; }
.app-table .pill { justify-self: start; font: 500 10.5px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--gov-soft); color: var(--accent-text); }
.app-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.app-stat { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--app-line); }
.app-stat span { display: block; font-size: 11px; color: var(--app-fg2); }
.app-stat b { font: 600 18px var(--display); letter-spacing: -.01em; }
.app-stat i { font-style: normal; font-size: 11px; color: var(--agent); margin-left: 6px; }
.app-chat { border-left: 1px solid var(--app-line); display: flex; flex-direction: column; background: var(--app-side); min-width: 0; }
.app-chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--app-line); font-weight: 600; }
.app-chat-head .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--agent-soft); color: var(--agent); }
.app-chat-head .dot .ic { width: 13px; height: 13px; }
.app-chat-head small { margin-left: auto; font-weight: 500; color: var(--app-fg2); font-size: 11px; }
.app-chat-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 100%; padding: 9px 11px; border-radius: 10px; font-size: 12.5px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg.you { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 3px; max-width: 88%; }
:is(html[data-look="hybrid"] .tone-dark, html[data-look="dark"]) .msg.you { background: #1d3a50; }
.msg.bot { background: var(--app-bg); border: 1px solid var(--app-line); border-bottom-left-radius: 3px; }
.msg .who { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--agent); margin-bottom: 4px; }
.cite { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; margin: 0 1px; border-radius: 4px; font: 600 10px/1 var(--mono); background: var(--gov-soft); color: var(--accent-text); vertical-align: 1px; }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--app-fg2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.pkg { border: 1px dashed var(--agent); background: var(--agent-soft); border-radius: 10px; padding: 10px 11px; font-size: 12px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pkg-top { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--agent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pkg b { display: block; margin: 4px 0 6px; font-size: 12.5px; }
.pkg-row { display: flex; align-items: center; gap: 6px; color: var(--app-fg2); font-size: 11.5px; }
.pkg-row .ic { width: 13px; height: 13px; color: var(--agent); }
.pkg-row.gov .ic { color: var(--amber); }
.app-input { margin: 0 14px 14px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--app-line); background: var(--app-bg); color: var(--app-fg2); font-size: 12px; }
.app-input .ic { margin-left: auto; width: 14px; height: 14px; }
.toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 0); display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12.5px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); white-space: nowrap; transition: opacity .5s var(--ease), transform .5s var(--ease); z-index: 3; }
:is(html[data-look="hybrid"] .tone-dark, html[data-look="dark"]) .toast { background: #f4f7fa; color: var(--ink); }
.toast .ic { color: var(--amber); width: 16px; height: 16px; }
.toast code { font: 500 11px var(--mono); opacity: .75; }
.js .anim-hide { opacity: 0; transform: translateY(8px); }
.js .toast.anim-hide { transform: translate(-50%, 12px); }
@media (max-width: 1080px) { .app-body { grid-template-columns: 1fr 300px; } .app-side { display: none; } }
@media (max-width: 760px) {
  .app-body { grid-template-columns: 1fr; }
  .app-main { display: none; }
  .app-chat { border-left: 0; }
  .app-chat-body { padding-bottom: 72px; }
  .app-search { display: none; }
  .toast { white-space: normal; width: calc(100% - 28px); }
}

/* Proof / principle strip */
.proof { padding: 40px 0 8px; }
.proof-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.proof-item { display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-size: .93rem; color: var(--fg-2); line-height: 1.35; }
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-item .ic { width: 22px; height: 22px; color: var(--accent-text); }
.proof-item b { color: var(--fg); font-weight: 600; display: block; }
@media (max-width: 1000px) { .proof-row { grid-template-columns: repeat(2, 1fr); } .proof-item + .proof-item { border-left: 0; } .proof-item { border-top: 1px solid var(--line); } .proof-item:nth-child(-n+2) { border-top: 0; } .proof-item:nth-child(even) { border-left: 1px solid var(--line); } .proof-item:last-child { grid-column: 1 / -1; border-left: 0; } }
@media (max-width: 560px) { .proof-row { grid-template-columns: 1fr; } .proof-item, .proof-item:nth-child(even) { border-left: 0; } .proof-item:nth-child(2) { border-top: 1px solid var(--line); } }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--card-shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-2); }
.card .ic-badge { margin-bottom: 20px; }
.ic-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--fg); border: 1px solid var(--card-line); }
.ic-badge .ic { width: 22px; height: 22px; }
.ic-badge.gov { background: var(--gov-soft); color: var(--accent-text); border-color: transparent; }
.ic-badge.agent { background: var(--agent-soft); color: var(--agent); border-color: transparent; }
.card-link { text-decoration: none; display: block; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card-link:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--fg) 22%, transparent); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--fg-2); font-size: .97rem; line-height: 1.45; }
.ticks .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--agent); }
.ticks.gov .ic { color: var(--accent-text); }

/* Before / after */
.contrast { display: grid; gap: 14px; }
.contrast-row { display: grid; grid-template-columns: 1fr auto 1.25fr; align-items: stretch; gap: 0; border: 1px solid var(--card-line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--card-shadow); overflow: hidden; }
.contrast-row > div { padding: 22px 26px; }
.contrast-old { color: var(--fg-2); background: var(--bg-soft); }
.contrast-old small, .contrast-new small { display: block; font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.contrast-old small { color: var(--fg-3); }
.contrast-new small { color: var(--accent-text); }
.contrast-old p { font: 500 1.12rem/1.35 var(--display); letter-spacing: -.01em; color: var(--fg-2); }
.contrast-new p { color: var(--fg); }
.contrast-arrow { display: grid; place-items: center; padding: 0 !important; width: 44px; background: var(--bg-soft); color: var(--fg-3); border-left: 1px solid var(--card-line); }
@media (max-width: 760px) { .contrast-row { grid-template-columns: 1fr; } .contrast-arrow { display: none; } }

/* Steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--card-shadow); }
.step-vis { position: relative; height: 230px; border-bottom: 1px solid var(--card-line); background: var(--bg-soft); overflow: hidden; display: grid; place-items: center; padding: 20px; }
.step-copy { padding: 26px 28px 30px; }
.step-num { display: inline-flex; align-items: center; gap: 12px; font: 600 .74rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }
.step-num::before { counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--chip); color: var(--fg); font: 600 .8rem var(--mono); letter-spacing: 0; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--fg-2); }
/* step visuals */
.doc-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; max-width: 300px; }
.doc-chip { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--card-line); font-size: .82rem; box-shadow: var(--card-shadow); }
.doc-chip .ic { width: 18px; height: 18px; color: var(--sky); }
.doc-chip span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-chip small { display: block; color: var(--fg-3); font-size: .72rem; }
.doc-arrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; justify-content: center; font: 500 .75rem var(--mono); color: var(--agent); }
.doc-arrow::before, .doc-arrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--agent)); }
.doc-arrow::after { background: linear-gradient(90deg, var(--agent), transparent); }
.mini-pkg { width: 100%; max-width: 300px; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 14px; box-shadow: var(--card-shadow); font-size: .85rem; }
.mini-pkg header { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--agent); margin-bottom: 8px; }
.mini-pkg b { display: block; font-weight: 600; margin-bottom: 10px; }
.gate { display: grid; gap: 7px; }
.gate div { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: .82rem; }
.gate .ic { width: 16px; height: 16px; color: var(--agent); }
.gate .gov .ic { color: var(--accent-text); }
.gate .gov { color: var(--fg); font-weight: 600; }
.mini-answer { width: 100%; max-width: 310px; display: grid; gap: 10px; }
.mini-q { justify-self: end; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 12px 12px 3px 12px; font-size: .82rem; }
:is(html[data-look="hybrid"] .tone-dark, html[data-look="dark"]) .mini-q { background: #1d3a50; }
.mini-a { background: var(--card); border: 1px solid var(--card-line); padding: 10px 12px; border-radius: 12px 12px 12px 3px; font-size: .82rem; color: var(--fg-2); box-shadow: var(--card-shadow); }
.mini-a b { color: var(--fg); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; padding: 0 4px; }
.bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: var(--heat-3); }
.bars i:nth-child(3) { background: var(--amber); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .tile { grid-column: span 2; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--card-shadow); min-height: 340px; }
.bento .tile.wide { grid-column: span 3; }
.bento .tile.xwide { grid-column: span 4; }
.tile-vis { flex: 1; position: relative; min-height: 170px; display: grid; place-items: center; padding: 24px; background: var(--bg-soft); border-bottom: 1px solid var(--card-line); overflow: hidden; }
.tile-copy { padding: 22px 26px 26px; }
.tile-copy h3 { font-size: 1.18rem; margin-bottom: 8px; }
.tile-copy p { color: var(--fg-2); font-size: .97rem; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .tile, .bento .tile.wide, .bento .tile.xwide { grid-column: span 1; } .bento .tile.xwide { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .tile.xwide { grid-column: span 1; } }
/* bento visuals */
.chain { display: flex; align-items: center; gap: 0; }
.chain .blk { width: 74px; padding: 10px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--card-line); text-align: center; box-shadow: var(--card-shadow); }
.chain .blk small { display: block; font: 500 .66rem var(--mono); color: var(--fg-3); }
.chain .blk b { font: 600 .82rem var(--mono); color: var(--fg); }
.chain .blk.new { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,137,58,.15); }
.chain .lnk { width: 22px; height: 2px; background: var(--line); position: relative; }
.chain .lnk::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: left; animation: link 3.6s var(--ease) infinite; }
@keyframes link { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .chain .lnk::after { animation: none; } }
.stack { display: grid; gap: 8px; width: 100%; max-width: 300px; }
.stack div { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--card-line); background: var(--card); font-size: .85rem; font-weight: 500; box-shadow: var(--card-shadow); }
.stack div small { color: var(--fg-3); font-weight: 400; font-size: .75rem; }
.stack div:first-child { border-color: var(--amber); background: var(--gov-soft); }
.stack div:first-child small { color: var(--accent-text); font-weight: 600; }
.stack div:nth-child(2) { margin-inline: 8px; } .stack div:nth-child(3) { margin-inline: 16px; } .stack div:nth-child(4) { margin-inline: 24px; opacity: .85; }
.views-vis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 520px; }
.view-card { aspect-ratio: 1.15; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.view-card small { font-size: .7rem; color: var(--fg-3); font-weight: 600; letter-spacing: .04em; }
.view-card svg { flex: 1; width: 100%; }
.export-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 300px; }
.export-chips span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--card-line); background: var(--card); font: 500 .78rem var(--mono); color: var(--fg-2); box-shadow: var(--card-shadow); }
.pack-list { display: grid; gap: 8px; width: 100%; max-width: 360px; }
.pack-list div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); font-size: .86rem; font-weight: 500; }
.pack-list .ic { width: 16px; height: 16px; color: var(--accent-text); }
.pack-list small { margin-left: auto; font: 500 .7rem var(--mono); color: var(--fg-3); }
.facet-mini { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 280px; }
.facet-mini span { padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: var(--chip); color: var(--fg-2); }
.facet-mini span.on { background: var(--ink); color: #fff; }
:is(html[data-look="hybrid"] .tone-dark, html[data-look="dark"]) .facet-mini span.on { background: var(--mist); color: var(--ink); }

/* Feature split rows */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split + .split { margin-top: clamp(80px, 10vw, 128px); }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.split-copy .lede { margin-top: 18px; }
.split-copy .ticks { margin-top: 26px; }
.split-copy .link-arrow { margin-top: 28px; }
.panel { position: relative; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 32px); box-shadow: var(--card-shadow); overflow: hidden; }
.panel.soft { background: var(--bg-soft); }

/* Trust lanes (dark band) */
.lanes { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0; border: 1px solid var(--card-line); border-radius: var(--r-xl); overflow: hidden; background: var(--card); }
.lane { padding: 26px 24px 28px; position: relative; }
.lane + .lane { border-left: 1px solid var(--card-line); }
.lane small { display: flex; align-items: center; gap: 8px; font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }
.lane small i { font: 500 .72rem var(--mono); font-style: normal; color: var(--fg-2); }
.lane h3 { font-size: 1.12rem; margin-bottom: 8px; }
.lane p { color: var(--fg-2); font-size: .95rem; }
.lane .who { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--chip); font-size: .85rem; font-weight: 500; }
.lane .who i .ic { width: 14px; height: 14px; }
.lane .who i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; }
.who.agent i { background: var(--agent-soft); color: var(--agent); }
.who.person i { background: var(--gov-soft); color: var(--accent-text); }
.lane.active { background: linear-gradient(180deg, var(--chip), transparent); }
.lane-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.lane-bar::after { content: ""; position: absolute; inset: 0; background: var(--agent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.lane.gov .lane-bar::after { background: var(--amber); }
.lane.done .lane-bar::after, .lane.active .lane-bar::after { transform: scaleX(1); }
@media (max-width: 900px) { .lanes { grid-template-columns: 1fr 1fr; } .lane:nth-child(3) { border-left: 0; } .lane:nth-child(n+3) { border-top: 1px solid var(--card-line); } }
@media (max-width: 560px) { .lanes { grid-template-columns: 1fr; } .lane + .lane { border-left: 0; border-top: 1px solid var(--card-line); } }
.lanes-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; color: var(--fg-3); font-size: .9rem; }
.lanes-controls button { background: var(--chip); border: 1px solid var(--card-line); color: var(--fg); border-radius: 999px; padding: 8px 16px; font: 600 .88rem var(--body); cursor: pointer; }
.lanes-controls button:hover { border-color: var(--fg-3); }

/* Personas */
.persona { display: flex; flex-direction: column; }
.persona .role { font: 600 .74rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.persona h3 { font-size: 1.22rem; }

/* Timeline (adoption) */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--sky), var(--agent), var(--amber)); opacity: .55; }
.phase { position: relative; padding-top: 64px; }
.phase .node { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--card-line); font: 600 .9rem var(--mono); color: var(--fg); }
.phase:last-child .node { border-color: var(--amber); }
.phase h3 { font-size: 1.12rem; margin-bottom: 8px; }
.phase p { color: var(--fg-2); font-size: .96rem; }
.phase .out { margin-top: 14px; font-size: .86rem; color: var(--fg-3); }
.phase .out b { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; gap: 28px; } .timeline::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, var(--sky), var(--agent), var(--amber)); } .phase { padding: 0 0 0 72px; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; font: 500 1.16rem/1.35 var(--display); letter-spacing: -.01em; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; color: var(--fg-3); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 26px; color: var(--fg-2); max-width: 720px; }
.faq .answer p + p { margin-top: 12px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 50% 0%, rgba(111,156,192,.22), transparent 70%), radial-gradient(30% 40% at 85% 100%, rgba(212,137,58,.14), transparent 70%); }
.cta-cards { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; text-align: left; }
@media (max-width: 700px) { .cta-cards { grid-template-columns: 1fr; } }
.cta-card { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: var(--r-xl); border: 1px solid var(--card-line); background: var(--card); text-decoration: none; color: var(--fg); box-shadow: var(--card-shadow); transition: transform .3s var(--ease), border-color .3s; }
.cta-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--amber) 70%, transparent); }
.cta-card p { color: var(--fg-2); flex: 1; }
.cta-card .link-arrow { margin-top: 10px; color: var(--accent-text); }
.cta-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gov-soft); color: var(--accent-text); margin-bottom: 8px; }
.cta-icon .ic { width: 22px; height: 22px; }
.cta-card:last-child .cta-icon { background: var(--agent-soft); color: var(--agent); }

/* Page hero (inner pages) */
.page-hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(64px, 9vw, 116px)) 0 clamp(56px, 7vw, 88px); overflow: clip; background: var(--bg); }
.page-hero .hero-copy { text-align: left; margin: 0; max-width: 820px; }
.page-hero .hero-copy .lede { margin-left: 0; }
.page-hero .hero-actions { justify-content: flex-start; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
.hero-graph { position: absolute; right: max(24px, calc((100vw - var(--maxw)) / 2)); top: calc(var(--header-h) + 40px); width: min(44vw, 560px); height: auto; pointer-events: none; }
.hg-links path { fill: none; stroke: var(--fg-3); stroke-width: 1.2; opacity: .45; }
.hg-nodes circle { fill: var(--bg); stroke: var(--sky); stroke-width: 2; }
.hg-glow { fill: var(--amber); opacity: .18; transform-origin: 360px 270px; }
.hg-core { fill: var(--amber); }
.hg-labels text { font: 500 12px var(--mono); fill: var(--fg-3); }
@media (prefers-reduced-motion: no-preference) { .hg-glow { animation: hgpulse 3.2s var(--ease) infinite; } }
@keyframes hgpulse { 0%, 100% { transform: scale(.7); opacity: .25; } 50% { transform: scale(1.25); opacity: .08; } }
@media (max-width: 1100px) { .hero-graph { width: 38vw; opacity: .55; } }
@media (max-width: 900px) { .hero-graph { display: none; } }
.notfound .hero-graph { display: none; }
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; padding: 14px 14px; font-size: .9rem; color: var(--fg-2); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--fg); }
.subnav a.on { color: var(--fg); border-bottom-color: var(--amber); }

/* Facet card (product) */
.facet-ui { display: grid; grid-template-columns: 170px 1fr; gap: 0; border: 1px solid var(--card-line); border-radius: 16px; overflow: hidden; background: var(--card); }
.facet-tabs { display: flex; flex-direction: column; padding: 10px; gap: 2px; background: var(--bg-soft); border-right: 1px solid var(--card-line); }
.facet-tabs button { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font: 500 .9rem var(--body); color: var(--fg-2); cursor: pointer; }
.facet-tabs button[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: var(--card-shadow); font-weight: 600; }
.facet-body { padding: 22px 24px; min-height: 300px; }
.facet-id { font: 500 .74rem var(--mono); color: var(--fg-3); letter-spacing: .04em; }
.facet-body h4 { font: 600 1.3rem var(--display); margin: 4px 0 16px; letter-spacing: -.01em; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 9px 14px; font-size: .92rem; }
.kv dt { color: var(--fg-3); }
.kv dd { margin: 0; color: var(--fg); font-weight: 500; }
.kv .tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .78rem; background: var(--chip); margin-right: 4px; }
.kv .warn { background: var(--gov-soft); color: var(--accent-text); }
.facet-pane[hidden] { display: none; }
@media (max-width: 640px) { .facet-ui { grid-template-columns: 1fr; } .facet-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--card-line); } .facet-tabs button { flex: none; } }

/* Ingestion pipeline (product) */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pipe { border: 1px solid var(--card-line); border-radius: 14px; padding: 16px; background: var(--card); box-shadow: var(--card-shadow); font-size: .88rem; }
.pipe small { display: block; font: 600 .68rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.pipe .line { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--fg-2); border-bottom: 1px dashed var(--line); }
.pipe .line:last-child { border-bottom: 0; }
.pipe .line .ic { width: 15px; height: 15px; color: var(--sky); }
.pipe mark { background: var(--agent-soft); color: var(--agent); padding: 0 4px; border-radius: 4px; }
.pipe mark.g { background: var(--gov-soft); color: var(--accent-text); }
.pipe.final { border-color: var(--amber); }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }

/* Layer diagram (product) */
.layers-ui { display: grid; gap: 10px; }
.layer { display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--card-line); background: var(--card); box-shadow: var(--card-shadow); }
.layer .lv { font: 600 .82rem var(--mono); color: var(--fg-3); }
.layer b { display: block; font-weight: 600; }
.layer span { display: block; margin-top: 2px; color: var(--fg-2); font-size: .92rem; line-height: 1.45; }
.layer em { font-style: normal; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--fg-2); white-space: nowrap; }
.layer.yours { border-color: var(--amber); background: linear-gradient(90deg, var(--gov-soft), var(--card) 70%); }
.layer.yours em { background: var(--amber); color: #1a1006; }
@media (max-width: 560px) { .layer { grid-template-columns: 1fr; gap: 6px; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--card-line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--card-shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
table.data th, table.data td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font: 600 .76rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-soft); }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody th { font-weight: 600; color: var(--fg); }
table.data td { color: var(--fg-2); }
.yes { color: var(--agent); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.no { color: var(--fg-3); display: inline-flex; gap: 6px; align-items: center; }
.yes .ic, .no .ic { width: 16px; height: 16px; }

/* Pricing */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--chip); border: 1px solid var(--card-line); margin: 0 auto 36px; }
.seg button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font: 600 .92rem var(--body); color: var(--fg-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(15,36,51,.12); }
:is(html[data-look="hybrid"] .tone-dark, html[data-look="dark"]) .seg button[aria-pressed="true"] { background: rgba(255,255,255,.1); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--r-xl); border: 1px solid var(--card-line); background: var(--card); box-shadow: var(--card-shadow); position: relative; }
.plan.featured { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 24px 60px -30px rgba(212,137,58,.55); }
.plan .flag { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--amber); color: #1a1006; font: 600 .74rem/1.2 var(--body); letter-spacing: .03em; }
.plan h3 { font-size: 1.4rem; }
.plan .for { color: var(--fg-2); font-size: .94rem; margin-top: 8px; min-height: 3.2em; }
.plan .price { margin: 22px 0 6px; font: 500 1.5rem var(--display); letter-spacing: -.02em; }
.plan .price small { display: block; font: 600 .7rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.plan .price-note { font-size: .84rem; color: var(--fg-3); min-height: 2.6em; }
.plan .btn { margin: 20px 0 6px; width: 100%; }
.plan .ticks { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan .ticks li { font-size: .92rem; }
.plan .ticks .lead { color: var(--fg); font-weight: 600; }
.deploy-note { text-align: center; color: var(--fg-3); font-size: .9rem; margin-top: 22px; }
[data-deploy-show] { display: none; }
[data-deploy="managed"] [data-deploy-show="managed"], [data-deploy="hosted"] [data-deploy-show="hosted"] { display: revert; }

/* Forms */
.form-shell { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 40px); box-shadow: var(--card-shadow); }
.intent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; border: 0; padding: 0; }
.intent legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.intent label { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--card-line); cursor: pointer; font-size: .9rem; transition: border-color .2s, background .2s; }
.intent label b { font-weight: 600; }
.intent label span { color: var(--fg-3); font-size: .8rem; line-height: 1.35; }
.intent input { position: absolute; opacity: 0; }
.intent label:has(input:checked) { border-color: var(--amber); background: var(--gov-soft); }
.intent label:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 560px) { .intent { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: .9rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--fg-3); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--card-line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(111,156,192,.2); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot p { font-size: .85rem; color: var(--fg-3); flex: 1; min-width: 200px; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--gov-soft); font-size: .92rem; }
.form-status[hidden] { display: none; }
.form-done[hidden], form[hidden] { display: none; }
.form-done h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 18px 0 12px; outline: none; }
.form-done > p { color: var(--fg-2); margin-bottom: 10px; max-width: 520px; }
.form-done .hero-actions { margin-top: 28px; }
.done-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--agent-soft); color: var(--agent); }
.done-icon .ic { width: 26px; height: 26px; }
.expect { display: grid; gap: 22px; }
.expect-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.expect-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.expect-item p { color: var(--fg-2); font-size: .95rem; }

/* Solutions */
.usecase { display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: start; }
.usecase .ic-badge { margin: 0; }
.uc-q { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--amber); font: 500 1rem/1.4 var(--display); color: var(--fg) !important; letter-spacing: -.005em; }
table.compare td:last-child { color: var(--fg); font-weight: 500; }
table.compare tbody th { width: 26%; }
@media (max-width: 560px) { .usecase { grid-template-columns: 1fr; } }

/* Company */
.statement { font: 400 clamp(1.5rem, 2.8vw, 2.25rem)/1.3 var(--display); letter-spacing: -.02em; max-width: 960px; color: var(--fg); }
.statement span { color: var(--fg-3); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--card-line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.facts div { padding: 24px 26px; }
.facts div + div { border-left: 1px solid var(--card-line); }
.facts small { display: block; color: var(--fg-3); font-size: .82rem; margin-bottom: 6px; }
.facts b { font: 500 1.2rem var(--display); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .facts div + div { border-left: 0; border-top: 1px solid var(--card-line); } }

/* Footer */
.site-footer { padding: 80px 0 32px; background: var(--bg); color: var(--fg); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 28px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--fg-2); max-width: 320px; margin-bottom: 22px; font-size: .95rem; }
.footer-h { font: 600 .76rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--fg-2); text-decoration: none; font-size: .95rem; }
.site-footer ul a:hover { color: var(--fg); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--fg-3); }
.footer-base p a { color: var(--fg-2); margin-left: 10px; }
.footer-base p a:hover { color: var(--fg); }
.look-switch { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--card-line); border-radius: 999px; }
.look-switch span { padding: 0 8px; font-size: .78rem; }
.look-switch button { background: none; border: 0; padding: 5px 12px; border-radius: 999px; font: 500 .8rem var(--body); color: var(--fg-2); cursor: pointer; }
.look-switch button[aria-pressed="true"] { background: var(--chip); color: var(--fg); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
