/* The pricing page.
 *
 * This file exists because the page had no stylesheet at all. base.html has an
 * extra_css block and only index.html and roast.html filled it, so /pricing
 * rendered with Bootstrap defaults: everything flush to the left edge, three
 * tiers stacked as plain divs. Five of its classes were not defined anywhere.
 *
 * Deliberately self-contained rather than reusing roast.css. The page was
 * borrowing .roast-page and .roast-header off a stylesheet it never loaded,
 * which is exactly how it ended up looking broken without anyone noticing.
 */

.pricing-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 70px 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-header h1 {
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 900;
    margin: 8px 0 12px;
}

.pricing-header p {
    color: var(--muted);
    font-size: 19px;
    margin: 0;
}

.eyebrow {
    color: var(--pink);
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    font-size: 14px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--card);
    border: 1px solid #2a2a2a;
    border-radius: 22px;
    padding: 32px 28px;
    /* Column layout so every card's CTA sits on the same line regardless of
       how many bullets the tier has. */
    display: flex;
    flex-direction: column;
}

.pricing-card h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 4px;
}

.pricing-card .price {
    font-size: 44px;
    font-weight: 900;
    color: var(--pink);
    margin: 0 0 20px;
    line-height: 1.1;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.pricing-card li {
    color: var(--muted);
    padding: 9px 0 9px 26px;
    position: relative;
    border-top: 1px solid #222;
}

.pricing-card li:first-child {
    border-top: none;
}

.pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--pink);
    font-weight: 900;
}

.pricing-card li strong {
    color: var(--white);
}

/* margin-top:auto pins the CTA to the bottom of the card. The form wrapper
   needs it too, since the button is a grandchild once CSRF wraps it. */
.pricing-card > form,
.pricing-card > .nav-cta,
.pricing-card > button {
    margin-top: auto;
}

.pricing-card .nav-cta,
.pricing-card button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 18px;
    border: none;
    border-radius: 12px;
    background: var(--pink);
    color: var(--white);
    font-weight: 900;
    font-size: 17px;
    font-family: inherit;
    cursor: pointer;
}

.pricing-card button[disabled] {
    background: #2a2a2a;
    color: var(--muted);
    cursor: not-allowed;
}

/* The tier the business wants sold. */
.pricing-card.featured {
    border-color: var(--pink);
    box-shadow: 0 0 0 1px var(--pink), 0 18px 40px rgba(255, 45, 122, 0.14);
    position: relative;
}

.pricing-card.featured::before {
    content: "BEST VALUE";
    position: absolute;
    top: -11px;
    left: 28px;
    background: var(--pink);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    padding: 4px 10px;
    border-radius: 999px;
}

.pricing-notes {
    margin-top: 36px;
    text-align: center;
}

.pricing-notes p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* One column well before the cards get too narrow to read. The featured
   badge would also collide with the card above it in a cramped grid. */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pricing-page {
        padding: 44px 18px;
    }
}
