/* KYE Protocol™ landing — enterprise theme.
 *
 * Palette: deep navy + indigo accent + slate text. Typography: Inter system.
 * Surface lifts use real shadows + soft borders, not glow.
 */

:root {
  /* Modern light theme: near-white + soft pastel mesh + clean surfaces */
  --bg: #f8f9fc;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: rgba(248, 249, 252, 0.92);
  --surface-3: #f1f3f9;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --line-soft: rgba(15, 23, 42, 0.04);
  --text: #0b0f1c;
  --text-muted: #4a5478;
  --text-dim: #8993b0;
  --accent: #7c3aed;          /* violet-600 */
  --accent-2: #a855f7;        /* purple-500 */
  --accent-soft: rgba(124, 58, 237, 0.10);
  --accent-grad: linear-gradient(120deg, #ec4899 0%, #7c3aed 30%, #6366f1 55%, #06b6d4 80%, #10b981 100%);
  --info: #0ea5e9;            /* sky-500 */
  --success: #059669;         /* emerald-600 */
  --warning: #d97706;         /* amber-600 */
  --danger: #e11d48;          /* rose-600 */
  --shadow-1: 0 1px 2px rgba(15,23,42,.05), 0 1px 1px rgba(15,23,42,.03);
  --shadow-2: 0 8px 24px -10px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.06);
  --shadow-3: 0 24px 56px -20px rgba(124,58,237,.25), 0 4px 12px rgba(15,23,42,.08);
  --glass-blur: saturate(180%) blur(18px);
  --radius-1: 8px;
  --radius-2: 12px;
  --radius-3: 18px;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  margin: 0;
  position: relative;
  min-height: 100vh;
}
/* Ambient pastel gradient mesh sitting behind the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 8% -10%,  rgba(168, 85, 247, 0.18), transparent 65%),
    radial-gradient(700px 500px at 92% 12%,  rgba(14, 165, 233, 0.16), transparent 60%),
    radial-gradient(800px 600px at 50% 68%,  rgba(236, 72, 153, 0.10), transparent 65%),
    radial-gradient(900px 500px at 0% 100%,  rgba(16, 185, 129, 0.10), transparent 65%);
  filter: saturate(140%);
}
::selection { background: rgba(124, 58, 237, 0.18); color: var(--text); }

/* === Accessibility primitives === */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 12px; outline: 3px solid var(--accent); outline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .nav-cta:focus-visible {
  outline-offset: 3px;
}
.urn-input:focus-visible, .vocab-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* Visually hidden but read by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === Layout primitives === */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.section { padding: 96px 0; border-top: 1px solid var(--line); position: relative; z-index: 1; isolation: isolate; }
@media (max-width: 900px) { .section { padding: 72px 0; } }
@media (max-width: 600px) { .section { padding: 56px 0; } }
@media (max-width: 400px) { .h-section { font-size: 26px; } .lede { font-size: 15px; } }
.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.20) 100%);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}
.eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}
.h-section { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 12px; }
.h-section .accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--text-muted); font-size: 16px; max-width: 680px; line-height: 1.55; }

/* === Top nav === */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; flex-shrink: 0; }
@media (max-width: 480px) { .brand { gap: 8px; font-size: 14px; } .brand-mark { width: 28px; height: 28px; } }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #ec4899 0%, #7c3aed 50%, #06b6d4 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-2);
}
.brand-mark svg { color: white; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 14px; border-radius: 7px;
  background: var(--accent); color: white !important;
  font-weight: 500; box-shadow: var(--shadow-1);
}
.nav-cta:hover { background: var(--accent-2); }

/* Progressive disclosure of nav links as the viewport narrows.
 * Order of priority (kept until the last possible breakpoint): GitHub CTA →
 * Whitepaper → FAQ → Compare → How it works → Discussions → Vocabulary →
 * Evolution → Why. Stay readable from 1180 down to 320. */
@media (max-width: 1100px) { .nav-links a[href="#vocab"] { display: none; } }
@media (max-width: 980px)  { .nav-links a[href="#cmp"], .nav-links a[href*="Discussions"] { display: none; } }
@media (max-width: 880px)  { .nav-links a[href="#flow"], .nav-links a[href="#faq"] { display: none; } }
@media (max-width: 720px)  { .nav-links a[href="#evolution"] { display: none; } }
@media (max-width: 620px)  { .nav-links a[href="#why"], .nav-links a[href="whitepaper.html"] { display: none; } }

/* === Hero === */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
@media (max-width: 760px) { .hero { padding: 56px 0 32px; } }
@media (max-width: 760px) { .hero h1 { line-height: 1.1; } }
@media (max-width: 480px) { .hero p.lede { font-size: 16px; } }
@media (max-width: 480px) { .hero-cta { gap: 8px; } .hero-cta .btn { flex: 1 1 100%; justify-content: center; } }
.hero-bg { display: none; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.45;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 60%);
}
.hero-inner { position: relative; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86); color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05; margin: 20px 0 18px;
  max-width: 920px;
}
.hero h1 .accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: 18px; max-width: 720px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: var(--shadow-2); }
.btn-primary:hover { background: var(--accent); color: white; }
.btn-secondary { background: rgba(255,255,255,0.86); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-1); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: rgba(15,23,42,0.04); }

/* === Stat strip (under hero) === */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 56px; border: 1px solid var(--line);
  border-radius: var(--radius-3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.stat-cell { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: none; }
.stat-num { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-num .unit { font-size: 18px; color: var(--text-muted); margin-left: 4px; font-weight: 600; }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stat-cell { padding: 16px 14px; }
  .stat-num { font-size: 24px; }
}

/* === Card primitives === */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-2); padding: 22px;
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.card-h { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card-sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; line-height: 1.5; }
.card-tag {
  display: inline-block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 10px; font-weight: 600;
}

/* === Before/After (governed vs ungoverned) === */
.ba-wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; margin-top: 32px;
  align-items: stretch; position: relative; isolation: isolate;
}
@media (max-width: 900px) { .ba-wrap { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); justify-self: center; } }
.ba-side {
  background: rgba(255,255,255,0.78); border: 1px solid var(--line);
  border-radius: var(--radius-3); padding: 28px;
  position: relative; min-height: 460px; overflow: hidden;
  display: flex; flex-direction: column;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-2);
}
.ba-side.before { border-color: rgba(225, 29, 72, 0.30); }
.ba-side.after  { border-color: rgba(5, 150, 105, 0.35); box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.10), var(--shadow-2); }
.ba-tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 5px 12px; margin-bottom: 14px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  position: static;
}
.ba-side.before .ba-tag { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.ba-side.after  .ba-tag { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.ba-arrow { background: rgba(255,255,255,0.85); border: 1px solid var(--line-strong); color: var(--accent); }
.ba-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.ba-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
.ba-stage {
  height: 280px; border-radius: var(--radius-2); position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(248,249,252,0.85), rgba(241,243,249,0.95));
  border: 1px solid var(--line);
}
.ba-arrow {
  align-self: center;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--accent-2); box-shadow: var(--shadow-2);
}
.ba-controls { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* === Trust graph === */
.tg-wrap {
  margin-top: 28px;
  display: grid; grid-template-columns: 1fr 320px; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-3);
  padding: 24px; box-shadow: var(--shadow-2);
}
@media (max-width: 900px) { .tg-wrap { grid-template-columns: 1fr; } }
.tg-stage {
  background: linear-gradient(180deg, rgba(124,58,237,0.04) 0%, rgba(14,165,233,0.04) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-2);
  height: 480px; position: relative; overflow: hidden;
}
@media (max-width: 600px) { .tg-stage { height: 360px; } .tg-wrap { padding: 16px; } }
@media (max-width: 600px) { .cascade-stage { height: 280px; } }
.tg-side { display: flex; flex-direction: column; gap: 14px; }
.tg-info { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-2); padding: 16px; min-height: 180px; }
.tg-info .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); }
.tg-info h4 { margin: 6px 0 8px; font-size: 16px; }
.tg-info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; margin: 0; }
.tg-info dt { color: var(--text-dim); }
.tg-info dd { margin: 0; color: var(--text); font-family: var(--font-mono); font-size: 11px; word-break: break-all; }
.tg-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-toggle {
  padding: 6px 11px; border-radius: 6px; font-size: 12px;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--line); cursor: pointer;
}
.tg-toggle.is-on { background: var(--accent); color: white; border-color: var(--accent); }
.tg-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-muted); }
.tg-legend .swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* SVG node + edge styles */
.tg-node circle {
  stroke: rgba(15, 23, 42, 0.55);
  stroke-width: 1.6; cursor: pointer; transition: r .15s, stroke-width .15s;
  filter: drop-shadow(0 4px 10px rgba(15,23,42,0.20));
}
.tg-node:hover circle { r: 14; stroke-width: 2.4; }
.tg-node text {
  fill: var(--text); font-size: 10.5px; font-family: var(--font-mono);
  pointer-events: none; font-weight: 600;
  paint-order: stroke; stroke: rgba(255,255,255,0.95); stroke-width: 3px; stroke-linejoin: round;
}
.tg-link { stroke: rgba(74, 84, 120, 0.45); stroke-width: 1.4; fill: none; }
.tg-link.is-revoked { stroke: var(--danger); stroke-width: 2; stroke-dasharray: 4 3; }
.tg-node.is-stopped circle { fill: var(--danger) !important; }
.tg-node.is-selected circle { stroke: var(--accent); stroke-width: 3.5; }

/* === Cascade ripple === */
.cascade-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 900px) { .cascade-wrap { grid-template-columns: 1fr; } }
.cascade-stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-3);
  height: 360px; position: relative; overflow: hidden; box-shadow: var(--shadow-2);
}
.cascade-stage svg { display: block; width: 100%; height: 100%; }
.cascade-feed {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-3);
  padding: 18px; box-shadow: var(--shadow-2); display: flex; flex-direction: column;
}
.cascade-feed h4 { font-size: 14px; margin: 0 0 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.cascade-feed ul {
  list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto;
  font-family: var(--font-mono); font-size: 12px; max-height: 280px;
}
.cascade-feed li { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); display: flex; gap: 10px; align-items: center; }
.cascade-feed .pill { padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.cascade-feed .pill.signal { background: rgba(124,58,237,0.12); color: var(--accent); }
.cascade-feed .pill.cascade { background: rgba(217,119,6,0.14); color: var(--warning); }
.cascade-feed .pill.audit { background: rgba(14,165,233,0.14); color: var(--info); }
.cascade-controls { display: flex; gap: 10px; margin-top: 16px; }

/* === Decision dashboard === */
.dash-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 900px) { .dash-wrap { grid-template-columns: 1fr; } }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-3); padding: 24px; box-shadow: var(--shadow-2); }
.dash-counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.dash-counter {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-2); padding: 14px;
}
.dash-counter .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); }
.dash-counter .v { font-size: 26px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 4px; }
.dash-counter .delta { font-size: 11px; margin-top: 2px; }
.dash-counter .delta.up { color: var(--success); }
.dash-counter .delta.down { color: var(--danger); }

.donut-wrap { position: relative; height: 240px; display: grid; place-items: center; }
.donut-wrap svg { display: block; max-width: 100%; }
@media (max-width: 480px) { .donut-wrap { height: 200px; } .donut-wrap svg { width: 200px; height: 200px; } }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.donut-center .v { font-size: 32px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.donut-center .l { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }
.donut-legend { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.donut-legend-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; border-radius: 4px; }
.donut-legend-row:hover { background: var(--surface-2); }
.donut-legend-row .left { display: flex; align-items: center; gap: 8px; }
.donut-legend-row .left .swatch { width: 10px; height: 10px; border-radius: 2px; }
.donut-legend-row .right { font-variant-numeric: tabular-nums; color: var(--text-muted); }

/* === Comparison matrix === */
.cmp-scroll-wrap { margin-top: 28px; position: relative; }
/* Right-edge fade so the user sees there's more content to scroll. */
.cmp-scroll-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0;
  width: 48px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg) 80%);
  border-radius: 0 var(--radius-3) var(--radius-3) 0;
  opacity: 0.85;
}
@media (max-width: 600px) { .cmp-scroll-wrap::after { width: 28px; } }
.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius-3);
  background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  scrollbar-width: thin;
  scrollbar-color: rgba(15,23,42,0.18) transparent;
}
.cmp-wrap::-webkit-scrollbar { height: 8px; }
.cmp-wrap::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.18); border-radius: 8px; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 1180px; width: max-content; }
.cmp thead th {
  background: rgba(248, 249, 252, 0.95); color: var(--text-muted);
  font-size: 11px; font-weight: 600; padding: 16px 14px;
  text-align: left; border-bottom: 1px solid var(--line-strong);
  text-transform: uppercase; letter-spacing: 0.10em; white-space: nowrap;
}
.cmp thead th:first-child { padding-left: 22px; min-width: 280px; }
.cmp thead th:last-child  { padding-right: 22px; }
.cmp tbody td {
  padding: 14px; font-size: 13px; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle; white-space: nowrap;
}
.cmp tbody td:first-child { padding-left: 22px; min-width: 280px; white-space: normal; }
.cmp tbody td:last-child  { padding-right: 22px; }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody tr:hover { background: rgba(124, 58, 237, 0.04); }
.cmp .product-col { font-weight: 600; color: var(--text); }
.cmp .product-col .ver { font-weight: 400; color: var(--text-dim); font-size: 11px; }
.cmp .cell-yes { color: var(--success); font-weight: 600; }
.cmp .cell-no { color: var(--text-dim); }
.cmp .cell-partial { color: var(--warning); font-weight: 500; }
.cmp .cell-yes::before { content: "● "; }
.cmp .cell-no::before { content: "○ "; }
.cmp .cell-partial::before { content: "◐ "; }
.cmp .row-kye { background: rgba(124, 58, 237, 0.06); }
.cmp .row-kye .product-col { color: var(--accent); }
.cmp .row-kye .product-col::before { content: "★ "; color: var(--accent); }

/* === URN parser tokens (re-themed) === */
.urn-input {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-2); padding: 14px 16px;
  font-family: var(--font-mono); font-size: 14px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.urn-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.urn-samples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.urn-sample {
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 10px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-muted); cursor: pointer; transition: all .15s;
}
.urn-sample:hover { color: var(--text); border-color: var(--accent); background: rgba(99,102,241,0.08); }
.urn-out { margin-top: 20px; }
.urn-token { display: inline-block; margin: 2px 4px 2px 0; padding: 5px 10px; border-radius: 5px; font-family: var(--font-mono); font-size: 13px; word-break: break-all; }
@media (max-width: 600px) { .urn-token { font-size: 11.5px; padding: 4px 8px; } .urn-input { font-size: 12.5px; } }
.urn-tok-prefix { background: rgba(34,211,238,0.15); color: #67e8f9; }
.urn-tok-class  { background: rgba(99,102,241,0.18); color: var(--accent-2); }
.urn-tok-td     { background: rgba(168,85,247,0.18); color: #d8b4fe; }
.urn-tok-sub    { background: rgba(236,72,153,0.18); color: #f9a8d4; }
.urn-tok-local  { background: rgba(120,146,200,0.16); color: #cbd5e1; }
.urn-tok-bad    { background: rgba(239,68,68,0.2); color: #fca5a5; }
.urn-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 12px; color: var(--text-muted); margin-top: 18px; }
.urn-meta b { color: var(--text); font-weight: 500; }

/* === Decision flow (re-themed) === */
.flow-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 900px) { .flow-wrap { grid-template-columns: 1fr; } }
.flow-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flow-controls select {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 8px 12px; border-radius: 7px; font-size: 13px; font-family: var(--font-ui);
}
#flow-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#flow-steps li {
  padding: 10px 14px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; opacity: 0.5; transition: all .25s;
}
#flow-steps li.is-active { opacity: 1; border-color: var(--accent); background: rgba(99,102,241,0.08); }
#flow-steps li code { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); padding: 1px 4px; background: rgba(99,102,241,0.10); border-radius: 3px; }
.flow-decision {
  background: rgba(255,255,255,0.86); border: 1px solid var(--line);
  border-radius: var(--radius-3); padding: 32px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-2); position: relative; overflow: hidden;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.flow-decision::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--text-dim); transition: background .25s ease;
}
.flow-decision.is-allow    { background: linear-gradient(180deg, #ecfdf5, rgba(255,255,255,0.86)); border-color: #6ee7b7; }
.flow-decision.is-allow::before    { background: var(--success); }
.flow-decision.is-approval { background: linear-gradient(180deg, #fef3c7, rgba(255,255,255,0.86)); border-color: #fcd34d; }
.flow-decision.is-approval::before { background: var(--warning); }
.flow-decision.is-deny     { background: linear-gradient(180deg, #ffe4e6, rgba(255,255,255,0.86)); border-color: #fda4af; }
.flow-decision.is-deny::before     { background: var(--danger); }
.flow-decision .l { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.flow-decision .v { font-size: 32px; font-weight: 800; margin-top: 12px; font-family: var(--font-mono); letter-spacing: -0.02em; }
.flow-decision .v.allow    { color: var(--success); }
.flow-decision .v.approval { color: var(--warning); }
.flow-decision .v.deny     { color: var(--danger); }
.flow-decision .badge-icon { display: inline-block; margin-right: 10px; vertical-align: middle; }
.flow-decision .reasons, .flow-decision .obs { margin-top: 18px; font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.flow-decision code { font-family: var(--font-mono); font-size: 12px; padding: 2px 6px; background: var(--surface-3); border-radius: 4px; color: var(--text); margin: 0 2px; border: 1px solid var(--line); }
/* Highlighted decision flow steps when their decision corresponds */
#flow-steps li.is-active.flow-allow    { border-color: var(--success); background: rgba(5,150,105,0.06); }
#flow-steps li.is-active.flow-approval { border-color: var(--warning); background: rgba(217,119,6,0.06); }
#flow-steps li.is-active.flow-deny     { border-color: var(--danger);  background: rgba(225,29,72,0.06); }

/* === Profiles === */
.profile-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.profile-tab {
  padding: 8px 14px; border-radius: 8px;
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all .15s;
}
.profile-tab:hover { color: var(--text); border-color: var(--accent); }
.profile-tab.is-active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: var(--shadow-1); }
.profile-detail {
  margin-top: 18px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-3);
  box-shadow: var(--shadow-2);
}
.profile-detail .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .profile-detail .grid { grid-template-columns: 1fr; } }
.profile-detail h3 { font-size: 22px; margin: 8px 0 6px; letter-spacing: -0.01em; }
.profile-detail .endpoints, .profile-detail .terms {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px;
}
.profile-detail .endpoints li { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); padding: 6px 10px; background: var(--surface-2); border-radius: 5px; border: 1px solid var(--line-soft); }
.profile-detail .terms li { font-size: 13px; color: var(--text-muted); }
.profile-detail .terms code { font-family: var(--font-mono); font-size: 12px; color: var(--info); }

/* === Lifecycle simulator === */
.lc-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 900px) { .lc-wrap { grid-template-columns: 1fr; } }
.lc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-3); padding: 22px; box-shadow: var(--shadow-1); }
.lc-state { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--accent-2); letter-spacing: -0.01em; }
.lc-status { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.lc-transitions { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-btn {
  font-family: var(--font-mono); font-size: 12px;
  padding: 7px 12px; border-radius: 6px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); cursor: pointer; transition: all .15s;
}
.lc-btn:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(99,102,241,0.08); }
.lc-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.lc-cascade ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.lc-log { font-family: var(--font-mono); font-size: 11px; max-height: 240px; overflow-y: auto; }
.lc-log li { padding: 4px 0; color: var(--text-muted); border-bottom: 1px dashed var(--line-soft); }

/* === Vocabulary browser === */
.vocab-input {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-2); padding: 13px 16px;
  font-family: var(--font-mono); font-size: 14px; color: var(--text); margin-top: 18px;
}
.vocab-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.vocab-counts { font-size: 12px; color: var(--text-dim); margin-top: 10px; }
/* Vocabulary: category tabs + compact list */
.vocab-cats {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px;
}
.vocab-cat {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--line); cursor: pointer; transition: all .15s;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.vocab-cat:hover { color: var(--text); border-color: var(--accent); }
.vocab-cat.is-on {
  background: var(--accent); color: white; border-color: var(--accent);
  box-shadow: 0 4px 14px -4px rgba(139, 92, 246, 0.55);
}
.vocab-cat .badge {
  display: inline-block; margin-left: 6px;
  background: rgba(255,255,255,0.18); color: inherit;
  padding: 1px 6px; border-radius: 8px; font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.vocab-list {
  margin-top: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-3);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.vocab-row {
  display: grid; grid-template-columns: 220px 1fr;
  padding: 12px 18px; border-bottom: 1px solid var(--line-soft);
  font-size: 13px; gap: 18px; align-items: baseline;
  transition: background .15s;
}
.vocab-row:last-child { border-bottom: none; }
.vocab-row:hover { background: rgba(139, 92, 246, 0.05); }
.vocab-row .v-name { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-2); font-weight: 500; word-break: break-all; }
.vocab-row .v-desc { color: var(--text-muted); line-height: 1.5; }
.vocab-row .v-cat-pill { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--line); color: var(--text-dim); margin-right: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 700px) {
  .vocab-row { grid-template-columns: 1fr; gap: 4px; }
}

/* === Public repos: 3 cols on desktop, 2 cols on tablet, 1 col on mobile === */
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .repo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .repo-grid { grid-template-columns: 1fr; } }
.repo-card {
  display: block; padding: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-2); text-decoration: none;
  transition: all .15s; box-shadow: var(--shadow-1);
}
.repo-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.repo-name { font-family: var(--font-mono); color: var(--accent-2); font-weight: 600; font-size: 15px; }
.repo-desc { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

/* === Footer === */
.footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 600px) { .footer-links { gap: 14px 18px; font-size: 12.5px; } .footer { padding: 28px 0; } }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* === Scroll-to-top button with progress ring === */
.scroll-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background .15s, box-shadow .15s;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--text); }
.scroll-top:hover .arrow { stroke: var(--bg); }
.scroll-top:hover .ring-progress { stroke: white; }
.scroll-top svg { display: block; }
.scroll-top .arrow { stroke: var(--text); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.scroll-top .ring-bg { stroke: var(--line); stroke-width: 3; fill: none; }
.scroll-top .ring-progress {
  stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round;
  transition: stroke-dashoffset .12s linear;
  transform: rotate(-90deg); transform-origin: center;
}
@media (max-width: 600px) {
  .scroll-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* === Beyond KYC / KYB / KYA / KYE evolution === */
.evo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: 36px; align-items: stretch;
}
@media (max-width: 1080px) { .evo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .evo-grid { grid-template-columns: 1fr; } }
.evo-card {
  background: rgba(255,255,255,0.78); border: 1px solid var(--line);
  border-radius: var(--radius-3); padding: 22px;
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.evo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.evo-card.legacy   { border-color: var(--line-strong); }
.evo-card.emerging { border-color: rgba(217, 119, 6, 0.30); background: linear-gradient(180deg, rgba(254, 243, 199, 0.55), rgba(255, 255, 255, 0.85)); }
.evo-card.kye {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.10), rgba(255, 255, 255, 0.85));
  box-shadow: var(--shadow-3);
}
.evo-tag {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600;
}
.evo-card.emerging .evo-tag { color: var(--warning); }
.evo-card.kye .evo-tag { color: var(--accent); }
.evo-card h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
@media (max-width: 600px) { .evo-card { padding: 18px; } .evo-card h3 { font-size: 24px; } .evo-callout { padding: 18px 20px; font-size: 14px; } }
.evo-card.kye h3 { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.evo-sub { font-size: 13px; color: var(--text-muted); margin: 0; font-weight: 500; }
.evo-have, .evo-miss { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; }
.evo-have li { color: var(--text); padding-left: 22px; position: relative; }
.evo-have li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px;
  background: rgba(5,150,105,0.16); border-radius: 50%;
}
.evo-have li::after {
  content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 3px;
  border-left: 2px solid var(--success); border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.evo-miss li { color: var(--text-dim); padding-left: 22px; position: relative; }
.evo-miss li::before {
  content: "✕"; position: absolute; left: 0; top: -1px; width: 14px; height: 14px;
  font-size: 11px; color: var(--danger); font-weight: 700; text-align: center;
}
.evo-card.kye .evo-have li { color: var(--text); font-weight: 500; }
.evo-card.kye .evo-have li strong { color: var(--accent); }

.evo-callout {
  margin-top: 32px; padding: 24px 28px;
  background: rgba(255,255,255,0.86); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
  font-size: 15px; line-height: 1.65; color: var(--text-muted);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.evo-callout strong { color: var(--text); }

/* === Quickstart === */
.qs-card {
  margin-top: 28px;
  background: rgba(255,255,255,0.86); border: 1px solid var(--line);
  border-radius: var(--radius-3); box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
}
.qs-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 249, 252, 0.6);
  overflow-x: auto;
  scrollbar-width: none;
}
.qs-tabs::-webkit-scrollbar { display: none; }
.qs-tab { white-space: nowrap; }
.qs-tab {
  padding: 12px 20px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-mono);
  transition: color .15s, border-color .15s;
}
.qs-tab:hover { color: var(--text); }
.qs-tab.is-on {
  color: var(--accent); border-bottom-color: var(--accent);
  background: rgba(255,255,255,0.86);
}
.qs-pane { padding: 0; }
.qs-pane pre {
  margin: 0; padding: 24px 28px;
  background: #0b0f1c; color: #e6ecf6;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6;
  overflow-x: auto; max-height: 380px;
}
@media (max-width: 600px) {
  .qs-pane pre { padding: 18px 16px; font-size: 11.5px; line-height: 1.55; }
  .qs-tab { padding: 10px 14px; font-size: 12px; }
  .qs-tabs { overflow-x: auto; }
  .qs-tabs::-webkit-scrollbar { display: none; }
}
.qs-pane pre .k { color: #c084fc; }
.qs-pane pre .s { color: #6ee7b7; }
.qs-pane pre .c { color: #6b7aa1; font-style: italic; }
.qs-pane pre .n { color: #fbbf24; }
.qs-pane pre .u { color: #67e8f9; }
.qs-copy {
  position: absolute; top: 12px; right: 16px;
  background: rgba(124, 58, 237, 0.15); color: var(--accent-2);
  border: 1px solid rgba(124, 58, 237, 0.30);
  padding: 4px 10px; font-size: 11px; border-radius: 5px;
  font-family: var(--font-mono); cursor: pointer;
}
.qs-copy:hover { background: rgba(124, 58, 237, 0.25); color: white; }
.qs-pane-wrap { position: relative; }

/* === Personas === */
.persona-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 28px;
}
@media (max-width: 900px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .persona-grid { grid-template-columns: 1fr; } }
.persona-card {
  background: rgba(255,255,255,0.78); border: 1px solid var(--line);
  border-radius: var(--radius-2); padding: 22px; box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  display: flex; flex-direction: column; gap: 10px;
}
.persona-card .persona-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 18px;
}
.persona-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.persona-card .pain { font-size: 13px; color: var(--text-dim); font-style: italic; }
.persona-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* === Star CTA (sticky) === */
.star-cta {
  position: fixed; left: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .15s;
}
.star-cta.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.star-cta:hover { background: var(--accent); color: white; }
.star-cta svg { color: #fbbf24; }
@media (max-width: 600px) { .star-cta { left: 16px; bottom: 16px; padding: 8px 14px; font-size: 12px; } }
@media (max-width: 360px) { .star-cta { padding: 7px 11px; font-size: 11px; } }

/* === Logos strip placeholder === */
.logos-strip {
  margin-top: 32px;
  background: rgba(255,255,255,0.66); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-3); padding: 28px;
  text-align: center; color: var(--text-dim); font-size: 13px; line-height: 1.6;
}
.logos-strip strong { color: var(--text); }
@media (max-width: 600px) { .logos-strip { padding: 20px; font-size: 12.5px; } }

/* === FAQ === */
.faq-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(255,255,255,0.78); border: 1px solid var(--line);
  border-radius: var(--radius-2); padding: 0;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow-2); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-size: 16px; font-weight: 600;
  color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-weight: 400; color: var(--accent); font-size: 24px;
  transition: transform .2s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0; padding: 0 22px 22px; color: var(--text-muted);
  line-height: 1.65; font-size: 14.5px;
  word-wrap: break-word; overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .faq-item summary { padding: 14px 16px; font-size: 14.5px; gap: 8px; }
  .faq-item p { padding: 0 16px 16px; font-size: 14px; }
}
.faq-item code { font-family: var(--font-mono); font-size: 12.5px; padding: 2px 6px; background: var(--accent-soft); border-radius: 4px; color: var(--accent); }

/* Mermaid recolor */
.mermaid-host { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-3); margin-top: 24px; overflow-x: auto; box-shadow: var(--shadow-2); }
.mermaid svg { max-width: 100%; height: auto; }

/* === Custom coloured sequence diagram === */
.seq-host {
  margin-top: 32px; padding: 28px;
  background: rgba(255,255,255,0.86); border: 1px solid var(--line); border-radius: var(--radius-3);
  box-shadow: var(--shadow-2); overflow-x: auto;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.seq-host svg { display: block; max-width: 100%; min-width: 720px; height: auto; }
@media (max-width: 760px) { .seq-host { padding: 18px 12px; } }
.seq-actor-rect { rx: 8; }
.seq-line-line { stroke: rgba(74, 84, 120, 0.20); stroke-width: 1.2; stroke-dasharray: 4 4; }
.seq-msg-line  { stroke-width: 1.6; }
.seq-msg-text  { font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.seq-actor-text { font-family: var(--font-ui); font-size: 12px; font-weight: 600; fill: white; }
.seq-step-num   { font-family: var(--font-ui); font-size: 10px; font-weight: 700; fill: white; }
.seq-step-num-bg { stroke: white; stroke-width: 1.4; }
.seq-alt-box {
  fill: rgba(124, 58, 237, 0.05); stroke: rgba(124, 58, 237, 0.30);
  stroke-width: 1; stroke-dasharray: 3 3; rx: 6;
}
.seq-alt-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  fill: var(--accent); letter-spacing: 0.04em;
}







