/* Modelo 1: Stories. Tela no formato do Stories, com enquetes no lugar do quiz. */
:root {
  --ink: #2c2729; --field: #2c2729; --gold: #b8924a; --gold-l: #d9bd85; --gold-d: #8f6f33;
  --paper: #faf9f7; --wa: #1f8f4e; --f: "Lato", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #111; color: #fff; font: 400 16px/1.4 var(--f); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.palco { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 0%, #3a3437, #141213); }
.story { position: relative; width: 100%; height: 100%; max-width: calc(100dvh * 9 / 16); background: var(--field); overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
@media (min-width: 600px) { .story { height: min(100dvh - 32px, 900px); max-width: calc(min(100dvh - 32px, 900px) * 9 / 16); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); } }

/* Topo: barras, perfil */
.topo { position: absolute; z-index: 20; left: 0; right: 0; top: 0; padding: max(10px, env(safe-area-inset-top)) 10px 28px; background: linear-gradient(rgba(0,0,0,.42), transparent); pointer-events: none; }
.barras { display: flex; gap: 3px; }
.barras span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.barras i { display: block; height: 100%; width: 0; background: #fff; }
.perfil { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, var(--gold-d), var(--gold-l), var(--gold), var(--gold-d)); flex: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--field); }
.perfil b { font-weight: 700; font-size: .86rem; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.perfil small { display: block; font-size: .72rem; opacity: .85; }
.perfil .tempo { opacity: .7; font-size: .8rem; margin-left: 4px; font-weight: 400; }

/* Telas */
.tela { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 96px 22px 92px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.tela.on { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.fundo-onda { background:
  radial-gradient(90% 50% at 100% 0%, rgba(217,189,133,.22), transparent 60%),
  radial-gradient(80% 60% at 0% 100%, rgba(184,146,74,.18), transparent 60%),
  repeating-radial-gradient(circle at 30% 120%, rgba(255,255,255,.035) 0 2px, transparent 2px 22px),
  linear-gradient(160deg, #4a4346, #2c2729 55%, #1f1b1d); }
.fundo-claro { background: radial-gradient(90% 60% at 50% 0%, #fff, #ebe7e2 70%), #ebe7e2; color: var(--ink); }
.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto + .veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 30%, rgba(20,16,18,.85) 85%); }
.tela > *:not(.foto):not(.veu) { position: relative; }
.capa { justify-content: flex-end; padding-bottom: 120px; }

/* Texto no estilo do Stories: faixa atrás das letras */
.faixa { font: 700 1.55rem/1.42 var(--f); letter-spacing: -.01em; }
.faixa span { background: #fff; color: var(--ink); padding: .08em .32em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.faixa.ouro span { background: var(--gold-l); }
.leve { margin-top: 18px; font: 400 1.05rem/1.5 var(--f); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.fundo-claro .leve { text-shadow: none; color: #4a4346; }
.tag { align-self: flex-start; font: 700 .68rem/1 var(--f); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 14px; }
.fundo-claro .tag { color: var(--gold-d); }
.toque { margin-top: 26px; font-size: .78rem; opacity: .75; display: flex; align-items: center; gap: 8px; }
.toque::after { content: ""; width: 26px; height: 1px; background: currentColor; }

/* Antes e depois */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ba figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; background: #000; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba figcaption { position: absolute; left: 8px; top: 8px; font: 700 .66rem/1 var(--f); letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.55); padding: 6px 8px; border-radius: 99px; }
.ba figure:last-child figcaption { background: var(--gold); color: var(--ink); }
.aviso { margin-top: 10px; font-size: .72rem; opacity: .75; }

/* Enquete (figurinha) */
.figurinha { background: #fff; color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.35); transform: rotate(-1.2deg); animation: entra .45s cubic-bezier(.34,1.4,.5,1) both; }
@keyframes entra { from { transform: scale(.85) rotate(-4deg); opacity: 0; } }
.figurinha h2 { margin: 0; padding: 16px 18px 14px; font: 700 1.12rem/1.3 var(--f); color: #fff; background: linear-gradient(120deg, #3a3437, #5a5355 60%, var(--gold-d)); }
.opcoes { padding: 12px; display: grid; gap: 8px; }
.opcao { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid #e4dfda; background: #fff; border-radius: 12px; padding: 12px 14px; min-height: 50px; font-weight: 700; font-size: .98rem; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.opcao small { display: block; font-weight: 400; font-size: .78rem; color: #6c6466; margin-top: 2px; }
.opcao .letra { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: #f1eeea; color: var(--gold-d); }
.opcao:active { transform: scale(.98); }
.opcao.escolhida { background: var(--ink); color: #fff; border-color: var(--ink); }
.opcao.escolhida small { color: #d8d1cc; }
.opcao.escolhida .letra { background: var(--gold); color: var(--ink); }
.figurinha.treme { animation: treme .4s; }
@keyframes treme { 25% { transform: translateX(-6px) rotate(-1.2deg); } 75% { transform: translateX(6px) rotate(-1.2deg); } }
.dica { text-align: center; margin-top: 14px; font-size: .8rem; opacity: .8; }

/* Oferta */
.preco { margin: 8px 0 18px; }
.preco s { opacity: .6; font-size: 1.1rem; }
.preco b { display: block; font: 300 4rem/1 var(--f); color: var(--gold-l); letter-spacing: -.03em; }
.preco small { display: block; margin-top: 6px; font-size: .95rem; }

/* Contato (caixa de pergunta) */
.caixa { background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: entra .45s cubic-bezier(.34,1.4,.5,1) both; }
.caixa h2 { margin: 0 0 4px; font: 700 1.15rem/1.3 var(--f); }
.caixa p { margin: 0 0 12px; font-size: .86rem; color: #5a5355; }
.campo { margin-bottom: 10px; }
.campo label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: #5a5355; margin-bottom: 4px; }
.campo input { width: 100%; border: 1.5px solid #e1dbd5; background: #f6f4f1; border-radius: 12px; padding: 12px 14px; font-size: 1rem; color: var(--ink); outline: none; }
.campo input:focus { border-color: var(--gold); background: #fff; }
.campo input[aria-invalid="true"] { border-color: #b3261e; }
.erro { min-height: 1em; margin: 4px 0 0; font-size: .76rem; color: #b3261e; }
.btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 99px; padding: 15px 18px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; }
.btn-claro { background: #fff; color: var(--ink); margin-top: 10px; }
.btn-link { background: none; color: inherit; text-decoration: underline; margin-top: 10px; font-weight: 400; }
.nota-priv { margin: 10px 0 0; font-size: .72rem; color: #7a7275; }

/* Rodapé: caixa de resposta */
.rodape { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; padding: 12px 12px max(14px, env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; background: linear-gradient(transparent, rgba(0,0,0,.4)); }
.resposta { flex: 1; text-align: left; border: 1px solid rgba(255,255,255,.6); background: transparent; border-radius: 99px; padding: 11px 16px; font-size: .88rem; color: #fff; cursor: pointer; }
.rodape svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #fff; stroke-width: 1.8; }

/* Áreas de toque */
.toques { position: absolute; z-index: 10; inset: 70px 0 70px; display: grid; grid-template-columns: 1fr 2fr; }
.toques button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tela .figurinha, .tela .caixa, .tela .btn, .tela a { position: relative; z-index: 15; }
.pausado .barras i { animation-play-state: paused !important; }
.spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .figurinha, .caixa { animation: none; } .tela { transition: none; } }
