/* pricing.css — styling for the F5.C6 /pricing page. Layered on top of
   styles.css; reuses the night-sky palette and the .container width.
   Refactored at F4.C2.4: every literal hex colour was replaced with a
   brand token from www/brand.css. No bare `#...` literal appears below
   this comment (BR4.C2.1). */

.pricing-page {
    background: linear-gradient(180deg, var(--brand-night-1) 0%, var(--brand-night-2) 45%, var(--brand-night-3) 100%);
    min-height: 100vh;
}

/* ---- Pricing hero ---- */

.pricing-hero {
    padding: 9rem 2rem 3rem;
    text-align: center;
}

.pricing-hero h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.pricing-hero p {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.15rem);
    color: rgba(255, 255, 255, 0.55);
    max-width: 540px;
    margin: 0 auto;
}

/* ---- Plan grid ---- */

.pricing-plans {
    padding: 2rem 2rem 7rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(251, 191, 36, 0.3);   /* var(--brand-accent) at 30% alpha — the rgba() form is a CSS feature, not a literal */
    transform: translateY(-2px);
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.plan-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.plan-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-accent);
    letter-spacing: -0.02em;
}

.plan-price-period {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

.plan-price-annual {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    flex-grow: 1;
}

.plan-features li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    padding: 0.45rem 0 0.45rem 1.6rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-accent);
}

.plan-cta {
    display: block;
    text-align: center;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.93);
    color: var(--brand-rust);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}

.plan-cta:hover {
    transform: translateY(-1px);
    background: var(--brand-fg-on-warm);
}

.plan-cta:active {
    transform: translateY(0);
}

.plan-refund {
    margin-top: 1rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ---- Footer link ---- */

.pricing-page footer a {
    color: rgba(69, 26, 3, 0.6);
}

/* ---- Legal document (F12.C1 refund policy) ---- */

.legal-doc {
    max-width: 46rem;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-doc h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.25rem;
}

.legal-doc p {
    margin: 0 0 1rem;
}

/* The "Draft pending legal review" banner on the F18 legal documents. */
.legal-meta {
    margin: 0 0 1.5rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--brand-accent);
    background: rgba(251, 191, 36, 0.08);   /* var(--brand-accent) at 8% alpha */
    font-size: 0.95rem;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
    .plan-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing-hero {
        padding: 7rem 1.5rem 2rem;
    }

    .pricing-plans {
        padding: 1.5rem 1.5rem 5rem;
    }
}
