/* PROTÓTIPO v3 — interações de impacto (só carrega na pasta de proposta; nada disso está no site no ar) */

/* ── 0. Correção: o chip do WhatsApp não fica mais sobre o aviso do balcão ── */
.demo { min-height: 520px; }
.chip-zap { left: 0; bottom: 0; top: auto; }
.entrada .chip-zap { animation: surge .5s ease backwards 2.1s; }
@media (max-width: 600px) { .demo { min-height: 0; } }

/* ── 1. Demo que se conta sozinha: celular vibra, cursor fantasma aprova ── */
@keyframes vibra { 0%,100% { translate: 0 0; rotate: 0deg; } 15% { translate: -3px 0; rotate: -1.2deg; } 30% { translate: 3px 0; rotate: 1.2deg; } 45% { translate: -3px 0; rotate: -1deg; } 60% { translate: 2px 0; rotate: .8deg; } 80% { translate: -1px 0; } }
.entrada .fone { animation: vibra .6s ease 2.15s 1; }
.fantasma { position: absolute; left: 0; top: 0; z-index: 8; width: 26px; height: 26px; pointer-events: none; opacity: 0; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.fantasma svg { width: 26px; height: 26px; display: block; }
.fantasma i { position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.fantasma.clica i { animation: onda .5s ease-out; }
@keyframes onda { from { transform: scale(.3); opacity: .95; } to { transform: scale(2.6); opacity: 0; } }
.fone-btn.press { transform: scale(.95); filter: brightness(.92); }
.balcao-topo > b { white-space: nowrap; }
.contagem { margin-left: auto; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; padding-right: 52px; }
.contagem b { color: var(--white); font-weight: 600; display: inline-block; font-variant-numeric: tabular-nums; }
.contagem b.vira { animation: vira .5s cubic-bezier(.2,.9,.3,1.3); color: var(--ok); }
@keyframes vira { 0% { transform: translateY(-70%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.os-linha.mudou { box-shadow: inset 3px 0 0 var(--ok); }
@media (max-width: 760px) { .contagem { display: none; } }

/* ── 2. Luz do cursor: o circuito acende por onde o mouse passa ── */
.hero::after, .fluxo::after { content: ''; position: absolute; z-index: -1; left: 50%; width: 100vw; translate: -50% 0; pointer-events: none;
  background: var(--circuito); background-size: 220px 220px; filter: brightness(3.4) saturate(1.9); opacity: .95;
  -webkit-mask-image: radial-gradient(230px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
          mask-image: radial-gradient(230px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%); }
.hero::after { top: -120px; bottom: -60px; }
.fluxo::after { top: 0; bottom: 0; }

/* barra de leitura no topo */
.topo-fixo::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--blue), #7fd0ff); transform: scaleX(var(--ler, 0)); transform-origin: left; pointer-events: none; }

/* ── 3. A dor: o WhatsApp lota e o link resolve ── */
.conversa-topo { display: flex; align-items: center; gap: 10px; justify-self: stretch; margin: -4px 0 6px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; color: #C4CED4; }
.conversa-topo b { font-weight: 500; color: #fff; }
.nao-lidas { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #E5484D; color: #fff; font-style: normal; font-size: 12px; font-weight: 600; display: grid; place-items: center; transition: background .3s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.nao-lidas.pula { transform: scale(1.35); }
.nao-lidas.ok { background: #1FA971; }
.conversa-topo .estado { color: #8696A0; font-size: 12px; }

/* ── 4. Como funciona: cena fixa que troca a cada etapa (só em tela grande) ── */
.palco-txt { min-width: 0; }
.cena { display: none; }
.fluxo.fixo { height: 400vh; padding-top: 0; padding-bottom: 0; }
.fluxo.fixo .palco { position: sticky; top: 76px; height: calc(100vh - 92px); min-height: 520px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.fluxo.fixo .cena { display: block; }
.fluxo.fixo .trilha { grid-template-columns: 1fr; gap: 0; margin-top: 28px; padding-left: 0; }
.fluxo.fixo .trilha::before, .fluxo.fixo .trilha::after { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: var(--line); transform: none; }
.fluxo.fixo .trilha::after { background: var(--blue); transform: scaleY(var(--p, 0)); transform-origin: top; }
.fluxo.fixo .trilha li { padding: 14px 0 14px 28px; }
.fluxo.fixo .trilha li::before { display: none; }
.fluxo.fixo .trilha h3 { margin: 10px 0 0; transition: color .3s; }
.fluxo.fixo .trilha p { max-height: 0; overflow: hidden; opacity: 0; margin: 0; transition: max-height .45s ease, opacity .35s ease, margin .35s; }
.fluxo.fixo .trilha li.atual p { max-height: 120px; opacity: 1; margin-top: 8px; }
.fluxo.fixo .trilha li:not(.atual) h3 { color: var(--text-dim); }
.fluxo.fixo .trilha li .trilha-st { background: var(--navy); border-color: rgba(30,155,224,.5); color: var(--blue-txt); }
.fluxo.fixo .trilha li.on:not(.atual) .trilha-st { border-color: var(--blue); }
.fluxo.fixo .trilha li.atual .trilha-st { background: var(--blue); border-color: var(--blue); color: #fff; }

.jan { position: relative; min-height: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); overflow: hidden; }
.jan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 36px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.jan::after { content: ''; position: absolute; left: 14px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #3a4a58; box-shadow: 16px 0 #3a4a58, 32px 0 #3a4a58; }
.cena-p { position: absolute; inset: 36px 0 0; padding: 22px 24px; display: grid; align-content: start; gap: 14px; opacity: 0; translate: 0 -10px; scale: .985; transition: opacity .15s ease, translate .15s ease, scale .15s; pointer-events: none; }
.cena-p.on { opacity: 1; translate: 0 0; scale: 1; transition: opacity .4s ease .2s, translate .5s cubic-bezier(.2,.8,.2,1) .2s, scale .5s .2s; }
.jan-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; color: var(--white); }
.campo { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.campo label { color: var(--text-faint); font-size: 12.5px; }
.campo span { color: var(--white); position: relative; width: fit-content; }
.cena-p .campo, .cena-p .check li, .cena-p .jan-ok, .cena-p .linha-orc, .cena-p .zap-b, .cena-p .kpis > div, .cena-p .nota, .cena-p .barra-est { opacity: 0; translate: 0 10px; transition: opacity .4s ease, translate .45s cubic-bezier(.2,.8,.2,1); }
.cena-p.on .campo, .cena-p.on .check li, .cena-p.on .jan-ok, .cena-p.on .linha-orc, .cena-p.on .zap-b, .cena-p.on .kpis > div, .cena-p.on .nota, .cena-p.on .barra-est { opacity: 1; translate: 0 0; }
.cena-p.on > :nth-child(1) { transition-delay: .25s; } .cena-p.on > :nth-child(2) { transition-delay: .4s; } .cena-p.on > :nth-child(3) { transition-delay: .55s; } .cena-p.on > :nth-child(4) { transition-delay: .7s; }
.cena-p.on > :nth-child(5) { transition-delay: .85s; } .cena-p.on > :nth-child(6) { transition-delay: 1.05s; }
.check { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.check li { font-size: 13px; padding: 7px 12px 7px 30px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); position: relative; }
.check li::before { content: ''; position: absolute; left: 11px; top: 50%; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); rotate: -45deg; translate: 0 -70%; }
.cena-p.on .check li:nth-child(1) { transition-delay: .8s; } .cena-p.on .check li:nth-child(2) { transition-delay: .95s; } .cena-p.on .check li:nth-child(3) { transition-delay: 1.1s; }
.jan-ok { padding: 12px 14px; border-radius: 10px; background: rgba(79,180,236,.1); border: 1px solid rgba(79,180,236,.35); color: var(--blue-txt); font-size: 14px; }
.jan-ok.verde { background: rgba(22,163,74,.12); border-color: rgba(74,222,128,.38); color: var(--ok); }
.linha-orc { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14.5px; color: var(--text); }
.linha-orc b { color: var(--white); font-size: 18px; font-weight: 600; }
.zap-b { background: #005C4B; color: #E9EDEF; padding: 10px 14px; border-radius: 10px 10px 4px 10px; font-size: 13.5px; max-width: 80%; justify-self: end; margin: 0; }
.troca { position: relative; display: inline-grid; }
.troca s, .troca em { grid-area: 1 / 1; font-style: normal; text-align: right; }
.troca s { color: var(--text-faint); transition: opacity .4s .9s, translate .5s .9s; }
.troca em { opacity: 0; translate: 0 60%; transition: opacity .4s 1s, translate .5s 1s; color: var(--ok); }
.cena-p.on .troca s { opacity: 0; translate: 0 -60%; } .cena-p.on .troca em { opacity: 1; translate: 0 0; }
.barra-est { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.barra-est i { display: block; height: 100%; width: 66%; background: linear-gradient(90deg, var(--blue), #7fd0ff); border-radius: 4px; }
.nota { color: var(--text-dim); font-size: 14px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis > div { padding: 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.kpis small { display: block; color: var(--text-faint); font-size: 12px; }
.kpis b { color: var(--white); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpis > div:last-child b { color: var(--ok); }

/* ── 5. Recursos: o card acende onde o mouse está ── */
.lista-rec > div { position: relative; }
.lista-rec > div::before { content: ''; position: absolute; inset: 6px -16px; border-radius: 14px; pointer-events: none; opacity: 0; transition: opacity .25s;
  border: 1px solid rgba(30,155,224,.28); background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 50%), rgba(30,155,224,.13), rgba(30,155,224,.03) 80%); }
.lista-rec > div:hover::before { opacity: 1; }
.lista-rec dt svg { transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.lista-rec > div:hover dt svg { transform: scale(1.22) rotate(-8deg); }

/* ── 6. Planos: o recomendado ganha um feixe de luz girando ── */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.precos .plano.destaque { position: relative; isolation: isolate; }
.precos .plano.destaque::before { content: ''; position: absolute; inset: -2px; border-radius: 20px; z-index: -1; padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  background: conic-gradient(from var(--ang), transparent 0 62%, rgba(30,155,224,.9) 82%, #9be0ff 92%, transparent 100%); animation: gira 4.5s linear infinite; }
@keyframes gira { to { --ang: 360deg; } }
.precos .plano .preco { font-variant-numeric: tabular-nums; }

/* ── 7. Fechamento: botão que acompanha o mouse e respira ── */
.final .btn { animation: respira 2.8s ease-in-out infinite; will-change: translate; transition: translate .25s ease-out, background .2s; }
@keyframes respira { 0%, 100% { box-shadow: 0 0 0 0 rgba(30,155,224,.55); } 50% { box-shadow: 0 0 0 14px rgba(30,155,224,0); } }

@media (prefers-reduced-motion: reduce) {
  .entrada .fone, .precos .plano.destaque::before, .final .btn, .fantasma { animation: none !important; }
}
