/* ============================================================
   ADVERTISER.COM — Master Stylesheet
   Productized paid advertising for HVAC, plumbing, and electrical

   Design references:
   - RevenueCat hero (centered badge + headline + dual CTAs)
   - Fourthwall two-plan pricing (floating badge, feature list)
   - Trulia calculator layout (asymmetric split, bold results)
   - Mercury FAQ (tinted bg, thin dividers, chevron rotation)
   - Shopify B2B dark section (left-aligned, asymmetric)
   - Instacart editorial calculator (warm spacing, card results)
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   0. RESET
   ──────────────────────────────────────────────────────────── */

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

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

body {
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  padding: 0;
}

[hidden] {
  display: none !important;
}


/* ────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ──────────────────────────────────────────────────────────── */

:root {
  /* Color palette */
  --color-primary: #10b981;
  --color-primary-hover: #059669;
  --color-primary-light: #d1fae5;
  --color-primary-lightest: #ecfdf5;
  --color-secondary: #0f172a;
  --color-secondary-light: #1e293b;
  --color-secondary-mid: #334155;
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-error-light: #fef2f2;
  --color-warning: #f59e0b;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'Cascadia Code', monospace;

  /* Font sizes — deliberate scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md: 1.0625rem;    /* 17px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 2rem;        /* 32px */
  --text-4xl: 2.5rem;      /* 40px */
  --text-5xl: 3.25rem;     /* 52px */
  --text-6xl: 3.75rem;     /* 60px */

  /* Spacing */
  --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;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --max-width-prose: 640px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-btn: 0 1px 3px rgba(16, 185, 129, 0.15), 0 1px 2px rgba(16, 185, 129, 0.1);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Header height for offset */
  --header-height: 72px;
}


/* ────────────────────────────────────────────────────────────
   2. BASE TYPOGRAPHY
   ──────────────────────────────────────────────────────────── */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* ────────────────────────────────────────────────────────────
   3. LAYOUT UTILITIES
   ──────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.max-w-prose {
  max-width: var(--max-width-prose);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Section rhythm — generous vertical spacing */
.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section--surface {
  background-color: var(--color-surface);
}

.section--dark {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark strong {
  color: #ffffff;
}

.section--dark p {
  color: #cbd5e1;
}

/* Section header — centered by default for main Pattern B pages */
.section-header {
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  line-height: 1.6;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header--light h2 {
  color: #ffffff;
}

.section-header--light p {
  color: #cbd5e1;
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Utility spacing */
.mb-2 { margin-bottom: var(--space-4); }
.mb-4 { margin-bottom: var(--space-8); }
.mt-3 { margin-top: var(--space-6); }
.mt-4 { margin-top: var(--space-8); }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--color-text-muted); }


/* ────────────────────────────────────────────────────────────
   4. BUTTONS
   ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — green pill (STEAL #1, #4: pill-shaped CTAs with shadow) */
.btn-primary,
.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover,
.btn--primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Secondary — dark fill */
.btn--secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
  border-color: var(--color-secondary);
}

.btn--secondary:hover {
  background-color: var(--color-secondary-light);
  border-color: var(--color-secondary-light);
}

/* Outline — thin border with dark text */
.btn-outline,
.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover,
.btn--outline:hover {
  background-color: var(--color-surface);
  border-color: var(--color-text-muted);
}

/* Outline light — for dark backgrounds */
.btn-outline-light,
.btn--outline-light {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover,
.btn--outline-light:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* White button — for dark backgrounds */
.btn-white {
  background-color: #ffffff;
  color: var(--color-secondary);
  border-color: #ffffff;
}

.btn-white:hover {
  background-color: #f1f5f9;
  border-color: #f1f5f9;
}

/* Ghost — text-only */
.btn-ghost,
.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover,
.btn--ghost:hover {
  color: var(--color-text-secondary);
  background: var(--color-surface);
}

/* Size modifiers */
.btn-sm,
.btn--sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1rem;
}

.btn-lg,
.btn--lg {
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
}

.btn-block {
  display: flex;
  width: 100%;
}


/* ────────────────────────────────────────────────────────────
   5. HEADER / NAV — Pattern B (index, process, who-its-for,
   faq, contact, thank-you, resources, roi-calculator, legal)
   ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    margin: 0 auto;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Compensate for fixed header */
  main {
    padding-top: var(--header-height);
  }

  /* Homepage cinematic hero doesn't need extra padding */
  .hero-cinematic {
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(var(--header-height) + 60px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  gap: var(--space-8);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.main-nav {
  display: none;
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-text);
  background-color: var(--color-surface);
}

.nav-link.active {
  color: var(--color-text);
  font-weight: 600;
}

.header-cta {
  display: none;
}

.nav-cta {
  display: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--color-surface);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-fast) ease;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay (legal pages pattern) */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding-top: var(--header-height);
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav-overlay nav {
  background: var(--color-bg);
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.mobile-nav-list a:hover {
  background-color: var(--color-surface);
  color: var(--color-text);
}

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


/* ────────────────────────────────────────────────────────────
   5b. HEADER — Pattern A (services.html, plans.html)
   Uses BEM naming: .header, .header__inner, .header__logo, etc.
   ──────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.header__logo {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo span {
  color: var(--color-primary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header__nav-links {
  display: none;
}

.header__nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.header__nav-links a:hover {
  color: var(--color-text);
  background-color: var(--color-surface);
}

.header__nav-links a.active {
  color: var(--color-text);
  font-weight: 600;
}

.header__nav .btn {
  display: none;
}

.header__nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) ease;
}

.header__nav-toggle:hover {
  background-color: var(--color-surface);
}

.header__nav-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
}


/* ────────────────────────────────────────────────────────────
   6. HERO SECTION (Homepage — Pattern B)
   STEAL #5: Shopify B2B dark section — left-aligned, asymmetric,
   navy background, accent-colored CTA
   ──────────────────────────────────────────────────────────── */

.hero {
  background-color: var(--color-secondary);
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

/* Subtle texture via gradient overlay — NOT a purple gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 70% 20%,
    rgba(16, 185, 129, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
  /* STEAL #5: Left-aligned, not centered. Asymmetric feel. */
}

/* STEAL #1: RevenueCat badge — pill above headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-8);
}

.hero-headline {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: var(--space-6);
}

.hero-subhead {
  font-size: var(--text-lg);
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: var(--space-10);
  max-width: 560px;
}

/* STEAL #1: Two CTAs side by side — filled primary + outline secondary */
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-actions .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-actions .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}


/* ────────────────────────────────────────────────────────────
   7. TRUST STRIP
   STEAL #5: Horizontal items, subtle, not cards
   ──────────────────────────────────────────────────────────── */

.trust-strip {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
  background-color: var(--color-bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.trust-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}


/* ────────────────────────────────────────────────────────────
   8. SERVICES SECTION (Homepage)
   ──────────────────────────────────────────────────────────── */

.services-section {
  padding: var(--space-24) 0;
  background-color: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-lightest);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.service-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
}


/* ────────────────────────────────────────────────────────────
   9. PLANS SECTION (Homepage)
   STEAL #2: Fourthwall two-plan pricing — floating badge,
   generous gap, checkmark list
   ──────────────────────────────────────────────────────────── */

.plans-section {
  padding: var(--space-24) 0;
  background-color: var(--color-bg);
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 880px;
  margin: 0 auto;
}

.plan-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  position: relative;
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.plan-card:hover {
  box-shadow: var(--shadow-md);
}

/* STEAL #2: Recommended card — green border + floating badge */
.plan-card--recommended {
  border-color: var(--color-primary);
  border-width: 2px;
}

/* STEAL #2: Floating badge that overlaps the card border */
.plan-badge,
.plan-card__badge {
  position: absolute;
  top: -13px;
  left: var(--space-8);
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--color-primary);
  padding: 0.3125rem 0.875rem;
  border-radius: var(--radius-pill);
}

.plan-header {
  margin-bottom: var(--space-8);
}

.plan-name,
.plan-card__name {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.plan-desc,
.plan-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Checkmark feature list */
.plan-features,
.plan-card__features {
  margin: var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.plan-features li,
.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.plan-features li::before,
.plan-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 9L7.5 12.5L14 5.5' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Hide the inline SVG check icons — we use CSS pseudo-elements instead for consistency */
.check-icon {
  display: none;
}

.plan-best-for,
.plan-card__best-for {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.plan-card__cta {
  margin-top: var(--space-6);
}

.plan-card__cta .btn {
  width: 100%;
}

/* Enterprise strip (homepage) */
.enterprise-strip {
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-secondary);
  border-radius: var(--radius-xl);
  text-align: center;
}

.enterprise-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.enterprise-text {
  color: #cbd5e1;
  font-size: var(--text-base);
}

/* Enterprise note (plans page) */
.enterprise-note {
  margin-top: var(--space-12);
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.enterprise-note p {
  max-width: 540px;
  font-size: var(--text-base);
}


/* ────────────────────────────────────────────────────────────
   10. QUALIFICATION SECTION (Homepage — Who It's For)
   ──────────────────────────────────────────────────────────── */

.qualification-section {
  padding: var(--space-24) 0;
  background-color: var(--color-surface);
}

.qualification-image {
  display: none;
}

.qualification-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 1024px) {
  .qualification-image {
    display: block;
  }

  .qualification-section .container {
    display: flex;
    gap: 48px;
    align-items: center;
  }

  .qualification-content {
    flex: 1;
  }

  .qualification-image {
    flex: 0 0 380px;
    max-height: 500px;
    overflow: hidden;
    border-radius: 12px;
  }
}

.qualification-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 880px;
}

.qualification-col {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.qualification-heading {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.qualification-heading--fit {
  color: var(--color-primary);
}

.qualification-heading--nofit {
  color: var(--color-error);
}

.qualification-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.qualification-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.qual-icon {
  flex-shrink: 0;
  margin-top: 1px;
}


/* ────────────────────────────────────────────────────────────
   11. PROCESS SECTION (Homepage)
   STEAL #5: Shopify dark section — left-aligned
   ──────────────────────────────────────────────────────────── */

.process-section {
  padding: var(--space-24) 0;
  background-color: var(--color-secondary);
  color: #ffffff;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 640px;
}

.process-step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-secondary);
  background: var(--color-primary);
  border-radius: var(--radius-pill);
}

.step-content h3 {
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.step-content p {
  color: #94a3b8;
  font-size: var(--text-sm);
  line-height: 1.6;
}


/* ────────────────────────────────────────────────────────────
   12. ROI CALCULATOR SECTION (Homepage)
   STEAL #3 + #6: Trulia/Instacart — asymmetric split,
   bold results, editorial spacing
   ──────────────────────────────────────────────────────────── */

.calculator-section {
  padding: var(--space-24) 0;
  background-color: var(--color-surface);
}

.calculator-container {
  margin-top: var(--space-8);
}

.calculator-cta {
  margin-top: var(--space-10);
  text-align: center;
}

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

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

.calculator-noscript ul {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
  list-style: disc;
}

.calculator-noscript li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.calculator-noscript p {
  margin-bottom: var(--space-4);
}


/* ────────────────────────────────────────────────────────────
   13. LEAD QUALITY SECTION (Homepage)
   ──────────────────────────────────────────────────────────── */

.lead-quality-section {
  padding: var(--space-24) 0;
  background-color: var(--color-bg);
}

.lead-quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: 1080px;
  margin: 0 auto;
}

.lead-quality-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}

.lead-quality-card:last-child {
  border-bottom: none;
}

.lead-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.lead-quality-card p {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-secondary);
}


/* ────────────────────────────────────────────────────────────
   14. FAQ SECTION (Homepage + FAQ page)
   STEAL #4: Mercury — tinted bg, thin dividers, comfortable
   reading width, chevron rotation
   ──────────────────────────────────────────────────────────── */

.faq-section {
  padding: var(--space-24) 0;
  background-color: var(--color-surface);
}

.faq-list {
  max-width: var(--max-width-narrow);
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

/* Trigger button — full-width, aligned */
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: var(--space-4);
}

.faq-trigger:hover .faq-question,
.faq-trigger:hover span:first-child {
  color: var(--color-text);
}

.faq-question {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

/* Chevron/plus icon — rotate on open */
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--duration-normal) var(--ease-out), color var(--duration-fast) ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

/* Plans page faq-icon is text "+", not SVG */
[data-faq-icon] {
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1;
  color: var(--color-text-muted);
  transition: transform var(--duration-normal) var(--ease-out), color var(--duration-fast) ease;
}

[data-faq-trigger][aria-expanded="true"] [data-faq-icon] {
  transform: rotate(45deg);
  color: var(--color-primary);
}

/* FAQ answer — collapse/expand */
.faq-answer,
.faq-content {
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-answer p,
.faq-content .faq-answer {
  padding-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: var(--max-width-prose);
}

/* When open (JS removes hidden) */
.faq-answer:not([hidden]),
.faq-content:not([hidden]) {
  display: block;
}


/* ────────────────────────────────────────────────────────────
   15. FINAL CTA SECTION (shared across many pages)
   Dark background, centered content
   ──────────────────────────────────────────────────────────── */

.final-cta-section {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  color: #fff;
  text-align: center;
}

.final-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.final-cta-content h2 {
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.final-cta-content p {
  color: #94a3b8;
  font-size: var(--text-lg);
  margin-bottom: var(--space-10);
  line-height: 1.6;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.final-cta-actions .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.final-cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}


/* ────────────────────────────────────────────────────────────
   16. INNER PAGE HERO (Pattern B — process, who-its-for,
   faq, contact, roi-calculator, resources)
   ──────────────────────────────────────────────────────────── */

.inner-hero {
  padding: 80px 0 60px;
  background-color: var(--color-bg);
}

.inner-hero--bg {
  padding: 80px 0 60px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.inner-hero--bg .container {
  width: 100%;
}

@media (min-width: 768px) {
  .inner-hero,
  .inner-hero--bg {
    padding: 100px 0 72px;
    min-height: 380px;
  }

  .page-hero,
  .page-hero--with-bg {
    padding: 100px 0 72px;
    min-height: 380px;
  }
}

.inner-hero h1,
.inner-hero--bg h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
  max-width: 640px;
}

.hero-intro,
.inner-hero .hero-intro,
.inner-hero--bg .hero-intro {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 600px;
}

/* Canonical breadcrumb styling */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: #fff;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.85);
}

/* For pages WITHOUT background image, breadcrumbs use dark colors */
.inner-hero:not(.inner-hero--bg) .breadcrumb-nav a {
  color: var(--color-text-muted, #94a3b8);
}

.inner-hero:not(.inner-hero--bg) .breadcrumb-nav a:hover {
  color: var(--color-text-primary, #0f172a);
}

.inner-hero:not(.inner-hero--bg) .breadcrumb-sep {
  color: var(--color-border, #e2e8f0);
}

.inner-hero:not(.inner-hero--bg) .breadcrumb-current {
  color: var(--color-text-secondary, #475569);
}


/* ────────────────────────────────────────────────────────────
   16b. INNER PAGE HERO — Pattern A (services.html, plans.html)
   ──────────────────────────────────────────────────────────── */

.page-hero {
  padding: 80px 0 60px;
  background-color: var(--color-bg);
}

.page-hero--with-bg {
  padding: 80px 0 60px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.page-hero .container,
.page-hero--with-bg .container {
  width: 100%;
}

.page-hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
  max-width: 680px;
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

/* Legacy breadcrumb patterns removed — all pages now use .breadcrumb-nav */


/* ────────────────────────────────────────────────────────────
   17. PROCESS PAGE — Detailed Steps
   ──────────────────────────────────────────────────────────── */

.process-steps-detailed {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 740px;
}

.process-step-detailed {
  display: flex;
  gap: var(--space-6);
  padding-bottom: var(--space-10);
}

.process-step-detailed:last-child {
  padding-bottom: 0;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-number-circle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: #ffffff;
  background-color: var(--color-primary);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.step-connector {
  width: 2px;
  flex: 1;
  background-color: var(--color-border);
  margin-top: var(--space-3);
  min-height: 40px;
}

.step-body {
  padding-top: var(--space-2);
}

.step-body h3 {
  margin-bottom: var(--space-3);
}

.step-body p {
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.step-details-list {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
  list-style: disc;
}

.step-details-list li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.step-details-list li::marker {
  color: var(--color-primary);
}


/* ────────────────────────────────────────────────────────────
   18. PROCESS PAGE — Timeline Cards
   ──────────────────────────────────────────────────────────── */

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.timeline-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.timeline-card:hover {
  box-shadow: var(--shadow-sm);
}

.timeline-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.timeline-card h4 {
  margin-bottom: var(--space-3);
}

.timeline-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
}


/* ────────────────────────────────────────────────────────────
   19. WHO-ITS-FOR PAGE — Qualification Grid & Verticals
   ──────────────────────────────────────────────────────────── */

.qual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 880px;
}

.qual-column {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.qual-column h3 {
  margin-bottom: var(--space-6);
}

.qual-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.qual-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.qual-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  margin-top: 1px;
}

.qual-check--good {
  background: var(--color-primary-lightest);
}

.qual-check--bad {
  background: var(--color-error-light);
}

.qual-item-text {
  flex: 1;
}

/* Verticals grid */
.verticals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.vert-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.vert-card:hover {
  box-shadow: var(--shadow-sm);
}

.vert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  margin-bottom: 16px;
}

.vert-icon svg {
  display: block;
}

.vert-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.vert-card h4 {
  margin-bottom: var(--space-3);
}

.vert-card p {
  font-size: var(--text-sm);
  line-height: 1.65;
}


/* ────────────────────────────────────────────────────────────
   20. SERVICES PAGE — Detailed Services (Pattern A)
   ──────────────────────────────────────────────────────────── */

.service-detail {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-lightest);
  border-radius: var(--radius-lg);
}

.service-detail__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.service-detail__content h3 {
  margin-bottom: var(--space-3);
}

.service-detail__content p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.service-detail__bullets {
  padding-left: var(--space-6);
  list-style: disc;
}

.service-detail__bullets li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.service-detail__bullets li::marker {
  color: var(--color-primary);
}

/* Not-included list */
.not-included-list {
  padding-left: var(--space-6);
  list-style: disc;
  max-width: 640px;
}

.not-included-list li {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.not-included-list li::marker {
  color: var(--color-error);
}


/* ────────────────────────────────────────────────────────────
   21. SERVICES PAGE — Vertical Cards (Pattern A)
   ──────────────────────────────────────────────────────────── */

.vertical-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.vertical-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--duration-normal) ease;
}

.vertical-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.vertical-card__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.vertical-card h3 {
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.vertical-card p {
  font-size: var(--text-sm);
  color: #94a3b8;
  line-height: 1.65;
}


/* ────────────────────────────────────────────────────────────
   22. CTA BAND (services/plans pages — Pattern A)
   ──────────────────────────────────────────────────────────── */

.cta-band {
  text-align: center;
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  color: #fff;
}

.cta-band h2 {
  color: #ffffff;
  margin-bottom: var(--space-4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band p {
  color: #94a3b8;
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}


/* ────────────────────────────────────────────────────────────
   23. CONTACT PAGE — Form
   ──────────────────────────────────────────────────────────── */

.form-section {
  padding: 64px 0 var(--space-24);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: 880px;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.required {
  color: var(--color-error);
}

/* Inputs — STEAL #3: clean, tall, visible labels, green focus */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  height: 50px;
}

.form-textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit-row {
  margin-top: var(--space-6);
}

.form-submit-row .btn {
  width: 100%;
}

.form-privacy {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-privacy a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact aside */
.contact-aside {
  padding-top: var(--space-4);
}

.contact-aside h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.contact-aside p {
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.contact-aside a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ────────────────────────────────────────────────────────────
   24. THANK YOU PAGE
   ──────────────────────────────────────────────────────────── */

.thankyou {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-10) 0;
}

.thankyou__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-lightest);
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-6);
}

.thankyou h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.thankyou > p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.thankyou__steps {
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.thankyou__steps h3 {
  margin-bottom: var(--space-5);
}

.thankyou__step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.thankyou__step:last-child {
  margin-bottom: 0;
}

.thankyou__step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-lightest);
  border-radius: var(--radius-pill);
}

.thankyou__step p {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.thankyou__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}


/* ────────────────────────────────────────────────────────────
   25. RESOURCES PAGE
   ──────────────────────────────────────────────────────────── */

.resources-section {
  padding: 0 0 var(--space-24);
}

.resource-categories {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.resource-tag {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.resource-tag:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.resource-tag--active {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #ffffff;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.resource-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}

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

.resource-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-lightest);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.resource-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.resource-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.resource-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.resource-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--duration-fast) ease;
}

.resource-card__link:hover {
  color: var(--color-primary-hover);
}

.resource-card__link::after {
  content: '\2192';
  transition: transform var(--duration-fast) ease;
}

.resource-card__link:hover::after {
  transform: translateX(3px);
}


/* ────────────────────────────────────────────────────────────
   26. ROI CALCULATOR — Rendered by calculator.js
   STEAL #3 + #6: Asymmetric two-column, bold results card
   ──────────────────────────────────────────────────────────── */

/* Mode toggle — STEAL #3: chip/toggle buttons */
.calc-mode-toggle {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: var(--space-1);
  width: fit-content;
  border: 1px solid var(--color-border);
}

.calc-mode-btn {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  transition: all var(--duration-fast) ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.calc-mode-btn:hover {
  color: var(--color-text);
}

.calc-mode-active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* STEAL #3: Two-column layout — inputs left, results right */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.calc-inputs {
  order: 1;
}

.calc-helper-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  font-style: italic;
  line-height: 1.6;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.calc-fieldset {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.calc-legend {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border-light);
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.calc-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.calc-optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.calc-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  height: 46px;
}

.calc-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.calc-input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.calc-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.calc-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  min-height: 1em;
}

/* Results panel — STEAL #3: stronger visual weight than inputs */
.calc-results {
  order: 2;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  align-self: start;
}

.calc-results-heading {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.calc-results-placeholder {
  text-align: center;
  padding: var(--space-10) 0;
}

.calc-results-placeholder p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.calc-results-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.calc-result-row:last-child {
  border-bottom: none;
}

.calc-result-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.calc-result-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.calc-result-negative .calc-result-value {
  color: var(--color-error);
}

.calc-results-cta {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
}

.calc-btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn);
}

.calc-btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.calc-btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.calc-btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-text-muted);
}

/* Calculator disclaimer */
.calc-disclaimer {
  margin-top: var(--space-8);
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.calc-disclaimer p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* NoScript fallback */
.noscript-fallback {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.noscript-fallback h3 {
  margin-bottom: var(--space-4);
}

.noscript-fallback ul {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
  list-style: disc;
}

.noscript-fallback li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.noscript-fallback p {
  margin-bottom: var(--space-4);
}

/* Assumptions grid (roi-calculator page) */
.assumptions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.assumptions-grid > div {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}

.assumptions-grid > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.assumptions-grid h4 {
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}

.assumptions-grid p {
  font-size: var(--text-sm);
  line-height: 1.65;
}


/* ────────────────────────────────────────────────────────────
   27. LEGAL PAGES
   ──────────────────────────────────────────────────────────── */

.legal-page {
  padding: var(--space-16) 0 var(--space-24);
}

.legal-page h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.legal-updated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

.legal-page h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-page h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-page p {
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.legal-page ul,
.legal-page ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-page ul {
  list-style: disc;
}

.legal-page ol {
  list-style: decimal;
}

.legal-page li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ────────────────────────────────────────────────────────────
   28. FOOTER — Pattern B (majority of pages)
   ──────────────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--color-secondary);
  color: #cbd5e1;
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: var(--space-3);
}

.logo-img {
  display: block;
  height: 32px;
  width: auto;
}

.footer-logo-img {
  display: block;
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: #94a3b8;
  line-height: 1.6;
}

.footer-contact {
  font-size: var(--text-sm);
  color: #94a3b8;
  margin-top: var(--space-2);
}

.footer-contact a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact a:hover {
  color: var(--color-primary-hover);
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}

.footer-nav-list a {
  font-size: var(--text-sm);
  color: #94a3b8;
  transition: color var(--duration-fast) ease;
}

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

.footer-nav-group h4,
.footer-nav-group h5 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-group a {
  font-size: var(--text-sm);
  color: #94a3b8;
  transition: color var(--duration-fast) ease;
}

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

.footer-legal {
  margin-top: var(--space-6);
}

.footer-legal-list {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-3);
}

.footer-legal-list a {
  font-size: var(--text-xs);
  color: #64748b;
  transition: color var(--duration-fast) ease;
}

.footer-legal-list a:hover {
  color: #94a3b8;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: #475569;
}

.footer-bottom {
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: #475569;
}

.footer-bottom a {
  color: #64748b;
  transition: color var(--duration-fast) ease;
}

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


/* ────────────────────────────────────────────────────────────
   28b. FOOTER — Pattern A (services.html, plans.html)
   ──────────────────────────────────────────────────────────── */

.footer {
  background-color: var(--color-secondary);
  color: #cbd5e1;
  padding: var(--space-16) 0 var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
  max-width: 320px;
}

.footer__brand-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.footer__brand-name span {
  color: var(--color-primary);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: #94a3b8;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: var(--space-12);
}

.footer__links-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links-group h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-1);
}

.footer__links-group a {
  font-size: var(--text-sm);
  color: #94a3b8;
  transition: color var(--duration-fast) ease;
}

.footer__links-group a:hover {
  color: #ffffff;
}

.footer__bottom {
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: #475569;
}

.footer__legal-links {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-links a {
  font-size: var(--text-xs);
  color: #64748b;
  transition: color var(--duration-fast) ease;
}

.footer__legal-links a:hover {
  color: #94a3b8;
}


/* ────────────────────────────────────────────────────────────
   29. COOKIE CONSENT BANNER
   ──────────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--color-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration-normal) ease;
}

.cookie-banner:not([hidden]) {
  transform: translateY(0);
  opacity: 1;
}

/* Pattern B inner */
.cookie-banner-inner,
.cookie-banner__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;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-text,
.cookie-banner__text {
  font-size: var(--text-sm);
  color: #94a3b8;
  flex: 1;
  min-width: 240px;
}

.cookie-text a,
.cookie-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions,
.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}


/* ────────────────────────────────────────────────────────────
   30. RESPONSIVE — Tablet (768px+)
   ──────────────────────────────────────────────────────────── */

@media (min-width: 768px) {

  /* Typography scale up */
  h1 { font-size: var(--text-5xl); }

  .hero-headline { font-size: var(--text-6xl); }

  /* Layout */
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  /* Trust strip — 2 columns */
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Services grid — 2 columns */
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Plans grid — 2 columns (STEAL #2: side by side) */
  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Qualification — 2 columns */
  .qualification-grid,
  .qual-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Verticals — 3 columns */
  .verticals-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vertical-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Timeline cards — 3 columns */
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Lead quality — 2-3 columns */
  .lead-quality-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lead-quality-card {
    border-bottom: none;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
  }

  /* Contact layout — 2 columns */
  .contact-layout {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }

  /* Form rows — 2 columns */
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .form-submit-row .btn {
    width: auto;
  }

  /* Calculator — 2 column (STEAL #3: inputs left, results right) */
  .calc-layout {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-10);
  }

  /* Resource grid — 3 columns */
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Assumptions grid — 2 columns */
  .assumptions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .assumptions-grid > div {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Footer — multi column */
  .footer-inner,
  .footer__inner {
    grid-template-columns: 1fr auto;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* ────────────────────────────────────────────────────────────
   31. RESPONSIVE — Desktop (1024px+)
   ──────────────────────────────────────────────────────────── */

@media (min-width: 1024px) {

  /* Show desktop nav */
  .main-nav {
    display: block;
  }

  .header-cta,
  .nav-cta {
    display: inline-flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  /* Pattern A nav */
  .header__nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .header__nav .btn {
    display: inline-flex;
  }

  .header__nav-toggle {
    display: none;
  }

  /* Section sizes bump up */
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }

  /* Hero — generous padding (STEAL #1: 140px+ top) */
  .hero {
    padding: 160px 0 140px;
  }

  /* Trust strip — 4 across */
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Lead quality — better grid */
  .lead-quality-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Assumptions — 3 columns */
  .assumptions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer inner — proper layout */
  .footer-inner {
    grid-template-columns: 1fr auto auto;
    gap: var(--space-16);
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    gap: var(--space-16);
  }
}


/* ────────────────────────────────────────────────────────────
   32. RESPONSIVE — Large Desktop (1280px+)
   ──────────────────────────────────────────────────────────── */

@media (min-width: 1280px) {

  .hero-headline {
    font-size: 3.75rem; /* 60px */
  }

  .inner-hero h1,
  .page-hero__title {
    font-size: var(--text-5xl);
  }
}


/* ────────────────────────────────────────────────────────────
   33. RESPONSIVE — Mobile small (< 480px)
   ──────────────────────────────────────────────────────────── */

@media (max-width: 479px) {

  h1 { font-size: var(--text-3xl); }

  .hero-headline { font-size: var(--text-4xl); }

  .hero { padding: 100px 0 80px; }

  .inner-hero h1,
  .page-hero__title {
    font-size: var(--text-3xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

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

  .final-cta-actions .btn {
    text-align: center;
  }

  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .plan-card {
    padding: var(--space-6);
  }

  .form-card {
    padding: var(--space-5);
  }
}


/* ────────────────────────────────────────────────────────────
   34. MOBILE NAV PANEL (Pattern B — full nav on mobile)
   JS toggles .nav-open on body or shows/hides the nav
   ──────────────────────────────────────────────────────────── */

/* When mobile nav is open via JS (most pages use
   display toggle on .main-nav or .mobile-nav-overlay) */
.main-nav.active {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 998;
  padding: var(--space-6);
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.main-nav.active .nav-list {
  flex-direction: column;
  gap: var(--space-1);
}

.main-nav.active .nav-link {
  display: block;
  font-size: var(--text-base);
  padding: 0.75rem 1rem;
}

/* Pattern A mobile nav */
.header__nav-links.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  z-index: 998;
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  gap: var(--space-1);
}

.header__nav-links.active a {
  display: block;
  font-size: var(--text-base);
  padding: 0.75rem 1rem;
}


/* ────────────────────────────────────────────────────────────
   35. ANIMATIONS & TRANSITIONS
   ──────────────────────────────────────────────────────────── */

/* Subtle fade-in for sections entering viewport (JS can add .is-visible) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header scroll state */
.site-header.scrolled,
.header.scrolled {
  box-shadow: var(--shadow-sm);
}


/* ────────────────────────────────────────────────────────────
   36. PRINT STYLES
   ──────────────────────────────────────────────────────────── */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .site-header,
  .header,
  .mobile-menu-toggle,
  .header__nav-toggle,
  .cookie-banner,
  .mobile-nav-overlay,
  .hero-actions,
  .final-cta-actions,
  .cta-band__actions,
  .calc-mode-toggle,
  .calc-results-cta,
  .resource-categories {
    display: none !important;
  }

  .hero {
    background: none;
    padding: 2rem 0;
  }

  .hero-headline {
    color: #000 !important;
    font-size: 24pt;
  }

  .hero-subhead {
    color: #333 !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .section,
  .final-cta-section,
  .services-section,
  .plans-section,
  .qualification-section,
  .process-section,
  .calculator-section,
  .lead-quality-section,
  .faq-section {
    padding: 1rem 0;
  }

  .plan-card,
  .service-card,
  .qualification-col,
  .qual-column,
  .form-card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  .site-footer,
  .footer {
    background: none;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
  }

  .faq-answer,
  .faq-content {
    display: block !important;
  }

  .faq-answer[hidden],
  .faq-content[hidden] {
    display: block !important;
  }

  img {
    max-width: 100% !important;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}


/* ────────────────────────────────────────────────────────────
   37. ACCESSIBILITY
   ──────────────────────────────────────────────────────────── */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: #ffffff;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--duration-fast) ease;
}

.skip-link:focus {
  top: var(--space-4);
}

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

/* High contrast enhancements */
@media (prefers-contrast: high) {
  :root {
    --color-border: #94a3b8;
    --color-border-light: #94a3b8;
  }

  .btn-primary,
  .btn--primary {
    border: 2px solid #000;
  }

  .faq-trigger {
    border-bottom: 2px solid var(--color-text);
  }
}


/* ────────────────────────────────────────────────────────────
   HERO IMAGES & INTEGRATED IMAGE LAYOUTS
   ──────────────────────────────────────────────────────────── */

/* --- Homepage hero split layout --- */
.hero-split {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hero-media {
  flex-shrink: 0;
  position: relative;
}

.hero-media .hero-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  margin-top: 0;
}

@media (min-width: 768px) {
  .hero-split {
    flex-direction: row;
    gap: 48px;
    align-items: center;
  }

  .hero-split .hero-content {
    flex: 1 1 55%;
    max-width: none;
  }

  .hero-media {
    flex: 0 0 40%;
    transform: translateY(20px);
  }

  .hero-media .hero-image {
    max-width: none;
    width: 100%;
  }
}

/* --- Full-bleed image break between sections --- */
.image-break {
  width: 100%;
  overflow: hidden;
  max-height: 400px;
}

.image-break img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- Full-width banner image (edge-to-edge within content flow) --- */
.section-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-height: 360px;
  overflow: hidden;
}

.section-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* --- Background image hero overlay (unified) --- */
.inner-hero--bg,
.page-hero--with-bg,
.inner-hero--with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.inner-hero--bg::before,
.page-hero--with-bg::after,
.inner-hero--with-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.72) 100%
  );
  z-index: 0;
}

.inner-hero--bg > *,
.page-hero--with-bg > *,
.inner-hero--with-bg > * {
  position: relative;
  z-index: 1;
}

/* Text colors for background-image heroes */
.inner-hero--bg,
.inner-hero--bg h1,
.inner-hero--bg h2,
.inner-hero--bg p {
  color: #fff;
}

.inner-hero--bg p,
.inner-hero--bg .hero-intro {
  color: rgba(255, 255, 255, 0.75);
}

.inner-hero--bg .breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.6);
}

.inner-hero--bg .breadcrumb-nav a:hover {
  color: #fff;
}

.inner-hero--bg .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

.inner-hero--bg .breadcrumb-current {
  color: rgba(255, 255, 255, 0.85);
}


/* ============================================================
   CINEMATIC HERO — Video BG + Fade-Up Animations + Dashboard
   ============================================================ */

.hero-cinematic {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--secondary);
  padding-bottom: 100px;
}

/* Video background */
.hero-cinematic__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-cinematic__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.7) 0%,
    rgba(15, 23, 42, 0.55) 40%,
    rgba(15, 23, 42, 0.8) 100%
  );
  z-index: 1;
}

/* Content container */
.hero-cinematic__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 75px 24px 0;
  flex: 1;
}

/* Badge */
.hero-cinematic__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-primary);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* Headline */
.hero-cinematic__headline {
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 720px;
  margin: 0;
}

.hero-cinematic__headline-italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

/* Subheadline */
.hero-cinematic__subhead {
  margin-top: 16px;
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  line-height: 1.7;
  font-family: var(--font-primary);
}

@media (min-width: 768px) {
  .hero-cinematic__subhead {
    font-size: 1.125rem;
  }
}

/* CTA buttons */
.hero-cinematic__actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-cinematic__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-primary);
  background-color: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.hero-cinematic__btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.hero-cinematic__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-primary);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.hero-cinematic__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-cinematic__btn-secondary svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---- Dashboard Preview ---- */

.hero-cinematic__dashboard {
  margin-top: 48px;
  width: 100%;
  max-width: 960px;
  transform-origin: center top;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-glass {
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 25px 80px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
}

@media (min-width: 768px) {
  .dashboard-glass {
    padding: 16px;
  }
}

.dashboard-inner {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-primary);
  font-size: 11px;
  color: #2d3748;
  user-select: none;
  pointer-events: none;
}

/* Dashboard top bar */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.dash-topbar__left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.dash-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.dash-brand {
  color: #1a202c;
}

.dash-topbar__left svg {
  color: #a0aec0;
}

.dash-topbar__center {
  flex: 1;
  max-width: 300px;
  display: none;
}

@media (min-width: 640px) {
  .dash-topbar__center {
    display: block;
  }
}

.dash-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f7fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  color: #a0aec0;
}

.dash-search svg {
  flex-shrink: 0;
  color: #a0aec0;
}

.dash-kbd {
  margin-left: auto;
  font-size: 10px;
  background: #edf2f7;
  border-radius: 4px;
  padding: 1px 5px;
  color: #a0aec0;
  font-family: var(--font-primary);
}

.dash-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-topbar-link {
  font-size: 11px;
  color: #718096;
  display: none;
}

@media (min-width: 640px) {
  .dash-topbar-link {
    display: inline;
  }
}

.dash-bell {
  color: #a0aec0;
}

.dash-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #edf2f7;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
}

/* Dashboard body */
.dash-body {
  display: flex;
  min-height: 280px;
}

/* Sidebar */
.dash-sidebar {
  width: 140px;
  flex-shrink: 0;
  border-right: 1px solid #f0f0f0;
  padding: 10px 8px;
  display: none;
}

@media (min-width: 640px) {
  .dash-sidebar {
    display: block;
  }
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #718096;
  margin-bottom: 1px;
  white-space: nowrap;
}

.dash-nav-item--active {
  background: #f0fdf4;
  color: #166534;
  font-weight: 600;
}

.dash-nav-item svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.dash-nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  border-radius: 999px;
  padding: 0 5px;
  line-height: 16px;
}

.dash-sidebar-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 0;
}

.dash-sidebar-label {
  font-size: 10px;
  font-weight: 600;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  margin-bottom: 2px;
}

/* Dashboard main */
.dash-main {
  flex: 1;
  padding: 14px;
  background: #fafbfc;
  min-width: 0;
}

.dash-greeting {
  font-size: 13px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 10px;
}

/* Action pills */
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.dash-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  background: #fff;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.dash-action-pill--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.dash-action-pill--primary svg {
  width: 12px;
  height: 12px;
}

/* Cards */
.dash-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 12px;
}

.dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-card__title {
  font-size: 11px;
  font-weight: 600;
  color: #2d3748;
}

.dash-card__badge {
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 8px;
}

.dash-card__badge--green {
  background: #f0fdf4;
  color: #16a34a;
}

.dash-card__header svg {
  color: #a0aec0;
  width: 14px;
  height: 14px;
}

.dash-card__metric {
  margin-bottom: 8px;
}

.dash-card__big-number {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.02em;
  line-height: 1;
}

.dash-card__unit {
  display: block;
  font-size: 10px;
  color: #a0aec0;
  margin-top: 2px;
}

.dash-card__stats {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}

.dash-card__stat-label {
  font-size: 10px;
  color: #a0aec0;
  display: block;
}

.dash-card__stat-value {
  font-size: 12px;
  font-weight: 600;
  color: #2d3748;
}

.dash-card__stat-value--green {
  color: #16a34a;
}

/* Mini chart */
.dash-chart {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 4px;
}

/* Campaign list */
.dash-campaign-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-campaign {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f7fafc;
}

.dash-campaign:last-child {
  border-bottom: none;
}

.dash-campaign__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dash-campaign__dot--green { background: #16a34a; }
.dash-campaign__dot--amber { background: #f59e0b; }

.dash-campaign__info {
  flex: 1;
  min-width: 0;
}

.dash-campaign__name {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #2d3748;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-campaign__meta {
  display: block;
  font-size: 10px;
  color: #a0aec0;
}

.dash-campaign__status {
  font-size: 10px;
  font-weight: 500;
  color: #16a34a;
  white-space: nowrap;
}

.dash-campaign__status--review {
  color: #f59e0b;
}

/* Leads table */
.dash-table {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  overflow: hidden;
}

.dash-table__header {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 1px solid #f0f0f0;
}

.dash-table table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  font-size: 10px;
  font-weight: 500;
  color: #a0aec0;
  text-align: left;
  padding: 6px 12px;
  border-bottom: 1px solid #f7fafc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-table td {
  font-size: 11px;
  color: #4a5568;
  padding: 7px 12px;
  border-bottom: 1px solid #fafbfc;
}

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

.dash-status {
  font-size: 10px;
  font-weight: 500;
  border-radius: 999px;
  padding: 1px 8px;
}

.dash-status--green {
  background: #f0fdf4;
  color: #16a34a;
}

.dash-status--amber {
  background: #fffbeb;
  color: #d97706;
}

/* ---- Fade-up animation ---- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}


/* ────────────────────────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
   ──────────────────────────────────────────────────────────── */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate="fade"] {
  transform: none;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-animate-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* Slow stagger variant */
[data-animate-stagger="slow"] > * {
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-animate-stagger="slow"].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger="slow"].is-visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-animate-stagger="slow"].is-visible > *:nth-child(3) { transition-delay: 0.24s; }
[data-animate-stagger="slow"].is-visible > *:nth-child(4) { transition-delay: 0.36s; }
[data-animate-stagger="slow"].is-visible > *:nth-child(5) { transition-delay: 0.48s; }
[data-animate-stagger="slow"].is-visible > *:nth-child(6) { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate],
  [data-animate-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ────────────────────────────────────────────────────────────
   FIXES: Standardized Inner Page Hero Heights
   All inner pages use the same hero sizing regardless of class
   ──────────────────────────────────────────────────────────── */

.inner-hero,
.inner-hero--bg,
.page-hero,
.page-hero--with-bg {
  padding: 100px 24px 60px !important;
  min-height: 340px !important;
}

@media (min-width: 768px) {
  .inner-hero,
  .inner-hero--bg,
  .page-hero,
  .page-hero--with-bg {
    padding: 120px 0 72px !important;
    min-height: 400px !important;
  }
}


/* ────────────────────────────────────────────────────────────
   Mobile Nav — slides down from header as a panel
   ──────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .nav-list.nav-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 9998;
    padding: 24px;
    gap: 4px;
    overflow-y: auto;
    animation: slideDown 0.25s ease-out;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list.nav-open .nav-link {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: 8px;
    color: #0f172a;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-list.nav-open .nav-link:last-child {
    border-bottom: none;
  }

  .nav-list.nav-open .nav-link:hover,
  .nav-list.nav-open .nav-link:active {
    background-color: #f8fafc;
  }

  /* Show the CTA at bottom of mobile nav */
  .nav-list.nav-open ~ .header-cta {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    justify-content: center;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
  }

  .nav-list.nav-open ~ .header-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* ────────────────────────────────────────────────────────────
   Desktop: Glassmorphism Floating Nav on Scroll
   ──────────────────────────────────────────────────────────── */

/* Default state: full-width transparent */
.site-header {
  z-index: 10000;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-radius 0.4s ease,
              margin 0.4s ease, max-width 0.4s ease, border-color 0.4s ease;
}

/* Scrolled state: glassmorphism floating nav */
@media (min-width: 1024px) {
  .site-header.header-scrolled {
    top: 12px;
    left: 0;
    right: 0;
    max-width: 1180px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: transparent;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
}


/* ────────────────────────────────────────────────────────────
   FIXES: Mobile Dashboard Responsiveness
   Scale down the hero dashboard preview on small screens
   ──────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .hero-cinematic__dashboard {
    margin-top: 32px;
    max-width: 100%;
    transform: scale(0.75);
    transform-origin: center top;
  }

  .dashboard-glass {
    padding: 8px;
  }

  /* Hide sidebar on mobile dashboard */
  .dash-sidebar {
    display: none !important;
  }

  /* Simplify cards to single column */
  .dash-cards {
    flex-direction: column;
  }

  /* Hide the table on mobile */
  .dash-table {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-cinematic__dashboard {
    transform: scale(0.65);
  }
}


/* ────────────────────────────────────────────────────────────
   FIXES: General Mobile Responsiveness
   ──────────────────────────────────────────────────────────── */

/* Ensure header logo + hamburger spacing on mobile */
@media (max-width: 1023px) {
  .header-inner {
    padding: 0 var(--space-4);
  }

  /* Hide desktop-only elements on mobile */
  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* Hero CTA stacking on small screens */
@media (max-width: 479px) {
  .hero-cinematic__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .hero-cinematic__actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* Footer links wrap */
  .footer-nav-list {
    flex-wrap: wrap;
  }

  .footer-legal-list {
    flex-wrap: wrap;
  }
}
