@font-face {
  font-family: 'Google Sans';
  src: url(../assets/fonts/google-sans.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url(../assets/fonts/google-sans-italic.woff2) format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0d2a5e;
  --ink: #1c2b46;
  --muted: #6b7690;
  --line: #e4e8f1;
  --panel: #f5f6fa;
  --blue: #3d6fe0;
  --coral: #ff5f68;
  --coral-dark: #ef4c56;
  --green: #2fa84f;
  --idle: #dfe3f0;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(13, 42, 94, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
select:not(:disabled) { cursor: pointer; }
select:disabled, button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}
.pill--outline { border: 1px solid rgba(255, 255, 255, .8); color: #fff; }
.pill--solid { background: #fff; color: var(--navy); font-weight: 500; }
.pill--glass { border: 1px solid rgba(255, 255, 255, .7); color: #fff; background: rgba(0, 0, 0, .18); }

/* ---- Mobile first ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.site-logo img { display: block; width: auto; height: 38px; }
.site-nav { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.site-nav__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
/* All caps: trim the box to the capital letters, so "WHATSAPP" sits in the
   true middle instead of above the space kept for descenders. */
@supports (text-box: trim-both cap alphabetic) {
  .site-nav__whatsapp { padding-top: 9px; padding-bottom: 9px; }
  .site-nav__whatsapp-text { display: block; text-box: trim-both cap alphabetic; }
}

.hero__copy { padding: 12px 16px 12px; }
.hero__kicker { margin: 0 0 4px; font-size: 14px; }
.hero__kicker .pill { display: none; }
h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 9vw, 40px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hero__accent { display: block; color: var(--coral); font-weight: 500; }
.hero__lead { margin: 8px 0 0; font-size: 14px; line-height: 1.35; }
.hero__lead strong { font-weight: 600; }
.hero__stats { display: none; }

.quote-card {
  padding: 4px 16px 14px;
  background: var(--panel);
  border-radius: 24px 24px 0 0;
}
.quote-card__top { display: flex; flex-direction: column; }
.tabs { display: flex; justify-content: center; gap: 8px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 9px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink);
  font-size: 14px;
}
.tab[aria-selected="true"] { border-bottom-color: var(--coral); font-weight: 500; }

.quote-card__row { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.batch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field--full-mobile { grid-column: 1 / -1; }

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 54px;
  padding: 7px 28px 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.field:hover { border-color: #b9c6e8; }
.field.is-next { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 111, 224, .12); }
.field__label { font-size: 14px; color: var(--ink); line-height: 1.25; }
.field__value {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.field.is-filled .field__value { color: var(--navy); font-weight: 500; }
.field__icon {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 3v18M5 14l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M12 3v18M5 14l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field.is-loading .field__icon {
  border: 2px solid var(--line);
  border-top-color: var(--coral);
  border-radius: 50%;
  background: none;
  -webkit-mask: none;
  mask: none;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: var(--idle);
  cursor: pointer;
  transition: background .15s;
}
.switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.switch:checked { background: var(--blue); }
.switch:checked::before { transform: translateX(18px); }

.progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; color: var(--coral); font-size: 10px; font-weight: 500; }
.progress__dots { display: inline-flex; gap: 4px; }
.progress__dots i { width: 7px; height: 7px; border-radius: 99px; background: #ffb4b8; transition: width .2s; }
.progress__dots i.is-on { width: 22px; background: var(--coral); }

.cta {
  width: 100%;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 500;
  transition: background .15s, transform .05s;
}
.cta:hover { background: var(--coral-dark); }
.cta:active { transform: translateY(1px); }
.cta:disabled { background: var(--idle); color: #fff; }

.assurance { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; color: var(--navy); font-size: 12px; }
.lock { flex: none; color: var(--blue); }

.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  margin: 0 16px;
  padding: 24px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, .92) 8%, rgba(0, 0, 0, 0) 62%), url(../assets/img/promo.jpg) center / cover;
  color: #fff;
}
.promo__tags { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.promo__title { margin: 14px 0 0; font-size: 30px; line-height: 1.12; letter-spacing: -.01em; }
.promo__title strong { font-weight: 700; }

/* Sizes are balanced by eye: ATM is much squarer than the wordmarks. */
.insurers {
  padding: 28px 0 32px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.insurers__track { display: flex; width: max-content; animation: insurers-scroll 22s linear infinite; }
.insurers__set { display: flex; flex: none; align-items: center; gap: 40px; padding-right: 40px; }
.insurer { display: block; flex: none; width: auto; height: var(--logo-height, 26px); }
.insurer--segunda { --logo-height: 25px; }
.insurer--zurich { --logo-height: 25px; }
.insurer--atm { --logo-height: 38px; }
@keyframes insurers-scroll { to { transform: translateX(-50%); } }

/* ---- Desktop ---- */

@media (min-width: 1000px) {
  .site-header { max-width: 1180px; margin: 0 auto; padding: 12px 20px; border: 0; }
  .site-logo img { height: 44px; }
  .site-nav__whatsapp svg { display: none; }

  main { padding: 0 20px; }
  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(76vh, 760px);
    padding: 40px 32px;
    border-radius: 28px;
    background: linear-gradient(rgba(10, 14, 28, .62), rgba(10, 14, 28, .62)), url(../assets/img/hero.jpg) center 30% / cover;
    color: #fff;
  }
  .hero__copy { padding: 0; text-align: center; }
  .hero__kicker { display: flex; justify-content: center; gap: 4px; margin-bottom: 14px; }
  .hero__kicker .pill { display: inline-flex; }
  .hero__kicker-mobile { display: none; }
  h1 { color: #fff; font-size: clamp(40px, 4.2vw, 62px); }
  .hero__accent { display: inline; }
  .hero__comma { display: none; }
  .hero__lead { margin-top: 12px; font-size: 17px; }

  .quote-card {
    width: 100%;
    max-width: 1240px;
    margin-top: 40px;
    padding: 0 24px 16px;
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }
  .quote-card__top { flex-direction: row; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .tabs { justify-content: flex-start; gap: 16px; border: 0; }
  .tab { min-width: 150px; padding: 14px 16px 12px; }
  .progress { margin: 0; font-size: 12px; }

  .quote-card__row { flex-direction: row; align-items: stretch; gap: 12px; margin-top: 16px; }
  .batch { flex: 1; min-width: 0; align-items: center; gap: 10px; }
  .batch--car { grid-template-columns: 1.3fr 1fr 1.3fr 1.7fr auto auto; }
  .batch--contact { grid-template-columns: 1.2fr 1fr 1.3fr .7fr 1.2fr; }
  .field--full-mobile { grid-column: auto; }
  .switch-card { flex-direction: row; padding: 0 4px; border: 0; background: none; white-space: nowrap; }
  .switch { width: 30px; height: 16px; }
  .switch::before { top: 2px; left: 2px; width: 12px; height: 12px; }
  .switch:checked::before { transform: translateX(14px); }

  .cta { flex: none; width: 130px; height: 54px; padding: 0; border-radius: 14px; }
  .cta.is-idle { background: var(--idle); }
  .assurance { justify-content: flex-start; margin-top: 12px; }

  .hero__stats {
    display: inline-flex;
    gap: 18px;
    margin: 36px 0 0;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(70, 70, 70, .6);
    font-size: 15px;
    font-weight: 500;
  }
  .hero__stats span + span { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .5); }

  .promo { display: none; }
  .insurers { max-width: 1040px; margin: 0 auto; padding: 36px 0 44px; -webkit-mask: none; mask: none; }
  .insurers__track { width: auto; animation: none; }
  .insurers__set { flex: 1; justify-content: space-between; gap: 32px; padding: 0; }
  .insurers__set--copy { display: none; }
  .insurer { --logo-height: 34px; }
  .insurer--segunda, .insurer--zurich { --logo-height: 32px; }
  .insurer--atm { --logo-height: 50px; }
}

/* ---- Modal ---- */

.modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
}
.modal::backdrop { background: rgba(9, 20, 46, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
.modal__panel { display: flex; flex-direction: column; height: 100%; }
.modal__header { display: flex; align-items: center; gap: 8px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.modal__header h2 { flex: 1; margin: 0; color: var(--navy); font-size: 20px; font-weight: 500; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--navy);
}
.icon-button:hover { background: var(--panel); }
.icon-button:disabled { visibility: hidden; }
.modal__meter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px 0; }
.modal__part { display: flex; flex-direction: column; gap: 5px; }
.modal__part-label { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.modal__part.is-current .modal__part-label { color: var(--navy); }
.modal__part-bar { height: 4px; overflow: hidden; border-radius: 99px; background: var(--line); }
.modal__part-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--coral); transition: width .25s; }
.modal__answers { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.modal__answers:empty { display: none; }
/* Same pill language as the hero: navy outline, coral accent, full radius. */
.answer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 32px;
  padding: 0 12px 0 6px;
  border: 1px solid #cfd8ea;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(13, 42, 94, .06);
  transition: border-color .15s, box-shadow .15s;
}
.answer-chip::before { content: ''; flex: none; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--coral); }
.answer-chip:has(.answer-chip__logo)::before { display: none; }
.answer-chip:hover { border-color: var(--navy); box-shadow: 0 2px 8px rgba(13, 42, 94, .12); }
.answer-chip__logo { flex: none; width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: var(--panel); object-fit: contain; }
.answer-chip__label { flex: none; color: var(--coral-dark); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.answer-chip__value { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; }
.modal__body { flex: 1; padding: 12px 16px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal__footer { padding: 12px 16px; border-top: 1px solid var(--line); }
.modal__footer .cta { width: 100%; height: 50px; border-radius: 999px; }

.selector {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61, 111, 224, .1);
}
.selector label { flex: none; padding-right: 10px; border-right: 1px solid var(--line); font-size: 15px; }
.selector input, .selector select {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 16px;
}
.hint { display: flex; gap: 6px; margin: 10px 0 12px; color: var(--muted); font-size: 12px; }
.reason { display: flex; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--panel); color: var(--ink); font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.selector input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.selector input[type="number"]::-webkit-inner-spin-button,
.selector input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.field-error { min-height: 16px; margin: 4px 0 0 4px; color: var(--coral-dark); font-size: 12px; }

.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100px;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f9fafd);
  color: var(--navy);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.logo-card:hover { border-color: #b9c6e8; box-shadow: 0 8px 20px rgba(13, 42, 94, .1); transform: translateY(-2px); }
.logo-card.is-selected { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13, 42, 94, .1); }
.logo-card.is-selected::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
/* One box for every logo: wide marks fill its width, tall ones its height. */
.logo-card__logo { width: 64px; height: 40px; object-fit: contain; }
.logo-card__name { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.year-card {
  height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-weight: 500;
}
.year-card:hover { border-color: var(--blue); }
.year-card.is-selected { border-color: var(--blue); background: #edf1fb; }

.option-list { margin: 0 -16px; padding: 0; list-style: none; }
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}
.option:hover { background: var(--panel); }
.option small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green); position: relative; }
.check::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.notice { padding: 28px 8px; color: var(--muted); font-size: 14px; text-align: center; }
.notice button { display: block; margin: 10px auto 0; padding: 8px 18px; border: 1px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue); }
.detail-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 440px; margin: 28px auto 0; }
.detail-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 150px;
  padding: 24px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--navy);
  font-size: 19px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.detail-toggle:hover { border-color: #b9c6e8; }
.detail-toggle:has(.switch:checked) { border-color: var(--blue); background: #f3f6fd; box-shadow: 0 0 0 3px rgba(61, 111, 224, .1); }
.detail-toggle .switch { width: 64px; height: 34px; }
.detail-toggle .switch::before { top: 4px; left: 4px; width: 26px; height: 26px; }
.detail-toggle .switch:checked::before { transform: translateX(30px); }

.combo { position: relative; }
.combo__input { cursor: pointer; }
.combo__input:focus { cursor: text; }
.combo__chevron {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.combo__list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 264px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 40px rgba(13, 42, 94, .18);
}
.combo__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--navy);
  font-size: 15px;
  cursor: pointer;
}
.combo__option:hover, .combo__option.is-active { background: #edf1fb; }
.combo__option.is-selected { font-weight: 600; }
.combo__option.is-selected::after { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.combo__empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }

@media (min-width: 640px) {
  .modal {
    width: 620px;
    max-width: calc(100vw - 40px);
    height: min(720px, calc(100vh - 48px));
    margin: auto;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .logo-card { height: 112px; }
  .logo-card__logo { width: 76px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
