/* Animações do site. Só valem quando o script adiciona .anim ao <html>; sem JavaScript
   ou com "reduzir movimento" ativado, a página fica estática e completa. */

/* barra de progresso e sombra do cabeçalho */
.anim .progresso { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--laranja); transform-origin: left; transform: scaleX(0); z-index: 200; pointer-events: none; }
.anim .site-header { transition: box-shadow .3s; }
.anim .site-header.rolou { box-shadow: 0 8px 28px rgba(15, 42, 68, .10); }

/* topo: brilho suave ao fundo */
.anim .hero { position: relative; overflow: hidden; isolation: isolate; }
.anim .hero::before, .anim .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; pointer-events: none; }
.anim .hero::before { width: 38vw; height: 38vw; right: -6vw; top: -10vw; background: rgba(226, 88, 15, .13); animation: deriva 16s ease-in-out infinite alternate; }
.anim .hero::after { width: 34vw; height: 34vw; left: -12vw; bottom: -16vw; background: rgba(15, 42, 68, .10); animation: deriva 20s ease-in-out infinite alternate-reverse; }
@keyframes deriva { to { transform: translate3d(-5vw, 3vw, 0) scale(1.12); } }

/* entrada do topo */
.anim .hero-grid > div > * { animation: entra .7s cubic-bezier(.2, .7, .2, 1) both; }
.anim .hero-grid > div > :nth-child(2) { animation-delay: .08s; }
.anim .hero-grid > div > :nth-child(3) { animation-delay: .18s; }
.anim .hero-grid > div > :nth-child(4) { animation-delay: .28s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }

/* sublinhado laranja que se desenha no título */
.anim .marca-texto { background: linear-gradient(var(--laranja), var(--laranja)) no-repeat 0 96% / 0 .12em; animation: sublinha .8s cubic-bezier(.65, 0, .25, 1) .6s forwards; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@keyframes sublinha { to { background-size: 100% .12em; } }

/* painel de exemplo: sobe, flutua e as barras crescem */
.anim .mock { animation: entra .9s cubic-bezier(.2, .7, .2, 1) .2s both, flutua 7s ease-in-out 1.4s infinite; }
@keyframes flutua { 50% { translate: 0 -9px; } }
.anim .bars span { transform-origin: bottom; animation: cresce .8s cubic-bezier(.2, .8, .2, 1) both; }
.anim .bars span:nth-child(1) { animation-delay: .55s; } .anim .bars span:nth-child(2) { animation-delay: .62s; }
.anim .bars span:nth-child(3) { animation-delay: .69s; } .anim .bars span:nth-child(4) { animation-delay: .76s; }
.anim .bars span:nth-child(5) { animation-delay: .83s; } .anim .bars span:nth-child(6) { animation-delay: .90s; }
.anim .bars span:nth-child(7) { animation-delay: .97s; } .anim .bars span:nth-child(8) { animation-delay: 1.04s; }
@keyframes cresce { from { transform: scaleY(0); } }

/* revelação ao rolar */
.anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--atraso, 0s); }
.anim .rv.rv-in { opacity: 1; transform: none; }

/* cartões e botões respondem ao mouse */
.anim .card, .anim .step, .anim .plan { transition: translate .3s ease, box-shadow .3s ease, border-color .3s ease; }
@media (hover: hover) {
  .anim .card:hover, .anim .step:hover, .anim .plan:hover { translate: 0 -6px; box-shadow: 0 18px 40px rgba(15, 42, 68, .12); }
  .anim .card .icon { transition: background .3s, color .3s, rotate .3s; }
  .anim .card:hover .icon { background: var(--azul); color: var(--branco); rotate: -6deg; }
  .anim .sheet { transition: rotate .4s ease, translate .4s ease; }
  .anim .sheet:hover { rotate: -1deg; translate: 0 -6px; }
}
.anim .btn--primary { position: relative; overflow: hidden; }
.anim .btn--primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); transition: left .6s ease; }
.anim .btn--primary:hover::after, .anim .btn--primary:focus-visible::after { left: 130%; }

/* traço laranja no alto de cada passo */
.anim .step { overflow: hidden; }
.anim .step::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--laranja); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.65, 0, .25, 1) .35s; }
.anim .steps.visto .step::before { transform: scaleX(1); }


@media print { .anim .rv { opacity: 1; transform: none; } .anim .progresso { display: none; } }
