/* =========================================================================
   Lead Collector Pricing — animations.css
   Same motion language as the explainer: word-by-word blur reveals,
   travelling glow dots, pulsing rings, floating cards.
   ========================================================================= */
@keyframes capWord { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(125, 211, 252, .55); } 100% { box-shadow: 0 0 0 14px rgba(125, 211, 252, 0); } }
@keyframes recIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* --------------------------------------------------- scroll reveals -- */
.reveal { opacity: 0; }
.reveal.in { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
[data-split] .w { display: inline-block; opacity: 0; }
[data-split].in .w { animation: capWord .75s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 55ms + 80ms); }
.rec.swap .rec-in { animation: recIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.tot.flash { animation: flash .7s ease-out; }
.live, .live-dot { animation: pulseDot 1.6s infinite; }

/* subtle animated gradient on featured borders + headline highlight */
.final-card { background-size: 100% 100%, 220% 220%; animation: gradShift 9s ease-in-out infinite; }
.pkg.featured { background-size: 100% 100%, 220% 220%; }
.pkg.featured.reveal.in { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both var(--d, 0ms), gradShift 9s ease-in-out .8s infinite; }

/* ---------------------------------------------------- hero loop (6s) -- */
.hv-dot { offset-rotate: 0deg; animation: hvVisit 6s cubic-bezier(.45, 0, .55, 1) infinite; opacity: 0; }
.hv-dot.v1 { offset-path: path('M-10 90 C 40 90 50 150 92 150'); }
.hv-dot.v2 { offset-path: path('M-10 200 C 40 200 50 160 92 160'); animation-delay: .35s; }
.hv-dot.v3 { offset-path: path('M-10 300 C 40 300 60 175 92 172'); animation-delay: .7s; }
@keyframes hvVisit { 0% { offset-distance: 0%; opacity: 0; } 4% { opacity: 1; } 22% { offset-distance: 100%; opacity: 1; } 25%, 100% { offset-distance: 100%; opacity: 0; } }

.hv-form b { animation: hvBtn 6s infinite; }
@keyframes hvBtn { 0%, 24% { filter: none; transform: none; } 26% { transform: scale(.93); filter: brightness(1.4); } 29%, 100% { transform: none; filter: none; } }

.hv-lead { offset-path: path('M150 200 C 200 200 230 175 315 175'); offset-rotate: 0deg; offset-anchor: 50% 50%; animation: hvLead 6s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes hvLead { 0%, 27% { offset-distance: 0%; opacity: 0; transform: scale(.6); } 31% { opacity: 1; transform: scale(1); offset-distance: 0%; } 36% { offset-distance: 0%; } 46% { offset-distance: 100%; opacity: 1; transform: scale(.7); } 49%, 100% { offset-distance: 100%; opacity: 0; transform: scale(.3); } }

.hv-node .ring { animation: spin 18s linear infinite; }
.hv-node .ring.b { animation: hvRing 6s infinite; }
@keyframes hvRing { 0%, 46% { opacity: 0; transform: scale(.85); } 48% { opacity: .9; } 60%, 100% { opacity: 0; transform: scale(1.45); } }
.hv-node .mark { animation: hvCore 6s infinite; }
@keyframes hvCore { 0%, 46% { transform: none; } 48% { transform: scale(1.12); } 54%, 100% { transform: none; } }

.hv-pulse { opacity: 0; animation: hvPulse 6s cubic-bezier(.45, 0, .55, 1) infinite; }
.hv-pulse.p1 { offset-path: path('M362 160 C 395 160 395 110 418 110'); }
.hv-pulse.p2 { offset-path: path('M315 224 C 315 270 315 280 315 312'); }
@keyframes hvPulse { 0%, 48% { offset-distance: 0%; opacity: 0; } 50% { opacity: 1; } 58% { offset-distance: 100%; opacity: 1; } 60%, 100% { offset-distance: 100%; opacity: 0; } }

.hv-notif { animation: hvNotif 6s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes hvNotif { 0%, 57% { opacity: 0; transform: translateY(-16px) scale(.94); } 62% { opacity: 1; transform: none; } 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-6px); } }
.hv-phone { animation: hvBuzz 6s infinite; }
@keyframes hvBuzz { 0%, 57% { transform: none; } 58% { transform: rotate(-2deg); } 59% { transform: rotate(2deg); } 60% { transform: rotate(-1.5deg); } 61%, 100% { transform: none; } }

.hc-row.new { animation: hvRow 6s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes hvRow { 0%, 59% { opacity: 0; transform: translateX(-12px); background: transparent; } 63% { opacity: 1; transform: none; background: rgba(79, 124, 255, .22); } 85% { background: rgba(79, 124, 255, .1); } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
.hv-crm, .hv-page { animation: float 7s ease-in-out infinite; }
.hv-page { animation-delay: -3s; }

/* ------------------------------------------------- final flow (5.5s) -- */
.flow-comet { animation: comet 5.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes comet { 0% { left: 10%; opacity: 0; } 5% { opacity: 1; } 80% { left: 90%; opacity: 1; } 86%, 100% { left: 90%; opacity: 0; } }
.fn .tile { animation: nodeLit 5.5s infinite; }
.fn.n1 .tile { animation-delay: 0s; }
.fn.n2 .tile { animation-delay: 1.1s; }
.fn.n3 .tile { animation-delay: 2.2s; }
.fn.n4 .tile { animation-delay: 3.3s; }
.fn.n5 .tile { animation-name: nodeWin; animation-delay: 4.4s; }
@keyframes nodeLit { 0% { color: #9db6ff; box-shadow: none; border-color: color-mix(in srgb, #4f7cff 32%, transparent); } 4% { color: #fff; box-shadow: 0 0 26px rgba(79, 124, 255, .75); border-color: #6f93ff; } 45% { color: #fff; box-shadow: 0 0 18px rgba(79, 124, 255, .45); border-color: #6f93ff; } 60%, 100% { color: #9db6ff; box-shadow: none; border-color: color-mix(in srgb, #4f7cff 32%, transparent); } }
@keyframes nodeWin { 0% { color: #9db6ff; box-shadow: none; } 4% { color: #fff; background: rgba(34, 197, 94, .35); border-color: #4ade80; box-shadow: 0 0 34px rgba(34, 197, 94, .8); } 35% { color: #fff; background: rgba(34, 197, 94, .25); border-color: #4ade80; box-shadow: 0 0 20px rgba(34, 197, 94, .5); } 55%, 100% { color: #9db6ff; box-shadow: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, [data-split] .w { opacity: 1 !important; }
  .hv-notif, .hc-row.new, .hv-lead { opacity: 1; }
}
