/* ===== WAITLIST PAGE ===== */

.waitlist-body {
    background: #f8fffe;
}

/* Hero Section */
.wl-hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.wl-bg-glow {
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78, 196, 176, 0.15) 0%, rgba(78, 196, 176, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Layout */
.wl-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

/* Left Column */
.wl-left {
    padding-right: 20px;
}

.wl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    color: var(--teal-700);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid var(--teal-200);
}

.wl-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal-500);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.wl-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin: 24px 0;
    letter-spacing: -0.03em;
}

.wl-highlight {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wl-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 440px;
}

/* Perks */
.wl-perks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.wl-perk {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wl-perk-icon {
    width: 36px;
    height: 36px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    flex-shrink: 0;
}

.wl-perk-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wl-perk-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
}

.wl-perk-text span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Social Proof */
.wl-social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wl-avatars {
    display: flex;
}

.wl-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    border: 2.5px solid var(--white);
    margin-left: -8px;
}

.wl-avatar:first-child {
    margin-left: 0;
}

.wl-social-proof p {
    font-size: 0.88rem;
    color: var(--gray-600);
}

.wl-social-proof p strong {
    color: var(--gray-900);
}

/* ===== RIGHT COLUMN - FORM CARD ===== */
.wl-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 40px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.06),
        0 20px 48px rgba(0,0,0,0.04);
    position: relative;
}

.wl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
    border-radius: 24px 24px 0 0;
}

.wl-card-header {
    margin-bottom: 28px;
}

.wl-card-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.wl-card-header p {
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* Form */
.wl-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wl-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.wl-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.wl-optional {
    font-weight: 400;
    color: var(--gray-400);
}

.wl-field input[type="text"],
.wl-field input[type="email"],
.wl-field input[type="tel"] {
    padding: 13px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}

.wl-field input:hover {
    border-color: var(--gray-300);
}

.wl-field input:focus {
    border-color: var(--teal-400);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(78, 196, 176, 0.12);
}

.wl-field input::placeholder {
    color: var(--gray-400);
}

/* Platform Selector */
.wl-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.wl-platform {
    cursor: pointer;
}

.wl-platform input[type="radio"] {
    display: none;
}

.wl-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-50);
    transition: all 0.2s ease;
}

.wl-platform-btn:hover {
    border-color: var(--gray-300);
    background: var(--white);
}

.wl-platform input[type="radio"]:checked + .wl-platform-btn {
    border-color: var(--teal-400);
    background: var(--teal-50);
    color: var(--teal-700);
    box-shadow: 0 0 0 3px rgba(78, 196, 176, 0.1);
}

/* Submit Button */
.wl-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 107, 95, 0.3);
    margin-top: 4px;
}

.wl-submit:hover {
    background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
    box-shadow: 0 6px 20px rgba(37, 107, 95, 0.4);
    transform: translateY(-1px);
}

.wl-submit:active {
    transform: translateY(0);
}

/* Disclaimer */
.wl-disclaimer {
    font-size: 0.78rem;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.5;
}

.wl-disclaimer a {
    color: var(--teal-600);
    text-decoration: underline;
}

.wl-disclaimer a:hover {
    color: var(--teal-800);
}

/* ===== SUCCESS MODAL ===== */
.wl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.wl-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.wl-modal {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.wl-overlay.active .wl-modal {
    transform: scale(1) translateY(0);
}

.wl-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    border: 1px solid var(--teal-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    margin: 0 auto 24px;
}

.wl-modal h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.wl-modal p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 28px;
}

.wl-modal-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.wl-modal-share span {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.wl-share-links {
    display: flex;
    gap: 8px;
}

.wl-share-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 10px;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.wl-share-btn:hover {
    background: var(--teal-50);
    color: var(--teal-600);
}

.wl-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wl-modal-btn:hover {
    background: var(--teal-800);
    transform: translateY(-1px);
}

/* Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 0.8s linear infinite;
}

.wl-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== REFERRED BANNER ===== */
.wl-referred-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
}

/* Push navbar and page down when banner is visible */
.waitlist-body.has-referred-banner .navbar {
    top: 42px;
}

.waitlist-body.has-referred-banner .wl-hero {
    padding-top: 162px;
}

.wl-referred-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wl-referred-banner svg {
    flex-shrink: 0;
}

/* ===== REFERRAL BOX IN MODAL ===== */
.wl-referral-box {
    background: linear-gradient(135deg, #f0fdf9, #e6f7f3);
    border: 1.5px solid var(--teal-200);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.wl-referral-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--teal-700);
}

.wl-referral-header strong {
    font-size: 0.95rem;
    color: var(--gray-900);
}

.wl-referral-desc {
    font-size: 0.85rem !important;
    color: var(--gray-500) !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    text-align: left !important;
}

.wl-referral-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.wl-tier {
    font-size: 0.82rem;
    color: var(--gray-600);
    padding: 8px 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.wl-tier strong {
    color: var(--teal-700);
}

.wl-tier-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--teal-100);
    color: var(--teal-700);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.78rem;
    margin-right: 4px;
}

.wl-referral-link-box {
    margin-bottom: 12px;
}

.wl-referral-link-box label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.wl-copy-row {
    display: flex;
    gap: 8px;
}

.wl-copy-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.82rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--gray-700);
    background: white;
    outline: none;
    min-width: 0;
}

.wl-copy-row input:focus {
    border-color: var(--teal-400);
    box-shadow: 0 0 0 3px rgba(78, 196, 176, 0.1);
}

.wl-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--teal-600);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wl-copy-btn:hover {
    background: var(--teal-700);
}

.wl-copy-btn.copied {
    background: var(--teal-800);
}

.wl-check-referrals {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wl-check-referrals:hover {
    color: var(--teal-800);
}

/* ===== FEEDBACK CTA IN MODAL ===== */
.wl-feedback-cta {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    text-align: left;
}

.wl-feedback-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    border: 1px solid var(--teal-200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    margin-bottom: 10px;
}

.wl-feedback-cta p {
    font-size: 0.85rem !important;
    color: var(--gray-600) !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}

.wl-feedback-cta p strong {
    color: var(--gray-900);
}

.wl-feedback-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wl-feedback-link:hover {
    color: var(--teal-800);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .wl-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .wl-left {
        padding-right: 0;
        text-align: center;
    }

    .wl-subtitle {
        max-width: 100%;
    }

    .wl-perks {
        align-items: center;
    }

    .wl-perk {
        text-align: left;
    }

    .wl-social-proof {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .wl-hero {
        padding: 110px 0 60px;
    }

    .waitlist-body.has-referred-banner .wl-hero {
        padding-top: 155px;
    }

    .wl-title {
        font-size: 2.2rem;
    }

    .wl-card {
        padding: 28px 22px;
    }

    .wl-form-row {
        grid-template-columns: 1fr;
    }

    .wl-platforms {
        grid-template-columns: 1fr;
    }

    .wl-modal {
        padding: 36px 24px;
    }

    .wl-social-proof {
        flex-direction: column;
        text-align: center;
    }

    .wl-referral-tiers {
        grid-template-columns: 1fr;
    }

    .wl-copy-row {
        flex-direction: column;
    }

    .wl-modal {
        padding: 36px 20px;
    }

    .wl-referral-box {
        padding: 18px;
    }
}
