/* ═══════════════════════════════════════════════════════════════
   ZYNQOR — Full-Page Cinematic Scroll System v2.0
   Split-Panel Architecture with Adaptive Transitions
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (runtime-switchable) ── */
:root {
    /* Cross-section: dramatic, cinematic */
    --fp-dur: 0.65s;
    --fp-ease: cubic-bezier(0.77, 0, 0.175, 1);
    --fp-ty: 60px;

    /* Intra-section: softer, continuous */
    --fp-dur-i: 0.45s;
    --fp-ease-i: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --fp-ty-i: 28px;

    /* Cooldowns (read by JS via getPropertyValue) */
    --fp-cool: 800;
    --fp-cool-i: 560;
}

/* ── Base Page ── */
.fp-page {
    position: fixed;
    inset: 0;
    opacity: 0;
    transform: translateY(var(--fp-ty));
    pointer-events: none;
    will-change: opacity, transform;
    transition:
        opacity var(--fp-dur) var(--fp-ease),
        transform var(--fp-dur) var(--fp-ease);
    z-index: 1;
    overflow: clip;
}

/* Active page */
.fp-page.fp-active {
    opacity: 1;
    transform: translateY(0) !important;
    pointer-events: auto;
    z-index: 10;
}

/* Exiting page (briefly above base during transition) */
.fp-page.fp-exit {
    z-index: 5;
    pointer-events: none;
}

/* ── Intra-section mode (body class set by JS) ── */
body.fp-intra .fp-page {
    transition-duration: var(--fp-dur-i);
    transition-timing-function: var(--fp-ease-i);
}

body.fp-intra .fp-page:not(.fp-active) {
    transform: translateY(var(--fp-ty-i));
}

/* ── Background Layer (persists during intra-section) ── */
.fp-panel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.1s ease;
}

.fp-page.fp-active .fp-panel-bg {
    opacity: 1;
}

/* Intra: bg skips animation — already visible from sibling panel */
body.fp-intra .fp-panel-bg {
    transition-duration: 0.01s;
}

/* Background themes */
.fp-bg-hero {
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0, 212, 255, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(8, 145, 178, 0.05) 0%, transparent 60%);
}

.fp-bg-stats {
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
}

.fp-bg-features {
    background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(0, 212, 255, 0.07) 0%, transparent 65%);
}

.fp-bg-advanced {
    background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(8, 145, 178, 0.09) 0%, transparent 65%);
}

.fp-bg-how {
    background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
}

.fp-bg-pricing {
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(8, 145, 178, 0.04) 0%, transparent 60%);
}

.fp-bg-partners {
    background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
}

.fp-bg-reviews {
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(8, 145, 178, 0.05) 0%, transparent 65%);
}

.fp-bg-faq {
    background: radial-gradient(ellipse 60% 50% at 10% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
}

.fp-bg-cta {
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(8, 145, 178, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 90% 80% at 30% 60%, rgba(0, 212, 255, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
}

/* ── Content Layer ── */
.fp-panel-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

/* Scrolling badge bar: above content layer */
.fp-page>.logo-scroll {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 12px 0;
    background: linear-gradient(180deg, transparent, rgba(10, 14, 20, 0.95));
}

/* ── Panel Inner (enforces 100vh fit) ── */
.fp-panel-inner {
    width: 100%;
    max-width: var(--container-max, 1280px);
    padding: 32px clamp(24px, 4vw, 80px) 48px;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.8vh, 24px);
    max-height: 100vh;
    box-sizing: border-box;
}

/* ── Compact section headers inside panels ── */
.fp-panel-inner .section-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

.fp-panel-inner .section-badge {
    margin-bottom: 6px;
}

/* ⚠ LOCKED — Do not change these values */
.fp-panel-inner .section-title {
    font-size: clamp(50px, 3.2vw, 45px);
    line-height: 1.15;
    margin-bottom: 102px;
    display: block;
    width: 100%;
    text-align: center;
}

.fp-panel-inner .section-subtitle {
    font-size: clamp(13px, 1.2vw, 15px);
    margin-top: -80px;
    max-width: 520px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ── Feature cards in panel context ── */
.fp-panel-inner .features-grid-core {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.fp-panel-inner .features-grid-advanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

/* Push cards down a bit more on More Powerful Tools page */
#pan-core-2 .features-grid-core {
    margin-top: 32px;
}

/* 3-column layout on Protection & Recovery page */
#pan-adv-2 .features-grid-advanced {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fp-panel-inner .feature-card {
    padding: clamp(24px, 2.5vh, 32px);
    min-height: 180px;
}

.fp-panel-inner .feature-card h3 {
    font-size: clamp(18px, 1.5vw, 20px);
    margin-bottom: 10px;
}

.fp-panel-inner .feature-card p {
    font-size: 15px;
    line-height: 1.65;
}

.fp-panel-inner .feature-list {
    display: none;
    /* hide in compact panel view */
}

.fp-panel-inner .feature-visual {
    max-height: 60px;
    overflow: hidden;
    margin-top: 10px;
}

/* ── bento-4 in panel context ── */
.fp-panel-inner .feature-card.bento-4 {
    grid-column: 1 / -1;
    min-height: unset;
}

.fp-panel-inner .bento-wide-inner {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.fp-panel-inner .drawdown-visual {
    flex: 1;
}

/* ── Stats panel layout ── */
.fp-panel-inner .stats-grid {
    gap: 16px;
}

.fp-panel-inner .stat-card {
    padding: clamp(16px, 2vh, 24px);
}

/* ── Pricing in panel ── */
.fp-panel-inner .pricing-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
}

.fp-panel-inner .pricing-card {
    padding: 20px 18px;
}

.fp-panel-inner .pricing-features {
    margin: 12px 0;
}

.fp-panel-inner .pricing-features li {
    padding: 4px 0;
    font-size: 12.5px;
}

.fp-panel-inner .trial-banner {
    padding: 10px 16px;
    margin-bottom: 14px;
}

/* ── Steps (How It Works) in panel ── */
.fp-panel-inner .step-card {
    padding: 20px 16px;
}

/* ── Testimonials in panel ── */
.fp-panel-inner .testimonials-grid {
    gap: 16px;
}

.fp-panel-inner .testimonial-card {
    padding: 20px;
}

.fp-panel-inner .testimonial-text {
    font-size: 13px;
}

/* ── FAQ in panel ── */
.fp-panel-inner .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 60px;
    overflow-y: auto;
    scrollbar-width: none;
}

.fp-panel-inner .faq-grid::-webkit-scrollbar {
    display: none;
}

.fp-panel-inner .faq-item {
    border-radius: 8px;
}

#pan-faq .section-header {
    margin-bottom: 32px;
}

#pan-faq .section-badge {
    display: none;
}

#pan-faq .section-title {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 4px;
}

#pan-faq .fp-panel-content {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
}

/* FAQ 1-column on small screens */
@media (max-width: 800px) {
    .fp-panel-inner .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ── CTA Panel Overrides ── */
#pan-cta .fp-panel-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    padding-bottom: 0;
}

#pan-cta .fp-panel-inner {
    padding-top: 0;
    padding-bottom: 20px;
    gap: 16px;
    justify-content: center;
    align-items: center;
    max-height: none;
}

#pan-cta .cta-section {
    padding: 0;
    width: 100%;
}

/* Kill any gradient divider line at top */
#pan-cta .cta-section::before,
#pan-cta .cta-section::after,
#pan-cta .fp-panel-inner::before,
#pan-cta .fp-panel-inner::after {
    display: none !important;
}

#pan-cta .fp-panel-content {
    border: none !important;
}

#pan-cta .cta-layout {
    border: none !important;
}

/* Remove navbar line when CTA panel is visible */
#pan-cta.fp-active~.navbar,
body.fp-cta-active .navbar {
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

/* Full-page CTA section — no box constraints */
#pan-cta .cta-section {
    overflow: visible;
}

#pan-cta .container {
    max-width: none;
    padding: 0 clamp(48px, 6vw, 120px);
}

#pan-cta .cta-left h2 {
    font-size: clamp(30px, 3.5vw, 48px);
}

#pan-cta .cta-left p {
    font-size: 15px;
    margin-bottom: 24px;
}

#pan-cta .cta-buttons .btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
}

#pan-cta .cta-quickstart {
    padding: 24px 28px;
}

#pan-cta .cta-quickstart-title h3 {
    font-size: 18px;
}

#pan-cta .cta-step-body h4 {
    font-size: 14px;
}

#pan-cta .cta-step-body p {
    font-size: 12px;
}

/* ── Partners in panel ── */
.fp-panel-inner .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.fp-panel-inner .partner-card {
    padding: 10px 14px;
}

/* Ensure all partner cards stay visible */
#pan-partners .fp-panel-content {
    overflow-y: auto;
    overflow-x: hidden;
}

#pan-partners .section-header {
    margin-bottom: 20px;
}

#pan-partners .section-title {
    font-size: clamp(24px, 4vw, 40px);
}

#pan-partners .section-subtitle {
    font-size: clamp(12px, 1.4vw, 16px);
    margin-bottom: 8px;
}

/* ── Panel pager indicator ── */
.panel-pager {
    display: inline-block;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.22);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
}

.section-badge-cont {
    opacity: 0.5;
}

/* ── Continuation title (panel 2 of same section) ── */
.continuation-title {
    font-size: clamp(18px, 2vw, 28px) !important;
    opacity: 0.35;
    font-style: italic;
}

/* ── FPS Navigation Dots ── */
.fp-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 9px;
    z-index: 2000;
    padding: 8px 4px;
}

.fp-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.fp-nav-dot::after {
    content: attr(title);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.8);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fp-nav-dot:hover::after {
    opacity: 1;
}

.fp-nav-dot.fp-dot-active {
    background: #00d4ff;
    box-shadow: 0 0 8px 3px rgba(0, 212, 255, 0.45);
    transform: scale(1.5);
}

.fp-nav-dot:hover:not(.fp-dot-active) {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.2);
}

/* ── Staggered panel child animations ── */
@keyframes fpChildIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-page.fp-active .fp-panel-inner>*:nth-child(1) {
    animation: fpChildIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.fp-page.fp-active .fp-panel-inner>*:nth-child(2) {
    animation: fpChildIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.fp-page.fp-active .fp-panel-inner>*:nth-child(3) {
    animation: fpChildIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.fp-page.fp-active .fp-panel-inner>*:nth-child(4) {
    animation: fpChildIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* ── Hero panel: full bleed (no fp-panel-inner constraints) ── */
#pan-hero .fp-panel-content {
    align-items: stretch;
    justify-content: stretch;
}

#pan-hero .hero {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ── Footer: shown only when on CTA panel ── */
.fp-footer-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 20;
    transform: translateY(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fp-footer-overlay.fp-footer-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   PREMIUM CARD ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset: cards invisible when panel not active ── */
#pan-core-1 .feature-card,
#pan-core-2 .feature-card,
#pan-adv-1 .feature-card,
#pan-adv-2 .feature-card {
    opacity: 0;
    will-change: transform, opacity, filter;
}

/* ── Shared: Cyan border glow pulse on arrival ── */
@keyframes cardGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
        border-color: var(--glass-border);
    }

    40% {
        box-shadow: 0 0 20px 4px rgba(0, 212, 255, 0.25);
        border-color: rgba(0, 212, 255, 0.4);
    }

    100% {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
        border-color: var(--glass-border);
    }
}


/* ═══════════════════════════════════════════════════
   PAGE 1: "Trade Like a Pro" — 3D RISE & REVEAL
   ═══════════════════════════════════════════════════ */
@keyframes card3DRise {
    0% {
        opacity: 0;
        transform: perspective(1200px) rotateX(15deg) translateY(60px) scale(0.92);
        filter: blur(2px);
    }

    60% {
        opacity: 1;
        transform: perspective(1200px) rotateX(-3deg) translateY(-8px) scale(1.02);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: perspective(1200px) rotateX(0) translateY(0) scale(1);
        filter: blur(0);
    }
}

#pan-core-1.fp-active .feature-card:nth-child(1) {
    animation: card3DRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
        cardGlowPulse 0.8s ease 0.8s both;
}

#pan-core-1.fp-active .feature-card:nth-child(2) {
    animation: card3DRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both,
        cardGlowPulse 0.8s ease 0.95s both;
}

#pan-core-1.fp-active .feature-card:nth-child(3) {
    animation: card3DRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both,
        cardGlowPulse 0.8s ease 1.1s both;
}


/* ═══════════════════════════════════════════════════
   PAGE 2: "More Powerful Tools" — CASCADE SLIDE-IN
   ═══════════════════════════════════════════════════ */
@keyframes cardCascadeSlide {
    0% {
        opacity: 0;
        transform: translateX(-50px) translateY(20px);
        filter: blur(6px);
    }

    50% {
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
        filter: blur(0);
    }
}

#pan-core-2.fp-active .feature-card:nth-child(1) {
    animation: cardCascadeSlide 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
        cardGlowPulse 0.8s ease 0.75s both;
}

#pan-core-2.fp-active .feature-card:nth-child(2) {
    animation: cardCascadeSlide 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both,
        cardGlowPulse 0.8s ease 0.9s both;
}

#pan-core-2.fp-active .feature-card:nth-child(3) {
    animation: cardCascadeSlide 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both,
        cardGlowPulse 0.8s ease 1.05s both;
}


/* ═══════════════════════════════════════════════════
   PAGE 3: "Control & Protection" — SCALE POP + GLOW
   ═══════════════════════════════════════════════════ */
@keyframes cardScalePop {
    0% {
        opacity: 0;
        transform: scale(0.75);
        filter: blur(4px);
    }

    60% {
        opacity: 1;
        transform: scale(1.05);
        filter: blur(0);
    }

    80% {
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

#pan-adv-1.fp-active .feature-card:nth-child(1) {
    animation: cardScalePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both,
        cardGlowPulse 0.8s ease 0.75s both;
}

#pan-adv-1.fp-active .feature-card:nth-child(2) {
    animation: cardScalePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both,
        cardGlowPulse 0.8s ease 0.95s both;
}


/* ═══════════════════════════════════════════════════
   PAGE 4: "Protection & Recovery" — FADE UP + SHIMMER
   ═══════════════════════════════════════════════════ */
@keyframes cardFadeShimmer {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

    70% {
        opacity: 1;
        transform: translateY(-4px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmerSweep {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

#pan-adv-2.fp-active .feature-card:nth-child(1) {
    animation: cardFadeShimmer 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
        cardGlowPulse 0.8s ease 0.75s both;
}

#pan-adv-2.fp-active .feature-card:nth-child(2) {
    animation: cardFadeShimmer 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both,
        cardGlowPulse 0.8s ease 0.9s both;
}

#pan-adv-2.fp-active .feature-card:nth-child(3) {
    animation: cardFadeShimmer 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both,
        cardGlowPulse 0.8s ease 1.05s both;
}


/* ═══════════════════════════════════════════════════
   PRICING CARDS — 3D FLIP-IN ENTRANCE
   ═══════════════════════════════════════════════════ */

/* Reset: pricing cards invisible when panel not active */
#pan-pricing .pricing-card {
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes pricingFlipIn {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateY(-25deg) translateX(-30px) scale(0.9);
        filter: blur(3px);
    }

    60% {
        opacity: 1;
        transform: perspective(1000px) rotateY(5deg) translateX(5px) scale(1.02);
        filter: blur(0);
    }

    80% {
        transform: perspective(1000px) rotateY(-2deg) translateX(-2px) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(0) translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes pricingGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }

    40% {
        box-shadow: 0 0 25px 6px rgba(0, 212, 255, 0.2);
    }

    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

/* Basic card — enters first */
#pan-pricing.fp-active .pricing-card:nth-child(1) {
    animation: pricingFlipIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both,
        pricingGlow 0.8s ease 0.8s both;
}

/* Pro card (featured) — enters second with emphasis */
#pan-pricing.fp-active .pricing-card:nth-child(2) {
    animation: pricingFlipIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both,
        pricingGlow 1s ease 1.1s both;
}

/* Ultimate card — enters last */
#pan-pricing.fp-active .pricing-card:nth-child(3) {
    animation: pricingFlipIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both,
        pricingGlow 0.8s ease 1.2s both;
}


/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS & PRICING INTRO — LAYOUT & ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* ── Extra top padding for navbar breathing space ── */
#pan-how .fp-panel-inner {
    padding-top: 72px;
}

/* ══════════════════════════════════════════════════════════════════
   PRICING — 2-Panel Split Layout
   Panel 1 (#pan-pricing):     Intro — title, trust signals, hint
   Panel 2 (#pan-price-cards): Cards — duration, grid, guarantee
   ══════════════════════════════════════════════════════════════════ */

/* ── Panel 1: Pricing Intro ── */
.fp-pricing-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fp-pricing-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: clamp(24px, 4vh, 48px);
    animation: fp-hint-pulse 2.5s ease-in-out infinite;
}

@keyframes fp-hint-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 0.6;
        transform: translateY(6px);
    }
}

/* ── Trust signals bar ── */
.fp-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 40px);
    margin-top: clamp(24px, 4vh, 48px);
    flex-wrap: wrap;
}

.fp-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3px;
}

.fp-trust-item svg {
    color: var(--accent-primary);
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Auto-hide navbar on pricing pages ── */
body.fp-hide-nav .navbar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.navbar {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* ── Panel 2: Pricing Cards ── */
#pan-price-cards .fp-panel-inner {
    padding: clamp(10px, 1.5vh, 20px) clamp(24px, 4vw, 80px) clamp(8px, 1vh, 16px);
    gap: clamp(6px, 1vh, 16px);
    justify-content: flex-start;
}

/* ── Duration buttons ── */
#pan-price-cards .duration-selector {
    margin: 0 auto clamp(60px, 10vh, 120px);
}

/* ── Pricing grid ── */
#pan-price-cards .pricing-grid {
    gap: clamp(16px, 2vw, 28px);
    perspective: 1500px;
    transform-style: preserve-3d;
    overflow: visible !important;
}

/* Override conflicting styles.css rules that kill 3D */
#pan-price-cards .pricing-grid>.pricing-card {
    overflow: visible !important;
    isolation: auto !important;
    transform-style: preserve-3d;
}

/* ── 3D Card Fan: flanking cards rotate toward Pro ── */

/* Basic — right edge comes forward, left goes back */
#pan-price-cards .pricing-grid>.pricing-card:first-child {
    transform: rotateY(8deg) scale(0.94) !important;
    transform-origin: right center !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

#pan-price-cards .pricing-grid>.pricing-card:first-child:hover {
    transform: rotateY(2deg) scale(0.97) translateY(-6px) !important;
    box-shadow: 6px 16px 48px rgba(0, 0, 0, 0.5) !important;
}

/* Pro — straight, elevated, dominant */
#pan-price-cards .pricing-grid>.pricing-card.popular {
    transform: scale(1.05) translateY(-6px) !important;
    z-index: 3;
    border: 2px solid transparent;
    background-image: linear-gradient(180deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0.02) 100%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.95), rgba(10, 15, 28, 0.95));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 0 0 2px rgba(0, 212, 255, 0.3),
        0 0 60px rgba(0, 212, 255, 0.1),
        0 24px 64px rgba(0, 0, 0, 0.5) !important;
}

#pan-price-cards .pricing-grid>.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow:
        0 0 0 2px rgba(0, 212, 255, 0.4),
        0 0 100px rgba(0, 212, 255, 0.15),
        0 32px 80px rgba(0, 0, 0, 0.6);
}

/* Ultimate — left edge comes forward, right goes back */
#pan-price-cards .pricing-grid>.pricing-card.ultimate {
    transform: rotateY(-8deg) scale(0.94) !important;
    transform-origin: left center !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

#pan-price-cards .pricing-grid>.pricing-card.ultimate:hover {
    transform: rotateY(-2deg) scale(0.97) translateY(-6px) !important;
    box-shadow: -6px 16px 48px rgba(0, 0, 0, 0.5) !important;
}

#pan-price-cards .pricing-card {
    padding: clamp(12px, 1.8vh, 22px) clamp(14px, 1.6vw, 22px);
}

/* ── Card header ── */
#pan-price-cards .pricing-header {
    margin-bottom: clamp(6px, 1vh, 14px);
    padding-bottom: clamp(6px, 1vh, 14px);
}

#pan-price-cards .pricing-header h3 {
    font-size: clamp(17px, 2.2vw, 24px);
    margin-bottom: 2px;
}

#pan-price-cards .pricing-desc {
    font-size: clamp(10px, 1.2vw, 13px);
    margin-bottom: clamp(4px, 0.8vh, 12px);
}

#pan-price-cards .price-amount {
    font-size: clamp(36px, 5.5vh, 56px);
}

#pan-price-cards .price-currency {
    font-size: clamp(14px, 2vh, 20px);
}

/* ── Feature list ── */
#pan-price-cards .pricing-features {
    margin-bottom: clamp(6px, 1vh, 16px);
    gap: 0;
}

#pan-price-cards .pricing-features li {
    font-size: clamp(12px, 1.4vw, 15px);
    padding: clamp(4px, 0.7vh, 10px) 0;
    gap: clamp(6px, 0.8vw, 12px);
}

#pan-price-cards .pricing-features svg {
    width: clamp(12px, 1.4vw, 18px);
    height: clamp(12px, 1.4vw, 18px);
    min-width: 12px;
}

/* ── Guarantee ── */
#pan-price-cards .pricing-guarantee {
    margin-top: clamp(4px, 0.6vh, 10px);
    padding: clamp(4px, 0.6vh, 10px) clamp(10px, 1.5vw, 20px);
    font-size: clamp(10px, 1.2vw, 13px);
}

/* ── CTA buttons ── */
#pan-price-cards .btn-block {
    padding: clamp(8px, 1.2vh, 14px) 16px;
    font-size: clamp(12px, 1.4vw, 15px);
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ── Card Entrance Animations ── */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        filter: blur(4px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes popularGlow {

    0%,
    100% {
        box-shadow:
            0 0 0 2px rgba(0, 212, 255, 0.25),
            0 0 60px rgba(0, 212, 255, 0.08),
            0 24px 64px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(0, 212, 255, 0.4),
            0 0 100px rgba(0, 212, 255, 0.14),
            0 24px 64px rgba(0, 0, 0, 0.5);
    }
}

#pan-price-cards .pricing-card {
    animation: cardFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#pan-price-cards .pricing-card:nth-child(1) {
    animation-delay: 0.15s;
}

#pan-price-cards .pricing-card:nth-child(2) {
    animation-delay: 0.3s;
}

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

#pan-price-cards .pricing-card.popular {
    animation: cardFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
        popularGlow 4s ease-in-out 1.5s infinite;
}

/* ── Duration selector entrance ── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#pan-price-cards .duration-selector {
    animation: fadeDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

/* ── Step sizing: tighter for 100vh panels ── */
#pan-how .steps-grid {
    gap: 40px;
}

#pan-how .step-number {
    width: 64px;
    height: 64px;
    font-size: 22px;
    margin-bottom: 16px;
}

#pan-how .step-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

#pan-how .step-content p {
    font-size: 14px;
    line-height: 1.6;
}

#pan-how .steps-line {
    top: 38px;
}


/* ── Step Card Entrance: Sequential Drop-In ── */
#pan-how .step-card {
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes stepDropIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
        filter: blur(3px);
    }

    60% {
        opacity: 1;
        transform: translateY(8px) scale(1.03);
        filter: blur(0);
    }

    80% {
        transform: translateY(-3px) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

#pan-how.fp-active .step-card:nth-child(1) {
    animation: stepDropIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both,
        cardGlowPulse 0.6s ease 0.75s both;
}

#pan-how.fp-active .step-card:nth-child(2) {
    animation: stepDropIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both,
        cardGlowPulse 0.6s ease 0.95s both;
}

#pan-how.fp-active .step-card:nth-child(3) {
    animation: stepDropIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s both,
        cardGlowPulse 0.6s ease 1.15s both;
}


/* ── Pricing Cards: Duration Button Slide-In ── */
#pan-price-cards .duration-btn {
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes btnSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

#pan-price-cards.fp-active .duration-btn:nth-child(1) {
    animation: btnSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

#pan-price-cards.fp-active .duration-btn:nth-child(2) {
    animation: btnSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

#pan-price-cards.fp-active .duration-btn:nth-child(3) {
    animation: btnSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

#pan-price-cards.fp-active .duration-btn:nth-child(4) {
    animation: btnSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}


/* ── Reviews: Testimonial Card Entrance ── */
#pan-reviews .testimonial-card {
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes testimonialSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(3px);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

#pan-reviews.fp-active .testimonial-card:nth-child(1) {
    animation: testimonialSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

#pan-reviews.fp-active .testimonial-card:nth-child(2) {
    animation: testimonialSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

#pan-reviews.fp-active .testimonial-card:nth-child(3) {
    animation: testimonialSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — FPS Pricing Panel Overrides (CSS-only, no repositioning)
   Only scales sizes and adjusts grid columns.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤1100px): 2-column pricing grid ── */
@media (max-width: 1100px) {
    #pan-price-cards .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Mobile / Small Tablet (≤768px) ── */
@media (max-width: 768px) {

    /* Allow cards panel to scroll internally */
    #pan-price-cards .fp-panel-content {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Single column grid */
    #pan-price-cards .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Duration buttons wrap nicely */
    #pan-price-cards .duration-selector {
        flex-wrap: wrap;
        gap: 8px;
    }

    #pan-price-cards .duration-btn {
        min-width: 0;
        flex: 1;
        padding: 10px 8px;
    }

    /* Trust bar stacks */
    .fp-trust-bar {
        gap: 12px;
    }

    .fp-trust-item {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {

    /* Duration 2-per-row on tiny screens */
    #pan-price-cards .duration-btn {
        flex: 1 1 45%;
    }

    /* Tighter card padding */
    #pan-price-cards .pricing-card {
        padding: 16px 14px;
    }

    #pan-price-cards .pricing-features li {
        font-size: 12px;
        padding: 3px 0;
    }

    /* Trust pills smaller */
    .fp-trust-item {
        padding: 6px 12px;
        font-size: 11px;
        gap: 6px;
    }
}