/* ============================================================
   RateLane — US Auto Insurance Comparison Landing Page
   Native CSS3 · No frameworks · Flexbox/Grid · CSS variables
   Palette: navy #0f2b48 / orange #ff6b00 / green #28a745
   ============================================================ */

/* ---------------- Design tokens ---------------- */
:root {
  --navy: #0f2b48;
  --navy-deep: #0a1f35;
  --navy-soft: #16395c;
  --orange: #ff6b00;
  --orange-deep: #e05f00;
  --green: #28a745;
  --green-soft: #e6f5ea;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #13293d;
  --muted: #5a6b7d;
  --line: #dde4ec;

  --font-display: "Libre Franklin", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 24px 48px -12px rgba(15, 43, 72, 0.28);
  --shadow-cta: 0 10px 24px -8px rgba(255, 107, 0, 0.55);
  --shadow-cta-hover: 0 14px 30px -8px rgba(255, 107, 0, 0.65);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --step-ms: 280ms;

  --section-gap: clamp(64px, 9vw, 96px);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.015em;
}

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

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

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 18px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
    background-color 180ms var(--ease), color 180ms var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

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

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 10px 20px;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 18px 40px;
}

.btn-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px;
  margin-inline: auto;
  display: block;
  text-align: center;
}

.btn-link:hover {
  color: var(--navy);
}

.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 43, 72, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-mark {
  color: #fff;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--orange);
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 160ms var(--ease);
}

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

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 3px;
  flex: none;
}

.lang-switch button {
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  border-radius: calc(var(--radius-md) - 3px);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.lang-switch button:hover {
  color: #fff;
}

.lang-switch button.is-active {
  background: #fff;
  color: var(--navy);
}

/* Country / region segmented control */
.country-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.country-seg button {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 10px 0;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.country-seg button:hover {
  border-color: var(--navy-soft);
}

.country-seg button.is-active {
  border-color: var(--navy);
  background: rgba(15, 43, 72, 0.06);
  color: var(--navy);
}

.country-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(22, 57, 92, 0.9), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: auto -6% -12% auto;
  width: min(58%, 760px);
  height: auto;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(90% 90% at 70% 60%, #000 30%, transparent 78%);
  mask-image: radial-gradient(90% 90% at 70% 60%, #000 30%, transparent 78%);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 112px);
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 900;
  margin-bottom: 22px;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-trust-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-trust-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--green);
}

/* ---------------- Quiz card ---------------- */
.quiz-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 32px 26px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.quiz-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color 240ms var(--ease), transform 240ms var(--ease);
}

.quiz-progress-dot.is-current {
  transform: scale(1.25);
}

.quiz-progress-dot.is-active {
  background: var(--orange);
}

.quiz-progress-line {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}

.quiz-progress-line.is-filled {
  background: var(--orange);
}

/* Step visibility + slide-in animation */
.quiz-step {
  display: none;
  flex: 1;
  flex-direction: column;
}

.quiz-step.is-active {
  display: flex;
}

.quiz-step.is-entering {
  animation: step-in var(--step-ms) var(--ease) both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quiz-step-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.quiz-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.quiz-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* Fields */
.field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.field-hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

.field-input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fbfcfe;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.field-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 43, 72, 0.12);
  background: #fff;
}

select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6b7d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.zip-input {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.zip-input::placeholder {
  color: #b9c4d0;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.field-group {
  margin-bottom: 18px;
}

.field-error {
  color: #c0392b;
  background: #fdf0ee;
  border: 1px solid #f2d2cc;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* Safety equipment checkboxes */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
  user-select: none;
}

.check-item:hover {
  border-color: var(--navy-soft);
}

.check-item input {
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
  flex: none;
}

.check-item:has(input:checked) {
  border-color: var(--navy);
  background: rgba(15, 43, 72, 0.05);
}

/* Loading button */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn.is-loading .btn-text::after {
  content: "";
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Live search status under ZIP form */
.quiz-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-soft);
  animation: fade-in 300ms var(--ease) both;
}

.quiz-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.1s ease-in-out infinite;
  flex: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.quiz-fineprint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.quiz-fineprint svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--green);
}

/* Step 3 : calculation */
.calc-head {
  margin-bottom: 14px;
}

.calc-location {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.calc-meter {
  height: 10px;
  border-radius: 6px;
  background: #e9eef4;
  overflow: hidden;
  margin-bottom: 12px;
}

.calc-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--navy-soft), var(--navy));
  transition: width 120ms linear;
}

.calc-status {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  min-height: 2.6em;
  margin-bottom: 16px;
}

.quiz-card.calc-running .quote-box {
  background: #fbfcfe;
  border-color: var(--line);
}

.quote-box {
  margin-top: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  padding: 22px;
  text-align: center;
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease),
    box-shadow 400ms var(--ease);
}

.quiz-card.calc-done .quote-box {
  background: var(--green-soft);
  border-color: rgba(40, 167, 69, 0.4);
  box-shadow: inset 0 0 0 1px rgba(40, 167, 69, 0.12);
}

.quote-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.quote-amount {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
}

.quote-per {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muted);
  margin-left: 4px;
}

.quote-savings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #1e7e34;
  animation: fade-in 320ms var(--ease) both;
}

.quote-savings svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.quote-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
  animation: fade-in 320ms var(--ease) both;
}

.btn-cta-final {
  margin-top: 16px;
  animation: cta-pop 420ms var(--ease) both;
}

@keyframes cta-pop {
  0% { opacity: 0; transform: translateY(10px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- Trust bar ---------------- */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 44px;
  text-align: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--bg);
}

.badge svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex: none;
}

.trust-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.carrier-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(24px, 4.5vw, 52px);
  row-gap: 14px;
}

.carrier-logos li {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #9aa7b4;
  filter: grayscale(1);
  transition: color 200ms var(--ease);
  cursor: default;
}

.carrier-logos li:hover {
  color: var(--navy);
}

/* ---------------- How it works ---------------- */
.how-it-works {
  padding-block: var(--section-gap);
}

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: 0 6px 18px -8px rgba(15, 43, 72, 0.08);
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: 2.1rem;
  color: var(--orange);
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------- Stats band ---------------- */
.stats-band {
  background: var(--navy);
  color: #fff;
  padding-block: 52px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}

.stat-prefix,
.stat-suffix {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--orange);
}

.stat p {
  width: 100%;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.stat {
  flex-wrap: wrap;
}

/* ---------------- Coverage guide ---------------- */
.coverage {
  padding-block: var(--section-gap);
}

.coverage-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.coverage-copy > p {
  color: var(--muted);
  max-width: 56ch;
}

.coverage-list {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}

.coverage-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: baseline;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}

.coverage-list dt {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
}

.coverage-list dd {
  color: var(--muted);
  font-size: 0.95rem;
}

.coverage-tip {
  background: var(--green-soft);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: var(--radius-md);
  color: #1e7e34;
  font-size: 0.95rem;
  padding: 14px 18px;
}

.coverage-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.coverage-figure figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------------- FAQ ---------------- */
.faq {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: var(--section-gap);
}

.faq-inner {
  max-width: 800px;
}

.faq-list {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  padding: 18px 22px;
  user-select: none;
  transition: background-color 160ms var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  background: rgba(15, 43, 72, 0.04);
}

.faq-chevron {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
}

.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  background: var(--orange);
  border-radius: 2px;
  transition: transform 220ms var(--ease);
}

.faq-chevron::before {
  left: 0;
  top: 5px;
  width: 12px;
  height: 2.5px;
}

.faq-chevron::after {
  left: 5px;
  top: 0;
  width: 2.5px;
  height: 12px;
}

.faq details[open] .faq-chevron::after {
  transform: scaleY(0);
}

.faq-body {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------- Final CTA ---------------- */
.final-cta {
  padding-block: var(--section-gap);
  text-align: center;
}

.final-sub {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto 30px;
}

.final-fineprint {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-block: 56px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand {
  margin-bottom: 10px;
}

.footer-tag {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 34ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 160ms var(--ease);
}

.footer-nav a:hover {
  color: var(--orange);
}

.disclosure {
  padding-block: 28px;
}

.disclosure h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.disclosure p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------- Lead modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 31, 53, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in 220ms var(--ease) both;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 34px 32px 28px;
  animation: step-in 280ms var(--ease) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.modal-close:hover {
  background: var(--bg);
  color: var(--navy);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-card .field-group {
  margin-bottom: 14px;
}

.modal-card .btn {
  margin-top: 6px;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cta-pop 420ms var(--ease) both;
}

.success-icon svg {
  width: 30px;
  height: 30px;
}

#lead-success-view {
  text-align: center;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 56px 64px;
  }

  .hero h1 {
    max-width: 22ch;
  }

  .quiz-card {
    width: min(520px, 100%);
    justify-self: center;
    min-height: 0;
  }

  .hero-photo {
    width: 100%;
    inset: auto 0 0 auto;
    opacity: 0.22;
  }

  .site-nav {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .coverage-inner {
    grid-template-columns: 1fr;
  }

  .coverage-figure {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .container {
    width: min(1160px, 100% - 32px);
  }

  .header-inner {
    height: 60px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .quiz-card {
    padding: 24px 20px 20px;
  }

  .zip-input {
    font-size: 1.35rem;
  }

  .coverage-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    gap: 16px 22px;
  }

  .stat-num {
    font-size: 2rem;
  }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
