/* EverQuote front-door pages — shared stylesheet
   Tokens follow the EverQuote brand kit (Mulish, Deep Sea / Cobalt / Bright Blue / Flame)
   and the Figma "Front Door Project" file. */

:root {
  --eq-deep-sea: #12266d;
  --eq-cobalt: #205bb9;
  --eq-bright-blue: #009bd7;
  --eq-flame: #f76719;
  --eq-flame-dark: #e0590f;
  --eq-ink: #1a2233;
  --eq-slate: #374151;
  --eq-line: #e5e7eb;
  --eq-line-strong: #d1d5db;
  --eq-bg: #f9f9fb;
  --eq-surface: #ffffff;
  --eq-sky: #e2f1fd;
  --eq-sky-strong: #badafa;
  --eq-focus: #278bed;
  --eq-error: #c62828;

  --radius-card: 12px;
  --radius-button: 8px;
  --radius-panel: 16px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);

  --font: 'Mulish', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1280px;
  --gutter: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--eq-slate);
  background: var(--eq-surface);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--eq-deep-sea);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px var(--gutter);
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: var(--eq-slate);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 768px;
}

.section-head h2 {
  font-size: 48px;
  line-height: 54px;
}

.section-head .lede {
  font-size: 24px;
  line-height: 32px;
  color: var(--eq-slate);
}

.section-head--center {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--eq-flame);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.btn--primary:hover {
  background: var(--eq-flame-dark);
}

.btn--primary:focus-visible {
  outline: 3px solid var(--eq-sky-strong);
  outline-offset: 2px;
}

.btn--lg {
  min-height: 52px;
  font-size: 18px;
  padding: 14px 24px;
}

.btn__arrow {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0 var(--gutter);
}

.site-header--static {
  position: relative;
  top: 0;
  padding-top: 18px;
  background: var(--eq-surface);
}

.nav-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4px;
  border: 1px solid var(--eq-line);
  border-radius: var(--radius-card);
  background: var(--eq-sky);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 16px 16px 16px 24px;
  border-radius: var(--radius-button);
  background: var(--eq-surface);
  box-shadow: var(--shadow-card);
}

.nav__logo {
  flex: none;
  display: block;
}

.nav__logo img {
  width: 183px;
  height: 24px;
}

.nav__links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--eq-deep-sea);
}

.nav__link:hover {
  color: var(--eq-cobalt);
}

.nav__link img {
  width: 20px;
  height: 20px;
}

.nav__cta {
  flex: none;
}

.nav__toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--eq-line);
  border-radius: var(--radius-button);
  background: var(--eq-surface);
  color: var(--eq-deep-sea);
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  content: '';
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle span {
  position: relative;
}

.nav__toggle span::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav__toggle span::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.nav--open .nav__toggle span {
  background: transparent;
}

.nav--open .nav__toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav--open .nav__toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--eq-surface);
}

.hero__media {
  position: relative;
  min-height: 779px;
  background: var(--eq-sky);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 228px var(--gutter) 64px;
}

.hero__headline {
  max-width: 608px;
  font-size: 48px;
  line-height: 60px;
  color: var(--eq-deep-sea);
}

/* Quote card (hero + bottom CTA share it) */

.quote-card {
  width: 580px;
  max-width: 100%;
  margin-top: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-card);
  background: var(--eq-surface);
  box-shadow: var(--shadow-float);
}

.quote-card--compact {
  width: 486px;
  margin-top: 0;
  border-color: transparent;
}

.vertical-tabs {
  display: flex;
  gap: 0;
  padding: 6px 4px;
  border: 1px solid var(--eq-line);
  border-radius: var(--radius-button);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 2px 4px 18px rgba(0, 0, 0, 0.09);
}

.vertical-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--eq-deep-sea);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.vertical-tab[aria-checked='true'] {
  background: var(--eq-sky);
  border-color: var(--eq-cobalt);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.vertical-tab:focus-visible {
  outline: 2px solid var(--eq-focus);
  outline-offset: 1px;
}

.vertical-tab__icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.vertical-tab__bundle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.vertical-tab__bundle .vertical-tab__icon--sm {
  width: 17px;
  height: 17px;
}

.vertical-tab__bundle .vertical-tab__icon--xs {
  width: 9px;
  height: 9px;
}

.zip-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zip-form__label {
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  color: var(--eq-deep-sea);
}

.zip-form__group {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-button);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.zip-form__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--eq-line-strong);
  border-right: 0;
  border-radius: var(--radius-button) 0 0 var(--radius-button);
  font: inherit;
  font-size: 16px;
  color: var(--eq-deep-sea);
  background: var(--eq-surface);
}

.zip-form__input::placeholder {
  color: #9ca3af;
}

.zip-form__input:focus {
  outline: none;
  border-color: var(--eq-focus);
  box-shadow: 0 0 0 3px var(--eq-sky);
}

.zip-form__group .btn {
  border-radius: 0 var(--radius-button) var(--radius-button) 0;
  box-shadow: none;
}

.zip-form__error {
  display: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--eq-error);
}

.zip-form--invalid .zip-form__error {
  display: block;
}

.zip-form--invalid .zip-form__input {
  border-color: var(--eq-error);
}

/* Partner logo banner */

.partners {
  padding: 48px 24px 0;
  text-align: center;
}

.partners__title {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--eq-slate);
}

.partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 92px;
}

.partners__logo img {
  max-width: 151px;
  max-height: 46px;
  width: auto;
  height: auto;
}

/* Stat row */

.stats {
  padding: 96px var(--gutter);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat__value {
  font-size: 48px;
  line-height: 40px;
  font-weight: 700;
  color: var(--eq-deep-sea);
}

.stat__rule {
  height: 1px;
  background: var(--eq-sky);
}

.stat__label {
  font-size: 20px;
  line-height: 28px;
  color: var(--eq-deep-sea);
}

/* ---------- How it works ---------- */

.how {
  padding: 96px var(--gutter) 176px;
}

.how__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.how__head {
  padding: 0 32px;
}

.how__body {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 0 32px;
}

.how__steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 496px;
  max-width: 100%;
}

.how__step h3 {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 10px;
}

.how__step p {
  font-size: 20px;
  line-height: 28px;
}

.how__visual {
  position: relative;
  flex: none;
  width: 600px;
  min-height: 520px;
}

.how__photo-frame {
  position: absolute;
  top: -140px;
  right: 0;
  width: 440px;
  height: 647px;
  padding: 8px;
  border: 1.8px solid var(--eq-line);
  border-radius: 24px;
  background: var(--eq-surface);
}

.how__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.make-card {
  position: absolute;
  top: 120px;
  left: 0;
  width: 276px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-radius: 15px;
  background: var(--eq-surface);
  box-shadow: var(--shadow-float);
}

.make-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid var(--eq-line-strong);
  border-radius: var(--radius-button);
  background: var(--eq-surface);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 700;
  color: var(--eq-deep-sea);
}

.make-card__row--selected {
  background: var(--eq-sky);
  border-color: var(--eq-focus);
}

.make-card__row img {
  width: 85px;
  height: 35px;
  object-fit: contain;
}

.how__badge {
  position: absolute;
  display: flex;
  padding: 4px;
  border: 1px solid var(--eq-line-strong);
  border-radius: var(--radius-card);
  background: var(--eq-surface);
  box-shadow: var(--shadow-card);
}

.how__badge img {
  width: 56px;
  height: 56px;
}

.how__badge--house {
  top: -103px;
  right: -16px;
  transform: rotate(15deg);
}

.how__badge--car {
  top: 47px;
  left: 200px;
  transform: rotate(-15deg);
}

/* ---------- Compare band ---------- */

.compare {
  padding: 96px var(--gutter);
  background: radial-gradient(ellipse 80% 120% at 75% 50%, #205bb9 0%, #194193 50%, #12266d 100%);
  color: #fff;
}

.compare__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.compare__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 32px;
}

.compare__copy h2 {
  max-width: 601px;
  font-size: 48px;
  line-height: 1.15;
  color: #fff;
}

.compare__copy .lede {
  max-width: 586px;
  font-size: 24px;
  line-height: 28px;
  color: #fff;
}

.compare__points {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 579px;
}

.compare__points li {
  display: flex;
  gap: 8px;
  font-size: 20px;
  line-height: 28px;
}

.compare__points img {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 2px;
}

.compare-panel {
  position: relative;
  flex: none;
  width: 548px;
  max-width: 100%;
  padding: 32px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 25px rgba(57, 57, 57, 0.25);
}

.quote-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--eq-line-strong);
  border-radius: var(--radius-card);
  background: var(--eq-surface);
}

.quote-row--best {
  border: 1.5px solid var(--eq-focus);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.quote-row__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 47px;
  flex: none;
}

.quote-row__logo img {
  max-width: 86px;
  max-height: 47px;
  width: auto;
  height: auto;
}

.quote-row__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--eq-deep-sea);
}

.quote-row__meta {
  font-size: 13px;
  color: var(--eq-slate);
}

.compare-panel__note {
  font-size: 12px;
  text-align: center;
  color: #fff;
}

.best-flag {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--radius-button);
  background: var(--eq-deep-sea);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.best-flag img {
  width: 16px;
  height: 16px;
}

/* ---------- Why choose us ---------- */

.why {
  padding: 96px var(--gutter);
  background: var(--eq-bg);
}

.why__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 0 32px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.feature__icon {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--eq-line-strong);
  border-radius: var(--radius-card);
  background: var(--eq-surface);
  box-shadow: var(--shadow-card);
}

.feature__icon img {
  width: 56px;
  height: 56px;
}

.feature h3 {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 12px;
}

.feature p {
  font-size: 20px;
  line-height: 28px;
}

/* ---------- Agents ---------- */

.agents {
  padding: 96px 0 96px var(--gutter);
  overflow: hidden;
}

.agents__inner {
  max-width: calc(var(--container) + var(--gutter));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-left: 32px;
}

.agents__row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-right: var(--gutter);
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.agents__row::-webkit-scrollbar {
  display: none;
}

.agent-card {
  flex: none;
  width: 410px;
  scroll-snap-align: start;
  border: 1px solid var(--eq-line-strong);
  border-radius: var(--radius-card);
  background: var(--eq-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.agent-card__photo {
  aspect-ratio: 1 / 1;
  background: var(--eq-sky-strong);
}

.agent-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.agent-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--eq-deep-sea);
}

.agent-card__meta {
  font-size: 13px;
  line-height: 18px;
  color: var(--eq-slate);
}

.agent-card__logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 78px;
  height: 42px;
  flex: none;
}

.agent-card__logo img {
  max-width: 78px;
  max-height: 42px;
  width: auto;
  height: auto;
}

/* ---------- FAQ ---------- */

.faq {
  position: relative;
  padding: 96px var(--gutter);
  background: var(--eq-sky);
  overflow: hidden;
}

.faq__illustration {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.faq__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.accordion {
  width: 700px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion__item {
  border: 1px solid var(--eq-line-strong);
  border-radius: var(--radius-card);
  background: var(--eq-surface);
  overflow: hidden;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 20px 20px 24px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--eq-deep-sea);
}

.accordion__trigger:focus-visible {
  outline: 2px solid var(--eq-focus);
  outline-offset: -2px;
}

.accordion__icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.accordion__icon--minus {
  display: none;
}

.accordion__item--open .accordion__icon--minus {
  display: block;
}

.accordion__item--open .accordion__icon--plus {
  display: none;
}

.accordion__panel {
  display: none;
  padding: 0 20px 20px 24px;
  font-size: 16px;
  line-height: 25px;
  color: var(--eq-slate);
}

.accordion__panel p + p {
  margin-top: 12px;
}

.accordion__item--open .accordion__panel {
  display: block;
}

/* ---------- CTA band ---------- */

.cta {
  padding: 96px var(--gutter);
}

.cta__band {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 64px;
  border-radius: 28px;
  background: radial-gradient(ellipse 120% 160% at 77% 50%, #205bb9 0%, #194193 50%, #12266d 100%);
  color: #fff;
}

.cta__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta__copy h2 {
  font-size: 36px;
  line-height: 40px;
  color: #fff;
}

.cta__copy p {
  font-size: 20px;
  line-height: 30px;
  color: var(--eq-sky);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  color: var(--eq-deep-sea);
  background: var(--eq-surface);
}

.site-footer__logo img {
  width: 130px;
  height: 17px;
}

.site-footer__blurb {
  max-width: 648px;
  margin-top: 40px;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.site-footer__columns h4 {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--eq-cobalt);
}

.site-footer__columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__columns a:hover {
  text-decoration: underline;
}

/* ---------- Insights page ---------- */

.insights-hero {
  padding: 140px var(--gutter) 96px;
  background: radial-gradient(ellipse 80% 120% at 75% 50%, #205bb9 0%, #194193 50%, #12266d 100%);
  color: #fff;
}

.insights-hero .eyebrow {
  color: var(--eq-sky);
}

.insights-hero h1 {
  max-width: 768px;
  font-size: 48px;
  line-height: 56px;
  color: #fff;
}

.insights-hero .lede {
  max-width: 640px;
  font-size: 24px;
  line-height: 32px;
  color: var(--eq-sky);
}

.insights {
  padding: 96px var(--gutter);
  background: var(--eq-bg);
}

.insights__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.insight-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--eq-line-strong);
  border-radius: var(--radius-panel);
  background: var(--eq-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.insight-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--eq-deep-sea);
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-card__media--tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 120% at 75% 50%, #205bb9 0%, #194193 50%, #12266d 100%);
}

.insight-card__media--tile img {
  width: 220px;
  height: auto;
  transform: translateY(-48px);
}

.insight-card__media--tile .insight-card__play {
  top: auto;
  bottom: 28px;
  transform: translateX(-50%);
}

.insight-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 38, 109, 0.85);
  color: #fff;
  transition: background-color 0.15s ease;
}

.insight-card__media:hover .insight-card__play {
  background: var(--eq-flame);
}

.insight-card__play svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.insight-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  flex: 1 1 auto;
}

.insight-card__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--eq-cobalt);
}

.insight-card h2 {
  font-size: 24px;
  line-height: 32px;
}

.insight-card__speakers {
  font-size: 14px;
  font-weight: 700;
  color: var(--eq-deep-sea);
}

.insight-card__summary {
  font-size: 17px;
  line-height: 27px;
}

.insight-card__takeaways {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 25px;
}

.insight-card__takeaways li + li {
  margin-top: 6px;
}

.insight-card__link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--eq-cobalt);
}

.insight-card__link:hover {
  text-decoration: underline;
}

.insight-card__link svg {
  width: 18px;
  height: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  :root {
    --gutter: 40px;
  }

  .nav__links {
    gap: 32px;
  }

  .how__visual {
    width: 480px;
  }

  .how__photo-frame {
    width: 380px;
    height: 560px;
  }

  .how__badge--car {
    left: 150px;
  }

  .compare-panel {
    width: 460px;
  }
}

@media (max-width: 960px) {
  .section-head h2,
  .hero__headline,
  .compare__copy h2,
  .insights-hero h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .section-head .lede,
  .compare__copy .lede,
  .insights-hero .lede {
    font-size: 20px;
    line-height: 28px;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__cta {
    display: none;
  }

  .nav--open {
    flex-wrap: wrap;
  }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 8px 0 16px;
    order: 3;
  }

  .nav--open .nav__cta {
    display: inline-flex;
    width: 100%;
    order: 4;
  }

  .hero__content {
    padding-top: 160px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .how {
    padding-bottom: 96px;
  }

  .how__body {
    flex-direction: column;
    padding: 0;
  }

  .how__visual {
    width: 100%;
    min-height: 0;
    height: auto;
  }

  .how__photo-frame {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 440px;
    height: auto;
    margin: 0 auto;
  }

  .how__photo {
    aspect-ratio: 440 / 630;
  }

  .make-card,
  .how__badge {
    display: none;
  }

  .compare__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
  }

  .compare__copy {
    padding: 0;
  }

  .compare-panel {
    width: 100%;
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why__inner {
    padding: 0;
  }

  .agents__inner {
    padding-left: 0;
  }

  .agent-card {
    width: 300px;
  }

  .cta__band {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 40px 24px;
  }

  .quote-card--compact {
    width: 100%;
  }

  .site-footer {
    padding: 40px var(--gutter);
  }

  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insights-hero {
    padding-top: 120px;
  }

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

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .section-head h2,
  .hero__headline,
  .compare__copy h2,
  .insights-hero h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .site-header {
    top: 12px;
  }

  .nav {
    min-height: 64px;
    padding: 10px 12px 10px 16px;
  }

  .nav__logo img {
    width: 150px;
    height: 20px;
  }

  .hero__media {
    min-height: 0;
  }

  .hero__photo {
    position: relative;
    display: block;
    height: 320px;
    margin-top: 92px;
    object-position: 60% 30%;
  }

  .hero__content {
    padding: 32px var(--gutter) 48px;
  }

  .quote-card {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
  }

  .vertical-tab {
    padding: 12px 8px;
    font-size: 13px;
  }

  .zip-form__group {
    flex-direction: column;
    box-shadow: none;
  }

  .zip-form__input {
    border-right: 1px solid var(--eq-line-strong);
    border-radius: var(--radius-button);
  }

  .zip-form__group .btn {
    margin-top: 8px;
    border-radius: var(--radius-button);
  }

  .partners {
    padding-top: 32px;
  }

  .partners__logo {
    width: 140px;
    height: 64px;
  }

  .partners__logo img {
    max-width: 120px;
    max-height: 36px;
  }

  .stats {
    padding: 64px var(--gutter);
  }

  .stats__grid {
    padding: 0;
    gap: 32px;
  }

  .stat__value {
    font-size: 36px;
  }

  .stat__label {
    font-size: 16px;
    line-height: 24px;
  }

  .how,
  .compare,
  .why,
  .agents,
  .faq,
  .cta,
  .insights {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .how__steps {
    width: 100%;
  }

  .how__step h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .how__step p,
  .feature p,
  .compare__points li {
    font-size: 17px;
    line-height: 26px;
  }

  .compare-panel {
    padding: 40px 12px 12px;
  }

  .quote-row {
    padding: 12px;
  }

  .feature {
    padding: 8px 0;
  }

  .agent-card {
    width: 260px;
  }

  .accordion__trigger {
    padding: 16px;
    font-size: 17px;
    line-height: 24px;
  }

  .accordion__panel {
    padding: 0 16px 16px;
  }

  .cta__copy h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .site-footer__columns {
    grid-template-columns: 1fr;
  }

  .insight-card__body {
    padding: 20px;
  }

  .insight-card h2 {
    font-size: 20px;
    line-height: 28px;
  }
}
