/* Quan 3.5 pricing (launch Nov 1 2026). NEW rules only; the cards keep the
   existing .modern-plan-* / .plan-* / .pricing-note rules in /style.css.
   Deploy to public/assets/pricing-launch.css. */

/* ---- state switches (billing period, Plus Launch on/off) ---- */
.pricing-launch[data-billing="monthly"] [data-billing-only="annual"],
.pricing-launch[data-billing="annual"] [data-billing-only="monthly"],
.pricing-launch[data-plus-launch="off"] [data-launch-only],
.pricing-launch[data-plus-launch="on"] [data-standard-only] {
    display: none !important;
}

.pricing-launch :focus-visible {
    outline: 2px solid #2a7fff;
    outline-offset: 2px;
}

/* ---- monthly / annual toggle ---- */
.plan-billing {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 6px auto 4px;
    padding: 3px;
    border: 1px solid #243040;
    border-radius: 8px;
    background: #0d1117;
}
.plan-billing-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.plan-billing-option {
    position: relative;
    display: block;
    cursor: pointer;
}
.plan-billing-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.plan-billing-option span {
    display: block;
    min-height: 36px;
    padding: 9px 14px;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}
.plan-billing-option span em {
    font-style: normal;
    font-weight: 700;
    color: #10b981;
    margin-left: 4px;
}
.plan-billing-option input:checked + span {
    background: rgba(148,163,184,0.14);
    color: #f8fafc;
}
.plan-billing-option input:focus-visible + span {
    outline: 2px solid #2a7fff;
    outline-offset: 1px;
}

/* ---- plan card additions ---- */
.pricing-launch .plan-name { margin: 0; }
.pricing-launch .plan-topline > .plan-pill { margin-left: auto; }
.pricing-launch .plan-price { margin-bottom: 10px; }
.plan-launch-note,
.plan-period-note {
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0 0 14px;
}
.plan-launch-count {
    display: block;
    margin-top: 4px;
    color: #fbbf24;
    font-weight: 800;
}
.plan-launch-count[hidden] { display: none; }
.pricing-launch .plan-price + .plan-cta { margin-top: 8px; }
.pricing-launch .plan-cta:disabled {
    cursor: default;
    background: rgba(148,163,184,0.08);
    border-color: rgba(148,163,184,0.22);
    color: #94a3b8;
}

/* ---- credits ---- */
.credits-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px;
    margin: 4px 0 0;
    padding: 22px;
    border: 1px solid #243040;
    border-radius: 8px;
    background: #0d1117;
}
.credits-title {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 950;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.credits-lead {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 14px;
}
.credits-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.credits-facts li {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
}
.credits-facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #64748b;
}
.credits-buy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.credit-packs {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.credit-packs-caption {
    text-align: left;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 8px;
}
.credit-packs th,
.credit-packs td {
    padding: 10px 8px;
    border-bottom: 1px solid #1c2433;
    text-align: right;
    vertical-align: top;
    font-size: 0.9rem;
}
.credit-packs th:first-child,
.credit-packs td:first-child {
    text-align: left;
    padding-left: 0;
}
.credit-packs th:last-child,
.credit-packs td:last-child { padding-right: 0; }
.credit-packs thead th {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    padding-top: 0;
}
.credit-packs tbody th {
    color: #f8fafc;
    font-weight: 800;
}
.credit-packs tbody td { color: #cbd5e1; }
.credit-packs tbody td:last-child { color: #94a3b8; }
.credit-pack-compare {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}
.credits-link {
    display: block;
    text-decoration: none;
    padding: 11px 14px;
    line-height: 1.2;
    text-align: center;
}
.credits-link:hover { color: #f8fafc; border-color: rgba(148,163,184,0.4); }

@media (max-width: 960px) {
    .plan-billing { margin-left: 0; }
    .credits-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}
@media (max-width: 420px) {
    .plan-billing-option span { padding: 9px 11px; }
    .credits-panel { padding: 16px; }
}

.consumer-usage{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px;padding:8px}.consumer-usage[hidden]{display:none}.consumer-usage progress{width:110px;accent-color:#3278ed}
