:root {
  --teal: #003C3C; --teal2: #0A4F4D; --lime: #C8F86E; --ink: #0F2B2A; --mut: #627976; --line: #D8E3DF;
  --soft: #F1F5F3; --card: #FFFFFF; --ok: #1B7A4D; --okbg: #E2F3E9; --bad: #B3352A; --badbg: #FBEAE6;
  --warn: #8F5E00; --warnbg: #FCF1DA; --info: #35605B; --infobg: #E5EFEC; --chip: #EBF5D3; --chipink: #2E4900;
  --bronze: #A8693A; --prata: #7D8C90; --ouro: #B98A12; --diamante: #0E8C86;
  --raio: 16px; --sombra: 0 1px 2px rgba(0, 40, 40, .06), 0 8px 24px rgba(0, 40, 40, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--soft); -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
.esconde { display: none !important; }

.logo { font-weight: 800; color: var(--lime); transform: skewX(-9deg); display: inline-block; letter-spacing: .01em; line-height: 1; font-size: 26px; text-decoration: none; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .08s ease, filter .15s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-prim { background: var(--lime); color: var(--teal); }
.btn-prim:hover { filter: brightness(.97); }
.btn-sec { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-escuro { background: var(--teal); color: #fff; }
.btn-perigo { background: var(--bad); color: #fff; }
.btn-leve { background: var(--soft); color: var(--teal); }
.btn-bloco { width: 100%; }
.btn-peq { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.girando::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.campo { display: block; margin: 0 0 16px; }
.campo > span { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s; }
.campo textarea { min-height: 90px; resize: vertical; font-size: 15px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 60, 60, .12); }
.campo small { display: block; color: var(--mut); font-size: 13px; margin-top: 6px; }
.campo.erro input, .campo.erro select { border-color: var(--bad); }
.checa { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin: 4px 0 20px; cursor: pointer; }
.checa input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }

.aviso { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 0 0 16px; }
.aviso-info { background: var(--infobg); color: var(--info); }
.aviso-ok { background: var(--okbg); color: var(--ok); }
.aviso-mal { background: var(--badbg); color: var(--bad); }
.aviso-cuidado { background: var(--warnbg); color: var(--warn); }

.selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 99px; font-weight: 800; font-size: 13px; color: #fff; }
.selo::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.selo-Bronze { background: var(--bronze); } .selo-Prata { background: var(--prata); } .selo-Ouro { background: var(--ouro); } .selo-Diamante { background: var(--diamante); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 50; box-shadow: var(--sombra); }
#toast.mostra { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.mal { background: var(--bad); }

/* ---------- cadastro do cliente ---------- */
.topo { background: var(--teal); color: #fff; padding: 18px 20px 0; position: sticky; top: 0; z-index: 5; }
.topo-linha { display: flex; align-items: center; justify-content: space-between; max-width: 520px; margin: 0 auto; padding-bottom: 16px; }
.topo-passo { font-size: 13px; color: rgba(255, 255, 255, .75); font-weight: 600; }
.barra { height: 4px; background: rgba(255, 255, 255, .12); max-width: 520px; margin: 0 auto; border-radius: 4px 4px 0 0; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .35s ease; }
.palco { max-width: 520px; margin: 0 auto; padding: 22px 18px 40px; }
.passo h1 { font-size: 26px; line-height: 1.15; font-weight: 800; margin: 4px 0 10px; letter-spacing: -.01em; }
.passo .sub { color: var(--mut); margin: 0 0 22px; font-size: 16px; }
.cartao { background: var(--card); border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); margin: 0 0 16px; }

.heroi { background: var(--teal); color: #fff; margin: -22px -18px 22px; padding: 10px 22px 30px; border-radius: 0 0 28px 28px; }
.heroi h1 { color: #fff; font-size: 30px; }
.heroi h1 em { font-style: normal; color: var(--lime); }
.heroi p { color: rgba(255, 255, 255, .8); margin: 0; }
.lista-check { list-style: none; padding: 0; margin: 0; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lista-check li:last-child { border-bottom: 0; }
.lista-check b { display: block; font-size: 16px; }
.icone { width: 36px; height: 36px; border-radius: 10px; background: var(--chip); color: var(--chipink); display: grid; place-items: center; flex: none; font-weight: 800; }
.icone svg { width: 20px; height: 20px; }

.foto-alvo { display: grid; place-items: center; gap: 10px; text-align: center; min-height: 230px; border: 2px dashed var(--line); border-radius: var(--raio); background: #fff; cursor: pointer; padding: 20px; color: var(--mut); font-weight: 600; position: relative; overflow: hidden; }
.foto-alvo:hover { border-color: var(--teal); }
.foto-alvo .icone { width: 64px; height: 64px; border-radius: 18px; }
.foto-alvo .icone svg { width: 32px; height: 32px; }
.foto-alvo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b1f1e; }
.foto-alvo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dicas { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.dicas li { display: flex; gap: 10px; font-size: 15px; }
.dicas li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--chip); margin-top: 7px; flex: none; }
.duplas { display: flex; gap: 10px; }
.duplas > * { flex: 1; }

.ref { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.ref:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.ref h3 { margin: 0 0 12px; font-size: 16px; }

.banco-lista { display: grid; gap: 10px; margin: 0 0 16px; }
.banco-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--sombra); font-weight: 700; }
.banco-item small { display: block; color: var(--mut); font-weight: 600; }
.banco-item .icone { background: var(--okbg); color: var(--ok); }

.analisando { text-align: center; padding: 30px 0 10px; }
.pulso { width: 110px; height: 110px; margin: 10px auto 24px; border-radius: 50%; background: var(--teal); position: relative; display: grid; place-items: center; }
.pulso::before, .pulso::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--lime); animation: onda 2s ease-out infinite; }
.pulso::after { animation-delay: 1s; }
.pulso span { font-weight: 800; color: var(--lime); font-size: 22px; transform: skewX(-9deg); }
@keyframes onda { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.frase-analise { min-height: 44px; color: var(--mut); transition: opacity .3s; }

.resultado { text-align: center; }
.resultado .grande { font-size: 46px; font-weight: 800; letter-spacing: -.02em; color: var(--teal); line-height: 1; margin: 6px 0 6px; }
.resultado .marca-ok { width: 74px; height: 74px; margin: 6px auto 12px; border-radius: 50%; background: var(--lime); color: var(--teal); display: grid; place-items: center; }
.resultado .marca-ok svg { width: 38px; height: 38px; }
.resumo-valor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; text-align: left; }
.resumo-valor div { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--sombra); }
.resumo-valor small { display: block; color: var(--mut); font-weight: 600; font-size: 13px; }
.resumo-valor b { font-size: 19px; }
.trilha { display: grid; gap: 8px; margin: 10px 0 0; text-align: left; }
.trilha-passo { display: grid; grid-template-columns: 104px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); }
.trilha-passo.atual { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 60, 60, .1); }
.trilha-passo .num { font-weight: 700; color: var(--mut); font-size: 13px; white-space: nowrap; }
.trilha-passo .selo { justify-self: start; }
.trilha-passo b { display: block; font-size: 17px; }
.trilha-passo small { color: var(--mut); font-weight: 600; }
.passos-depois { text-align: left; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.passos-depois li { counter-increment: p; display: flex; gap: 12px; padding: 8px 0; font-size: 15px; }
.passos-depois li::before { content: counter(p); width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--lime); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }

.modal { position: fixed; inset: 0; background: rgba(5, 25, 25, .55); display: grid; place-items: end center; z-index: 40; padding: 0; }
.modal-caixa { background: #fff; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 24px 22px 28px; }
.modal-caixa h2 { margin: 0 0 12px; }
.modal-caixa ol { padding-left: 20px; }
.modal-caixa li { margin: 0 0 10px; }
@media (min-width: 640px) { .modal { place-items: center; padding: 24px; } .modal-caixa { border-radius: 22px; } }
.rodape { text-align: center; color: var(--mut); font-size: 13px; padding: 10px 18px 30px; }
.link-btn { background: none; border: 0; color: var(--teal); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; font-size: inherit; }
