/* =========================================================
   PRICING SECTION — premium cards
   Palette from the PX logo (electric blue -> violet)
========================================================= */

:root {
    --pr-blue: #2e5af8;
    --pr-violet: #7b2ff7;
    --pr-grad: linear-gradient(135deg, var(--pr-blue), var(--pr-violet));
    --pr-ink: #0b1130;
    --pr-muted: #5b6178;
    --pr-bg: #f6f5ff;
    --pr-card: #ffffff;
    --pr-line: #e4e1fa;
    --pr-shadow: 0 30px 60px -25px rgba(90, 31, 214, 0.28);
}

.fourth {
    position: relative;
    padding: 120px 8%;
    background: var(--pr-bg);
    overflow: hidden;
    font-family: var(--primary-font, sans-serif);
}

.pr-glow {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: var(--pr-grad);
    opacity: 0.08;
    filter: blur(150px);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- heading ---------- */
.pr-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pr-violet);
    margin-bottom: 16px;
}

.pr-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pr-grad);
}

.fourth h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pr-ink);
    margin: 0 0 14px;
    text-align: center;
}

.fourth>.pr-head p {
    color: var(--pr-muted);
    font-size: 17px;
    margin: 0;
    text-align: center;
}

/* ---------- panel + cards ---------- */
.pricing {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    z-index: 1;
}

.plan-card {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    flex-wrap: wrap;
}

.cards {
    background: var(--pr-card);
    border: 1px solid var(--pr-line);
    border-radius: 24px;
    padding: 44px 32px;
    flex: 1 1 320px;
    max-width: 370px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 16px 36px -20px rgba(11, 17, 48, 0.15);
    transition: transform 0.35s cubic-bezier(.16, .8, .3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.cards:hover {
    transform: translateY(-8px);
    box-shadow: var(--pr-shadow);
    border-color: transparent;
}

.is-popular {
    border: 2px solid var(--pr-violet);
    box-shadow: var(--pr-shadow);
    transform: scale(1.045);
    z-index: 2;
}

.is-popular:hover {
    transform: scale(1.045) translateY(-8px);
}

.pr-ribbon {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pr-grad);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 12px 24px -10px rgba(123, 47, 247, 0.55);
    white-space: nowrap;
}

.pr-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--pr-grad);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pr-card-head h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pr-ink);
    margin: 0 0 6px;
}

.pr-tag {
    color: var(--pr-muted);
    font-size: 14px;
    margin: 0 0 26px;
}

/* ---------- price block ---------- */
.pr-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.pr-regular {
    text-decoration: line-through;
    color: var(--pr-muted);
    font-size: 15px;
}

.pr-save {
    font-size: 11.5px;
    font-weight: 700;
    color: #1a8a4a;
    background: #e7f8ee;
    border-radius: 20px;
    padding: 3px 10px;
}

.pr-amount {
    width: 100%;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--pr-ink);
    line-height: 1.1;
}

.pr-amount span {
    font-size: 15px;
    font-weight: 600;
    color: var(--pr-muted);
}

/* ---------- benefits ---------- */
.plan-benefits {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex: 1;
}

.plan-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--pr-ink);
}

.plan-benefits li.no {
    color: var(--pr-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.plan-benefits li::before {
    content: "\2713";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
    background: var(--pr-grad);
    color: #fff;
}

.plan-benefits li.no::before {
    content: "\2715";
    background: var(--pr-line);
    color: var(--pr-muted);
}

/* ---------- button ---------- */
.cards > a,
.cards button,
.cards .cards-btn {
    margin-top: auto;
    text-decoration: none;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: var(--primary-button-color, var(--pr-grad));
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s ease;
    box-sizing: border-box;
}

.cards > a:hover,
.cards button:hover,
.cards .cards-btn:hover {
    background: var(--primary-button-hover-color, var(--pr-violet));
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -14px rgba(46, 90, 248, 0.5);
    color: white;
}

/* ---------- scroll reveal ---------- */
.fourth [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16, .8, .3, 1), transform 0.7s cubic-bezier(.16, .8, .3, 1);
}

.fourth [data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

.plan-card .cards[data-reveal] {
    transition-delay: 0s;
}

.plan-card .cards:nth-child(2)[data-reveal].in-view {
    transition-delay: 0.1s;
}

.plan-card .cards:nth-child(3)[data-reveal].in-view {
    transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    .fourth [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================
   RESPONSIVE PRICING SECTION 
========================= */
@media (max-width: 1080px) {
    .plan-card {
        gap: 26px;
    }

    .is-popular {
        transform: none;
    }

    .is-popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 560px) {
    .fourth {
        padding: 80px 6%;
    }

    .fourth h2 {
        font-size: 2.1rem;
    }

    .cards {
        padding: 36px 24px;
    }

    .pr-amount {
        font-size: 2.1rem;
    }
}

/* =========================================================
   PRICING — MOBILE SWIPE CAROUSEL
========================================================= */

@media (max-width: 860px) {
    .pricing {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }

    .plan-card {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 14px;
        padding: 22px 4px 6px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* hide native scrollbar */
    .plan-card::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .cards {
        flex: 0 0 82%;
        max-width: 82%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .is-popular {
        transform: none;
    }

    .is-popular:hover,
    .cards:hover {
        transform: none;
        box-shadow: 0 16px 36px -20px rgba(11, 17, 48, 0.15);
    }

    .is-popular:hover {
        box-shadow: var(--pr-shadow);
    }

    /* dot pagination */
    .pr-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 28px;
    }

    .pr-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--pr-line);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
    }

    .pr-dot.is-active {
        width: 24px;
        border-radius: 5px;
        background: var(--pr-grad);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plan-card {
        scroll-behavior: auto;
    }
}