/* Identidade do PDF: âmbar, vermelho, preto, cinza claro, Poppins pesada. Feito primeiro para celular. */
:root {
  --a: #F2B33D; --v: #E5484D; --p: #0F0F11; --p2: #1A1B1F; --p3: #2A2C32; --b: #F2F2F2; --m: #9A9EA6;
  --fundo: var(--a); --tinta: var(--p);
  --topo: 56px;
}
body[data-cor="ambar"] { --fundo: var(--a); --tinta: var(--p); }
body[data-cor="preto"] { --fundo: var(--p); --tinta: var(--b); }
body[data-cor="vermelho"] { --fundo: var(--v); --tinta: var(--b); }
body[data-cor="branco"] { --fundo: var(--b); --tinta: var(--p); }

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.5 "Poppins", system-ui, sans-serif; background: var(--fundo); color: var(--tinta); min-height: 100dvh; overflow-x: hidden; transition: background-color .35s ease, color .35s ease; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

/* ───────── topo fixo: voltar · marca · contador */
.topo { position: sticky; top: 0; z-index: 5; height: var(--topo); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 0 12px; padding-top: env(safe-area-inset-top); background: var(--fundo); transition: background-color .35s; }
.voltar { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; font-weight: 700; visibility: hidden; }
.voltar:active { background: rgba(127, 127, 127, .18); }
.marca { justify-self: center; display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 900; font-size: 15px; letter-spacing: -.01em; text-transform: uppercase; }
.marca-palito { width: 18px; height: 34px; display: block; }
.marca-palito svg { width: 100%; height: 100% !important; }
.contador { justify-self: end; font-weight: 800; font-size: 11px; letter-spacing: .1em; opacity: .7; }
.barra { height: 4px; margin: 0 20px; border-radius: 4px; background: rgba(127, 127, 127, .25); overflow: hidden; visibility: hidden; }
.barra i { display: block; height: 100%; width: 0; background: currentColor; border-radius: 4px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
body[data-cor="preto"] .barra i { background: var(--a); }

/* ───────── telas */
.app { position: relative; }
.tela { min-height: calc(100dvh - var(--topo) - 4px); display: flex; flex-direction: column; padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.tela.entra { animation: entra .38s cubic-bezier(.2, .8, .2, 1) both; }
.tela.entra-volta { animation: entraVolta .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entra { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes entraVolta { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.rot { display: block; font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.tit { font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .98; font-size: clamp(27px, 7.6vw, 40px); margin-top: 8px; }
.tit .V { color: var(--v); }
body[data-cor="vermelho"] .tit .V { color: var(--p); }
.ajuda { margin-top: 10px; font-size: 15px; opacity: .75; }

/* ───────── opções (um toque troca de tela) */
.opcoes { display: grid; gap: 10px; margin-top: 24px; }
.opcao { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--p); color: var(--b); font-weight: 700; font-size: 16.5px; line-height: 1.25; border: 2px solid transparent; transition: transform .12s, border-color .15s, background .15s; animation: sobe .4s cubic-bezier(.2, .8, .2, 1) both; }
body[data-cor="preto"] .opcao { background: var(--p2); border-color: var(--p3); }
.opcao:active { transform: scale(.98); }
@media (hover: hover) { .opcao:hover { border-color: var(--a); } }
.opcao .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(242, 242, 242, .1); }
.opcao small { display: block; font-weight: 400; font-size: 13.5px; opacity: .7; margin-top: 2px; }
.opcao.marcada { background: var(--a); color: var(--p); border-color: var(--p); }
body[data-cor="ambar"] .opcao.marcada { background: var(--b); }
.opcao.marcada .ic { background: rgba(15, 15, 17, .1); }
.opcao.grande { min-height: 84px; font-size: 19px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.opcao.grande small { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; }
.opcao.grande .ic { width: 52px; height: 52px; font-size: 28px; }
@keyframes sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ───────── botão-pílula */
.pilula { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; padding: 0 28px; border-radius: 999px; background: var(--p); color: var(--b); font-weight: 900; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: transform .12s; }
.pilula:active { transform: scale(.97); }
body[data-cor="preto"] .pilula { background: var(--a); color: var(--p); }
.pulsa { animation: pulsa 2s ease-out infinite; }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 rgba(15, 15, 17, .45); } 70% { box-shadow: 0 0 0 16px rgba(15, 15, 17, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 15, 17, 0); } }
body[data-cor="preto"] .pulsa { animation-name: pulsaA; }
@keyframes pulsaA { 0% { box-shadow: 0 0 0 0 rgba(242, 179, 61, .5); } 70% { box-shadow: 0 0 0 16px rgba(242, 179, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 179, 61, 0); } }

/* ───────── tela inicial: VSL + botão + palito apontando */
.inicio { max-width: 820px; }
.inicio .tit { font-size: clamp(28px, 8.4vw, 64px); line-height: .92; }
.vsl { position: relative; margin-top: 18px; border-radius: 16px; overflow: hidden; background: var(--p); aspect-ratio: 16 / 9; box-shadow: 0 24px 50px -26px rgba(15, 15, 17, .7); }
.vsl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--p); display: block; }
.vsl .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 15, 17, .25); }
.vsl .play span { width: 74px; height: 74px; border-radius: 50%; background: var(--a); display: grid; place-items: center; animation: pulsaA 2s ease-out infinite; }
.vsl .play span::after { content: ""; border-left: 22px solid var(--p); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 5px; }
.vsl .play em { position: absolute; left: 14px; bottom: 12px; font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--b); opacity: .85; }
.cta { display: flex; align-items: flex-end; gap: 6px; margin-top: 14px; }
.cta .pilula { flex: 1; }
.cta-palito { flex: none; width: 74px; height: 110px; }
.cta-palito svg { width: 100%; height: 100% !important; }
.inicio .miudo { text-align: center; font-size: 13px; font-weight: 600; opacity: .7; margin-top: 10px; padding-right: 80px; }

/* ───────── nome */
.campo { margin-top: 26px; width: 100%; font: 800 22px "Poppins"; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--p3); background: var(--p2); color: var(--b); outline: none; }
.campo:focus { border-color: var(--a); }
.tela .pilula.enviar { margin-top: 16px; }
.pilula:disabled { opacity: .35; }

/* ───────── final */
.final .tit { font-size: clamp(30px, 8.4vw, 46px); }
.bilhete { margin-top: 20px; border-radius: 20px; padding: 22px 20px; position: relative; overflow: hidden; }
.bilhete.ambar { background: var(--a); color: var(--p); }
.bilhete.branco { background: var(--b); color: var(--p); }
.bilhete.vermelho { background: var(--v); color: var(--b); }
.bilhete .dias { position: absolute; right: -6px; top: -18px; font-weight: 900; font-size: 140px; line-height: 1; letter-spacing: -.07em; opacity: .14; }
.bilhete h2 { font-weight: 900; font-size: 30px; line-height: .95; letter-spacing: -.03em; text-transform: uppercase; margin-top: 4px; position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-weight: 800; font-size: 11px; letter-spacing: .12em; padding: 5px 11px; border-radius: 999px; border: 2px solid currentColor; }
.chip.cheio { background: var(--p); color: var(--b); border-color: var(--p); }
.inclui { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; font-size: 15px; font-weight: 600; position: relative; }
.inclui li { display: flex; gap: 10px; }
.inclui li::before { content: "✓"; font-weight: 900; }
.preco { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.preco b { font-weight: 900; font-size: 46px; letter-spacing: -.04em; line-height: 1; }
.preco span { font-size: 14px; opacity: .75; font-weight: 600; }
.final .pilula { margin-top: 16px; }
.garantia { margin-top: 12px; font-size: 13.5px; text-align: center; opacity: .75; }
.final-palito { position: absolute; right: 12px; bottom: 10px; width: 64px; height: 100px; }
.final-palito svg { width: 100%; height: 100% !important; }
.aviso { margin-top: 14px; font-size: 12px; opacity: .55; text-align: center; }

/* ───────── telas maiores */
@media (min-width: 760px) {
  .tela { padding-top: 40px; }
  .inicio .cta { max-width: 520px; margin-left: auto; margin-right: auto; width: 100%; margin-top: 26px; }
  .inicio .miudo { padding-right: 0; }
  .inicio .rot, .inicio .tit { text-align: center; }
  .inicio .tit { font-size: clamp(34px, 4.4vw, 54px); }
  .inicio .vsl { width: min(100%, 720px, calc((100dvh - 360px) * 16 / 9)); min-width: 420px; margin-left: auto; margin-right: auto; }
  .cta-palito { width: 90px; height: 130px; }
}
@media (max-height: 700px) and (max-width: 500px) {
  .inicio .tit { font-size: 26px; }
  .cta-palito { height: 90px; width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
