/* ===== Camada de melhorias: visual + animações ===== */
html{scroll-padding-top:84px}
::selection{background:var(--orange);color:#fff}
:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;border-radius:6px}

/* Barra de progresso de rolagem */
.progress{position:fixed;left:0;top:0;height:4px;width:100%;z-index:60;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--yellow),var(--orange),var(--blue2));pointer-events:none}

/* Header fixo com vidro fosco */
.header{position:sticky;top:0;transition:height .3s,background .3s,box-shadow .3s,backdrop-filter .3s}
.header.is-stuck{height:66px;background:#ffffffd9;backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);box-shadow:0 10px 30px #10254b14}
.nav a{position:relative}
.nav a:after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--orange);transform:scaleX(0);transform-origin:0 50%;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.nav a:hover:after{transform:scaleX(1)}

/* Botões: brilho que varre + seta que avança */
.button{position:relative;overflow:hidden;isolation:isolate}
.button:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,transparent 30%,#ffffff55 50%,transparent 70%);transform:translateX(-120%)}
.button:hover:before{transform:translateX(120%);transition:transform .8s ease}
.button span{transition:transform .3s}
.button:hover span{transform:translateX(4px)}
.button-orange{animation:btnGlow 3.2s ease-in-out infinite}
@keyframes btnGlow{0%,100%{box-shadow:0 7px 18px #f15a2430}50%{box-shadow:0 7px 34px #f15a2470}}

/* HERO: fundo vivo */
.hero{background:radial-gradient(60% 70% at 85% 20%,#ffe9c7 0,transparent 60%),radial-gradient(50% 60% at 5% 90%,#ffe0d2 0,transparent 60%),var(--cream)}
.js .hero h1:not(.split){visibility:hidden}
.hero h1 .w{display:inline-block;overflow:hidden;vertical-align:top;padding:0 .05em .1em;margin:0 -.05em -.1em}
.hero h1 .w>span{display:inline-block;transform:translateY(112%) rotate(4deg);animation:wordUp .95s cubic-bezier(.2,.85,.2,1) forwards;animation-delay:calc(.15s + var(--i)*.09s)}
@keyframes wordUp{to{transform:none}}

/* Retrato: cortina que sobe + sombra amarela que desliza */
.hero-visual.visible .portrait-frame{animation:curtain 1.3s cubic-bezier(.2,.8,.2,1) .2s both}
@keyframes curtain{from{clip-path:inset(100% -40px -40px -40px);box-shadow:0 0 0 #ffb81c}55%{box-shadow:0 0 0 #ffb81c}to{clip-path:inset(-40px);box-shadow:20px 22px 0 #ffb81c}}
.hero-visual .portrait-frame img{animation:portraitZoom 2.2s cubic-bezier(.2,.8,.2,1) both}
@keyframes portraitZoom{from{transform:scale(1.25)}to{transform:scale(1)}}
.hero-visual.visible .floating-note{animation:notePop .8s cubic-bezier(.3,1.6,.5,1) both,float 5s ease-in-out 1.6s infinite}
.hero-visual.visible .note-top{animation-delay:1s,1.8s}
.hero-visual.visible .note-bottom{animation-delay:1.25s,1.6s}
@keyframes notePop{from{opacity:0;scale:.4}to{opacity:1;scale:1}}
.portrait-frame{translate:calc(var(--mx,0)*-12px) calc(var(--my,0)*-8px);transition:translate .25s ease-out}
.floating-note{translate:calc(var(--mx,0)*16px) calc(var(--my,0)*12px)}
.hero-proof .proof-icon{animation:okPulse 2.6s ease-out infinite}
@keyframes okPulse{0%{box-shadow:0 0 0 0 #278c4e55}70%,100%{box-shadow:0 0 0 12px #278c4e00}}

/* Faixa de confiança */
.trust-strip{background:linear-gradient(110deg,var(--blue) 0 38%,#0d55d0 50%,var(--blue) 62% 100%);background-size:260% 100%;animation:shimmer 10s linear infinite}
@keyframes shimmer{to{background-position:-260% 0}}
.js .trust-item{opacity:0;transform:translateY(22px) scale(.92)}
.js .trust-strip.in .trust-item{animation:trustIn .7s cubic-bezier(.3,1.4,.5,1) forwards;animation-delay:calc(var(--k)*.15s)}
@keyframes trustIn{to{opacity:1;transform:none}}
.trust-icon{display:inline-block;transition:transform .5s}
.trust-item:hover .trust-icon{transform:rotate(360deg) scale(1.15)}

/* Faixa em movimento (marquee) */
.marquee{overflow:hidden;background:var(--yellow);color:var(--blue);padding:13px 0;border-block:1px solid #e9a300}
.marquee-track{display:flex;width:max-content;animation:marquee 32s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee span{font-family:Manrope,sans-serif;font-weight:800;font-size:14px;letter-spacing:-.01em;white-space:nowrap;padding:0 22px}
.marquee i{font-style:normal;color:var(--orange)}
@keyframes marquee{to{transform:translateX(-50%)}}

/* Títulos: revelados com cortina lateral */
.js .wipe{clip-path:inset(-12% 100% -12% 0)}
.js .wipe.in{clip-path:inset(-12% -3% -12% 0);transition:clip-path 1.1s cubic-bezier(.7,0,.2,1)}

/* Cards de planos: giram para cima, inclinam com o mouse e têm brilho */
.plan-grid{perspective:1100px}
.plan-card.reveal{transform:rotateX(22deg) translateY(46px);transform-origin:50% 100%}
.plan-card.reveal.visible{transform:none}
.plan-card:nth-child(2){transition-delay:.1s}.plan-card:nth-child(3){transition-delay:.2s}.plan-card:nth-child(4){transition-delay:.3s}
.plan-card.tilt-ready{transition:transform .18s ease-out,box-shadow .35s;will-change:transform}
.plan-card.tilt-ready.leaving{transition:transform .6s cubic-bezier(.2,.8,.2,1),box-shadow .35s}
.plan-card:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at var(--gx,50%) var(--gy,0%),#ffffff59,transparent 46%);opacity:0;transition:opacity .35s}
.plan-card:hover:after{opacity:1}
.plan-card>a b{transition:transform .3s}
.plan-card:hover>a b{transform:translate(4px,-4px)}

/* Cada ilustração de plano tem seu próprio movimento */
.art-kid .art-orbit{animation:orbitTurn 14s linear infinite}
@keyframes orbitTurn{to{rotate:360deg}}
.art-kid .art-heart,.art-person .art-heart,.art-family .art-heart{animation:heartbeat 1.6s ease-in-out infinite}
@keyframes heartbeat{0%,100%{transform:scale(1)}14%{transform:scale(1.28)}28%{transform:scale(1)}42%{transform:scale(1.18)}}
.art-person .person-circle{animation:bob 3.4s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-9px)}}
.art-person .art-spark{animation:twinkle 2.2s ease-in-out infinite}
@keyframes twinkle{0%,100%{transform:scale(.7) rotate(0);opacity:.6}50%{transform:scale(1.25) rotate(90deg);opacity:1}}
.art-family .family-dot{animation:hop 2.4s ease-in-out infinite}
.art-family .dot-b{animation-delay:.25s}.art-family .dot-c{animation-delay:.5s}
@keyframes hop{0%,55%,100%{transform:translateY(0)}25%{transform:translateY(-14px)}}
.art-family .family-smile{animation:smile 2.4s ease-in-out infinite}
@keyframes smile{50%{transform:scale(1.35)}}
.art-business .building i{animation:lights 3s ease-in-out infinite}
.art-business .building i:nth-child(2){animation-delay:.4s}.art-business .building i:nth-child(3){animation-delay:.8s}
.art-business .building i:nth-child(4){animation-delay:1.2s}.art-business .building i:nth-child(5){animation-delay:1.6s}.art-business .building i:nth-child(6){animation-delay:2s}
@keyframes lights{0%,100%{opacity:.25}40%,70%{opacity:1;box-shadow:0 0 12px #f15a24aa}}

/* Galeria: zoom suave (Ken Burns) e legenda que sobe */
.gallery-slide.is-active img{animation:kenburns 7s ease-out both}
@keyframes kenburns{from{transform:scale(1.14) translate(1.5%,1%)}to{transform:scale(1) translate(0)}}
.gallery-slide.is-active figcaption b{display:inline-block;animation:capUp .8s cubic-bezier(.2,.8,.2,1) .25s both}
.gallery-slide.is-active figcaption span{display:inline-block;animation:capUp .7s cubic-bezier(.2,.8,.2,1) .1s both}
@keyframes capUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.gallery-arrow{transition:transform .25s,background .25s,color .25s}
.gallery-arrow:hover{transform:scale(1.12)}

/* Citação: aparece saindo do desfoque */
.quote-content.reveal{filter:blur(12px);transform:translateY(14px) scale(.98)}
.quote-content.reveal.visible{filter:blur(0);transform:none;transition:filter 1.2s ease,opacity .9s,transform 1.2s cubic-bezier(.2,.8,.2,1)}
.quote-decoration{animation:quoteFloat 6s ease-in-out infinite}
@keyframes quoteFloat{50%{transform:translateY(-10px) rotate(-6deg)}}

/* Chamada final: aurora em movimento */
.cta-pattern{position:absolute;inset:-25%;pointer-events:none;background:radial-gradient(35% 35% at 20% 30%,#0d55d0 0,transparent 70%),radial-gradient(30% 30% at 80% 70%,#f15a2455 0,transparent 70%),radial-gradient(28% 28% at 60% 15%,#ffb81c33 0,transparent 70%);animation:aurora 16s ease-in-out infinite alternate}
@keyframes aurora{0%{transform:translate(-4%,-3%) rotate(0) scale(1)}100%{transform:translate(5%,4%) rotate(12deg) scale(1.15)}}
.final-cta .button-white{animation:ctaBeat 2.6s ease-in-out infinite}
@keyframes ctaBeat{0%,100%{box-shadow:0 0 0 0 #ffffff55}60%{box-shadow:0 0 0 16px #ffffff00}}

/* WhatsApp flutuante: ondas */
.floating-whatsapp:before,.floating-whatsapp:after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #20bd66;opacity:0;animation:ripple 2.6s ease-out infinite}
.floating-whatsapp:after{animation-delay:1.3s}
@keyframes ripple{0%{transform:scale(1);opacity:.8}100%{transform:scale(1.9);opacity:0}}

/* Rodapé */
.footer>a:last-child{transition:transform .3s}
.footer>a:last-child:hover{transform:translateY(-3px)}

/* Acessibilidade: sem movimento */
@media(prefers-reduced-motion:reduce){
  .js .hero h1:not(.split){visibility:visible}
  .hero h1 .w>span,.js .trust-item{transform:none;opacity:1}
  .js .wipe{clip-path:none}
  .plan-card.reveal,.quote-content.reveal{transform:none;filter:none}
  .marquee-track{animation:none}
  .progress{display:none}
}
@media(max-width:720px){.header.is-stuck{height:60px}.marquee span{font-size:12px}.plan-card.reveal{transform:translateY(30px)}}

/* ===== Ilustrações em imagem (cards Infantil e Individual) ===== */
.plan-art{height:190px;margin:4px 0 12px}
.plan-card{min-height:440px}
.art-photo{overflow:visible}
.art-photo img{height:100%;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 14px 16px #10254b33);transition:rotate .5s cubic-bezier(.2,.8,.2,1)}
.plan-card:hover .art-photo img{rotate:-2.5deg}
.art-photo .art-spark{top:2px;right:6%;font-size:34px}
.art-photo .art-heart{top:34px;right:0;bottom:auto;font-size:24px}
.plan-blue .art-photo .art-spark{color:var(--yellow)}
.plan-card.visible .art-photo img{animation:photoIn 1s cubic-bezier(.3,1.35,.5,1) .3s both,photoFloat 6s ease-in-out 1.4s infinite}
@keyframes photoIn{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
@keyframes photoFloat{50%{transform:translateY(-8px)}}
.art-person.art-photo img{animation-delay:.45s,1.6s}
@media(max-width:720px){.plan-art{height:170px}.plan-card{min-height:400px}}
@media(prefers-reduced-motion:reduce){.plan-card.visible .art-photo img{animation:none}}
.art-photo img{height:190px;max-height:190px}
@media(max-width:720px){.art-photo img{height:170px;max-height:170px}}
.plan-yellow .art-photo .art-spark{color:var(--orange)}
.art-family.art-photo img{animation-delay:.6s,1.8s}.art-business.art-photo img{animation-delay:.75s,2s}
