/* /pricing — API plans (Free live, Pro/Max early access).
   Standalone: token fallbacks keep the page correct even if
   design-system.css variables change. */

.pricing-page {
    padding: 3rem 0 4rem;
}

.pricing-hero h1 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pricing-sub {
    color: rgba(255, 255, 255, 0.72);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.pricing-card {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem 1.75rem;
}

.pricing-card--highlight {
    border-color: var(--accent, #22d3ee);
    box-shadow: 0 0 0 1px var(--accent, #22d3ee),
        0 12px 40px rgba(34, 211, 238, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent, #22d3ee);
    color: #0b1220;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pricing-tier-name {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
}

.pricing-price {
    margin: 0.5rem 0 0.25rem;
}

.pricing-amount {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
}

.pricing-period {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.25rem;
}

.pricing-calls {
    color: var(--accent, #22d3ee);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pricing-tagline {
    color: rgba(255, 255, 255, 0.65);
    min-height: 2.6em;
}

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

.pricing-features li {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.3rem 0;
}

.pricing-features .bi-check2 {
    color: #4ade80;
    margin-right: 0.4rem;
}

.pricing-cta {
    width: 100%;
    background: var(--accent, #22d3ee);
    color: #0b1220;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1rem;
}

.pricing-cta:hover,
.pricing-cta:focus {
    /* Restate background: Bootstrap 5's variant-less .btn:hover resolves
       background-color to an undefined --bs-btn-hover-bg (= transparent),
       which otherwise wipes the accent fill and leaves dark-on-dark text. */
    background: var(--accent, #22d3ee);
    filter: brightness(1.1);
    color: #0b1220;
}

.pricing-cta--free {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.pricing-cta--free:hover,
.pricing-cta--free:focus {
    background: transparent;
    border-color: #fff;
    color: #fff;
    filter: none;
}

.pricing-cta--done,
.pricing-cta--done:disabled {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
    cursor: default;
    opacity: 1;
    filter: none;
}

.pricing-error {
    color: #f87171;
    text-align: center;
    margin-top: 1.25rem;
}

.pricing-footnote {
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2.5rem;
    font-size: 0.95rem;
}

.pricing-footnote a {
    color: var(--accent, #22d3ee);
}

/* ── Post-click modal ──────────────────────────────────────────────── */

.pricing-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-modal[hidden] {
    display: none;
}

.pricing-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
}

.pricing-modal__box {
    position: relative;
    max-width: 460px;
    width: calc(100% - 2rem);
    background: #101828;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.pricing-modal__box h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.pricing-modal__note {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.pricing-modal__close {
    margin-top: 0.75rem;
    width: auto;
    padding: 0.5rem 1.5rem;
}
