/* PositionPay Landing — scoped styles for WordPress */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* Isolate from parent theme */
body.positionpay-landing-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #020617 !important;
    overflow-x: hidden;
}

body.positionpay-landing-page #page,
body.positionpay-landing-page .site,
body.positionpay-landing-page .site-content,
body.positionpay-landing-page main,
body.positionpay-landing-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

body.admin-bar.positionpay-landing-page #positionpay-landing nav#navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar.positionpay-landing-page #positionpay-landing nav#navbar {
        top: 46px;
    }
}

#positionpay-landing {
    font-family: 'Inter', system-ui, sans-serif;
    color: #fff;
    background-color: #020617;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#positionpay-landing .logo-font {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

#positionpay-landing .hero-bg {
    background: radial-gradient(at center, #1e1135 0%, #0f0a1f 70%);
    position: relative;
    overflow: hidden;
}

#positionpay-landing .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: pp-orb-float 12s ease-in-out infinite;
    pointer-events: none;
}

#positionpay-landing .hero-orb-1 { width: 420px; height: 420px; background: #7C3AED; top: -10%; left: 10%; animation-delay: 0s; }
#positionpay-landing .hero-orb-2 { width: 320px; height: 320px; background: #22C55E; bottom: 5%; right: 5%; animation-delay: -4s; }
#positionpay-landing .hero-orb-3 { width: 200px; height: 200px; background: #4C1D95; top: 40%; right: 30%; animation-delay: -8s; }

@keyframes pp-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

#positionpay-landing .energy-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #34d399 50%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#positionpay-landing .animated-gradient {
    background: linear-gradient(270deg, #4C1D95, #7C3AED, #22C55E, #16A34A, #4C1D95);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pp-gradient-move 6s ease infinite;
}

@keyframes pp-gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#positionpay-landing .fintech-gradient {
    background: linear-gradient(135deg, #4C1D95 0%, #1e1135 40%, #0f5132 100%);
}

#positionpay-landing .ticker {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

#positionpay-landing .ticker-content {
    display: inline-flex;
    animation: pp-ticker-slide 30s linear infinite;
    will-change: transform;
}

@keyframes pp-ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#positionpay-landing .premium-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#positionpay-landing .premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgb(34 197 94 / 0.15);
    border-color: rgb(34 197 94 / 0.3);
}

#positionpay-landing .cta-pulse {
    animation: pp-cta-glow 2.5s ease-in-out infinite;
}

@keyframes pp-cta-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5), 0 10px 30px -5px rgba(52, 211, 153, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0), 0 10px 40px -5px rgba(52, 211, 153, 0.5); }
}

#positionpay-landing .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#positionpay-landing .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

#positionpay-landing .reveal-delay-1 { transition-delay: 0.1s; }
#positionpay-landing .reveal-delay-2 { transition-delay: 0.2s; }
#positionpay-landing .reveal-delay-3 { transition-delay: 0.3s; }

#positionpay-landing .tier-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

#positionpay-landing .tier-card:hover,
#positionpay-landing .tier-card.active {
    transform: scale(1.03);
    border-color: rgb(34 197 94 / 0.6);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}

#positionpay-landing .tier-card.active {
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.3) 0%, rgba(34, 197, 94, 0.1) 100%);
}

#positionpay-landing .calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #334155 var(--pct, 30%), #22C55E var(--pct, 30%));
    outline: none;
}

#positionpay-landing .calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22C55E;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s;
}

#positionpay-landing .calc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

#positionpay-landing .social-toast {
    animation: pp-toast-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               pp-toast-out 0.4s ease 4.5s forwards;
}

@keyframes pp-toast-in {
    from { opacity: 0; transform: translateX(-100%) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes pp-toast-out {
    to { opacity: 0; transform: translateX(-20px); }
}

#positionpay-landing .sticky-cta {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#positionpay-landing .sticky-cta.show { transform: translateY(0); }

#positionpay-landing .spots-bar {
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#positionpay-landing .count-up { font-variant-numeric: tabular-nums; }

#positionpay-landing .step-connector { position: relative; }

#positionpay-landing .step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #22C55E, transparent);
    display: none;
}

#positionpay-landing .timeline-step.active .timeline-dot {
    background: #22C55E;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25), 0 0 20px rgba(34, 197, 94, 0.4);
}

#positionpay-landing .timeline-step.active .timeline-label { color: #34d399; }

#positionpay-landing .timeline-step.active .timeline-period { color: #34d399; }

#positionpay-landing .timeline-step.active {
    border-color: rgba(52, 211, 153, 0.3);
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05), transparent);
}

#positionpay-landing .win-feed-item {
    animation: pp-feed-slide 0.5s ease forwards;
}

@keyframes pp-feed-slide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

#positionpay-landing .form-input {
    width: 100%;
    background: rgb(30 41 59);
    border: 1px solid rgb(51 65 85);
    border-radius: 1rem;
    padding: 0.875rem 1.25rem;
    color: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

#positionpay-landing .form-input:focus {
    outline: none;
    border-color: #22C55E;
}

#positionpay-landing .form-input::placeholder { color: #94a3b8; }

#positionpay-landing .submit-loading { opacity: 0.7; pointer-events: none; }

#positionpay-landing button {
    cursor: pointer;
    border: none;
}

/* --- Dynamic scrolling & interface refinements --- */

#pp-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 60;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #7C3AED, #22C55E);
    pointer-events: none;
}

body.admin-bar.positionpay-landing-page #pp-scroll-progress { top: 32px; }

#positionpay-landing nav#navbar .flex.h-24,
#positionpay-landing nav#navbar img {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#positionpay-landing nav#navbar.pp-nav-compact .flex.h-24 { height: 4rem; }
#positionpay-landing nav#navbar.pp-nav-compact img { height: 3.5rem; }

#pp-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem;
    z-index: 45;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgb(51 65 85);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
#pp-back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#pp-back-to-top:hover { color: #fff; border-color: rgba(34, 197, 94, 0.5); box-shadow: 0 0 18px rgba(34, 197, 94, 0.2); }

#positionpay-landing #waitlist-modal > div {
    animation: pp-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pp-modal-in {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#positionpay-landing .ticker:hover .ticker-content { animation-play-state: paused; }

#positionpay-landing :is(button, a, input, select, textarea):focus-visible {
    outline: 2px solid #22C55E;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #positionpay-landing .hero-orb,
    #positionpay-landing .ticker-content,
    #positionpay-landing .cta-pulse,
    #positionpay-landing .animated-gradient,
    #positionpay-landing .social-toast,
    #positionpay-landing .win-feed-item,
    #positionpay-landing #waitlist-modal > div {
        animation: none !important;
    }
    #positionpay-landing .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #positionpay-landing .premium-card,
    #positionpay-landing .tier-card,
    #positionpay-landing .sticky-cta,
    #positionpay-landing .spots-bar,
    #pp-back-to-top,
    #positionpay-landing nav#navbar .flex.h-24,
    #positionpay-landing nav#navbar img {
        transition: none;
    }
}

@media (min-width: 768px) {
    #positionpay-landing .step-connector::after { display: block; }
    #positionpay-landing .step-connector:last-child::after { display: none; }
}