/* ScriptBees Enterprise AI — site stylesheet
   Palette mirrors the Agent Control Plane / GCC-in-a-Box operator consoles. */

/* Design tokens — captured from the ScriptBees enterprise site: near-black
   canvas with a faint grid, neon-green accent, white headlines, monospace
   uppercase labels. Dark is the default; light is an optional toggle. */
:root {
  --bg: #07090d;
  --bg-elev: #0c1015;
  --bg-soft: #10151c;
  --fg: #f4f6f8;
  --fg-muted: #9aa5b1;
  --border: #1e252e;
  --border-strong: #2a333e;
  --primary: #22e57c;
  --primary-strong: #5cff9f;
  --primary-soft: rgba(34, 229, 124, 0.12);
  --accent: #22e57c;
  --success: #22e57c;
  --warning: #f5b342;
  --danger: #ff5a5a;
  --code-bg: #05070a;
  --code-fg: #d7dde5;
  --grid: rgba(255, 255, 255, 0.035);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1200px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f6f8fa;
  --bg-elev: #ffffff;
  --bg-soft: #eef1f5;
  --fg: #0b0f14;
  --fg-muted: #5b6673;
  --border: #dfe4ea;
  --border-strong: #c9d1da;
  --primary: #0f9d58;
  --primary-strong: #0b7f47;
  --primary-soft: rgba(15, 157, 88, 0.1);
  --accent: #0f9d58;
  --success: #0f9d58;
  --warning: #b87500;
  --danger: #d23f3f;
  --code-bg: #0b0f14;
  --code-fg: #d7dde5;
  --grid: rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 2px rgba(11, 15, 20, 0.06), 0 8px 24px rgba(11, 15, 20, 0.06);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 750;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
code,
pre {
  font-family: var(--mono);
  font-size: 0.86em;
}
pre {
  max-width: 100%;
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  overflow: auto;
  line-height: 1.5;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}

/* Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
section.tight {
  padding: clamp(2rem, 4vw, 3rem) 0;
}
section.alt {
  background: var(--bg-soft);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 62ch;
}
.section-head {
  max-width: 760px;
  margin-bottom: 2.25rem;
}
.center {
  text-align: center;
}
.center .section-head,
.center .lede {
  margin-left: auto;
  margin-right: auto;
}
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #6d7ff0);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
}
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: var(--bg-soft);
  text-decoration: none;
}
.nav-links a[aria-current='page'] {
  color: var(--primary);
  font-weight: 600;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--fg);
}
@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 16px 1rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 0.8rem 0.9rem;
  }
  .nav-actions .btn-secondary {
    display: none;
  }
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-strong);
}
.btn-secondary {
  background: var(--bg-elev);
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(1200px 500px at 15% -10%, var(--primary-soft), transparent 60%),
    radial-gradient(800px 400px at 95% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  margin-bottom: 1rem;
}
.hero .lede {
  font-size: 1.2rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.chip.primary {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}
.chip.ok {
  color: var(--success);
}
.chip.warn {
  color: var(--warning);
}
.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Cards ----------------------------------------------------------------- */
.card {
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 0.25rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}
.card-link {
  display: block;
  color: inherit;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.card-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--primary);
}
.card .more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}
.product-card {
  position: relative;
  padding: 2rem;
}
.product-card .eyebrow {
  margin-bottom: 0.4rem;
}
.product-card h3 {
  font-size: 1.5rem;
}
.product-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--fg-muted);
}
.product-card li {
  margin-bottom: 0.35rem;
}
.muted {
  color: var(--fg-muted);
}
.small {
  font-size: 0.9rem;
}

/* Stats ----------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.stat .num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
}
.stat .label {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Pipeline (execution path) --------------------------------------------- */
.pipeline {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .pipeline {
    grid-template-columns: 1fr;
  }
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.steps button {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.steps button:hover {
  border-color: var(--primary);
}
.steps button[aria-selected='true'] {
  border-color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}
.steps .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex: none;
}
.step-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 240px;
}
.step-panel h3 {
  margin-top: 0;
}
.step-panel .outcome {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-soft);
  margin-top: 0.5rem;
}

/* Policy simulator ------------------------------------------------------ */
.sim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .sim {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.field select,
.field input,
.field textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.field input[type='range'] {
  padding: 0;
  accent-color: var(--primary);
}
.field .hint {
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.decision {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.decision .verdict {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.decision.allow .verdict {
  color: var(--success);
}
.decision.deny .verdict {
  color: var(--danger);
}
.decision.approval .verdict {
  color: var(--warning);
}
.decision ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--fg-muted);
  font-size: 0.93rem;
}
.decision ol li {
  margin-bottom: 0.3rem;
}
.decision .trail {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  white-space: pre-wrap;
}

/* Tabs ------------------------------------------------------------------ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.tabs button {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  cursor: pointer;
}
.tabs button[aria-selected='true'] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tab-panel[hidden] {
  display: none;
}
.agent-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .agent-panel {
    grid-template-columns: 1fr;
  }
}
.agent-panel .card ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
}
.callout {
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1rem;
}
.callout strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* Timeline / launch steps ------------------------------------------------ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: t;
}
@media (max-width: 900px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}
.timeline li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  counter-increment: t;
  font-size: 0.92rem;
}
.timeline li::before {
  content: counter(t, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.timeline li strong {
  display: block;
  margin-bottom: 0.2rem;
}
.timeline li span {
  color: var(--fg-muted);
}

/* Checklists / guarantees ---------------------------------------------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.6rem;
  align-items: start;
}
.checklist .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 2px;
}
.checklist strong {
  display: block;
}
.checklist span {
  color: var(--fg-muted);
  font-size: 0.93rem;
}

/* Status table ---------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
th,
td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-soft);
}
tr:last-child td {
  border-bottom: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status.built {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
}
.status.partial {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  color: var(--warning);
}
.status.planned {
  background: var(--bg-soft);
  color: var(--fg-muted);
}

/* Fit finder / readiness ------------------------------------------------ */
.quiz {
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.quiz .q {
  margin-bottom: 1.25rem;
}
.quiz .q p {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  background: var(--bg);
}
.options label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.options input {
  accent-color: var(--primary);
}
.result {
  margin-top: 1.5rem;
  border-top: 1px dashed var(--border);
  padding-top: 1.25rem;
}
.result[hidden] {
  display: none;
}
.result h3 {
  margin-top: 0;
}
.progress {
  height: 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0;
  transition: width 0.4s ease;
}

/* FAQ ------------------------------------------------------------------- */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  padding: 0 1.1rem;
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--primary);
  font-weight: 700;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  color: var(--fg-muted);
  padding-bottom: 0.9rem;
}

/* Contact / form -------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 1rem;
}
@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--fg);
}
.form-status[hidden] {
  display: none;
}

/* CTA band -------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #5a6ee0 60%, #7d8cf3 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
@media (max-width: 860px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-strong) !important;
}
.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.cta-band .btn-row {
  justify-content: flex-end;
}
@media (max-width: 860px) {
  .cta-band .btn-row {
    justify-content: flex-start;
  }
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--fg-muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.site-footer h4 {
  color: var(--fg);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.4rem;
}
.site-footer a {
  color: var(--fg-muted);
}
.site-footer a:hover {
  color: var(--primary);
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}

/* Architecture diagram -------------------------------------------------- */
.arch {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}
@media (max-width: 760px) {
  .arch {
    grid-template-columns: 1fr;
  }
}
.arch .layer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--bg-elev);
}
.arch .layer.wide {
  grid-column: 1 / -1;
  background: var(--primary-soft);
  border-color: transparent;
}
.arch .layer h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}
.arch .layer p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.arch .layer .tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}

/* Assistant widget ------------------------------------------------------ */
.assist-launch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(59, 79, 184, 0.4);
  cursor: pointer;
}
.assist {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: min(400px, calc(100vw - 36px));
  max-height: min(600px, calc(100vh - 110px));
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.assist[hidden] {
  display: none;
}
.assist header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.assist header strong {
  font-size: 0.95rem;
}
.assist header button {
  background: none;
  border: 0;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--fg-muted);
}
.assist .log {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.93rem;
}
.assist .msg {
  max-width: 88%;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  line-height: 1.45;
}
.assist .msg.bot {
  background: var(--bg-soft);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.assist .msg.user {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.assist .msg a {
  font-weight: 600;
}
.assist .suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
}
.assist .suggest button {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.assist .suggest button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.assist form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}
.assist form input {
  flex: 1;
  font: inherit;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
}

/* Utility --------------------------------------------------------------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.kicker-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.kicker-list li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
.kicker-list li strong {
  display: block;
}
.kicker-list li span {
  color: var(--fg-muted);
  font-size: 0.93rem;
}
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Mobile optimisation ---------------------------------------------------- */
.btn,
.tabs button,
.options label,
.steps button,
.nav-links a,
.faq summary {
  min-height: 44px;
}
.nav-actions .btn-sm {
  min-height: 40px;
}
.table-hint {
  display: none;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
}
.sticky-cta {
  display: none;
}
@media (max-width: 760px) {
  body {
    font-size: 15.5px;
  }
  section {
    padding: 2.5rem 0;
  }
  .hero {
    padding: 2.25rem 0 2rem;
  }
  h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
  h2 {
    font-size: clamp(1.45rem, 6vw, 1.8rem);
  }
  .lede,
  .hero .lede {
    font-size: 1.05rem;
  }
  .section-head {
    margin-bottom: 1.5rem;
  }
  .btn-row {
    flex-direction: column;
  }
  .btn-row .btn {
    width: 100%;
  }
  .hero-grid {
    gap: 1.5rem;
  }
  .card,
  .product-card,
  .quiz {
    padding: 1.2rem;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.6rem;
  }
  .stat {
    padding: 0.9rem;
  }
  .stat .num {
    font-size: 1.5rem;
  }
  .stat .label {
    font-size: 0.8rem;
  }
  /* Execution path: steps become a horizontal strip above the panel */
  .steps {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .steps li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .steps button {
    width: auto;
    white-space: nowrap;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
  }
  .step-panel {
    min-height: 0;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .timeline li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: start;
    column-gap: 0.5rem;
    padding: 0.75rem 0.9rem;
  }
  .timeline li::before {
    margin: 0;
  }
  .timeline li strong {
    display: inline;
    margin-right: 0.35rem;
  }
  .timeline li span {
    grid-column: 2;
    display: block;
  }
  .table-hint {
    display: block;
  }
  th,
  td {
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
  }
  .arch {
    gap: 0.5rem;
  }
  .cta-band {
    padding: 1.5rem;
    border-radius: 16px;
  }
  .site-footer {
    padding: 2rem 0 5.5rem;
  }
  .footer-grid {
    gap: 1.25rem;
  }
  /* Sticky bottom action bar */
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.6rem 12px calc(0.6rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .sticky-cta .btn {
    width: 100%;
    padding: 0.7rem 0.6rem;
    font-size: 0.9rem;
  }
  .assist-launch {
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: 12px;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
  }
  .assist {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: calc(132px + env(safe-area-inset-bottom));
    max-height: min(520px, calc(100vh - 160px));
  }
  .assist .log {
    font-size: 0.9rem;
  }
  .nav-links {
    top: 62px;
  }
  .nav {
    min-height: 62px;
  }
  .brand small {
    display: none;
  }
  .nav-actions .btn-primary {
    display: none;
  }
  .sticky-cta .btn {
    white-space: nowrap;
    font-size: 0.85rem;
  }
}
@media (max-width: 380px) {
  .sticky-cta {
    grid-template-columns: 1fr;
  }
}

/* =======================================================================
   Design system v2 — captured from the ScriptBees enterprise site
   ======================================================================= */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
}
h1,
h2 {
  letter-spacing: -0.03em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.05;
}
.eyebrow,
.stat .label,
.timeline li::before,
.step-panel .eyebrow,
th,
.chip,
.status,
.arch .layer .tag,
.site-footer h4,
.table-hint {
  font-family: var(--mono);
}
.eyebrow {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}
.eyebrow .sep {
  color: var(--fg-muted);
  margin: 0 0.4rem;
}
.lede {
  color: var(--fg-muted);
  font-weight: 400;
}
a {
  color: var(--primary);
}

/* Header */
.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand .mark {
  display: none;
}
.brand .brace {
  color: var(--primary);
}
.brand small {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  margin-top: 3px;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--fg-muted);
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 0.9rem;
}
.nav-links a {
  color: var(--fg);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: transparent;
  color: var(--primary);
}
.badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent);
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 3px;
  line-height: 1.4;
}
.nav-toggle,
.btn-secondary {
  border-color: var(--border-strong);
}

/* Status strip */
.status-strip {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.status-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  align-items: center;
}
.status-strip .on {
  color: var(--primary);
}
.status-strip .on::before {
  content: '●';
  margin-right: 0.5rem;
  font-size: 0.6rem;
}
.status-strip .sep {
  color: var(--border-strong);
  margin: 0 0.5rem;
}
.status-strip .shield {
  color: var(--primary);
  margin-right: 0.4rem;
}
@media (max-width: 900px) {
  .status-strip .hide-m {
    display: none;
  }
}

/* Buttons */
.btn {
  border-radius: 6px;
  font-weight: 600;
}
.btn-primary {
  background: #ffffff;
  color: #0b0f14;
  border-color: #ffffff;
}
.btn-primary:hover {
  background: #e9edf1;
  color: #0b0f14;
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--fg);
}
.btn-mono {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}
.btn-mono:hover {
  border-color: var(--primary);
}
.btn .arrow {
  transition: transform 0.15s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.cta-band .btn-primary {
  color: #0b0f14 !important;
}

/* Hero */
.hero {
  background: none;
  border-bottom: 1px solid var(--border);
}
.hero-badges .chip,
.chip {
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border-color: var(--border-strong);
}
.chip.primary {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: var(--primary-soft);
}
.chip .dot {
  background: var(--primary);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 760px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
  }
}
.hero-stats .label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero-stats .num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
  margin: 0.35rem 0 0.2rem;
}
.hero-stats .num em {
  font-style: normal;
  color: var(--primary);
}
.hero-stats .sub {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* Terminal panel */
.terminal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 0.82rem;
  overflow: hidden;
}
.terminal header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.terminal .lights {
  display: inline-flex;
  gap: 0.35rem;
}
.terminal .lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.terminal .lights i:nth-child(1) {
  background: #ff5f57;
}
.terminal .lights i:nth-child(2) {
  background: #febc2e;
}
.terminal .lights i:nth-child(3) {
  background: #28c840;
}
.terminal header strong {
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 0.4rem;
}
.terminal header .badge {
  margin-left: auto;
}
.terminal .body {
  padding: 1rem 1.1rem 1.1rem;
}
.terminal .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}
.terminal .row .ok {
  color: var(--primary);
}
.terminal .row .ok::before {
  content: '● ';
  font-size: 0.6rem;
}
.terminal .log {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0.9rem;
  border-top: 1px solid var(--border);
  min-height: 7.2em;
}
.terminal .log li {
  color: var(--fg-muted);
  margin-bottom: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal .log li::before {
  content: '> ';
  color: var(--primary);
}
.terminal .log li.current {
  color: var(--fg);
}
.terminal .meter {
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}
.terminal .meter .row {
  margin-bottom: 0.5rem;
}
.terminal .meter .row b {
  color: var(--fg);
}
.terminal .bar {
  height: 5px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.terminal .bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.6s ease;
}
.terminal .tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
.terminal .tile {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
  background: var(--code-bg);
}
.terminal .tile .label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.terminal .tile .val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg);
  margin-top: 0.3rem;
}
.terminal .tile .val em {
  font-style: normal;
  color: var(--primary);
}
.terminal .tile .val small {
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.terminal footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  color: var(--fg-muted);
}
.terminal footer .ok {
  color: var(--primary);
}
.terminal footer button {
  font: inherit;
  background: none;
  border: 0;
  color: var(--fg-muted);
  cursor: pointer;
}
.terminal footer button:hover {
  color: var(--fg);
}

/* Cards, stats, tables */
.card,
.stat,
.step-panel,
.decision,
.quiz,
.table-wrap,
.faq details,
.arch .layer,
.timeline li,
.steps button,
.assist,
.tabs button,
.options label {
  box-shadow: none;
  border-color: var(--border);
}
.card {
  border-radius: 8px;
}
.card .icon {
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
}
.card-link:hover,
.steps button:hover,
.tabs button:hover {
  border-color: var(--border-strong);
}
.stat .num {
  font-family: var(--mono);
  color: var(--fg);
}
.stat .num::after {
  content: '';
}
.steps .n {
  background: var(--primary);
  color: #0b0f14;
}
.steps button[aria-selected='true'] {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  background: var(--primary-soft);
}
.tabs button[aria-selected='true'] {
  background: #ffffff;
  color: #0b0f14;
  border-color: #ffffff;
}
.tabs button {
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.checklist .tick {
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--mono);
}
.arch .layer.wide {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.arch .layer .tag {
  color: var(--primary);
}
.status.built {
  background: var(--primary-soft);
  color: var(--primary);
}
th {
  background: var(--bg-soft);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}
.timeline li::before {
  color: var(--primary);
}
.options label {
  border-radius: 6px;
}
.options label:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  background: var(--primary-soft);
  color: var(--primary);
}
.progress > span {
  background: var(--primary);
}
.callout {
  border-left-color: var(--primary);
}
.faq summary::after,
.card .more,
.result h3 {
  color: var(--primary);
}
.decision .verdict {
  font-size: 1.6rem;
}
pre {
  border: 1px solid var(--border);
}
section.alt {
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* CTA band */
.cta-band {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 90% 0%, var(--primary-soft), transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  color: var(--fg);
}
.cta-band p {
  color: var(--fg-muted);
}
.cta-band .btn-secondary {
  color: var(--fg);
  border-color: var(--border-strong);
}
.cta-band > * {
  position: relative;
}

/* Assistant + sticky bar */
.assist-launch {
  background: #ffffff;
  color: #0b0f14;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.assist-launch span {
  color: var(--primary);
}
.assist .msg.user {
  background: var(--primary);
  color: #0b0f14;
}
.assist header {
  font-family: var(--mono);
}
.sticky-cta {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
.site-footer {
  background: var(--bg-elev);
}

/* Polish ---------------------------------------------------------------- */
.nav-links a {
  white-space: nowrap;
  font-size: 0.92rem;
  padding: 0.5rem 0.65rem;
}
@media (max-width: 1180px) {
  .brand-tag {
    display: none;
  }
}
@media (max-width: 1040px) and (min-width: 901px) {
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.45rem 0.5rem;
  }
  .nav-links .badge {
    display: none;
  }
}
@media (max-width: 900px) {
  .nav-links a {
    white-space: normal;
    font-size: 1rem;
  }
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
}
.status-strip .container {
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-strip .container::-webkit-scrollbar {
  display: none;
}
@media (max-width: 760px) {
  .status-strip {
    font-size: 0.64rem;
  }
  .status-strip .container {
    min-height: 34px;
    gap: 1.25rem;
    justify-content: flex-start;
  }
  .terminal {
    font-size: 0.76rem;
  }
  .terminal .tiles {
    grid-template-columns: 1fr 1fr;
  }
}

/* ROI estimator ---------------------------------------------------------- */
.roi-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .roi-layout {
    grid-template-columns: 1fr;
  }
}
.roi-form .field {
  margin-bottom: 0.9rem;
}
.roi-form .field label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
}
.roi-form .field label b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--primary);
}
.roi-form .group {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 1.25rem 0 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.roi-form .group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.presets button {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.76rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  min-height: 36px;
}
.presets button[aria-pressed='true'] {
  background: #ffffff;
  color: #0b0f14;
  border-color: #ffffff;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (max-width: 700px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.kpi {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  padding: 0.9rem 1rem;
}
.kpi .label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.kpi .val {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-top: 0.3rem;
  line-height: 1.1;
}
.kpi.hero .val {
  color: var(--primary);
  font-size: 1.9rem;
}
.chart-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  padding: 1.1rem 1.1rem 0.9rem;
  margin-bottom: 1rem;
  position: relative;
}
.chart-card h3 {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}
.chart-card .sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.chart-card svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--mono);
  touch-action: pan-y;
}
.chart-card svg .grid {
  stroke: var(--border);
  stroke-width: 1;
}
.chart-card svg .zero {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.chart-card svg .tick {
  fill: var(--fg-muted);
  font-size: 11px;
}
.chart-card svg .label {
  fill: var(--fg-muted);
  font-size: 11px;
}
.chart-card svg .label.strong {
  fill: var(--fg);
  font-weight: 600;
}
.chart-card svg .line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linejoin: round;
}
.chart-card svg .area {
  fill: var(--primary);
  opacity: 0.1;
}
.chart-card svg .dot {
  fill: var(--primary);
  stroke: var(--bg-elev);
  stroke-width: 2;
}
.chart-card svg .marker {
  stroke: var(--fg-muted);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.chart-card svg .cross {
  stroke: var(--fg-muted);
  stroke-width: 1;
}
.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 220px;
  z-index: 2;
}
.chart-tip[hidden] {
  display: none;
}
.bars {
  display: grid;
  gap: 0.6rem;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 72px;
  gap: 0.75rem;
  align-items: center;
}
@media (max-width: 600px) {
  .bar-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
  .bar-row .bar-track {
    grid-column: 1 / -1;
    order: 3;
  }
}
.bar-label strong {
  display: block;
  font-size: 0.88rem;
}
.bar-label span {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.bar-track {
  height: 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  transition: width 0.4s ease;
}
.bar-fill.neg {
  background: var(--fg-muted);
}
.bar-val {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: right;
  color: var(--fg);
}
.roi-table td.num {
  font-family: var(--mono);
  text-align: right;
}
.roi-table tr.total td {
  font-weight: 700;
  border-top: 1px solid var(--border-strong);
}
.assumption {
  font-size: 0.82rem;
  color: var(--fg-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
}

.kpis-top {
  margin-bottom: 1.5rem;
}
@media (max-width: 960px) {
  .kpis-top {
    position: sticky;
    top: 62px;
    z-index: 40;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    margin: 0 0 1rem;
  }
  .kpis-top .kpi {
    padding: 0.5rem 0.55rem;
  }
  .kpis-top .kpi .label {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .kpis-top .kpi .val,
  .kpis-top .kpi.hero .val {
    font-size: 1rem;
    margin-top: 0.2rem;
  }
}

/* Status strip lives above the footer; terminal keeps a constant size */
.status-strip-bottom {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.terminal .log {
  min-height: 0;
}
.terminal .log li {
  visibility: hidden;
}
.terminal .log li.shown {
  visibility: visible;
}
@media (max-width: 760px) {
  .terminal .log li {
    font-size: 0.72rem;
  }
}

/* Breathing room on the home page */
section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-head {
  margin-bottom: 2.5rem;
}
.product-card ul {
  margin-top: 0.75rem;
}
.product-card li {
  margin-bottom: 0.45rem;
}
.card p.muted {
  font-size: 0.95rem;
}
@media (max-width: 760px) {
  section {
    padding: 3rem 0;
  }
}

/* Mobile header: menu button flush right */
@media (max-width: 900px) {
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    margin-left: auto;
  }
}

/* Incentives page ---------------------------------------------------------- */
.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 960px) {
  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .state-grid {
    grid-template-columns: 1fr;
  }
}
.state-card {
  display: flex;
  flex-direction: column;
}
.state-card .policy {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.state-card h3 {
  font-size: 1.25rem;
}
.state-card ul {
  margin: 0.5rem 0 0.9rem;
  padding-left: 1.05rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.state-card li {
  margin-bottom: 0.35rem;
}
.state-card .hubs {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.state-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.inc-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .inc-layout {
    grid-template-columns: 1fr;
  }
}
.inc-result .head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.inc-result .head h3 {
  margin: 0;
  font-size: 1.3rem;
}
.inc-result .head .policy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quant {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.quant li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  background: var(--code-bg);
}
.quant strong {
  display: block;
  font-size: 0.92rem;
}
.quant span {
  display: block;
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.quant b {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--primary);
  white-space: nowrap;
}
.inc-result h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 1.1rem 0 0.5rem;
}
.inc-result .checklist li div {
  font-size: 0.9rem;
}
.inc-result .checklist {
  gap: 0.45rem;
}
.fine {
  font-size: 0.78rem;
  color: var(--fg-muted);
  border-top: 1px dashed var(--border-strong);
  padding-top: 0.75rem;
  margin-top: 1rem;
}

/* Six-item navigation */
.timeline-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .timeline-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .timeline-4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 901px) {
  .nav-links a {
    font-size: 0.88rem;
    padding: 0.45rem 0.55rem;
  }
}
@media (max-width: 1320px) {
  .brand-tag {
    display: none;
  }
}
@media (max-width: 1120px) and (min-width: 901px) {
  .nav-links .badge {
    display: none;
  }
  .nav-links a {
    font-size: 0.84rem;
    padding: 0.45rem 0.45rem;
  }
}
