/* ─────────────────────────────────────────────────────────────
   IAM Orchestrator — marketing site
   Aesthetic: editorial-technical. Teal on warm white.
   Inter (body) · Fraunces (display) · JetBrains Mono (data)
   ───────────────────────────────────────────────────────────── */

@view-transition { navigation: auto; }

:root {
  /* Backgrounds */
  --bg:          #FFFCF7;
  --bg-elev:     #FFFFFF;
  --bg-sunken:   #F6F1E6;

  /* Text */
  --ink:         #131210;
  --ink-soft:    #54514A;
  --ink-faint:   #8F8B7E;

  /* Lines */
  --border:      #ECE7DC;

  /* Accent */
  --accent:      #0F7B6C;
  --accent-soft: #E8F2F0;
  --accent-hover: #0A6157;

  /* Semantic */
  --ok:          #2D7D5F;
  --warn:        #B8741F;
  --danger:      #B33A2E;

  /* Terminal sub-panel (stays dark even in light theme) */
  --mono-bg:  #1f1d1a;
  --mono-ink: #E6E2D6;

  /* Type */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;

  /* Shadows */
  --shadow-md: 0 2px 6px rgba(19, 18, 16, 0.06), 0 4px 12px rgba(19, 18, 16, 0.08);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Layout */
  --max: 1160px;
  --pad: clamp(1.25rem, 3vw, 1.5rem);
}

/* explicit light/dark color-scheme so native controls + scrollbars match */
:root { color-scheme: light; }

/* ── dark theme — warm dark token overrides ──────────────── */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:          #16140F;
  --bg-elev:     #1F1C16;
  --bg-sunken:   #100E0A;

  --ink:         #ECE7DC;
  --ink-soft:    #B0AB9E;
  --ink-faint:   #928E80;

  --border:      #2C2920;

  --accent:      #2BB6A3;
  --accent-soft: #15302C;
  --accent-hover: #43CDBA;

  --ok:          #4FB07F;
  --warn:        #D89642;
  --danger:      #E0594B;

  /* terminal stays the darkest element; nudge slightly below page bg so it
     reads as a recessed code well (a border is added in a later task). */
  --mono-bg:     #0E0C08;

  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.55);
}

/* No-JS fallback: if the inline resolver never runs, OS-dark users still get
   dark. Scoped to :root:not([data-theme]) so it never overrides an explicit
   resolved value. Mirrors the block above. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;

    --bg:          #16140F;
    --bg-elev:     #1F1C16;
    --bg-sunken:   #100E0A;

    --ink:         #ECE7DC;
    --ink-soft:    #B0AB9E;
    --ink-faint:   #928E80;

    --border:      #2C2920;

    --accent:      #2BB6A3;
    --accent-soft: #15302C;
    --accent-hover: #43CDBA;

    --ok:          #4FB07F;
    --warn:        #D89642;
    --danger:      #E0594B;

    --mono-bg:     #0E0C08;

    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.55);
  }
}

/* ── reset + base ────────────────────────────────────────── */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main, header, footer, section { position: relative; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

/* ── typography ──────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
}
h3 { font-size: 1.15rem; color: var(--ink); margin: 0 0 0.5rem; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

.italic { font-style: italic; }
.light  { font-weight: 300; }

/* ── utility classes ─────────────────────────────────────── */

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.mono  { font-family: var(--font-mono); font-size: 0.95em; letter-spacing: 0; }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
}

.center { text-align: center; }
.rule-top { border-top: 1px solid var(--border); }

/* ── section ─────────────────────────────────────────────── */

section {
  padding-block: clamp(4rem, 9vw, 6rem);
  border-top: 1px solid var(--border);
}
section:first-of-type { border-top: 0; }

/* ── nav ─────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 247, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .nav { background: rgba(22, 20, 15, 0.85); }

/* The dark-mode accent is bright; white text on it fails WCAG contrast.
   Use dark ink on every accent-filled control instead (≈7.3:1). */
:root[data-theme="dark"] .nav-cta,
:root[data-theme="dark"] .nav-cta:hover,
:root[data-theme="dark"] .btn-submit,
:root[data-theme="dark"] .tier.highlight::before,
:root[data-theme="dark"] .tier-switch button.active {
  color: var(--bg) !important;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink); font-weight: 600;
  font-size: 1rem;
}
.brand-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.brand-mark::before { content: "⟁"; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; font-size: 14px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; transition: color 150ms; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: white !important;
  padding: 0.55rem 0.95rem; border-radius: var(--r-sm);
  font-weight: 500; transition: background 150ms;
}
.nav-cta:hover { background: var(--accent-hover); color: white !important; }
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 150ms, border-color 150ms, background 150ms;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-faint); background: var(--bg-sunken); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--bg) !important;
  padding: 0.85rem 1.4rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500; font-size: 14.5px;
  border: 1px solid var(--ink);
  transition: transform 150ms, box-shadow 150ms;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--bg) !important; }
.btn-ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-sunken); color: var(--ink) !important; box-shadow: none; }
.arrow { transition: transform 150ms; }
.btn:hover .arrow { transform: translateX(2px); }
.btn-label { }

/* ── hero ────────────────────────────────────────────────── */

.hero { padding-block: clamp(3rem, 8vw, 5rem) clamp(4rem, 9vw, 6rem); }
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.hero h1 em { color: var(--accent); }
.hero .lede { max-width: 540px; margin-top: 0; }

.hero-ctas { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-meta > div { max-width: 180px; }
.hero-meta .num {
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink);
}
.hero-meta .lbl {
  display: block; margin-top: 0.3rem;
  font-size: 12px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── terminal (dark sub-panel preserved) ────────────────── */

.terminal {
  background: var(--mono-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  color: var(--mono-ink);
  overflow: hidden;
  position: relative;
}
:root[data-theme="dark"] .terminal { border: 1px solid var(--border); }
.term-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #27241f;
  border-bottom: 1px solid #2f2c27;
  font-size: 12px;
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3833; }
.term-dot.on { background: var(--ok); box-shadow: 0 0 6px rgba(45,125,95,0.5); }
.term-title { color: #888379; margin-left: 0.5rem; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.term-status {
  margin-left: auto; color: var(--ok);
  font-size: 11px; display: flex; align-items: center; gap: 0.4rem;
}
.term-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.term-body {
  padding: 1.2rem 1.3rem 1.5rem;
  min-height: 440px;
  max-height: 520px;
  overflow-y: auto;
  color: var(--mono-ink);
  font-size: 13px;
  line-height: 1.7;
}

.line { animation: line-in 0.35s ease; white-space: pre-wrap; }
@keyframes line-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.line .t     { color: #888379; }
.line .k     { color: #c4b777; }
.line .ok    { color: var(--ok); }
.line .w     { color: #e07050; }
.line .c     { color: #88b3c9; }
.line .d     { color: #b0aba0; }
.line .faint { color: #5a5852; }

.cursor {
  display: inline-block; width: 7px; height: 14px;
  background: var(--mono-ink); vertical-align: -2px; margin-left: 4px;
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.term-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 1rem;
  border-top: 1px solid #2f2c27;
  font-size: 11px; color: #888379;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.replay {
  padding: 0.3rem 0.65rem;
  border: 1px solid #3a3833;
  border-radius: 3px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--mono-ink); letter-spacing: 0.1em;
  transition: all 0.15s ease;
}
.replay:hover { color: var(--mono-ink); background: #2a2823; }

/* ── problem section ─────────────────────────────────────── */

.problem { }
.problem-head {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: end; margin-bottom: 3rem;
}
@media (max-width: 860px) { .problem-head { grid-template-columns: 1fr; } }
.problem h2 em { color: var(--accent); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem 1.25rem;
  position: relative;
}
.stat .tag {
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-faint); text-transform: uppercase;
  font-family: var(--font-mono);
}
.stat .big {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink); margin: 0.5rem 0 0.35rem;
}
.stat .big small { font-size: 0.55em; color: var(--ink-soft); font-weight: 400; }
.stat .sub { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ── pipeline section ────────────────────────────────────── */

.pipeline h2 { max-width: 780px; margin-bottom: 3rem; }
.pipeline h2 em { color: var(--accent); }

.stages {
  display: grid; gap: 0;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elev);
}
@media (max-width: 960px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .stages { grid-template-columns: 1fr; } }

.stage {
  padding: 1.75rem 1.5rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.stage:last-child { border-right: 0; }
@media (max-width: 960px) {
  .stage:nth-child(2n) { border-right: 0; }
  .stage { border-bottom: 1px solid var(--border); }
  .stage:nth-last-child(-n+2) { border-bottom: 0; }
}

.stage-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em;
  margin-bottom: 1rem; text-transform: uppercase;
}
.stage h3 {
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.stage h3 em { color: var(--accent); }
.stage p {
  font-size: 13.5px; color: var(--ink-soft);
  line-height: 1.6; margin: 0;
}
.stage .tech {
  margin-top: 1rem; padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem;
}

/* ── savings section ─────────────────────────────────────── */

.savings h2 em { color: var(--accent); }
.savings .lede { margin-top: 1.25rem; }

.savings-grid {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  align-items: start;
}
@media (max-width: 960px) { .savings-grid { grid-template-columns: 1fr; } }

.savings-total {
  margin-top: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem 1.7rem;
  background: var(--bg-elev);
}
.savings-total .num {
  font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.savings-total .num small { font-size: 0.5em; color: var(--ink-soft); font-weight: 400; margin-left: 0.3rem; }
.savings-total .caption {
  font-size: 13px; color: var(--ink-soft); margin-top: 0.35rem;
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}
.license-table th {
  text-align: left;
  padding: 0.7rem 0.85rem;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid var(--border); font-weight: 500;
}
.license-table th:last-child { text-align: right; }
.license-table td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.license-table td:last-child { text-align: right; }
.license-table tr.sum td {
  border-bottom: 0; border-top: 2px solid var(--ink);
  font-weight: 600; color: var(--ink); padding-top: 1rem;
}

.chip {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 4px; font-weight: 500;
}

/* ── safety section ──────────────────────────────────────── */

.safety .lede { max-width: 600px; margin-top: 1.25rem; }
.safety h2 em { color: var(--accent); }

.safety-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}
@media (max-width: 860px) { .safety-grid { grid-template-columns: 1fr; } }

.safety-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem 1.5rem 2rem;
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.safety-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.safety-card .icon {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.85rem;
}
.safety-card h4 {
  font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.safety-card p {
  font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.6;
}

/* ── integrations section ────────────────────────────────── */

.integrations .lede { max-width: 560px; margin-top: 1.25rem; }
.integrations h2 em { color: var(--accent); }

.integ-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 860px) { .integ-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px)  { .integ-grid { grid-template-columns: repeat(2, 1fr); } }

.integ {
  padding: 1.75rem 1rem; text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 500; font-size: 0.95rem; color: var(--ink);
  transition: background 150ms, color 150ms;
}
.integ:hover { background: var(--accent-soft); color: var(--accent); }
.integ .cat {
  display: block;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-faint); letter-spacing: 0.12em;
  text-transform: uppercase; margin-top: 0.3rem; font-weight: 400;
}

/* ── cta section ─────────────────────────────────────────── */

.cta-block {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--bg-sunken);
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 860px) { .cta-block { grid-template-columns: 1fr; } }

.cta-block h2 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.cta-block h2 em { color: var(--accent); }
.cta-block .lede { margin-top: 1rem; max-width: 500px; }

.cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) { .cta-actions { justify-content: flex-start; } }

/* ── waitlist form ─────────────────────────────────────────── */

.cta-form-wrap { display: flex; justify-content: flex-end; }
@media (max-width: 860px) { .cta-form-wrap { justify-content: flex-start; } }

.waitlist-form {
  display: flex; flex-direction: column;
  gap: 1rem; width: 100%; max-width: 420px;
}
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label {
  font-size: 12px; font-weight: 500; color: var(--ink);
  letter-spacing: 0.02em;
}
.form-hint { color: var(--ink-faint); font-weight: 400; font-size: 12px; }

.waitlist-form input,
.waitlist-form textarea {
  font: inherit; font-size: 14px;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.85rem;
  transition: border-color 150ms, box-shadow 150ms;
  width: 100%;
}
.waitlist-form textarea {
  font-family: var(--font-mono); font-size: 13px;
  resize: vertical; min-height: 2.6rem;
}
.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder { color: var(--ink-faint); }

.waitlist-form input:focus,
.waitlist-form textarea:focus {
  outline: 2px solid transparent;
  outline-offset: -2px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,123,108,0.12);
}

@media (forced-colors: active) {
  .waitlist-form input:focus,
  .waitlist-form textarea:focus {
    outline: 2px solid Highlight;
  }
}
.waitlist-form input:user-invalid,
.waitlist-form textarea:user-invalid { border-color: var(--danger); }

.btn-submit {
  background: var(--accent); color: white !important;
  border-color: var(--accent);
  align-self: flex-start; margin-top: 0.25rem;
}
.btn-submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-submit[disabled] { opacity: 0.55; cursor: progress; }

.form-status {
  font-family: var(--font-mono); font-size: 12px;
  margin: 0; min-height: 1em; color: var(--ink-soft);
}
.form-status[data-state="error"]   { color: var(--danger); }
.form-status[data-state="success"] { color: var(--ok); }
/* legacy class selectors kept for parity */
.form-status.is-error   { color: var(--danger); }
.form-status.is-success { color: var(--ok); }

.form-fineprint { font-size: 12px; color: var(--ink-faint); margin: 0; line-height: 1.5; }

/* ── footer ──────────────────────────────────────────────── */

footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 2rem;
  margin-top: 3rem;
  font-size: 13px; color: var(--ink-soft);
}
.foot-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.3fr repeat(3, 1fr);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .foot-grid { grid-template-columns: 1fr; } }

.foot-col h5 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 1rem; font-weight: 500;
}
.foot-col ul  { list-style: none; padding: 0; margin: 0; }
.foot-col li  { margin-bottom: 0.5rem; }
.foot-col a   { color: var(--ink-soft); }
.foot-col a:hover { color: var(--ink); }

.foot-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase;
  flex-wrap: wrap; gap: 1rem;
}

/* ─────────────────────────────────────────────────────────────
   PRICING PAGE
   ───────────────────────────────────────────────────────────── */

.pricing-hero { padding-block: clamp(4rem, 9vw, 7rem) clamp(2rem, 5vw, 4rem); }
.pricing-hero h1 { max-width: 900px; }
.pricing-hero h1 em { color: var(--accent); }
.pricing-hero .lede { max-width: 620px; font-size: 1.15rem; margin-top: 1.75rem; }

/* ── tier grid ───────────────────────────────────────────── */

.tier-grid {
  margin-top: clamp(3rem, 6vw, 4rem);
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) { .tier-grid { grid-template-columns: 1fr; } }

.tier {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  background: var(--bg-elev);
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.tier:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tier.highlight {
  border-color: var(--accent);
  background: linear-gradient(
    180deg,
    rgba(15, 123, 108, 0.05) 0%,
    var(--bg-elev) 55%
  );
}
.tier.highlight::before {
  content: "Most teams pick this";
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  padding: 4px 10px; border-radius: 3px;
  white-space: nowrap;
}

.tier-name {
  font-family: var(--font-serif); font-size: 1.5rem;
  font-weight: 500; letter-spacing: -0.01em;
}
.tier-blurb { font-size: 13.5px; color: var(--ink-soft); margin-top: 0.4rem; }

.tier-price {
  display: flex; align-items: baseline; gap: 0.4rem;
  margin-top: 1.7rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.tier-price .dollar {
  font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--ink-soft); letter-spacing: 0;
}
.tier-price .n {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 3.2rem; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
}
.tier-price .unit {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--ink-soft); letter-spacing: 0.02em;
}
.tier.custom .tier-price .n { font-size: 2.2rem; }

.tier ul {
  list-style: none; padding: 0;
  margin: 1.5rem 0; flex: 1; font-size: 13.5px;
}
.tier li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: var(--ink); line-height: 1.5;
}
.tier li::before {
  content: "→";
  position: absolute; left: 0; top: 0.4rem;
  color: var(--accent);
  font-family: var(--font-mono); font-size: 13px;
}
.tier li.soon { color: var(--ink-soft); }
.tier li.soon::after {
  content: "soon";
  margin-left: 0.5rem;
  padding: 1px 6px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  border-radius: 2px; vertical-align: 2px;
}

.tier .btn { width: 100%; justify-content: center; }
.tier .note {
  margin-top: 0.9rem; text-align: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.05em;
}

/* ── calculator ──────────────────────────────────────────── */

.calc {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elev);
}
.calc-head {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 1rem;
}
.calc-head h3 { font-size: 1.35rem; font-weight: 600; }
.calc-head h3 em { color: var(--accent); }
.calc-head .label { color: var(--ink-faint); }

.calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
@media (max-width: 820px) { .calc-body { grid-template-columns: 1fr; } }

.calc-inputs {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2rem;
}
@media (max-width: 820px) {
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--border); }
}

.calc-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.9rem;
}
.calc-field label .val {
  font-family: var(--font-serif); font-size: 1.55rem;
  font-weight: 500; color: var(--ink);
  letter-spacing: -0.02em; text-transform: none;
}
.calc-field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px;
  background: var(--border);
  outline: none; cursor: pointer;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,123,108,0.18);
  cursor: pointer; transition: box-shadow 200ms;
}
.calc-field input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(15,123,108,0.18);
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 0;
  box-shadow: 0 0 0 3px rgba(15,123,108,0.18);
  cursor: pointer;
}
.calc-field .hint {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); margin-top: 0.6rem;
  display: flex; justify-content: space-between;
}

.tier-switch {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden;
}
.tier-switch button {
  padding: 0.8rem 1rem;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  transition: all 200ms;
  border-right: 1px solid var(--border);
}
.tier-switch button:last-child { border-right: 0; }
.tier-switch button.active {
  background: var(--accent); color: white;
}

.calc-output {
  padding: 2rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  align-content: start;
}
.calc-output .cell { }
.calc-output .ck {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.5rem;
}
.calc-output .cv {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
}
.calc-output .cv.highlight { color: var(--accent); }
.calc-output .cv.signal    { color: var(--ok); }
.calc-output .cv small {
  display: block; margin-top: 0.4rem;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft); font-weight: 400; letter-spacing: 0.05em;
}
.calc-output .verdict {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--ink-soft); line-height: 1.55;
}
.calc-output .verdict strong { color: var(--accent); font-weight: 600; }

/* ── comparison table ────────────────────────────────────── */

.compare {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  overflow-x: auto;
}
.compare table {
  width: 100%; min-width: 720px;
  border-collapse: collapse; font-size: 13.5px;
}
.compare th, .compare td {
  padding: 1rem 1.2rem; text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-serif); font-size: 1.15rem;
  font-weight: 500; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}
.compare thead th:first-child {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
}
.compare td:first-child { color: var(--ink-soft); font-size: 13.5px; width: 32%; }
.compare .y   { color: var(--ok); }
.compare .n   { color: var(--ink-faint); }
.compare .amb { color: var(--warn); }

/* ── faq ─────────────────────────────────────────────────── */

.faq { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.faq h2 em { color: var(--accent); }

.faq-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.35rem;
}
.faq-item summary {
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; color: var(--ink);
  transition: color 150ms;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: "+"; color: var(--accent);
  font-family: var(--font-mono); font-size: 1.35rem; font-weight: 400;
  transition: transform 200ms; flex-shrink: 0; margin-left: 1rem;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 1rem 0 0; color: var(--ink-soft);
  font-size: 14.5px; line-height: 1.65; max-width: 700px;
}
.faq-item p a { color: var(--accent); border-bottom: 1px dashed var(--accent); }
.faq-item p em { color: var(--ink); }

/* ── misc ────────────────────────────────────────────────── */

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Pillar cards (homepage gateway) ─────────────────── */
.pillars { padding: 5rem 0 3rem; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar {
  display: flex; flex-direction: column;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.75rem;
  text-decoration: none; color: var(--ink);
  transition: transform 150ms, box-shadow 150ms, border-color 150ms;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.pillar-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.pillar h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.pillar p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; flex: 1; }
.pillar-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1.25rem; color: var(--accent);
  font-size: 14px; font-weight: 500;
}

/* ── Integrations strip ──────────────────────────────── */

@media (max-width: 880px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ── Animation: scroll reveal ──────────────────────────
   Use a keyframe animation rather than a transition so the effect always
   plays its full duration regardless of whether the initial opacity:0
   state was painted before the .is-visible class was added.
*/
.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-visible {
  animation: reveal-up 700ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cross-document view transitions ───────────────────
   Boost the default 250ms cross-fade to something visually noticeable.
   Native @view-transition at the top of the file enables this; here we
   just style the pseudo-elements the browser generates per navigation.
*/
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 450ms;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
}
::view-transition-old(root) {
  animation-name: vt-fade-out;
}
::view-transition-new(root) {
  animation-name: vt-fade-in;
}
@keyframes vt-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Code block (used on /how-it-works) ──────────────── */
.code-block {
  background: var(--mono-bg);
  color: var(--mono-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-md);
  overflow-x: auto;
  max-width: 760px;
}
.code-block code { color: inherit; }

/* ── Integration rows (used on /integrations) ───────── */
.integ-rows {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
}
.integ-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 2fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.integ-row:last-child { border-bottom: none; }
.integ-row .integ-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.integ-row .integ-cat { color: var(--ink-faint); font-size: 13px; }
.integ-row .integ-actions { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.integ-row .integ-status {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 4px;
  white-space: nowrap;
}
.status-live    { background: var(--accent-soft); color: var(--accent); }
.status-beta    { background: #FCEFE4; color: var(--warn); }
.status-planned { background: var(--bg-sunken); color: var(--ink-faint); }
:root[data-theme="dark"] .status-beta { background: #3A2A18; color: var(--warn); }

@media (max-width: 720px) {
  .integ-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .integ-row .integ-status { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
  ::view-transition-group(*),
  ::view-transition-image-pair(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ── interactive demo (/demo) ────────────────────────────── */

.demo-hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.demo-hero h1 { margin: 0 0 1.25rem; }

.demo-badges { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.5rem 0 0; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em;
  padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--ink-soft); background: var(--bg-elev);
}
.demo-badge[data-badge="local"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }
.demo-badge[data-badge="sim"]   { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); }

/* the input, framed as the inbound message that triggers everything */
.demo-chat {
  margin-top: 1.75rem; border: 1px solid var(--border);
  border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.demo-chat-head {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--bg-sunken);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint);
}
.demo-chat-head .demo-channel { color: var(--accent); font-weight: 500; }
.demo-chat-head .demo-channel::before { content: "#"; opacity: 0.55; }
.demo-chat-body { padding: 1.1rem 1.1rem 1.2rem; }
.demo-input {
  width: 100%; padding: 0.9rem 1rem; resize: vertical;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
}
.demo-input::placeholder { color: var(--ink-faint); }
.demo-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.demo-chat-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.demo-presets { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.demo-presets::before {
  content: "try"; margin-right: 0.1rem;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
}
.demo-chip {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--ink-soft); background: var(--bg); transition: color 150ms, border-color 150ms, transform 150ms;
}
.demo-chip:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.demo-run { white-space: nowrap; }
.demo-model-state {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 1rem 0 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink-faint);
}
.demo-model-state::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint);
  animation: pulse 1.8s ease-in-out infinite; flex-shrink: 0;
}
.demo-model-state[data-state="ready"] { color: var(--ok); }
.demo-model-state[data-state="ready"]::before { background: var(--ok); animation: none; }
.demo-model-state[data-state="error"]::before { animation: none; }

.demo-stage-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.25rem, 4vw, 2.25rem); align-items: start; }
@media (max-width: 860px) { .demo-stage-grid { grid-template-columns: 1fr; } }

/* the read — parsed intent as a receipt card */
.demo-extract { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-elev); position: sticky; top: 80px; overflow: hidden; }
.demo-extract > h3 { padding: 0.8rem 1.1rem; margin: 0; border-bottom: 1px solid var(--border); background: var(--bg-sunken); color: var(--ink-soft); }
.demo-kv { margin: 0; padding: 0.3rem 1.1rem 0.6rem; display: grid; }
.demo-kv div { display: grid; grid-template-columns: 64px 1fr; gap: 0.85rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.demo-kv div:last-child { border-bottom: 0; }
.demo-kv dt { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin: 0; }
.demo-kv dd { margin: 0; font-size: 15px; color: var(--ink); font-weight: 500; }

.demo-risk { margin: 0; padding: 1rem 1.1rem 1.2rem; border-top: 1px solid var(--border); background: var(--bg-sunken); }
.demo-risk-head { display: flex; justify-content: space-between; align-items: baseline; }
.demo-risk-head .label { color: var(--ink-faint); }
.demo-risk-pct { font-family: var(--font-mono); font-weight: 600; font-size: 18px; color: var(--ink); }
.demo-risk-track { height: 6px; border-radius: 999px; background: var(--border); margin: 0.6rem 0 0.5rem; overflow: hidden; }
.demo-risk-fill { height: 100%; width: 0; border-radius: 999px; background: var(--ok); transition: width 700ms cubic-bezier(.22,.61,.36,1), background 300ms; }
.demo-risk-bucket { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.demo-risk-bucket[data-bucket="LOW"]    { color: var(--ok); }
.demo-risk-bucket[data-bucket="MEDIUM"] { color: var(--warn); }
.demo-risk-bucket[data-bucket="HIGH"]   { color: var(--danger); }

/* the run — pipeline as a status log with node markers */
.demo-stages { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 12.5px; }
.demo-stages li {
  display: flex; align-items: baseline; gap: 0.7rem; padding: 0.5rem 0.2rem;
  opacity: 0; transform: translateY(5px); transition: opacity 280ms ease, transform 280ms ease;
}
.demo-stages li.is-in { opacity: 1; transform: translateY(0); }
.demo-stages li .st-icon {
  flex-shrink: 0; align-self: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border); color: var(--ink-faint);
  display: grid; place-items: center; font-size: 9px; line-height: 1;
}
.demo-stages li .st-label { color: var(--ink); }
.demo-stages li .st-detail { color: var(--ink-faint); margin-left: auto; padding-left: 1rem; font-size: 11px; }
.demo-stages li.is-sub { padding-left: 1.8rem; font-size: 12px; }
.demo-stages li.is-sub .st-icon { width: 11px; height: 11px; }
.demo-stages li[data-state="ok"]   .st-icon { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.demo-stages li[data-state="run"]  .st-icon { color: var(--accent); border-color: var(--accent); }
.demo-stages li[data-state="hold"] .st-icon { color: var(--warn); border-color: var(--warn); }
.demo-stages li[data-state="hold"] .st-label { color: var(--warn); }
.demo-stages li[data-state="deny"] .st-icon { color: var(--danger); border-color: var(--danger); }
.demo-stages li[data-state="deny"] .st-label { color: var(--danger); }

.demo-cta { margin-top: 1.75rem; padding: 1.25rem 1.4rem; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: var(--r-md); background: var(--accent-soft); }
.demo-cta p { margin: 0 0 0.9rem; color: var(--ink); font-size: 14.5px; line-height: 1.5; }

/* ── home hero "try it live" teaser ─────────────────────── */

.demo-teaser {
  display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.85rem;
  padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-elev); transition: border-color 150ms, transform 150ms;
  grid-column: 2;
}
.demo-teaser:hover { border-color: var(--accent); transform: translateY(-1px); }
.demo-teaser span { font-size: 12px; color: var(--ink-faint); }
.demo-teaser strong { font-size: 14px; color: var(--accent); font-weight: 600; }
@media (max-width: 980px) { .demo-teaser { grid-column: 1; } }
