/* ─────────────────────────────────────
   Pricing page – full-width wrapper
   ───────────────────────────────────── */
.pricing-wrapper {
    background-color: #ffffff;
    color: #650640;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

/* thin brand-gradient strip across the very top */
.pricing-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f4bfad, #650640, #f4bfad);
}

/* ─────────────────────────────────────
   Header – headline + sub-copy
   ───────────────────────────────────── */
.pricing-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #650640;
    font-weight: 700;
}

.pricing-header p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─────────────────────────────────────
   Card grid
   ───────────────────────────────────── */
.pricing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

/* base card */
.card {
    width: 320px;
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    background-color: #ffffff;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ─────────────────────────────────────
   Card internals
   ───────────────────────────────────── */
.header {
    display: flex;
    flex-direction: column;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: #650640;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    color: #650640;
    margin-top: 0.5rem;
}

.price span {
    font-size: 1.5rem;
    vertical-align: super;
}

.desc {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.625;
    color: #6b7280;
    min-height: 60px;
}

.lists {
    margin-bottom: 1.5rem;
    flex: 1 1 0%;
    color: #6b7280;
}

.list {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.list svg {
    height: 1.2rem;
    width: 1.2rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
    color: #650640;
}

/* ─────────────────────────────────────
   CTA buttons
   ───────────────────────────────────── */
.action {
    border: none;
    outline: none;
    display: inline-block;
    border-radius: 0.5rem;
    background-color: #650640;
    padding: 0.85rem 1.25rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(101, 6, 64, 0.2);
}

.action:hover {
    background-color: #4a0430;
    box-shadow: 0 6px 16px rgba(101, 6, 64, 0.3);
    transform: translateY(-2px);
}

/* outline variant for "Contact Us" */
.contact-btn {
    background-color: transparent;
    border: 2px solid #650640;
    color: #650640;
    box-shadow: none;
}

.contact-btn:hover {
    background-color: #650640;
    box-shadow: 0 4px 12px rgba(101, 6, 64, 0.25);
    color: #ffffff;
}

/* ─────────────────────────────────────
   Popular card – visually elevated
   ───────────────────────────────────── */
.popular {
    position: relative;
    overflow: hidden;
    border: 2px solid #650640;
    background: linear-gradient(180deg, #fff0ed 0%, #ffffff 35%);
    box-shadow: 0 8px 30px rgba(101, 6, 64, 0.15);
    transform: scale(1.04);
    z-index: 1;
}

.popular:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 14px 36px rgba(101, 6, 64, 0.22);
}

/* popular card gets the secondary (pink) CTA */
.popular .action {
    background-color: #f4bfad;
    color: #650640;
    box-shadow: 0 4px 12px rgba(244, 191, 173, 0.35);
}

.popular .action:hover {
    background-color: #e8a896;
    box-shadow: 0 6px 16px rgba(244, 191, 173, 0.5);
    transform: translateY(-2px);
}

/* ribbon */
.popular::before {
    content: "MOST POPULAR";
    position: absolute;
    top: 32px;
    right: -68px;
    background: #650640;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.3rem 0;
    transform: rotate(45deg);
    width: 200px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ─────────────────────────────────────
   Responsive – stack cards vertically
   ───────────────────────────────────── */
@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 1.5rem;
    }

    /* disable scale on mobile – stacked layout doesn't need it */
    .popular {
        transform: scale(1);
    }

    .popular:hover {
        transform: translateY(-5px);
    }

    .pricing-header h1 {
        font-size: 2rem;
    }
}

/* ─────────────────────────────────────
   Mobile plan-toggle (≤ 480 px)
   ───────────────────────────────────── */
.mobile-toggle {
    display: none;
}

@media (max-width: 480px) {
    .mobile-toggle {
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem;
        background-color: #f5f5f5;
        border-radius: 30px;
        padding: 0.3rem;
        width: 100%;
        max-width: 400px;
    }

    .toggle-option {
        padding: 0.7rem 1.5rem;
        border-radius: 30px;
        cursor: pointer;
        text-align: center;
        flex: 1;
        font-weight: 600;
        color: #650640;
        transition: all 0.3s ease;
    }

    .toggle-option.active {
        background-color: #650640;
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(101, 6, 64, 0.3);
    }

    .card {
        display: none;
    }

    #starter-toggle:checked~.pricing-cards #starter-card,
    #professional-toggle:checked~.pricing-cards #professional-card,
    #business-toggle:checked~.pricing-cards #business-card {
        display: flex;
    }
}