/* Quiz de avaliação em tela cheia. Depende das variáveis de captacao.css. */
.oferta-q { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 6px 12px; flex-wrap: wrap; padding: 9px 16px; background: var(--field); color: var(--on-field); font-size: .86rem; text-align: center; overflow: hidden; }
.oferta-q::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(217, 189, 133, .22) 50%, transparent 70%); transform: translateX(-100%); animation: brilho 4.5s var(--ease) infinite 1.2s; pointer-events: none; }
.oferta-q b { color: var(--gold-light); }
.oferta-q s { color: var(--on-field-2); }
.oferta-q small { color: var(--on-field-2); font-size: .78rem; }

.quiz { position: relative; display: flex; flex-direction: column; padding: 14px 18px calc(22px + env(safe-area-inset-bottom)); background: var(--ground); color: var(--ink); }
.quiz.pagina { min-height: calc(100svh - 40px); }
.quiz.overlay { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; padding-top: calc(12px + env(safe-area-inset-top)); }
.quiz.overlay[hidden] { display: none; }
.quiz.overlay.open { animation: quizIn .45s var(--ease); }
@keyframes quizIn { from { opacity: 0; transform: translateY(40px); } }
.quiz > * { width: 100%; max-width: 640px; margin-inline: auto; position: relative; z-index: 1; }
.quiz > .ondas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; z-index: 0; opacity: .7; }
.quiz.pagina { overflow: clip; }
.quiz-top { display: flex; align-items: center; gap: 12px; }
.quiz-back, .quiz-close { width: 44px; height: 44px; flex: none; border: 0; background: var(--tone); color: var(--ink); border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 1.6rem; line-height: 1; transition: background-color .2s, transform .2s var(--spring); }
.quiz-back:active, .quiz-close:active { transform: scale(.9); }
.quiz-back svg { width: 20px; height: 20px; transform: rotate(180deg); stroke: currentColor; fill: none; stroke-width: 2; }
.quiz-back[disabled] { visibility: hidden; }
.quiz-prog { flex: 1; height: 8px; border-radius: 4px; background: var(--tone); overflow: hidden; }
.quiz-prog span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 4px; transition: width .5s var(--spring); }
.quiz-top .mono { width: 38px; height: 26px; }
.quiz-count { margin-top: 22px; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.quiz-title { margin-top: 8px; font-weight: 300; font-size: clamp(1.75rem, 6.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.015em; outline: none; }
.quiz-count[hidden] + .quiz-title { margin-top: 28px; }
.quiz-stage { margin-top: 18px; flex: 1; display: flex; flex-direction: column; }
.step { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.step.enter { animation: stepIn .45s var(--ease); }
.step.enter-back { animation: stepBack .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(36px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-36px); } }
.step-sub { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }

/* Opções, uma embaixo da outra */
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 18px; border: 0; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--tone-2); text-align: left; cursor: pointer; font: 400 1.02rem/1.3 var(--f); color: var(--ink); transition: background-color .2s, box-shadow .2s, transform .2s var(--spring); animation: optIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
@keyframes optIn { from { opacity: 0; transform: translateY(12px); } }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--gold-light); }
.opt:active { transform: scale(.98); }
.opt small { display: block; font-size: .84rem; color: var(--ink-2); margin-top: 3px; }
.opt .dot { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--tone); display: grid; place-items: center; transition: background-color .2s; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--on-field); box-shadow: none; }
.opt[aria-pressed="true"] small { color: var(--on-field-2); }
.opt[aria-pressed="true"] .dot { background: var(--gold); }
.opt[aria-pressed="true"] .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: pop .35s var(--spring); }
.opts.compacto { gap: 7px; align-content: start; }
.opts.compacto .opt { min-height: 46px; padding: 9px 12px; gap: 10px; border-radius: 14px; font-size: .9rem; }
.opts.compacto .opt .dot { width: 18px; height: 18px; }
.opts.compacto .opt[aria-pressed="true"] .dot::after { width: 7px; height: 7px; }

/* Figura 2.5D */
.body-wrap { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 14px; align-items: start; }
.body-left { display: grid; gap: 10px; justify-items: center; position: sticky; top: 10px; }
.body-view { display: flex; justify-content: center; gap: 2px; background: var(--tone); border-radius: 999px; padding: 4px; }
.body-view button { border: 0; background: none; border-radius: 999px; padding: 8px 14px; font: 700 .82rem/1 var(--f); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.body-view button[aria-pressed="true"] { background: var(--ink); color: var(--on-field); }
.stagebox { perspective: 900px; width: 100%; touch-action: pan-y; position: relative; }
.stagebox::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 80%; height: 18%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(184, 146, 74, .28), transparent); }
.tilt { width: 100%; display: flex; justify-content: center; transition: transform .3s var(--ease); transform-style: preserve-3d; }
.figure { position: relative; transform-style: preserve-3d; transition: transform .8s var(--spring); animation: chegaFig 1s var(--spring) both .1s; }
.figure.is-body { width: min(100%, 190px, calc((100svh - 330px) * .465)); aspect-ratio: 200 / 430; }
.figure.is-face { width: min(100%, 230px); aspect-ratio: 144 / 196; }
@keyframes chegaFig { from { opacity: 0; transform: rotateY(-60deg) translateY(20px) scale(.92); } }
.figure.back { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face-back { transform: rotateY(180deg); }
.face svg { width: 100%; height: 100%; overflow: visible; }
.b-skin { fill: #E6DDD4; }
.b-shade { fill: #CFC4B9; }
.b-line { fill: none; stroke: #B8ACA0; stroke-width: 1.2; stroke-linecap: round; }
.b-top { fill: #2C2729; }
.b-hair { fill: #3A3437; }
.zone { cursor: pointer; outline: none; }
.zone .z-hit { fill: transparent; }
.zone .z-mark { opacity: 0; transition: opacity .25s; }
.zone:hover .z-mark, .zone:focus-visible .z-mark { opacity: .5; }
.zone.on .z-mark { opacity: 1; animation: marca .9s var(--ease) infinite alternate; }
@keyframes marca { to { opacity: .65; } }
.zone:focus-visible .z-hit { stroke: var(--gold); stroke-width: 2.5; }
.fig-dica { font-size: .76rem; color: var(--ink-2); text-align: center; }

/* Preço */
.preco-card { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 20px 22px; border-radius: 20px; background: var(--field); color: var(--on-field); }
.preco-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(217, 189, 133, .35); box-shadow: 0 0 0 18px rgba(217, 189, 133, .06); }
.pc-de { font-size: .9rem; color: var(--on-field-2); }
.pc-por { font: 300 2.8rem/1 var(--f); color: var(--gold-light); }
.pc-nota { font-size: .9rem; color: var(--on-field-2); margin-top: 6px; max-width: 30em; }

/* Formulário */
.step-form { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input { width: 100%; min-height: 58px; padding: 14px 16px; border: 2px solid var(--tone-2); border-radius: 14px; background: #fff; font: inherit; font-size: 1.05rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 146, 74, .14); }
.field input[aria-invalid="true"] { border-color: #B2412F; }
.err { font-size: .86rem; color: #9A3524; min-height: 1.2em; }
.consent-note { font-size: .84rem; line-height: 1.45; color: var(--ink-2); }
.next { margin-top: auto; padding-top: 16px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--ground) 30%); }
.next .btn { width: 100%; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-ig { --bg: var(--ink); --fg: var(--on-field); }

/* Fim */
.end { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.end p { font-size: 1.05rem; line-height: 1.55; }
.end .btn { width: 100%; }
.end-mono { width: 84px; height: 84px; border-radius: 50%; background: var(--field); display: grid; place-items: center; }
.end-mono .mono { width: 44px; height: 30px; background: var(--gold-light); }
.end .ok-ic { margin: 0; }
.link-btn { border: 0; background: none; padding: 8px 0; text-decoration: underline; cursor: pointer; color: var(--ink-2); font-size: .95rem; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.lock { overflow: hidden; }

.quiz-pe { margin-top: 26px; text-align: center; font-size: .76rem; color: var(--ink-2); }

@media (min-width: 760px) {
  .body-wrap { grid-template-columns: auto 1fr; gap: 36px; }
  .figure.is-body { width: min(220px, calc((100svh - 330px) * .465)); }
  .figure.is-face { width: 260px; }
  .opts.compacto .opt { font-size: .98rem; min-height: 52px; padding: 11px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .zone.on .z-mark { opacity: 1; }
  .opt { opacity: 1; }
}
