/*
 * veil.css — the waitlist period on the landing (/ = the Mint page, docs/design.md §6.2).
 * THE SWITCH: `data-veil` on <body> in web/index.html. While it is there, a deep blur covers the Mint page, the page
 * is inert (waitlist.js sets `inert` on it), and the X waitlist sits on top. Delete the attribute to lift the veil.
 * Composed from variables.css tokens only (the waitlist block keeps its original rules below).
 */
.veil { display: none; }
body[data-veil] { overflow: hidden; }
/* the header stays sharp and clickable above the veil: Docs is always open */
body[data-veil] .mp-nav { position: relative; z-index: calc(var(--z-overlay) + 1); }
body[data-veil] .veil {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px var(--spacing-lg) var(--spacing-xl);
    overflow-y: auto;
    background: color-mix(in srgb, var(--color-bg-primary) 45%, transparent);
    -webkit-backdrop-filter: blur(10px) saturate(0.6);
    backdrop-filter: blur(10px) saturate(0.6);
}
.veil__box {
    --glyph-w: 64px;
    width: 100%;
    max-width: 560px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: var(--font-family-mono);
}
.veil__name {
    margin: 0 0 var(--spacing-md);
    font-family: var(--font-family-display);
    font-size: var(--font-size-2xl);
    color: var(--color-text-highlight);
    letter-spacing: 0.08em;
}
.veil__lead { margin: 0; color: var(--color-text-secondary); line-height: var(--line-height-relaxed); }
.veil__links { margin: var(--spacing-xl) 0 0; font-size: var(--font-size-sm); color: var(--color-text-muted); }
.veil__links a { color: var(--color-accent-green); }
.veil .wl { margin-top: var(--spacing-xl); }
@media (max-width: 480px) {
    .veil__box { --glyph-w: 44px; }
    }

/* The X waitlist (waitlist.js): V2, centred, no box. */
.wl {
    width: 0;          /* never widens the column: the timer alone sets the width */
    min-width: 100%;
    margin-top: calc(var(--glyph-w) * 0.75);
    text-align: center;
    font-size: clamp(var(--font-size-xs), calc(var(--glyph-w) * 0.2), var(--font-size-base));
    color: var(--color-text-muted);
}
.wl__label {
    margin: 0 0 calc(var(--glyph-w) * 0.3);
    font-size: clamp(9px, 1.1vw, var(--font-size-sm));
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.wl__body { display: flex; flex-direction: column; align-items: center; gap: calc(var(--glyph-w) * 0.2); }
.wl__body p { margin: 0; }
.wl__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--button-height-lg);
    padding: 0 calc(var(--spacing-lg) * 1.5);
    margin-bottom: calc(var(--glyph-w) * 0.1);
    border: var(--border-width) solid var(--color-accent-green);
    color: var(--color-accent-green);
    font-size: var(--font-size-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 calc(var(--glyph-w) * 0.15) rgba(86, 226, 194, 0.15);
    transition: background var(--transition-fast), opacity var(--transition-fast);
}
.wl__btn:hover { background: rgba(86, 226, 194, 0.08); }
.wl__btn[aria-disabled="true"] { opacity: 0.35; box-shadow: none; }
.wl__line { color: var(--color-text-muted); }
.wl__check { display: inline-flex; align-items: center; gap: var(--spacing-sm); cursor: pointer; color: var(--color-text-secondary); }
.wl__check input { margin: 0; accent-color: var(--color-accent-green); }
.wl__more {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--color-accent-blue);
    cursor: pointer;
}
.wl__more:hover { color: var(--color-accent-green); }
.wl__detail { max-width: 44em; color: var(--color-text-muted); line-height: 1.6; text-align: left; }
.wl__who { color: var(--color-text-secondary); font-size: 1.15em; }
.wl__handle { color: var(--color-text-highlight); }
.wl__muted { color: var(--color-text-muted); }
.wl__err { color: var(--color-accent-red); }
