/* Licensing pages (pricing, thank-you, licence self-service, legal).
   Kept out of site.css so the marketing site's core stylesheet stays untouched.
   Uses the existing design tokens only — no new colours are invented here. */

/* ---- pricing tiers ---- */

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.tier {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tier.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-glow), 0 8px 30px var(--accent-glow);
}

.tier h3 { margin: 0; font-size: 1.05rem; }

.tier .price {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}
.tier .price small { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.tier .price-sub { color: var(--muted); font-size: 0.82rem; margin-top: -0.2rem; }

.tier-list { list-style: none; margin: 0.3rem 0 0; padding: 0; font-size: 0.87rem; }
.tier-list li { padding: 0.18rem 0 0.18rem 1.25rem; position: relative; }
.tier-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.tier-list li.no::before { content: "—"; color: var(--muted); }

.tier .spacer { flex: 1; }
.tier .btn-primary, .tier .btn-secondary { width: 100%; text-align: center; }
.tier .btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; }

.seat-counter {
    text-align: center;
    color: var(--accent);
    font-size: 0.9rem;
    margin: 0.2rem 0 0.8rem;
}

/* Thank-you page: the name printed on the licence, asked for after payment. */
.name-claim #claimPreview { margin: 0.2rem 0 0.8rem; }

.pre-launch-note {
    max-width: 640px;
    margin: 0.6rem auto 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
}

/* ---- thank-you ---- */

.licence-ready { max-width: 620px; margin: 0 auto; text-align: center; }
.licence-ready .tier-line { color: var(--muted); margin-top: -0.4rem; }
.btn-primary.big { display: inline-block; padding: 0.7rem 1.6rem; font-size: 1rem; margin: 0.6rem 0; }

.key-box {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    word-break: break-all;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.waiting::after {
    content: "";
    display: inline-block;
    width: 0.6em;
    animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.newsletter-box { max-width: 480px; margin: 1.2rem auto 0; }
.check-row { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; margin-bottom: 0.5rem; }
.check-row input { margin-top: 0.2rem; }

/* ---- promise + legal ---- */

.promise-list { max-width: 560px; margin: 0 auto; font-size: 0.95rem; }
.promise-list li { padding: 0.3rem 0; }

.legal-scroll {
    max-width: 760px;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 100%;
    padding-right: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.55;
}
.legal-scroll h3 { margin: 1.1rem 0 0.35rem; font-size: 0.98rem; }
.legal-scroll h3:first-child { margin-top: 0; }
.legal-scroll p, .legal-scroll li { color: var(--text); }
.legal-scroll ul { margin: 0.3rem 0 0.3rem 1.1rem; }

/* Placeholders that must be filled in before these pages go live. */
.fillme {
    background: rgba(248, 113, 113, 0.14);
    border-bottom: 1px dashed #f87171;
    padding: 0 0.2rem;
    border-radius: 3px;
}

.result-line { min-height: 1.2em; color: var(--accent); font-size: 0.88rem; margin-top: 0.5rem; }
