/* ============================================================================
   Pricing page. Reuses the site's price-card, sec-head and btn styles; only
   the page-specific layout lives here.
   ========================================================================== */

.pr-hero {
    padding: 150px 0 40px;
    text-align: center;
}
.pr-hero h1 {
    font-family: var(--font-disp);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--text);
    margin: 18px 0 0;
}
.pr-lede {
    max-width: 560px;
    margin: 16px auto 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text2);
}

#plan { padding: 24px 0 70px; }

/* ---- Billing toggle ----
   Two positions above the price, YEARLY and MONTHLY, in the pass card. It is a
   switch on a panel, so it borrows the rail's language from site.css: the
   selected position lights the way .tab.on does — one hairline ring plus a
   soft glow — in the pass's own neon (--tc is what the rail glows with, set
   here so the rule reads the same). Each position is a real button at thumb
   height, so it works one-handed on a phone. checkout.js sets aria-checked,
   swaps the price copy, and hides the whole thing when the Worker has no
   yearly price; [hidden] is spelled out because display:flex would otherwise
   win over it. */
.bill-toggle {
    --tc: var(--neon);
    display: flex;          /* block-level, so it takes its own line under the pill */
    width: fit-content;
    gap: 4px;
    margin: 26px auto 0;
    padding: 4px;
    background: var(--card);
    border: 1px solid var(--line2);
    border-radius: 11px;
}
.bill-toggle[hidden] { display: none; }
.bill-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.22s, border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
.bill-opt:hover { color: var(--text2); border-color: var(--line3); }
.bill-opt[aria-checked="true"] {
    background: var(--drawer);
    border-color: var(--tc);
    color: var(--text);
    box-shadow: 0 0 0 1px var(--tc), 0 0 18px -4px var(--tc);
    cursor: default;
}
/* The saving rides on the yearly position as a small lit tag, so it is read
   whichever position is selected. */
.bill-opt em {
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.16em;
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--neon);
    background: var(--neon-soft);
}
/* The price sits closer under the switch than it does under the pill alone. */
.bill-toggle:not([hidden]) + .price-line { margin-top: 22px; }

@media (max-width: 480px) {
    /* Inside its padding the card is ~250px wide at 375px: the two labels only
       fit as equal halves, with the tag on its own line under YEARLY. */
    .bill-toggle { width: 100%; }
    .bill-opt {
        flex: 1 1 0;
        flex-direction: column;
        gap: 4px;
        min-height: 48px;
        padding: 6px 4px;
        letter-spacing: 0.14em;
    }
}

.pr-fineprint {
    max-width: 560px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    color: var(--faint);
}
.pr-fineprint a {
    color: var(--text2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Buy just one ----
   These cards double as the "what's in the pass" list: the same six plugins
   listed twice on one page would just be noise. Each one carries its plugin's
   accent through the .acc-* scopes site.css already defines. */
.pr-single { padding: 30px 0 60px; }
.buy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 14px;
    margin-top: 34px;
}
/* The transition repeats .rv's so the scroll reveal still runs: this file is
   loaded after site.css, so a plain hover transition here would kill it. */
.buy-card {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,.9,.3,1),
                border-color 0.25s ease, box-shadow 0.25s ease;
}
.buy-card:hover {
    border-color: var(--line3);
    box-shadow: 0 0 0 1px var(--kn-soft, var(--neon-soft));
}
.buy-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.buy-head img {
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
}
.buy-name {
    display: block;
    font-family: var(--font-disp);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
a.buy-name:hover { color: var(--kn, var(--neon)); }
.buy-desc {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--dim);
}
/* Pushed to the floor of the card so the prices and buttons line up across a row. */
.buy-buy {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.buy-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--kn, var(--neon));
}
.buy-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 8px 0 16px;
}
.buy-price .was {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--faint);
}
.buy-price .now {
    font-family: var(--font-disp);
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
    color: var(--text);
    text-shadow: 0 0 22px var(--kn-soft, var(--neon-soft));
}
/* Outlined on purpose: the only filled button on this page is the pass. */
.buy-card .btn {
    width: 100%;
    padding: 13px;
    border-color: var(--kn, var(--neon));
    color: var(--kn, var(--neon));
}
.buy-card .btn:hover {
    border-color: transparent;
    background: var(--kn, var(--neon));
    color: #0F1114;
    box-shadow: 0 0 18px var(--kn-glow, var(--neon-glow));
}
.buy-alt {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: var(--faint);
}
.buy-alt a {
    color: var(--text2);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.buy-alt a:hover { color: var(--neon); }

/* ---- FAQ ---- */
.pr-faq { padding: 30px 0 90px; }
.pr-qa {
    max-width: 720px;
    margin: 34px auto 0;
}
.pr-qa h3 {
    font-family: var(--font-disp);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 30px 0 8px;
}
.pr-qa h3:first-child { margin-top: 0; }
.pr-qa p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text2);
    margin: 0;
}
.pr-qa a {
    color: var(--neon);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pr-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 50px;
}

@media (max-width: 640px) {
    .pr-hero { padding: 120px 0 30px; }
    .pr-cta { flex-direction: column; align-items: stretch; }
}
