/* ==========================================================================
   AutoRates — quote comparison landing
   Design tokens live in :root. Change the brand colour in one place.
   ========================================================================== */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/lato-900.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/caveat-700.woff2") format("woff2");
}

:root {
  --blue: #0171d3;
  --blue-2: #1fa2ff;
  --lime: #cafc05;
  --navy: #0b2a4c;
  --ink: #0f172a;
  --text: #2e2e2e;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --page: #ffffff;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-soft: 0 12px 40px rgba(15, 42, 76, 0.08);
  --shadow-card: 4px 4px 4px rgba(159, 168, 175, 0.2);
  --container: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 4px 16px rgba(205, 205, 205, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.brand__icon {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand__name {
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__suffix {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--navy);
  opacity: 0.65;
}

.brand__text-blue {
  color: var(--blue);
}

.brand__text-dark {
  color: var(--navy);
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.phone-pill svg {
  width: 18px;
  height: 18px;
}

.phone-pill:hover,
.phone-pill:focus-visible {
  background: var(--lime);
  color: #2e2e2e;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -300px;
  left: -320px;
  width: 980px;
  height: 980px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #e2f0fd 0 42%, rgba(226, 240, 253, 0.9) 55%, rgba(226, 240, 253, 0.45) 66%, rgba(226, 240, 253, 0) 74%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.hero-copy {
  padding-block: 24px 8px;
}

.eyebrow {
  margin: 0;
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
}

.hero-title {
  margin: 6px 0 0;
  max-width: 460px;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 8px 0 0;
  max-width: 460px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

/* Form ------------------------------------------------------------------- */

.quote-form {
  margin-top: 20px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrap input:focus,
.age-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1, 113, 211, 0.15);
}

.input-wrap input::placeholder {
  color: #9ca3af;
}

.choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.choice-label {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.field-error {
  margin: 4px 0 0;
  font-size: 12px;
  color: #ef4444;
}

.segmented {
  display: inline-flex;
  flex: none;
  width: 96px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.option-btn {
  flex: 1 1 50%;
  min-width: 0;
  padding: 7px 0;
  border: 0;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.option-btn + .option-btn {
  border-left: 1px solid var(--line);
}

.option-btn.is-active {
  background: var(--blue);
  color: #fff;
}

.segmented.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

.age-select {
  flex: none;
  width: 96px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  outline: none;
}

.age-select.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled),
.submit-btn:focus-visible:not(:disabled) {
  background: var(--lime);
  color: #2e2e2e;
}

.submit-btn:disabled {
  opacity: 0.75;
  cursor: default;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

/* Hero illustration ------------------------------------------------------- */

.hero-media {
  display: none;
  align-items: center;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  padding-block: 36px 56px;
}

.about-inner {
  max-width: 896px;
}

.section-title {
  margin: 2px 0 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 720px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.about-card {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 8px 36px rgba(1, 113, 211, 0.25);
}

.about-icon svg {
  width: 56px;
  height: 56px;
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
}

.about-card p {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  overflow: hidden;
}

.faq::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -520px;
  bottom: -560px;
  width: 1400px;
  height: 1400px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #e2f0fd 0 40%, rgba(226, 240, 253, 0.85) 54%, rgba(226, 240, 253, 0.4) 66%, rgba(226, 240, 253, 0) 74%);
  pointer-events: none;
}

.faq-inner {
  max-width: 896px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 768px;
  margin-inline: auto;
  text-align: left;
}

.faq-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.2s ease;
}

.faq-chevron {
  flex: none;
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 15px;
  color: #4b5563;
}

.faq-question[aria-expanded="true"] {
  background: #ecfccb;
  border-radius: 6px 6px 0 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 24px 0;
}

.footer-disclaimer {
  max-width: 1180px;
  margin: 0 auto 16px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a {
  color: #fff;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note,
.footer-copy {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}


/* --------------------------------------------------------------------------
   Redirect
   -------------------------------------------------------------------------- */

/* Kept in the document, visually hidden, so the tracking script can find it
   and append its click parameters to the href before we redirect. */
.redirect-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(238, 246, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade-in 0.25s ease both;
}

.redirect-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(2, 26, 64, 0.18);
  animation: pop-in 0.28s ease both;
}

.redirect-spinner-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.redirect-spinner {
  position: absolute;
  inset: 0;
  border: 4px solid #dbe8f6;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.redirect-shield {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.redirect-shield svg {
  width: 30px;
  height: 30px;
}

.redirect-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.redirect-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

body.is-redirecting {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal {
  padding-block: 48px 72px;
}

.legal__inner {
  max-width: 820px;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
}

.legal .updated {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--muted);
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 19px;
  color: var(--ink);
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.65;
  color: #3f4753;
}

.legal ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal a {
  text-decoration: underline;
}

.legal .back {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Animation
   -------------------------------------------------------------------------- */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title {
    font-size: 28px;
  }
}

@media (min-width: 768px) {
  .brand__icon {
    width: 48px;
    height: 48px;
  }

  .brand__name {
    font-size: 24px;
  }

  .brand__suffix {
    font-size: 10px;
  }

  .phone-pill {
    font-size: 18px;
    padding: 8px 18px;
  }

  .phone-pill svg {
    width: 20px;
    height: 20px;
  }

  .hero-copy {
    padding-block: 40px 24px;
  }

  .eyebrow {
    font-size: 28px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 20px;
  }

  .quote-form {
    margin-top: 24px;
    padding: 24px;
  }

  .field-label {
    font-size: 20px;
  }

  .input-wrap input {
    font-size: 20px;
    height: 48px;
  }

  .choice-label {
    font-size: 20px;
  }

  .segmented {
    width: 144px;
  }

  .option-btn {
    font-size: 20px;
    padding: 5px 0;
  }

  .age-select {
    width: 144px;
    font-size: 20px;
    padding: 8px 4px;
  }

  .choice-row {
    margin-top: 18px;
  }

  .submit-btn {
    padding: 10px 16px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-lead {
    font-size: 20px;
  }

  .about {
    padding-block: 64px 64px;
  }

  .faq-inner {
    text-align: center;
  }

  .faq-inner .section-lead {
    margin-inline: auto;
  }

  .faq-question {
    font-size: 16px;
    padding: 14px 18px;
  }

  .footer-disclaimer {
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    gap: 32px;
  }

  .hero-copy {
    padding-block: 48px 40px;
  }

  .hero-media {
    display: flex;
    padding: 8px 0 24px;
  }

  .about {
    padding-block: 120px 64px;
  }

  .about-inner {
    padding-inline: 16px;
  }

  .about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-inner {
    padding-top: 64px;
    padding-bottom: 224px;
  }

}

@media (min-width: 1280px) {
  .hero-media img {
    max-width: 612px;
  }
}








@media (max-width: 430px) {
  .brand__name {
    font-size: 17px;
  }

  .phone-pill {
    padding: 9px 12px;
    font-size: 14px;
  }

  .phone-pill svg {
    display: none;
  }
}

@media (max-width: 359px) {
  .phone-pill {
    padding: 8px 10px;
  }

  .phone-pill svg {
    display: block;
  }

  .phone-pill span {
    display: none;
  }
}







