/* ==========================================================================
   Waitlist Landing Page
   Dark hero full-screen, zero navbar, zero footer.
   ========================================================================== */

/* Nascondi header e footer del tema su questa pagina */
body.wl-body .site-header,
body.wl-body #masthead,
body.wl-body .site-footer,
body.wl-body #colophon,
body.wl-body .wp2-promo-bar {
    display: none !important;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.wl-page {
    min-height: 100dvh;
    background: #1c1917;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 64px 24px 48px;
    box-sizing: border-box;
}

.wl-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(34,197,94,0.18) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.wl-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

/* ==========================================================================
   Logo
   ========================================================================== */

.wl-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    text-decoration: none;
}

.wl-logo__mark {
    width: 52px;
    height: 52px;
    background: #22C55E;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.wl-logo__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.wl-logo__img {
    height: 40px;
    width: auto;
    display: block;
}

/* ==========================================================================
   Testi
   ========================================================================== */

.wl-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.wl-subheadline {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.62);
    line-height: 1.65;
    margin: 0 0 32px;
}

/* ==========================================================================
   Banner referral (visibile solo se ?ref= presente e valido)
   ========================================================================== */

.wl-referral-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,0.10);
    border: 1px solid rgba(34,197,94,0.22);
    border-radius: 999px;
    padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #22C55E;
    margin-bottom: 24px;
}

.wl-referral-banner__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
}

/* ==========================================================================
   Form
   ========================================================================== */

.wl-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wl-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 15px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.wl-input::placeholder {
    color: rgba(255,255,255,0.32);
}

.wl-input:focus {
    border-color: rgba(34,197,94,0.50);
}

.wl-btn {
    width: 100%;
    background: #22C55E;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    letter-spacing: -0.1px;
}

.wl-btn:hover {
    background: #16a34a;
}

.wl-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.28);
}

.wl-privacy {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.32);
    margin-top: 10px;
    line-height: 1.5;
}

/* ==========================================================================
   Notice (errore / già registrato)
   ========================================================================== */

.wl-notice {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

.wl-notice--info {
    background: rgba(34,197,94,0.06);
    border-color: rgba(34,197,94,0.20);
    color: rgba(255,255,255,0.85);
}

.wl-back-link {
    display: inline-block;
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #22C55E;
    text-decoration: none;
}

.wl-back-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Stato successo
   ========================================================================== */

.wl-success {
    background: rgba(34,197,94,0.07);
    border: 1px solid rgba(34,197,94,0.18);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: left;
}

.wl-success__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(34,197,94,0.15);
    border-radius: 50%;
    margin: 0 auto 16px;
    color: #22C55E;
    font-size: 22px;
}

.wl-success__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #22C55E;
    letter-spacing: -0.3px;
    margin: 0 0 8px;
    text-align: center;
}

.wl-success__desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.60);
    line-height: 1.65;
    margin: 0 0 24px;
    text-align: center;
}

.wl-link-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.40);
    margin-bottom: 8px;
}

.wl-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.wl-link-box__url {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 13px;
    color: rgba(255,255,255,0.80);
    word-break: break-all;
    line-height: 1.4;
}

.wl-copy-btn {
    background: #22C55E;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.wl-copy-btn:hover {
    background: #16a34a;
}

.wl-copy-btn.copied {
    background: #15803d;
}

.wl-share-hint {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .wl-container {
        padding: 0;
    }

    .wl-link-box {
        flex-direction: column;
        align-items: stretch;
    }

    .wl-copy-btn {
        width: 100%;
        padding: 10px;
        text-align: center;
    }
}
