/* Captação (/forms e /obg) no visual "fofo" dos banners do Início
   (Bruno 2026-10-24): azul pastel com poá, bolhas, brilhos, Nunito e o
   mascote na nuvem. O formulário vira uma conversa de WhatsApp com o Norte.
   Página pública e sempre clara: as cores são fixas, sem tema escuro. */
:root {
  --bg: #BFDBFE; --bolha: #EFF6FF; --nuvem: #F5F9FF;
  --tinta: #12283D; --suave: rgba(18, 40, 61, .74); --destaque: #0A4EB0;
  --linha: rgba(10, 78, 176, .22); --brilho: #60A5FA; --sombra: rgba(27, 124, 245, .18);
  --branco: #FFFFFF; --whats: #D9FDD3; --whats-tinta: #10301F; --tique: #34B7F1;
  --azul: #5AA6F0; --menta: #3FBF7A; --erro: #B42318;
  --fofa: 'Nunito', 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cb-fofo {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow-x: hidden;
  color: var(--tinta); font-family: 'Inter', system-ui, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .38) 1.4px, transparent 1.7px);
  background-size: 30px 30px; background-position: 4px 4px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

/* ── Céu decorativo ─────────────────────────────────────────────────── */
.ceu { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bolha { position: absolute; border-radius: 999px; background: var(--bolha); }
.bolha.b1 { width: 260px; height: 260px; left: -90px; top: -110px; }
.bolha.b2 { width: 180px; height: 180px; right: -60px; bottom: 12%; opacity: .55; }
.brilho { position: absolute; width: 20px; height: 20px; animation: pisca 2.8s ease-in-out infinite; }
.brilho path { fill: var(--branco); }
.brilho.s1 { left: 18%; top: 120px; }
.brilho.s2 { right: 22%; top: 90px; width: 15px; height: 15px; animation-delay: 1s; }
.brilho.s2 path, .brilho.s4 path { fill: var(--brilho); }
.brilho.s3 { left: 9%; bottom: 22%; width: 18px; height: 18px; animation-delay: .5s; }
.brilho.s3 path { fill: #F7A8A8; }
.brilho.s4 { right: 8%; top: 46%; width: 13px; height: 13px; animation-delay: 1.6s; }
@keyframes pisca { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* ── Topo ───────────────────────────────────────────────────────────── */
.topo {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; width: 100%; margin: 0 auto; padding: 16px 20px 0;
}
.marca { display: inline-flex; border-radius: 20px; background: rgba(255, 255, 255, .7); padding: 6px 14px; box-shadow: 0 8px 22px var(--sombra); }
.marca img { height: 52px; width: auto; }
.selo {
  font-family: var(--fofa); font-weight: 800; font-size: 13px; color: var(--destaque);
  background: rgba(255, 255, 255, .78); border-radius: 999px; padding: 6px 14px; white-space: nowrap;
}

/* ── Palco: texto + conversa ───────────────────────────────────────── */
.palco {
  position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 48px; align-items: start;
  padding: 40px 20px 56px;
}
.intro { position: relative; padding-top: 18px; }
.oi { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fofa); font-weight: 800; font-size: 14px; color: var(--destaque); background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 5px 13px; }
.intro h1 {
  margin-top: 0; font-family: var(--fofa); font-weight: 900; font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.04; letter-spacing: -.015em; color: var(--tinta);
}
.marca-texto {
  background: linear-gradient(transparent 58%, rgba(255, 255, 255, .85) 58%, rgba(255, 255, 255, .85) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em;
}
.intro p { margin-top: 14px; font-size: 17px; color: var(--suave); max-width: 460px; }
.intro strong { color: var(--tinta); font-weight: 700; }
.pilulas { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.pilulas li {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .82); border-radius: 999px;
  padding: 7px 13px; font-family: var(--fofa); font-weight: 800; font-size: 13.5px; color: var(--tinta);
}
.ponto { width: 9px; height: 9px; border-radius: 99px; flex-shrink: 0; }
.ponto.amarelo { background: var(--brilho); } .ponto.azul { background: var(--azul); } .ponto.menta { background: var(--menta); }

/* Mascote no celular, sentado na nuvem. */
.mascote { position: relative; width: 230px; height: 220px; margin-top: 40px; margin-left: -10px; }
.nuvem {
  position: absolute; left: -110px; bottom: -96px; width: 460px; height: 270px;
  background:
    radial-gradient(circle at 100px 160px, var(--nuvem) 82px, transparent 83px),
    radial-gradient(circle at 230px 130px, var(--nuvem) 100px, transparent 101px),
    radial-gradient(circle at 368px 166px, var(--nuvem) 80px, transparent 81px),
    linear-gradient(var(--nuvem), var(--nuvem)) 100px 160px / 268px 86px no-repeat;
}
.mascote img { position: relative; width: 210px; height: 210px; object-fit: contain; transform-origin: 50% 90%; animation: balanca 5s ease-in-out infinite; }
@keyframes balanca { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* Só para leitor de tela. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Conversa ──────────────────────────────────────────────────────── */
.chat { position: relative; }
.adesivo {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0 0 12px 6px;
  font-family: var(--fofa); font-weight: 900; font-size: 18px; color: var(--tinta);
  background: var(--branco); border-radius: 999px; padding: 8px 16px; box-shadow: 0 8px 20px var(--sombra);
  transform: rotate(-1.5deg);
}
.adesivo span { font-weight: 800; font-size: 13px; color: var(--suave); }
.chat-janela {
  background: #FFFDF6; border-radius: 28px; overflow: hidden;
  box-shadow: 0 22px 50px var(--sombra), 0 2px 0 rgba(255, 255, 255, .9) inset;
}
.chat-topo {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--branco); border-bottom: 1px solid var(--linha);
}
.avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--bolha); object-fit: contain; padding: 2px; flex: none; }
.quem { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.quem strong { font-family: var(--fofa); font-weight: 900; font-size: 15.5px; }
.quem > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--suave); }
.online { width: 8px; height: 8px; border-radius: 99px; background: #25D366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .2); }
.step-count {
  flex: none; font-family: var(--fofa); font-weight: 800; font-size: 12px; color: var(--destaque);
  background: var(--bolha); border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.progress { height: 5px; background: #F4EDD3; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brilho), #E9A21C); border-radius: 0 99px 99px 0; transition: width .4s ease; }

.chat-corpo {
  padding: 18px 16px 18px;
  background-color: #FFF9E6;
  background-image: radial-gradient(circle, rgba(122, 88, 5, .07) 1.2px, transparent 1.5px);
  background-size: 22px 22px;
}
.msg {
  display: block; width: fit-content; max-width: 88%; margin: 0 0 10px; padding: 10px 14px; border-radius: 18px;
  font-family: var(--fofa); font-weight: 800; font-size: 15px; line-height: 1.38;
  box-shadow: 0 4px 12px rgba(122, 88, 5, .1); overflow-wrap: anywhere;
}
.msg.norte { background: var(--branco); color: var(--tinta); border-bottom-left-radius: 6px; }
.msg.voce {
  margin-left: auto; background: var(--whats); color: var(--whats-tinta); border-bottom-right-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 14.5px;
}
.msg.voce .tique { margin-left: 6px; color: var(--tique); font-size: 12px; letter-spacing: -2px; white-space: nowrap; }
.boas-vindas { font-weight: 700; }
.chat-log .par { animation: chega .3s ease; }

.step { display: none; }
.step.active { display: block; animation: chega .3s ease; }
.step label.q { cursor: default; }
#leadForm { display: flex; flex-direction: column; }
#leadForm .digitando { order: -1; align-self: flex-start; }
.step.esperando label.q { display: none; }
@keyframes chega { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Respostas rápidas (Sim/Não) */
.choices { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.choice {
  cursor: pointer; border: 2px solid var(--tinta); background: var(--branco); color: var(--tinta);
  font-family: var(--fofa); font-weight: 900; font-size: 16px; border-radius: 999px; padding: 11px 22px; min-height: 48px;
  box-shadow: 0 4px 0 var(--tinta); transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.choice:hover { background: var(--bg); transform: translateY(-2px); box-shadow: 0 6px 0 var(--tinta); }
.choice:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); }

/* Campo, no jeito da caixa de mensagem do WhatsApp */
.field {
  width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: var(--tinta);
  background: var(--branco); border: 2px solid transparent; border-radius: 999px; padding: 14px 20px; outline: none;
  box-shadow: 0 6px 16px rgba(122, 88, 5, .12); transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder { color: rgba(43, 36, 16, .45); }
.field:focus { border-color: var(--brilho); box-shadow: 0 0 0 4px rgba(245, 184, 61, .28); }
.field.invalid { border-color: var(--erro); box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.error { min-height: 20px; margin: 8px 6px 0; color: var(--erro); font-size: 13.5px; font-weight: 600; }

/* "digitando..." */
.digitando { display: inline-flex; width: fit-content; gap: 4px; padding: 12px 14px; margin-bottom: 10px; background: var(--branco); border-radius: 18px; border-bottom-left-radius: 6px; box-shadow: 0 4px 12px rgba(122, 88, 5, .1); }
.digitando[hidden] { display: none; }
.digitando span { width: 7px; height: 7px; border-radius: 99px; background: rgba(43, 36, 16, .45); animation: pula 1s ease-in-out infinite; }
.digitando span:nth-child(2) { animation-delay: .15s; }
.digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Botões */
.nav { display: flex; gap: 10px; margin-top: 6px; }
.nav[hidden] { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; cursor: pointer;
  border-radius: 999px; padding: 12px 22px; font-family: var(--fofa); font-weight: 900; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-dark { flex: 1; border: 0; background: var(--tinta); color: var(--bg); box-shadow: 0 10px 22px var(--sombra); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 26px var(--sombra); }
.btn-dark:active { transform: scale(.98); }
.btn-ghost { flex: none; width: 50px; padding: 0; border: 2px solid var(--linha); background: var(--branco); color: var(--tinta); }
.btn-ghost:hover { background: var(--bolha); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
button:focus-visible, a:focus-visible, .field:focus-visible { outline: 3px solid var(--destaque); outline-offset: 3px; }
.privacy { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--suave); }

/* Quem respondeu "Não" */
.blocked { display: none; animation: chega .3s ease; }
.blocked.show { display: block; }
.blocked h3 { margin: 6px 4px 0; font-family: var(--fofa); font-weight: 900; font-size: 19px; line-height: 1.2; }
.blocked p:not(.msg) { margin: 8px 4px 0; color: var(--suave); font-size: 14.5px; }
.chat.is-blocked .step-count, .chat.is-blocked .progress, .chat.is-blocked #leadForm,
.chat.is-blocked .chat-log, .chat.is-blocked .privacy { display: none; }

footer { position: relative; z-index: 1; text-align: center; padding: 20px 16px 26px; font-family: var(--fofa); font-weight: 800; font-size: 13px; color: var(--suave); }

/* ── Página de obrigado (/obg) ─────────────────────────────────────── */
.obg-palco { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 96px 16px 48px; }
.obg-card { position: relative; background: #FFFDF6; border-radius: 28px; padding: 28px 28px 24px; text-align: center; box-shadow: 0 22px 50px var(--sombra); }
.obg-mascote { width: 150px; height: 150px; margin: -104px auto 6px; object-fit: contain; transform-origin: 50% 90%; animation: balanca 5s ease-in-out infinite; }
.check { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fofa); font-weight: 800; font-size: 13px; color: #17663D; background: #E2F8EB; border-radius: 999px; padding: 5px 13px; }
.obg-card h1 { margin-top: 12px; font-family: var(--fofa); font-weight: 900; font-size: clamp(28px, 5vw, 38px); line-height: 1.08; }
.lead { margin: 12px auto 0; max-width: 480px; color: var(--suave); font-size: 16px; }
.obg-card .btn-dark { margin-top: 20px; width: 100%; max-width: 360px; text-decoration: none; }
.obg-card .btn-dark svg { width: 20px; height: 20px; }
.tip { margin-top: 12px; color: var(--suave); font-size: 13px; }
.tip a { color: var(--destaque); font-weight: 700; }
.passos { margin: 22px 0 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 10px; counter-reset: passo; }
.passos li {
  counter-increment: passo; display: flex; gap: 12px; align-items: flex-start; background: var(--branco);
  border-radius: 18px; padding: 12px 14px; box-shadow: 0 4px 12px rgba(122, 88, 5, .08);
}
.passos li::before {
  content: counter(passo); flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  font-family: var(--fofa); font-weight: 900; font-size: 14px; background: var(--bg); color: var(--tinta);
}
.passos strong { display: block; font-family: var(--fofa); font-weight: 900; font-size: 15px; }
.passos span { display: block; color: var(--suave); font-size: 13.5px; margin-top: 2px; }
.passos-titulo { margin-top: 24px; font-family: var(--fofa); font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--destaque); }

/* ── Celular ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .palco { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 16px 40px; max-width: 560px; }
  .intro { padding-top: 4px; text-align: left; }
  .mascote { display: none; }
}
@media (max-width: 520px) {
  .topo { padding: 12px 16px 0; }
  .marca img { height: 42px; }
  .selo { font-size: 12px; padding: 5px 11px; }
  .intro p { font-size: 15.5px; }
  .adesivo { font-size: 16px; margin-left: 2px; }
  .adesivo span { display: none; }
  .quem strong { font-size: 14.5px; }
  .chat-corpo { padding: 16px 12px; }
  .msg { max-width: 92%; font-size: 14.5px; }
  .choice { flex: 1; padding: 10px 12px; font-size: 15px; white-space: nowrap; }
  .obg-card { padding: 24px 18px 20px; }
}
@media (max-width: 380px) { .selo { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .step.esperando label.q { display: block; }
}
