/* ── Inter font (self-hosted — no third-party requests; OFL-1.1, see /fonts/OFL.txt) ── */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
}

/* ── Custom properties ─────────────────────────────────────────────────── */
:root {
  --bg: #faf7f2;
  --bg-alt: #f2ede5;
  --bg-dark: #1a1816;
  --border: #e6dfd3;
  --text: #1a1816;
  --text-muted: #6b6359;
  --accent: #3d6b4f;
  --accent-hover: #2f5a3f;
  --ochre: #c4943d;
  --ochre-hover: #a87a2e;
  --green-bright: #4a805e;
  --red: #b8453a;
  --radius: 6px;
  --max-w: 720px;
  --max-w-wide: 880px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; }

::selection { background: rgba(61,107,79,0.15); color: var(--text); }

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: 2.8rem; font-weight: 300; }
h2 { font-size: 1.35rem; font-weight: 500; margin: 4rem 0 1.25rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 2rem 0 0.5rem; }
p { margin-bottom: 0.85rem; }

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
header {
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
nav {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.75rem;
}
.logo {
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.logo img {
  height: 1.9rem; width: auto; display: block;
  transition: opacity 0.2s;
}
.logo:hover img { opacity: 0.85; }

.product-tag {
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  background: rgba(61,107,79,0.07); border: 1px solid rgba(61,107,79,0.12);
  padding: 0.2em 0.6em; border-radius: 4px;
  white-space: nowrap;
}

.product-tag a { color: inherit; text-decoration: none; }

/* Product-page hero eyebrow */
.product-hero .product-tag { display: inline-block; margin-bottom: 0.75rem; }

.nav-links { display: flex; gap: 1.1rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.84rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 0.35em 0.9em !important; border-radius: 4px; font-size: 0.8rem !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle-label span { display: block; width: 20px; height: 2px; background: var(--text-muted); border-radius: 2px; }

/* ── Layout ────────────────────────────────────────────────────────────── */
main { max-width: var(--max-w); margin: 0 auto; padding: 4rem 1.75rem 5rem; }
main.wide { max-width: var(--max-w-wide); }

/* ── Section dividers ──────────────────────────────────────────────────── */
.section-divider {
  width: 48px; height: 1px; background: var(--ochre);
  margin: 3.5rem 0 1.5rem; opacity: 0.6;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 5rem 0 3rem; text-align: center; }
.hero-eyebrow {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.5rem;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}
.hero h1 {
  font-size: 3rem; font-weight: 300; line-height: 1.2;
  letter-spacing: -0.025em; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--ochre); }
.hero h1 .earth { color: var(--ochre); font-style: normal; }
.hero p:not(.hero-privacy):not(.hero-spine) {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.65;
  font-weight: 400;
}
.hero-spine {
  font-size: 1.05rem; color: var(--text);
  max-width: 620px; margin: 0 auto 1.5rem; line-height: 1.6;
}
.hero-spine strong { font-weight: 600; }
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-privacy {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.65;
  max-width: 620px; margin: 2.5rem auto 0;
  border: 1px solid var(--border); background: var(--bg-alt);
  border-radius: var(--radius); padding: 0.9rem 1.25rem;
}
.hero-privacy strong { color: var(--text); font-weight: 600; }
.product-hero .hero-privacy { margin-left: 0; }

/* ── Hero terminal ─────────────────────────────────────────────────────── */
.hero-terminal {
  max-width: 580px; margin: 2rem auto 0;
  background: #1a1816; border-radius: 10px; overflow: hidden;
  text-align: left; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.term-bar { background: #2a2826; padding: 10px 14px; display: flex; align-items: center; gap: 6px; }
.term-bar .term-dot { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.term-bar .term-dot:nth-child(1) { background: #e05555; }
.term-bar .term-dot:nth-child(2) { background: #d4a040; }
.term-bar .term-dot:nth-child(3) { background: #5a9e4a; }
.term-path { color: #8a857d; font-family: var(--font-mono); font-size: .78rem; margin-left: 8px; }
.term-body { padding: 16px 18px; font-family: var(--font-mono); font-size: .82rem; line-height: 1.6; }
.term-cmd { display: block; color: #e4e2df; }
.term-cmd::before { content: "$ "; color: #6b655d; }
.term-out { display: block; }
.term-out.block { color: #e05555; font-weight: 500; }
.term-out.allow { color: #5a9e4a; }
.term-out.muted { color: #8a857d; font-size: .75rem; }
.term-prompt { color: #e4e2df; margin-top: .25rem; }
.term-prompt::before { content: "$ "; color: #6b655d; }
.cursor {
  display: inline-block; width: 8px; height: 16px; background: #d4a040;
  vertical-align: text-bottom; animation: blink 1s step-end infinite; border-radius: 1px;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0 } }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.65rem 1.6rem;
  border-radius: var(--radius); font-weight: 500; font-size: 0.88rem;
  border: 1px solid var(--border); color: var(--text);
  transition: all 0.2s; cursor: pointer; line-height: 1.4;
}
.btn:hover { text-decoration: none; background: var(--bg-alt); border-color: var(--text-muted); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ochre { background: var(--ochre); color: #fff; border-color: var(--ochre); }
.btn-ochre:hover { background: var(--ochre-hover); border-color: var(--ochre-hover); color: #fff; }
.btn-ghost { border-color: transparent; color: var(--text-muted); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { background: transparent; border-color: transparent; color: var(--text); }
.btn-disabled { color: var(--text-muted); border-color: var(--border); opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-disabled:hover { background: transparent; border-color: var(--border); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--text-muted); transform: translateY(-1px); }
.card h3 { margin-top: 0; font-size: 0.95rem; font-weight: 600; }
.card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0; }
.card .more { display: block; margin-top: 0.7rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.card .card-product { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.35rem; }
.card .card-quote { font-size: 0.84rem; font-style: italic; margin-bottom: 0.5rem; }
.card .label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.75rem;
}

/* ── Feature grid (product pages) ───────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 1.5rem 0; }
.feature-item { padding: 1.25rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.feature-item h3 { margin-top: 0; font-size: 0.95rem; font-weight: 600; }
.feature-item p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0; }

/* ── Foundation strip ──────────────────────────────────────────────────── */
.foundation-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-alt); padding: 1.5rem 1.75rem; margin: 1.75rem 0;
}
.foundation-strip p { color: var(--text-muted); font-size: 0.9rem; margin: 0.35rem 0 0; line-height: 1.6; }
.foundation-strip .label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.foundation-strip .btn { flex-shrink: 0; }

/* ── Performance bar ───────────────────────────────────────────────────── */
.perf-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin: 1.5rem 0;
}
.perf-bar div {
  background: var(--bg-alt); padding: 1.25rem 1rem; text-align: center;
}
.perf-bar strong { display: block; font-size: 1.3rem; font-weight: 600; color: var(--green-bright); letter-spacing: -0.02em; margin-bottom: 0.15rem; }
.perf-bar span { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }

/* ── Feature list ──────────────────────────────────────────────────────── */
.feature-list { list-style: none; margin: 1.5rem 0; }
.feature-list li {
  padding: 0.65rem 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 1rem; align-items: baseline; font-size: 0.9rem;
}
.feature-list li .label { font-weight: 600; min-width: 150px; color: var(--text); font-size: 0.84rem; }
.feature-list li .desc { color: var(--text-muted); font-size: 0.86rem; }

/* ── Tables ────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: 0.88rem; }
thead th {
  font-weight: 600; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); text-align: left;
  padding: 0 0 0.75rem; border-bottom: 2px solid var(--border);
}
td { padding: 0.7rem 0; vertical-align: top; border-bottom: 1px solid var(--border); }
td:first-child {
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--text); padding-right: 1.5rem;
}
td:last-child { color: var(--text-muted); }

/* ── Code ──────────────────────────────────────────────────────────────── */
pre {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  overflow-x: auto; margin: 1rem 0; font-size: 0.8rem; line-height: 1.6;
}
code { font-family: var(--font-mono); font-size: 0.88em; }
pre code { font-size: 0.9em; }
:not(pre) > code {
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.85em;
}

/* ── Inverted / dark sections ──────────────────────────────────────────── */
.invert {
  background: var(--bg-dark); color: #d4d0ca;
  padding: 4rem 1.75rem; margin: 0 -1.75rem;
}
.invert h2, .invert h3 { color: #f0ede8; }
.invert p, .invert li { color: #b0aca5; }
.invert a { color: #7aaf8a; }
.invert a:hover { color: #9cc8a8; }
.invert .text-muted { color: #8a857d; }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-dark); color: #b0aca5;
  padding: 4rem 1.75rem 2rem; margin-top: 5rem;
  font-size: 0.84rem; line-height: 1.7;
}
.footer-grid {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-grid h4 {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: #f0ede8; margin-bottom: 1rem;
}
.footer-grid a { color: #8a857d; }
.footer-grid a:hover { color: #d4d0ca; text-decoration: none; }
.footer-grid p { margin-bottom: 0.5rem; }
.footer-bottom {
  max-width: var(--max-w-wide); margin: 3rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem; color: #6b655d;
}

/* ── Journal list ──────────────────────────────────────────────────────── */
.journal-list { list-style: none; margin: 2rem 0; }
.journal-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.journal-list .date {
  font-size: 0.78rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem;
}
.journal-list h3 { margin: 0 0 0.25rem; font-size: 1.15rem; font-weight: 500; }
.journal-list h3 a { color: var(--text); }
.journal-list h3 a:hover { color: var(--accent); text-decoration: none; }
.journal-list p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* ── Article ────────────────────────────────────────────────────────────── */
article header { background: none; border: none; position: static; backdrop-filter: none; }
/* Product pages carry their own hero heading — suppress the layout's duplicate h1. */
article:has(.product-hero) > header { display: none; }
/* Docs pages carry their own h1 in the body — suppress the layout's duplicate. */
article:has(.article-body h1) > header { display: none; }
article header h1 { margin-bottom: 0.25rem; }
article .subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; }
article .date {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 2rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.article-body { font-size: 1rem; line-height: 1.7; }
.article-body p { margin-bottom: 1.1rem; }
.article-body h2 { font-size: 1.3rem; margin: 3rem 0 1rem; }
.article-body h3 { font-size: 1.05rem; margin: 2rem 0 0.5rem; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.pricing-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  display: flex; flex-direction: column;
}
.pricing-card.featured { border-color: var(--accent); background: #fff; }
.pricing-card .name { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.25rem; }
.pricing-card .price { font-size: 2.2rem; font-weight: 600; margin: 0.75rem 0; letter-spacing: -0.02em; }
.pricing-card .price span { font-size: 0.88rem; font-weight: 400; color: var(--text-muted); }
.pricing-card .desc { color: var(--text-muted); font-size: 0.84rem; margin-bottom: 1.25rem; }
.pricing-card ul { text-align: left; list-style: none; margin: 0 0 1.5rem; flex: 1; font-size: 0.84rem; }
.pricing-card ul li { padding: 0.3rem 0; color: var(--text-muted); }
.pricing-card ul li::before { content: "\2713 "; color: var(--accent); font-weight: 700; }
.pricing-card .btn { margin-top: auto; }
.pricing-card .btn-primary { width: 100%; }
.pricing-card .note { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Fade-in animation ─────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.6s ease-out both;
}
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.3s; }

/* ── Product page ──────────────────────────────────────────────────────── */
.product-hero { padding: 3rem 0 2rem; }
.product-hero h1 { font-size: 2.4rem; margin-bottom: 0.75rem; }
.product-hero .tagline { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

.integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.integration-item {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  font-weight: 500; font-size: 0.88rem;
}

/* ── Nav: collapse to hamburger before links can overflow (7 menu items + Privacy + CTA) ── */
@media (max-width: 1000px) {
  .nav-toggle-label { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem; gap: 0.5rem;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  html { font-size: 16px; }
  .hero { padding: 3rem 0 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .product-hero h1 { font-size: 1.8rem; }
  main { padding: 2rem 1.25rem; }
  h1 { font-size: 1.8rem; }

  .nav-toggle-label { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem; gap: 0.5rem;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }

  .perf-bar { grid-template-columns: repeat(2, 1fr); }
  .foundation-strip { flex-direction: column; align-items: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid.two { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }

  table { font-size: 0.8rem; }
  td:first-child { white-space: normal; padding-right: 0.75rem; }
  .feature-list li { flex-direction: column; gap: 0.1rem; }
  .feature-list li .label { min-width: auto; }

  .hero-terminal { max-width: 100%; }
  .term-body { font-size: .72rem; padding: 12px; }
}

/* ── ellm-guardrail page: chapter separation (pricing / docs) ─────────── */
article:has(.perf-bar) .article-body h2 { margin-top: 4rem; }
article:has(.perf-bar) hr + h2#pricing,
article:has(.perf-bar) hr + h2#docs {
  font-size: 1.55rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
article:has(.perf-bar) .pricing-band {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.25rem;
  margin-top: 2rem;
}
article:has(.perf-bar) .pricing-band .pricing-card { background: #fff; }
article:has(.perf-bar) .pricing-card .price {
  padding-top: 0.9rem;
  margin: 0.9rem 0 1rem;
  border-top: 1px solid var(--border);
}

/* ── Products index page ───────────────────────────────────────────────── */
.status-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
  padding: 0.2em 0.7em; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted);
}
.status-pill.shipping { color: var(--accent); border-color: rgba(61,107,79,0.25); background: rgba(61,107,79,0.06); }
.status-pill.early { color: var(--ochre); border-color: rgba(196,148,61,0.3); background: rgba(196,148,61,0.07); }

.product-row {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-alt); padding: 2rem 1.75rem; margin: 1.5rem 0;
}
.product-row .row-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.product-row .row-name { font-family: var(--font-mono); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.product-row h2 { margin: 0.6rem 0 0.6rem; font-size: 1.45rem; }
.product-row h2 em { font-style: italic; color: var(--ochre); }
.product-row .row-def { color: var(--text-muted); font-size: 0.95rem; max-width: 640px; }
.spec-table { margin: 1.25rem 0 1.5rem; }
.spec-table td:first-child { width: 9.5rem; white-space: nowrap; }

.stack-diagram { margin: 1.5rem 0; }
.stack-diagram svg { display: block; width: 100%; height: auto; }
.stack-diagram text { font-family: var(--font-sans); }
.sd-box { fill: var(--bg-alt); stroke: var(--border); }
.sd-link { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.6; }
.sd-foundation { fill: var(--bg-dark); }
.sd-name { fill: var(--text); font-size: 15px; font-weight: 600; }
.sd-sub { fill: var(--text-muted); font-size: 11.5px; }
.sd-name-inv { fill: #f0ede8; font-size: 15px; font-weight: 600; }
.sd-sub-inv { fill: #8a857d; font-size: 11px; }

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

/* ── Products index: mobile ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .product-row { padding: 1.5rem 1.25rem; }
  .spec-table td:first-child { width: auto; }
}

/* ── Guided email forms (beta request + contact) ───────────────────────── */
.guided-form { max-width: 660px; margin: 1.5rem 0; }
.guided-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.guided-form .field { margin-bottom: 1rem; }
.guided-form label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 0.3rem; letter-spacing: 0.01em;
}
.guided-form label .opt { font-weight: 400; color: var(--text-muted); opacity: 0.75; }
.guided-form input, .guided-form select, .guided-form textarea {
  width: 100%; padding: 0.55em 0.75em; font: inherit; font-size: 0.92rem;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text);
}
.guided-form input:focus, .guided-form select:focus, .guided-form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg);
  box-shadow: 0 0 0 3px rgba(61,107,79,0.15);
}
.guided-form textarea { min-height: 7.5rem; resize: vertical; }
.guided-form .form-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.guided-form button.btn { cursor: pointer; }
.guided-form .form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.5; }
.guided-form .form-note a { color: var(--accent); }

/* Bot trap — never shown, never focusable, never announced. */
.guided-form .hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.guided-form .form-status { margin-top: 1rem; font-size: 0.88rem; line-height: 1.55; }
.guided-form .form-status:empty { display: none; }
.guided-form .form-status.is-ok,
.guided-form .form-status.is-warn {
  padding: 0.75rem 0.9rem; border-radius: var(--radius);
}
.guided-form .form-status.is-ok {
  background: rgba(74, 128, 94, 0.1); border: 1px solid var(--green-bright); color: var(--accent);
}
.guided-form .form-status.is-warn {
  background: rgba(196, 148, 61, 0.1); border: 1px solid var(--ochre); color: var(--text);
}
.guided-form .form-status p { margin: 0 0 0.6rem; }
.guided-form .form-fallback {
  margin: 0; padding: 0.7rem 0.8rem;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.guided-form input:disabled, .guided-form select:disabled,
.guided-form textarea:disabled, .guided-form button:disabled {
  opacity: 0.55; cursor: not-allowed;
}

@media (max-width: 700px) {
  .guided-form .form-row { grid-template-columns: 1fr; }
}

/* ── Demo page ─────────────────────────────────────────────────────────── */
/* The demo must never be mistaken for the console or for a live terminal.
   It reads as a recording: a banner that says so, transcripts instead of
   inputs, and exits that name their destination. No fake console chrome. */
.demo-banner {
  max-width: var(--max-w-wide); margin: 0 auto 1.5rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-left: 3px solid var(--ochre); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: 0.88rem; color: var(--text-muted);
  text-align: left;
}
.demo-banner strong { color: var(--text); }
.demo-banner p:last-child { margin-bottom: 0; }

.demo-term { max-width: 100%; margin: 1rem 0 0; }
.term-out.escalate { color: #d4a040; font-weight: 500; }
.term-out.info { color: #8a857d; }
.term-exit { display: block; color: #6b655d; font-size: 0.75rem; margin-top: 0.6rem; }

.demo-case { margin: 2.25rem 0; }
.demo-case h3 { margin: 0; }
.demo-why { font-size: 0.88rem; color: var(--text-muted); margin: 0.4rem 0 0; }

.verdict-key { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.verdict-key span { display: flex; align-items: center; gap: 0.45rem; }
.verdict-key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; font-style: normal; flex: none; }
.vk-deny { background: var(--red); }
.vk-esc { background: var(--ochre); }
.vk-allow { background: var(--accent); }

.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.path-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.path-card .label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.path-card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.path-card p { font-size: 0.86rem; color: var(--text-muted); flex: 1; margin-bottom: 0; }
.path-card .btn { margin-top: 1rem; align-self: flex-start; }

/* ── Interactive demo widget ───────────────────────────────────────────── */
/* Deliberately styled as part of the page, not as console chrome: no window
   bar, no fake sidebar, page background. It reads as one live control inside
   a walkthrough, which is what it is. */
.try-panel {
  max-width: var(--max-w-wide); margin: 1.5rem auto;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.try-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.try-input {
  flex: 1 1 320px; min-width: 0;
  font-family: var(--font-mono); font-size: 0.85rem;
  padding: 0.65rem 0.8rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; color: var(--text);
}
.try-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.try-button {
  padding: 0.65rem 1.4rem; border-radius: var(--radius); font-weight: 500;
  font-size: 0.88rem; border: 1px solid var(--accent); background: var(--accent);
  color: #fff; cursor: pointer; transition: background 0.2s;
}
.try-button:hover:not(:disabled) { background: var(--accent-hover); }
.try-button:disabled { opacity: 0.55; cursor: progress; }

.try-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.try-chip {
  font-family: var(--font-mono); font-size: 0.74rem;
  padding: 0.32rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--border); background: #fff;
  color: var(--text-muted); cursor: pointer; transition: all 0.15s;
}
.try-chip:hover { color: var(--text); border-color: var(--text-muted); }
.try-chip[data-expect="deny"]:hover { border-color: var(--red); color: var(--red); }
.try-chip[data-expect="escalate"]:hover { border-color: var(--ochre); color: var(--ochre-hover); }
.try-chip[data-expect="allow"]:hover { border-color: var(--accent); color: var(--accent); }

.try-result {
  margin-top: 1.1rem; padding: 1rem 1.1rem; background: #fff;
  border: 1px solid var(--border); border-left: 3px solid var(--border);
  border-radius: var(--radius);
}
.try-result.is-deny { border-left-color: var(--red); }
.try-result.is-escalate { border-left-color: var(--ochre); }
.try-result.is-allow { border-left-color: var(--accent); }
.try-verdict { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.v-pill {
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 999px; color: #fff;
}
.v-deny { background: var(--red); }
.v-escalate { background: var(--ochre); }
.v-allow { background: var(--accent); }
.try-echo { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); word-break: break-all; }
.try-reason { margin: 0.6rem 0 0; font-size: 0.9rem; }
.try-meta { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }
.try-msg { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.try-error { color: var(--red); }
.try-note { font-size: 0.82rem; color: var(--text-muted); margin: 0.9rem 0 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
