/* ═══════════════════════════════════════════════════════════
   PRICING PAGE — 3D glass effect, animations, conversion-focused.
   Use with design-system.css. Load on pricing.html only.
   ═══════════════════════════════════════════════════════════ */

.pricing-page {
    font-family: var(--ds-font-sans);
    color: var(--ds-text);
    padding-bottom: var(--ds-space-10);
    background: linear-gradient(160deg, #eef2ff 0%, #f5f3ff 35%, #fce7f3 70%, #e0f2fe 100%);
    min-height: 100vh;
    position: relative;
}

/* Hero with glass and entrance animation */
.pricing-hero {
    text-align: center;
    padding: var(--ds-space-8) var(--ds-space-3) var(--ds-space-6);
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: heroFadeIn 0.8s ease-out forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-hero h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ds-text);
    margin-bottom: var(--ds-space-2);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.pricing-hero p {
    font-size: 1.125rem;
    color: var(--ds-text-muted);
    line-height: 1.7;
}

.pricing-outcome {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4f46e5;
    line-height: 1.5;
}

/* Grid with stagger */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds-space-3);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--ds-space-3);
    align-items: stretch;
    position: relative;
    z-index: 1;
    perspective: 1200px;
}

/* 3D glass cards */
.pricing-card {
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    transform-style: preserve-3d;
    animation: cardStaggerIn 0.6s ease-out backwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.15s; }
.pricing-card:nth-child(2) { animation-delay: 0.3s; }

@keyframes cardStaggerIn {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pricing-card:hover {
    transform: translateY(-8px) rotateX(2deg) scale(1.02);
    box-shadow: 0 20px 48px rgba(99, 102, 241, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.85);
}

/* Featured card — stronger glass and glow */
.pricing-card-featured {
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(139, 92, 246, 0.35);
    border-color: var(--glass-border);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2),
                0 12px 40px rgba(99, 102, 241, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: visible;
}

.pricing-card-featured::before {
    content: 'Most popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55); }
}

.pricing-card-featured:hover {
    transform: translateY(-10px) rotateX(3deg) scale(1.03);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25),
                0 24px 56px rgba(99, 102, 241, 0.18),
                0 12px 28px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ds-text);
    margin-bottom: 4px;
    text-align: center;
}

.pricing-card-desc {
    text-align: center;
    color: var(--ds-text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--ds-space-4);
    min-height: 2.5em;
}

.pricing-amount {
    text-align: center;
    margin-bottom: var(--ds-space-4);
    transition: transform 0.3s ease;
}

.pricing-card:hover .pricing-amount {
    transform: scale(1.02);
}

.pricing-amount .price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ds-text);
}

.pricing-amount .price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds-text-muted);
}

.pricing-amount .period {
    font-size: 0.9375rem;
    color: var(--ds-text-subtle);
    margin-top: 4px;
}

.pricing-card-featured .pricing-amount .period {
    color: var(--ds-primary);
    font-weight: 600;
    opacity: 0.95;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--ds-space-5);
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.85rem;
    color: var(--ds-text-muted);
    line-height: 1.45;
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover .pricing-features li {
    opacity: 1;
}

.pricing-features li:hover {
    transform: translateX(4px);
}

.pricing-features li::before {
    content: '✓';
    color: var(--ds-success);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card-featured .pricing-features li::before {
    color: var(--ds-primary);
}

.pricing-cta {
    margin-top: auto;
    padding-top: var(--ds-space-4);
}

.pricing-cta .ds-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-cta .ds-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.pricing-cta .ds-btn-secondary {
    width: 100%;
}

.pricing-current {
    text-align: center;
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--ds-primary);
    border-radius: var(--ds-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: var(--ds-space-2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Footer glass strip */
.pricing-page .footer {
    position: relative;
    z-index: 1;
}

.pricing-page .footer .footer-bottom {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: var(--ds-space-4) var(--ds-space-3);
}

/* Contact modal — glass */
#contactModal {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#contactModal > div {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: modalSlideIn 0.35s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pricing-card:nth-child(3) { animation-delay: 0.45s; }

@media (max-width: 960px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 420px !important;
        margin-left: auto;
        margin-right: auto;
        perspective: none;
    }
    .pricing-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    .pricing-card-featured:hover {
        transform: translateY(-8px) scale(1.02);
    }
    .pricing-hero {
        padding: var(--ds-space-6) var(--ds-space-2) var(--ds-space-5);
    }
}
