/* ==========================================================================
   Context GRC — marketing site
   One stylesheet. Tokens first, then base, layout, components, sections.
   Brand reference: NEW-DPIA-TOOL (index.css, IntelligenceCore, public/brand).
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL — see assets/fonts/*.txt) ---------- */
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/dmsans-400.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/dmsans-500.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/dmsans-600.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/dmsans-700.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/manrope-600.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/manrope-700.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Brand — sampled from the Context knot */
  --blue: #1f5eff;
  --blue-deep: #0b3fd1;
  --cyan: #18b4f2;
  --violet: #8a5cf6;
  --grad-brand: linear-gradient(100deg, #2161ff 0%, #18b4f2 48%, #8a5cf6 100%);
  --grad-text: linear-gradient(95deg, #1f5eff 10%, #18a9ea 52%, #7c4ff0 92%);

  /* Light surfaces */
  --canvas: #f7f9fd;
  --canvas-2: #eef2fa;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --ink: #0c1528;
  --ink-2: #26334b;
  --muted: #536079;
  --faint: #7a869c;
  --line: rgba(17, 36, 74, 0.1);
  --line-strong: rgba(17, 36, 74, 0.18);
  --accent: #1d55e6;
  --accent-ink: #1a4ccc;
  --accent-soft: rgba(31, 94, 255, 0.08);
  --focus: #1d55e6;
  --ok: #157046;
  --ok-soft: rgba(21, 112, 70, 0.1);
  --warn: #8a5400;
  --warn-soft: rgba(201, 132, 18, 0.13);
  --risk: #b02a37;
  --risk-soft: rgba(176, 42, 55, 0.1);
  --shadow-sm: 0 1px 2px rgba(12, 21, 40, 0.06);
  --shadow: 0 1px 2px rgba(12, 21, 40, 0.05), 0 8px 24px -12px rgba(12, 21, 40, 0.14);
  --shadow-lg: 0 2px 4px rgba(12, 21, 40, 0.04), 0 30px 70px -30px rgba(17, 40, 100, 0.32);
  --glow-a: rgba(33, 97, 255, 0.16);
  --glow-b: rgba(138, 92, 246, 0.14);
  --glow-c: rgba(24, 180, 242, 0.14);
  --grid-dot: rgba(17, 36, 74, 0.09);

  /* Type & rhythm */
  --font-display: "Manrope", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 136px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --canvas: #060a15;
  --canvas-2: #0a1020;
  --surface: #0d1427;
  --surface-2: #121b31;
  --ink: #eef3fd;
  --ink-2: #cfd9ec;
  --muted: #9aa8c3;
  --faint: #73819c;
  --line: rgba(150, 180, 255, 0.11);
  --line-strong: rgba(150, 180, 255, 0.2);
  --accent: #5b8cff;
  --accent-ink: #8fb0ff;
  --accent-soft: rgba(91, 140, 255, 0.12);
  --focus: #9dbbff;
  --ok: #7ddba7;
  --ok-soft: rgba(125, 219, 167, 0.12);
  --warn: #ffcd7a;
  --warn-soft: rgba(255, 205, 122, 0.12);
  --risk: #ffa3ab;
  --risk-soft: rgba(255, 163, 171, 0.12);
  --grad-text: linear-gradient(95deg, #6f9bff 10%, #4fd0ff 50%, #b294ff 92%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 40px 90px -36px rgba(0, 0, 0, 0.8);
  --glow-a: rgba(33, 97, 255, 0.28);
  --glow-b: rgba(138, 92, 246, 0.24);
  --glow-c: rgba(24, 180, 242, 0.18);
  --grid-dot: rgba(150, 180, 255, 0.08);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(31, 94, 255, 0.2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); color: var(--canvas); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding-block: var(--section); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.hero + .section { padding-top: clamp(56px, 7vw, 104px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--grad-brand); border-radius: 2px; }
.h-display { font-size: clamp(2.5rem, 5.9vw, 4.85rem); letter-spacing: -0.045em; line-height: 1.0; }
.h-section { font-size: clamp(2rem, 4.2vw, 3.35rem); letter-spacing: -0.04em; }
.h-card { font-size: 1.1875rem; letter-spacing: -0.02em; line-height: 1.3; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); line-height: 1.6; max-width: 40rem; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 160ms, border-color 160ms, box-shadow 200ms, color 160ms;
}
.btn .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2d6bff, #1a4fe0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 1px 2px rgba(10,30,90,0.3), 0 8px 22px -8px rgba(31, 94, 255, 0.6);
}
.btn-primary:hover { background: linear-gradient(180deg, #3a75ff, #1d55e6); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 2px rgba(10,30,90,0.3), 0 12px 28px -8px rgba(31, 94, 255, 0.7); }
.btn-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-quiet { color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { color: var(--accent-ink); }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 1rem; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  transition: background-color 200ms, border-color 200ms, backdrop-filter 200ms;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--muted); transition: color 150ms, background-color 150ms; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  color: var(--muted); border: 1px solid var(--line);
  transition: color 150ms, border-color 150ms, background-color 150ms;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 999px; place-items: center; color: var(--ink); border: 1px solid var(--line); }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn-quiet { display: none; }
  .menu-toggle { display: grid; }
  .nav-actions .btn-primary { display: none; }
  .mobile-nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 79;
    display: grid; gap: 4px; padding: 12px var(--gutter) 24px;
    background: var(--canvas); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s 200ms;
  }
  .mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .mobile-nav a:not(.btn) { padding: 14px 4px; font-size: 1.0625rem; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(32px, 4vw, 48px); overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: -10% -10% 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 36% at 50% 58%, var(--glow-a), transparent 70%),
    radial-gradient(28% 30% at 36% 66%, var(--glow-b), transparent 70%),
    radial-gradient(26% 26% at 64% 62%, var(--glow-c), transparent 70%);
  filter: blur(10px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 50% 45%, #000 20%, transparent 75%);
}
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 0.875rem; font-weight: 500; color: var(--ink-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pill-tag { padding: 3px 10px; border-radius: 999px; background: var(--grad-brand); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-inline: auto; text-align: center; max-width: 44rem; }
.hero .btn-row { justify-content: center; margin-top: 6px; }

/* Constellation: orb + connected modules */
.constellation {
  position: relative; margin: clamp(36px, 5vw, 60px) auto 0; max-width: 1120px;
  display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; align-items: center; gap: 0 clamp(40px, 6vw, 96px);
}
.constellation-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.cl-path { fill: none; stroke: var(--line-strong); stroke-width: 1.25; transition: stroke 300ms, stroke-width 300ms, opacity 300ms; }
:root[data-theme="dark"] .cl-path { stroke: rgba(130, 165, 255, 0.2); }
.cl-path.is-active { stroke: url(#clGrad); stroke-width: 2; }
.cl-pulse { fill: none; stroke: url(#clGrad); stroke-width: 2.25; stroke-linecap: round; opacity: 0; }
.cl-pulse.is-running { animation: cl-pulse var(--dur, 3.6s) var(--delay, 0s) infinite var(--ease); }
.cl-pulse.is-active { stroke-width: 3; }
.constellation.is-paused .cl-pulse { animation-play-state: paused; }
@keyframes cl-pulse {
  0% { stroke-dashoffset: var(--from); opacity: 0; }
  15% { opacity: 0.9; }
  80% { opacity: 0.9; }
  100% { stroke-dashoffset: var(--to); opacity: 0; }
}
.modules-col { position: relative; z-index: 1; display: grid; gap: 14px; }
.module-chip {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: 14px; text-align: left;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 260ms var(--ease-out), border-color 260ms, box-shadow 260ms, background-color 260ms;
}
.module-chip::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 1.5px; border-radius: 2px;
  background: var(--grad-brand); opacity: 0.35; transition: opacity 260ms, left 260ms var(--ease-out), right 260ms var(--ease-out);
}
.module-chip:hover, .module-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft);
  transform: translateY(-1px);
}
.module-chip.is-active::after, .module-chip:hover::after { opacity: 1; left: 10%; right: 10%; }
.modules-col.right .module-chip { flex-direction: row; }
.chip-icon {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: var(--accent-ink); background: var(--accent-soft);
  transition: color 260ms, background 260ms;
}
.module-chip.is-active .chip-icon { color: #fff; background: var(--grad-brand); }
.chip-text { display: grid; min-width: 0; }
.chip-name { font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.chip-sub { font-size: 0.8125rem; color: var(--faint); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.orb-stage { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.orb {
  position: relative; width: clamp(220px, 24vw, 300px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.orb::before { /* soft halo */
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52, 120, 255, 0.34), rgba(138, 92, 246, 0.16) 55%, transparent 75%);
  filter: blur(18px);
  animation: orb-breathe 6s ease-in-out infinite alternate;
}
.orb::after { /* faint orbit ring */
  content: ""; position: absolute; inset: -9%; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 22%, transparent);
  animation: orb-spin 60s linear infinite;
}
.orb canvas, .orb img { position: relative; width: 100%; height: 100%; }
.orb img { display: none; }
.orb.no-canvas img { display: block; }
.orb.no-canvas canvas { display: none; }
@keyframes orb-breathe { from { opacity: 0.7; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.orb-label { margin-top: 18px; display: grid; gap: 4px; justify-items: center; min-height: 92px; }
.orb-kicker { font-size: 0.8125rem; font-weight: 500; color: var(--faint); }
.orb-title { font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -0.03em; }
.orb-caption { font-size: 0.9375rem; color: var(--muted); max-width: 30ch; line-height: 1.5; transition: opacity 220ms; }
.orb-caption.is-swapping { opacity: 0; }

@media (max-width: 980px) {
  .constellation { grid-template-columns: 1fr 1fr; gap: 12px; }
  .orb-stage { grid-column: 1 / -1; grid-row: 1; margin-bottom: 24px; }
  .constellation-lines { display: none; }
  .modules-col { gap: 10px; }
  .chip-sub { display: none; }
  .module-chip { padding: 10px 12px; }
  .chip-icon { width: 32px; height: 32px; }
}
@media (max-width: 420px) {
  .chip-name { font-size: 0.875rem; }
  .module-chip { gap: 10px; padding: 10px; }
}

.hero-foot { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; color: var(--faint); font-size: 0.875rem; }
.hero-foot span { display: inline-flex; align-items: center; gap: 8px; }
.hero-foot .icon { width: 16px; height: 16px; color: var(--accent-ink); }

/* ---------- AI Command demo ---------- */
.cmd-section { overflow: clip; }
.scenario-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.scenario-tabs::-webkit-scrollbar { display: none; }
.scenario-tab { padding: 8px 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 150ms, background-color 150ms; }
.scenario-tab:hover { color: var(--ink); }
.scenario-tab[aria-selected="true"] { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.cmd-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cmd-controls { display: flex; gap: 6px; margin-bottom: 20px; }
.cmd-controls .btn { --h: 36px; padding: 0 12px; font-size: 0.8125rem; }

.app-window {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.app-window::before { /* top hairline glow */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--grad-brand); opacity: 0.6;
}
.app-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.app-crumb { font-size: 0.8125rem; color: var(--faint); display: flex; gap: 8px; align-items: center; overflow: hidden; white-space: nowrap; }
.app-crumb strong { color: var(--ink-2); font-weight: 600; }
.app-illus { margin-left: auto; font-size: 0.75rem; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

.app-split { display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.25fr; min-height: 560px; }
.app-convo { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--canvas); min-width: 0; }
.convo-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mini-orb { width: 30px; height: 30px; flex: none; }
.mini-orb img { width: 100%; height: 100%; }
.convo-title { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.02em; }
.status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  white-space: nowrap;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status[data-state="working"] i { background: var(--cyan); box-shadow: 0 0 0 0 rgba(24,180,242,0.6); animation: ping 1.4s infinite; }
.status[data-state="approval"] { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); }
.status[data-state="approval"] i { background: var(--warn); }
.status[data-state="done"] { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.status[data-state="done"] i { background: var(--ok); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(24,180,242,0.55); } 80%,100% { box-shadow: 0 0 0 7px rgba(24,180,242,0); } }

.convo-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 20px 18px; overflow: hidden; }
.msg { max-width: 92%; font-size: 0.9063rem; line-height: 1.55; animation: msg-in 380ms var(--ease-out) both; }
.msg-user { align-self: flex-end; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--accent); color: #fff; }
:root[data-theme="dark"] .msg-user { background: #2a5cf0; }
.msg-ai { align-self: flex-start; display: grid; gap: 8px; color: var(--ink-2); }
.msg-ai p + p { margin-top: 2px; }
.msg-ai ul { display: grid; gap: 4px; padding-left: 2px; }
.msg-ai li { display: flex; gap: 8px; }
.msg-ai li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.msg-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.src { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; background: var(--surface); }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.convo-input { margin: 0 14px 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--faint); font-size: 0.875rem; }
.convo-input .typed { flex: 1; color: var(--ink); min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-input .typed:empty::before { content: attr(data-placeholder); color: var(--faint); }
.convo-send { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); flex: none; }
.convo-send .icon { width: 16px; height: 16px; }

.app-record { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.record-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.record-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.record-title { font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.record-meta { font-size: 0.75rem; color: var(--faint); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 0.7188rem; font-weight: 700; letter-spacing: 0.01em; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-draft { margin-left: auto; }
.badge-ai { color: var(--accent-ink); background: var(--accent-soft); }
.badge-warn { color: var(--warn); background: var(--warn-soft); }
.badge-risk { color: var(--risk); background: var(--risk-soft); }
.badge-ok { color: var(--ok); background: var(--ok-soft); }
.record-tabs { display: flex; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.record-tabs::-webkit-scrollbar { display: none; }
.record-tabs span { padding: 11px 0; font-size: 0.8125rem; font-weight: 600; color: var(--faint); border-bottom: 2px solid transparent; white-space: nowrap; }
.record-tabs span.on { color: var(--ink); border-bottom-color: var(--accent); }
.record-body { flex: 1; padding: 18px 20px 8px; display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field-label { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.field-label .badge { padding: 1px 7px; font-size: 0.6563rem; }
.field-input {
  min-height: 38px; padding: 8px 12px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--canvas);
  font-size: 0.875rem; color: var(--ink); line-height: 1.45;
  transition: border-color 300ms, box-shadow 300ms, background-color 300ms;
  width: 100%; resize: none; overflow: hidden;
}
.field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-input:disabled { color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; }
.field-input.is-filled { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong)); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-input.is-settled { box-shadow: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.risk-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 0.8125rem; }
.risk-table .rt-head, .risk-table .rt-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px; }
.risk-table .rt-head { background: var(--surface-2); color: var(--faint); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.risk-table .rt-row { border-top: 1px solid var(--line); animation: msg-in 380ms var(--ease-out) both; }
.risk-table .rt-empty { padding: 12px; color: var(--faint); border-top: 1px solid var(--line); }
.record-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.record-note { font-size: 0.75rem; color: var(--faint); line-height: 1.4; margin-right: auto; display: flex; gap: 8px; align-items: center; }
.record-note .icon { width: 14px; height: 14px; }
.approve-btn { --h: 36px; padding: 0 14px; font-size: 0.8125rem; }
.approve-btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.approve-btn.is-ready { animation: ready 1.8s ease-in-out infinite; }
@keyframes ready { 0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 0 0 rgba(31,94,255,0.45); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 0 7px rgba(31,94,255,0); } }
.toast {
  position: absolute; left: 50%; bottom: 72px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: min(440px, calc(100% - 32px)); padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: var(--canvas); font-size: 0.8125rem; line-height: 1.45; box-shadow: var(--shadow-lg);
  transition: opacity 240ms, transform 240ms var(--ease-out); z-index: 5;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cmd-caption { margin-top: 16px; font-size: 0.8125rem; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.cmd-caption .icon { width: 14px; height: 14px; }

.cmd-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 72px); }
.cmd-point { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.cmd-point h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }
.cmd-point p { color: var(--muted); font-size: 0.9688rem; }

@media (max-width: 900px) {
  .app-split { grid-template-columns: 1fr; }
  .app-convo { border-right: 0; border-bottom: 1px solid var(--line); }
  .convo-body { min-height: 240px; max-height: 380px; justify-content: flex-end; }
  .cmd-points { grid-template-columns: 1fr; }
  .app-illus { display: none; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .record-foot { flex-wrap: wrap; }
  .record-note { flex-basis: 100%; }
  .approve-btn { flex: 1; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, var(--line-strong), color-mix(in srgb, var(--accent) 50%, var(--line-strong)), var(--line-strong)); }
.step { position: relative; padding-right: clamp(16px, 3vw, 40px); display: grid; gap: 14px; align-content: start; }
.step-num {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--canvas); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--accent-ink);
}
.step:nth-child(2) .step-num { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -8px rgba(31,94,255,0.6); }
.step h3 { font-size: 1.3125rem; letter-spacing: -0.025em; }
.step p { color: var(--muted); font-size: 0.9688rem; }
.step small { display: block; font-size: 0.8125rem; color: var(--faint); padding-top: 12px; border-top: 1px dashed var(--line-strong); line-height: 1.5; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 1px; height: auto; background: var(--line-strong); }
  .step { grid-template-columns: 48px 1fr; column-gap: 20px; padding-right: 0; }
  .step > :not(.step-num) { grid-column: 2; }
  .step-num { grid-row: 1 / span 3; }
}

/* ---------- Modules explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.explorer-list { display: grid; gap: 2px; position: sticky; top: 100px; }
.explorer-tab {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 0.9688rem; color: var(--muted);
  transition: color 150ms, background-color 150ms;
}
.explorer-tab .icon { color: var(--faint); transition: color 150ms; }
.explorer-tab:hover { color: var(--ink); background: var(--surface-2); }
.explorer-tab[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.explorer-tab[aria-selected="true"] .icon { color: var(--accent-ink); }
.explorer-tab .arrow { margin-left: auto; opacity: 0; transform: translateX(-4px); transition: opacity 150ms, transform 200ms var(--ease); }
.explorer-tab[aria-selected="true"] .arrow { opacity: 1; transform: none; color: var(--accent-ink); }
.explorer-panel {
  position: relative; border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; min-height: 460px;
}
.explorer-panel::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-a), transparent); pointer-events: none;
}
.panel-inner { position: relative; display: grid; gap: 28px; animation: panel-in 420ms var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-top { display: flex; gap: 18px; align-items: flex-start; }
.panel-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex: none; box-shadow: 0 10px 26px -10px rgba(31,94,255,0.7); }
.panel-icon .icon { width: 24px; height: 24px; }
.panel-top h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.035em; }
.panel-top p { color: var(--muted); margin-top: 8px; max-width: 36rem; }
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cap-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9688rem; color: var(--ink-2); }
.cap-list .icon { width: 16px; height: 16px; color: var(--accent-ink); }
.panel-ai { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 14px; background: var(--canvas); border: 1px solid var(--line); }
.panel-ai img { width: 32px; height: 32px; }
.panel-ai strong { display: block; font-size: 0.8125rem; color: var(--accent-ink); margin-bottom: 4px; }
.panel-ai p { font-size: 0.9375rem; color: var(--ink-2); }
.panel-prompt { font-size: 0.875rem; font-style: italic; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.explorer-foot { margin-top: 28px; display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 0.9375rem; }
.explorer-foot .icon { color: var(--accent-ink); }

@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-list { position: static; display: flex; overflow-x: auto; gap: 6px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .explorer-list::-webkit-scrollbar { display: none; }
  .explorer-tab { width: auto; flex: none; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.875rem; }
  .explorer-tab .arrow { display: none; }
  .explorer-tab .icon { width: 16px; height: 16px; }
  .cap-list { grid-template-columns: 1fr; }
  .explorer-panel { min-height: 0; }
}

/* ---------- Two modes (manual + AI) ---------- */
.modes { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.mode { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.mode-ai { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box; border: 1px solid transparent; }
.mode-head { display: flex; align-items: center; gap: 12px; }
.mode-head .chip-icon { width: 40px; height: 40px; }
.mode-ai .chip-icon { color: #fff; background: var(--grad-brand); }
.mode h3 { font-size: 1.3125rem; letter-spacing: -0.025em; }
.mode > p { color: var(--muted); }
.mode ul { display: grid; gap: 10px; }
.mode li { display: flex; gap: 10px; font-size: 0.9688rem; color: var(--ink-2); }
.mode li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-ink); }
.modes-join { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.modes-join .ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.modes-join .ring .icon { width: 26px; height: 26px; color: var(--accent-ink); }
.modes-join span { font-size: 0.8125rem; font-weight: 600; color: var(--muted); max-width: 12ch; line-height: 1.35; }
.shared-strip { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.shared-strip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.875rem; color: var(--ink-2); }
.shared-strip .icon { width: 15px; height: 15px; color: var(--ok); }
@media (max-width: 900px) {
  .modes { grid-template-columns: 1fr; }
  .modes-join { grid-auto-flow: column; justify-content: center; }
  .modes-join .ring { width: 52px; height: 52px; }
  .modes-join .ring .icon { width: 20px; height: 20px; }
  .modes-join span { max-width: none; }
}

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-strong); }
.aud { padding: 28px clamp(12px, 2vw, 24px) 8px 0; display: grid; gap: 10px; align-content: start; }
.aud + .aud { padding-left: clamp(12px, 2vw, 24px); border-left: 1px solid var(--line); }
.aud-icon { color: var(--accent-ink); }
.aud h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }
.aud p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 1000px) {
  .audience { grid-template-columns: 1fr 1fr; }
  .aud, .aud + .aud { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .aud:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .aud:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .audience { grid-template-columns: 1fr; }
  .aud:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Trust ---------- */
.trust { position: relative; overflow: clip; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.trust-item { background: var(--surface); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 10px; align-content: start; }
.trust-item .icon { width: 22px; height: 22px; color: var(--accent-ink); }
.trust-item h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }
.trust-item p { color: var(--muted); font-size: 0.9375rem; }
.trust-note { margin-top: 28px; display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.9375rem; }
.trust-note .icon { color: var(--accent-ink); margin-top: 2px; }
.trust-note a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Final CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(20px, 3vw, 32px); padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px);
  background: #070c1a; color: #eef3fd;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 85% 50%, rgba(33, 97, 255, 0.45), transparent 70%),
    radial-gradient(40% 60% at 70% 100%, rgba(138, 92, 246, 0.35), transparent 70%),
    radial-gradient(30% 50% at 100% 0%, rgba(24, 180, 242, 0.3), transparent 70%);
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.04em; }
.cta p { color: #b6c3df; margin-top: 16px; max-width: 34rem; font-size: 1.0625rem; }
.cta .btn-row { margin-top: 32px; }
.cta .btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.2); box-shadow: none; }
.cta .btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-orb { justify-self: center; width: min(320px, 70%); filter: drop-shadow(0 30px 60px rgba(33, 97, 255, 0.45)); animation: float 9s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-8px) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } .cta-orb { width: 160px; grid-row: 1; justify-self: start; } }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
main > section:last-child { padding-bottom: clamp(64px, 8vw, 112px); }
.section.cta-section { border-top: 0; padding-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; max-width: 30ch; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; color: var(--faint); letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.9375rem; color: var(--ink-2); transition: color 150ms; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 0.8125rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Sub-pages ---------- */
.page-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(32px, 5vw, 56px); position: relative; isolation: isolate; overflow: clip; }
.page-hero::before { content: ""; position: absolute; inset: -40% -20% 0; z-index: -1; background: radial-gradient(40% 50% at 70% 30%, var(--glow-a), transparent 70%), radial-gradient(30% 40% at 85% 50%, var(--glow-b), transparent 70%); filter: blur(10px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); letter-spacing: -0.045em; margin-top: 18px; max-width: 18ch; }
.page-hero .lede { margin-top: 20px; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 56px 0 16px; letter-spacing: -0.03em; }
.prose h3 { font-size: 1.1875rem; margin: 32px 0 10px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; margin: 14px 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-brand); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose .note { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.placeholder { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.sec-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; font-size: 0.875rem; }
.toc a { padding: 6px 10px; border-radius: 8px; color: var(--muted); border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 900px) { .sec-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.boundary { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.boundary > div { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.boundary > div + div { border-top: 1px solid var(--line); }
.boundary span { padding: 12px 16px; font-size: 0.9375rem; color: var(--ink-2); }
.boundary span + span { border-left: 1px solid var(--line); }
.boundary .bh span { background: var(--surface-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 560px) { .boundary > div { grid-template-columns: 1fr; } .boundary span + span { border-left: 0; border-top: 1px dashed var(--line); } }

/* ---------- Demo / beta form ---------- */
.demo-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: 24px; }
.demo-aside { display: grid; gap: 28px; padding-top: 8px; }
.expect { display: grid; gap: 20px; }
.expect li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.expect .chip-icon { width: 36px; height: 36px; }
.expect h3 { font-size: 1rem; letter-spacing: -0.01em; }
.expect p { color: var(--muted); font-size: 0.9375rem; margin-top: 2px; }
.form-card { position: relative; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 24px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 9px; cursor: pointer; transition: background-color 150ms, box-shadow 150ms; }
.seg strong { font-size: 0.9375rem; }
.seg small { font-size: 0.8125rem; color: var(--muted); }
.seg input:checked + span { background: var(--surface); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.fld { display: grid; gap: 7px; }
.fld label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.fld label .opt { font-weight: 400; color: var(--faint); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--canvas); color: var(--ink);
  font-size: 1rem; transition: border-color 150ms, box-shadow 150ms;
}
.fld textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237a869c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld [aria-invalid="true"] { border-color: var(--risk); }
.fld-error { font-size: 0.8125rem; color: var(--risk); min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { margin-top: 18px; font-size: 0.8125rem; color: var(--faint); line-height: 1.5; }
.form-legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.form-submit { margin-top: 22px; width: 100%; }
.form-submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 0.9375rem; line-height: 1.5; display: none; }
.form-status.is-on { display: block; }
.form-status[data-tone="ok"] { background: var(--ok-soft); color: var(--ok); }
.form-status[data-tone="info"] { background: var(--accent-soft); color: var(--ink-2); }
.form-status[data-tone="error"] { background: var(--risk-soft); color: var(--risk); }
.form-status a { font-weight: 600; text-decoration: underline; }
.form-done { display: none; text-align: center; padding: 40px 8px; }
.form-card.is-done form { display: none; }
.form-card.is-done .form-done { display: grid; gap: 14px; justify-items: center; }
.form-done img { width: 72px; height: 72px; }
.form-done h2 { font-size: 1.75rem; }
.form-done p { color: var(--muted); max-width: 32ch; }
@media (max-width: 900px) { .demo-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } .seg small { display: none; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; gap: 18px; padding: 80px 0; }
.notfound img { width: 120px; margin: 0 auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0.35; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cl-pulse { display: none; }
}
.notfound .lede { margin: 16px auto 28px; }
.notfound .btn-row { justify-content: center; }

@media (max-width: 560px) {
  .pill-long { display: none; }
  .hero .btn-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; }
}
