/* motion.css · camada de movimento sobre o site oficial.
   Só liga com html.js (roda também com reduzir movimento do sistema, decisão do dono). O movimento contínuo só roda
   em item visível (classe .live, posta pelo motion.js). Nada aqui muda conteúdo ou layout. */

/* ===== destaque Conecta (projeto no ar) ===== */
.case-feature{position:relative;margin:0 0 clamp(36px,5vw,64px);padding:clamp(22px,3vw,40px);border:1px solid rgba(221,222,214,.18);border-radius:12px;background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,.015))}
.case-stage{display:grid;touch-action:pan-y}
.case-slide{grid-area:1/1;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:clamp(28px,4vw,64px);align-items:center;visibility:hidden;opacity:0;transform:translateY(12px);transition:opacity .6s ease,transform .6s ease,visibility 0s .6s}
.case-slide.is-on{visibility:visible;opacity:1;transform:none;transition:opacity .6s ease,transform .6s ease,visibility 0s}
.case-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:clamp(20px,3vw,32px)}
.case-dots{display:flex;align-items:center}
.case-dot{width:44px;height:44px;display:grid;place-items:center;background:none;border:0;cursor:pointer}
.case-dot span{position:relative;display:block;width:34px;height:4px;border-radius:2px;background:rgba(247,247,242,.25);overflow:hidden}
.case-dot span::after{content:"";position:absolute;inset:0;background:var(--gelo);transform-origin:left;transform:scaleX(0)}
.case-dot.is-on span::after{transform:scaleX(1)}
.case-dot:focus-visible,.case-pausa:focus-visible{outline:2px solid var(--gelo);outline-offset:2px;border-radius:4px}
.case-pausa{margin-left:auto;min-height:44px;padding:0 16px;border:1px solid rgba(247,247,242,.25);border-radius:99px;color:var(--nevoa);font-size:14px;cursor:pointer;background:none}
.case-pausa:hover{border-color:rgba(247,247,242,.5)}
.case-copy h3{font-size:clamp(34px,4vw,56px);line-height:1.02;letter-spacing:-.03em;margin:14px 0 14px;font-weight:400;color:var(--branco)}
.case-copy>p{color:rgba(247,247,242,.8);max-width:46ch;line-height:1.55}
.case-tags{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 22px;padding:0;list-style:none}
.case-tags li{padding:6px 12px;border:1px solid rgba(247,247,242,.25);border-radius:99px;font-size:13px;color:var(--nevoa)}
.case-acoes{display:flex;gap:22px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.case-nota{color:rgba(247,247,242,.55)!important;font-size:13px}
.case-devices{position:relative;padding:0 14% 28px 0}
.case-desk{aspect-ratio:1.55;display:flex;flex-direction:column;background:#fff;border-radius:9px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.4)}
.case-chrome{flex:none;display:flex;align-items:center;gap:6px;height:26px;padding:0 12px;background:#e9edee;color:#5e5e5a;font-size:11px}
.case-chrome i{width:8px;height:8px;border-radius:50%;background:#c3c9ca}
.case-chrome span{margin-left:10px;padding:2px 12px;border-radius:99px;background:#fff}
.case-win{position:relative;flex:1;min-height:0;overflow:hidden;background:#eaf3f6}
.case-win img{position:absolute;left:0;top:0;width:100%;height:auto;display:block;will-change:transform}
.case-phone{position:absolute;right:0;bottom:0;width:26%;aspect-ratio:9/19;border:5px solid #12110f;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 24px 50px rgba(0,0,0,.45)}
.case-phone .case-win{position:absolute;inset:0}
@media(max-width:900px){.case-slide{grid-template-columns:1fr}.case-devices{padding-right:12%}}
@media(max-width:600px){.case-feature{padding:18px}.case-acoes .btn{width:100%;text-align:center}.case-phone{width:30%;border-width:4px;border-radius:18px}.case-nav{gap:8px}.case-nav .redondo{width:44px;height:44px}.case-dot{width:30px}.case-dot span{width:22px}.case-pausa{margin-left:0}}

/* bloco de números: dois grupos, o de mídia lido como uma história (investido → receita → retorno) */
.num-grupos{display:grid;grid-template-columns:1fr;gap:44px}
.num-gr-t{margin:0 0 18px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--traco)}
.num-gr-l{display:grid;grid-template-columns:1fr;gap:28px}
.num-grupos .num,.num-grupos .num.principal{grid-column:auto;order:0;padding-left:16px}
.num-grupos .num b{font-size:clamp(30px,8.6vw,40px)}
.num-grupos .num.principal b{font-size:clamp(46px,13vw,64px);color:var(--gelo)}
.num-grupos .num span{max-width:26ch}
.num-midia .num-gr-l{position:relative}
@media(min-width:900px){
  .num-grupos{grid-template-columns:.9fr 1.35fr;gap:clamp(40px,5vw,88px)}
  .num-gr-l{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .num-grupos .num b{font-size:clamp(26px,2.4vw,36px);min-height:clamp(48px,4.6vw,66px)}
  .num-grupos .num.principal b{font-size:clamp(44px,4.4vw,64px)}
  .num-midia{position:relative;padding-left:clamp(24px,3vw,48px);border-left:1px solid var(--fio-esc)}
  .num-midia .num+.num::before{content:"→";position:absolute;margin:2px 0 0 -30px;color:var(--teal);font-size:18px;opacity:.9}
}

@media all{
@keyframes m-scroll{0%,8%{transform:translateY(0)}92%,100%{transform:translateY(-80%)}}
@keyframes m-scroll-m{0%,8%{transform:translateY(0)}92%,100%{transform:translateY(-74%)}}
@keyframes m-grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes m-fill{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes m-wave{0%,100%{scale:1 1}50%{scale:1 .86}}
@keyframes m-ping{0%{box-shadow:0 0 0 0 rgba(66,156,159,.7)}100%{box-shadow:0 0 0 22px rgba(66,156,159,0)}}
@keyframes m-pop{0%{transform:scale(.94)}60%{transform:scale(1.03)}100%{transform:scale(1)}}
@keyframes m-hub{0%,100%{box-shadow:0 0 0 8px rgba(66,156,159,.14),0 0 0 9px var(--teal)}50%{box-shadow:0 0 0 16px rgba(66,156,159,.05),0 0 0 17px rgba(66,156,159,.55)}}
@keyframes m-spark{from{stroke-dashoffset:7}to{stroke-dashoffset:-93}}
@keyframes m-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes m-glow{0%,100%{opacity:.5}50%{opacity:1}}

/* Conecta: capturas rolando em loop */
.js .case-feature.live .case-slide.is-on .case-desk img{animation:m-scroll 34s ease-in-out infinite alternate}
.js .case-feature.is-playing .case-dot.is-on span::after{animation:m-fill-bar var(--dur,7s) linear both}
.js .case-feature:not(.is-playing) .case-dot.is-on span::after{animation:none}
@keyframes m-fill-bar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.js .case-feature.live .case-slide.is-on .case-phone img{animation:m-scroll-m 30s ease-in-out infinite alternate}

/* herói: o painel se monta e passa a respirar */
.js .heroi.m-on .p-barras i{transform-origin:50% 100%;animation:m-grow .9s var(--ease) both}
.js .heroi.m-on .p-barras i:nth-child(1){animation-delay:.15s}.js .heroi.m-on .p-barras i:nth-child(2){animation-delay:.2s}
.js .heroi.m-on .p-barras i:nth-child(3){animation-delay:.25s}.js .heroi.m-on .p-barras i:nth-child(4){animation-delay:.3s}
.js .heroi.m-on .p-barras i:nth-child(5){animation-delay:.35s}.js .heroi.m-on .p-barras i:nth-child(6){animation-delay:.4s}
.js .heroi.m-on .p-barras i:nth-child(7){animation-delay:.45s}.js .heroi.m-on .p-barras i:nth-child(8){animation-delay:.5s}
.js .heroi.m-on .p-barras i:nth-child(9){animation-delay:.55s}.js .heroi.m-on .p-barras i:nth-child(10){animation-delay:.6s}
.js .heroi.m-on .p-barras i:nth-child(11){animation-delay:.65s}.js .heroi.m-on .p-barras i:nth-child(12){animation-delay:.7s}
.js .heroi.m-on .p-stat b{animation:m-fill 1.1s var(--ease) .3s both}
.js .heroi.m-on .p-stat:nth-child(2) b{animation-delay:.45s}.js .heroi.m-on .p-stat:nth-child(3) b{animation-delay:.6s}
.js .heroi.m-on.m-idle.live .p-barras i{animation:m-wave 3.6s ease-in-out infinite}
.js .heroi.m-on.m-idle.live .p-barras i:nth-child(2n){animation-delay:-.7s}.js .heroi.m-on.m-idle.live .p-barras i:nth-child(3n){animation-delay:-1.4s}
.js .heroi.m-on.m-idle.live .p-barras i:nth-child(5n){animation-delay:-2.2s}
.js .heroi-visual .painel,.js .heroi-visual .agente{translate:var(--tx,0) var(--ty,0);transition:translate .35s var(--ease)}
.js .heroi-visual .agente{--tx:calc(var(--px,0)*-14px);--ty:calc(var(--py,0)*-10px)}
.js .heroi-visual .painel{--tx:calc(var(--px,0)*8px);--ty:calc(var(--py,0)*6px)}
.js .heroi.live .heroi-simbolo{animation:m-glow 7s ease-in-out infinite}

/* mapa da operação: pulso ao conectar, hub respirando, sinal correndo no fio */
.opv-no.m-ping{animation:m-ping .9s ease-out}
.opv-tiles li.m-pop{animation:m-pop .55s var(--ease)}
.js .opv.completa.live .opv-hub{animation:m-hub 2.8s ease-in-out infinite}
.opv-fios .m-spark{fill:none;stroke:#e9fbfb;stroke-width:2.4;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:7 93;stroke-dashoffset:7;opacity:0;transition:opacity .4s;pointer-events:none}
.opv[data-v~="vendas"] .m-spark[data-fio="vendas"],.opv[data-v~="equipe"] .m-spark[data-fio="equipe"],.opv[data-v~="processos"] .m-spark[data-fio="processos"],.opv[data-v~="caixa"] .m-spark[data-fio="caixa"]{opacity:1}
.js .opv.live .m-spark{animation:m-spark 2.1s linear infinite}
.js .opv.live .m-spark[data-fio="equipe"]{animation-delay:-.5s}.js .opv.live .m-spark[data-fio="processos"]{animation-delay:-1s}.js .opv.live .m-spark[data-fio="caixa"]{animation-delay:-1.5s}

/* cartões: brilho que segue o ponteiro e inclinação curta */
@media(hover:hover) and (pointer:fine){
  .js .cartao.m-tilt,.js .site-c.m-tilt{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));will-change:transform}
  .js .cartao.m-tilt::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;opacity:0;transition:opacity .35s;background:radial-gradient(380px circle at var(--mx,50%) var(--my,0%),rgba(66,156,159,.16),transparent 62%)}
  .js .cartao.m-tilt:hover::before{opacity:1}
  .js .site-c.m-tilt::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .35s;background:radial-gradient(340px circle at var(--mx,50%) var(--my,0%),rgba(213,233,234,.13),transparent 62%)}
  .js .site-c.m-tilt:hover::after{opacity:1}
  .js .site-c{position:relative}
  .js .cartao.m-tilt:hover,.js .site-c.m-tilt:hover{transition:border-color .3s,box-shadow .4s var(--ease),transform .12s linear}
}
/* aba nova: cartões entram em sequência */
.js .painel-aba.m-troca .site-c,.js .painel-aba.m-troca .m-it{animation:m-rise .55s var(--ease) both;animation-delay:calc(var(--k,0)*60ms)}
/* botões magnéticos */
.js .btn.m-mag{translate:var(--bx,0) var(--by,0);transition:translate .25s var(--ease),background .25s,color .25s,border-color .25s}

/* demos de CRM, automações e mídia: entram em cena ao abrir a aba */
@keyframes m-node{from{opacity:0;scale:.85}to{opacity:1;scale:1}}
@keyframes m-dot{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes m-nudge{0%,62%,100%{translate:0 0}72%{translate:-9px 0}84%{translate:9px 0}92%{translate:-4px 0}}
@keyframes m-badge{0%,100%{scale:1}50%{scale:1.18}}
.js .painel-m.m-ent .pm-kpis>div{animation:m-rise .5s var(--ease) both}
.js .painel-m.m-ent .pm-kpis>div:nth-child(2){animation-delay:.08s}.js .painel-m.m-ent .pm-kpis>div:nth-child(3){animation-delay:.16s}.js .painel-m.m-ent .pm-kpis>div:nth-child(4){animation-delay:.24s}
.js .painel-m.m-ent .pm-svgw svg{animation:m-fill 1.2s var(--ease) .15s both}
.js .painel-m.m-ent .pm-funil i{animation:m-fill .9s var(--ease) both}
.js .painel-m.m-ent .pm-funil li:nth-child(1) i{animation-delay:.2s}.js .painel-m.m-ent .pm-funil li:nth-child(2) i{animation-delay:.3s}
.js .painel-m.m-ent .pm-funil li:nth-child(3) i{animation-delay:.4s}.js .painel-m.m-ent .pm-funil li:nth-child(4) i{animation-delay:.5s}
.js .painel-m.m-ent .pm-utm tbody tr{animation:m-rise .45s var(--ease) both}
.js .painel-m.m-ent .pm-utm tbody tr:nth-child(2){animation-delay:.07s}.js .painel-m.m-ent .pm-utm tbody tr:nth-child(3){animation-delay:.14s}.js .painel-m.m-ent .pm-utm tbody tr:nth-child(4){animation-delay:.21s}
.js .painel-m.m-ent .pm-rec-bar i{animation:m-fill 1s var(--ease) .3s both}
.js .fluxo.m-ent .nn{animation:m-node .5s var(--ease) both}
.js .fluxo.m-ent .nn-ia{animation-delay:.1s}.js .fluxo.m-ent .nn-if{animation-delay:.2s}.js .fluxo.m-ent .nn-resp{animation-delay:.3s}
.js .fluxo.m-ent .nn-humano{animation-delay:.38s}.js .fluxo.m-ent .nn-crm{animation-delay:.46s}.js .fluxo.m-ent .nn-vigia{animation-delay:.54s}
.js .fluxo.m-ent .fl-fios{animation:m-glow 1.2s ease-out .2s both}
.js .fluxo .fl-nome i{animation:m-dot 2.2s ease-in-out infinite}
.js .crm.m-ent .kb-col,.js .m-ent .kb-col{animation:m-rise .5s var(--ease) both}
.js .m-ent .kb-col:nth-child(2){animation-delay:.07s}.js .m-ent .kb-col:nth-child(3){animation-delay:.14s}.js .m-ent .kb-col:nth-child(4){animation-delay:.21s}.js .m-ent .kb-col:nth-child(5){animation-delay:.28s}
.js .crm-c-h em{animation:m-badge 2.6s ease-in-out infinite}

/* Antes e depois: a alavanca convida ao arrasto até alguém usar */
@media(min-width:768px){
.js .ad.live .ad-alavanca:not(.m-tocou){animation:m-nudge 5s ease-in-out infinite}
}

@keyframes m-seta{0%,100%{translate:0 0;opacity:.5}50%{translate:5px 0;opacity:1}}
@keyframes m-pico{0%{box-shadow:0 0 0 0 rgba(66,156,159,.0)}40%{box-shadow:0 0 0 0 rgba(66,156,159,.0)}60%{text-shadow:0 0 28px rgba(213,233,234,.55)}100%{text-shadow:0 0 0 rgba(213,233,234,0)}}
.js #numeros.m-in .num-gr-t{animation:m-rise .6s var(--ease) both}
.js #numeros.m-in .num{animation:m-rise .65s var(--ease) both}
.js #numeros.m-in .num-gr:first-child .num:nth-child(1){animation-delay:.05s}.js #numeros.m-in .num-gr:first-child .num:nth-child(2){animation-delay:.2s}.js #numeros.m-in .num-gr:first-child .num:nth-child(3){animation-delay:.35s}
.js #numeros.m-in .num-midia .num:nth-child(1){animation-delay:.3s}.js #numeros.m-in .num-midia .num:nth-child(2){animation-delay:.75s}.js #numeros.m-in .num-midia .num:nth-child(3){animation-delay:1.25s}
.js #numeros.m-in .num-midia .num.principal b{animation:m-pico 1.8s ease-out 1.8s both}
.js #numeros.m-in .num-midia .num-gr-l::after{content:"";position:absolute;left:0;right:0;top:-12px;height:2px;background:linear-gradient(90deg,var(--teal),rgba(213,233,234,.9));transform-origin:0 50%;animation:m-barra 2.2s var(--ease) .3s both}
@keyframes m-barra{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(min-width:900px){.js #numeros.m-in .num-midia .num+.num::before{animation:m-seta 2.4s ease-in-out 2s infinite}}
}
