:root {
  --fundo: #0E0C0A;
  --ouro-1: #EAD7A4;
  --ouro-2: #C9A55C;
  --ouro-3: #A8833F;
  --ouro: linear-gradient(135deg, var(--ouro-1) 0%, var(--ouro-2) 55%, var(--ouro-3) 100%);
  --tinta: #1C1408;
  --texto: #F4EFE6;
  --texto-2: #BDB3A3;
  --texto-3: #8A8175;
  --borda: rgba(234, 215, 164, .22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
strong { font-weight: 600; color: var(--texto); }
.ouro { color: var(--ouro-1); }

/* Foto da Dra. ao fundo + véu escuro */
.fundo {
  position: fixed; inset: 0; z-index: 0;
  background: var(--fundo) url(img/dra.webp) center 18% / cover no-repeat;
  filter: grayscale(.35) brightness(.85);
}
.fundo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,12,10,.80) 0%, rgba(14,12,10,.92) 100%);
  transition: background .4s;
}
body.abertura .fundo::after {
  background: linear-gradient(180deg, rgba(14,12,10,.30) 0%, rgba(14,12,10,.72) 45%, rgba(14,12,10,.97) 78%);
}

/* Tela */
#app {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 22px 0;
}
.tela { flex: 1; display: flex; flex-direction: column; animation: entrar .35s ease both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tela { animation: none; } }

.topo { display: flex; align-items: center; gap: 12px; min-height: 28px; margin-bottom: 18px; }
.voltar {
  background: none; border: 0; color: var(--texto-3); font: inherit; font-size: 14px;
  padding: 6px 8px 6px 0; cursor: pointer;
}
.voltar:hover { color: var(--texto-2); }
.barra { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--ouro); transition: width .4s ease; }

.conteudo { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 8px; }
.conteudo.topo-alinhado { justify-content: flex-start; }

/* Abertura */
.marca { text-align: center; margin-top: 8px; }
.marca .nome {
  font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: .5px;
  background: var(--ouro); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.marca .registro { font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--texto-2); margin-top: 2px; }
.abertura-texto { margin-top: auto; }
h1 {
  font-family: var(--serif); font-weight: 500; font-size: 33px; line-height: 1.12;
}
h1 strong { font-weight: 600; }
h1 em, h2 em {
  font-style: italic;
  background: var(--ouro); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.texto { color: var(--texto-2); font-size: 15px; margin-top: 12px; }
.texto p + p { margin-top: 12px; }
.estrelas { color: var(--ouro-2); font-size: 13px; margin-top: 14px; letter-spacing: 1px; }
.estrelas span { color: var(--texto-2); letter-spacing: 0; margin-left: 4px; }

/* Pergunta */
.selo {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--ouro-2);
  color: var(--ouro-1); font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
h2 { font-size: 22px; font-weight: 600; line-height: 1.3; }
.opcoes { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.opcao {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px;
  padding: 13px 14px; text-align: left; cursor: pointer;
  font: inherit; font-size: 15.5px; color: var(--texto);
  background: rgba(255,255,255,.05); border: 1px solid var(--borda); border-radius: 12px;
  transition: background .15s, border-color .15s;
}
.opcao:hover { border-color: rgba(234,215,164,.45); }
.opcao .letra {
  flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1px solid rgba(234,215,164,.5);
  color: var(--ouro-1); font-size: 11.5px; font-weight: 500; display: flex; align-items: center; justify-content: center;
}
.opcao.sel { border-color: var(--ouro-2); background: rgba(201,165,92,.16); }
.opcao.sel .letra { background: var(--ouro); color: var(--tinta); border: 0; }
.opcao.multipla.sel .letra::before { content: '✓'; }
.opcao.multipla.sel .letra { font-size: 0; }
.opcao.multipla.sel .letra::before { font-size: 13px; font-weight: 600; }

/* Antes/depois em 4:5, nunca cortados */
.faixa { display: flex; gap: 8px; margin-top: 16px; }
.faixa img {
  display: block; width: calc(50% - 4px); height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--borda); background: #1a1714;
}
.faixa.tres { gap: 6px; }
.faixa.tres img { width: calc((100% - 12px) / 3); border-radius: 8px; }
.faixa.rolar {
  overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -22px; padding-right: 22px;
  scrollbar-width: none;
}
.faixa.rolar::-webkit-scrollbar { display: none; }
.faixa.rolar img { flex: none; width: 72%; scroll-snap-align: start; }
.dica { font-size: 12px; color: var(--texto-3); margin-top: 6px; }

/* Depoimentos */
.depoimentos { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.depoimento {
  background: rgba(255,255,255,.05); border: 1px solid var(--borda); border-radius: 14px; padding: 16px;
}
.depoimento .estrelas { margin-top: 0; }
.depoimento.print { padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--borda); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.depoimento.print img { display: block; width: 100%; height: auto; }
.depoimento blockquote { font-size: 15px; line-height: 1.55; margin-top: 8px; color: var(--texto); }
.depoimento cite { display: block; font-style: normal; font-size: 13px; color: var(--ouro-1); margin-top: 8px; }

/* Campos */
.campo {
  width: 100%; margin-top: 22px; padding: 10px 0; font: inherit; font-size: 20px; color: var(--texto);
  background: transparent; border: 0; border-bottom: 1px solid rgba(244,239,230,.35); border-radius: 0; outline: none;
}
.campo::placeholder { color: rgba(244,239,230,.35); }
.campo:focus { border-bottom-color: var(--ouro-2); }
.erro { color: #E8B4A0; font-size: 13px; margin-top: 8px; min-height: 18px; }
.mel { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Base: botão + rodapé */
.base {
  /* Botão sempre visível no rodapé: o conteúdo rola por trás dele. */
  position: sticky; bottom: 0; z-index: 5;
  margin: 0 -22px;
  padding: 28px 22px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(14,12,10,0) 0%, rgba(14,12,10,.92) 30%, #0E0C0A 100%);
}
.base:not(:has(.botao)) { position: static; background: none; padding-top: 12px; }
.botao {
  width: 100%; height: 56px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--ouro); color: var(--tinta); font: inherit; font-size: 16.5px; font-weight: 600;
  box-shadow: 0 6px 22px rgba(201,165,92,.22);
  transition: opacity .2s, transform .1s;
}
.botao:active { transform: scale(.985); }
.botao:disabled { opacity: .45; cursor: default; box-shadow: none; }
.aviso { font-size: 12px; color: var(--texto-3); text-align: center; margin-top: 10px; }
.aviso a, .rodape a { color: var(--texto-2); }
.rodape { font-size: 11px; color: var(--texto-3); text-align: center; margin-top: 12px; }

.noscript { position: relative; z-index: 2; padding: 40px 24px; text-align: center; }

@media (min-width: 700px) {
  h1 { font-size: 38px; }
  #app { padding-top: 40px; padding-bottom: 32px; }
}
