/* ===== Section animations (only when motion is allowed; content is never hidden without JavaScript) ===== */

/* Simple steps: number circles pop in one by one, the dashed line draws from left to right */
.lp-reveal-on .ofw-step .ofw-step-num { transform: scale(.5); opacity: 0; transition: transform 650ms cubic-bezier(.34,1.56,.64,1), opacity 400ms ease; transition-delay: calc(var(--reveal-delay, 0ms) + 200ms); }
.lp-reveal-on .ofw-step.is-revealed .ofw-step-num { transform: none; opacity: 1; }
.lp-reveal-on .ofw-steps::before { transform: scaleX(0); transform-origin: left center; transition: transform 1400ms cubic-bezier(.22,1,.36,1) 350ms; }
.lp-reveal-on .ofw-steps:has(.ofw-step.is-revealed)::before { transform: scaleX(1); }
@media (hover: hover) {
  .ofw-step .ofw-step-num { transition: transform 300ms ease; }
  .ofw-step:hover .ofw-step-num { transform: translateY(-4px); }
}

/* Who can apply: the green check badge pops in after each item appears */
.lp-reveal-on .ofw-elig li .ofw-elig-icon { transform: scale(0); transition: transform 500ms cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--reveal-delay, 0ms) + 450ms); }
.lp-reveal-on .ofw-elig li.is-revealed .ofw-elig-icon { transform: scale(1); }
@media (hover: hover) { .lp-reveal-on .ofw-elig li.is-revealed:hover .ofw-elig-icon { transform: scale(1.1); transition-delay: 0ms; } }

/* What you'll need: list rows fade up one after another, on scroll and when switching tabs */
.req-list li:nth-child(1) { --d: 0ms; }   .req-list li:nth-child(2) { --d: 50ms; }
.req-list li:nth-child(3) { --d: 100ms; } .req-list li:nth-child(4) { --d: 150ms; }
.req-list li:nth-child(5) { --d: 200ms; } .req-list li:nth-child(6) { --d: 250ms; }
.req-list li:nth-child(7) { --d: 300ms; } .req-list li:nth-child(8) { --d: 350ms; }
.req-list--outline li { --d2: 300ms; }
.lp-reveal-on .req-grid .req-list li { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--d, 0ms) + var(--d2, 0ms) + 200ms); }
.lp-reveal-on .req-grid.is-revealed .req-list li { opacity: 1; transform: none; }
.req-panel.is-entering .req-list li { animation: reqItemIn 420ms cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d, 0ms); }
@keyframes reqItemIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Calculator card: icon pops in and draws its outline, background glow drifts slowly */
.calc-card { position: relative; overflow: hidden; isolation: isolate; }
.calc-card::after {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -140px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); pointer-events: none; animation: ctaGlowDrift 16s ease-in-out infinite;
}
.lp-reveal-on .calc-card .calc-card-icon { transform: scale(.6) rotate(-12deg); }
.lp-reveal-on .calc-card.is-revealed .calc-card-icon { transform: none; transition: transform 700ms cubic-bezier(.34,1.56,.64,1) 150ms; }

/* Real stories: the first cards slide in from the left, one after another */
.lp-reveal-on #stories .carousel-track-viewport .quote-card { opacity: 0; translate: -32px 0; transition: opacity 900ms cubic-bezier(.22,1,.36,1), translate 900ms cubic-bezier(.22,1,.36,1), background-color 300ms ease; }
.lp-reveal-on #stories .carousel-track-viewport.is-revealed .quote-card { opacity: 1; translate: 0 0; }
.lp-reveal-on #stories .carousel-track-viewport.is-revealed .quote-card:nth-child(2) { transition-delay: 150ms, 150ms, 0ms; }
.lp-reveal-on #stories .carousel-track-viewport.is-revealed .quote-card:nth-child(3) { transition-delay: 300ms, 300ms, 0ms; }

/* We're here to help: icons lift on hover */
@media (hover: hover) {
  .ofw-contact-icon { transition: transform 300ms ease; }
  .ofw-contact-item:hover .ofw-contact-icon { transform: translateY(-3px); }
}

/* Final banner: zooms in gently, soft glows drift (same as the home page) */
.lp-reveal-on .final-cta-container[data-reveal="zoom"] { transform: translateY(20px) scale(.96); }
.lp-reveal-on .final-cta-container[data-reveal="zoom"].is-revealed { transform: none; }
@keyframes ctaGlowDrift { 0%, 100% { translate: 0 0; } 50% { translate: -40px 30px; } }
.final-cta-container::before { animation: ctaGlowDrift 14s ease-in-out infinite; }
.final-cta-container::after { animation: ctaGlowDrift 18s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  .ofw-step-num, .ofw-steps::before, .ofw-elig-icon, .req-list li, .calc-card-icon,
  #stories .quote-card, .ofw-contact-icon, .final-cta-container {
    opacity: 1 !important; transform: none !important; translate: none !important; stroke-dashoffset: 0 !important; transition: none !important; animation: none !important;
  }
  .calc-card::after, .final-cta-container::before, .final-cta-container::after { animation: none !important; }
}
