﻿/* ===== Pro Pricing ===== */
.pro-pricing {
    padding: 4rem 0 3.5rem;
    background: radial-gradient(1200px 600px at 50% -200px,#eef2ff 0%,#fff 45%);
}

.pro-pricing__header {
    max-width: 820px;
    margin: 0 auto 2rem
}

.pro-pricing__title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .5rem
}

.pro-pricing__intro {
    color: #475569;
    font-size: 1.05rem
}

.pro-pricing__note {
    color: #64748b;
    font-size: .95rem
}

/* ===== Card as Grid (ensures perfect vertical rhythm) ===== */
.pp-card {
    /* grid with 4 rows: head, price, features (flexible), CTA */
    display: grid;
    grid-template-rows: var(--pp-head-h) var(--pp-price-h) 1fr auto;
    --pp-head-h: 116px; /* unify header height across cards (desktop) */
    --pp-price-h: 56px; /* unify price row height */
    background: linear-gradient(180deg,#fff 0%,#fbfbff 100%);
    border: 1px solid #e6e8ef;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(2,6,23,.06);
    transition: transform .25s ease,box-shadow .25s ease,border-color .25s ease;
    position: relative;
    width: 100%;
}

    .pp-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(2,6,23,.12);
        border-color: #d1d5db
    }

/* badge & ribbon */
.pp-card__badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: #0ea5e9;
    color: #fff;
    font-weight: 800;
    font-size: .78rem;
    padding: .32rem .6rem;
    border-radius: 999px;
    z-index: 3
}

.pp-card__ribbon {
    position: absolute;
    top: 12px;
    inset-inline-end: -30px;
    transform: rotate(45deg);
    background: #eef2f7;
    color: #64748b;
    font-weight: 700;
    font-size: .72rem;
    padding: .3rem 2.2rem;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(2,6,23,.08)
}
/* RTL ribbon flip */
:root:dir(rtl) .pp-card__ribbon {
    inset-inline-end: auto;
    inset-inline-start: -30px;
    transform: rotate(-45deg)
}

/* head (fixed row height) */
.pp-card__head {
    padding: 1.05rem 1.1rem .7rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .65rem;
    row-gap: .35rem;
    align-items: center;
    overflow: hidden
}

.pp-card__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 16px;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px rgba(67,56,202,.15);
    grid-row: 1 / span 2
}

.pp-card__icon--featured {
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(29,78,216,.18)
}

.pp-card__title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.pp-card__subtitle {
    font-size: .92rem;
    color: #475569;
    margin: 0;
    line-height: 1.35;
    overflow: hidden
}

/* price (fixed row height) */
.pp-card__price {
    padding: .2rem 1.1rem 0;
    display: flex;
    align-items: baseline;
    gap: .35rem;
    flex-wrap: wrap;
}

.pp-card__value {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    font-variant-numeric: tabular-nums
}

.pp-card__currency, .pp-card__period {
    color: #475569;
    font-weight: 700
}

/* features (flexible row) */
.pp-card__features {
    list-style: none;
    padding: .8rem 1.1rem 1.1rem;
    margin: 0;
    display: grid;
    gap: .45rem;
    align-content: start;
}

    .pp-card__features li {
        color: #334155;
        font-size: .965rem;
        line-height: 1.6;
        position: relative;
        padding-inline-start: 1.35rem
    }

        .pp-card__features li::before {
            content: "✓";
            position: absolute;
            inset-inline-start: 0;
            top: 0;
            transform: translateY(2px);
            color: #16a34a;
            font-weight: 900
        }

html[dir="rtl"] .pp-card__features li {
    padding-inline-start: 0;
    padding-inline-end: 1.35rem
}

    html[dir="rtl"] .pp-card__features li::before {
        inset-inline-start: auto;
        inset-inline-end: 0
    }



/* states */
.pp-card--featured {
    border-color: #c7d2fe;
    background: linear-gradient(180deg,#fff 0%,#eef2ff 100%);
    box-shadow: 0 12px 36px rgba(29,78,216,.12)
}

.pp-card--module .pp-card__icon {
    background: #ecfeff;
    color: #0e7490
}

/* columns equal height in Bootstrap row */
.row > [class*="col-"].d-flex > .pp-card {
    width: 100%
}

/* responsive fine-tuning */
@media (max-width: 991.98px) {
    .pp-card {
        --pp-head-h: 124px
    }
}

@media (max-width: 575.98px) {
    .pp-card {
        --pp-head-h: auto;
        grid-template-rows: auto auto 1fr auto
    }

    .pp-card__value {
        font-size: 1.85rem
    }

    .pp-card__title {
        white-space: normal
    }
}
