:root {
    /* Paleta Vibrante */
    --primary-grad: linear-gradient(135deg, #FF8C00, #FF5F00);
    --secondary-grad: linear-gradient(135deg, #2E3B55, #1A233A);
    --accent-green: linear-gradient(135deg, #00C853, #009624);
    
    --bg-color: #F0F2F5;
    --card-bg: #FFFFFF;
    --text-dark: #1A233A;
    --text-medium: #4A5568;
    --border-light: #E2E8F0;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    background-image: radial-gradient(circle at center top, #ffffff, var(--bg-color));
    color: var(--text-dark);
    padding-top: 70px;
    min-height: 100vh;
}

h1, h2, h3, .cta-button, .brand { font-family: 'Outfit', sans-serif; font-weight: 800; }

/* Utilitários */
.hidden { display: none !important; }

/* Header */
.app-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 3px solid transparent;
    border-image: var(--primary-grad) 1;
    z-index: 999; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.brand { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.brand-icon { font-size: 1.5rem; }

/* Container Principal */
#app-container { padding: 20px; max-width: 480px; margin: 0 auto; }

/* Cartões */
.card-box {
    background: var(--card-bg); border-radius: 24px; padding: 28px 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Barra de Progresso */
.progress-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.step-indicator { font-weight: 700; color: #FF5F00; font-size: 0.9rem; }
.progress-track { flex-grow: 1; height: 10px; background: var(--border-light); border-radius: 10px; margin-left: 15px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary-grad); width: 0%; transition: width 0.5s ease; border-radius: 10px; }

/* Perguntas */
#question-title { font-size: 1.4rem; line-height: 1.3; margin-bottom: 24px; color: var(--text-dark); }
.options-grid { display: flex; flex-direction: column; gap: 14px; }
.option-btn {
    background: #F8FAFC; border: 2px solid transparent; padding: 18px; border-radius: 16px;
    font-weight: 600; color: var(--text-medium); cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.option-btn i { color: #FF5F00; font-size: 1.3rem; }
.option-btn:hover { background: #FFF7ED; border-color: #FFBF80; transform: translateY(-2px); }
.option-btn.selected { background: #FFF0E6; border-color: #FF5F00; color: #FF5F00; box-shadow: 0 4px 12px rgba(255, 95, 0, 0.2); }

/* Tela de Lead */
.lead-header { text-align: center; margin-bottom: 30px; }
.big-icon-glow { font-size: 3.5rem; margin-bottom: 10px; animation: bounce 2s infinite; }
.floating-input { position: relative; margin-bottom: 20px; }
.floating-input i { position: absolute; left: 16px; top: 18px; color: #9CA3AF; font-size: 1.2rem; z-index: 2; }
.floating-input input {
    width: 100%; padding: 18px 16px 18px 48px; border: 2px solid var(--border-light); border-radius: 14px;
    font-size: 1rem; font-weight: 600; outline: none; transition: 0.3s; background: #F8FAFC;
}
.floating-input input:focus { border-color: #FF5F00; background: white; box-shadow: 0 0 0 4px rgba(255, 95, 0, 0.1); }
.floating-input label {
    position: absolute; left: 48px; top: 18px; color: #9CA3AF; transition: 0.3s; pointer-events: none; font-weight: 500;
}
.floating-input input:focus ~ label,
.floating-input input:not(:placeholder-shown) ~ label {
    top: -10px; left: 12px; font-size: 0.75rem; background: white; padding: 0 6px; color: #FF5F00; font-weight: 700;
}

/* Botões */
.cta-button {
    width: 100%; padding: 20px; border: none; border-radius: 14px; color: white; font-size: 1.1rem;
    cursor: pointer; transition: transform 0.2s; text-decoration: none; display: block; text-align: center;
}
.cta-primary { background: var(--primary-grad); box-shadow: 0 12px 24px -6px rgba(255, 95, 0, 0.4); }
.cta-result { background: var(--accent-green); box-shadow: 0 12px 24px -6px rgba(0, 200, 83, 0.4); }
.pulse-effect { animation: pulse 2s infinite; }
.secure-text { text-align: center; margin-top: 15px; font-size: 0.8rem; color: #9CA3AF; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* Loader */
.loader-wrapper { text-align: center; padding: 40px 20px; }
.thinking-emoji { font-size: 4rem; animation: spinReverse 2s infinite linear; margin-bottom: 20px; display: inline-block; }

/* Resultado */
#result-screen {
    position: absolute; top: 0; left: 0; width: 100%; min-height: 100vh;
    background: var(--bg-color); z-index: 2000; display: flex; flex-direction: column;
}
.result-hero {
    padding: 90px 20px 50px; text-align: center; color: white;
    border-bottom-left-radius: 40px; border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}
.profile-A { background: linear-gradient(135deg, #FF512F, #DD2476); }
.profile-B { background: linear-gradient(135deg, #FF9966, #FF5E62); }
.profile-C { background: linear-gradient(135deg, #00b09b, #96c93d); }

.result-tag { background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; }
.result-big-emoji { font-size: 5rem; margin: 15px 0; }
#result-headline { font-size: 1.8rem; line-height: 1.1; margin-bottom: 10px; }

.result-body-container { padding: 30px 20px; max-width: 500px; margin: -40px auto 0; position: relative; }
.diagnosis-box, .solution-box {
    background: white; border-radius: 20px; padding: 24px; margin-bottom: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
}
.diagnosis-box h3 { color: #D32F2F; margin-bottom: 12px; }
.solution-box h3 { color: #00C853; margin-bottom: 12px; }
.diagnosis-box p, .solution-box p { font-size: 1rem; line-height: 1.5; color: var(--text-medium); }

.urgency-bar { background: #FFF3E0; color: #E65100; padding: 12px; border-radius: 12px; text-align: center; font-weight: 700; margin-bottom: 15px; border: 2px solid #FFE0B2; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(0,0,0,0); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-enter { animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }