/* Natália Reis · Quiz de avaliação */

:root {
  --marinho: #001221;
  --marinho-painel: #061a2b;
  --marinho-fundo: #000c17;
  --ouro: #a0763d;
  --ouro-claro: #c9a26a;
  --ouro-fio: rgba(201, 162, 106, .32);
  --claro: #f5f4f3;
  --argila: #842e20;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serifa: "Libre Baskerville", Georgia, serif;
  --marca: "Marcellus", "Libre Baskerville", Georgia, serif;
  --cabeca: 68px;
  --mola: cubic-bezier(.2, .9, .25, 1.15);
  --suave: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--marinho); color: var(--claro); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }
em { font-family: var(--serifa); font-style: italic; font-weight: 400; color: var(--ouro-claro); }

/* ---------- fundo ---------- */
.fundo { position: fixed; inset: 0; z-index: 0; overflow: hidden; background:
  radial-gradient(90% 60% at 85% -5%, #0d3252 0%, transparent 60%),
  radial-gradient(70% 50% at -10% 105%, rgba(160, 118, 61, .22) 0%, transparent 60%),
  linear-gradient(180deg, var(--marinho) 0%, var(--marinho-fundo) 100%); }
.fundo::before, .fundo::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: flutua 16s ease-in-out infinite alternate; }
.fundo::before { width: 46vmax; height: 46vmax; left: -14vmax; top: 18%; background: rgba(13, 50, 82, .9); }
.fundo::after { width: 34vmax; height: 34vmax; right: -10vmax; bottom: -8vmax; background: rgba(160, 118, 61, .28); animation-duration: 21s; animation-direction: alternate-reverse; }
.fundo__nr { --traco: 12; position: absolute; right: -12vmax; bottom: -10vmax; width: 70vmax; height: 78vmax; color: var(--ouro-claro); opacity: .05; }
@keyframes flutua { to { transform: translate3d(6vmax, -5vmax, 0) scale(1.12); } }

/* ---------- cabeçalho ---------- */
.cabeca { position: sticky; top: 0; z-index: 20; height: var(--cabeca); padding: 0 18px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; background: rgba(0, 18, 33, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cabeca__volta { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ouro-fio); transition: background-color .2s, transform .2s; }
.cabeca__volta:hover { background: rgba(201, 162, 106, .14); }
.cabeca__volta:active { transform: scale(.94); }
.cabeca__volta[hidden] { display: grid; visibility: hidden; }
.cabeca__volta svg { width: 22px; height: 22px; }
.marca { justify-self: center; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.marca__nr { --traco: 26; width: 34px; height: 38px; color: var(--ouro-claro); flex: none; }
.marca__nome { font: 400 19px/1.1 var(--marca); white-space: nowrap; }
.marca__nome small { display: block; margin-top: 3px; font: 400 10.5px/1.2 var(--sans); letter-spacing: .04em; color: rgba(245, 244, 243, .66); }
.cabeca__passo { justify-self: end; font: 400 13px/1 var(--marca); letter-spacing: .12em; color: rgba(245, 244, 243, .7); white-space: nowrap; }
.barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(245, 244, 243, .1); }
.barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ouro), #e7c891); border-radius: 0 3px 3px 0; box-shadow: 0 0 14px rgba(201, 162, 106, .7); transition: width .6s var(--suave); }

/* ---------- palco ---------- */
.palco { position: relative; z-index: 1; flex: 1; width: min(600px, 100%); margin-inline: auto; padding: clamp(20px, 4vh, 44px) 20px 28px; display: flex; flex-direction: column; }
.tela { flex: 1; display: flex; flex-direction: column; }
.tela--sai { animation: sai .26s ease-in forwards; }
.tela--sai-volta { animation: sai-volta .26s ease-in forwards; }
@keyframes sai { to { opacity: 0; transform: translate3d(-36px, 0, 0); filter: blur(3px); } }
@keyframes sai-volta { to { opacity: 0; transform: translate3d(36px, 0, 0); filter: blur(3px); } }
.sobe { opacity: 0; transform: translate3d(0, 22px, 0); animation: sobe .7s var(--suave) forwards; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
.volta .sobe { transform: translate3d(0, -14px, 0); }
@keyframes sobe { to { opacity: 1; transform: none; } }

.olho { display: flex; align-items: center; gap: 10px; font: 400 12.5px/1.2 var(--marca); letter-spacing: .22em; text-transform: uppercase; color: var(--ouro-claro); }
.olho::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--ouro-claro); flex: none; }
h1, h2 { font: 600 clamp(28px, 7.4vw, 40px)/1.16 var(--sans); letter-spacing: -.02em; text-wrap: balance; margin-top: 14px; }
.apoio { margin-top: 14px; font-size: 16.5px; line-height: 1.55; color: rgba(245, 244, 243, .82); text-wrap: pretty; }
.apoio b { color: #fff; font-weight: 700; }

/* ---------- botões ---------- */
.botao { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; padding: 15px 22px; border-radius: 10px; background: linear-gradient(180deg, #c39656, #9a6f37); color: #fff; font: 700 17px/1.25 var(--sans); text-align: center; text-decoration: none; box-shadow: 0 18px 36px -16px rgba(160, 118, 61, .9), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s, filter .2s; overflow: hidden; }
.botao svg { width: 22px; height: 22px; flex: none; }
.botao:hover { filter: brightness(1.08); }
.botao:active { transform: scale(.98); }
.botao::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .34) 50%, transparent 65%); transform: translateX(-120%); animation: brilho 3.2s ease-in-out 1.2s infinite; }
@keyframes brilho { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.botao--zap { background: linear-gradient(180deg, #2fbf66, #1d9a4d); box-shadow: 0 18px 36px -16px rgba(37, 173, 89, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.botao--fio { min-height: 54px; background: transparent; border: 1px solid var(--ouro-fio); color: var(--claro); box-shadow: none; font-weight: 600; font-size: 15.5px; }
.botao--fio::after { display: none; }
.botao--fio:hover { background: rgba(201, 162, 106, .12); filter: none; }

/* ---------- abertura ---------- */
.inicio__foto { position: relative; margin: 0 -20px; height: clamp(250px, 44vh, 420px); overflow: hidden; }
.inicio__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; animation: zoom 14s ease-out forwards; }
.inicio__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 18, 33, .25) 0%, transparent 30%, rgba(0, 18, 33, .7) 78%, var(--marinho) 100%); }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.inicio__frase { position: absolute; z-index: 2; left: 20px; bottom: 16px; font: italic 400 15px/1.3 var(--serifa); color: #e9d3ad; }
.inicio .palco__corpo { margin-top: -6px; }
.inicio h1 { font-size: clamp(30px, 8vw, 44px); }
.sinais { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 24px; }
.sinais li { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 6px; border: 1px solid var(--ouro-fio); border-radius: 10px; background: rgba(6, 26, 43, .5); font-size: 12.5px; line-height: 1.3; text-align: center; color: rgba(245, 244, 243, .86); }
.sinais svg { width: 20px; height: 20px; color: var(--ouro-claro); }
.nota { margin-top: 14px; font-size: 13px; line-height: 1.5; text-align: center; color: rgba(245, 244, 243, .6); }

/* ---------- perguntas ---------- */
.opcoes { display: grid; gap: 11px; margin-top: 24px; }
.opcoes--fotos { grid-template-columns: 1fr 1fr; }
.op { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 66px; padding: 14px 16px; text-align: left; border: 1px solid var(--ouro-fio); border-radius: 12px; background: rgba(6, 26, 43, .66); transition: transform .25s var(--mola), border-color .25s, background-color .25s, box-shadow .25s, opacity .3s; }
.op:hover { border-color: var(--ouro-claro); background: rgba(13, 50, 82, .55); transform: translateY(-2px); }
.op:active { transform: scale(.98); }
.op__letra { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ouro-fio); font: 400 15px/1 var(--marca); color: var(--ouro-claro); transition: background-color .25s, color .25s, border-color .25s; }
.op__letra svg { width: 18px; height: 18px; display: none; }
.op__texto { flex: 1; font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.op__texto small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; color: rgba(245, 244, 243, .68); }
.op--sim { border-color: var(--ouro-claro); background: rgba(160, 118, 61, .22); box-shadow: 0 0 0 1px var(--ouro-claro), 0 18px 40px -22px rgba(201, 162, 106, .9); transform: scale(1.015); }
.op--sim .op__letra { background: var(--ouro-claro); border-color: var(--ouro-claro); color: var(--marinho); }
.op--sim .op__letra span { display: none; }
.op--sim .op__letra svg { display: block; animation: pop .4s var(--mola); }
.respondida .op:not(.op--sim) { opacity: .34; pointer-events: none; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.op--foto { display: block; min-height: 0; padding: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background-color: var(--marinho-painel); }
.op--foto.op--larga { grid-column: 1 / -1; aspect-ratio: 5 / 2; }
.op__img { position: absolute; inset: 0; background-repeat: no-repeat; transition: transform .7s var(--suave); }
.op--foto:hover .op__img, .op--foto.op--sim .op__img { transform: scale(1.07); }
.op--foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(0, 12, 23, .5) 62%, rgba(0, 12, 23, .94) 100%); }
.op--foto .op__texto { position: absolute; z-index: 2; left: 13px; right: 13px; bottom: 12px; font-size: 15.5px; text-shadow: 0 1px 12px rgba(0, 12, 23, .8); }
.op--foto .op__letra { position: absolute; z-index: 2; right: 10px; top: 10px; width: 30px; height: 30px; background: rgba(0, 18, 33, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-color: rgba(245, 244, 243, .5); }
.op--foto .op__letra span { display: none; }
.op--foto.op--sim .op__letra { background: var(--ouro-claro); }

.eco { min-height: 52px; margin-top: 16px; display: flex; align-items: center; gap: 10px; font: italic 400 15.5px/1.45 var(--serifa); color: #e9d3ad; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.eco svg { width: 20px; height: 20px; flex: none; color: var(--ouro-claro); }
.eco--visivel { opacity: 1; transform: none; }

/* ---------- análise ---------- */
.analise { align-items: center; justify-content: center; text-align: center; padding-bottom: 8vh; }
.analise__nr { --traco: 14; width: 150px; height: 168px; color: var(--ouro-claro); }
.analise__nr path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: traca 2.6s var(--suave) forwards; }
.analise__nr path:nth-child(2) { animation-delay: .25s; } .analise__nr path:nth-child(3) { animation-delay: .5s; }
.analise__nr path:nth-child(4) { animation-delay: .75s; } .analise__nr path:nth-child(n+5) { animation-delay: 1s; }
@keyframes traca { to { stroke-dashoffset: 0; } }
.analise h2 { font-size: 24px; margin-top: 26px; }
.analise__linhas { margin-top: 22px; display: grid; gap: 11px; text-align: left; }
.analise__linhas li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: rgba(245, 244, 243, .5); transition: color .4s; }
.analise__linhas i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ouro-fio); transition: background-color .4s, border-color .4s; }
.analise__linhas svg { width: 13px; height: 13px; color: var(--marinho); opacity: 0; transition: opacity .3s; }
.analise__linhas .feito { color: var(--claro); }
.analise__linhas .feito i { background: var(--ouro-claro); border-color: var(--ouro-claro); }
.analise__linhas .feito svg { opacity: 1; }

/* ---------- resultado ---------- */
.resultado h2 { font-size: clamp(27px, 7vw, 38px); }
.cartao { position: relative; margin-top: 22px; border-radius: 16px; overflow: hidden; border: 1px solid var(--ouro-fio); background: rgba(6, 26, 43, .82); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); }
.cartao__foto { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--marinho-painel); }
.cartao__foto--baixa { aspect-ratio: 5 / 4; }
.cartao__foto img { width: 100%; height: 100%; object-fit: cover; animation: revela 1.1s var(--suave) .2s both; }
@keyframes revela { from { clip-path: inset(0 100% 0 0); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: none; } }
.tag { position: absolute; z-index: 2; padding: 6px 10px 5px; border-radius: 3px; background: rgba(0, 18, 33, .78); font: 400 10.5px/1 var(--marca); letter-spacing: .18em; text-transform: uppercase; }
.lado .tag--antes { left: 10px; bottom: 10px; } .lado .tag--depois { left: calc(50% + 10px); bottom: 10px; }
.pilha .tag--antes { left: 10px; top: 10px; } .pilha .tag--depois { left: 10px; top: calc(50% + 10px); }
.cartao__corpo { padding: 18px 18px 20px; }
.cartao__rotulo { font: 400 11.5px/1.2 var(--marca); letter-spacing: .2em; text-transform: uppercase; color: var(--ouro-claro); }
.cartao h3 { margin-top: 7px; font: 400 25px/1.2 var(--serifa); }
.cartao p { margin-top: 9px; font-size: 15.5px; line-height: 1.5; color: rgba(245, 244, 243, .84); }
.cartao__prazo { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ouro-fio); font-size: 14.5px; line-height: 1.45; color: #e9d3ad; }
.cartao__prazo svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.resumo { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.resumo li { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--ouro-fio); font-size: 12.5px; color: rgba(245, 244, 243, .8); }
.acoes { display: grid; gap: 11px; margin-top: 22px; }
.acoes__ou { text-align: center; font-size: 13px; color: rgba(245, 244, 243, .56); }
.aviso { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; font-size: 12.5px; line-height: 1.5; color: rgba(245, 244, 243, .58); }
.aviso svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.refazer { align-self: center; margin-top: 16px; padding: 8px 4px; font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; color: rgba(245, 244, 243, .7); }

/* ---------- rodapé e consentimento ---------- */
.pe { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); font-size: 12.5px; color: rgba(245, 244, 243, .56); }
.pe span { display: inline-flex; align-items: center; gap: 5px; }
.pe svg { width: 13px; height: 13px; }
.pe a { text-underline-offset: 3px; }
.semjs { margin: 40px 0; text-align: center; }
.consentimento { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 420px; margin-inline: auto; padding: 18px; border: 1px solid var(--ouro-fio); border-radius: 12px; background: #021a2e; color: var(--claro); font: 400 14px/22px var(--sans); box-shadow: 0 30px 60px -20px #000; }
.consentimento div { display: flex; gap: 10px; margin-top: 14px; }
.consentimento button { flex: 1; min-height: 44px; border: 1px solid var(--ouro); border-radius: 8px; color: var(--claro); font: 700 14px/1 var(--sans); }
.consentimento button:last-child { background: var(--ouro); }

@media (min-width: 700px) {
  :root { --cabeca: 76px; }
  .inicio__foto { margin: 0; border-radius: 18px; height: 380px; }
  .inicio__foto::after { background: linear-gradient(180deg, transparent 40%, rgba(0, 18, 33, .75) 100%); }
  .inicio .palco__corpo { margin-top: 24px; }
  .opcoes--fotos { grid-template-columns: repeat(3, 1fr); }
  .op--foto.op--larga { grid-column: auto; aspect-ratio: 4 / 5; }
  .op--foto:first-child { grid-column: auto; }
  .acoes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .sobe { opacity: 1; transform: none; }
  .analise__nr path { stroke-dashoffset: 0; }
}
