html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body { overflow-x: clip; }
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.hero-grid > *,
.quiz-hero-grid > *,
.nav-inner > *,
.form-grid > * {
  min-width: 0;
}

@media (max-width: 1050px) {
  .lead-form .field input,
  .lead-form .field select,
  .lead-form .field textarea,
  .result-message { font-size: 16px; }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--max), calc(100% - 26px));
  }

  .nav-inner {
    min-height: 68px;
    gap: 10px;
    padding-top: env(safe-area-inset-top);
  }

  .nav-inner > .btn {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1,
  .quiz-summary-card h2,
  .section-head h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(34px, 10.8vw, 48px);
    line-height: 1;
  }

  .eyebrow {
    max-width: 100%;
    white-space: normal;
  }

  .hero-actions,
  .hero-actions .btn {
    max-width: 100%;
  }

  .lead-form,
  .quiz-summary-card,
  .form-result {
    border-radius: 22px;
  }

  .choice-group label {
    min-height: 44px;
  }

  footer {
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .brand > span:last-child { display: none; }
  .logo { flex: 0 0 42px; }
  .nav-inner > .btn { padding-inline: 12px; font-size: 12px; }
  .hero { padding-top: 42px; }
  .quiz-hero { padding-top: 42px; }
  .quiz-summary-card,
  .lead-form,
  .form-result { padding: 18px; }
  .lead-form .field { padding: 12px; }
  .lead-form .choice-group { padding: 16px; }
}

@media (hover: none) {
  .btn:hover,
  .lead-form .field:hover,
  .lead-form .choice-group label:hover {
    transform: none;
  }
}

/* Mobile composition: keep small kickers left, center the key pitch and summaries. */
@media (max-width: 620px) {
  .hero-grid > div:first-child,
  .quiz-hero-grid > div:first-child,
  .section-head h2,
  .section-head .section-note,
  .seller-content h2,
  .seller-content .section-note,
  .final-cta h2,
  .final-cta > p {
    text-align: center;
  }

  .hero-grid > div:first-child > .eyebrow,
  .quiz-hero-grid > div:first-child > .eyebrow,
  .section-head .kicker,
  .final-cta .kicker {
    text-align: left;
  }

  .section-head .section-note,
  .seller-content .section-note,
  .final-cta > p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}
