/* ---------- Tokens ---------- */
:root {
  --color-ink: #0F172A;
  --color-ink-hover: #1E293B;
  --color-accent: #EF4444;
  --color-accent-hover: #DC2626;
  --color-accent-soft: #FEE2E2;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-border: #E2E8F0;
  --color-muted: #64748B;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);

  --header-height: 72px;
  --container-max: 1200px;

  --font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; }
a { color: inherit; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top accent bar ---------- */
.top-bar {
  height: 5px;
  background: var(--color-accent);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.site-header__cobrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
}
.site-header__cobrand-icon {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}
.site-header__cobrand-text {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-ink);
  white-space: nowrap;
}

.site-header__brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-ink);
  white-space: nowrap;
}
.site-header__brand-tld { color: var(--color-accent); }

@media (max-width: 639px) {
  .site-header__brand { display: none; }
  .site-header__cobrand-text { font-size: 20px; }
  .site-header__cobrand-icon { height: 24px; }
  .site-header__row { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  min-height: 52px;
  text-decoration: none;
  transition: background-color 120ms ease, transform 80ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-hover); }
.btn--accent:focus-visible {
  outline: 3px solid rgba(239, 68, 68, 0.4);
  outline-offset: 2px;
}
.btn--dark { background: var(--color-ink); color: #fff; }
.btn--dark:hover { background: var(--color-ink-hover); }
.btn--dark:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-bg);
  padding-block: 56px 80px;
  position: relative;
  z-index: 2;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__headline {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero__headline-accent { color: var(--color-accent); }
.hero__subheadline {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: 60ch;
}

.hero__visual { display: none; }

@media (max-width: 639px) {
  .hero { padding-block: 36px 80px; }
}

@media (min-width: 880px) {
  .hero {
    padding-block: 72px 144px;
    overflow: visible;
  }
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: end;
    text-align: left;
  }
  .hero__content {
    align-items: flex-start;
    align-self: start;
  }
  .hero__headline { max-width: 14ch; }
  .hero__visual {
    display: block;
    align-self: end;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: 80px;
    margin-bottom: 0;
  }
  .hero__illo {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ---------- Band area (light red bg, contains CTA box + carriers + intro) ---------- */
.band-area {
  background: var(--color-accent-soft);
  padding-bottom: 0;
}

/* ---------- CTA band (contained red box, overlaps into hero above) ---------- */
.cta-band {
  background: var(--color-accent);
  padding: 28px 24px;
  margin-top: -40px;
  margin-inline: auto;
  max-width: 1000px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  z-index: 3;
}

@media (min-width: 880px) {
  .cta-band { margin-top: -144px; padding: 32px 32px; }
}

/* Quote page — form is standalone, no hero to overlap into */
.quote-page .cta-band { margin-top: 0; }
.quote-main {
  background: var(--color-accent-soft);
  padding-block: 40px 64px;
  min-height: calc(100vh - 72px - 5px);
}
@media (min-width: 880px) {
  .quote-main { padding-block: 64px 96px; }
}

/* Progress bar at the top of the band */
.cta-band__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 200ms ease;
}
.cta-band--progressing .cta-band__progress { opacity: 1; }
.cta-band__progress-bar {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 12px 12px 0 0;
  transition: width 350ms ease;
}

/* Step container — all steps stacked, only active one in flow */
.cta-band__steps {
  position: relative;
  width: 100%;
}
.cta-step { display: none; }
.cta-step--active {
  display: block;
  animation: stepIn 320ms ease both;
}
.cta-step--back.cta-step--active {
  animation: stepInBack 320ms ease both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Step navigation row */
.cta-band__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.cta-band__back {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}
.cta-band__back:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.cta-band__nav .cta-band__submit { width: auto; flex: 1 1 auto; max-width: 280px; margin-left: auto; }

/* Field grid (vehicle, contact) */
.cta-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: left;
}
@media (min-width: 640px) {
  .cta-band__grid { grid-template-columns: repeat(2, 1fr); }
}
.cta-band__grid--two { grid-template-columns: 1fr; }
@media (min-width: 480px) {
  .cta-band__grid--two { grid-template-columns: repeat(2, 1fr); }
}

.cta-field {
  text-align: left;
  margin-bottom: 0;
}
.cta-field + .cta-field,
.cta-band__grid + .cta-field,
.cta-field + .cta-band__grid,
.cta-band__grid + .cta-band__grid { margin-top: 12px; }
.cta-band__grid .cta-field + .cta-field { margin-top: 0; }
.cta-field label {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.cta-field input,
.cta-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.cta-field select {
  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 fill='%230F172A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cta-field select:disabled {
  background-color: rgba(255, 255, 255, 0.7);
  color: #94A3B8;
  cursor: not-allowed;
}
.cta-field input:focus,
.cta-field select:focus {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}
.cta-field input::placeholder { color: #94A3B8; font-weight: 400; }
.cta-field input.is-invalid,
.cta-field select.is-invalid { outline: 3px solid #fff; outline-offset: 2px; }

/* Choice cards (radio button card style) */
.cta-choice {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
}
.cta-choice:last-of-type { margin-bottom: 0; }
.cta-choice legend {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 0;
}
.cta-choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cta-choice__options label {
  position: relative;
  flex: 1 1 0;
  min-width: 80px;
  cursor: pointer;
}
.cta-choice__options input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cta-choice__options span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.cta-choice__options input:checked + span {
  background: var(--color-ink);
  color: #fff;
  border-color: #fff;
}
.cta-choice__options input:focus-visible + span {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}
.cta-choice__options label:hover input:not(:checked) + span { background: #fff; }

/* TCPA consent (below submit button) */
.cta-band__tcpa {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

/* Thank you state */
.cta-thanks {
  padding: 24px 8px;
  color: #fff;
  text-align: center;
}
.cta-thanks__check {
  margin: 0 auto 16px;
  color: #fff;
  display: block;
}
.cta-thanks__title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 32px);
  color: #fff;
}
.cta-thanks__body {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.55;
  max-width: 44ch;
}

/* ---------- Sticky scroll-triggered ZIP bar ---------- */
.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
  transform: translateY(-100%);
  transition: transform 280ms ease;
  padding-block: 12px;
  visibility: hidden;
}
.sticky-cta--visible { transform: translateY(0); visibility: visible; }
.sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sticky-cta__title {
  margin: 0;
  font-weight: 800;
  color: var(--color-ink);
  font-size: 15px;
  white-space: nowrap;
}
.sticky-cta__form {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.sticky-cta__input {
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  width: 130px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  font-family: inherit;
}
.sticky-cta__input::-webkit-outer-spin-button,
.sticky-cta__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sticky-cta__input:focus {
  outline: 3px solid rgba(15, 23, 42, 0.15);
  outline-offset: 1px;
  border-color: var(--color-ink);
}
.sticky-cta__input.is-invalid { border-color: var(--color-accent); }
.sticky-cta__submit {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
}

@media (max-width: 559px) {
  .sticky-cta__title { display: none; }
  .sticky-cta__form { width: 100%; margin-left: 0; }
  .sticky-cta__input { flex: 1 1 auto; width: auto; }
}
.cta-band__title {
  margin: 0 0 18px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.01em;
}
.cta-band__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}
.cta-band__input {
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  width: 100%;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.cta-band__input::-webkit-outer-spin-button,
.cta-band__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cta-band__input::placeholder { color: #94A3B8; font-weight: 400; }
.cta-band__input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}
.cta-band__input.is-invalid {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.cta-band__submit { width: 100%; min-height: 52px; }
.cta-band__error {
  margin: 10px 0 0;
  min-height: 1.2em;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 560px) {
  .cta-band__row { flex-direction: row; }
  .cta-band__input { flex: 1 1 auto; }
  .cta-band__submit { width: auto; flex-shrink: 0; }
}

@media (max-width: 639px) {
  .cta-band {
    margin-top: -40px;
    padding: 24px 18px;
  }
}

/* ---------- Trust strip (sits on light red band) ---------- */
.trust-strip {
  padding-block: 40px 12px;
  background: transparent;
}
.trust-strip__title {
  margin: 0 0 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-ink);
  opacity: 0.6;
}
.trust-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  align-items: center;
  justify-items: center;
}
.trust-strip__list li {
  text-align: center;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 800;
  font-size: 15px;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  filter: grayscale(100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.trust-strip__logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 200ms ease;
}
.trust-strip__logo:hover { opacity: 0.9; }
@media (min-width: 960px) {
  .trust-strip__logo { height: 36px; }
}

@media (min-width: 560px) {
  .trust-strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .trust-strip__list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* ---------- Intro section (sits on the same light red band) ---------- */
.intro-section {
  padding-block: 64px 80px;
  text-align: center;
}
.intro-section__title {
  margin: 0 auto 24px;
  color: var(--color-accent);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.intro-section__body {
  margin: 0 auto;
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.7;
  max-width: 64ch;
}

@media (max-width: 639px) {
  .intro-section { padding-block: 48px 56px; }
  .intro-section__body { font-size: 15px; }
}

/* ---------- Features (8 selling points around a central phone) ---------- */
.features {
  background: var(--color-bg);
  padding-block: 64px 80px;
}
.features__layout {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.features__layout::-webkit-scrollbar { display: none; }

.features__center { display: none; }

.feature {
  flex: 0 0 calc(50% - 8px);
  scroll-snap-align: start;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.feature__icon {
  margin: 0 0 16px;
  color: var(--color-accent);
  display: flex;
  justify-content: center;
}
.feature__icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
.feature__title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.feature__body {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 960px) {
  .features { padding-block: 80px 96px; }
  .features__layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 48px 32px;
    overflow: visible;
    scroll-snap-type: none;
    align-items: center;
    padding-bottom: 0;
  }
  .features__layout > .feature {
    flex: initial;
    scroll-snap-align: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: left;
  }
  .features__layout > .feature:nth-child(1) { grid-column: 1; grid-row: 1; }
  .features__layout > .feature:nth-child(2) { grid-column: 1; grid-row: 2; }
  .features__layout > .feature:nth-child(3) { grid-column: 1; grid-row: 3; }
  .features__layout > .feature:nth-child(4) { grid-column: 1; grid-row: 4; }
  .features__center {
    display: block;
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    width: 320px;
  }
  .features__layout > .feature:nth-child(6) { grid-column: 3; grid-row: 1; }
  .features__layout > .feature:nth-child(7) { grid-column: 3; grid-row: 2; }
  .features__layout > .feature:nth-child(8) { grid-column: 3; grid-row: 3; }
  .features__layout > .feature:nth-child(9) { grid-column: 3; grid-row: 4; }
  .features__phone {
    width: 320px;
    height: auto;
    display: block;
  }
  .feature__icon {
    justify-content: flex-start;
    margin-bottom: 12px;
  }
  .feature__title { font-size: 18px; }
  .feature__body { font-size: 15px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 48px 32px;
  font-size: 14px;
  line-height: 1.55;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.site-footer__brand-icon { height: 22px; width: auto; flex-shrink: 0; }
.site-footer__brand-tld { color: var(--color-accent); }

.site-footer__disclaimers { max-width: 64ch; }
.site-footer__disclaimers p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.6;
}
.site-footer__disclaimers p + p { margin-top: 10px; }

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  justify-content: center;
}
.site-footer__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__links a:hover { color: #fff; }

.site-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}
