/* ============================================================
   Lodestone — Design System v2.0
   Complete redesign: dark slate, Outfit geometric sans throughout
   ============================================================ */

/* ------------------------------------------------------------
   1. RESET
   ------------------------------------------------------------ */

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

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

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
input, textarea, select { font: inherit; }


/* ------------------------------------------------------------
   2. DESIGN TOKENS
   ------------------------------------------------------------ */

:root {
  /* Slate Palette */
  --bg-primary: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #1e293b;
  --bg-input: #0f172a;

  /* Borders */
  --border: #334155;
  --border-active: #475569;
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-heading: #f1f5f9;
  --text-body: #94a3b8;
  --text-muted: #64748b;
  --text-article: #cbd5e1;

  /* CTA */
  --cta-bg: #e2e8f0;
  --cta-text: #0f172a;
  --cta-hover: #f1f5f9;

  /* Semantic */
  --color-before: #fca5a5;
  --color-before-bg: rgba(239, 68, 68, 0.06);
  --color-before-border: rgba(239, 68, 68, 0.15);
  --color-after: #86efac;
  --color-after-bg: rgba(34, 197, 94, 0.06);
  --color-after-border: rgba(34, 197, 94, 0.15);
  --color-ticker-bg: rgba(239, 68, 68, 0.08);
  --color-ticker-border: rgba(239, 68, 68, 0.2);
  --color-success: #86efac;
  --color-error: #ef4444;

  /* Assessment verdict colors */
  --verdict-strong: #34d399;
  --verdict-room: #fbbf24;
  --verdict-needs: #f59e0b;
  --verdict-critical: #ef4444;

  /* Progress/accent for assessment */
  --accent-progress: #e2e8f0;

  /* Spacing (4px scale) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 120px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-pill: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(226, 232, 240, 0.08);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 150ms;
  --t-base: 200ms;
  --t-slow: 400ms;
  --t-reveal: 600ms;
}


/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-size: clamp(0.925rem, 1.4vw, 1rem);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h3 {
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.3;
}

h4 {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

p + p { margin-top: var(--space-md); }

a {
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

a:hover:not(.btn-primary):not(.btn-secondary):not(.btn-ghost):not(.nav-cta) {
  color: var(--text-heading);
}

.eyebrow {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.label {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.subtitle {
  color: var(--text-body);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  max-width: 520px;
}

.text-center .subtitle { margin-left: auto; margin-right: auto; }

/* Article body text */
.article-body {
  color: var(--text-article);
  font-size: 1rem;
  line-height: 1.85;
}


/* ------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------ */

.container       { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-narrow { max-width: 680px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-article { max-width: 620px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-wide  { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-lg); }

main { padding-top: 80px; }


/* ------------------------------------------------------------
   5. ACCESSIBILITY
   ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  z-index: 10000;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { top: var(--space-md); }

:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 3px;
}

a, button, label[for], input[type="checkbox"] {
  min-height: 44px;
  min-width: 44px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  cursor: pointer;
  transition: background var(--t-base) ease, box-shadow var(--t-base) ease, transform var(--t-base) ease;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
  gap: var(--space-sm);
}

.btn-primary:hover {
  background: var(--cta-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-heading);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 13px 28px;
  cursor: pointer;
  transition: background var(--t-base) ease, border-color var(--t-base) ease;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
  gap: var(--space-sm);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-body);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 14px 16px;
  cursor: pointer;
  transition: color var(--t-fast) ease;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
  background: none;
  border: none;
}

.btn-ghost:hover { color: var(--text-heading); }

.btn-sm {
  padding: 10px 18px;
  font-size: 0.8rem;
}

.cta-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.cta-group-center { justify-content: center; }


/* ------------------------------------------------------------
   7. CARDS
   ------------------------------------------------------------ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}

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

.card h3 { margin-bottom: var(--space-sm); }

.card p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.65;
}

.card-highlight {
  border-color: var(--border-active);
}

.card-grid {
  display: grid;
  gap: var(--space-md);
}

.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }
.card-grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ------------------------------------------------------------
   8. SECTIONS
   ------------------------------------------------------------ */

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

.section + .section {
  border-top: 1px solid var(--border-subtle);
}

.hero {
  padding: var(--space-5xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Compact hero for tool/article/guide pages */
.hero-compact {
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center top, rgba(30, 41, 59, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 { position: relative; }

.hero .subtitle {
  position: relative;
  margin: var(--space-lg) auto 0;
}

.hero .cta-group {
  position: relative;
  margin-top: var(--space-xl);
  justify-content: center;
}

.hero .proof-line {
  position: relative;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: var(--space-md);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 600px;
  margin: 0 auto;
}


/* ------------------------------------------------------------
   9. VALUE TICKER
   ------------------------------------------------------------ */

.value-ticker {
  display: inline-block;
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-after-bg);
  border: 1px solid var(--color-after-border);
  border-radius: var(--radius-lg);
  position: relative;
}

.value-ticker .eyebrow {
  margin-bottom: var(--space-sm);
  color: var(--color-after);
}

.value-ticker-number {
  color: var(--color-after);
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  display: block;
}

.value-ticker-note {
  color: var(--text-body);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  line-height: 1.5;
}

/* Legacy support */
.cost-ticker {
  display: inline-block;
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-ticker-bg);
  border: 1px solid var(--color-ticker-border);
  border-radius: var(--radius-lg);
  position: relative;
}

.cost-ticker .eyebrow { margin-bottom: var(--space-xs); }

.cost-ticker-value {
  color: var(--color-before);
  font-family: inherit;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
}

.cost-ticker-context {
  color: var(--text-body);
  font-size: 0.85rem;
  margin-left: var(--space-sm);
}

.cost-ticker-note {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: var(--space-xs);
}


/* ------------------------------------------------------------
   10. SYMPTOM CARDS
   ------------------------------------------------------------ */

.symptom-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) ease;
}

.symptom-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
}

.symptom-card h3 {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.symptom-card p {
  color: var(--text-body);
  font-size: 0.85rem;
  line-height: 1.65;
}


/* ------------------------------------------------------------
   11. STATS BAND
   ------------------------------------------------------------ */

.stats-band {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border);
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text-heading);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   12. PROCESS STEPS
   ------------------------------------------------------------ */

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.process-step {
  display: flex;
  gap: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 3px solid var(--border-active);
  transition: border-color var(--t-base) ease;
}

.process-step:hover {
  border-left-color: var(--text-heading);
}

.step-number {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-heading);
  min-width: 28px;
  flex-shrink: 0;
}

.step-content h3 { margin-bottom: var(--space-sm); }

.step-content p {
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Horizontal steps for homepage */
@media (min-width: 768px) {
  .process-steps-horizontal {
    flex-direction: row;
    gap: var(--space-md);
  }

  .process-steps-horizontal .process-step {
    flex-direction: column;
    flex: 1;
    border-left: none;
    border-top: 3px solid var(--border-active);
    text-align: center;
  }

  .process-steps-horizontal .process-step:hover {
    border-top-color: var(--text-heading);
  }

  .process-steps-horizontal .step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-active);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1rem;
  }
}


/* ------------------------------------------------------------
   13. BEFORE / AFTER
   ------------------------------------------------------------ */

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.before-card,
.after-card {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.before-card {
  background: var(--color-before-bg);
  border: 1px solid var(--color-before-border);
}

.after-card {
  background: var(--color-after-bg);
  border: 1px solid var(--color-after-border);
}

.before-card .label { color: var(--color-before); }
.after-card .label { color: var(--color-after); }

.metric-value {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-top: var(--space-sm);
  line-height: 1;
}

.metric-context {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-top: var(--space-xs);
}

.metric-description {
  font-size: 0.8rem;
  color: var(--text-body);
  margin-top: var(--space-md);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .before-after {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------------------
   14. CASE STUDY CARDS
   ------------------------------------------------------------ */

.case-study {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.case-study-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.result-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-after);
  background: var(--color-after-bg);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.case-study h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.case-study > p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}


/* ------------------------------------------------------------
   15. TESTIMONIAL
   ------------------------------------------------------------ */

.testimonial {
  background: var(--bg-card);
  border-left: 3px solid var(--border-active);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-xl);
}

.testimonial blockquote {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-heading);
}

.testimonial cite {
  display: block;
  margin-top: var(--space-md);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ------------------------------------------------------------
   16. FAQ ACCORDION
   ------------------------------------------------------------ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  color: var(--text-heading);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--t-fast) ease;
  min-height: 44px;
}

.faq-label:hover { background: rgba(255, 255, 255, 0.02); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--t-base) ease;
  flex-shrink: 0;
}

.faq-toggle:checked + .faq-label .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease-out), padding var(--t-slow) var(--ease-out);
  padding: 0 var(--space-lg);
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 300px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
}


/* ------------------------------------------------------------
   17. FORMS
   ------------------------------------------------------------ */

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-size: 0.9rem;
  transition: border-color var(--t-fast) ease;
}

.form-input:focus {
  border-color: var(--cta-bg);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  min-width: 18px;
  min-height: 18px;
  accent-color: var(--cta-bg);
}

.form-checkbox span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ------------------------------------------------------------
   18. NAVIGATION
   ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-brand span {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-heading);
  letter-spacing: 0.5px;
}

/* Legacy support for old nav-logo class */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-toggle { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 400;
  transition: color var(--t-fast) ease;
  min-height: auto;
  min-width: auto;
  text-decoration: none;
}

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

.nav-cta {
  padding: 10px 18px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  color: var(--cta-text) !important;
  min-height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  transition: transform var(--t-base) ease, opacity var(--t-base) ease;
}

@media (max-width: 767px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-slow) var(--ease-out), opacity var(--t-base) ease;
  }

  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle:checked ~ .nav-hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(3px);
  }
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(3px);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: var(--space-sm);
  }
}


/* ------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-brand-name {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
}

.footer-col-title {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-body);
  transition: color var(--t-fast) ease;
  min-height: auto;
  min-width: auto;
}

.footer-links a:hover {
  color: var(--text-heading);
}

.footer-cta p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-cta .btn-primary,
.footer-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom span,
.footer-bottom a {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-height: auto;
  min-width: auto;
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-cta {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------------------
   20. FLOATING CONTACT FORM
   ------------------------------------------------------------ */

.float-contact-btn {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: border-color var(--t-base) ease, color var(--t-base) ease;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.float-contact-btn:hover {
  border-color: var(--border-active);
  color: var(--text-heading);
}

.float-form {
  position: fixed;
  bottom: calc(var(--space-lg) + 56px);
  right: var(--space-lg);
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  z-index: 900;
  box-shadow: var(--shadow-lg);
  transform: translateY(10px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) ease;
}

.float-form.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.float-form h4 {
  font-family: inherit;
  margin-bottom: var(--space-md);
}

.float-form .form-input {
  margin-bottom: var(--space-sm);
}


/* ------------------------------------------------------------
   21. COST CALCULATOR
   ------------------------------------------------------------ */

.calculator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.calculator h3 { margin-bottom: var(--space-sm); }

.calculator-inputs {
  margin: var(--space-lg) 0;
}

.calculator-result {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.calculator-result .metric-value {
  color: var(--color-before);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  margin: var(--space-md) 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cta-bg);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cta-bg);
  cursor: pointer;
  border: none;
}


/* ------------------------------------------------------------
   22. INDUSTRY PILLS
   ------------------------------------------------------------ */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.pill {
  background: var(--bg-card);
  color: var(--text-body);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
  text-decoration: none;
  min-height: auto;
  min-width: auto;
}

.pill:hover {
  border-color: var(--border-active);
  color: var(--text-heading);
}


/* ------------------------------------------------------------
   23. ARTICLE LAYOUT
   ------------------------------------------------------------ */

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--text-muted);
  min-height: auto;
  min-width: auto;
}

.breadcrumb a:hover { color: var(--text-body); }

.breadcrumb span { margin: 0 var(--space-sm); }

.read-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.callout {
  border-left: 3px solid var(--border-active);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.callout p {
  color: var(--text-heading);
  font-size: 0.9rem;
  line-height: 1.7;
}

.article-cta {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-3xl);
}

.toc {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border);
}

.toc h4 { margin-bottom: var(--space-md); }

.toc ol {
  list-style: decimal;
  padding-left: var(--space-lg);
}

.toc li {
  margin-bottom: var(--space-sm);
}

.toc a {
  font-size: 0.9rem;
  color: var(--text-body);
  min-height: auto;
  min-width: auto;
}


/* ------------------------------------------------------------
   24. EVENTS
   ------------------------------------------------------------ */

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
}

.event-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
}

.event-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.event-title {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.event-details {
  font-size: 0.85rem;
  color: var(--text-body);
}

.event-price {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-top: var(--space-xs);
}


/* ------------------------------------------------------------
   25. ASSESSMENT (Override tokens)
   ------------------------------------------------------------ */

.quiz-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.quiz-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent-progress);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.quiz-progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 110px;
  text-align: right;
}

.quiz-question { display: none; }
.quiz-question.active { display: block; }

.quiz-question h3 {
  font-family: inherit;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-heading);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.quiz-option {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  transition: border-color var(--t-base) ease, background var(--t-base) ease;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.02);
}

.quiz-option.selected {
  border-color: var(--cta-bg);
  background: rgba(226, 232, 240, 0.05);
  color: var(--text-heading);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2xl);
  gap: var(--space-md);
}

.quiz-nav .btn-ghost {
  min-width: auto;
  min-height: auto;
  padding: 10px 20px;
}

/* Results */
.quiz-results { display: none; text-align: center; }
.quiz-results.active { display: block; }

.score-display { margin: var(--space-2xl) 0; }

.score-number {
  font-family: inherit;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--cta-bg);
  line-height: 1;
}

.score-label-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.score-range-label {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-xl);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-full);
  background: rgba(226, 232, 240, 0.05);
}

.score-description {
  max-width: 600px;
  margin: var(--space-xl) auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  text-align: left;
}

.category-scores {
  max-width: 560px;
  margin: var(--space-2xl) auto;
  text-align: left;
}

.category-score { margin-bottom: var(--space-lg); }

.category-score-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
}

.category-score-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
}

.category-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cta-bg);
}

.category-bar {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.category-fill {
  height: 100%;
  background: var(--cta-bg);
  border-radius: var(--radius-full);
  transition: width 1s ease;
  width: 0;
}

.category-verdict {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-verdict.verdict-strong { color: var(--verdict-strong); }
.category-verdict.verdict-room { color: var(--verdict-room); }
.category-verdict.verdict-needs { color: var(--verdict-needs); }
.category-verdict.verdict-critical { color: var(--verdict-critical); }

.results-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.results-action {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: left;
}

.results-action h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.results-action p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: var(--space-lg);
}

.results-action-primary {
  border-color: var(--border-active);
}

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

.quiz-intro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.quiz-intro-feature { text-align: center; }

.quiz-intro-feature strong {
  display: block;
  color: var(--cta-bg);
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.quiz-intro-feature span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-success { display: none; text-align: center; padding: var(--space-xl); color: var(--text-body); }
.form-success.active { display: block; }

@media (max-width: 767px) {
  .quiz-intro-features { grid-template-columns: 1fr; gap: var(--space-md); }
  .results-actions { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}


/* ------------------------------------------------------------
   26. SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
[data-reveal-stagger] > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(2) { transition-delay: 100ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(4) { transition-delay: 300ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(5) { transition-delay: 400ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(6) { transition-delay: 500ms; }

/* Hero load animation */
[data-hero-reveal] {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 0.8s var(--ease-out) forwards;
}

[data-hero-reveal="1"] { animation-delay: 0ms; }
[data-hero-reveal="2"] { animation-delay: 150ms; }
[data-hero-reveal="3"] { animation-delay: 300ms; }
[data-hero-reveal="4"] { animation-delay: 450ms; }
[data-hero-reveal="5"] { animation-delay: 600ms; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient background animation for hero */
.hero-gradient-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(ellipse at 30% 20%, rgba(30, 41, 59, 0.4) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(15, 23, 42, 0.3) 0%, transparent 50%);
  animation: gradientShift 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(2%, -1%); }
  66% { transform: translate(-1%, 2%); }
}

/* Link underline animation */
.link-slide {
  position: relative;
  display: inline-block;
  color: var(--text-body);
  min-height: auto;
  min-width: auto;
}

.link-slide::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-body);
  transition: width var(--t-base) var(--ease-out);
}

.link-slide:hover::after {
  width: 100%;
}


/* ------------------------------------------------------------
   27. UTILITY CLASSES
   ------------------------------------------------------------ */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-heading { color: var(--text-heading); }
.text-small { font-size: 0.85rem; }

.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.proof-point {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}


/* ------------------------------------------------------------
   28. CALENDLY EMBED
   ------------------------------------------------------------ */

.calendly-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 600px;
}

.calendly-container iframe {
  width: 100%;
  border: none;
}

@media (min-width: 768px) {
  .calendly-container { min-height: 750px; }
}


/* ------------------------------------------------------------
   29. REDUCED MOTION
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  [data-hero-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-gradient-bg { animation: none; }
}


/* ------------------------------------------------------------
   30. PRINT
   ------------------------------------------------------------ */

@media print {
  .nav, .skip-link, .float-contact-btn, .float-form, .btn-primary, .btn-secondary { display: none; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4, h5, h6 { color: #000; }
  main { padding-top: 0; }
  .hero::before { display: none; }
}


/* ------------------------------------------------------------
   31. ADDITIONAL RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 480px) {
  .hero { padding: var(--space-4xl) 0 var(--space-3xl); }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-group .btn-primary,
  .cta-group .btn-secondary {
    text-align: center;
  }

  .stats-band {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat-divider {
    width: 60%;
    height: 1px;
  }

  .process-steps-horizontal {
    flex-direction: column;
  }

  .process-steps-horizontal .process-step {
    border-top: none;
    border-left: 3px solid var(--border-active);
    text-align: left;
  }

  .process-steps-horizontal .step-number {
    margin: 0 0 var(--space-sm) 0;
  }
}


/* ------------------------------------------------------------
   32. GLOBAL ALIGNMENT & SPACING FIXES
   Ensures consistent centering, gaps, and text alignment
   ------------------------------------------------------------ */

/* Ensure all section headings in text-center context center subtitles */
.text-center h2 + .subtitle,
.text-center h2 + p.subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Consistent card internal spacing */
.card h3 + p,
.symptom-card h3 + p,
.case-study h3 + p {
  margin-top: var(--space-sm);
}

/* Consistent spacing between stacked case studies */
.case-study + .case-study {
  margin-top: var(--space-lg);
}

/* Ensure cards in grids have equal heights */
.card-grid .card,
.card-grid .symptom-card,
.card-grid .event-card {
  display: flex;
  flex-direction: column;
}

.card-grid .card p:last-child,
.card-grid .symptom-card p:last-child {
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* Consistent gaps between major sections */
.section h2 {
  margin-bottom: var(--space-lg);
}

.section h2 + .subtitle {
  margin-bottom: var(--space-xl);
}

/* CTA sections consistent padding */
.article-cta h3,
.article-cta h2 {
  margin-bottom: var(--space-sm);
}

.article-cta p {
  margin-bottom: var(--space-lg);
}

/* Ensure process step content fills space */
.process-step .step-content {
  flex: 1;
}

/* Footer links consistent vertical spacing */
.footer-links a + a {
  margin-top: 0;
}

/* Ensure event cards have consistent internal layout */
.event-card + .event-card {
  margin-top: var(--space-sm);
}

/* Calculator consistent spacing */
.calculator p {
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.65;
}

.calculator label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

/* Ensure breadcrumb and read-time align */
.breadcrumb + h1 {
  margin-top: var(--space-sm);
}

h1 + .read-time {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

/* Callout spacing in article context */
.article-body .callout {
  margin: var(--space-xl) 0;
}

.article-body h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-body p {
  margin-bottom: var(--space-md);
}

.article-body p:last-child {
  margin-bottom: 0;
}

/* Pill list in footer context */
.footer .pill {
  font-size: 0.75rem;
  padding: 4px 10px;
}

/* TOC internal spacing */
.toc ol li + li {
  margin-top: var(--space-xs);
}

/* Ensure inline styles from pages don't break centering */
[style*="margin-left:auto"] {
  margin-right: auto !important;
}

/* Consistent button vertical alignment in CTA groups */
.cta-group .btn-primary,
.cta-group .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Fix any orphaned section spacing */
main > .section:first-child {
  padding-top: var(--space-3xl);
}

/* Responsive text alignment fixes */
@media (max-width: 767px) {
  .hero h1 br {
    display: none;
  }

  .case-study-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .event-card-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  .cost-ticker {
    display: block;
    text-align: center;
  }

  .cost-ticker-context {
    display: block;
    margin-left: 0;
    margin-top: var(--space-xs);
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow,
  .container-article {
    padding: 0 var(--space-md);
  }

  .card,
  .symptom-card,
  .case-study,
  .event-card,
  .calculator {
    padding: var(--space-lg);
  }

  .process-step {
    padding: var(--space-md);
  }

  .stats-band {
    padding: var(--space-lg);
  }

  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }
}


/* ============================================================
   33. LEAD GENERATION COMPONENTS
   ============================================================ */

/* Content Gate — blur overlay for articles/guides */
.content-gate-wrapper {
  position: relative;
}

.content-gate-wrapper.gated .gated-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

.content-gate-wrapper.gated .gated-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.content-gate-wrapper.ungated .content-gate-overlay {
  display: none;
}

.content-gate-overlay {
  position: relative;
  margin-top: calc(-1 * var(--space-3xl));
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  z-index: 10;
}

.content-gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 440px;
  margin: 0 auto;
}

.content-gate-card h3 {
  margin-bottom: var(--space-sm);
}

.content-gate-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.content-gate-card .form-input {
  margin-bottom: var(--space-sm);
}

.content-gate-card .gate-privacy {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  line-height: 1.5;
}

.content-gate-card .gate-privacy a {
  color: var(--text-muted);
  text-decoration: underline;
  min-height: auto;
  min-width: auto;
}

/* Content Upgrade — mid-article bonus offer */
.content-upgrade {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  text-align: center;
}

.content-upgrade h4 {
  margin-bottom: var(--space-xs);
}

.content-upgrade p {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: var(--space-md);
}

.content-upgrade-inline {
  display: flex;
  gap: var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
}

.content-upgrade-inline .form-input {
  flex: 1;
}

.content-upgrade-success {
  color: var(--color-after);
  font-weight: 600;
  font-size: 0.9rem;
  padding: var(--space-md) 0;
}

@media (max-width: 480px) {
  .content-upgrade-inline {
    flex-direction: column;
  }
}

/* Email Course Card */
.email-course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.email-course-card h3 {
  margin-bottom: var(--space-sm);
}

.email-course-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.email-course-inline {
  display: flex;
  gap: var(--space-sm);
}

.email-course-inline .form-input {
  flex: 1;
}

@media (max-width: 480px) {
  .email-course-inline {
    flex-direction: column;
  }
}

/* Calculator Gate */
.calc-gate {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  text-align: center;
}

.calc-gate p {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: var(--space-md);
}

.calc-gate-inline {
  display: flex;
  gap: var(--space-sm);
  max-width: 400px;
  margin: 0 auto;
}

.calc-gate-inline .form-input {
  flex: 1;
}

@media (max-width: 480px) {
  .calc-gate-inline {
    flex-direction: column;
  }
}

/* Footer Email Capture */
.footer-email-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer-email-form .form-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.8rem;
  min-height: auto;
}

.footer-email-form .btn-primary {
  padding: 10px 16px;
  font-size: 0.75rem;
  min-height: auto;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .footer-email-form {
    flex-direction: column;
  }
}

/* Exit Intent Overlay */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) ease;
}

.exit-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.exit-overlay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 440px;
  text-align: center;
  position: relative;
}

.exit-overlay-card h3 {
  margin-bottom: var(--space-sm);
}

.exit-overlay-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.exit-overlay-dismiss {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: var(--space-md);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  min-height: auto;
  min-width: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Industry Lead Magnet */
.lead-magnet {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.lead-magnet h3 {
  margin-bottom: var(--space-sm);
}

.lead-magnet p {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.lead-magnet-inline {
  display: flex;
  gap: var(--space-sm);
}

.lead-magnet-inline .form-input {
  flex: 1;
}

@media (max-width: 480px) {
  .lead-magnet-inline {
    flex-direction: column;
  }
}
