/* ==========================================================================
   Subscription page — product blocks.

   The N-column feature-comparison table this page used to render is gone
   (see the docblock in pages/subscribe.php for why), and so are the
   .plan-compare-* / .pos-types-* rules that dressed it. What replaces it is
   one stacked block per product: prose on the left, price on the right.

   Colours stay on Bootstrap's own primary (#0d6efd) rather than introducing a
   second palette — this is an in-app page and should read as part of the app.
   ========================================================================== */

/* Kept: used by older/other subscription surfaces, not by this page. */
.subscription-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.subscription-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.subscription-box img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.subscription-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 20px 0;
}

.choose-btn {
    margin-top: 10px;
}

a[aria-disabled="true"] {
    background-color: gray;
    border: 1px solid #eee;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---------- page frame ---------------------------------------------------- */

.products-head {
    max-width: 640px;
    margin-bottom: 2.75rem;
}

/* Gap, not per-block margins: sibling spacing that cannot collapse or double
   when a product is added or removed from $productOrder. */
.products {
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* ---------- one product -------------------------------------------------- */

.product {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 2rem;
}

/* Only the lead product is lifted. Border, fill and shadow each say
   "separate object", so spending them on all three would flatten the
   hierarchy back into a tier ladder. */
.product-lead {
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 6px 28px rgba(13, 110, 253, 0.08);
}

/* Not a step number: this names WHAT KIND of product the block is, which is
   the distinction the page exists to make. */
.product-kind {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 0.85rem;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.product-title-text {
    min-width: 0;   /* lets a long product name wrap instead of pushing the badge out */
}

.product-icon {
    height: 44px;
    width: auto;
    flex: 0 0 auto;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
    margin: 0;
}

.product-tagline {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0.2rem 0 0;
}

.product-badge {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.25);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    white-space: normal;   /* the Spanish badges are longer; let them wrap */
}

/* The description IS the feature list on this page. Held near 62ch so it
   reads as writing rather than as a wall. */
.product-body {
    font-size: 0.975rem;
    line-height: 1.72;
    color: #3d444b;
    max-width: 62ch;
    margin: 0 0 0.9rem;
}

.product-body:last-child {
    margin-bottom: 0;
}

.product-verticals {
    font-size: 0.93rem;
    line-height: 1.65;
    color: #3d444b;
    max-width: 62ch;
    border-left: 3px solid rgba(13, 110, 253, 0.25);
    padding-left: 0.9rem;
    margin: 1.25rem 0 0;
}

.product-verticals-eg {
    color: #8a9199;
}

/* ---------- price panel -------------------------------------------------- */

.price-panel {
    background: #fbfcfd;
    border: 1px solid #e6e8eb;
    border-radius: 0.85rem;
    padding: 1.35rem 1.25rem 1.25rem;
}

.product-lead .price-panel {
    background: rgba(13, 110, 253, 0.05);
    border-color: rgba(13, 110, 253, 0.2);
}

.price-panel-compact {
    padding: 1.1rem 1.1rem 1rem;
}

.price-was {
    font-size: 0.85rem;
    color: #8a9199;
    margin-bottom: 0.15rem;
}

.price-was-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: 0.35rem;
}

.price-was s {
    font-variant-numeric: tabular-nums;
}

.price-now {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.price-now-amount {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #0d6efd;
}

.price-now-period {
    font-size: 0.95rem;
    color: #6c757d;
}

.price-founding-tag {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #146c43;
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.25);
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
}

.price-annual {
    font-size: 0.83rem;
    line-height: 1.5;
    color: #6c757d;
    margin-top: 0.6rem;
}

.price-facts {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #5a6169;
}

.price-facts li {
    padding-left: 0.95rem;
    position: relative;
}

.price-facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.55);
}

.price-locked {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #8a9199;
    text-align: center;
    margin: 0.75rem 0 0;
}

/* ---------- the School Edition, inside the POS block --------------------- */

.edition {
    margin-top: 1.75rem;
    padding-top: 1.6rem;
    border-top: 1px dashed #d9dee4;
}

.edition-kind {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.edition-name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
    margin: 0 0 0.9rem;
}

/* Deep links land clear of the viewport edge (#product-enterprise_pos_school
   is linkable from anywhere that wants to point at the school offer). */
.product,
.edition {
    scroll-margin-top: 1.5rem;
}

/* ---------- small screens ------------------------------------------------ */

@media (max-width: 575.98px) {
    .product {
        padding: 1.35rem 1.15rem 1.6rem;
        border-radius: 0.75rem;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .product-badge {
        margin-left: 0;
        order: 3;
        flex-basis: 100%;
    }

    .price-now-amount {
        font-size: 2.1rem;
    }
}
