/* Kompsy landing. Colors, type and motifs follow the brand sheet (brand/Brand sheet.pdf). */

@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Brand palette */
  --ember: #e0520d;
  --flame: #ff7a29;
  --spark: #fb8a22;
  --glow: #ffb870;
  --deep: #b8420a;
  --night: #14100e;
  --ink: #1c1410;
  --stone: #6b5d54;
  --paper: #fbf3ea;

  /* Roles, light */
  --bg-canvas: var(--paper);
  --bg-alt: #f6eadd;
  --bg-surface: #fffcf8;
  --bg-muted: #f0e3d5;
  --border: #eadbcb;
  --border-strong: #d9c5b1;
  --text: var(--ink);
  --text-2: var(--stone);
  --text-3: #76675d;
  --accent: var(--ember);          /* marks, rules, icons */
  --accent-text: var(--deep);      /* small accent text and links */
  --accent-subtle: #fce9da;
  --dot: var(--spark);             /* the agent dot */
  --btn-bg: var(--deep);
  --btn-fg: #ffffff;
  --btn-hover: #9c3708;
  --approval-bg: var(--deep);
  --approval-fg: #ffffff;
  --avatar-agent-bg: var(--ink);
  --avatar-agent-fg: var(--paper);
  --success: #276a32;
  --warning-fg: #8f4a06;
  --warning-bg: #fdebd3;
  --stage-bg:
    radial-gradient(120% 80% at 50% 0%, rgba(251, 138, 34, 0.32), transparent 62%),
    linear-gradient(180deg, #f7dfc8, #f3e5d6);
  --term-bg: var(--night);
  --term-border: #2e241e;
  --term-text: #f3e8dc;
  --term-muted: #b3a294;
  --shadow-1: 0 1px 2px rgba(28, 20, 16, 0.06);
  --shadow-2: 0 2px 8px rgba(28, 20, 16, 0.07), 0 1px 2px rgba(28, 20, 16, 0.05);
  --shadow-float: 0 18px 40px -12px rgba(60, 30, 10, 0.28), 0 4px 12px rgba(60, 30, 10, 0.08);
  --shadow-hero: 0 30px 70px -24px rgba(90, 40, 10, 0.35), 0 6px 18px rgba(60, 30, 10, 0.08);
  --radius: 12px;
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-canvas: var(--night);
    --bg-alt: #1a1411;
    --bg-surface: #211915;
    --bg-muted: #2c221c;
    --border: #33281f;
    --border-strong: #4a3b30;
    --text: var(--paper);
    --text-2: #c9b8aa;
    --text-3: #a69485;
    --accent: var(--flame);
    --accent-text: var(--flame);
    --accent-subtle: #34200f;
    --dot: var(--glow);
    --btn-bg: var(--flame);
    --btn-fg: var(--ink);
    --btn-hover: #ff9152;
    --approval-bg: var(--flame);
    --approval-fg: var(--ink);
    --avatar-agent-bg: #3b2e26;
    --avatar-agent-fg: var(--paper);
    --success: #6fcf7e;
    --warning-fg: #ffc285;
    --warning-bg: #3a2410;
    --stage-bg:
      radial-gradient(120% 80% at 50% 0%, rgba(255, 122, 41, 0.22), transparent 62%),
      linear-gradient(180deg, #24180f, #1a1310);
    --term-bg: #0e0b09;
    --term-border: #33281f;
    --shadow-1: 0 0 0 1px #2c221c;
    --shadow-2: 0 0 0 1px #3a2e26, 0 6px 16px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 0 0 1px #4a3b30, 0 18px 40px -12px rgba(0, 0, 0, 0.7);
    --shadow-hero: 0 0 0 1px #33281f, 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 600; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
p code, li code, span code { font-size: 0.86em; color: var(--accent-text); }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.35em;
  margin: 0 0.1em;
  font-size: 0.78em;
  line-height: 1.6;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-surface);
  color: var(--text-2);
}
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.key { font-family: var(--mono); font-size: 12px; color: var(--accent-text); letter-spacing: 0.01em; }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--btn-bg); color: var(--btn-fg); border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { border-color: var(--border-strong); background: var(--bg-surface); color: var(--text); }
.btn-outline:hover { border-color: var(--text-3); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--bg-muted); }
.btn-night { background: var(--night); color: var(--paper); }
.btn-night:hover { background: #2a201b; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn:active { transform: translateY(1px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-canvas) 84%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; padding: 4px 0; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-right: auto; }
.nav-links a { padding: 6px 12px; font-size: 15px; color: var(--text-2); border-radius: 999px; }
.nav-links a:hover { color: var(--text); background: var(--bg-muted); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.gh { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; font-size: 15px; color: var(--text-2); border-radius: 999px; }
.gh:hover { color: var(--text); background: var(--bg-muted); }
.gh-stars { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 999px; background: var(--bg-muted); }

/* Hero */
.hero { padding: 64px 0 0; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  font-size: 14px;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 25%, transparent); }
.hero h1 { margin-top: 28px; font-size: clamp(40px, 6.6vw, 76px); letter-spacing: -0.035em; line-height: 1.04; max-width: 980px; text-wrap: balance; }
.h-dot, .cta-dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--dot);
  vertical-align: baseline;
}
.lede { margin-top: 24px; max-width: 660px; font-size: clamp(18px, 2vw, 20px); color: var(--text-2); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hero-cta.left { justify-content: flex-start; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* Hero stage: the screenshot rises out of a warm panel, with in-product motifs floating on top. */
.stage {
  position: relative;
  margin-top: 64px;
  padding: 56px 72px 0;
  border-radius: 28px;
  background: var(--stage-bg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-hero);
}
.shot-hero { border-bottom: 0; border-radius: 14px 14px 0 0; }
.shot-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }

.float {
  position: absolute;
  z-index: 2;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-float);
}
.float-issue { left: 28px; bottom: 36px; width: 372px; padding: 16px 18px; }
.float-trust { right: 28px; top: 112px; padding: 14px 18px 12px; }
.float-label { font-size: 12px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }

.issue-card { display: flex; flex-direction: column; gap: 6px; }
.issue-title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.issue-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.agent { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.tag-approval {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--approval-bg);
  color: var(--approval-fg);
  white-space: nowrap;
}

/* Avatars: agents carry the dot. */
.avatar {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}
.avatar-agent { background: var(--avatar-agent-bg); color: var(--avatar-agent-fg); }
.avatar-agent::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
  border: 2px solid var(--bg-surface);
}
.avatar-person { background: var(--bg-muted); color: var(--text-2); }
.avatar-person.alt { background: var(--accent-subtle); color: var(--accent-text); }
.avatar.lg, .pillar-art .avatar { width: 36px; height: 36px; font-size: 13px; }
.pillar-art .avatar-agent::after { width: 12px; height: 12px; }

/* Trust level glyphs: empty, half, filled. */
.levels { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.levels li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); padding: 3px 0; }
.levels li.on { color: var(--text); font-weight: 500; }
.lvl {
  flex: none;
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.lvl-approve { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.lvl-auto { background: var(--accent); }
.lvl.lg { width: 28px; height: 28px; border-width: 3px; }

/* Strip */
.strip { padding: 56px 0 0; }
.strip-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.strip-label { font-size: 14px; color: var(--text-3); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin: 0; padding: 0; list-style: none; }
.strip li { font-weight: 500; font-size: 17px; color: var(--text-2); }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-flush { padding-bottom: 0; }
.section-head { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.section-head p:last-child:not(.eyebrow) { margin-top: 18px; color: var(--text-2); font-size: 18px; text-wrap: pretty; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-text);
  margin-bottom: 14px !important;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.03em; text-wrap: balance; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); }
.split > div > p:not(.eyebrow) { margin-top: 18px; color: var(--text-2); font-size: 18px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.pillar-art { display: flex; align-items: center; gap: 6px; height: 40px; }
.pillar-art .avatar-person + .avatar-person { margin-left: -14px; box-shadow: 0 0 0 2px var(--bg-surface); }
.pillar-art .avatar-agent { margin-left: -6px; box-shadow: 0 0 0 2px var(--bg-surface); }
.chip { font-size: 12px; font-weight: 500; padding: 3px 9px; white-space: nowrap; border-radius: 999px; background: var(--bg-muted); color: var(--text-2); }
.mono-chip { font-family: var(--mono); font-size: 12px; color: var(--accent-text); background: var(--accent-subtle); }
.pillar h3 { margin-top: 24px; font-size: 20px; }
.pillar p { margin-top: 10px; color: var(--text-2); font-size: 16px; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.flow-step { position: relative; min-width: 0; }
.flow-step h3 { margin-top: 24px; font-size: 20px; }
.flow-step > p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.flow-num {
  position: absolute;
  top: -12px;
  left: -10px;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg-canvas);
}
.card {
  height: 158px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-agent { border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border)); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.card-title { font-weight: 500; font-size: 16px; line-height: 1.35; }
.card-foot { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: auto; }
.agent-name { font-weight: 500; color: var(--text); }
.status { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; }
.status.inprogress { color: var(--warning-fg); background: var(--warning-bg); }
.risk { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; color: var(--warning-fg); background: var(--warning-bg); }
.diff { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); font-size: 14px; }
.diff div { display: grid; grid-template-columns: 12px auto 1fr; gap: 10px; align-items: baseline; }
.add { color: var(--success); font-family: var(--mono); font-weight: 600; }
.approve-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.btn-mini { font-size: 14px; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-surface); }
.btn-mini-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.btn-mini-ghost { border-color: transparent; color: var(--text-2); }

/* Trust */
.trust {
  margin: 72px auto 0;
  max-width: 760px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-1);
}
.trust-head h3 { font-size: 22px; }
.trust-head p { margin-top: 6px; color: var(--text-2); font-size: 16px; }
.trust-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 20px; padding: 4px; background: var(--bg-alt); border-radius: 999px; }
.trust-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 9px 8px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.trust-tabs button:hover { color: var(--text); }
.trust-tabs button[aria-selected='true'] { background: var(--bg-surface); color: var(--text); box-shadow: var(--shadow-2); }
.trust-body { padding: 18px 4px 0; color: var(--text-2); font-size: 16px; min-height: 74px; }

/* Split + terminal */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.split-rev { grid-template-columns: 1.1fr 1fr; }
.split > * { min-width: 0; }
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); font-size: 16px; }
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px);
}
.terminal {
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--term-bg);
  color: var(--term-text);
  box-shadow: var(--shadow-hero);
  border: 1px solid var(--term-border);
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--term-border); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #42352c; }
.terminal-bar b { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--term-muted); }
.copy {
  margin-left: auto;
  font: inherit;
  font-size: 13px;
  color: var(--term-text);
  background: #2a201b;
  border: 1px solid #42352c;
  border-radius: 999px;
  padding: 2px 12px;
  cursor: pointer;
}
.copy:hover { background: #3a2d25; }
.copy:focus-visible, .terminal pre:focus-visible { outline-color: var(--flame); }
.terminal pre { margin: 0; padding: 20px 22px 6px; font-size: 13px; line-height: 1.75; overflow-x: auto; }
.terminal pre.t-out { padding: 10px 22px 22px; color: var(--term-muted); border-top: 1px dashed var(--term-border); }
.t-prompt { color: #8f7f72; user-select: none; }
.t-ok { color: #7fd48c; }
.t-dot { color: var(--glow); }

/* Tour */
.tour { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 4px; }
.tour-tabs button {
  appearance: none;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid transparent;
  background: transparent;
  padding: 14px 18px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s;
}
.tour-tabs button b { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tour-tabs button span { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.tour-tabs button:hover { background: color-mix(in srgb, var(--bg-surface) 60%, transparent); }
.tour-tabs button[aria-selected='true'] { background: var(--bg-surface); border-color: var(--border); box-shadow: var(--shadow-2); }
.tour-tabs button[aria-selected='true'] b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.tour-stage { position: sticky; top: 92px; padding: 20px; border-radius: 24px; background: var(--stage-bg); border: 1px solid var(--border); }
.tour-shot img { transition: opacity 0.2s ease; }
.tour-shot img.fading { opacity: 0; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--bg-surface); padding: 30px 28px; border-radius: 20px; border: 1px solid var(--border); }
.feature h3 { margin-top: 20px; font-size: 19px; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-subtle); color: var(--accent-text); }
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.principles b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.principles p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.principles > div { position: relative; padding-top: 20px; border-top: 2px solid var(--text); }
.principles > div::before { content: ''; position: absolute; top: -6px; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }

/* FAQ */
.faq { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-weight: 500;
  font-size: 19px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: var(--accent-text);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--text-2); }
/* Animated answers (main.js wraps each answer; without JS details just toggle). */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s cubic-bezier(0.2, 0, 0, 1), opacity 0.24s ease;
}
.faq-inner { min-height: 0; overflow: hidden; }
.faq-inner > p { transform: translateY(-6px); transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1); }
.faq details.is-open .faq-body { grid-template-rows: 1fr; opacity: 1; }
.faq details.is-open .faq-inner > p { transform: none; }
.faq details.is-open summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details:not(.is-open) summary::after { transform: translateY(-50%); }

/* Closing CTA: white logo and large white type on Ember (3.9:1, large text only). */
.cta { padding: 120px 0; }
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 72px 72px 80px;
  border-radius: 32px;
  background: var(--ember);
  color: #fff;
}
.cta-panel::after {
  /* The agent dot, oversized, bleeding off the corner. */
  content: '';
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: #ffd2a1;
  opacity: 0.9;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-logo { height: 36px; width: auto; }
.cta h2 { margin-top: 56px; font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.04em; max-width: 760px; }
.cta-dot { background: #ffd2a1; }
.cta p { margin-top: 20px; font-size: 24px; line-height: 1.4; max-width: 560px; }
.cta :focus-visible { outline-color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer .brand img { height: 24px; }
.footer-tag { color: var(--text-3); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.footer nav a:hover { color: var(--text); }
.footer > .wrap > p.small { flex-basis: 100%; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .float-trust { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .stage { padding: 40px 32px 0; }
  .float-issue { left: 20px; bottom: 20px; width: 300px; }
  .flow { grid-template-columns: 1fr; gap: 44px; max-width: 520px; margin: 0 auto; }
  .card { height: auto; min-height: 140px; }
  .split, .split-rev { grid-template-columns: 1fr; gap: 44px; }
  .split-rev > .terminal { order: 2; }
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px 6px; }
  .tour-tabs button { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; }
  .tour-tabs button span { display: none; }
  .tour-stage { position: static; padding: 12px; border-radius: 18px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .section { padding: 88px 0; }
  .cta-panel { padding: 56px 40px 64px; }
  .cta-panel::after { width: 240px; height: 240px; right: -80px; bottom: -80px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-inner { gap: 12px; height: 60px; }
  .brand img { height: 24px; }
  .hide-sm, .gh-label { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 40px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stage { margin-top: 44px; padding: 20px 14px 0; border-radius: 20px; display: flex; flex-direction: column; }
  .shot-hero { order: 1; }
  .float-issue { position: relative; left: auto; bottom: auto; width: auto; margin: 0 0 16px; order: 0; }
  .shot-bar { padding: 8px 10px; }
  .shot-bar span { width: 8px; height: 8px; }
  .pillars, .grid, .principles { grid-template-columns: 1fr; }
  .trust { padding: 20px 16px; border-radius: 20px; }
  .trust-tabs { grid-template-columns: 1fr; border-radius: 16px; }
  .trust-tabs button { justify-content: flex-start; padding: 9px 14px; border-radius: 12px; }
  .tour-tabs { margin: 0 -16px; padding: 2px 16px 6px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .terminal pre { padding: 16px 16px 6px; font-size: 12px; }
  .terminal pre.t-out { padding: 8px 16px 18px; }
  .cta { padding: 72px 0; }
  .cta-panel { padding: 40px 24px 56px; border-radius: 24px; }
  .cta-panel::after { width: 160px; height: 160px; right: -60px; bottom: -60px; }
  .cta h2 { margin-top: 40px; font-size: 44px; }
  .cta p { font-size: 24px; }
  .footer nav { margin-left: 0; }
}

/* Legal pages (privacy.html, terms.html) */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.legal .legal-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 12px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 12px; }
.legal .legal-meta { color: var(--text-3); font-size: 14px; margin: 0 0 32px; }
.legal .legal-lede { font-size: 19px; line-height: 1.6; color: var(--text-2); margin: 0 0 32px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; margin: 0 0 40px; border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 16px; background: var(--bg-surface); }
.legal-toc a { font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--bg-muted); color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--accent-text); }
.legal h2 { font-size: 24px; font-weight: 600; margin: 48px 0 12px; scroll-margin-top: 96px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin: 0 0 8px; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent-text); }
.nav-legal .nav-cta { margin-left: auto; }
.footer nav a[aria-current="page"] { color: var(--text); font-weight: 500; }
