/* ==========================================================================
   IPW Pricing Page — Invitation-themed Pricing Cards
   Inspired by Canva / Gretta style pricing
   ========================================================================== */

/* --- Section --- */
.ipw-pricing {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 20px 48px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

/* --- Header --- */
.ipw-pricing__header {
    text-align: center;
    margin-bottom: 48px;
}

.ipw-pricing__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7c3aed;
    margin: 0 0 10px;
}

.ipw-pricing__heading {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.15;
}

.ipw-pricing__subheading {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 0 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* --- Grid --- */
.ipw-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    align-items: stretch;
    max-width: 1140px;
    margin: 0 auto;
}

/* --- Plan Card --- */
.ipw-plan {
    position: relative;
    z-index: 1;
}

.ipw-plan__body {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ipw-plan:hover .ipw-plan__body {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

/* --- Featured Card --- */
.ipw-plan--featured {
    z-index: 2;
}

.ipw-plan--featured .ipw-plan__body {
    border: 2px solid #7c3aed;
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.12);
    padding-top: 32px;
    transform: translateY(-16px);
    background: linear-gradient(180deg, #faf5ff 0%, #fff 40%);
}

.ipw-plan--featured:hover .ipw-plan__body {
    box-shadow: 0 16px 56px rgba(124, 58, 237, 0.18);
}

/* Badge (top ribbon) */
.ipw-plan__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 20px;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* --- Tagline (non-featured) --- */
.ipw-plan__tagline {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 6px;
}

/* --- Plan Name --- */
.ipw-plan__name {
    font-size: 1.35rem;
    font-weight: 750;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.2;
}

/* --- Description --- */
.ipw-plan__desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 20px;
    min-height: 44px;
}

/* --- Price --- */
.ipw-plan__price {
    display: flex;
    align-items: baseline;
    gap: 1px;
    margin-bottom: 6px;
}

.ipw-plan__currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    align-self: flex-start;
    margin-top: 6px;
}

.ipw-plan__amount {
    font-size: 3.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -1px;
}

.ipw-plan__period {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-left: 4px;
    line-height: 1.3;
}

/* Key Features Badges */
.ipw-plan__key-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}

.ipw-plan__type-badge,
.ipw-plan__duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ipw-plan__type-badge {
    background: #f0e6ff;
    color: #7c3aed;
}
.ipw-plan__type-badge.ipw-type--video {
    background: #ffe4ec;
    color: #e11d48;
}
.ipw-plan__type-badge.ipw-type--pdf {
    background: #dbeafe;
    color: #2563eb;
}
.ipw-plan__type-badge.ipw-type--both {
    background: #d1fae5;
    color: #059669;
}

.ipw-plan__duration-badge {
    background: #fff7ed;
    color: #ea580c;
}

.ipw-duration-highlight {
    color: #ff7396;
    font-weight: 700;
}

/* --- CTA Button --- */
.ipw-plan__cta {
    display: block;
    width: 100%;
    padding: 13px 24px;
    margin: 16px 0 0;
    border: 2px solid #7c3aed;
    border-radius: 12px;
    background: #fff;
    color: #7c3aed;
    font-size: 0.95rem;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    line-height: 1.3;
}

.ipw-plan__cta:hover {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
    transform: translateY(-1px);
}

.ipw-plan--featured .ipw-plan__cta {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.25);
}

.ipw-plan--featured .ipw-plan__cta:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35);
    transform: translateY(-2px);
}

.ipw-plan__cta:disabled,
.ipw-plan__cta.ipw-loading {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Divider --- */
.ipw-plan__divider {
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0 18px;
}

/* --- Features --- */
.ipw-plan__features-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ipw-plan__features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.ipw-plan__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
}

.ipw-plan__check {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: #7c3aed;
    margin-top: 1px;
}

.ipw-plan--featured .ipw-plan__check {
    color: #7c3aed;
}

/* --- Footer --- */
.ipw-pricing__footer {
    text-align: center;
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 40px 0 0;
    padding: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .ipw-pricing__grid {
        gap: 20px;
    }

    .ipw-plan--featured .ipw-plan__body {
        transform: none;
    }
}

@media (max-width: 700px) {
    .ipw-pricing {
        padding: 36px 16px 32px;
    }

    .ipw-pricing__header {
        margin-bottom: 36px;
    }

    .ipw-pricing__heading {
        font-size: 1.65rem;
    }

    .ipw-pricing__subheading {
        font-size: 0.95rem;
    }

    .ipw-pricing__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    .ipw-plan--featured .ipw-plan__body {
        transform: none;
    }

    .ipw-plan__body {
        padding: 28px 22px 24px;
        border-radius: 16px;
    }

    .ipw-plan__amount {
        font-size: 2.6rem;
    }

    .ipw-plan__badge {
        top: -12px;
    }
}
