/* ═════════════════════════════════════════════════════════════════════════════
   EXACT MATCH REFERENCE DESIGN — LUXURY SAAS SUBSCRIPTION UI
   Pixel-Perfect match to reference screenshot:
   - "World-class design. One flat monthly rate." typography
   - Two-panel master card:
     * Left: "Scale Fast" with lightning bolt, Book a call, Flexibility Note, Guarantee
     * Right: Atmospheric sunset gradient, "● 02 Spots Left", Italic serif "Creative Partnership",
       $3,995/month, "Start a Project →", Features & The Ecosystem 2-column checklists
   - Carousel capability with top navigation dots & 4s rotation
   - Subtle orange-glow next card preview stacked behind
   ═════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Left Side Container ── */
.pricing-side {
    flex: 1.65;
    background: #08080a;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    box-sizing: border-box;
}

/* Atmospheric subtle ambient lighting in background */
.pricing-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 800px 500px at 50% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 80% 80%, rgba(249, 115, 22, 0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.pricing-wrapper {
    width: 100%;
    max-width: 780px;
    margin: auto 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Typography Above Card (Exact Reference Match) ── */
.pricing-header-area {
    text-align: center;
    margin-bottom: 24px;
    max-width: 680px;
}

.pricing-ref-title-line1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: #ffffff;
    margin: 0;
}

.pricing-ref-title-line2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: #ffffff;
    margin: 4px 0 16px 0;
}

.pricing-ref-title-line2 span.serif-italic-accent {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    color: #d1d5db;
    letter-spacing: -0.02em;
}

.pricing-ref-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 580px;
    font-weight: 400;
    letter-spacing: -0.01em;
}



/* ── Page Changing Button Pair (Exact Match to Snippet: "Get Started →" & "Read Docs") ── */
.carousel-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px 0;
    z-index: 10;
}

/* Primary Button with Glowing Emerald Bottom Aura ("Get Started →" / "Next Plan →") */
.btn-emerald-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.16);
    /* Emerald radiant aura blossoming from bottom-center */
    background: 
        radial-gradient(ellipse 80% 65% at 50% 115%, #10b981 0%, rgba(5, 150, 105, 0.45) 45%, rgba(13, 16, 20, 0.95) 85%),
        #0b0d10;
    box-shadow: 
        0 0 18px rgba(16, 185, 129, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-emerald-glow:hover {
    box-shadow: 
        0 0 26px rgba(16, 185, 129, 0.65),
        0 6px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(52, 211, 153, 0.4);
    transform: translateY(-1px);
}

.btn-emerald-glow:active {
    transform: translateY(0);
}

.btn-emerald-glow i,
.btn-emerald-glow span.arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.btn-emerald-glow:hover i,
.btn-emerald-glow:hover span.arrow {
    transform: translateX(3px);
}

/* Secondary Button with Dark Glass Pill ("Read Docs" / "Previous Plan") */
.btn-dark-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-dark-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-dark-glass:active {
    transform: translateY(0);
}

/* ── Carousel Stage with Stacking ── */
.carousel-stage {
    position: relative;
    width: 100%;
    max-width: 740px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Next-Card Preview Layered Behind (Subtle Orange Glow) ── */
.carousel-preview-backdrop {
    position: absolute;
    top: 8px;
    right: -24px;
    width: 98%;
    height: 98%;
    border-radius: 24px;
    background: #0f1016;
    border: 1px solid rgba(249, 115, 22, 0.45);
    box-shadow: 
        0 0 35px rgba(249, 115, 22, 0.22),
        0 20px 50px rgba(0, 0, 0, 0.85);
    z-index: 1;
    opacity: 0.6;
    transform: translateX(18px) scale(0.96);
    cursor: pointer;
    transition: all 0.4s ease;
    pointer-events: auto;
}

.carousel-preview-backdrop:hover {
    opacity: 0.8;
    transform: translateX(22px) scale(0.97);
    border-color: rgba(249, 115, 22, 0.7);
    box-shadow: 
        0 0 45px rgba(249, 115, 22, 0.35),
        0 25px 60px rgba(0, 0, 0, 0.9);
}

/* ── MASTER ACTIVE CARD (Exact Structure of Reference Image) ── */
.master-pricing-card {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 730px;
    background: 
        radial-gradient(circle at 75% -10%, rgba(249, 115, 22, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 45% -10%, rgba(124, 58, 237, 0.3) 0%, transparent 60%),
        #0b0c11;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(124, 58, 237, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden;
    padding: 10px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* ── LEFT PANEL OF CARD ("Scale Fast") ── */
.card-left-panel {
    flex: 1.05;
    padding: 24px 22px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    background: transparent;
}

/* Rounded Square Glossy App Icon with White Lightning Bolt */
.scale-fast-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: 
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(0, 0, 0, 0.5) 100%),
        #21232c;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 10px 22px rgba(0, 0, 0, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 21px;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.scale-fast-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.62rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.scale-fast-desc {
    font-size: 0.83rem;
    color: #8e95a5;
    line-height: 1.5;
    margin: 0 0 18px 0;
    max-width: 300px;
    letter-spacing: -0.005em;
}

/* "Book a call" pill button */
.book-call-btn {
    align-self: flex-start;
    padding: 6px 18px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
}

.book-call-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Lower Section: Flexibility Note & The Guarantee */
.card-left-notes {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-line {
    font-size: 0.72rem;
    line-height: 1.45;
    color: #64748b;
}

.note-label {
    color: #ffffff;
    font-weight: 600;
}

.note-text {
    color: #7d889b;
}

/* ── RIGHT PANEL OF CARD (Elevated Sunset Gradient "Creative Partnership") ── */
.card-right-panel {
    flex: 1.25;
    border-radius: 22px;
    padding: 26px 24px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Atmospheric sunset/aurora gradient from reference */
    background: 
        radial-gradient(ellipse 90% 70% at 85% -10%, rgba(249, 115, 22, 0.45) 0%, rgba(220, 38, 38, 0.25) 30%, transparent 68%),
        radial-gradient(ellipse 80% 65% at 15% 10%, rgba(124, 58, 237, 0.48) 0%, transparent 70%),
        #0e1017;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Selected Plan Card Prominence Highlight */
.card-right-panel.is-selected-card {
    border-color: rgba(16, 185, 129, 0.32);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(16, 185, 129, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ── Viewport & Sliding Card Pane System for Smooth Page-Shift ── */
.plan-card-viewport {
    position: relative;
    width: 100%;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.plan-card-pane {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.plan-card-pane.is-current {
    position: relative;
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

.plan-card-pane.is-incoming {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

/* Horizontal slide classes (Desktop & Tablet) */
.plan-card-pane.shift-out-next {
    transform: translateX(-42px) scale(0.95);
    opacity: 0;
    filter: none;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
    pointer-events: none;
}

.plan-card-pane.shift-in-next {
    transform: translateX(45px) scale(0.95);
    opacity: 0;
    filter: none;
}

.plan-card-pane.shift-out-prev {
    transform: translateX(42px) scale(0.95);
    opacity: 0;
    filter: none;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
    pointer-events: none;
}

.plan-card-pane.shift-in-prev {
    transform: translateX(-45px) scale(0.95);
    opacity: 0;
    filter: none;
}

.plan-card-pane.shift-in-active {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: none;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
    pointer-events: auto;
}

/* Preview Backdrop Layer Shift */
.carousel-preview-backdrop.layer-shift-active {
    transform: translateX(8px) scale(0.985);
    opacity: 0.85;
    border-color: rgba(249, 115, 22, 0.7);
    box-shadow: 0 0 45px rgba(249, 115, 22, 0.4), 0 25px 60px rgba(0, 0, 0, 0.95);
}

/* Top: Status Badge ("● 02 Spots Left") */
.spots-left-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #022c22;
    border: 1px solid rgba(16, 185, 129, 0.38);
    border-radius: 99px;
    padding: 3px 12px;
    font-size: 0.7rem;
    color: #34d399;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 auto 16px auto;
}

.spots-green-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* Plan Title: Italic Serif 2 Lines "Creative \n Partnership" */
.partnership-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 2.35rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.015em;
    line-height: 1.08;
    margin: 0 0 14px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partnership-title .title-line-1,
.partnership-title .title-line-2 {
    display: block;
}

/* Price Row: "$3,995/month" */
.partnership-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 22px;
}

.price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.price-cycle {
    font-size: 0.92rem;
    color: #8e95a5;
    margin-left: 2px;
}

/* Wide Glossy "Start a Project →" Pill Button (Matching Reference) */
.start-project-btn {
    width: 88%;
    max-width: 280px;
    height: 44px;
    border-radius: 99px;
    background: linear-gradient(180deg, #2d303b 0%, #171922 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    transition: all 0.25s ease;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

.start-project-btn:hover {
    background: linear-gradient(180deg, #383c4a 0%, #1c1f2b 100%);
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.start-project-btn:active {
    transform: translateY(0);
}

.start-project-btn:disabled {
    opacity: 0.85;
    cursor: wait;
    transform: none;
    pointer-events: none;
}

.start-project-btn.is-selected {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: pulseSelectGlow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pulseSelectGlow {
    0% { transform: scale(0.96); box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); }
    50% { transform: scale(1.03); box-shadow: 0 0 28px rgba(16, 185, 129, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(16, 185, 129, 0.55); }
}

/* Bottom Row: (✔) Features  (✔) The Ecosystem */
.card-features-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 18px;
}

.card-feature-pill-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.card-feature-pill-btn:hover {
    color: #ffffff;
}

.card-feature-pill-btn i {
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* Features Slide-Up Popover / Modal (When clicking Features or The Ecosystem) */
.plan-details-popover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 16, 23, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
    z-index: 10;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-details-popover.is-open {
    transform: translateY(0);
}

.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.popover-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
}

.popover-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
}

.popover-close-btn:hover {
    color: #ffffff;
}

.popover-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    max-height: 180px;
    overflow-y: auto;
}

.popover-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #cbd5e1;
}

.popover-item i {
    color: #10b981;
    font-size: 0.75rem;
}

/* ── RESPONSIVE ADAPTATIONS (Tablets & Mobile) ── */

@media (max-width: 1100px) {
    .pricing-side {
        padding: 30px 16px;
    }
    .master-pricing-card {
        max-width: 100%;
    }
}

@media (max-width: 860px) {
    .pricing-side {
        display: flex !important;
        flex: none;
        width: 100%;
        padding: 32px 14px 20px 14px;
        min-height: auto;
    }

    .master-pricing-card {
        flex-direction: column;
    }

    .card-left-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 24px 20px;
    }

    .card-left-notes {
        margin-top: 18px;
        gap: 12px;
    }

    .card-right-panel {
        margin: 6px;
        padding: 22px 20px;
    }

    .carousel-preview-backdrop {
        display: none;
    }
}

/* Responsive Card Shift (< 768px) */
@media (max-width: 768px) {
    .plan-card-viewport {
        min-height: 250px;
    }

    .plan-card-pane.shift-out-next {
        transform: translateY(-16px) scale(0.97);
        opacity: 0;
        filter: none;
    }

    .plan-card-pane.shift-in-next {
        transform: translateY(18px) scale(0.97);
        opacity: 0;
        filter: none;
    }

    .plan-card-pane.shift-out-prev {
        transform: translateY(16px) scale(0.97);
        opacity: 0;
        filter: none;
    }

    .plan-card-pane.shift-in-prev {
        transform: translateY(-18px) scale(0.97);
        opacity: 0;
        filter: none;
    }

    .plan-card-pane.shift-in-active {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: none;
    }
}

@media (max-width: 480px) {
    .pricing-ref-title-line1,
    .pricing-ref-title-line2 {
        font-size: 1.85rem;
    }

    .partnership-title {
        font-size: 2rem;
    }

    .start-project-btn {
        width: 100%;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .plan-card-pane {
        transition: opacity 150ms ease !important;
        transform: none !important;
        filter: none !important;
    }
    .carousel-preview-backdrop {
        transition: none !important;
    }
    .start-project-btn.is-selected {
        animation: none !important;
    }
}
