/* QuanterLab landing — Pricing modal.
   An in-page lightbox around /pricing?embed=1 (the chrome-less pricing page)
   with a close button, so "Pricing" opens in the garden instead of teleporting
   to a standalone page. Garden tokens (tokens.css). Behaviour: pricing-modal.js. */
.pricing-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pricing-modal[hidden] { display: none; }

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

.pricing-modal-card {
    position: relative;
    width: min(1200px, 96vw);
    height: min(860px, 92vh);
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    /* Reveal over a visible resting state (opacity:1 is the `to`) so a broken
       renderer can never leave the card invisible. */
    animation: pmIn 0.2s ease both;
}
@keyframes pmIn {
    from { opacity: 0; transform: translateY(10px) scale(0.99); }
    to   { opacity: 1; transform: none; }
}

.pricing-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: var(--bg-primary);
}

.pricing-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.pricing-modal-close:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(20, 20, 20, 0.9);
}

/* Full-screen on phones so the tiers get all the width they need. */
@media (max-width: 640px) {
    .pricing-modal { padding: 0; }
    .pricing-modal-card { width: 100vw; height: 100vh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pricing-modal-card { animation: none; }
}
