/* QuanterLab — early-access signup (waitlist). Garden tokens (gold, DM Sans).
   Used by the landing "Request access" modal, the standalone /join page, and the
   confirm/unsubscribe result pages. */

/* ── Modal shell ── */
.ea-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.ea-modal[hidden] { display: none; }
.ea-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 4, 0.72);
    backdrop-filter: blur(3px);
    animation: eaFade 0.25s ease;
}
.ea-modal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    animation: eaPop 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes eaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes eaPop { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ── The card surface (shared by modal + /join) ── */
.ea-card {
    background:
        radial-gradient(130% 80% at 50% 0%, rgba(201, 169, 98, 0.08), transparent 62%),
        var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 34px 34px 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.ea-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 1rem; line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    z-index: 2;
}
.ea-modal-close:hover { color: var(--brand-gold); border-color: rgba(201, 169, 98, 0.4); background: var(--brand-gold-dim); }

/* ── Head ── */
.ea-eyebrow {
    display: inline-block;
    font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brand-gold);
    margin-bottom: 12px;
}
.ea-title {
    font-family: var(--font-display);
    font-size: 1.55rem; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0 0 10px;
    text-wrap: balance;
}
.ea-sub {
    font-size: 0.92rem; line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 18px;
}
.ea-discount {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 9px 16px;
    border: 1px solid rgba(201, 169, 98, 0.35);
    background: var(--brand-gold-dim);
    border-radius: 999px;
    margin-bottom: 22px;
}
.ea-discount b, .ea-discount span:not(.ea-dot) {
    font-size: 0.9rem; font-weight: 600; color: var(--brand-gold);
    font-variant-numeric: tabular-nums;
}
.ea-discount .ea-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(201, 169, 98, 0.5); }

/* Clickable variant — the pill links to the pricing page (opens in a new tab). */
a.ea-discount {
    text-decoration: none; cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
a.ea-discount:hover {
    border-color: rgba(201, 169, 98, 0.75);
    background: rgba(201, 169, 98, 0.24);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 169, 98, 0.16);
}
a.ea-discount:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; }
.ea-discount-arrow { opacity: 0.7; transition: opacity .18s ease, transform .18s ease; }
a.ea-discount:hover .ea-discount-arrow { opacity: 1; transform: translate(1px, -1px); }
@media (prefers-reduced-motion: reduce) {
    a.ea-discount, .ea-discount-arrow { transition: none; }
    a.ea-discount:hover { transform: none; }
}

/* ── Form ── */
.ea-form { display: flex; flex-direction: column; gap: 14px; }
.ea-field { display: flex; }
.ea-input {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 9px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ea-input::placeholder { color: var(--text-muted); }
.ea-input:focus {
    outline: none;
    border-color: rgba(201, 169, 98, 0.55);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.14);
}
.ea-input.ea-invalid { border-color: rgba(180, 80, 80, 0.7); }

/* Honeypot — off-screen, not display:none (some bots skip hidden fields) */
.ea-hp {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ea-consent {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.8rem; line-height: 1.5;
    color: var(--text-secondary);
    cursor: pointer;
}
.ea-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px; height: 17px;
    margin-top: 1px;
    accent-color: var(--brand-gold);
    cursor: pointer;
}
.ea-consent a { color: var(--brand-gold); text-decoration: none; border-bottom: 1px solid rgba(201, 169, 98, 0.3); }
.ea-consent a:hover { border-bottom-color: var(--brand-gold); }

.ea-submit {
    position: relative;
    margin-top: 4px;
    padding: 13px 18px;
    background: var(--brand-gold);
    color: #100c04;
    border: none;
    border-radius: 9px;
    font-family: var(--font-sans);
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.08s ease;
}
.ea-submit:hover { filter: brightness(1.06); }
.ea-submit:active { transform: translateY(1px); }
.ea-submit[disabled] { opacity: 0.7; cursor: default; }
.ea-submit.loading .ea-submit-label { visibility: hidden; }
.ea-spinner {
    position: absolute; top: 50%; left: 50%;
    width: 16px; height: 16px; margin: -8px 0 0 -8px;
    border: 2px solid rgba(16, 12, 4, 0.35);
    border-top-color: #100c04;
    border-radius: 50%;
    opacity: 0;
}
.ea-submit.loading .ea-spinner { opacity: 1; animation: eaSpin 0.7s linear infinite; }
@keyframes eaSpin { to { transform: rotate(360deg); } }

.ea-msg { font-size: 0.82rem; line-height: 1.45; margin: 2px 0 0; min-height: 0; color: #d98a8a; }
.ea-msg:empty { display: none; }

/* ── Success state ── */
.ea-success { text-align: center; padding: 8px 4px 4px; }
.ea-success-mark {
    width: 46px; height: 46px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--brand-gold-dim);
    color: var(--brand-gold);
}
.ea-success-mark svg { width: 22px; height: 22px; }
.ea-success h3 {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 600; color: var(--text-primary);
    margin: 0 0 8px;
}
.ea-success p { font-size: 0.9rem; line-height: 1.55; color: var(--text-secondary); max-width: 360px; margin: 0 auto; }

.ea-foot {
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid var(--card-border);
    font-size: 0.76rem; color: var(--text-muted); text-align: center;
}
.ea-foot a { color: var(--text-secondary); text-decoration: none; }
.ea-foot a:hover { color: var(--brand-gold); }

/* ── Standalone /join + result pages ── */
.ea-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 96px 24px 48px;
    background:
        radial-gradient(80% 50% at 50% 0%, rgba(201, 169, 98, 0.05), transparent 60%),
        var(--bg-primary);
}
.ea-page .ea-card { width: 100%; max-width: 480px; }
.ea-page-logo {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    text-decoration: none; color: var(--text-primary);
    margin-bottom: 26px;
}
.ea-page-logo .wm { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.ea-page-logo .wm b { font-weight: 400; color: var(--brand-gold); }
.ea-page-logo svg { width: 26px; height: 26px; color: var(--brand-gold); }

.ea-code {
    display: block;
    margin: 18px 0 4px;
    padding: 14px;
    text-align: center;
    border: 1px dashed rgba(201, 169, 98, 0.5);
    border-radius: 10px;
    background: var(--brand-gold-dim);
    font-family: var(--font-mono);
    font-size: 1.1rem; font-weight: 600; letter-spacing: 0.1em;
    color: var(--brand-gold);
}
.ea-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 11px 22px;
    border: 1px solid var(--brand-gold);
    border-radius: 8px;
    color: var(--brand-gold);
    text-decoration: none;
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
    transition: background 0.2s ease;
}
.ea-cta:hover { background: var(--brand-gold-dim); }

@media (max-width: 520px) {
    .ea-card { padding: 26px 22px 24px; border-radius: 14px; }
    .ea-title { font-size: 1.35rem; }
    .ea-modal { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .ea-modal-backdrop, .ea-modal-card { animation: none; }
    .ea-spinner { animation-duration: 1.2s; }
}
