/* Pricing page — motion & animations */

@media (prefers-reduced-motion: reduce) {
    .pricing-page *,
    .pricing-page *::before,
    .pricing-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .pricing-page .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Ambient orbs */
.pricing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
}

.pricing-orb-1 {
    width: 320px;
    height: 320px;
    top: -120px;
    right: 10%;
    background: rgba(59, 182, 93, 0.35);
    animation: pricing-orb-1 16s ease-in-out infinite;
}

.pricing-orb-2 {
    width: 260px;
    height: 260px;
    bottom: 20%;
    left: -80px;
    background: rgba(79, 107, 181, 0.3);
    animation: pricing-orb-2 20s ease-in-out infinite;
}

.pricing-orb-3 {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 40%;
    background: rgba(124, 108, 240, 0.2);
    animation: pricing-orb-3 12s ease-in-out infinite;
}

.pricing-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 21, 48, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 21, 48, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
    animation: pricing-grid-drift 30s linear infinite;
}

@keyframes pricing-orb-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 30px); }
}

@keyframes pricing-orb-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -20px) scale(1.1); }
}

@keyframes pricing-orb-3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    50% { transform: translate(20px, 40px); opacity: 0.35; }
}

@keyframes pricing-grid-drift {
    0% { background-position: 0 0; }
    100% { background-position: 48px 48px; }
}

/* Live pulse */
.pricing-badge .live-pulse {
    animation: pricing-pulse 2s ease-in-out infinite;
}

@keyframes pricing-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Scroll reveal */
.pricing-page .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-page .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-page .price-card.reveal {
    transition-delay: calc(var(--delay, 0) * 0.06s);
}

/* Card shine sweep */
.price-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 60%
    );
    transform: translateX(-120%);
    pointer-events: none;
}

.price-card:hover .price-card-shine {
    animation: price-shine 0.8s ease;
}

@keyframes price-shine {
    to { transform: translateX(120%); }
}

/* Animated border glow on hover */
.price-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), transparent 40%, #4f6bb5);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.price-card:hover::before {
    opacity: 1;
}

/* Price value pop */
.price-card:hover .price-value {
    animation: price-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes price-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); color: var(--primary-dark); }
    100% { transform: scale(1); }
}

/* Hero title entrance */
.pricing-hero.reveal.is-visible .title-line {
    animation: pricing-slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.pricing-hero.reveal.is-visible .title-gradient {
    animation: pricing-slide-up 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes pricing-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat cards stagger */
.pricing-hero.reveal.is-visible .pricing-stat-card:nth-child(1) {
    animation: pricing-stat-in 0.5s 0.2s backwards;
}

.pricing-hero.reveal.is-visible .pricing-stat-card:nth-child(2) {
    animation: pricing-stat-in 0.5s 0.3s backwards;
}

.pricing-hero.reveal.is-visible .pricing-stat-card:nth-child(3) {
    animation: pricing-stat-in 0.5s 0.4s backwards;
}

@keyframes pricing-stat-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header scroll */
.pricing-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

/* Filter pill ripple */
.cat-pill.is-active {
    animation: pill-glow 2s ease-in-out infinite;
}

@keyframes pill-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10, 21, 48, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(10, 21, 48, 0); }
}
