:root {
  --wine-950: #170609;
  --wine-900: #26090f;
  --wine-800: #4c0f1d;
  --wine-700: #6b1526;
  --red: #bc2c2c;
  --red-deep: #9c2424;
  --cream: #f4ecdf;
  --paper: #fdfaf4;
  --ink: #241a1c;
  --muted: #7a6e6f;
  --line: #e3d7c6;
  --gold: #c8a16c;
  --gold-soft: #e6cba0;
  --shadow-card: 0 30px 80px rgba(10, 2, 4, .45), 0 4px 18px rgba(10, 2, 4, .28);
  --ease-out: cubic-bezier(.22, .8, .32, 1);
}

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

html {
  min-width: 320px;
  color-scheme: dark;
  background: var(--wine-950);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(188, 44, 44, .22), transparent 62%),
    radial-gradient(900px 600px at -12% 110%, rgba(200, 161, 108, .10), transparent 55%),
    linear-gradient(180deg, var(--wine-900), var(--wine-950) 58%);
  background-attachment: fixed;
  font-family: "Manrope Variable", Manrope, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a { font: inherit; }
button { color: inherit; }

.quiz-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}

.quiz-header__brand { display: flex; align-items: center; gap: 18px; }
.quiz-brand { display: inline-flex; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.quiz-brand img { display: block; width: 138px; height: auto; }

.quiz-header__brand > span {
  padding-left: 18px;
  color: var(--gold-soft);
  border-left: 1px solid rgba(200, 161, 108, .4);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.quiz-header p, .quiz-whatsapp {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 740;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.quiz-header p i { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }

.quiz-whatsapp { color: #fff; background: #247a54; text-decoration: none; }

.quiz-page {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 84px);
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  padding: 0 0 30px;
}

.quiz-shell {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(200, 161, 108, .5);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.quiz-flow { display: none; }
.quiz-flow:target, body.quiz-started .quiz-flow { display: block; }
.quiz-flow:target + .quiz-intro, body.quiz-started .quiz-intro { display: none; }

.quiz-progress {
  position: relative;
  z-index: 2;
  padding: 18px 32px 16px;
  background: linear-gradient(180deg, #fff, var(--paper));
  border-bottom: 1px solid var(--line);
}

.quiz-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.quiz-progress strong { color: var(--wine-800); font-variant-numeric: tabular-nums; }

.quiz-progress__track {
  overflow: hidden;
  height: 6px;
  background: #ece2d2;
  border-radius: 999px;
}

.quiz-progress__track i {
  display: block;
  width: 33%;
  height: 100%;
  background: linear-gradient(90deg, var(--wine-700), var(--red) 60%, var(--gold));
  border-radius: inherit;
  transition: width .45s var(--ease-out);
}

.quiz-stage { min-height: 620px; }

.quiz-screen, .quiz-intro {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  animation: quiz-screen-in .34s var(--ease-out) both;
}

.quiz-screen[hidden] { display: none !important; }

.quiz-screen__content {
  min-width: 0;
  padding: 50px clamp(36px, 5vw, 68px) 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-kicker {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 10px;
  font-weight: 830;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.quiz-kicker::before {
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 2px;
  content: "";
}

.quiz-intro h1,
.quiz-screen h1,
.quiz-screen h2 {
  max-width: 570px;
  margin: 0;
  color: var(--wine-900);
  font-size: clamp(37px, 4.4vw, 58px);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.quiz-screen:not([data-step="1"]) h2 { font-size: clamp(35px, 4vw, 52px); }

.quiz-instruction {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.quiz-options { display: grid; gap: 10px; }

.quiz-option {
  position: relative;
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(36, 26, 28, .04);
  cursor: pointer;
  transition: transform .18s var(--ease-out), border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

/* Alarga a área de toque real sem mudar o tamanho visual: cobre quase todo o
   espaçamento entre opções (7-10px) sem sobrepor o vizinho. */
.quiz-option::after {
  content: "";
  position: absolute;
  inset: -5px;
}

.quiz-option > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--wine-700);
  background: var(--cream);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .06em;
  transition: background .18s ease, color .18s ease;
}

.quiz-option strong { min-width: 0; font-size: 15px; font-weight: 700; }

.quiz-option--plan { min-height: 76px; padding-block: 9px; }
.quiz-option--plan strong { display: grid; gap: 3px; line-height: 1.25; }
.quiz-option--plan small { color: var(--muted); font: 570 10.5px/1.35 inherit; }
.quiz-option--plan.is-selected small { color: rgba(255,255,255,.76); }
.quiz-trust-note { margin: -8px 0 18px; padding-left: 12px; display: grid; gap: 3px; color: var(--wine-800); border-left: 2px solid var(--gold); }
.quiz-trust-note strong { font-size: 11px; }
.quiz-trust-note span { color: var(--muted); font-size: 10.5px; line-height: 1.45; }

.quiz-option i {
  color: var(--red);
  font-size: 17px;
  font-style: normal;
  text-align: right;
  transform: translateX(-4px);
  opacity: .55;
  transition: transform .18s var(--ease-out), opacity .18s ease, color .18s ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  outline: 0;
  border-color: rgba(188, 44, 44, .55);
  box-shadow: 0 10px 26px rgba(82, 18, 31, .12);
  transform: translateY(-1px);
}

.quiz-option:hover i,
.quiz-option:focus-visible i { transform: translateX(0); opacity: 1; }

.quiz-option.is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--wine-800), var(--wine-700));
  border-color: var(--wine-800);
  box-shadow: 0 12px 30px rgba(76, 15, 29, .32);
}

.quiz-option.is-selected > span { color: var(--gold-soft); background: rgba(255,255,255,.12); }
.quiz-option.is-selected i { color: var(--gold-soft); transform: translateX(0); opacity: 1; }

.quiz-hint {
  margin: 18px 0 0;
  color: #a2948f;
  font-size: 11px;
}

.quiz-back {
  width: max-content;
  margin: 0 0 26px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .09em;
  transition: color .15s ease;
}

.quiz-back:hover,
.quiz-back:focus-visible { color: var(--red); outline: 0; }

.quiz-visual {
  position: relative;
  min-width: 0;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  background: var(--wine-900);
  border-left: 1px solid var(--line);
}

.quiz-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 6, 9, .16), transparent 32%, transparent 55%, rgba(23, 6, 9, .78));
  content: "";
  pointer-events: none;
}

.quiz-visual img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 6s var(--ease-out);
}

.quiz-screen.is-active .quiz-visual img { transform: scale(1.04); }

.quiz-screen[data-step="3"] .quiz-visual img { object-position: 42% 36%; }
.quiz-screen--result .quiz-visual img { object-position: 42% 40%; transform: none; }

.quiz-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.9);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.quiz-visual figcaption::before {
  width: 22px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.quiz-loading { display: grid; align-content: center; min-height: 340px; }
.quiz-loading[hidden] { display: none; }
.quiz-loading h2 { max-width: 430px; }
.quiz-loading small { margin-top: 16px; color: var(--muted); font-size: 12px; }

.quiz-loading__line {
  width: min(390px, 100%);
  height: 4px;
  margin-top: 34px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.quiz-loading__line i {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: inherit;
  animation: quiz-loading 1.1s ease-in-out infinite alternate;
}

.quiz-result[hidden] { display: none; }
.quiz-result { animation: quiz-result-in .4s var(--ease-out) both; }
.quiz-result h2 span { color: var(--red); }

.quiz-result__lead {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.55;
}

.quiz-result__comparison {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.quiz-result__value {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--line);
  border-radius: 16px;
}

.quiz-result__value > div { padding: 18px 20px 19px; }
.quiz-result__value > div + div { border-left: 1px solid var(--line); background: rgba(200, 161, 108, .08); }
.quiz-result__value dt { color: var(--muted); font-size: 9px; font-weight: 790; letter-spacing: .1em; text-transform: uppercase; }
.quiz-result__value dd { margin: 7px 0 0; color: var(--wine-900); font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.quiz-result__value > div:last-child dd { color: var(--red); }

.quiz-benefits {
  margin: 18px 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: var(--wine-800);
  font-size: 10px;
  font-weight: 700;
  list-style: none;
}

.quiz-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: var(--cream);
  border: 1px solid rgba(200, 161, 108, .45);
  border-radius: 999px;
}

.quiz-benefits li::before { color: var(--red); font-weight: 900; content: "✓"; }

.quiz-cta {
  width: 100%;
  min-height: 58px;
  padding: 14px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(188, 44, 44, .32);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s ease, filter .18s ease;
}

.quiz-cta i { margin-left: auto; font-style: normal; transition: transform .18s var(--ease-out); }
.quiz-cta:hover, .quiz-cta:focus-visible { outline: 0; transform: translateY(-1px); box-shadow: 0 18px 38px rgba(188, 44, 44, .4); filter: brightness(1.04); }
.quiz-cta:hover i { transform: translateX(3px); }
.quiz-cta:disabled { cursor: wait; opacity: .72; transform: none; }

.quiz-other-boxes {
  width: 100%;
  min-height: 48px;
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine-800);
  background: transparent;
  border: 1px solid rgba(76, 15, 29, .35);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.quiz-other-boxes:hover, .quiz-other-boxes:focus-visible {
  outline: 0;
  color: #fff;
  background: var(--wine-800);
  border-color: var(--wine-800);
}

.quiz-intro .quiz-cta { text-decoration: none; }
.quiz-intro__whatsapp,
.quiz-intro__whatsapp:hover,
.quiz-intro__whatsapp:focus-visible { color: #fff; background: #247a54; border-color: #247a54; }

.quiz-story, .quiz-faq { display: none; }

body.quiz-finished .quiz-story,
body.quiz-finished .quiz-faq {
  display: block;
  animation: quiz-result-in .4s var(--ease-out) both;
}

.quiz-story, .quiz-faq {
  margin: 26px 0 0;
  padding: 28px 20px 30px;
  background: var(--paper);
  border: 1px solid rgba(200, 161, 108, .5);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.quiz-story h2, .quiz-faq h2 {
  margin: 0;
  color: var(--wine-900);
  font-size: clamp(26px, 6.6vw, 40px);
  font-weight: 780;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.quiz-story ol {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
  list-style: none;
  counter-reset: cap;
}

.quiz-story li { counter-increment: cap; display: grid; gap: 12px; }

.quiz-story img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.quiz-story h3 {
  margin: 2px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--wine-800);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.quiz-story h3::before {
  color: var(--gold);
  font-size: 11px;
  font-weight: 840;
  letter-spacing: .08em;
  content: "0" counter(cap);
}

.quiz-story p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.quiz-faq details {
  margin-top: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.quiz-faq details:first-of-type { margin-top: 22px; }

.quiz-faq summary {
  min-height: 58px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  list-style: none;
  transition: background .15s ease;
}

.quiz-faq summary::-webkit-details-marker { display: none; }

.quiz-faq summary span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--wine-700);
  background: var(--cream);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 820;
}

.quiz-faq summary strong { color: var(--ink); font-size: 14.5px; font-weight: 700; }

.quiz-faq summary i {
  color: var(--red);
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
  transition: transform .18s var(--ease-out);
}

.quiz-faq details[open] summary { background: var(--cream); }
.quiz-faq details[open] summary i { transform: rotate(45deg); }

.quiz-faq details > p {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  border-top: 1px solid var(--line);
}

.quiz-faq details a { color: var(--red); }

.quiz-assurance {
  margin: 16px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  letter-spacing: .035em;
}

.quiz-assurance strong {
  margin-right: 9px;
  padding: 3px 8px;
  color: var(--wine-950);
  background: var(--gold);
  border-radius: 6px;
  font-size: 9px;
}

.quiz-footer {
  padding: 26px max(24px, calc((100% - 1180px) / 2));
  color: rgba(255,255,255,.5);
  background: rgba(0, 0, 0, .34);
  border-top: 1px solid rgba(200, 161, 108, .18);
  text-align: center;
}

.quiz-footer p { margin: 4px 0; font-size: 10px; line-height: 1.55; }
.quiz-footer strong { color: var(--gold-soft); }
.quiz-footer nav { margin-top: 12px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
.quiz-footer a { color: rgba(255,255,255,.66); font-size: 10px; text-underline-offset: 3px; }
.quiz-footer a:hover { color: var(--gold-soft); }

.privacy-consent {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 760px;
  margin: auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(200, 161, 108, .5);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
  pointer-events: none;
}

.privacy-consent[hidden] { display: none; }
.privacy-consent > div:not(.privacy-consent__actions),
.privacy-consent strong, .privacy-consent p { pointer-events: none; user-select: none; }
.privacy-consent strong { color: var(--wine-900); font-size: 12px; }
.privacy-consent p { margin: 5px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.privacy-consent p a { pointer-events: auto; color: var(--red); text-decoration: underline; }
.privacy-consent__actions button { pointer-events: auto; }
.privacy-consent__actions { display: flex; align-items: center; gap: 8px; }
.privacy-consent__actions button { padding: 10px 14px; border: 1px solid var(--wine-800); border-radius: 10px; font-size: 10px; font-weight: 780; cursor: pointer; }
#privacyEssential { color: var(--wine-800); background: transparent; }
#privacyAccept { color: #fff; background: var(--wine-800); }

@keyframes quiz-screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes quiz-result-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes quiz-loading { from { transform: translateX(-14%); } to { transform: translateX(155%); } }

@media (min-width: 821px) {
  .quiz-story, .quiz-faq { padding: 42px 46px 46px; }
  .quiz-story ol { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .quiz-faq details { max-width: 780px; }
}

@media (max-width: 820px) {
  .quiz-header { width: calc(100% - 32px); min-height: 70px; gap: 12px; }
  .quiz-brand img { width: 118px; }
  .quiz-header__brand { gap: 12px; }
  .quiz-header__brand > span { padding-left: 12px; }
  .quiz-header p { display: none; }
  .quiz-page { width: calc(100% - 20px); min-height: calc(100svh - 70px); padding-bottom: 22px; }
  body.has-consent-banner .quiz-page { padding-bottom: 118px; }
  body.has-consent-banner .quiz-cta { scroll-margin-bottom: 132px; }
  .quiz-shell { border-radius: 18px; }
  .quiz-progress { padding: 15px 20px 13px; }
  .quiz-stage { min-height: 0; }
  .quiz-screen, .quiz-intro { min-height: 0; grid-template-columns: 1fr; }
  .quiz-screen__content { grid-row: 2; padding: 32px 24px 38px; }
  .quiz-visual { grid-row: 1; min-height: 250px; border-bottom: 1px solid var(--line); border-left: 0; }
  /* Na recomendação, valor e CTA vêm antes da foto. */
  .quiz-screen--result .quiz-screen__content { grid-row: 1; }
  .quiz-screen--result .quiz-visual { grid-row: 2; min-height: 190px; }
  /* Nas perguntas, a resposta vem antes da foto — pelo mesmo motivo.
     Com a figura no topo, a 1ª opção caía em 525 px e a última em 730 px:
     num viewport de 360x640 nenhuma resposta aparecia sem rolar, e a Etapa 3
     começava em 713 px. É esse empilhamento, não um erro de JS, que explica
     as duas maiores perdas do funil. A foto continua no fluxo, abaixo. */
  .quiz-screen:not(.quiz-screen--result) .quiz-screen__content { grid-row: 1; }
  .quiz-screen:not(.quiz-screen--result) .quiz-visual {
    grid-row: 2;
    min-height: 190px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  .quiz-visual figcaption { right: 18px; bottom: 15px; left: 18px; }
  .quiz-intro h1, .quiz-screen h1, .quiz-screen h2, .quiz-screen:not([data-step="1"]) h2 { font-size: clamp(33px, 9.5vw, 43px); }
  .quiz-back { margin-bottom: 22px; }
  .quiz-loading { min-height: 310px; }

  /* Responder não pode exigir rolagem. No Brave/Android sobram ~600 px entre
     a barra de endereço e a barra de navegação, e a foto de cena comia 150
     deles. Ela sai das perguntas e continua na abertura e na recomendação,
     onde é argumento de venda em vez de obstáculo. */
  .quiz-screen:not(.quiz-screen--result) .quiz-visual { display: none; }
  .quiz-page { min-height: 0; padding-bottom: 14px; }
  .quiz-progress { padding: 10px 18px 8px; }
  .quiz-screen__content { padding: 14px 18px 16px; }
  /* "PERGUNTA 03" repete o "ETAPA 3 DE 3" da barra de progresso logo acima. */
  .quiz-screen .quiz-kicker { display: none; }
  .quiz-screen .quiz-instruction { margin: 8px 0 13px; font-size: 13px; }
  .quiz-back { margin-bottom: 10px; }
  .quiz-options { gap: 7px; }
  .quiz-hint { display: none; }
  .quiz-header { padding-top: 9px; padding-bottom: 9px; }
  .quiz-brand img { width: 104px; }

  /* A recomendação também cabe sem rolagem: o botão de compra é o único
     elemento que não pode depender de o visitante rolar para encontrar. */
  .quiz-result__lead { margin: 5px 0 6px; font-size: 13.5px; }
  .quiz-result__comparison { margin: 0 0 9px; font-size: 10.5px; line-height: 1.42; }
  .quiz-result__value { margin: 0 0 9px; }
  /* Em tela curta o botão de compra vem antes dos selos: eles tranquilizam,
     mas nenhum deles pode empurrar o CTA para debaixo do aviso de medição. */
  .quiz-result { display: flex; flex-direction: column; }
  .quiz-benefits { grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 10px; }
  .quiz-benefits li { padding: 6px 8px; font-size: 10px; }
  .quiz-result__value > div { padding: 9px 12px 10px; }
  .quiz-result__value dd { margin-top: 4px; font-size: 21px; }
  .quiz-other-boxes { margin-top: 9px; }
}

@media (max-width: 820px) and (max-height: 620px) {
  .quiz-benefits { order: 1; margin: 9px 0 0; }
  .quiz-other-boxes { order: 2; }
}

@media (max-width: 520px) {
  .quiz-header__brand > span { display: none; }
  .quiz-whatsapp b { display: none; }
  .quiz-visual { min-height: 215px; }
  .quiz-screen:not(.quiz-screen--result) .quiz-visual { min-height: 150px; }
  .quiz-screen__content { padding: 28px 18px 34px; }
  .quiz-instruction { margin: 13px 0 21px; }
  .quiz-option { min-height: 52px; padding: 0 14px; grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 9px; }
  .quiz-option > span { width: 25px; height: 25px; }
  .quiz-option strong { font-size: 13.5px; }
  .quiz-option--plan { min-height: 62px; }
  .quiz-option--plan small { font-size: 9.75px; }
  /* A Etapa 3 tem a pergunta mais longa do quiz: no tamanho das outras ela
     ocupava 139 px e empurrava a 1ª opção para 498 px. Menor, cabe em ~90 px
     — e o aviso de confiança desce para depois das respostas, onde reforça a
     escolha em vez de atrasá-la. */
  .quiz-screen[data-step="3"] h2 { font-size: clamp(21px, 5.9vw, 27px); }
  .quiz-screen[data-step="3"] .quiz-instruction { margin-bottom: 11px; font-size: 12px; }
  .quiz-screen[data-step="3"] .quiz-trust-note { order: 1; margin-top: 16px; }
  .quiz-trust-note { margin-top: -4px; }
  .quiz-result__value dd { font-size: 21px; }
  .quiz-benefits { display: grid; }
  .quiz-footer { padding-right: 20px; padding-left: 20px; }
  /* Com as respostas subindo para o meio da tela, o aviso volta ao rodapé:
     no topo ele passaria a cobrir o título da pergunta. Compacto de propósito
     — os 191 px da versão anterior é que bloqueavam duas das quatro opções. */
  /* Barra fina: empilhado o aviso ocupava 117 px de sobreposição e cobria as
     últimas opções. O texto longo vive em /privacidade.html; aqui basta dizer
     o que é e oferecer as duas escolhas. */
  .privacy-consent { top: auto; right: 6px; bottom: 6px; left: 6px; padding: 7px 10px; grid-template-columns: 1fr auto; align-items: center; gap: 8px; border-radius: 12px; }
  .privacy-consent strong { font-size: 10.5px; }
  .privacy-consent p { margin: 1px 0 0; font-size: 8.5px; line-height: 1.3; }
  .privacy-consent__actions { flex-direction: row; gap: 5px; }
  .privacy-consent__actions button { padding: 6px 9px; font-size: 9px; }
  /* O aviso aparece na abertura — a primeira tela, com as duas escolhas à
     mão — e volta na recomendação. Durante as perguntas ele cairia sobre a
     última opção, e em 360x560 era a diferença entre responder e ter que
     rolar. A escolha continua acessível nos dois momentos; a informação
     completa fica em /privacidade.html, linkada no próprio aviso. */
  body.quiz-started:not(.quiz-finished) .privacy-consent { display: none; }
}

@media (max-width: 520px) and (max-height: 700px) {
  /* A foto cede espaço ao CTA nas telas curtas. */
  .quiz-intro .quiz-visual { min-height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
