/* AnswerLens — Design System & Production Styles
   Niche: AI Answer-Engine Brand Monitoring & Optimization (GEO/AEO)
   Palette: #FAFAF8 bg / #12182B ink / #0EA5A0 teal / #C98A1D gold citation highlight
   Typography: Space Grotesk (head) + IBM Plex Sans (body) + IBM Plex Mono (AI citations/code)
*/

:root {
  --bg: #FAFAF8;
  --surface: #F1F3F7;
  --surface-2: #FFFFFF;
  --ink: #12182B;
  --ink-muted: #4F586D;
  --ink-faint: #5E677C; /* Contrast ratio > 5:1 against #FAFAF8 for WCAG AA */
  --border: #E1E5EC;
  --border-strong: #C4CAD8;
  --border-subtle: #ECEEF3;

  --teal: #0EA5A0;
  --teal-deep: #0A7A76;
  --teal-tint: #E3F5F3;
  --teal-glow: rgba(14, 165, 160, 0.15);

  --gold: #C98A1D;
  --gold-tint: #FDF3E1;
  --gold-border: #E8B95D;

  --danger: #B3452C;
  --danger-tint: #FBEAE4;
  --danger-border: #E79B87;

  --good: #227A4B;
  --good-tint: #E7F6EC;
  --good-border: #8DD3A7;

  --radius-card: 12px;
  --radius-btn: 6px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(18, 24, 43, 0.04), 0 1px 2px rgba(18, 24, 43, 0.02);
  --shadow-md: 0 6px 20px -3px rgba(18, 24, 43, 0.07), 0 2px 6px -1px rgba(18, 24, 43, 0.03);
  --shadow-lg: 0 16px 36px -6px rgba(18, 24, 43, 0.11), 0 4px 12px -2px rgba(18, 24, 43, 0.05);

  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.35rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }
p { margin: 0 0 1em; color: var(--ink-muted); max-width: 64ch; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-border-top { border-top: 1px solid var(--border); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 28px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ink); position: relative; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark svg {
  width: 20px; height: 20px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: .94rem; color: var(--ink-muted); font-weight: 500; transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px; flex: none;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; cursor: pointer;
  transition: all .15s ease; text-align: center;
}
.btn:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); background: #fff; }
.btn-ghost { color: var(--ink-muted); font-size: .92rem; font-weight: 500; padding: 10px 14px; }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 13px 24px; font-size: .98rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }

/* Eyebrow badge */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--teal-deep);
  background: var(--teal-tint); padding: 5px 12px; border-radius: var(--radius-pill);
  margin-bottom: 18px; font-weight: 600; border: 1px solid rgba(14, 165, 160, 0.2);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Hero */
.hero { padding: 68px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.hero-sub { font-size: 1.12rem; max-width: 48ch; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin: 26px 0 16px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-faint); }
.hero-note svg { width: 14px; height: 14px; color: var(--good); }

/* Interactive Scan Sandbox Panel */
.scan-panel {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow-md);
  position: relative;
}
.scan-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.scan-panel-head .label {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--ink-faint); font-weight: 700; letter-spacing: 0.04em;
}
.scan-panel-head .live-indicator {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
}
.scan-input-box {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.scan-input {
  flex: 1; padding: 9px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn); font-family: var(--font-body); font-size: .88rem;
  background: var(--bg); color: var(--ink); outline: none;
}
.scan-input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-glow); }
.preset-row {
  display: flex; gap: 6px; align-items: center; margin-bottom: 14px; flex-wrap: wrap;
}
.preset-label { font-size: .76rem; color: var(--ink-faint); font-weight: 500; }
.preset-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 3px 9px; font-size: .74rem;
  color: var(--ink-muted); cursor: pointer; transition: all .15s ease;
}
.preset-chip:hover, .preset-chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* Engine Switcher Tabs */
.engine-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px;
  scrollbar-width: thin;
}
.engine-tab {
  background: transparent; border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px; font-size: .78rem; font-weight: 600;
  color: var(--ink-muted); cursor: pointer; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: all .15s ease;
}
.engine-tab:hover { background: var(--surface); color: var(--ink); }
.engine-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Scan progress indicator */
.scan-progress {
  display: none; margin-bottom: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px;
}
.scan-progress.active { display: block; animation: fadeIn .2s ease; }
.scan-progress-text {
  display: flex; justify-content: space-between; font-size: .78rem;
  font-weight: 600; color: var(--teal-deep); margin-bottom: 6px;
}
.scan-progress-bar-bg {
  width: 100%; height: 5px; background: var(--border); border-radius: 999px; overflow: hidden;
}
.scan-progress-bar-fill {
  width: 0%; height: 100%; background: var(--teal); border-radius: 999px;
  transition: width .3s ease;
}

/* Answer Cards */
.answer-list { display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.answer-card {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 14px 16px; background: var(--surface-2);
  transition: transform .15s ease, border-color .15s ease;
}
.answer-card:hover { border-color: var(--border-strong); }
.answer-card-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.engine-badge {
  display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .86rem;
}
.engine-icon {
  width: 18px; height: 18px; border-radius: 4px; display: inline-flex;
  align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
}
.engine-icon.chatgpt { background: #10A37F; color: #fff; }
.engine-icon.claude { background: #D97757; color: #fff; }
.engine-icon.perplexity { background: #20808D; color: #fff; }
.engine-icon.gemini { background: #1A73E8; color: #fff; }
.engine-icon.copilot { background: #0078D4; color: #fff; }

.answer-status {
  font-size: .74rem; padding: 2px 8px; border-radius: var(--radius-pill); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.status-good { background: var(--good-tint); color: var(--good); border: 1px solid var(--good-border); }
.status-flag { background: var(--danger-tint); color: var(--danger); border: 1px solid var(--danger-border); }
.status-missing { background: var(--surface); color: var(--ink-muted); border: 1px solid var(--border-strong); }

.answer-snippet {
  font-family: var(--font-mono); font-size: .82rem; color: var(--ink);
  line-height: 1.6; margin: 0 0 10px;
}
.cite-hl {
  background: var(--gold-tint); color: var(--gold);
  border-bottom: 1.5px solid var(--gold-border); padding: 1px 4px; border-radius: 3px; font-weight: 600;
}
.err-hl {
  background: var(--danger-tint); color: var(--danger);
  border-bottom: 1.5px solid var(--danger-border); padding: 1px 4px; border-radius: 3px; text-decoration: line-through;
}

.answer-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: var(--ink-faint); border-top: 1px dashed var(--border);
  padding-top: 8px;
}
.btn-inspect {
  background: none; border: none; color: var(--teal-deep); font-weight: 600;
  font-size: .76rem; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px;
}
.btn-inspect:hover { text-decoration: underline; }

/* Modal / Fix Brief Drawer */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(18, 24, 43, 0.45); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; animation: fadeIn .15s ease; }
.modal-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; max-width: 580px; width: 100%; box-shadow: var(--shadow-lg);
  padding: 24px; max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.modal-close {
  background: none; border: none; font-size: 1.4rem; color: var(--ink-faint);
  cursor: pointer; line-height: 1; padding: 4px;
}
.modal-close:hover { color: var(--ink); }
.diff-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px; font-family: var(--font-mono); font-size: .8rem; margin: 12px 0;
  line-height: 1.5;
}
.diff-rem { color: var(--danger); background: var(--danger-tint); padding: 2px 4px; border-radius: 3px; display: block; margin-bottom: 4px; }
.diff-add { color: var(--good); background: var(--good-tint); padding: 2px 4px; border-radius: 3px; display: block; }
.code-export {
  background: #181E32; color: #E1E5EC; border-radius: 8px; padding: 14px;
  font-family: var(--font-mono); font-size: .78rem; overflow-x: auto; margin-top: 10px;
}

/* Trust Strip */
.trust-strip {
  padding: 38px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.trust-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.trust-label { font-size: .84rem; color: var(--ink-muted); margin: 0; font-weight: 500; }
.trust-scale-metric {
  font-size: .76rem; font-weight: 700; color: var(--teal-deep);
  background: var(--teal-tint); padding: 4px 10px; border-radius: var(--radius-pill);
  letter-spacing: .02em;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center;
}
.trust-brand {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg);
  transition: border-color .15s ease;
}
.trust-brand:hover { border-color: var(--border-strong); }
.trust-logo-mark {
  width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center;
  justify-content: center; background: var(--ink); color: #fff; font-weight: 700;
  font-family: var(--font-head); font-size: .82rem; flex: none;
}
.trust-brand-info { display: flex; flex-direction: column; }
.trust-brand-name { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink); }
.trust-brand-cat { font-size: .7rem; color: var(--ink-faint); }

/* Compare Grid (Problem/Solution) */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.compare-card { border-radius: var(--radius-card); padding: 28px; border: 1px solid var(--border); }
.compare-card.old { background: var(--surface); }
.compare-card.new { background: var(--teal-tint); border-color: rgba(14, 165, 160, 0.25); }
.compare-card h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li {
  padding: 10px 0; border-top: 1px solid rgba(0,0,0,0.06);
  font-size: .92rem; color: var(--ink-muted); display: flex; gap: 10px; align-items: flex-start;
}
.compare-list li:first-child { border-top: none; }
.compare-icon-cross { color: var(--danger); font-weight: 700; flex: none; }
.compare-icon-check { color: var(--good); font-weight: 700; flex: none; }

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.feature-card {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 26px; background: var(--surface-2); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.feature-icon-wrap {
  width: 40px; height: 40px; border-radius: 8px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--ink); border: 1px solid var(--border);
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { margin: 0; font-size: .92rem; }

/* Product Dashboard Showcase Section */
.dashboard-showcase {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-top: 40px; box-shadow: var(--shadow-md);
}
.dash-window-bar {
  display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px;
  border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.window-dots { display: flex; gap: 6px; }
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.dash-title { font-size: .84rem; font-weight: 600; color: var(--ink-faint); font-family: var(--font-mono); }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.dash-chart-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 20px; background: var(--bg);
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-title { font-size: .92rem; font-weight: 600; margin: 0; }
.chart-metric { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--teal-deep); }
.svg-chart { width: 100%; height: 160px; }
.dash-side-alerts { display: flex; flex-direction: column; gap: 12px; }
.alert-card-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
}
.alert-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.alert-tag { font-size: .72rem; padding: 2px 6px; border-radius: var(--radius-pill); font-weight: 600; }
.slack-preview {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px;
  border-left: 4px solid var(--teal); margin-top: 8px; font-size: .8rem;
}
.slack-title { font-weight: 600; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.step {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px;
}
.step .num {
  font-family: var(--font-head); font-size: .88rem; color: var(--teal-deep);
  margin-bottom: 12px; font-weight: 700; background: var(--teal-tint);
  width: 32px; height: 32px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .9rem; margin: 0; }

/* Integrations row */
.integ-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.integ-pill {
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: .88rem; color: var(--ink); background: var(--surface-2);
  display: flex; align-items: center; gap: 8px; font-weight: 500; box-shadow: var(--shadow-sm);
}

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.testi-card {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 26px; background: var(--surface-2); display: flex; flex-direction: column;
  justify-content: space-between; box-shadow: var(--shadow-sm);
}
.testi-quote { font-size: .95rem; color: var(--ink); margin-bottom: 20px; line-height: 1.6; }
.testi-footer {
  display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-subtle);
  padding-top: 16px; gap: 12px;
}
.testi-author-group { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink);
  color: #fff; font-weight: 700; font-size: .8rem; display: flex; align-items: center;
  justify-content: center; flex: none; border: 2px solid var(--teal-tint);
}
.testi-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.testi-role { font-size: .78rem; color: var(--ink-faint); }
.testi-metric {
  font-size: .76rem; color: var(--teal-deep); font-weight: 700;
  background: var(--teal-tint); padding: 3px 8px; border-radius: var(--radius-pill);
  white-space: nowrap; flex: none; border: 1px solid rgba(14, 165, 160, 0.2);
}

/* Pricing Switcher & Matrix */
.pricing-header-wrap { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.billing-toggle-wrap {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px;
}
.billing-label { font-size: .92rem; font-weight: 600; color: var(--ink-muted); cursor: pointer; }
.billing-label.active { color: var(--ink); }
.billing-switch {
  width: 48px; height: 26px; background: var(--ink); border-radius: 999px;
  position: relative; cursor: pointer; transition: background .2s ease; border: none; padding: 0;
}
.billing-switch-thumb {
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  position: absolute; top: 3px; left: 4px; transition: transform .2s ease;
}
.billing-switch.annual .billing-switch-thumb { transform: translateX(20px); }
.discount-pill {
  font-size: .76rem; font-weight: 700; color: var(--good); background: var(--good-tint);
  padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid var(--good-border);
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; align-items: stretch; }
.price-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 30px;
  background: var(--surface-2); display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card.popular {
  border-color: var(--ink); box-shadow: var(--shadow-md);
}
.price-tag {
  position: absolute; top: -12px; left: 24px; background: var(--ink); color: #fff;
  font-size: .74rem; padding: 4px 12px; border-radius: var(--radius-pill); font-weight: 700;
}
.price-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.price-desc { font-size: .86rem; color: var(--ink-faint); margin-bottom: 20px; min-height: 42px; }
.price-amount { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; margin-bottom: 4px; }
.price-amount span { font-size: .95rem; color: var(--ink-faint); font-weight: 500; }
.price-billed { font-size: .78rem; color: var(--ink-faint); margin-bottom: 16px; }
.price-list { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-list li {
  font-size: .9rem; color: var(--ink-muted); padding: 8px 0 8px 22px; position: relative;
}
.price-list li:before {
  content: '✓'; position: absolute; left: 0; top: 7px; color: var(--teal-deep);
  font-weight: 700; font-size: .85rem;
}

/* Feature Comparison Table */
.matrix-wrap { margin-top: 64px; overflow-x: auto; }
.matrix-table {
  width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.matrix-table th, .matrix-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.matrix-table th {
  background: var(--surface); font-family: var(--font-head); font-weight: 600;
}
.matrix-table tr.category-row td {
  background: var(--bg); font-weight: 700; font-size: .82rem;
  color: var(--teal-deep); text-transform: uppercase; letter-spacing: .03em;
}
.matrix-table td.check { color: var(--good); font-weight: 700; text-align: center; font-size: 1.1rem; }
.matrix-table td.cross { color: var(--ink-faint); text-align: center; }

/* Security Assurance Box */
.security-banner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin-top: 40px; display: flex;
  gap: 24px; align-items: center;
}
.security-icon { width: 44px; height: 44px; flex: none; color: var(--teal-deep); }
.security-text h4 { margin: 0 0 4px; font-size: 1rem; }
.security-text p { margin: 0; font-size: .88rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1rem;
  user-select: none;
}
.faq-q:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.faq-q .icon {
  font-family: var(--font-head); color: var(--ink-faint); font-size: 1.3rem;
  transition: transform .2s ease;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding-bottom: 18px; margin: 0; font-size: .94rem; line-height: 1.6; }

/* Final CTA */
.final-cta {
  background: var(--ink); color: #fff; border-radius: 18px;
  padding: 56px; text-align: left; display: flex; justify-content: space-between;
  align-items: center; gap: 30px; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.final-cta h2 { color: #fff; margin-bottom: 8px; }
.final-cta p { color: #B7BECF; margin: 0; }

/* Footer */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-desc { font-size: .9rem; max-width: 32ch; margin-top: 12px; }
.footer-col h4 {
  font-size: .84rem; color: var(--ink-faint); margin-bottom: 16px;
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.footer-col a { display: block; font-size: .9rem; color: var(--ink-muted); margin-bottom: 10px; transition: color .15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--ink-faint); flex-wrap: wrap; gap: 12px;
}
.badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge {
  font-size: .76rem; color: var(--ink-faint); border: 1px solid var(--border-strong);
  padding: 4px 10px; border-radius: var(--radius-pill); font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
}

/* Page Headers (Subpages) */
.page-head { padding: 68px 0 24px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head p { font-size: 1.1rem; max-width: 56ch; }

/* Forms & Auth */
.form-card {
  max-width: 440px; margin: 0 auto; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px; padding: 36px;
  box-shadow: var(--shadow-md);
}
.oauth-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-oauth {
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  font-weight: 600; font-size: .9rem; padding: 10px 14px; border-radius: var(--radius-btn);
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  transition: all .15s ease;
}
.btn-oauth:hover { background: #fff; border-color: var(--border-strong); }
.oauth-divider {
  display: flex; align-items: center; text-align: center; margin: 18px 0; color: var(--ink-faint);
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.oauth-divider:before, .oauth-divider:after {
  content: ''; flex: 1; border-bottom: 1px solid var(--border);
}
.oauth-divider span { padding: 0 10px; }

.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn); font-family: var(--font-body); font-size: .94rem;
  background: var(--bg); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.pw-wrapper { position: relative; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: .78rem; color: var(--ink-faint);
  padding: 4px; font-weight: 600;
}

.form-alert {
  padding: 12px 14px; border-radius: 8px; font-size: .86rem; margin-bottom: 18px;
  display: none;
}
.form-alert.success {
  background: var(--good-tint); color: var(--good); border: 1px solid var(--good-border); display: block;
}
.form-alert.error {
  background: var(--danger-tint); color: var(--danger); border: 1px solid var(--danger-border); display: block;
}

.form-foot { text-align: center; font-size: .86rem; color: var(--ink-muted); margin-top: 18px; }

/* Prose pages (About / Blog / Legal) */
.prose h2 { margin-top: 2em; margin-bottom: .6em; font-size: 1.4rem; }
.prose p, .prose li { color: var(--ink-muted); line-height: 1.7; }
.prose ul { padding-left: 20px; margin-bottom: 1.5em; }
.prose li { margin-bottom: 8px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.blog-card {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 26px; background: var(--surface-2); height: 100%; display: flex;
  flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.blog-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.blog-tag { font-size: .76rem; color: var(--teal-deep); font-weight: 700; margin-bottom: 10px; display: block; text-transform: uppercase; letter-spacing: .03em; }
.blog-card h3 { margin-bottom: 8px; font-size: 1.15rem; color: var(--ink); }
.blog-card p { font-size: .92rem; margin-bottom: 16px; flex: 1; }
.blog-meta { font-size: .8rem; color: var(--ink-faint); border-top: 1px solid var(--border-subtle); padding-top: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-inner { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost, .nav-subtext { display: none; }
  .nav-actions .btn { font-size: .85rem; padding: 8px 14px; white-space: nowrap; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 6px 24px 16px; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: none; }
  .compare-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .final-cta { flex-direction: column; align-items: flex-start; text-align: left; padding: 36px 24px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
