/* ==========================================================================
   Lustrio AI — Design System & Stylesheet
   Pure CSS3. No frameworks. Mobile-first responsive.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   --------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand:        #2E6DA4;
  --brand-dark:   #1a4d7a;
  --brand-darker: #0f3358;
  --brand-light:  #e8f1f9;
  --brand-mid:    #72b0d9;

  /* Ink / Text */
  --ink:          #0d1b2a;
  --ink-80:       #1f3344;
  --muted:        #4a6275;
  --subtle:       #8099ac;

  /* Surfaces */
  --bg:           #f6f9fc;
  --surface:      #ffffff;
  --surface-2:    #edf2f7;

  /* Borders */
  --border:       #d4dfe8;
  --border-light: #e8f0f6;

  /* Feedback */
  --success:      #1a7a5a;
  --success-bg:   #e6f5ed;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(13,27,42,0.08);
  --shadow-md:    0 4px 16px rgba(13,27,42,0.10);
  --shadow-lg:    0 8px 32px rgba(13,27,42,0.12);

  /* Radii */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing (8px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --max-width: 1140px;
}

/* ---------------------------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 400; }

/* ---------------------------------------------------------------------------
   3. Typography helpers
   --------------------------------------------------------------------------- */
.display { font-family: var(--font-display); }
.display-italic { font-family: var(--font-display); font-style: italic; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  display: inline-block;
  margin-bottom: var(--space-4);
}
.eyebrow.on-dark { color: var(--brand-mid); }

.mono { font-family: var(--font-mono); }

.lead { font-size: var(--text-lg); color: var(--muted); }

/* ---------------------------------------------------------------------------
   4. Layout primitives
   --------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }

.section-dark    { background: var(--brand-darker); color: var(--brand-light); }
.section-navy    { background: var(--ink); color: #dde7ef; }
.section-light   { background: var(--surface-2); }
.section-surface { background: var(--surface); }
.section-brand   { background: var(--brand); color: #fff; }

.section-dark h1, .section-dark h2, .section-dark h3,
.section-navy h1, .section-navy h2, .section-navy h3,
.section-brand h1, .section-brand h2, .section-brand h3 { color: #fff; }

.text-center { text-align: center; }

.divider { height: 1px; background: var(--border-light); border: 0; margin: var(--space-12) 0; }

/* Reading width for legal/long-form pages */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: var(--text-2xl); margin: var(--space-10) 0 var(--space-4); }
.prose h3 { font-size: var(--text-xl); margin: var(--space-6) 0 var(--space-3); }
.prose p  { margin-bottom: var(--space-4); color: var(--ink-80); }
.prose ul { margin: 0 0 var(--space-4) var(--space-6); list-style: disc; }
.prose ul li { margin-bottom: var(--space-2); color: var(--ink-80); }
.prose strong { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  padding: 13px 27px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }

/* Ghost button for dark backgrounds */
.btn-ghost-light {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 13px 27px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; transform: translateY(-1px); }

/* White button on brand/dark backgrounds */
.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--brand-dark);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-white:hover { color: var(--brand-darker); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 9px 18px; font-size: var(--text-sm); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.btn-row.center { justify-content: center; }

/* ---------------------------------------------------------------------------
   6. Cards
   --------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.card p  { color: var(--muted); margin-bottom: var(--space-4); }

.card-link {
  font-weight: 500;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  border-radius: var(--radius-md);
  color: var(--brand);
  margin-bottom: var(--space-5);
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------------------
   7. Grids
   --------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* 2×2 service grid: two columns on desktop & tablet, single column on mobile */
.grid-services { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid-services { grid-template-columns: 1fr; } }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

/* ---------------------------------------------------------------------------
   8. Headings & section intro
   --------------------------------------------------------------------------- */
.section-head { max-width: 680px; margin-bottom: var(--space-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
.h2-sm { font-size: var(--text-3xl); }

.section-head p { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--muted); }
.section-dark .section-head p,
.section-navy .section-head p,
.section-brand .section-head p { color: rgba(255,255,255,0.82); }

/* ---------------------------------------------------------------------------
   9. Hero
   --------------------------------------------------------------------------- */
.hero {
  background: var(--brand-darker);
  color: var(--brand-light);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-6xl);
  color: #fff;
  margin-bottom: var(--space-5);
  line-height: 1.05;
}
.hero p.sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin-bottom: var(--space-8);
}
.hero .eyebrow { color: var(--brand-mid); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}
.trust-row span { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Light/medium hero variant for sub-pages */
.hero-light {
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-20) 0;
  overflow: hidden;
}
.hero-light h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}
.hero-light p.sub { font-size: var(--text-lg); color: var(--muted); max-width: 620px; }

/* Decorative signal SVG container */
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; }

/* ---------------------------------------------------------------------------
   10. Stat callouts
   --------------------------------------------------------------------------- */
.stat { text-align: center; }
/* 2-column stat grid: center a lone last stat across both columns */
.stat-grid-2col .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) { .stat-grid-2col .stat:last-child:nth-child(odd) { grid-column: auto; } }
.stat .num {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  color: var(--brand);
  line-height: 1;
}
.stat .label {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}
.section-dark .stat .num, .section-navy .stat .num { color: var(--brand-mid); }
.section-dark .stat .label, .section-navy .stat .label { color: rgba(255,255,255,0.7); }

.stat-panel {
  display: grid;
  gap: var(--space-4);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.stat-card .num {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  color: var(--brand);
  line-height: 1.1;
}
.stat-card .label { font-weight: 300; color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-1); }
.stat-card .sub-label { font-size: var(--text-xs); color: var(--subtle); margin-top: var(--space-1); }

.stat-callout {
  display: inline-flex;
  flex-direction: column;
  background: var(--brand-light);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-6);
  margin-top: var(--space-4);
}
.stat-callout .num { font-family: var(--font-mono); font-size: var(--text-3xl); color: var(--brand-dark); }
.stat-callout .label { font-size: var(--text-sm); color: var(--muted); }

.stat-callout-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.stat-callout-row .stat-callout { flex: 1 1 200px; }

/* ---------------------------------------------------------------------------
   11. Process steps
   --------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.step .step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { color: var(--muted); font-size: var(--text-sm); }

/* ---------------------------------------------------------------------------
   12. Niche cards
   --------------------------------------------------------------------------- */
.niche-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.niche-card .emoji { font-size: var(--text-3xl); line-height: 1; }
.niche-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.niche-card p { color: var(--muted); font-size: var(--text-sm); }

/* Expansion callout — subtle, footnote-level banner below niche cards */
.expansion-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  max-width: 760px;
  margin: var(--space-8) auto 0;
  padding: var(--space-4) var(--space-6);
  background: var(--brand-light);
  border-radius: var(--radius-md);
  text-align: center;
}
.expansion-banner svg { width: 20px; height: 20px; color: var(--brand-mid); flex-shrink: 0; }
.expansion-banner span { font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }
.expansion-banner strong { color: var(--ink-80); font-weight: 500; }
@media (max-width: 640px) {
  .expansion-banner { flex-direction: column; gap: var(--space-2); }
}

/* ---------------------------------------------------------------------------
   13. Pricing
   --------------------------------------------------------------------------- */
.plan-pills { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }
.plan-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-8);
  text-align: center;
  min-width: 160px;
}
.plan-pill .name { font-size: var(--text-sm); color: rgba(255,255,255,0.8); }
.plan-pill .price { font-family: var(--font-mono); font-size: var(--text-3xl); color: #fff; margin-top: var(--space-1); }
.plan-pill.featured { background: var(--brand); border-color: var(--brand-mid); position: relative; }
.plan-pill .badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--brand-dark);
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.price-card .plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 14px; border-radius: var(--radius-full);
  white-space: nowrap;
}
.price-card .plan-name { font-family: var(--font-display); font-size: var(--text-2xl); }
.price-card .plan-price { font-family: var(--font-mono); font-size: var(--text-4xl); color: var(--brand-dark); margin: var(--space-2) 0; }
.price-card .plan-price small { font-size: var(--text-base); color: var(--subtle); font-family: var(--font-body); }
.price-card .plan-desc { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-6); min-height: 40px; }
.price-card .feature-list { margin-bottom: var(--space-8); flex-grow: 1; }
.price-card .feature-list li {
  display: flex; gap: var(--space-2); align-items: flex-start;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--ink-80);
  border-bottom: 1px solid var(--border-light);
}
.price-card .feature-list li.off { color: var(--subtle); }
.price-card .feature-list .check { color: var(--success); flex-shrink: 0; font-weight: 600; }
.price-card .feature-list .dash { color: var(--subtle); flex-shrink: 0; }

.pricing-note { text-align: center; color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-10); }
.pricing-banner {
  text-align: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-block;
  margin: 0 auto var(--space-10);
}

/* ---------------------------------------------------------------------------
   14. FAQ accordion
   --------------------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--ink);
}
.faq-q .icon { transition: transform 0.2s; flex-shrink: 0; color: var(--brand); font-size: var(--text-xl); }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { padding: 0 0 var(--space-5); color: var(--muted); max-width: 90%; }

/* ---------------------------------------------------------------------------
   15. SMS / phone mock
   --------------------------------------------------------------------------- */
.phone-mock {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  margin: 0 auto;
}
.phone-header {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: var(--space-4);
}
.phone-header strong { color: #fff; display: block; font-size: var(--text-sm); font-weight: 500; }
.bubble {
  max-width: 80%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.bubble .meta { display: block; font-size: 10px; opacity: 0.6; margin-top: var(--space-1); }
.bubble.them { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: var(--radius-sm); margin-right: auto; }
.bubble.us { background: var(--brand); color: #fff; border-bottom-right-radius: var(--radius-sm); margin-left: auto; }
.bubble.system {
  background: transparent; color: rgba(255,255,255,0.5);
  text-align: center; font-size: var(--text-xs); max-width: 100%;
  font-style: italic; margin: var(--space-1) auto var(--space-3);
}

/* ---------------------------------------------------------------------------
   16. Service blocks
   --------------------------------------------------------------------------- */
.service-block { padding: var(--space-16) 0; border-bottom: 1px solid var(--border-light); }
.service-block:last-child { border-bottom: none; }
.feature-checklist { margin-top: var(--space-6); }
.feature-checklist li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-2) 0;
  color: var(--ink-80);
}
.feature-checklist .check {
  color: var(--success); flex-shrink: 0; margin-top: 2px; font-weight: 600;
}

/* ---------------------------------------------------------------------------
   17. Comparison table
   --------------------------------------------------------------------------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.compare-table thead th { background: var(--surface-2); font-weight: 500; font-size: var(--text-sm); color: var(--ink); }
.compare-table td { font-size: var(--text-sm); color: var(--ink-80); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-bad { color: var(--muted); }
.compare-table .col-good { color: var(--ink); }

/* ---------------------------------------------------------------------------
   18. Problem cards (case study)
   --------------------------------------------------------------------------- */
.problem-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); color: var(--brand-dark); }
.problem-card p { color: var(--muted); font-size: var(--text-sm); }

/* ---------------------------------------------------------------------------
   19. Forms
   --------------------------------------------------------------------------- */
.form-field { margin-bottom: var(--space-5); }
.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-80);
  margin-bottom: var(--space-2);
}
.form-field label .req { color: var(--brand); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.form-help { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-4); }
.contact-bullets { margin-top: var(--space-8); }
.contact-bullets li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3) 0;
  color: var(--ink-80);
}
.contact-bullets .check { color: var(--brand); flex-shrink: 0; margin-top: 2px; }

/* Multi-step onboarding */
.step-indicator { display: flex; gap: var(--space-2); margin-bottom: var(--space-8); flex-wrap: wrap; }
.step-indicator .dot {
  flex: 1;
  min-width: 60px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: background 0.3s;
}
.step-indicator .dot.active { background: var(--brand); }
.step-indicator .dot.done { background: var(--brand-mid); }
.onboard-step { display: none; }
.onboard-step.active { display: block; animation: fadeIn 0.4s ease; }
.onboard-step h2 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.onboard-step .step-tag { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--brand); margin-bottom: var(--space-2); }
.onboard-nav { display: flex; justify-content: space-between; margin-top: var(--space-8); gap: var(--space-4); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.checkbox-row { display: flex; align-items: flex-start; gap: var(--space-2); margin-bottom: var(--space-3); }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { margin: 0; font-weight: 400; }
.summary-screen {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}
.summary-screen .check-circle {
  width: 72px; height: 72px;
  background: var(--success-bg); color: var(--success);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: var(--text-3xl);
}

/* ---------------------------------------------------------------------------
   20. Navigation
   --------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo svg { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { color: var(--ink-80); font-weight: 500; font-size: var(--text-sm); }
.nav-links a:hover { color: var(--brand); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

.nav-hamburger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); }
.nav-hamburger svg { width: 26px; height: 26px; }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}
.nav-mobile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-12); }
.nav-mobile-links { display: flex; flex-direction: column; gap: var(--space-2); }
.nav-mobile-links a {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  color: var(--ink);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}
.nav-mobile-links a.btn-primary {
  font-family: var(--font-body);
  font-size: var(--text-base);
  text-align: center;
  color: #fff;
  margin-top: var(--space-6);
  border-bottom: none;
}
.nav-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--ink); }

/* ---------------------------------------------------------------------------
   21. Footer
   --------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: var(--space-16) 0 var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer-col h4 { color: #fff; font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-4); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul li { margin-bottom: var(--space-2); }
.footer-col a { color: rgba(255,255,255,0.7); font-size: var(--text-sm); }
.footer-col a:hover { color: #fff; }
.footer-logo svg { height: 30px; width: auto; margin-bottom: var(--space-4); }
.footer-tag { font-size: var(--text-sm); color: rgba(255,255,255,0.6); max-width: 260px; }
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ---------------------------------------------------------------------------
   22. Animations
   --------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger-fade on page load for hero children */
.stagger > * { opacity: 0; animation: riseIn 0.6s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 100ms; }
.stagger > *:nth-child(3) { animation-delay: 200ms; }
.stagger > *:nth-child(4) { animation-delay: 300ms; }
.stagger > *:nth-child(5) { animation-delay: 400ms; }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .stagger > * { opacity: 1; animation: none; }
}

/* ---------------------------------------------------------------------------
   24. Niche landing pages
   --------------------------------------------------------------------------- */
/* Breadcrumb */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border-light); }
.breadcrumb .container { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.breadcrumb nav, .breadcrumb a { font-size: var(--text-sm); color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 var(--space-2); color: var(--subtle); }
.breadcrumb [aria-current="page"] { color: var(--ink-80); }

/* Pain strip (dark) */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.pain-item .pain-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--brand-mid);
  margin-bottom: var(--space-4);
}
.pain-item .pain-icon svg { width: 24px; height: 24px; }
.pain-item .pain-stat { font-family: var(--font-mono); font-size: var(--text-4xl); color: #fff; line-height: 1; }
.pain-item .pain-label { font-size: var(--text-sm); color: var(--brand-mid); margin: var(--space-1) 0 var(--space-4); font-weight: 500; }
.pain-item p { color: rgba(255,255,255,0.78); font-size: var(--text-sm); }

/* By the numbers — stat source note + brand-bg colors */
.section-brand .stat .num { color: #fff; }
.section-brand .stat .label { color: rgba(255,255,255,0.9); }
.stat .source { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--subtle); margin-top: var(--space-2); }
.section-brand .stat .source { color: rgba(255,255,255,0.6); }

/* Who this is for — fit / not-for-you lists */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.fit-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.fit-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) 0; color: var(--ink-80); font-size: var(--text-sm); border-bottom: 1px solid var(--border-light); }
.fit-list li:last-child { border-bottom: none; }
.fit-list .mark { flex-shrink: 0; margin-top: 1px; font-weight: 600; }
.fit-list.yes .mark { color: var(--success); }
.fit-list.no .mark { color: #c0492f; }

/* Niche cross-link section */
.niche-links { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-8); }
.niche-links a { font-weight: 500; display: inline-flex; align-items: center; gap: var(--space-1); }
.niche-callout { font-size: var(--text-sm); color: var(--muted); text-align: center; margin-bottom: var(--space-8); }
.niche-callout a { font-weight: 500; }

/* ---------------------------------------------------------------------------
   23. Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: var(--text-5xl); }
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .hero h1, .hero-light h1 { font-size: var(--text-4xl); }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .section { padding: var(--space-12) 0; }
  .hero { padding: var(--space-16) 0; }
  .hero-light { padding: var(--space-12) 0; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-art { order: -1; max-width: 280px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; gap: var(--space-8); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .fit-grid { grid-template-columns: 1fr; }

  .price-card.featured { order: -1; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-5); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .btn-row .btn-primary, .btn-row .btn-secondary, .btn-row .btn-ghost-light, .btn-row .btn-white { width: 100%; text-align: center; }
  .compare-table { font-size: var(--text-xs); }
  .compare-table th, .compare-table td { padding: var(--space-3); }
}
