/* ==========================================================================
   Pricing Table — sklare/pricing-table
   Premium Minimalism · Intentional Negative Space
   ========================================================================== */

/* ── Section ── */
.pricing-table {
    padding-block: clamp(96px, 12vw, 160px) clamp(80px, 10vw, 128px);
}

/* ── Header ── */
.pricing-table__header {
    text-align: center;
    margin-bottom: clamp(64px, 8vw, 96px);
}

.pricing-table__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--t1-heading-display); /* Schema: 32–48px fluid */
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--wp--preset--color--text-main);
    margin: 0;
}

.pricing-table__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: var(--wp--preset--font-size--base);
    color: var(--wp--preset--color--text-muted);
    margin-top: 16px;
    max-width: 520px;
    margin-inline: auto;
    line-height: 1.6;
}


/* ── Grid ── */
.pricing-table__grid {
    display: grid;
    grid-template-columns: repeat(var(--pricing-cols, 2), 1fr);
    gap: clamp(16px, 2vw, 24px);
    align-items: stretch;
}


/* ── Card (Base) ── */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--wp--preset--color--card, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: clamp(40px, 4vw, 56px) clamp(32px, 3vw, 44px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}


/* ── Card (Featured) ── */
.pricing-card--featured {
    border-color: var(--wp--preset--color--status-green);
    border-width: 2px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
}

.pricing-card--featured:hover {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}

/* Badge */
.pricing-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wp--preset--color--status-green);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 22px;
    border-radius: 100px;
    white-space: nowrap;
}


/* ── Card Head ── */
.pricing-card__head {
    padding-bottom: clamp(28px, 3vw, 40px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: clamp(28px, 3vw, 40px);
}

.pricing-card__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--wp--preset--color--text-main);
    margin: 0 0 6px 0;
}

.pricing-card__desc {
    font-family: 'Inter', sans-serif;
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--text-muted);
    line-height: 1.5;
    margin: 0;
}

.pricing-card__price-wrap {
    margin-top: clamp(20px, 2vw, 28px);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pricing-card__price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1;
    color: var(--wp--preset--color--text-main);
    letter-spacing: -0.02em;
}

.pricing-card__price-note {
    font-size: var(--wp--preset--font-size--sm);
    color: var(--wp--preset--color--text-muted);
}


/* ── Feature List ── */
.pricing-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: 'Inter', sans-serif;
    font-size: var(--wp--preset--font-size--base);
    line-height: 1.5;
    color: var(--wp--preset--color--text-main);
}

.pricing-card__features li.is-excluded {
    color: var(--wp--preset--color--text-muted);
    opacity: 0.6;
}

.pricing-feat__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 1px;
    /* Hide text content, use bg-image instead */
    font-size: 0;
    color: transparent;
    overflow: hidden;
}

li.is-included .pricing-feat__icon {
    background-color: var(--wp--preset--color--status-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M5.5 11l4 4 7-7' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: cover;
}

li.is-excluded .pricing-feat__icon {
    background-color: rgba(0, 0, 0, 0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M7 7l8 8M15 7l-8 8' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.5;
}

.pricing-feat__text {
    flex: 1;
    min-width: 0;
}


/* ── Footer / CTA ── */
.pricing-card__foot {
    margin-top: clamp(32px, 4vw, 48px);
    padding-top: clamp(28px, 3vw, 40px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* CTA Button — full width, prominent */
.pricing-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    /* Ghost style (default) */
    background: transparent;
    color: var(--wp--preset--color--text-main);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.pricing-card__cta:hover {
    background: var(--wp--preset--color--text-main);
    color: #ffffff;
    border-color: var(--wp--preset--color--text-main);
}

/* Featured CTA → status-green solid */
.pricing-card--featured .pricing-card__cta {
    background: var(--wp--preset--color--status-green);
    color: #ffffff;
    border-color: var(--wp--preset--color--status-green);
}

.pricing-card--featured .pricing-card__cta:hover {
    filter: brightness(0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* ── Dark Theme ── */
body.is-dark-theme .pricing-card {
    background: var(--wp--preset--color--card, #181818);
    border-color: rgba(255, 255, 255, 0.06);
}

body.is-dark-theme .pricing-card__head {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.is-dark-theme .pricing-card__foot {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.is-dark-theme .pricing-card__cta {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body.is-dark-theme .pricing-card__cta:hover {
    background: #ffffff;
    color: var(--wp--preset--color--text-main);
    border-color: #ffffff;
}

body.is-dark-theme li.is-included .pricing-feat__icon {
    background: none;
}

body.is-dark-theme li.is-excluded .pricing-feat__icon {
    background: none;
}


/* ── Responsive ── */
@media (max-width: 991px) {
    .pricing-table__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }

    .pricing-card--featured {
        transform: none;
    }

    .pricing-card--featured:hover {
        transform: translateY(-6px);
    }
}
