@font-face {
  font-family: "Lora";
  src: url("fontes/lora-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fontes/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --fundo: #FBF7F2;
  --texto: #2E2236;
  --acao: #7A2E5C;
  --acao-pressionado: #6A254F;
  --acao-enchendo: #4F1A3B;
  --acao-apagado: #D8C2CF;
  --superficie: #FFFFFF;
  --borda: #E8DFD6;
  --borda-forte: #D5C8BC;
  --apoio: #6B5A70;
  --trilho: #EDE4DB;
  --destaque: #F4E9EF;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lateral: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--lateral);
}

main { flex: 1; display: flex; flex-direction: column; }

h1, h2, h3, p, ul { margin: 0; }
[tabindex="-1"]:focus { outline: none; }
button { font: inherit; color: inherit; }

/* ---------- Topo: voltar e barra ---------- */

.topo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding-top: env(safe-area-inset-top);
}

.voltar {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-left: -6px;
  padding: 0 8px 0 2px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.voltar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.barra {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--trilho);
  overflow: hidden;
}
.barra span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--acao);
  transition: width .4s cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Telas ---------- */

.tela {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.chamada {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--acao);
}

.pergunta {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.22;
  font-weight: 700;
  margin: 22px 0 20px;
  text-wrap: balance;
}

.dica {
  margin: -10px 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--apoio);
}

/* ---------- Opções ---------- */

.opcoes { display: flex; flex-direction: column; gap: 12px; }

.opcao {
  appearance: none;
  width: 100%;
  min-height: 62px;
  padding: 14px 16px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--texto);
  background: var(--superficie);
  border: 1.5px solid var(--borda);
  border-radius: 18px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .1s ease;
}
.opcao:active { transform: scale(.98); }
.opcao[aria-pressed="true"] {
  background: var(--acao);
  border-color: var(--acao);
  color: #fff;
}

/* Quadradinho das perguntas de marcar várias */
.caixa {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--borda-forte);
  background: #fff;
  display: grid;
  place-items: center;
}
.caixa svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--acao);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.opcao[aria-pressed="true"] .caixa {
  border-color: #fff;
  animation: pulinho .3s cubic-bezier(.3, 1.6, .5, 1);
}
.opcao[aria-pressed="true"] .caixa svg { opacity: 1; }

@keyframes pulinho {
  from { transform: scale(.5); }
  to { transform: scale(1); }
}

/* ---------- Botão principal e pé fixo ---------- */

.botao {
  appearance: none;
  width: 100%;
  min-height: 60px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  background: var(--acao);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 20px -10px rgba(122, 46, 92, .55);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.botao:active { transform: scale(.98); background-color: var(--acao-pressionado); }

/* "Continuar": ao tocar, enche da esquerda pra direita e só então avança (tempo igual ao quiz.js) */
.continuar {
  background-image: linear-gradient(var(--acao-enchendo), var(--acao-enchendo));
  background-repeat: no-repeat;
  background-size: 0% 100%;
}
.continuar.enchendo {
  background-size: 100% 100%;
  transition: background-size .3s ease-out;
}
.botao[aria-disabled="true"] {
  background: var(--acao-apagado);
  box-shadow: none;
  cursor: default;
  transform: none;
}

/* Telas com "Continuar" sempre visível no pé */
.tela-multipla, .tela[data-tipo="info"] { padding-bottom: 0; }
.pe {
  position: sticky;
  bottom: 0;
  margin: auto calc(var(--lateral) * -1) 0;
  padding: 22px var(--lateral) calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(251, 247, 242, 0), var(--fundo) 32%);
}

.opcao:focus-visible,
.botao:focus-visible,
.voltar:focus-visible {
  outline: 3px solid var(--texto);
  outline-offset: 3px;
}

@media (hover: hover) {
  .opcao:not([aria-pressed="true"]):hover { border-color: var(--borda-forte); }
  .botao:not([aria-disabled="true"]):hover { background-color: var(--acao-pressionado); }
}

/* ---------- Telas A, B e C ---------- */

.info { padding-top: 26px; }
.info .grande {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}
.info [data-campo="resto"] p { margin-top: 14px; }
.info .grande + [data-campo="resto"] p:first-child { margin-top: 16px; }

/* ---------- Tela D ---------- */

.carregando {
  flex: 1;
  list-style: none;
  padding: 0 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.linha {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  animation: aparece .35s ease-out;
}
.linha .ok {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--acao);
}
.linha .ok svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.linha.esperando { color: var(--apoio); font-weight: 600; }
.linha.esperando .ok {
  background: none;
  border: 2.5px solid var(--borda-forte);
  border-top-color: var(--acao);
  animation: gira .8s linear infinite;
}
.linha.esperando .ok svg { display: none; }
.linha.feita .ok { animation: pulinho .3s cubic-bezier(.3, 1.6, .5, 1); }

@keyframes aparece { from { opacity: 0; transform: translateY(6px); } }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- Tela E ---------- */

.tela-resultado { padding-top: calc(28px + env(safe-area-inset-top)); }

.titulo-resultado {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 14px;
}

.fase {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  background: var(--destaque);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.hormonios {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 14px;
}

.ajuda { margin-bottom: 28px; }

.receber h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.receber ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.receber li {
  position: relative;
  padding-left: 36px;
}
.receber li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--destaque) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%237A2E5C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.preco {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--apoio);
  margin-bottom: 12px;
}

/* ---------- Troca de tela ---------- */

/* Fade + deslize curto: 90ms saindo + 150ms entrando (tempos iguais ao quiz.js) */
.tela.saindo { animation: sai .09s ease-in forwards; }
.tela.saindo.voltando { animation-name: sai-voltando; }
.tela.entrando { animation: entra .15s ease-out; }
.tela.entrando.voltando { animation-name: entra-voltando; }

@keyframes sai { to { opacity: 0; transform: translateX(-16px); } }
@keyframes sai-voltando { to { opacity: 0; transform: translateX(16px); } }
@keyframes entra { from { opacity: 0; transform: translateX(16px); } }
@keyframes entra-voltando { from { opacity: 0; transform: translateX(-16px); } }

@media (prefers-reduced-motion: reduce) {
  .tela.saindo, .tela.entrando, .linha, .linha.feita .ok, .opcao[aria-pressed="true"] .caixa { animation: none; }
  .barra span, .opcao, .botao, .continuar.enchendo { transition: none; }
  .opcao:active, .botao:active { transform: none; }
}

/* ---------- Celular com tela baixa ---------- */

@media (max-height: 640px) {
  body { font-size: 17px; }
  .chamada { margin-top: 12px; font-size: 16px; }
  .pergunta { font-size: 23px; margin: 16px 0 16px; }
  .opcoes { gap: 10px; }
  .info .grande { font-size: 24px; }
}

/* ---------- Computador ---------- */

@media (min-width: 640px) {
  .pergunta { margin-top: 36px; }
  .info { padding-top: 40px; }
}

/* ---------- Rodapé do Continuar: a faixa transparente deixa o clique passar pras opções; só o botão pega o clique ---------- */

.pe { pointer-events: none; }
.pe .botao { pointer-events: auto; }


/* ---------- Sintomas em 2 colunas (cabe no celular sem rolar tanto) ---------- */

.tela-grade .opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tela-grade .opcao {
  min-height: 58px;
  padding: 10px 10px 10px 14px;
  gap: 8px;
  font-size: 15px;
  border-radius: 14px;
}
.tela-grade .caixa { width: 20px; height: 20px; border-radius: 6px; }
.tela-grade .caixa svg { width: 12px; height: 12px; }

/* ---------- Fonte do número na Tela C ---------- */

.fonte-info { margin-top: 8px; font-size: 13px; color: var(--apoio); }

/* ---------- Resultado: itens com benefício, preço com âncora e garantia ---------- */

.receber li strong { display: block; line-height: 1.3; }
.receber li span { display: block; margin-top: 2px; font-size: 16px; line-height: 1.4; color: var(--apoio); }
.receber ul { gap: 14px; }
.preco-de { text-decoration: line-through; }
.preco strong { color: var(--texto); font-size: 24px; font-weight: 800; }
.garantia-final { margin-top: 14px; text-align: center; font-size: 15px; line-height: 1.4; color: var(--apoio); }

/* ---------- Telas A, B e C: 1 dado grande (22/10) ---------- */

.dado {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0 8px;
  text-align: center;
}
.dado-numero {
  margin: 0;
  font-family: var(--serif);
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--acao);
  text-wrap: balance;
}
.dado-texto {
  margin: 10px auto 0;
  max-width: 320px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.fonte-pe { margin: 5px 0 0; text-align: center; font-size: 8px; line-height: 1.2; color: var(--apoio); opacity: .6; }
.dado .prova-fotos { margin-top: 24px; }
.dado .prova-fotos img { border-radius: 14px; }

/* Selo de garantia (Tela C) */
.selo-garantia {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--superficie);
  border: 1.5px solid var(--borda);
  border-radius: 20px;
  padding: 14px 16px 14px 20px;
}
.selo {
  flex: none; width: 112px; height: 112px; border-radius: 50%;
  background: var(--acao); color: #fff; line-height: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--acao), 0 10px 20px -8px rgba(122, 46, 92, .6);
}
.selo-topo { font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.selo-num { font-family: var(--serif); font-size: 46px; font-weight: 700; margin-top: 2px; }
.selo-dias { font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.selo-garantia p { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.selo-garantia p span { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--apoio); }

@media (max-height: 700px) {
  .dado-numero { font-size: 56px; }
  .dado-texto { font-size: 23px; }
  .dado .prova-fotos { margin-top: 16px; }
  .selo { width: 92px; height: 92px; } .selo-num { font-size: 38px; }
}

/* ---------- Botão do checkout com preço dentro (22/10) ---------- */

.botao-preco { flex-direction: column; gap: 2px; padding: 14px 20px; }
.botao-preco .bp-acao { font-size: 19px; font-weight: 800; line-height: 1.2; }
.botao-preco .bp-preco { font-size: 15px; font-weight: 600; opacity: .95; }
.botao-preco .bp-preco s { opacity: .75; }
.botao-preco .bp-preco b { font-size: 19px; font-weight: 800; }

/* Etiqueta com a resposta dela, ícones, gráfico e frase (22/10) */
.dado-tag {
  align-self: center;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--destaque);
  color: var(--acao);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.dado-tag:empty { display: none; }
.dado-icones { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.dado-icones span { width: 26px; height: 26px; fill: var(--trilho); }
.dado-icones span.on { fill: var(--acao); }
.dado-icones svg { width: 100%; height: 100%; display: block; }
.dado-grafico { display: block; width: 120px; height: 48px; margin: 10px auto 0; color: var(--acao); }
.dado-colo { margin: 16px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 700; font-style: italic; color: var(--acao); }

/* ---------- Telas A, B e C em celular de tela baixa (22/10) ---------- */

@media (max-height: 760px) {
  .dado { padding: 4px 0; }
  .dado-tag { margin-bottom: 8px; padding: 4px 12px; font-size: 13px; }
  .dado-numero { font-size: 50px; }
  .dado-texto { margin-top: 6px; font-size: 21px; }
  .dado-icones { margin-top: 8px; }
  .dado-icones span { width: 20px; height: 20px; }
  .dado-grafico { width: 96px; height: 38px; margin-top: 4px; }
  .dado .prova-fotos { margin-top: 12px; }
  .dado .prova-fotos img { aspect-ratio: 4 / 3; }
  .dado-colo { margin-top: 10px; font-size: 18px; }
  .selo-garantia { margin-top: 12px; padding: 10px 12px 10px 14px; gap: 12px; }
  .selo { width: 72px; height: 72px; }
  .selo-topo { font-size: 8px; }
  .selo-num { font-size: 30px; }
  .selo-dias { font-size: 10px; }
  .selo-garantia p { font-size: 16px; }
  .selo-garantia p span { font-size: 13px; }
  .tela[data-tipo="info"] .pe { padding-top: 12px; }
}

@media (max-height: 600px) {
  .dado-numero { font-size: 42px; }
  .dado-texto { font-size: 18px; }
  .dado .prova-fotos img { aspect-ratio: 16 / 9; }
  .dado-colo { font-size: 16px; }
}




/* ---------- Resultado enxuto + botão fixo no rodapé (22/10) ---------- */

.tela-resultado { padding-bottom: 0; padding-top: calc(18px + env(safe-area-inset-top)); }
.titulo-resultado { font-size: 24px; margin-bottom: 10px; }
.fase { font-size: 16px; padding: 12px 14px; margin-bottom: 12px; }
.hormonios { font-size: 18px; margin: 0 0 16px; }
.receber h3 { font-size: 19px; margin-bottom: 8px; }
.receber ul { gap: 6px; margin-bottom: 8px; }
.receber li { padding-left: 32px; }
.receber li strong { font-size: 16px; }
.receber li span { display: none; }
.pe-compra .garantia-final { margin-top: 8px; font-size: 13px; }


/* ---------- Resultado personalizado: linha curta por material + "Pra você" (23/10) ---------- */

.receber li span { display: block; font-size: 14px; margin-top: 1px; }
.receber li.pra-voce strong::after { content: "Pra você"; display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--acao); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; vertical-align: 2px; }


/* ---------- Selo de fontes (23/10) ---------- */

.selo-fontes { margin: 4px 0 14px; font-size: 12px; line-height: 1.35; color: var(--apoio); }
.selo-fontes summary { list-style: none; display: flex; align-items: flex-start; gap: 6px; cursor: pointer; }
.selo-fontes summary::-webkit-details-marker { display: none; }
.selo-fontes svg { flex: none; width: 16px; height: 16px; color: var(--acao); margin-top: 1px; }
.selo-fontes strong { color: var(--texto); font-weight: 800; }
.selo-fontes p { margin: 6px 0 0 22px; }
.selo-fontes a { color: var(--acao); }

.selo-fontes { display: flex; align-items: flex-start; gap: 6px; }

.receber .selo-fontes { margin: -4px 0 10px; }


/* ---------- Tela final com cara de oferta (23/10) ---------- */
.tela-resultado{padding-top:calc(14px + env(safe-area-inset-top))}
.titulo-resultado{display:inline-block;align-self:flex-start;font-family:var(--sans);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--acao);background:var(--destaque);padding:5px 12px;border-radius:99px;margin:0 0 10px}
.tela-resultado .fase{background:none;padding:0;margin:0 0 6px;font-size:15px;font-weight:700;color:var(--apoio)}
.tela-resultado .hormonios{font-size:23px;line-height:1.22;margin:0 0 14px;color:var(--texto)}
.res-mockup{display:block;width:100%;height:150px;object-fit:cover;object-position:center 45%;border-radius:18px;margin:0 0 14px}
.receber{background:#fff;border:1.5px solid var(--borda);border-radius:18px;padding:14px 14px 6px;margin-bottom:12px}
.receber h3{font-family:var(--sans);font-size:15px;font-weight:800;margin:0 0 2px}
.receber .selo-fontes{margin:0 0 10px;font-size:11px}
.receber ul{gap:7px;margin-bottom:8px}
.receber li{padding-left:30px}
.receber li::before{width:20px;height:20px;background-size:11px}
.receber li strong{font-size:15px}
.receber li span{font-size:13px}
.pe-compra{background:linear-gradient(to bottom,rgba(251,247,242,0),var(--fundo) 22%)}
.pe-compra .garantia-final{display:none}
.compra-info{display:flex;justify-content:center;gap:12px;margin-top:9px;font-size:12px;font-weight:700;color:var(--apoio)}
.compra-info span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.compra-info i{font-style:normal;width:16px;height:16px;border-radius:50%;background:var(--acao);color:#fff;font-size:9px;display:grid;place-items:center}
