/* ============================================================================
   public/_global/styles.css — QuoteHomePros Multi-Service Design System
   Source: match.css (walk-in-shower canonical) + BUILD-SPEC §4
   Fonts: Inter (body), Merriweather (headings)
   Colors: Primary Blue #1B6FE8, Accent Orange #FF6B2B
   
   Usage — MANDATORY in every HTML <head>:
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@400;700;900&display=swap" rel="stylesheet">
     <link rel="stylesheet" href="/_global/tailwind.css">
     <link rel="stylesheet" href="/_global/styles.css">
   ============================================================================ */

/* ── Design Tokens (BUILD-SPEC §4) ─────────────────────── */
:root {
  /* match.css used --secondary (#3052ED) as the interactive/brand color.
     BUILD-SPEC §4 maps that role to --primary (#1B6FE8).
     We keep --secondary as an alias so every existing var(--secondary)
     reference in the match.css body resolves without a find-and-replace. */
  --primary:       #1B6FE8;
  --secondary:     #1B6FE8;  /* alias — resolves all var(--secondary) refs */
  --accent:        #FF6B2B;
  --primary-dark:  #1A202C;
  --accent-soft:   rgba(255,107,43,0.12);
  --green-valid:   #05855F;
  --green-light:   #E6F4F0;
  --text-dark:     #0F172A;
  --text-mid:      #2D3748;
  --text-secondary:#475569;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --border-light:  #F1F3F7;
  --white:         #FFFFFF;
  --hero-bg:       #F7F8FA;
  --page-bg:       #F0F2F5;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --shadow-card:   0 8px 40px rgba(15,22,35,0.10);
  --shadow-sm:     0 2px 8px rgba(15,22,35,0.07);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-premium:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-body:     'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Merriweather', Georgia, serif;
  --font-hero:     'Inter', sans-serif;
}

/* ── Funnel Variants (BUILD-SPEC §4) ──────────────────── */
/* quote = default (same as :root). Kept explicit for clarity. */
body[data-funnel="quote"] { --accent: #FF6B2B; --primary: #1B6FE8; --secondary: #1B6FE8; }
body[data-funnel="lead"]  { --accent: #1B6FE8; --primary: #FF6B2B; --secondary: #FF6B2B; }
body[data-funnel="offer"] { --accent: #05855F; --primary: #1B6FE8; --secondary: #1B6FE8; }

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo img { height: 28px; }
.site-header__trust {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-header__trust svg { color: var(--green-valid); }

/* ── Progress Bar (quiz) ───────────────────────────────── */
.quiz-progress {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px;
}
.quiz-progress.active { display: block; }
.quiz-progress__bar-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}
.quiz-progress__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: color 0.15s ease;
  position: absolute;
  left: 0;
}
.quiz-progress__back:hover { color: var(--text-dark); }
.quiz-progress__back.hidden { visibility: hidden; pointer-events: none; }
@media (min-width: 600px)                         { .quiz-progress__back { font-size: 16px; } }
@media (min-width: 600px) and (max-height: 700px) { .quiz-progress__back { font-size: 15px; } }
@media (min-width: 1440px)                        { .quiz-progress__back { font-size: 18px; } }
.quiz-progress__track {
  width: 120px;
  flex: none;
  height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 600px)                         { .quiz-progress__track { width: 140px; height: 5px; } }
@media (min-width: 600px) and (max-height: 700px) { .quiz-progress__track { height: 4px; } }
@media (min-width: 1440px)                        { .quiz-progress__track { width: 180px; height: 7px; } }
.quiz-progress__fill {
  height: 100%;
  background: var(--secondary);
  transition: width 0.4s var(--ease-out);
  border-radius: 4px;
}
.quiz-progress__step {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.quiz-progress__step-num { color: var(--secondary); }
@media (min-width: 600px)                         { .quiz-progress__step { font-size: 14px; } }
@media (min-width: 600px) and (max-height: 700px) { .quiz-progress__step { font-size: 13px; } }
@media (min-width: 1440px)                        { .quiz-progress__step { font-size: 16px; } }

/* ── Hero Section ──────────────────────────────────────── */
.hero {
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  padding: 10px 24px;
}
/* Dot grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #CBD5E0 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
}
/* Soft radial wash center */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(247,248,250,0.95) 30%, transparent 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
/* Eyebrow */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeSlideUp 0.5s var(--ease-out) 0.1s forwards;
}
.hero__eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--green-valid);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5,133,95,0.2);
  animation: pulse 2s infinite;
}
/* Headline */
.hero__headline {
  font-family: var(--font-hero);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  opacity: 0;
  animation: fadeSlideUp 0.5s var(--ease-out) 0.2s forwards;
}
.hero__headline br { display: block; }
/* Highlight underline treatment */
.hl-accent, .hl-blue {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 10px;
  background: rgba(216,106,58,0.28);
  border-radius: 6px;
  z-index: -1;
}
.hl-blue {
  background: linear-gradient(transparent 55%, #A7F3D0 55%);
  border-radius: 2px;
}
.hl-blue::after { display: none; }
/* Trust line */
.hero__trust-line {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeSlideUp 0.5s var(--ease-out) 0.3s forwards;
}
/* ZIP Form */
.hero__form {
  opacity: 0;
  animation: fadeSlideUp 0.5s var(--ease-out) 0.4s forwards;
}
.zip-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.zip-form:focus-within { box-shadow: none; }
.zip-input-wrap {
  position: relative;
  width: 100%;
}
.zip-input {
  width: 100%;
  height: 56px;
  padding: 0 52px 0 20px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
  -webkit-appearance: none;
}
.zip-input::placeholder { color: #A0AEC0; font-weight: 400; }
.zip-input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(48,82,237,0.12); }
.zip-input.is-invalid { border-color: #E53E3E; box-shadow: 0 0 0 3px rgba(229,62,62,0.10); }
.zip-input.is-valid { border-color: var(--green-valid); box-shadow: 0 0 0 3px rgba(5,133,95,0.12); }
.zip-check {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.zip-check.visible { opacity: 1; }
.zip-cta {
  width: 100%;
  height: 56px;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 16px rgba(216,106,58,0.35);
}
.zip-cta:hover:not(:disabled) {
  background: #C25A2C;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(216,106,58,0.45);
}
.zip-cta:active:not(:disabled) { transform: translateY(0); }
.zip-cta:disabled {
  background: #CBD5E0;
  color: #A0AEC0;
  box-shadow: none;
  cursor: not-allowed;
}
/* Micro-trust badges */
.hero__micro-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.5s var(--ease-out) 0.5s forwards;
}
.micro-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.micro-badge svg { color: var(--green-valid); flex-shrink: 0; }

/* ── How It Works ──────────────────────────────────────── */
.how-it-works {
  background: var(--white);
  padding: 40px 24px;
  border-bottom: 1px solid var(--border-light);
}
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 24px;
  background: var(--hero-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.step-card__trust {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.step-card__trust svg { color: var(--green-valid); flex-shrink: 0; }

.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: -4px; left: 16px;
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--border);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.step-icon { display: none; }
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Credibility Band ──────────────────────────────────── */
.credibility-band {
  background: var(--primary-dark);
  padding: 0 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-block {
  background: var(--primary-dark);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat-number {
  font-family: var(--font-hero);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.stat-number span { color: var(--accent); }
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  max-width: 160px;
  line-height: 1.3;
}
.stat-source {
  font-size: clamp(10px, 1vw, 11px);
  color: rgba(255,255,255,0.3);
  margin-top: 2px;
}

/* ── Education Cards ───────────────────────────────────── */
.edu-section {
  padding: 10px 24px;
  background: var(--page-bg);
}
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.edu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15,22,35,0.10);
}
.edu-card__icon {
  width: 52px; height: 52px;
  background: var(--hero-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.edu-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.edu-card__body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.edu-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  transition: gap 0.15s ease, background 0.15s ease;
  cursor: pointer;
  background: rgba(48,82,237,0.08);
  border-radius: 20px;
  padding: 7px 14px;
  align-self: flex-start;
  border: 1px solid rgba(48,82,237,0.15);
}
.edu-card__cta:hover {
  gap: 10px;
  background: rgba(48,82,237,0.13);
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq-section {
  background: var(--white);
  padding: 10px 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.faq-card {
  background: var(--hero-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-card__icon {
  width: 36px; height: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.faq-card__q {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.faq-card__a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Final CTA Banner ──────────────────────────────────── */
.final-cta {
  max-width: 1080px;
  background: var(--primary-dark);
  margin: 24px 16px;
  padding: 32px 24px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(48,82,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.final-cta__headline {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.final-cta__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  line-height: 1.5;
}
.final-cta .zip-cta {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(216,106,58,0.40);
}
.final-cta .zip-cta:disabled { color: var(--white); }
.final-cta .zip-cta:hover:not(:disabled) {
  background: #C25B2E;
  box-shadow: 0 6px 24px rgba(216,106,58,0.50);
}
.final-cta .zip-input {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.final-cta .zip-input::placeholder { color: rgba(255,255,255,0.4); }
.final-cta .zip-input:focus {
  border-color: var(--secondary);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(48,82,237,0.25);
}
.final-cta__reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 60px 24px 28px;
  text-align: center;
}
.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 16px;
}
.footer__links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--secondary); text-decoration: none; }
.footer__disclaimer {
  font-size: 11.5px;
  color: #9CA3AF;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 12px;
}
.footer__disclaimer a { color: #9CA3AF; }
.footer__copy {
  font-size: 11px;
  color: #C4C9D4;
}

/* ── Quiz Shell ────────────────────────────────────────── */
.quiz-shell {
  display: none;
  min-height: 0;
  background: var(--page-bg);
  padding: 0 24px 120px;
}
@media (min-width: 768px) {
  .quiz-shell { padding-bottom: 200px; }
}
.quiz-shell.active { display: flex; flex-direction: column; }
.quiz-shell__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.quiz-screen {
  display: none;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 12px 0;
  animation: fadeSlideUp 0.28s var(--ease-out) forwards;
}
.quiz-screen.is-active { display: flex; }
@media (min-width: 600px) { .quiz-screen.is-active { display: block; } }
/* old back button inside screen — hidden, back is now in progress bar */
.quiz-back { display: none; }
.quiz-pill {
  display: none;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 10px;
  gap: 8px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.quiz-pill.is-visible { display: flex; }
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green-valid);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.quiz-header {
  text-align: center;
  margin-bottom: clamp(12px, 2.5vh, 20px);
  flex-shrink: 0;
}
@media (min-width: 600px) and (max-height: 700px) { .quiz-header { margin-bottom: 12px; } }
@media (min-width: 600px) and (max-height: 580px) { .quiz-header { margin-bottom: 10px; } }
.quiz-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 10px;
}
.quiz-subtitle {
  font-size: var(--screen-subtitle, 17px);
  color: #475569;
  line-height: 1.4;
  margin-bottom: 0;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 24px;
  min-height: 0;
}
@media (min-width: 600px)  { .quiz-options { max-width: 620px; gap: 16px; } }
@media (min-width: 600px) and (max-height: 700px) { .quiz-options { gap: 12px; } }
@media (min-width: 600px) and (max-height: 580px) { .quiz-options { gap: 10px; } }
@media (min-width: 1440px) { .quiz-options { max-width: 720px; gap: 18px; } }
.option-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s var(--ease-premium), background 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium), transform 0.12s ease;
}
.option-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(48,82,237,0.08);
}
.option-card:active { transform: scale(0.98); }
.option-card.is-selected {
  border-color: var(--secondary);
  background: #EEF2FF;
  box-shadow: 0 0 0 3px rgba(48,82,237,0.12);
}
.option-icon-tile {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: #F4F6FB;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s var(--ease-premium);
}
.option-card.is-selected .option-icon-tile { background: #EEF2FF; }
.option-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0);
  transition: opacity 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
  pointer-events: none;
}
.option-check::after {
  content: '';
  display: block;
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.option-card.is-selected .option-check { opacity: 1; transform: scale(1); }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.quiz-screen.is-active .option-card {
  animation: fadeInUp 0.3s ease both;
}
.quiz-screen.is-active .option-card:nth-child(1) { animation-delay: 0ms; }
.quiz-screen.is-active .option-card:nth-child(2) { animation-delay: 80ms; }
.quiz-screen.is-active .option-card:nth-child(3) { animation-delay: 160ms; }
.quiz-screen.is-active .option-card:nth-child(4) { animation-delay: 240ms; }
.option-card__icon {
  font-size: 28px;
  line-height: 1;
  text-align: center;
}
.option-card__label {
  font-size: var(--title-size, 20px);
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
}
.option-card__sub {
  font-size: var(--desc-size, 16px);
  color: #475569;
  line-height: 1.3;
  margin-top: 2px;
}
.quiz-continue {
  width: 100%;
  height: 54px;
  background: var(--secondary);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: background 0.18s ease, transform 0.12s ease;
  box-shadow: 0 4px 16px rgba(48,82,237,0.28);
}
.quiz-continue:hover:not(:disabled) {
  background: #2440C8;
  transform: translateY(-1px);
}
.quiz-continue:disabled {
  background: #CBD5E0;
  color: #A0AEC0;
  box-shadow: none;
  cursor: not-allowed;
}

/* ── Screen 3 bottom bar ──────────────────────────────── */
.quiz-bottom-bar { margin-top: 8px; width: 100%; max-width: 600px; margin-inline: auto; }
@media (min-width: 600px)  { .quiz-bottom-bar { max-width: 620px; } }
@media (min-width: 1440px) { .quiz-bottom-bar { max-width: 720px; } }
.quiz-selection-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  min-height: 24px;
}
.quiz-selection-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--secondary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}
.quiz-selection-count.is-visible { display: inline-flex; }
@media (min-width: 600px) {
  .quiz-selection-hint { font-size: 14px; }
  .quiz-selection-count { font-size: 12px; min-width: 24px; height: 24px; }
}
@media (min-width: 1440px) { .quiz-selection-hint { font-size: 15px; } }

/* Quiz type scale — tokens */
:root { --screen-subtitle: 17px; --title-size: 20px; --desc-size: 16px; }
@media (min-width: 600px) { :root { --screen-subtitle: 18px; --title-size: 22px; --desc-size: 17px; } }
@media (min-width: 600px) and (max-height: 700px) { :root { --screen-subtitle: 16px; --title-size: 19px; --desc-size: 15px; } }
@media (min-width: 600px) and (max-height: 580px) { :root { --screen-subtitle: 15px; --title-size: 17px; --desc-size: 14px; } .option-card__sub { line-height: 1.2; } }
@media (min-width: 1440px) { :root { --screen-subtitle: 21px; --title-size: 26px; --desc-size: 19px; } }

.quiz-title { font-size: 2rem; }
@media (max-height: 766px) { .quiz-subtitle { display: none; } }

.text-mobile { display: none; }
@media (max-width: 599px) {
  .text-desktop { display: none; }
  .text-mobile  { display: inline; }
  .site-header__inner { justify-content: center; }
  .site-header__trust { display: none; }
}

@media (max-width: 467px) {
  .quiz-title    { font-size: 1.3rem; }
  .option-card__icon { font-size: 22px; }
  .option-icon-tile  { width: 40px; height: 40px; }
}
@media (max-width: 360px) {
  .quiz-screen { padding-top: 4px; }
}
@media (min-width: 600px) and (max-height: 700px) {
  .quiz-shell { padding-top: 12px; }
}
#screen3 .quiz-options { margin-bottom: 8px; }
.hint-text {
  text-align: center;
  font-size: 13px;
  color: #6B7280;
  margin-top: 16px;
  margin-bottom: 0;
}
@media (min-width: 600px) and (max-height: 700px) { .hint-text { margin-top: 12px; } }
@media (min-width: 600px) and (max-height: 580px) { .hint-text { margin-top: 10px; } }

.success-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 20px;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1BA05A;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 20px;
}

/* ── Overlays ──────────────────────────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay.active { display: flex; animation: overlayFadeIn 0.3s ease forwards; }
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.overlay-radar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.radar-ring {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(48, 82, 237, 0.15);
  animation: radarPulse 2s ease-out infinite;
}
.radar-ring:nth-child(2) { animation-delay: 0.5s; }
.radar-ring:nth-child(3) { animation-delay: 1s; }
@keyframes radarPulse {
  0%   { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.overlay-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  max-width: 400px;
  width: 100%;
}
.overlay-content .overlay-status        { color: #0F172A; }
.overlay-content .overlay-sub           { color: #475569; }
.overlay-content .overlay-sub strong    { color: var(--secondary); }
.overlay-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(15,22,35,0.25);
  animation: scaleIn 0.28s var(--ease-premium) forwards;
}

/* Shield Loader */
.shield-loader {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  position: relative;
  overflow: visible;
}
.shield-loader svg { animation: shieldPulse 1.5s ease-in-out infinite; }
.shield-track {
  width: 72px; height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  margin: 0 auto 20px;
  overflow: hidden;
}
.shield-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 4px;
  animation: trackFill 2.4s ease-in-out infinite;
}
.overlay-status {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.overlay-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Results Card */
.results-card { padding: 0; overflow: visible; position: relative; max-width: 500px; width: 100%; border-radius: 20px; }
.results-card__top {
  background: linear-gradient(135deg, #EEF2FF 0%, #fff 100%);
  padding: 32px 32px 28px;
  border-bottom: 2px solid var(--secondary);
  position: relative;
  border-radius: 20px 20px 0 0;
}
.results-ribbon {
  position: absolute;
  top: -10px; left: -8px;
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 8px 16px 8px 18px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(15,118,110,0.35);
  animation: ribbonPulse 2.8s ease-in-out infinite;
  white-space: nowrap;
}
.results-card__body { padding: 4px 28px; }
.results-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.results-info-row__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.results-info-row__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.results-info-row__value.blue { color: var(--secondary); }
.results-msg {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.info-icon { margin-top: 2px; flex-shrink: 0; }
.info-text {
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 2px 0 0;
  text-align: left;
  min-width: 0;
  overflow-wrap: break-word;
}
.results-card__cta { padding: 16px 28px; }
.countdown-btn {
  width: 100%;
  border-radius: 10px;
  background: var(--accent);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: none;
}
.countdown-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.2);
  transition: width 1s linear;
}
.countdown-inner {
  position: relative;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.countdown-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.countdown-pill {
  background: rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.results-card__footer {
  padding: 0 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-badges-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}
.security-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  transform: translateX(120%);
  z-index: 9999;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  width: 320px;
  opacity: 0;
  transition: all 0.5s var(--ease-premium);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-icon {
  width: 36px; height: 36px;
  background: var(--secondary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
}
.toast-title { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.toast-msg { font-size: 13px; color: var(--text-muted); }

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(5,133,95,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(5,133,95,0.08); }
}
@keyframes shieldPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.85; }
}
@keyframes trackFill {
  0%   { width: 0%; }
  60%  { width: 85%; }
  80%  { width: 90%; }
  100% { width: 100%; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ribbonPulse {
  0%, 100% { transform: translateZ(0); box-shadow: 0 2px 8px rgba(15,118,110,0.35); }
  50% { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15,118,110,0.45); }
}

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero { padding: 20px 20px 16px; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__trust-line { margin-bottom: 20px; }
  .hero__micro-trust { margin-top: 12px; }
  .quiz-header { margin-bottom: 12px; }
  .quiz-options { margin-bottom: 12px; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .edu-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .site-header__trust { display: none; }
  .overlay-card { padding: 36px 24px; }
  .results-card__top { padding: 28px 24px 24px; }
  .results-card__body { padding: 4px 20px; }
  .results-card__cta { padding: 16px 20px; }
  .results-card__footer { padding: 0 20px 20px; }
  .trust-badges-row { gap: 10px; }
  .trust-badge-item { font-size: 11.5px; }
}

@media (max-width: 479px) {
  .hero__micro-trust { gap: 12px; }
}

/* Results screen (in-flow) — card sizing */
#screenResults { padding-top: 20px; }
#screenResults .results-card { margin: 0 auto; }
#screenResults .overlay-card { box-shadow: 0 8px 40px rgba(15,22,35,0.12); }
body.quiz-results .quiz-shell { padding-bottom: 40px; }
body.quiz-active.quiz-results .quiz-progress { display: none; }
@media (min-width: 600px) {
  .hero__headline { font-size: clamp(2.2rem, 5vw, 3.2rem); }
  .quiz-pill { font-size: 15px; }
  .final-cta { margin: 28px auto; padding: 36px 32px; }
  .final-cta__headline { font-size: 26px; }
  .stat-number { font-size: 30px; }
  .edu-card__cta { align-self: center; }
}
@media (min-width: 1440px) {
  .hero__trust-line { font-size: 20px; }
  .hero__headline { font-size: clamp(2.5rem, 4vw, 4rem); }
  .quiz-pill { font-size: 18px; }
  .final-cta { padding: 48px 60px; }
  .final-cta__headline { font-size: 32px; }
  .stat-number { font-size: 38px; }
}
@media (max-width: 380px) {
  #screenResults .results-card__top { padding: 28px 16px 18px; }
  #screenResults .results-card__body { padding-left: 16px; padding-right: 16px; }
  #screenResults .results-card__cta { padding-left: 16px; padding-right: 16px; }
  #screenResults .results-card__footer { padding-left: 16px; padding-right: 16px; }
  #screenResults .security-line { padding: 0 0 20px; font-size: 11px; }
  #screenResults .trust-badges-row { gap: 10px; flex-wrap: nowrap; }
  #screenResults .trust-badge-item { font-size: 11px; white-space: nowrap; }
  #screenResults .countdown-text { font-size: 14px; }
  .info-icon svg { width: 14px; height: 14px; }
  .results-msg { gap: 8px; }
}

@media (min-width: 600px) and (max-height: 700px) {
  .quiz-pill { font-size: 14px; padding: 6px 12px; margin-bottom: 10px; }
}

/* ── Page sections hidden during quiz ─────────────────── */
body.quiz-active .page-sections { display: none; }
body.quiz-active .quiz-shell { display: flex; }
body.quiz-active .quiz-progress { display: block; }
/* Footer always visible */
.site-footer { display: block; }

/* ── Screen 5 chrome: header + footer in-viewport ──────── */
body.quiz-step-5 {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
body.quiz-step-5 .quiz-shell {
  overflow-y: auto;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
body.quiz-step-5 .footer__disclaimer,
body.quiz-step-5 .footer__copy { display: none; }
body.quiz-step-5 .site-footer { padding: 16px 24px; }
#screen5 .quiz-options { justify-content: flex-start; flex: none; }

/* ── Reduced Motion (enhanced — adds scroll-behavior: auto) ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
