/* ==========================================================================
   Component: Pricing Table
   Cards, rows, and featured-cards layouts
   ========================================================================== */

/* ---------- Section backgrounds ---------- */

.pricing {
    padding: 64px 0 80px;
}
.pricing .btn-primary{
    display: flex;
    width: fit-content;
    margin: 30px auto 0;
}

.pricing--white {
    background: #fff;
}

.pricing--red {
    background: var(--red-bg);
}

.pricing--purple {
    background: var(--purple-section);
}

/* ---------- Cards layout ---------- */

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing__grid--2col {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
}

.price-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
}

.price-card--featured {
    background: linear-gradient(135deg, #452e86, #7c34a7);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.price-card--featured:hover {
    box-shadow: 0 28px 48px -12px rgba(0, 0, 0, 0.3);
}

.price-card__label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6f6f89;
    margin-bottom: 8px;
}

.price-card--featured .price-card__label {
    color: rgba(255, 255, 255, 0.6);
}

.price-card__price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 30px;
    color: var(--purple-text);
    margin-bottom: 8px;
}

.price-card--featured .price-card__price {
    color: #fff;
}

.price-card__note {
    font-size: 12.5px;
    line-height: 1.7;
    color: #6f6f89;
    margin-bottom: 20px;
}

.price-card--featured .price-card__note {
    color: rgba(255, 255, 255, 0.6);
}

.price-card__list {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}

.price-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.3px;
    line-height: 1.625;
    color: #4b4b5d;
    margin-bottom: 10px;
}

.price-card--featured .price-card__list li {
    color: rgba(255, 255, 255, 0.8);
}

.price-card__list li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 9999px;
    background: var(--red-btn);
    color: #fff;
    font-size: 9.6px;
    font-weight: 700;
    margin-top: 2px;
}

.price-card--featured .price-card__list li::before {
    background: rgba(255, 255, 255, 0.2);
}

.price-card__btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14.1px;
    background: var(--red-btn);
    color: #fff;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.25s ease,
                background-color 0.25s ease;
}

.price-card__btn:hover {
    transform: translateY(-2px);
    background-color: #c41a27;
    box-shadow: 0 4px 14px -2px rgba(223, 32, 46, 0.3);
}

.price-card--featured .price-card__btn {
    background: #fff;
    color: var(--purple-dark);
}

.price-card--featured .price-card__btn:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 14px -2px rgba(69, 46, 134, 0.3);
}

/* ---------- Rows layout (compact cards) ---------- */

.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.price-card-sm {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.price-card-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
}

.price-card-sm__label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12.5px;
    color: #6f6f89;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    margin-bottom: 8px;
}

.price-card-sm__price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--purple-text);
    margin-bottom: 8px;
}

.price-card-sm__note {
    font-size: 12.8px;
    line-height: 1.7;
    color: #67677a;
}

/* ---------- Footnote ---------- */

.pricing-note {
    font-size: 13.1px;
    color: #616174;
}

.pricing-note a {
    color: #5f4ba6;
    text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .pricing__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .pricing__grid,
    .pricing__grid--2col,
    .price-grid {
        grid-template-columns: 1fr;
    }
}
