/* Assinatura guiada New Life — público leigo: letra grande, um passo por tela, botões grandes. */
:root {
  --azul: #0b5cab; --azul-esc: #084684; --verde: #12893a; --vermelho: #c62828; --amarelo: #f5b400;
  --fundo: #f3f6f9; --cartao: #ffffff; --texto: #17212b; --suave: #5a6775; --borda: #d9e1e8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); font: 18px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.topo { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--azul); color: #fff; font-size: 17px; }
.topo span { opacity: .9; font-size: 15px; }
main { max-width: 520px; margin: 0 auto; padding: 16px; }
.cartao { background: var(--cartao); border-radius: 16px; padding: 22px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.centro { text-align: center; }
h1 { font-size: 25px; line-height: 1.25; margin: 0 0 10px; }
p { margin: 0 0 14px; }
.suave { color: var(--suave); font-size: 16px; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=text], input[type=tel], textarea {
  width: 100%; font-size: 22px; padding: 14px; border: 2px solid var(--borda); border-radius: 12px; background: #fff; color: var(--texto);
}
input:focus, textarea:focus { outline: none; border-color: var(--azul); }
input.codigo { text-align: center; letter-spacing: 10px; font-size: 32px; font-weight: 700; }
.botao { display: block; width: 100%; margin-top: 18px; padding: 17px; font-size: 20px; font-weight: 700; border: 0; border-radius: 14px;
  background: var(--azul); color: #fff; cursor: pointer; text-align: center; text-decoration: none; }
.botao:active { background: var(--azul-esc); }
.botao:disabled { opacity: .5; }
.botao.secundario { background: #e6edf4; color: var(--azul-esc); }
.botao.verde { background: var(--verde); }
.link { display: block; margin-top: 16px; background: none; border: 0; color: var(--azul); font-size: 17px; text-decoration: underline; width: 100%; cursor: pointer; }
.erro { background: #fdecea; color: var(--vermelho); border-radius: 10px; padding: 12px; margin-top: 14px; font-weight: 600; }
.erro:empty { display: none; }
.aviso { background: #fff7e0; border-radius: 10px; padding: 12px; margin: 12px 0; }
.ok-msg { background: #e7f6ec; color: #0b5d28; border-radius: 10px; padding: 12px; margin: 12px 0; font-weight: 600; }
.opcoes .botao { background: #fff; color: var(--texto); border: 2px solid var(--borda); text-align: left; font-weight: 600; margin-top: 12px; }
.opcoes .botao:active { border-color: var(--azul); }
.dicas { list-style: none; padding: 0; margin: 10px 0 4px; text-align: left; }
.dicas li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #eef2f5; }
.dicas li:last-child { border: 0; }
.dicas .ic { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: #e6edf4; }
.dicas .ic.nao { background: #fdecea; } .dicas .ic.sim { background: #e7f6ec; }
.giro { width: 42px; height: 42px; margin: 10px auto 16px; border-radius: 50%; border: 5px solid #d6e2ee; border-top-color: var(--azul); animation: giro 1s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.grande-ok { width: 84px; height: 84px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 50px; display: grid; place-items: center; margin: 6px auto 16px; }
.codigo-val { font-family: ui-monospace, monospace; font-size: 20px; font-weight: 700; letter-spacing: 1px; background: #eef3f8; padding: 10px; border-radius: 10px; word-break: break-all; }
.contrato { max-height: 46vh; overflow-y: auto; white-space: pre-wrap; font-size: 16px; background: #f8fafc; border: 1px solid var(--borda); border-radius: 12px; padding: 14px; margin: 12px 0; }
.aceite { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-weight: 600; }
.aceite input { width: 28px; height: 28px; flex: 0 0 28px; margin-top: 2px; }
.chat { margin-top: 14px; border-top: 1px solid var(--borda); padding-top: 12px; }
.chat .msgs { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.chat .m { padding: 10px 12px; border-radius: 12px; font-size: 16px; max-width: 90%; }
.chat .m.eu { align-self: flex-end; background: var(--azul); color: #fff; }
.chat .m.ia { align-self: flex-start; background: #eef3f8; }
.chat form { display: flex; gap: 8px; }
.chat input { font-size: 17px; padding: 12px; }
.chat button { flex: 0 0 auto; padding: 0 16px; border: 0; border-radius: 12px; background: var(--azul); color: #fff; font-weight: 700; font-size: 16px; }
.previa { width: 100%; border-radius: 12px; margin: 10px 0; background: #000; }

/* câmera em tela cheia */
.camera { position: fixed; inset: 0; background: #000; z-index: 10; overflow: hidden; }
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera video.espelho { transform: scaleX(-1); }
.camera svg.mascara { position: absolute; inset: 0; width: 100%; height: 100%; }
.camera .moldura { fill: none; stroke: #fff; stroke-width: 4; transition: stroke .2s; }
.camera .moldura.boa { stroke: #2ecc71; stroke-width: 6; }
.camera .barra { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 12px 12px; }
.camera .barra button { background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 22px; padding: 10px 16px; font-size: 16px; }
.camera .titulo { position: absolute; left: 12px; right: 12px; top: 62px; text-align: center; color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.camera .msg { position: absolute; left: 12px; right: 12px; bottom: calc(110px + env(safe-area-inset-bottom)); text-align: center; }
.camera .msg span { display: inline-block; background: rgba(0,0,0,.72); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 20px; font-weight: 600; }
.camera .msg span.boa { background: var(--verde); }
.camera .msg span.ruim { background: var(--vermelho); }
.camera .rodape { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; align-items: center; }
.camera .disparo { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.35); display: none; }
.camera .disparo.ver { display: block; }
.camera .ajuda { background: var(--amarelo); color: #000; border: 0; border-radius: 14px; padding: 14px 18px; font-size: 17px; font-weight: 700; display: none; }
.camera .ajuda.ver { display: block; }
.camera .seta { position: absolute; top: 42%; font-size: 90px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.7); display: none; animation: pulso 1s ease-in-out infinite; }
.camera .seta.esq { left: 8px; } .camera .seta.dir { right: 8px; }
.camera .seta.ver { display: block; }
@keyframes pulso { 50% { transform: translateX(var(--d, -12px)); } }
.camera .seta.dir { --d: 12px; }
.camera .pontos { position: absolute; left: 0; right: 0; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 10px; }
.camera .pontos i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.4); }
.camera .pontos i.feito { background: #2ecc71; }
.camera .debug { position: absolute; left: 8px; bottom: 8px; color: #0f0; font: 12px monospace; background: rgba(0,0,0,.6); padding: 4px; white-space: pre; }
.camera .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.camera .flash.on { opacity: .8; transition: none; }
