/* TabVault — Obsidian Archival Vault Design System
 * Ground: #0B0F14 obsidian slate | Surface: #111827 | Contrast Ink: #F8FAFC
 * Verified Local: #10B981 emerald | Primary Action: #F59E0B amber | Alert: #EF4444
 */
:root {
  --bg: #0B0F14;
  --bg-elev: #0F151E;
  --surface: #111827;
  --surface-2: #161F2E;
  --paper: #F8FAFC;
  --paper-ink: #0F172A;
  --ink: #F8FAFC;
  --ink-2: #CBD5E1;
  --ink-3: #8B9BB0;
  --line: #1F2937;
  --line-strong: #334155;
  --emerald: #10B981;
  --emerald-bright: #34D399;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --emerald-line: rgba(16, 185, 129, 0.35);
  --amber: #F59E0B;
  --amber-hover: #D97706;
  --amber-ink: #0B0F14;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --amber-line: rgba(245, 158, 11, 0.38);
  --crimson: #EF4444;
  --crimson-soft: rgba(239, 68, 68, 0.12);
  --crimson-line: rgba(239, 68, 68, 0.36);
  --code-bg: #070A0E;
  --code-ink: #E2E8F0;
  --radius: 8px;
  --radius-sm: 5px;
  --max-w: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--ink);
  line-height: 1.62;
  font-size: 15.5px;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); text-decoration: none; }
a:hover { color: #FBBF24; text-decoration: underline; text-underline-offset: 3px; }

code, pre, .mono, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

code {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: #E2E8F0;
}

pre {
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  max-width: 100%;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 14px 0;
}
pre code { background: transparent; border: 0; padding: 0; font-size: inherit; }

/* Layout Containers */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

.wrap-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-line);
  color: var(--emerald-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.nav a { color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.1s ease;
}
.btn:hover { background: var(--surface-2); border-color: #475569; color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: var(--paper);
}
.btn-primary:hover { background: #E2E8F0; border-color: #E2E8F0; color: var(--paper-ink); }

.btn-amber {
  background: var(--amber);
  color: var(--amber-ink);
  border-color: var(--amber);
  font-weight: 700;
}
.btn-amber:hover { background: var(--amber-hover); border-color: var(--amber-hover); color: var(--amber-ink); }

.btn-emerald {
  background: var(--emerald);
  color: #04150E;
  border-color: var(--emerald);
  font-weight: 700;
}
.btn-emerald:hover { background: var(--emerald-bright); border-color: var(--emerald-bright); color: #04150E; }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.08); color: var(--ink); }

.btn-sm { padding: 7px 12px; font-size: 13px; }

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Badges & Callouts */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-2);
}
.badge-emerald { background: var(--emerald-soft); border-color: var(--emerald-line); color: var(--emerald-bright); }
.badge-amber { background: var(--amber-soft); border-color: var(--amber-line); color: #FBBF24; }
.badge-crimson { background: var(--crimson-soft); border-color: var(--crimson-line); color: #FCA5A5; }
.badge-muted { background: rgba(148, 163, 184, 0.08); border-color: var(--line); color: var(--ink-3); }

.callout, .notice-amber, .notice-emerald, .notice-crimson {
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
}
.callout-emerald, .notice-emerald {
  background: var(--emerald-soft);
  border-color: var(--emerald-line);
  color: #A7F3D0;
}
.callout-amber, .notice-amber {
  background: var(--amber-soft);
  border-color: var(--amber-line);
  color: #FDE68A;
}
.callout-crimson, .notice-crimson {
  background: var(--crimson-soft);
  border-color: var(--crimson-line);
  color: #FECACA;
}

/* Hero */
.hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-bright);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-line);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink);
}

.hero-lead {
  font-size: clamp(15.5px, 1.8vw, 18px);
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 640px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.hero-meta span strong { color: var(--ink-2); }

/* Paper Contrast Archival Ledger Card */
.archival-card {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid #CBD5E1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.archival-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--paper-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.archival-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: #1E293B;
}
.archival-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #CBD5E1;
}
.archival-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.archival-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  color: #047857;
  text-align: right;
  flex-shrink: 0;
}

/* Sections */
.sec {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}
.sec-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.sec h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.18;
  color: var(--ink);
}
.sec-lead {
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 15.5px;
}

/* Playground Workbench */
.playground {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.pg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}

.pg-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pill-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 5px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.pill-btn:hover { background: var(--surface-2); color: var(--ink); }
.pill-btn.active {
  background: var(--amber);
  color: var(--amber-ink);
  border-color: var(--amber);
  font-weight: 700;
}

.pg-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--emerald-bright);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-line);
  padding: 4px 10px;
  border-radius: 99px;
}
.pg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

.pg-input-strip {
  padding: 14px 16px;
  background: rgba(7, 10, 14, 0.45);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(17, 24, 39, 0.55);
  transition: border-color 0.14s, background 0.14s;
  cursor: pointer;
}
.dropzone.dragover {
  border-color: var(--amber);
  background: var(--amber-soft);
}
.dropzone-text {
  font-size: 13px;
  color: var(--ink-2);
  min-width: 0;
}
.dropzone-text strong { color: var(--ink); }

.pg-paste-wrap {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.pg-textarea {
  width: 100%;
  min-height: 118px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
  margin-bottom: 10px;
}
.pg-textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }

/* Metrics Strip */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.metric-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.metric-cell:last-child { border-right: 0; }
.metric-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.metric-value.emerald { color: var(--emerald-bright); }
.metric-value.amber { color: var(--amber); }
.metric-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Search & Export Bar */
.pg-controls {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.pg-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  min-width: 0;
}
.pg-search-input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--code-bg);
  color: var(--ink);
  font-size: 13.5px;
}
.pg-search-input:focus { outline: 2px solid var(--emerald); outline-offset: 1px; }

.pg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
}

/* Session Tree Preview */
.pg-results {
  max-height: 390px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0D121A;
}

.session-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.session-head {
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.session-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.session-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.tab-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.75);
  font-size: 13px;
}
.tab-row:last-child { border-bottom: 0; }
.tab-main {
  min-width: 0;
  flex: 1 1 auto;
}
.tab-title {
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.tab-url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.tab-note {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 2px;
}
.tab-badges {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  align-items: center;
}

/* Moment-of-Value Upgrade Strip */
.mov-bar {
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.08));
  border-top: 1px solid var(--amber-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.mov-copy {
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 620px;
}
.mov-copy strong { color: var(--ink); }

/* Feature & Pricing Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card, .vault-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.vault-card { margin-bottom: 18px; }
.card h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--ink); }
.card p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.price-card.featured {
  border-color: var(--amber);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.1);
}
.price-tag {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 4px;
  line-height: 1.1;
}
.price-tag span {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  flex: 1;
}
.price-list li::before {
  content: "✓ ";
  color: var(--emerald-bright);
  font-weight: 700;
}

/* Prose, Docs, Comparison & Legal Pages (Shared with CMO) */
.prose {
  padding: 44px 0 64px;
}
.prose h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.16;
  color: var(--ink);
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 23px;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.prose h3 {
  font-size: 17px;
  margin: 22px 0 8px;
  color: var(--ink);
}
.prose p, .prose li {
  color: var(--ink-2);
  font-size: 15px;
}
.prose ul, .prose ol {
  padding-left: 22px;
}
.prose li { margin-bottom: 6px; }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table, .comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13.5px;
  min-width: 560px;
}
.compare-table th, .compare-table td,
.comp-table th, .comp-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}
.compare-table th, .comp-table th {
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ink);
}
.compare-table tr:last-child td, .comp-table tr:last-child td { border-bottom: 0; }
.compare-table td strong, .comp-table td strong { color: var(--ink); }

/* FAQ / AEO Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
}
.faq-item summary {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--emerald-bright);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.62;
}

/* Key Vault / Success Page */
.key-box {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--code-bg);
  border: 1px solid var(--emerald-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0;
}
.key-box code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--emerald-bright);
  word-break: break-all;
}
.steps-list {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
.footer {
  padding: 36px 0 48px;
  font-size: 13px;
  color: var(--ink-3);
  background: var(--bg-elev);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 14px 18px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell { border-bottom: 1px solid var(--line); }
  .metric-cell:nth-child(even) { border-right: 0; }
  .grid-2, .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .pg-input-strip { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap, .wrap-narrow { padding: 0 14px; }
  .topbar-inner { padding: 10px 14px; }
  .nav { gap: 10px 12px; font-size: 13px; }
  .hero { padding: 30px 0 26px; }
  .sec { padding: 38px 0; }
  .cta-row .btn { width: 100%; min-height: 44px; }
  .pg-presets { width: 100%; }
  .pill-btn { flex: 1 1 auto; text-align: center; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell { padding: 11px 12px; }
  .metric-value { font-size: 17px; }
  .tab-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .compare-table, .comp-table { min-width: 460px; }
}
