/* ===== DESIGN SYSTEM — FRANCINY GLOSS FRAMBOESA ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --rosa-primary: #E91E76;
    --rosa-light: #F8BBD0;
    --rosa-lighter: #FCE4EC;
    --rosa-dark: #AD1457;
    --framboesa: #C2185B;
    --cream: #FFF5F8;
    --white: #FFFFFF;
    --text-dark: #2D1B2E;
    --text-muted: #8E6B8A;
    --gold: #FFD700;
    --shadow-soft: 0 8px 32px rgba(233, 30, 118, 0.12);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(233, 30, 118, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(194, 24, 91, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(248, 187, 208, 0.1) 0%, transparent 50%);
}

/* ===== QUIZ CONTAINER ===== */
.quiz-container {
    background: var(--white);
    max-width: 460px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.quiz-header {
    background: linear-gradient(135deg, var(--rosa-primary), var(--framboesa), var(--rosa-dark));
    padding: 24px 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmerBg 4s ease-in-out infinite;
}

.quiz-header .brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.quiz-header .brand-badge svg {
    width: 14px;
    height: 14px;
}

.quiz-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.quiz-body {
    padding: 28px 24px 32px;
}

/* ===== PROGRESS BAR ===== */
.progress-wrapper {
    margin-bottom: 28px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-step {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--rosa-primary);
    letter-spacing: 0.5px;
}

.progress-percent {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 6px;
    background: var(--rosa-lighter);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--rosa-primary), var(--framboesa));
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* ===== QUIZ STEPS ===== */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 8px;
}

.step .question-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* ===== START SCREEN ===== */
#start-screen {
    text-align: center;
}

#start-screen .hero-emoji {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

#start-screen h2 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rosa-primary), var(--framboesa));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

#start-screen .hero-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

#start-screen .hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat .stat-icon {
    font-size: 18px;
}

.hero-stat .stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-stat .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--rosa-primary), var(--framboesa));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 118, 0.35);
}

.start-btn:active {
    transform: translateY(0);
}

.start-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ===== OPTION BUTTONS ===== */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    width: 100%;
    padding: 16px 18px;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--rosa-lighter);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    line-height: 1.4;
}

.option-btn .option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--rosa-lighter);
    color: var(--rosa-primary);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.option-btn:hover {
    border-color: var(--rosa-primary);
    background: var(--cream);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 118, 0.1);
}

.option-btn:hover .option-letter {
    background: var(--rosa-primary);
    color: #fff;
}

.option-btn.selected {
    border-color: var(--rosa-primary);
    background: linear-gradient(135deg, rgba(233, 30, 118, 0.06), rgba(194, 24, 91, 0.04));
    box-shadow: 0 4px 16px rgba(233, 30, 118, 0.12);
}

.option-btn.selected .option-letter {
    background: var(--rosa-primary);
    color: #fff;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    text-align: center;
    padding: 20px 0;
}

#loading-screen .loading-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    position: relative;
}

.loading-spinner {
    width: 72px;
    height: 72px;
    border: 3px solid var(--rosa-lighter);
    border-top-color: var(--rosa-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

#loading-screen h2 {
    font-size: 18px;
    margin-bottom: 6px;
    text-align: center;
}

#loading-screen .loading-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.loading-bar-container {
    width: 100%;
    height: 8px;
    background: var(--rosa-lighter);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 16px;
}

#loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--rosa-primary), var(--framboesa), var(--rosa-dark));
    border-radius: 100px;
    transition: width 0.4s ease;
    position: relative;
}

#loading-text {
    font-size: 13px;
    color: var(--text-muted);
    min-height: 20px;
    transition: opacity 0.3s ease;
}

/* ===== RESULT SCREEN ===== */
#result-screen {
    text-align: center;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(233, 30, 118, 0.1), rgba(194, 24, 91, 0.06));
    padding: 8px 16px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--rosa-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

#result-screen h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 8px;
}

#result-screen .result-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-card {
    background: linear-gradient(145deg, var(--cream), var(--rosa-lighter));
    border-radius: var(--radius-md);
    padding: 24px 20px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(233, 30, 118, 0.1);
}

.product-card .product-tag {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, var(--rosa-primary), var(--framboesa));
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-card .product-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.product-card .product-line {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 16px;
}

.product-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(233, 30, 118, 0.06);
}

.product-benefits li:last-child {
    border-bottom: none;
}

.product-benefits li .benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(233, 30, 118, 0.08);
    border-radius: 8px;
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.product-price .price-label {
    font-size: 13px;
    color: var(--text-muted);
}

.product-price .price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--rosa-primary);
}

/* Social proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.social-proof .stars {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 2px;
}

.social-proof .proof-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* FOMO subtle */
.fomo-subtle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(233, 30, 118, 0.04);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--framboesa);
    font-weight: 500;
}

.fomo-subtle .fomo-dot {
    width: 8px;
    height: 8px;
    background: var(--rosa-primary);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

/* CTA Final */
.cta-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--rosa-primary), var(--framboesa));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    animation: pulseGlow 2.5s infinite;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shimmer 2.5s infinite;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 30, 118, 0.4);
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes shimmerBg {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(233, 30, 118, 0.25);
    }
    50% {
        box-shadow: 0 6px 28px rgba(233, 30, 118, 0.45);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    body {
        padding: 8px;
        align-items: flex-start;
        padding-top: 16px;
    }

    .quiz-container {
        border-radius: 16px;
    }

    .quiz-header {
        padding: 20px 20px 16px;
    }

    .quiz-body {
        padding: 24px 20px 28px;
    }

    #start-screen h2 {
        font-size: 20px;
    }

    .step h2 {
        font-size: 18px;
    }

    .option-btn {
        padding: 14px 16px;
        font-size: 13px;
    }
}