/* Start custom CSS *//* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS (Estilo Premium Dark/Light Glass)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');/* ==========================================================================
   16. SEÇÃO DE FAQ VISÍVEL (SEO TÉCNICO)
   ========================================================================== */
.faq-section {
    margin-top: -12px; /* Encaixa logo após o card principal */
    margin-bottom: 32px;
}

.faq-main-title {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-divider {
    border: 0;
    height: 1px;
    background: var(--color-border);
    margin: 24px 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

:root {
    /* Paleta Exigida */
    --color-primary: #2563EB;      /* Azul Moderno */
    --color-primary-hover: #1D4ED8;
    --color-success: #22C55E;      /* Verde Economia */
    --color-success-hover: #16A34A;
    --color-danger: #EF4444;       /* Vermelho Desperdício */
    --color-gray-bg: #F8FAFC;      /* Fundo Soft */
    
    /* Cores de Apoio UI */
    --color-dark: #0F172A;         /* Slate 900 */
    --color-text-muted: #64748B;   /* Slate 500 */
    --color-border: #E2E8F0;       /* Slate 200 */
    --color-white: #FFFFFF;
    
    /* Efeitos de Vidro (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 40px -15px rgba(37, 99, 235, 0.12);
    
    /* Tipografia */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-gray-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.07) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(34, 197, 94, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(239, 68, 68, 0.03) 0px, transparent 50%);
    color: var(--color-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   2. HEADER & BRANDING
   ========================================================================== */
.app-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.brand-logo svg {
    width: 20px;
    height: 20px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.brand-badge {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.app-title-badge {
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-success);
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ==========================================================================
   3. LAYOUT DA FERRAMENTA (APP WRAPPER)
   ========================================================================== */
.app-container {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.app-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   4. ETAPA 1: INTRODUÇÃO (DESIGN PREMIUM)
   ========================================================================== */
.badge-accent {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.badge-accent.bg-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--color-danger);
}

#step-intro h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

#step-intro p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.intro-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

@media(min-width: 640px) {
    .intro-benefits {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.benefit-item svg {
    flex-shrink: 0;
}

/* ==========================================================================
   5. BOTÕES E COMPONENTES DE AÇÃO
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-dark);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-gray-bg);
}

.btn-success {
    background-color: var(--color-success);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.btn-success:hover {
    background-color: var(--color-success-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
    width: 100%;
}

@media(min-width: 640px) {
    .btn-large {
        width: auto;
    }
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-weight: 500;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--color-dark);
}

/* ==========================================================================
   6. ETAPA 2: ESTILOS DO QUESTIONÁRIO (QUIZ)
   ========================================================================== */
.quiz-progress-wrapper {
    margin-bottom: 32px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--color-border);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-question {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-question svg {
    color: var(--color-primary);
}

.quiz-helper {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* Grid de Opções Interativas */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

@media(min-width: 640px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.options-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

@media(min-width: 640px) {
    .options-row {
        flex-direction: row;
    }
}

/* Card Opção (Radio Customizado) */
.option-card {
    position: relative;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card:hover {
    border-color: var(--color-primary);
    background-color: rgba(37, 99, 235, 0.02);
}

/* Estado Ativo/Selecionado */
.option-card:has(input[type="radio"]:checked) {
    border-color: var(--color-primary);
    background-color: rgba(37, 99, 235, 0.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.option-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-dark);
}

/* Versão com descrição */
.option-content {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-dark);
}

.option-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Inputs de Número */
.input-container {
    position: relative;
    max-width: 320px;
    margin-bottom: 32px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.15rem;
    font-weight: 700;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-dark);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-unit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Sliders Personalizados (Chuveiro e Economia) */
.slider-wrapper {
    margin-bottom: 32px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 12px;
}

.slider-current {
    color: var(--color-primary);
    font-weight: 800;
}

.form-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 99px;
    background: var(--color-border);
    outline: none;
    transition: var(--transition);
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.form-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.success-slider::-webkit-slider-thumb {
    background: var(--color-success);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* Navegação do Quiz */
.quiz-navigation {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

/* ==========================================================================
   7. ETAPAS 3 & 4: DASHBOARD DE RESULTADOS (ESTILO FINANÇAS)
   ========================================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media(min-width: 640px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-card {
    padding: 24px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.metric-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

.metric-icon {
    width: 20px;
    height: 20px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 8px;
}

.metric-sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   8. ETAPA 5: CARD DO ÍNDICE DE DESPERDÍCIO
   ========================================================================== */
.waste-index-card {
    margin-bottom: 24px;
    border-left: 6px solid var(--color-primary);
}

.waste-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.waste-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.score-badge {
    font-size: 1.4rem;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.waste-classification {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Cores do Indicador do Índice de Desperdício */
.waste-index-card.low { border-left-color: var(--color-success); }
.waste-index-card.low .score-badge { background: rgba(34, 197, 94, 0.1); color: var(--color-success); }

.waste-index-card.attention { border-left-color: #F59E0B; }
.waste-index-card.attention .score-badge { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }

.waste-index-card.high { border-left-color: #EF4444; }
.waste-index-card.high .score-badge { background: rgba(239, 68, 68, 0.1); color: #EF4444; }

/* ==========================================================================
   9. ETAPA 6: GRÁFICOS COMPARATIVOS
   ========================================================================== */
.chart-container-card {
    margin-bottom: 24px;
}

.chart-wrapper {
    position: relative;
    margin: 24px auto;
    width: 100%;
    max-height: 280px;
}

.chart-legend-text {
    background: rgba(37, 99, 235, 0.05);
    border: 1px dashed rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   10. ETAPA 7: SIMULADOR DE ECONOMIA
   ========================================================================== */
.simulation-card {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--glass-bg), rgba(34, 197, 94, 0.03));
}

.economy-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

@media(min-width: 640px) {
    .economy-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

.eco-box {
    background: var(--color-white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eco-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.eco-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-top: 4px;
}

/* ==========================================================================
   11. ETAPA 8: DIAGNÓSTICO INTELIGENTE
   ========================================================================== */
.diagnostic-result-card {
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: var(--color-white);
    border: none;
}

.diagnostic-result-card .card-subtitle {
    color: #94A3B8;
}

.diagnostic-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
    padding-bottom: 16px;
}

.diagnostic-icon {
    width: 36px;
    height: 36px;
    color: var(--color-success);
}

.diagnostic-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #E2E8F0;
}

/* ==========================================================================
   12. ETAPA 9: SEÇÃO CTA DE VENDAS
   ========================================================================== */
.cta-card {
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
    padding: 40px;
    text-align: center;
}

.cta-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* Lista de Causas Técnicas */
.causes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
    margin-bottom: 32px;
}

@media(min-width: 640px) {
    .causes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cause-item {
    display: flex;
    gap: 16px;
}

.cause-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.cause-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
}

.cause-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.cta-action-area {
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
}

.cta-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px !important;
}

/* Reajuste visual para o botão de restart */
.restart-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* ==========================================================================
   13. RODAPÉ INSTITUCIONAL (SEO LOCAL)
   ========================================================================== */
.app-footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 32px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-regions {
    font-weight: 600;
    color: var(--color-dark);
}

/* ==========================================================================
   14. CORES UTILITÁRIAS
   ========================================================================== */
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-accent { color: var(--color-primary); }
.text-warning { color: #F59E0B; }

/* ==========================================================================
   15. ANIMAÇÕES DE ENTRADA DO DASHBOARD E TRANSITION FIX
   ========================================================================== */
#step-results {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.metric-card {
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 12px 20px -8px rgba(37, 99, 235, 0.1);
}

/* Esqueleto de carregamento (Skeleton Loader) para simular transição de IA */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}/* End custom CSS */