/*
 * software-subscription.php only: pricing section (#plans.sub-pricing).
 * Builds on plan-cards.css (shared with hire-puvnaa.php / partner-program.php),
 * which is left untouched; everything here is scoped to .sub-pricing.
 */

/* ---------------------------------------------------------------- intro */
.plan-cards.sub-pricing .numbers-header {
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 56px;
}

.plan-cards.sub-pricing .numbers-header-content {
    max-width: 900px;
}

.plan-cards.sub-pricing .numbers-header-button {
    flex: 0 0 auto;
}

.plan-cards.sub-pricing .sub-pricing-lead,
.plan-cards.sub-pricing .sub-pricing-note {
    max-width: 720px;
}

.plan-cards.sub-pricing .sub-pricing-lead {
    margin-top: 24px;
    color: var(--c_neutral--200, #c6c7cc);
}

.plan-cards.sub-pricing .sub-pricing-note {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--c_brand--500, #5b2ce8);
    color: var(--c_neutral--300);
}

/* ---------------------------------------------------------------- cards */
.plan-cards.sub-pricing .sub-plan {
    position: relative;
}

.plan-cards.sub-pricing .sub-plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 16px;
}

.plan-cards.sub-pricing .sub-plan-head .plan-label {
    margin: 0;
}

.plan-cards.sub-pricing .sub-plan-title {
    margin-bottom: 24px;
    color: var(--c_neutral--white);
}

.plan-cards.sub-pricing .sub-plan-price {
    margin-bottom: 24px;
}

.plan-cards.sub-pricing .sub-plan-price .plan-period {
    margin: 4px 0 0;
}

/* "Starting at" above the ERP price; the other cards keep an empty slot so all
   three prices sit on one line on desktop */
.plan-cards.sub-pricing .sub-plan-from {
    margin-bottom: 4px;
    color: var(--c_brand--200, #a498fe);
}

.plan-cards.sub-pricing .sub-plan-from--empty {
    visibility: hidden;
}

.plan-cards.sub-pricing .sub-plan-price-note {
    margin: 0 0 24px;
    padding: 12px 14px;
    border-left: 2px solid var(--c_brand--500, #5b2ce8);
    background: rgb(255 255 255 / .04);
    color: var(--c_neutral--200, #babcc2);
}

/* the plan's headline feature (Multi-Branch Management on Business) */
.plan-cards.sub-pricing .plan-includes li.sub-plan-feature--key {
    color: var(--c_brand--200, #a498fe);
    font-weight: var(--fw--medium, 500);
}

.plan-cards.sub-pricing .plan-includes li.sub-plan-feature--key:before {
    background: var(--c_brand--200, #a498fe);
}

.plan-cards.sub-pricing .number-desc {
    margin-bottom: 32px;
    padding-right: 0;
}

/* shared CSS pushes the list down with margin-top:auto; here the CTA does that */
.plan-cards.sub-pricing .plan-includes {
    margin: 0;
}

.plan-cards.sub-pricing .plan-includes li span {
    display: block;
    color: var(--c_neutral--300);
    font-size: .875em;
}

.plan-cards.sub-pricing .sub-plan-fit {
    margin-top: 24px;
    color: var(--c_neutral--300);
}

.plan-cards.sub-pricing .sub-plan-fit span {
    display: block;
    margin-bottom: 4px;
    color: var(--c_neutral--white);
    font-weight: var(--fw--medium, 500);
}

.plan-cards.sub-pricing .sub-plan-cta {
    margin-top: auto;
    padding-top: 32px;
}

.plan-cards.sub-pricing .sub-plan-cta .cta_button {
    justify-content: center;
    width: 100%;
    min-height: 56px;
    text-align: center;
}

/* same 1px border as the ghost buttons so all three CTAs are the same height */
.plan-cards.sub-pricing .sub-plan-cta .cta_button--primary {
    border: 1px solid var(--c_brand--500, #5b2ce8);
}

/* ghost button: give it a visible text colour and a quiet hover fill on the dark block */
.plan-cards.sub-pricing .sub-plan-cta .cta_button--ghost--primary {
    color: var(--c_neutral--white);
}

.plan-cards.sub-pricing .sub-plan-cta .cta_button--ghost--primary:hover {
    background: rgb(91 44 232 / .16);
    color: var(--c_neutral--white);
}

/* ------------------------------------------------- featured: Business plan */
.plan-cards.sub-pricing .sub-plan--featured {
    background: rgb(91 44 232 / .06);
    box-shadow: inset 0 0 0 1px var(--c_brand--500, #5b2ce8);
}

.plan-cards.sub-pricing .sub-plan-badge {
    padding: 4px 10px;
    border: 1px solid var(--c_brand--500, #5b2ce8);
    border-radius: 100px;
    background: rgb(91 44 232 / .24);
    color: var(--c_neutral--white);
    letter-spacing: .04em;
    white-space: nowrap;
}

/* Card body (ERP price note, description, features, fit, CTA): a column whose
   CTA is pushed to the bottom, so the three buttons share one line. */
.plan-cards.sub-pricing .sub-plan-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

/* Desktop: head, title and price share grid rows across the three plans, so
   the prices line up; the body then flows freely below each price (ERP's
   pricing note does not push the other cards' content down). */
@media screen and (min-width: 1025px) {
    @supports (grid-template-rows: subgrid) {
        .plan-cards.sub-pricing .numbers-items {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .plan-cards.sub-pricing .sub-plan {
            display: grid;
            grid-row: span 4;
            grid-template-rows: subgrid;
            row-gap: 0;
        }
    }
}

/* ---------------------------------------------------------- Android add-on */
.plan-cards.sub-pricing .sub-addon {
    align-items: flex-start;
}

.plan-cards.sub-pricing .sub-addon .plan-addon-body p + p {
    margin-top: 8px;
}

.plan-cards.sub-pricing .sub-addon-cta {
    display: inline-flex;
    margin-top: 24px;
}

/* ------------------------------------------------------------ terms notes */
.plan-cards.sub-pricing .sub-terms {
    margin-top: 24px;
}

.plan-cards.sub-pricing .sub-terms .plan-note--key li {
    color: var(--c_neutral--white);
}

/* ------------------------------------------------------------- responsive */
@media screen and (max-width: 1024px) {
    .plan-cards.sub-pricing .numbers-header {
        margin-bottom: 40px;
    }

    /* cards are stacked, so there is no row of prices to line up */
    .plan-cards.sub-pricing .sub-plan-from--empty {
        display: none;
    }

    .plan-cards.sub-pricing .sub-plan-cta {
        padding-top: 28px;
    }
}

@media only screen and (max-width: 768px) {
    .plan-cards.sub-pricing .sub-pricing-lead {
        margin-top: 16px;
    }

    .plan-cards.sub-pricing .sub-addon .plan-addon-price {
        white-space: normal;
    }

    .plan-cards.sub-pricing .sub-addon .plan-addon-plus {
        display: none;
    }
}
