@charset "utf-8";

/*
    Pricing - the cards, the comparison table and the add-ons.
*/

/*  ? The popular card's flag hangs above the card, so the grid needs room for it or the flag is
    ? clipped by the section above. */
.pricing-cards .plan-grid {
    padding-top: 20px;
}

/*-------------------------------------------------------------------------------------------------
    The comparison table
-------------------------------------------------------------------------------------------------*/

/*  ? Its own scroll container. Five columns of pricing do not fit a phone, and without this the
    ? whole page scrolls sideways instead of the table. */
.pricing-matrix-scroll {
    overflow-x: auto;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    background-color: var(--mp-surface);
}

.pricing-matrix {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 14.5px;
}

.pricing-matrix th,
.pricing-matrix td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--mp-border);
    text-align: center;
    vertical-align: middle;
}

.pricing-matrix thead th {
    background-color: var(--mp-wash);
    border-bottom: 1px solid var(--mp-border);
    padding-top: 18px;
    padding-bottom: 18px;
}

.pricing-matrix-feature {
    text-align: left !important;
    font-weight: 600;
    color: var(--mp-ink);
    /*  ? The feature name column stays put while the tiers scroll past it, or a reader three
        ? columns across has no idea which row they are on. */
    position: sticky;
    left: 0;
    background-color: var(--mp-surface);
    min-width: 250px;
}

.pricing-matrix thead .pricing-matrix-feature {
    background-color: var(--mp-wash);
}

.pricing-matrix-tier {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-ink);
}

.pricing-matrix-price {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-muted);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/*  The recommended tier's column, tinted the whole way down */
.pricing-matrix-popular {
    background-color: var(--mp-red-wash) !important;
}

.pricing-matrix-group th {
    text-align: left;
    background-color: var(--mp-steel);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top: 10px;
    padding-bottom: 10px;
}

.pricing-yes {
    color: #1a9e57;
    font-size: 15px;
}

.pricing-no {
    color: #b6bfc8;
}

.pricing-value {
    font-weight: 600;
    color: var(--mp-ink);
    font-variant-numeric: tabular-nums;
}

/*-------------------------------------------------------------------------------------------------
    Add-ons
-------------------------------------------------------------------------------------------------*/

.addon-grid {
    display: flex;
    flex-wrap: wrap;
}

.addon-card {
    background-color: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    padding: 24px;
    height: 100%;
}

.addon-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.addon-card-name {
    font-size: 18px;
    margin: 0;
}

.addon-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--mp-ink);
    margin: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.addon-card-period {
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-muted);
    margin-left: 2px;
}

.addon-card-body {
    margin: 0;
    color: var(--mp-muted);
    font-size: 15px;
}

@media (max-width: 991px) {

    .addon-grid > div {
        margin-bottom: 16px;
    }
}
