:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --ink: #0b1220;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;

  --ok: #059669;
  --ok-soft: #ecfdf5;
  --ok-border: #a7f3d0;

  --warn: #b45309;
  --warn-soft: #fffbeb;
  --warn-border: #fde68a;

  --err: #dc2626;
  --err-soft: #fef2f2;
  --err-border: #fecaca;

  --code-bg: #0d1117;
  --code-surface: #161b22;
  --code-border: #30363d;
  --code-ink: #e6edf3;
  --code-muted: #8b949e;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09);
  --max-w: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 750;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--ink-secondary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--surface-subtle);
  color: #0f172a;
  padding: 0.14em 0.42em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

h1 code, h2 code, h3 code {
  padding: 0.04em 0.28em;
  font-size: 0.84em;
  vertical-align: baseline;
}

pre {
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 1.25rem 0;
}

pre code {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Prototype Banner */
.proto-bar {
  background: #0b1220;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #1e293b;
}

.proto-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.proto-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proto-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.proto-bar a {
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.68rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background: #1e293b;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: #94a3b8;
}

.btn-sm {
  font-size: 0.84rem;
  padding: 0.48rem 0.9rem;
}

/* Badges & Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
}

.badge-ok {
  background: var(--ok-soft);
  border-color: var(--ok-border);
  color: var(--ok);
}

.badge-warn {
  background: var(--warn-soft);
  border-color: var(--warn-border);
  color: var(--warn);
}

.badge-err {
  background: var(--err-soft);
  border-color: var(--err-border);
  color: var(--err);
}

.badge-accent {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.75rem;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(29, 78, 216, 0.08), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-lead {
  font-size: 1.13rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.hero-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Telemetry Card in Hero */
.telemetry-panel {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: var(--code-ink);
  box-shadow: var(--shadow-lg);
}

.telemetry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--code-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--code-muted);
}

.telemetry-toggle {
  display: inline-flex;
  background: var(--code-surface);
  border: 1px solid var(--code-border);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.telemetry-toggle button {
  background: transparent;
  border: none;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.62rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.telemetry-toggle button.active-broken {
  background: rgba(220, 38, 38, 0.22);
  color: #fca5a5;
}

.telemetry-toggle button.active-fixed {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.pipe-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border-radius: 8px;
  background: var(--code-surface);
  border: 1px solid var(--code-border);
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.pipe-step:last-child {
  margin-bottom: 0;
}

.pipe-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.pipe-icon.ok {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.pipe-icon.err {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.pipe-icon.warn {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.pipe-title {
  color: #f8fafc;
  font-weight: 600;
  display: block;
}

.pipe-sub {
  color: var(--code-muted);
  font-size: 0.71rem;
  display: block;
  margin-top: 2px;
}

.pipe-status {
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.pipe-status.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.pipe-status.err {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.pipe-status.warn {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.telemetry-summary {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--code-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  font-family: var(--font-mono);
}

.t-metric-label {
  font-size: 0.66rem;
  color: var(--code-muted);
  text-transform: uppercase;
  display: block;
}

.t-metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 2px;
  display: block;
}

/* Stack Strip */
.stack-strip {
  padding: 1.2rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.stack-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.stack-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.4rem;
}

.stack-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
}

/* Grid Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}

.card-hover {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  text-decoration: none;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.2rem;
}

.price-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.4rem;
  flex-grow: 1;
}

.check-list li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.6rem;
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
  text-align: left;
}

th {
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.3;
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--border);
  white-space: normal;
}

td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-secondary);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

/* AEO Answer-First Summary Box */
.aeo-answer-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.aeo-answer-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.45rem;
  display: block;
}

.aeo-answer-box p:last-child {
  margin-bottom: 0;
  color: var(--ink);
}

.callout-warn {
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}

.callout-ok {
  background: var(--ok-soft);
  border: 1px solid var(--ok-border);
  border-left: 4px solid var(--ok);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}

/* Article Typography & Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--ink-muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  padding-bottom: 1.4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-body h3 {
  margin-top: 1.65rem;
}

.article-body ul, .article-body ol {
  color: var(--ink-secondary);
  padding-left: 1.35rem;
  margin-bottom: 1.2rem;
}

.article-body li {
  margin-bottom: 0.45rem;
}

/* Interactive Tool Panels & Forms */
.tool-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.94rem;
  padding: 0.68rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.field input[type="range"] {
  padding: 0;
  border: none;
  accent-color: var(--accent);
}

.result-panel {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 1.35rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.metric-card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
}

.metric-card-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0.25rem;
  display: block;
}

.finding-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}

.finding-row:last-child {
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item-body {
  padding: 0 1.35rem 1.2rem;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

/* CTA Band */
.cta-band {
  background: var(--ink);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.cta-band h2, .cta-band h3 {
  color: #ffffff;
}

.cta-band p {
  color: #cbd5e1;
  margin-bottom: 0;
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

/* Footer */
.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 4rem 0 2.25rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
}

.site-footer h4 {
  color: #f8fafc;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* SVG Diagram Wrapper */
.diagram-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

/* ICP Fit-Check Cards & Error Directory */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fit-yes {
  background: var(--surface);
  border: 1px solid var(--ok-border);
  border-top: 4px solid var(--ok);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
}

.fit-no {
  background: var(--surface);
  border: 1px solid var(--err-border);
  border-top: 4px solid var(--err);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
}

.x-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.x-list li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

.x-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--err);
  font-weight: 800;
  font-family: var(--font-mono);
}

.error-code-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--code-bg);
  color: #f87171;
  padding: 0.28rem 0.65rem;
  border-radius: 5px;
  border: 1px solid var(--code-border);
  display: inline-block;
  margin-bottom: 0.65rem;
}

.search-bar-input {
  width: 100%;
  max-width: 520px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.search-bar-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.brand-mark-svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1040px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
    gap: 0.95rem;
    box-shadow: var(--shadow-md);
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid,
  .grid-3,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-band-actions {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .fit-grid,
  .form-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3.25rem 0;
  }
  .cta-band {
    padding: 2rem 1.5rem;
  }
}
