/* ═══════════════════════════════════════════════════════════
   WHOP-STYLE QUIZ LANDING - Light Mode Matching Checkout
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Whop color palette - EXACT MATCH */
    --whop-bg: #ffffff;
    --whop-bg-secondary: #f8f9fa;
    --whop-border: #e5e7eb;
    --whop-text: #111827;
    --whop-text-secondary: #6b7280;
    --whop-text-muted: #9ca3af;
    --whop-primary: #1654d8; /* Whop's blue! */
    --whop-primary-hover: #1248b0;
    --whop-accent: #ff6b6b;
    --whop-radius: 8px; /* Whop uses 8px */
    --whop-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.quiz-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--whop-bg);
    color: var(--whop-text);
    min-height: 100vh;
    padding: 0; /* Remove any padding */
}

/* Header - HIDDEN */
.quiz-header {
    display: none;
}

.quiz-header .logo a {
    color: var(--whop-text);
}

.quiz-header .logo img {
    filter: brightness(0);
}

/* Quiz Landing */
.quiz-landing {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px 60px; /* Reduced top padding since no header */
}

.quiz-container {
    text-align: center;
}

.quiz-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f0fdf4; /* Light green background like Whop badges */
    border: 1px solid #86efac;
    border-radius: 16px; /* Rounder */
    font-size: 11px;
    font-weight: 700;
    color: #16a34a; /* Green text */
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.quiz-landing h1 {
    font-size: 38px; /* Slightly smaller for mobile */
    font-weight: 800;
    color: var(--whop-text);
    margin-bottom: 16px; /* Reduced spacing */
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.highlight-green {
    color: #16a34a; /* Keep green for "Right For You?" */
}

.quiz-subtitle {
    font-size: 16px; /* Slightly smaller */
    color: var(--whop-text-secondary);
    margin-bottom: 32px; /* Reduced spacing */
    line-height: 1.5;
}

/* Stats */
.quiz-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Reduced gap */
    margin-bottom: 32px; /* Reduced spacing */
    padding: 20px 16px; /* More compact */
    background: var(--whop-bg-secondary);
    border-radius: var(--whop-radius);
    border: 1px solid var(--whop-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 28px; /* Smaller for mobile */
    font-weight: 800;
    color: var(--whop-text);
    line-height: 1;
}

.stat-label {
    font-size: 12px; /* Smaller */
    color: var(--whop-text-secondary);
    margin-top: 6px; /* Reduced */
}

.stat-divider {
    width: 1px;
    height: 32px; /* Shorter */
    background: var(--whop-border);
}

/* Start Button - BLUE like Whop */
.quiz-start-btn {
    display: inline-block;
    padding: 18px 48px;
    background: #1654d8 !important;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.quiz-start-btn:hover {
    background: #1248b0 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 84, 216, 0.3);
    cursor: pointer !important;
}

.quiz-privacy {
    font-size: 13px; /* Smaller */
    color: var(--whop-text-muted);
    margin-top: 16px; /* Reduced */
}

/* Quiz Questions Section */
.quiz-questions {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Progress Bar */
.quiz-progress-bar {
    height: 6px;
    background: var(--whop-bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--whop-primary);
    transition: width 0.3s ease;
}

.quiz-progress-text {
    font-size: 13px;
    color: var(--whop-text-secondary);
    margin-bottom: 32px;
    font-weight: 600;
}

/* Quiz Step */
.quiz-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quiz-step.active {
    display: block;
}

.quiz-question {
    font-size: 28px;
    font-weight: 700;
    color: var(--whop-text);
    margin-bottom: 16px;
    line-height: 1.3;
}

.quiz-subtext {
    font-size: 16px;
    color: var(--whop-text-secondary);
    margin-bottom: 32px;
}

/* Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option-btn {
    width: 100%;
    padding: 20px 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    cursor: pointer !important;
    transition: all 0.2s ease;
    text-align: left;
}

.quiz-option-btn:hover {
    border-color: #1654d8;
    background: #f0f5ff;
    cursor: pointer !important;
}

/* Email Input */
.quiz-email-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.quiz-email-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--whop-border);
    border-radius: var(--whop-radius);
    font-size: 16px;
    font-family: inherit;
    color: var(--whop-text);
    background: var(--whop-bg);
}

.quiz-email-input:focus {
    outline: none;
    border-color: var(--whop-primary);
}

.quiz-continue-btn {
    width: 100%;
    padding: 16px 32px;
    background: #1654d8 !important;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.quiz-continue-btn:hover {
    background: #1248b0 !important;
    cursor: pointer !important;
}

.quiz-privacy-small {
    font-size: 13px;
    color: var(--whop-text-muted);
}

/* Loading Screen */
.quiz-loading {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--whop-border);
    border-top-color: var(--whop-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 32px;
}

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

.loading-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--whop-text);
    margin-bottom: 16px;
}

.loading-subtext {
    font-size: 16px;
    color: var(--whop-text-secondary);
    margin-bottom: 48px;
}

.loading-testimonial {
    background: var(--whop-bg-secondary);
    border: 1px solid var(--whop-border);
    border-radius: var(--whop-radius);
    padding: 24px;
    margin-top: 48px;
}

.loading-quote {
    font-size: 15px;
    color: var(--whop-text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 12px;
}

.loading-author {
    font-size: 14px;
    color: var(--whop-text-secondary);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-landing {
        padding: 24px 20px 40px; /* Minimal top padding on mobile */
    }
    
    .quiz-landing h1 {
        font-size: 28px; /* Much smaller on mobile */
        margin-bottom: 12px;
        letter-spacing: -0.3px;
    }
    
    .quiz-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .quiz-stats {
        flex-direction: row; /* Keep horizontal on mobile */
        gap: 12px;
        padding: 16px 12px;
        margin-bottom: 24px;
    }
    
    .stat-number {
        font-size: 24px; /* Bigger */
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .stat-divider {
        width: 1px;
        height: 28px;
    }
    
    .quiz-start-btn {
        width: 100%;
        padding: 18px 32px; /* Taller */
        font-size: 17px; /* Larger */
    }
    
    .quiz-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }
    
    .quiz-privacy {
        font-size: 13px;
        margin-top: 12px;
    }
    
    .quiz-question {
        font-size: 24px; /* Larger */
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .quiz-subtext {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .quiz-option-btn {
        padding: 16px 20px; /* Bigger tap area */
        font-size: 15px;
    }
    
    .quiz-email-form {
        flex-direction: column;
    }
    
    #multiSelectContinue {
        padding: 18px 32px;
        font-size: 17px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Desktop Container Width Override */
@media (min-width: 768px) {
    .quiz-landing {
        max-width: 780px;
    }
}

/* Email Form Vertical Stack Override */
.quiz-email-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.quiz-email-input {
    width: 100% !important;
}
