/* ============================================================
   Quiz — Guia de Investimentos 2026 · Leticia Kratka
   Layout modelado no quiz da Doceria Smart (card central unico,
   uma tela por vez, barra de progresso, opcoes em cartao).
   Identidade visual vinda do checklist da Leticia:
   Fraunces + Manrope, oliva / dourado / bege.
   ============================================================ */

:root {
  --olive-deep:  #2e3018;
  --olive:       #5c5f30;
  --olive-mid:   #4a4d26;
  --gold:        #B4994F;
  --gold-light:  #d4b96a;
  --beige:       #CCC6BA;
  --beige-light: #EDE9E2;
  --offwhite:    #FCFBFA;
  --ink:         #1e1f10;
  --brown:       #7B5C40;
  --muted:       #6b6a5c;
  --linha:       rgba(46, 48, 24, .12);
  --raio:        24px;
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 18px;
  /* mesmo efeito do fundo da Doceria, na paleta da Leticia */
  background:
    radial-gradient(90% 70% at 12% 8%, rgba(180,153,79,.20) 0%, transparent 60%),
    radial-gradient(80% 70% at 88% 92%, rgba(92,95,48,.18) 0%, transparent 62%),
    var(--beige);
}
img { max-width: 100%; display: block; }

/* ===================== CARD ===================== */
.card {
  width: 100%; max-width: 720px;
  background: var(--offwhite);
  border-radius: var(--raio);
  box-shadow: 0 30px 70px rgba(30,31,16,.16), 0 2px 6px rgba(30,31,16,.06);
  padding: clamp(28px, 5vw, 52px);
}
.tela { display: none; }
.tela.ativa { display: block; animation: entra .3s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===================== ABERTURA ===================== */
.abertura { text-align: center; }
.selo {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--olive);
  background: rgba(180,153,79,.14); border: 1px solid rgba(180,153,79,.3);
  border-radius: 999px; padding: 8px 20px; margin-bottom: 26px;
}
h1 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.12; color: var(--ink);
  margin-bottom: 18px;
}
h1 em { font-style: italic; color: var(--gold); }
.sub { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* caixa de destaque com barra dourada, igual a da referencia */
.destaque {
  display: flex; gap: 16px; align-items: flex-start; text-align: left;
  background: var(--beige-light); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 20px 22px; margin-bottom: 18px;
}
.destaque__icone {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30,31,16,.08);
}
.destaque p { font-size: 15px; color: var(--ink); }
.destaque b { font-weight: 700; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.chip {
  display: flex; gap: 12px; align-items: center; text-align: left;
  border: 1px solid var(--linha); border-radius: 12px; padding: 16px 18px; background: #fff;
}
.chip svg { color: var(--gold); flex-shrink: 0; }
.chip b { display: block; font-size: 14.5px; font-weight: 700; }
.chip span { font-size: 13px; color: var(--muted); }

/* ===================== BOTOES ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; cursor: pointer; font-family: var(--sans);
  font-size: 14.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 19px 34px; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px rgba(180,153,79,.32);
}
.btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn--bloco { width: 100%; }
.btn--fantasma {
  background: var(--beige-light); color: var(--muted); box-shadow: none;
  padding: 15px 26px; font-size: 12.5px;
}
.btn--fantasma:hover { background: var(--beige); color: var(--ink); transform: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

.seguro {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12.5px; color: var(--muted); margin-top: 16px;
}
.seguro svg { color: var(--muted); }

/* ===================== PERGUNTA ===================== */
.progresso { height: 4px; background: var(--beige-light); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progresso__barra { height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .35s ease; }

.rotulo { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 12px; }

.pergunta { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.pergunta__num { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--gold); line-height: 1.3; flex-shrink: 0; }
.pergunta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3.4vw, 31px); line-height: 1.22; letter-spacing: -.015em; }

.opcoes { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.opcao {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--linha); border-radius: 14px;
  padding: 17px 20px; cursor: pointer; font-family: var(--sans);
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.opcao:hover { border-color: var(--gold); }
.opcao__radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--beige);
  flex-shrink: 0; position: relative; transition: border-color .15s ease;
}
.opcao.marcada { border-color: var(--gold); background: rgba(180,153,79,.09); box-shadow: 0 4px 14px rgba(180,153,79,.14); }
.opcao.marcada .opcao__radio { border-color: var(--gold); }
.opcao.marcada .opcao__radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold);
}

.rodape { display: flex; justify-content: space-between; align-items: center; gap: 14px; }

/* ===================== TELA FINAL (oferta) ===================== */
.final { text-align: center; }
.final .selo { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--gold-light); }
.final__texto { font-size: 16px; color: var(--muted); max-width: 540px; margin: 0 auto 26px; }
.caixa-preco {
  background: var(--olive-deep); color: var(--offwhite);
  border-radius: 18px; padding: 32px 28px; margin-bottom: 20px;
}
.caixa-preco__nome { font-family: var(--serif); font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.caixa-preco__de { font-size: 14px; color: rgba(252,251,250,.6); }
.caixa-preco__valor { font-family: var(--serif); font-weight: 700; font-size: 54px; line-height: 1; color: var(--gold-light); margin: 4px 0 6px; }
.caixa-preco__valor small { font-size: 24px; vertical-align: .45em; }
.caixa-preco__nota { font-size: 13.5px; color: rgba(252,251,250,.65); margin-bottom: 24px; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 620px) {
  body { padding: 18px 14px; align-items: flex-start; }
  .card { border-radius: 20px; }
  .chips { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .rodape { flex-direction: row; }
  .rodape .btn--fantasma { width: auto; }
  .rodape .btn:not(.btn--fantasma) { width: auto; }
  .pergunta__num { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .tela.ativa { animation: none; }
  .progresso__barra { transition: none; }
}

/* ============================================================
   TRILHA DE LIBERACAO
   Uma barra so, no topo do card, presente desde a primeira tela.
   O selo de checklist anda junto com o preenchimento e da um
   pulso a cada avanco, mostrando que a liberacao esta chegando.
   ============================================================ */
.trilha { margin-bottom: 30px; }

.trilha__pista {
  position: relative; height: 10px; margin: 16px 0 0;
  background: var(--beige-light);
  border: 1px solid var(--linha);
  border-radius: 999px;
}
.trilha__preenche {
  position: absolute; inset: 0 auto 0 0; width: 6%;
  border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, var(--olive) 0%, var(--gold) 62%, var(--gold-light) 100%);
  transition: width .7s cubic-bezier(.22,.9,.28,1);
}
/* brilho correndo por dentro do trecho ja preenchido */
.trilha__preenche::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
  animation: corre 2.2s linear infinite;
}
@keyframes corre { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* o selo anda com a ponta do preenchimento */
.trilha__marcador {
  position: absolute; top: 50%; left: 6%;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; background: var(--offwhite);
  border: 2px solid var(--gold); color: var(--olive-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(30,31,16,.14);
  transition: left .7s cubic-bezier(.22,.9,.28,1);
  z-index: 2;
}
/* pulso a cada avanco: o selo cresce, volta, e solta um anel */
.trilha__marcador.pulso { animation: pulso-selo .72s cubic-bezier(.2,1.3,.35,1); }
@keyframes pulso-selo {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.45); background: var(--gold); color: var(--offwhite); }
  60%  { transform: scale(.94); }
  100% { transform: scale(1); }
}
.trilha__marcador.pulso::before {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--gold);
  animation: anel .72s ease-out;
}
@keyframes anel {
  from { opacity: .8; transform: scale(1); }
  to   { opacity: 0;  transform: scale(2.1); }
}

.trilha__texto {
  text-align: center; margin-top: 20px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 620px) {
  .trilha { margin-bottom: 26px; }
  .trilha__marcador { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .trilha__texto { font-size: 11px; letter-spacing: .07em; }
}
@media (prefers-reduced-motion: reduce) {
  .trilha__preenche, .trilha__marcador { transition: none; }
  .trilha__preenche::after, .trilha__marcador.pulso { animation: none; }
  .trilha__marcador.pulso::before { display: none; }
}

/* ---- tela de analise ---- */
.analise { text-align: center; padding: 26px 0 10px; }
.analise__aro {
  width: 62px; height: 62px; margin: 0 auto 26px; border-radius: 50%;
  border: 3px solid var(--beige-light); border-top-color: var(--gold);
  animation: gira .9s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }
.analise__linhas { list-style: none; max-width: 380px; margin: 0 auto; text-align: left; }
.analise__linhas li {
  display: flex; gap: 11px; align-items: center; font-size: 14.5px; color: var(--muted);
  padding: 9px 0; opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, color .35s ease;
}
.analise__linhas li.visivel { opacity: 1; transform: none; }
.analise__linhas li.ok { color: var(--ink); }
.analise__linhas li svg { color: var(--gold); flex-shrink: 0; opacity: 0; transition: opacity .3s ease; }
.analise__linhas li.ok svg { opacity: 1; }


/* ---- carimbo de aprovacao ---- */
.carimbo {
  width: 138px; height: 138px; margin: 0 auto 22px; border-radius: 50%;
  border: 3px solid var(--gold); background: rgba(180,153,79,.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-9deg);
  animation: carimba .55s cubic-bezier(.2,1.5,.4,1) both;
}
@keyframes carimba {
  0%   { opacity: 0; transform: rotate(-9deg) scale(2.1); }
  60%  { opacity: 1; transform: rotate(-9deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}
.carimbo b {
  font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .04em;
  color: var(--olive-deep); line-height: 1;
}
.carimbo span { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }

.placar {
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
  margin-bottom: 24px; padding-top: 4px;
}
.placar div { text-align: center; }
.placar b { display: block; font-family: var(--serif); font-weight: 700; font-size: 25px; color: var(--olive-deep); line-height: 1.1; }
.placar span { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 620px) {
  .carteira { padding: 11px 13px; }
  .selo-etapa { width: 23px; height: 23px; border-radius: 7px; }
  .carteira__pontos b { font-size: 21px; }
  .carimbo { width: 118px; height: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  .selo-etapa, .curva__linha, .curva__ponto, .analise__linhas li { transition: none; }
  .flash, .carimbo, .analise__aro, .carteira__pontos.pulsa b { animation: none; }
}

/* ===================== PERGUNTA DE CONTATO ===================== */
.opcoes--form { gap: 16px; }
.campo { display: block; }
.campo__rotulo {
  display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--muted); margin-bottom: 7px;
}
.campo__input {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--linha); border-radius: 14px;
  padding: 16px 18px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo__input::placeholder { color: rgba(107,106,92,.5); }
.campo__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180,153,79,.16);
}
.campo--erro .campo__input { border-color: #b4543f; }
.campo--erro .campo__rotulo { color: #b4543f; }

/* ============================================================
   TELA FINAL — pagina de venda dentro do card
   ============================================================ */
.final h1 { font-size: clamp(26px, 4.2vw, 40px); margin-bottom: 16px; }

.final__urgencia {
  display: inline-block; font-size: 14.5px; color: var(--olive-deep);
  background: rgba(180,153,79,.16); border: 1px solid rgba(180,153,79,.34);
  border-radius: 999px; padding: 9px 20px; margin-bottom: 22px;
}
.final__urgencia b { font-weight: 800; }
.final__urgencia s { opacity: .6; }

.final__texto { font-size: 16px; color: var(--muted); max-width: 560px; margin: 0 auto 30px; }

/* ---- blocos da pagina de venda ---- */
.bloco { text-align: left; padding-top: 46px; margin-top: 40px; border-top: 1px solid var(--linha); }
.bloco__rotulo {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.bloco__titulo { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 3.2vw, 31px); line-height: 1.2; margin-bottom: 14px; }
.bloco__titulo em { font-style: italic; color: var(--gold); }
.bloco__lead { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.bloco__fecho { font-size: 15px; color: var(--olive); font-weight: 600; margin-top: 22px; }
.bloco p + p { margin-top: 14px; }

/* lista numerada das 7 perguntas */
.lista-num { list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 14px; }
.lista-num li {
  counter-increment: n; position: relative; padding: 18px 20px 18px 62px;
  background: #fff; border: 1px solid var(--linha); border-radius: 14px;
  font-size: 15px; color: var(--muted);
}
.lista-num li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 20px; top: 17px;
  font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--gold);
}
.lista-num b { display: block; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); margin-bottom: 4px; }

/* bloco escuro */
.bloco--escuro {
  background: var(--olive-deep); color: var(--offwhite);
  border: none; border-radius: 20px; padding: 40px 34px;
}
.bloco--escuro .bloco__titulo { color: var(--offwhite); }
.bloco--escuro .bloco__titulo em { color: var(--gold-light); }
.bloco--escuro .bloco__lead { color: rgba(252,251,250,.72); }
.lista-check { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.lista-check li {
  position: relative; padding-left: 32px; font-size: 15.5px; color: rgba(252,251,250,.9);
}
.lista-check li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/13px no-repeat, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* autora */
.autora { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
.autora img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.autora p { font-size: 15px; color: var(--muted); }

/* depoimentos */
.depos {
  margin: 26px -1px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.depos__trilho { display: flex; gap: 16px; width: max-content; animation: rola-depos 36s linear infinite; }
.depos:hover .depos__trilho { animation-play-state: paused; }
.depos__trilho img {
  height: 300px; width: auto; flex-shrink: 0; border-radius: 12px;
  border: 1px solid var(--linha); box-shadow: 0 10px 26px rgba(30,31,16,.12);
}
@keyframes rola-depos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* faq */
.faq__item { border-bottom: 1px solid var(--linha); }
.faq__item:first-child { border-top: 1px solid var(--linha); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 17px 2px;
  font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-family: var(--serif); font-size: 21px; color: var(--gold); line-height: 1; flex-shrink: 0; transition: transform .25s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__resposta { padding: 0 2px 18px; font-size: 15px; color: var(--muted); }

/* fechamento */
.bloco--fecho { text-align: center; }
.bloco--fecho .bloco__lead { max-width: 520px; margin: 0 auto 26px; }

@media (max-width: 620px) {
  .bloco { padding-top: 36px; margin-top: 32px; }
  .bloco--escuro { padding: 30px 22px; }
  .autora { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .depos__trilho img { height: 230px; }
  .lista-num li { padding: 16px 16px 16px 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .depos__trilho { animation: none; overflow-x: auto; }
}

/* quando a oferta abre, o card vira pagina: cresce e sobe pro topo */
body.venda { align-items: flex-start; }
body.venda .card { max-width: 780px; }
body.venda .trilha { display: none; }
