/* ══════════════════════════════════════════════
   PRICING SECTION
══════════════════════════════════════════════ */
.pricing {
    padding: 100px 6%;
    background: var(--cream);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Base card ── */
.pricing-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    /* Cubic-bezier matches the site's .price-box hover */
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Animated gradient border layer (hidden by default) */
.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(115deg,
            rgba(201, 168, 76, 0.35) 11%,
            rgba(255, 255, 255, 0) 50%,
            rgba(201, 168, 76, 0.35) 92%);
    opacity: 0;
    transition: opacity 0.4s linear;
    pointer-events: none;
    z-index: 0;
}

/* All direct children sit above the pseudo-layer */
.pricing-card>* {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

/* ── Base card hover ── */
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.10);
    border-color: var(--gold);
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Rotate the badge on hover — mirrors .price-box:hover .price-plan */
.pricing-card:hover .pricing-badge {
    animation: pricingBadgeSpin 0.5s ease forwards;
}

@keyframes pricingBadgeSpin {
    0% {
        transform: rotateX(0deg);
    }

    100% {
        transform: rotateX(360deg);
    }
}

/* ── CTA button fill on hover ── */
.pricing-card:hover .btn-outline {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.pricing-card:hover .btn-primary {
    background: var(--gold-light);
}

/* ── Featured (dark) card ── */
.pricing-card--featured {
    background: var(--ink);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.pricing-card--featured::before {
    background: linear-gradient(115deg,
            rgba(201, 168, 76, 0.25) 11%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(201, 168, 76, 0.25) 92%);
}

.pricing-card--featured:hover {
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
    border-color: var(--gold-light);
}

/* ── Typography ── */
.pricing-badge {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 0;
    transition: transform 0.4s linear;
    font-size: 22px;
}

.pricing-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
    animation: priceFade 0.7s alternate linear forwards;
}

@keyframes priceFade {
    0% {
        transform: scale(0.88);
    }

    100% {
        transform: scale(1);
    }
}

.pricing-card--featured .pricing-price {
    color: var(--white);
}

.pricing-price span {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
}

.pricing-card--featured .pricing-price span {
    color: rgba(255, 255, 255, 0.5);
}

.pricing-desc {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.5;
}

.pricing-card--featured .pricing-desc {
    color: rgba(255, 255, 255, 0.5);
}

.pricing-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0.55rem;
    transition: color 0.2s;
}

.pricing-card:hover .pricing-features li::before {
    background: var(--ink);
}

.pricing-card--featured .pricing-features li {
    color: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.pricing-card--featured .pricing-features li::before {
    background: var(--gold);
}

.pricing-card--featured:hover .pricing-features li::before {
    background: var(--gold-light);
}