/*
 * RostrumPost landing: "trust through Preflight".
 * Forks the product token system (public/styles.css): slate base, single emerald
 * accent, system sans, mono numerals. Light + dark by tokens, with a manual
 * [data-theme] override. One accent, one radius scale. CSP-safe (no external CSS/JS).
 */

:root {
  color-scheme: light dark;

  /* Surfaces */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eceef1;

  /* Lines */
  --line: #e3e6ea;
  --line-strong: #d2d6dc;

  /* Text */
  --text: #16191d;
  --text-muted: #5b6470;
  --text-subtle: #8a929d;

  /* Single accent */
  --accent: #0f9860;
  --accent-hover: #0b7f4f;
  --accent-fg: #ffffff;
  --accent-soft: rgba(15, 152, 96, 0.11);
  --accent-ring: rgba(15, 152, 96, 0.32);

  /* Semantic status (meaning, not decoration) */
  --success: #1f7a45;
  --success-soft: rgba(31, 122, 69, 0.10);
  --warning: #8a5a12;
  --warning-soft: rgba(154, 98, 18, 0.13);
  --danger: #b42525;
  --danger-soft: rgba(180, 37, 37, 0.10);

  --shadow: 0 1px 2px rgba(16, 19, 23, 0.06), 0 6px 18px rgba(16, 19, 23, 0.05);
  --shadow-sm: 0 1px 2px rgba(16, 19, 23, 0.06);
  --shadow-lg: 0 1px 2px rgba(16, 19, 23, 0.05), 0 24px 60px rgba(16, 19, 23, 0.12);

  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1180px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  --bg: #0b0d10;
  --surface: #14171b;
  --surface-2: #1a1e23;
  --surface-3: #21262d;
  --line: #272c33;
  --line-strong: #363c45;
  --text: #e7eaed;
  --text-muted: #9aa3ad;
  --text-subtle: #6b7480;
  --accent: #39cc86;
  --accent-hover: #5dde9d;
  --accent-fg: #07100c;
  --accent-soft: rgba(57, 204, 134, 0.16);
  --accent-ring: rgba(57, 204, 134, 0.42);
  --success: #45c07a;
  --success-soft: rgba(69, 192, 122, 0.14);
  --warning: #d6a447;
  --warning-soft: rgba(214, 164, 71, 0.15);
  --danger: #f0696a;
  --danger-soft: rgba(240, 105, 106, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.36);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.4), 0 28px 64px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d10;
    --surface: #14171b;
    --surface-2: #1a1e23;
    --surface-3: #21262d;
    --line: #272c33;
    --line-strong: #363c45;
    --text: #e7eaed;
    --text-muted: #9aa3ad;
    --text-subtle: #6b7480;
    --accent: #39cc86;
    --accent-hover: #5dde9d;
    --accent-fg: #07100c;
    --accent-soft: rgba(57, 204, 134, 0.16);
    --accent-ring: rgba(57, 204, 134, 0.42);
    --success: #45c07a;
    --success-soft: rgba(69, 192, 122, 0.14);
    --warning: #d6a447;
    --warning-soft: rgba(214, 164, 71, 0.15);
    --danger: #f0696a;
    --danger-soft: rgba(240, 105, 106, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.36);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.4), 0 28px 64px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.06; }
p { margin: 0; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(4rem, 9vh, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 6vh, 4rem); }

.section-head { max-width: 60ch; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h2.h-section {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 660;
  text-wrap: balance;
}

.section-sub {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
}
.section-head.center .section-sub { margin-inline: auto; }

.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 640;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease),
    transform 140ms var(--ease), box-shadow 140ms var(--ease), color 140ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 10px 24px rgba(15, 152, 96, 0.20);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 152, 96, 0.26);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-subtle); }

.btn-sm { min-height: 38px; padding: 0 0.95rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 160ms var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Badges / mode pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; flex: none; }
.pill-direct { background: var(--success-soft); color: var(--success); }
.pill-assisted { background: var(--warning-soft); color: var(--warning); }
.pill-pending { background: var(--surface-3); color: var(--text-subtle); }
.pill-neutral { background: var(--surface-3); color: var(--text-muted); }

/* ---------- Card / panel ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 660;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  flex: none;
}
.brand-mark {
  display: grid;
  align-content: end;
  gap: 3px;
  width: 28px;
  height: 26px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.brand-mark i { display: block; height: 3px; border-radius: 1px; background: var(--accent); }
.brand-mark i:nth-child(1) { width: 40%; opacity: 0.5; }
.brand-mark i:nth-child(2) { width: 68%; opacity: 0.75; }
.brand-mark i:nth-child(3) { width: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-muted);
  transition: color 140ms var(--ease), background 140ms var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.4rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 140ms var(--ease), border-color 140ms var(--ease), background 140ms var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
  :root:not([data-theme="light"]) .theme-icon-dark { display: block; }
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background: radial-gradient(60% 100% at 70% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vh, 5rem) clamp(3.5rem, 8vh, 6rem);
}
.hero h1 {
  font-size: clamp(1.95rem, 3.3vw, 2.55rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--text-muted);
}
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
}
.hero-note code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-muted);
}

/* Hero product panel (real product tokens) */
.product-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.product-panel-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.product-panel-bar .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-left: auto;
}
.win-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); }
.product-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.product-col { padding: 0.9rem; }
.product-col + .product-col { border-left: 1px solid var(--line); }
.product-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.chan-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-sm);
}
.chan-row + .chan-row { margin-top: 2px; }
.chan-row:hover { background: var(--surface-2); }
.chan-ico {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--text);
  flex: none;
}
.chan-ico svg { width: 15px; height: 15px; }
.chan-name { font-size: 0.9rem; font-weight: 580; }
.chan-row .pill { margin-left: auto; }

.pf-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
}
.pf-row:last-child { border-bottom: 0; }
.pf-ico { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.pf-ok { color: var(--success); }
.pf-warn { color: var(--warning); }
.pf-block { color: var(--text-subtle); }
.pf-row .pf-text { color: var(--text-muted); }
.pf-row .pf-text b { color: var(--text); font-weight: 620; }

/* ---------- Channel capability strip ---------- */
.cap-band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.cap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.cap-head h2 { font-size: 1.25rem; font-weight: 640; letter-spacing: -0.01em; }
.cap-legend { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.cap-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.cap-card .chan-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.cap-card .chan-ico svg { width: 18px; height: 18px; }
.cap-meta { min-width: 0; }
.cap-meta .name { font-weight: 600; font-size: 0.95rem; }
.cap-meta .lim { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-subtle); }
.cap-card .pill { margin-left: auto; flex: none; }

/* ---------- Flow stepper ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.flow-card {
  position: relative;
  padding: 1.5rem 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.flow-num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.flow-card h3 { font-size: 1.05rem; font-weight: 640; margin-bottom: 0.4rem; }
.flow-card p { font-size: 0.92rem; color: var(--text-muted); }
.flow-card .flow-tag {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-subtle);
}

/* ---------- Feature split (Preflight) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-visual { order: -1; }
.feature-list { margin-top: 1.75rem; display: grid; gap: 1.1rem; }
.feature-item { display: flex; gap: 0.8rem; }
.feature-item .fi-ico {
  flex: none; width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-item .fi-ico svg { width: 17px; height: 17px; }
.feature-item h3 { font-size: 1rem; font-weight: 620; margin-bottom: 0.2rem; }
.feature-item p { font-size: 0.92rem; color: var(--text-muted); }

/* Preflight visual */
.pf-panel { padding: 0.4rem 1.1rem; }
.pf-panel .pf-row { padding: 0.85rem 0; font-size: 0.92rem; }
.pf-group-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-top: 0.9rem;
}

/* ---------- Approvals ---------- */
.approval-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Alternate orientation from the Preflight split for rhythm (visual left on desktop). */
@media (min-width: 941px) {
  .approval-wrap .split-visual { order: 1; }
  .approval-wrap .approval-copy { order: 2; }
}
.portal-card { overflow: hidden; }
.portal-top {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface-2);
}
.portal-url {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.portal-body { padding: 1.2rem; }
.portal-post {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface-2);
}
.portal-post .ph {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
  font-size: 0.85rem; color: var(--text-subtle);
}
.portal-post p { font-size: 0.95rem; }
.portal-actions { display: flex; gap: 0.6rem; margin-top: 1rem; }
.portal-state {
  margin-top: 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted);
}

/* ---------- Code / agents ---------- */
.agents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.code-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0d1117;
}
:root[data-theme="dark"] .code-card { background: #0a0c10; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .code-card { background: #0a0c10; }
}
.code-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-bar .label { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: #8a929d; }
.code-card pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: #c9d3df;
}
.code-card .c-prompt { color: #45c07a; }
.code-card .c-flag { color: #6ea8fe; }
.code-card .c-str { color: #d6a447; }
.code-card .c-out { color: #6b7480; }
.code-card .c-ok { color: #45c07a; }

.gov-list { display: grid; gap: 1.1rem; }
.gov-item { display: flex; gap: 0.8rem; }
.gov-item .fi-ico {
  flex: none; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
}
.gov-item .fi-ico svg { width: 17px; height: 17px; }
.gov-item h3 { font-size: 1rem; font-weight: 620; margin-bottom: 0.2rem; }
.gov-item p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Calendar / queue ---------- */
.queue-card { padding: 1.25rem; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}
.cal-col { min-width: 0; }
.cal-day {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}
.cal-slot {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  padding: 0.4rem 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.cal-slot .cs-ico { display: inline-flex; align-items: center; gap: 0.3rem; }
.cal-slot.is-scheduled { border-left-color: var(--accent); }
.cal-slot.is-published { border-left-color: var(--success); }
.cal-slot.is-native { border-left-color: var(--warning); }
.cal-slot.is-failed { border-left-color: var(--danger); }
.queue-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.queue-legend span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.lg-dot { width: 9px; height: 9px; border-radius: 2px; }
.lg-scheduled { background: var(--accent); }
.lg-published { background: var(--success); }
.lg-native { background: var(--warning); }
.lg-failed { background: var(--danger); }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.price-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-card h3 { font-size: 1.2rem; font-weight: 650; }
.price-amount { margin: 0.75rem 0 0.25rem; display: flex; align-items: baseline; gap: 0.35rem; }
.price-amount .num { font-size: 2.1rem; font-weight: 680; letter-spacing: -0.03em; font-family: var(--font-mono); }
.price-amount .per { font-size: 0.85rem; color: var(--text-subtle); }
.price-card .price-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.price-features { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.65rem; flex: 1; }
.price-features li { display: flex; gap: 0.55rem; font-size: 0.9rem; color: var(--text-muted); }
.price-features svg { flex: none; width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus { flex: none; width: 20px; height: 20px; color: var(--text-subtle); transition: transform 200ms var(--ease); }
.faq-item[open] summary .faq-plus { transform: rotate(45deg); color: var(--accent); }
.faq-item .faq-body { padding: 0 0.25rem 1.3rem; color: var(--text-muted); font-size: 0.96rem; max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 140% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 670; }
.cta-card p { margin: 1rem auto 0; max-width: 48ch; color: var(--text-muted); font-size: 1.05rem; }
.cta-card .hero-cta { justify-content: center; margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding-block: 3.5rem 2rem;
}
.footer h4 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-col li.soon { font-size: 0.92rem; color: var(--text-subtle); display: flex; align-items: center; gap: 0.5rem; }
.footer-col li.soon .tag { font-size: 0.66rem; font-family: var(--font-mono); padding: 0.05rem 0.35rem; border-radius: 999px; background: var(--surface-3); color: var(--text-subtle); }
.footer-brand p { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-muted); max-width: 34ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* ---------- Reveal motion ---------- */
/* Gated behind .js-ready so the page is fully visible if JS never runs (CSP blocks inline no-js scripts). */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
html.js-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.5rem 3.5rem; }
  .hero-visual { order: 2; }
  .split, .approval-wrap, .agents-grid { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 1rem 1.1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open .nav-link { padding: 0.7rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-col + .product-col { border-left: 0; border-top: 1px solid var(--line); }
  .cal-grid { grid-template-columns: repeat(7, minmax(40px, 1fr)); overflow-x: auto; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .cap-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-cta .btn { flex: 1; }
}

/* ---------- SEO guide pages ---------- */
.guide-hero { padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(1.5rem, 4vh, 2.5rem); }
.guide-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.guide-hero h1 {
  font-size: clamp(1.9rem, 3.3vw, 2.6rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  max-width: 20ch;
}
.guide-hero .guide-sub { margin-top: 1.1rem; max-width: 52ch; font-size: 1.1rem; color: var(--text-muted); }
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.facts-card { padding: 0.4rem 1.25rem; }
.fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.fact-row:last-child { border-bottom: 0; }
.fact-row .fk { color: var(--text-muted); }
.fact-row .fv { font-weight: 600; text-align: right; }
.fact-row .fv.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.code-lead { max-width: 760px; }
.guide-prose { max-width: 64ch; }
.guide-prose p { margin-bottom: 1rem; color: var(--text-muted); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 140ms var(--ease), transform 140ms var(--ease), box-shadow 140ms var(--ease);
}
.related-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.related-card .rc-title { font-weight: 620; font-size: 0.98rem; display: flex; align-items: center; gap: 0.5rem; }
.related-card .rc-title .chan-ico { width: 24px; height: 24px; }
.related-card .rc-desc { font-size: 0.86rem; color: var(--text-muted); flex: 1; }
.related-card .rc-arrow { color: var(--accent); }
@media (max-width: 940px) {
  .guide-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
