/* lc-pricing: the pricing page's own layout (templates/auth/pricing.html).
 *
 * Design direction 2026-10-14 (docs/design-system/IMPLEMENTATION_SPEC.md,
 * UX_AUDIT finding 4): a landing page whose hero is the plan - the card on
 * the left, what happens next on the right, the membership band to close.
 * Polish v2 (POLISH_SPEC section 5, "/pricing"): the title sits over the
 * card so the right column starts beside it; in the card the plans and
 * their buttons come before the list of what is included, so both prices
 * and both buttons are in the first screen (audit CONV-12, SYS-M4).
 *
 * Page layout and the plan card only. The document sheet (.lc-sheet), the FAQ
 * (.lc-faq), the band (.lc-band), the trust line and strip and the consent
 * row (.lc-consent) are site components in lc-shells.css and are used by
 * their class names. Linked from the template rather than bundled: no other
 * page needs these rules, and app.content.css is loaded by every content page.
 */

/* The bottom padding meets the band's own 2rem top padding (lc-shells.css),
 * so the gap before the band is a little more than the columns keep between
 * them, not twice a section. */
.lc-pricing {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

/* ── Title and lead, over the plan card in the left column ── */

.lc-pricing__intro {
    margin-bottom: 1.5rem;
}

/* (0,2,0): .premium-body h1 (0,1,1) in premium-redesign.css would otherwise
 * set the colour and weight, as it did when the plan name was the h1. The size
 * is the page-title role from the tokens, not a value of this page's own. */
.lc-pricing .lc-pricing__title {
    font-family: var(--lc-font-display);
    font-size: var(--lc-h1-page);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
    color: var(--lc-navy-ink);
    margin: 0 0 0.75rem;
}

/* What the documents are, one line under the title (bounce plan item 13). */
.lc-pricing__product {
    font-family: var(--lc-font-display);
    font-size: var(--lc-fs-ui);
    font-weight: 600;
    line-height: 1.4;
    color: var(--lc-navy-ink);
    margin: 0 0 0.5rem;
}

/* The lead takes the column's measure (the column is at most 38rem). */
.lc-pricing__lead {
    font-size: var(--lc-fs-lead, 1.125rem);
    line-height: 1.5;
    color: var(--lc-text-secondary);
    max-width: 60ch;
    margin: 0;
}

/* ── Two columns from 992px; phones stack them, card first ──
 *
 * The card column is capped (30rem with one plan, 38rem with two) so the
 * price and the buttons keep a card's width; the right column takes the
 * rest. On a phone the card is the first screen, which is the page's job. */
.lc-pricing__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .lc-pricing__grid {
        grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
        gap: 3rem;
    }

    .lc-pricing__grid--two-plans {
        grid-template-columns: minmax(0, 38rem) minmax(0, 1fr);
    }
}

.lc-pricing__main {
    min-width: 0;
}

.lc-pricing__aside {
    display: grid;
    gap: 2.5rem;
    min-width: 0;
}

/* The foundation's bare-section rhythm padded these two sections, and "How
 * it works" sat 65px under the card's top edge (audit CONV-11). */
.lc-pricing__aside > section {
    padding: 0;
}

@media (min-width: 992px) {
    .lc-pricing__aside {
        padding-top: 0.5rem;
    }
}

/* Section headings in the right column: below the plan's own name, so the
 * offer outranks what sits beside it (audit CONV-14). (0,2,0) beats
 * .premium-body h2. */
.lc-pricing .lc-pricing__heading {
    font-family: var(--lc-font-display);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--lc-navy-ink);
    margin: 0 0 1rem;
}

/* ── Notices: why the visitor was sent here, directly above the card ── */

.lc-pricing-notices {
    margin-bottom: 1rem;
}

/* ── The plan card ── */

.lc-plan-card {
    background: var(--lc-surface);
    border: 1px solid var(--lc-border-strong);
    border-radius: var(--lc-radius-card);
    box-shadow: var(--lc-shadow);
    padding: 1.5rem;
}

/* Phones: the option cards are the cards; the outer card's border, shadow
 * and padding only squeezed them (audit CONV-14). */
@media (max-width: 575.98px) {
    .lc-plan-card {
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}

/* The plan's name, the card's heading: the strongest type after the page's
 * h1. (0,2,0) beats .premium-body h2. */
.lc-plan-card .lc-plan-name {
    font-family: var(--lc-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--lc-navy-ink);
    margin: 0 0 0.25rem;
}

.lc-plan-price {
    font-family: var(--lc-font-display);
    font-size: clamp(2.5rem, 6vw, 3.25rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--lc-navy-ink);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

/* The interval is part of the price, not a footnote. This product charged
   the same figure once, for its whole life, so the number alone still
   reads as a one-time cost to anyone who knew it before. */
.lc-plan-interval {
    font-family: var(--lc-font-body);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: normal;
    color: var(--lc-muted);
}

.lc-plan-value {
    color: var(--lc-navy-ink);
    font-size: var(--lc-fs-ui);
    font-weight: 600;
    line-height: 1.45;
    margin: 0.5rem 0 1rem;
}

/* The 56px step: the hero size from the button scale, full width of the card
 * so it is the same target on a phone. */
.lc-plan-card .lc-pricing__join {
    width: 100%;
    min-height: 56px;
    font-size: 1.0625rem;
}

/* One plan: its button under the consent row, not flush against it. */
.lc-plan-card > .lc-pricing__join {
    margin-top: 0.75rem;
}

/* ── Two plans (yearly and monthly), side by side from 576px ──
 * Shown only while the monthly price is configured (auth.plan.plan_choice).
 * The yearly option comes first and carries the best-value mark; each has its
 * own button and its own renewal sentence. */
.lc-plan-choose {
    color: var(--lc-text-secondary);
    margin: 0;
}

/* The badge sits on the top edge, so it pushes neither column down and the
 * prices and the buttons line up (audit CONV-13). */
.lc-plan-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem 1rem;
    margin-top: 1.25rem;
}

@media (min-width: 576px) {
    .lc-plan-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lc-plan-option {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--lc-surface);
    border: 1px solid var(--lc-border-strong);
    border-radius: var(--lc-radius);
    padding: 1.5rem 1rem 1.25rem;
    min-width: 0;
}

/* The better deal: a 2px edge instead of 1px; the padding gives the extra
 * pixel back so its contents stay level with the other option's. */
.lc-plan-option--best {
    border: 2px solid var(--lc-navy-ink);
    padding: calc(1.5rem - 1px) calc(1rem - 1px) calc(1.25rem - 1px);
}

.lc-plan-option__badge {
    position: absolute;
    top: 0;
    left: 1rem;
    transform: translateY(-50%);
    background: var(--lc-navy-ink);
    color: var(--lc-surface);
    border-radius: 999px;
    font-family: var(--lc-font-display);
    font-size: var(--lc-fs-caption);
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    padding: 0.125rem 0.625rem;
    margin: 0;
}

.lc-plan-card .lc-plan-option__name {
    font-family: var(--lc-font-display);
    font-size: var(--lc-fs-ui);
    font-weight: 700;
    letter-spacing: normal;
    color: var(--lc-navy-ink);
    margin: 0 0 0.25rem;
}

.lc-plan-price--option {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.lc-plan-option__note {
    color: var(--lc-text-secondary);
    font-size: var(--lc-fs-small);
    line-height: 1.45;
    margin: 0.25rem 0 1rem;
    flex: 1 0 auto;
}

/* Both plan buttons are the 56px step, yearly filled and monthly outlined
 * (audit CONV-M5); the label never wraps (CONV-13). */
.lc-plan-option .lc-pricing__join {
    font-size: var(--lc-fs-ui);
    white-space: nowrap;
    padding-inline: 0.75rem;
}

/* The auto-renew terms, directly under the button that starts the plan. */
.lc-plan-renewal {
    color: var(--lc-muted);
    font-size: var(--lc-fs-small);
    line-height: 1.5;
    margin: 0.75rem 0 0;
}

/* What pressing the button starts (the sign-in provider and Stripe) and the
 * way in for an account that exists: one block of fine print at the foot of
 * the card (audit CONV-21). */
.lc-plan-fine {
    color: var(--lc-muted);
    font-size: var(--lc-fs-small);
    line-height: 1.5;
    margin: 1.25rem 0 0;
}

.lc-plan-fine + .lc-plan-fine {
    margin-top: 0.25rem;
}

.lc-plan-card .lc-trust-line {
    margin: 0.75rem 0 0;
}

/* Stripe, cancelling and refunds, tight under the price line it qualifies. */
.lc-plan-card #pricing-safety-line {
    margin: -0.5rem 0 1rem;
}

/* "Everything included": the five facts, under the decision. */
.lc-plan-card .lc-plan-includes__title {
    font-family: var(--lc-font-display);
    font-size: var(--lc-fs-ui);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--lc-navy-ink);
    margin: 1.5rem 0 0.5rem;
}

.lc-plan-includes {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--lc-border);
}

.lc-plan-includes li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    font-size: var(--lc-fs-ui);
    color: var(--lc-text);
    line-height: 1.45;
    border-bottom: 1px solid var(--lc-border);
}

.lc-plan-includes li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--lc-success);
    font-weight: 700;
}

.lc-plan-status {
    background: var(--lc-surface-muted);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    padding: 0.875rem;
    margin-bottom: 1rem;
    font-size: var(--lc-fs-small);
    color: var(--lc-text-secondary);
}

/* A member's "Manage membership" form: inline so the button sits in the flow
 * of the card, as the Join button does for everyone else. */
.lc-plan-manage {
    display: inline;
}

/* The box the server asks for once per account (auth/delivery_consent.py):
 * the site's consent row (lc-shells .lc-consent), directly above the buttons
 * it gates; its label is the tap target, and the script marks it invalid when
 * Join is pressed without it (audit CONV-15). */
.lc-plan-card .lc-plan-consent {
    margin: 0;
    font-size: var(--lc-fs-small);
    cursor: pointer;
}

.lc-plan-card .lc-consent__error {
    margin: 0.375rem 0 0;
}

.lc-plan-card #subscribeMessage {
    margin: 0.75rem 0 0;
}

/* The trust strip under the plans (POLISH_SPEC 3.10). */
.lc-pricing__trust {
    margin-top: 1.25rem;
}

/* ── The three steps ──
 *
 * A numbered list drawn with counters: the number is a navy circle, the title
 * and the line sit beside it. Markup is a plain <ol>, so it reads in order
 * with the stylesheet off. */
.lc-pricing__steps {
    list-style: none;
    counter-reset: lc-pricing-step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

.lc-pricing__step {
    position: relative;
    padding-left: 3.25rem;
    counter-increment: lc-pricing-step;
    min-height: 2.25rem;
}

.lc-pricing__step::before {
    content: counter(lc-pricing-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--lc-navy);
    color: var(--lc-on-navy);
    font-family: var(--lc-font-display);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-pricing__step h3 {
    font-family: var(--lc-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--lc-navy-ink);
    margin: 0.25rem 0 0.25rem;
}

.lc-pricing__step p {
    font-size: var(--lc-fs-small);
    line-height: 1.55;
    color: var(--lc-text-secondary);
    margin: 0;
}

/* ── The sample sheet ──
 *
 * The sheet itself is the site component; this only keeps it from stretching
 * to the column's full width on a wide screen, where a lease page that wide
 * would not read as a page. */
.lc-pricing__sample {
    max-width: 30rem;
}

/* The sample lease's page shows from 576px (lc-shells.css .lc-sample-page);
 * on a phone the line under the plan card names it. */
@media (max-width: 575.98px) {
    .lc-pricing__sample {
        display: none;
    }
}

/* The closing band (.lc-band) follows .lc-pricing as its own section and
 * brings its own spacing from lc-shells.css; nothing to add here. */
