* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #f8f4ff 0%, #ffffff 100%);
    min-height: 100vh;
    color: #333;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
    overflow-y: auto;
}

.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#welcome-screen.active {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 100px;
}

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

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Tela Inicial */
.welcome-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 40px);
}

/* Tela Final */
#final-screen {
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

.final-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.final-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    text-align: center;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: 100px;
}

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

.welcome-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 100px;
}

.main-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    text-align: center;
    margin: 0;
}

.subtitle {
    font-size: 15px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

.products-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.product-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 500px;
    min-height: 400px;
    object-fit: contain;
}

/* Estilos específicos da tela final */
.final-title {
    font-size: 48px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.1;
    text-align: center;
    margin: 0;
    letter-spacing: -0.02em;
    max-width: 800px;
}

.final-subtitle {
    font-size: 21px;
    color: #86868b;
    text-align: center;
    line-height: 1.5;
    margin: 0;
    max-width: 680px;
    font-weight: 400;
}

.products-visual-final {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 40px 0;
    width: 100%;
}

.product-image-final {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 600px;
    min-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.12));
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px;
}

.product-image-final:hover {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.18));
}

.btn-final-cta {
    width: 100%;
    max-width: 280px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 980px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: -0.01em;
    margin-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

/* Botão fixo na tela final */
#final-screen .btn-final-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    border-radius: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 100;
    padding: 20px 32px;
    box-shadow: 0 -8px 32px rgba(34, 197, 94, 0.4),
                0 -4px 16px rgba(34, 197, 94, 0.3);
}

.btn-final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-final-cta:hover::before {
    opacity: 1;
}

.btn-final-cta:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

#final-screen .btn-final-cta:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 -12px 40px rgba(34, 197, 94, 0.5),
                0 -8px 24px rgba(34, 197, 94, 0.4);
}

.btn-final-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

#final-screen .btn-final-cta:active {
    transform: translateX(-50%) translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 300;
}

.btn-final-cta:hover .btn-arrow {
    transform: translateX(4px);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin: 0;
}

.benefit-item {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefit-item span {
    line-height: 1.3;
}

.check-icon {
    width: 18px;
    height: 18px;
    color: #22c55e;
    flex-shrink: 0;
    background: #f0fdf4;
    border-radius: 50%;
    padding: 3px;
}

/* Barra de Progresso */
.progress-container {
    margin-bottom: 40px;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #22c55e 0%, 
        #16a34a 50%, 
        #15803d 100%);
    border-radius: 24px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4),
                0 0 12px rgba(34, 197, 94, 0.2);
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* Pergunta */
.question-container {
    margin-bottom: 32px;
    text-align: center;
}

.question-text {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.question-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* Opções */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.option {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.option:hover {
    border-color: #22c55e;
    background: #f0fdf4;
    transform: translateX(4px);
}

.option:hover::before {
    background: #22c55e;
}

.option.selected {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.option.selected::before {
    background: #22c55e;
}

.option-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-text {
    font-size: 16px;
    color: #1a1a1a;
    flex: 1;
    line-height: 1.5;
}

.option-check {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #22c55e;
    font-size: 20px;
}

.option.selected .option-check {
    opacity: 1;
}

/* Botões de Navegação */
.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-back {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    white-space: nowrap;
}

.btn-back:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.btn-back:active {
    transform: translateY(0);
}

/* Botão Continuar */
.btn-continue {
    width: 100%;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Botão fixo na tela inicial */
#welcome-screen .btn-continue {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    border-radius: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 100;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    font-size: 20px;
    font-weight: 700;
    padding: 22px 60px 22px 32px;
    box-shadow: 0 -8px 32px rgba(34, 197, 94, 0.5),
                0 -4px 16px rgba(34, 197, 94, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s ease-in-out infinite;
}

#welcome-screen .btn-continue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

#welcome-screen .btn-continue:hover::before {
    left: 100%;
}

#welcome-screen .btn-continue::after {
    content: '→';
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    transition: transform 0.3s ease;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 -8px 32px rgba(34, 197, 94, 0.5),
                    0 -4px 16px rgba(34, 197, 94, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 -12px 40px rgba(34, 197, 94, 0.7),
                    0 -6px 20px rgba(34, 197, 94, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.btn-continue:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #166534 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

#welcome-screen .btn-continue:hover:not(:disabled) {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 -12px 40px rgba(34, 197, 94, 0.7),
                0 -8px 24px rgba(34, 197, 94, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#welcome-screen .btn-continue:hover::after {
    transform: translateY(-50%) translateX(5px);
}

.btn-continue:active:not(:disabled) {
    transform: translateY(0);
}

.btn-continue:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

/* Loading Screen */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-text {
    font-size: 18px;
    color: #666;
    margin-top: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsivo */
@media (max-width: 640px) {
    .welcome-content {
        gap: 16px;
    }

    .main-title {
        font-size: 18px;
    }

    .subtitle {
        font-size: 14px;
    }

    .product-image {
        max-height: 350px;
        min-height: 280px;
    }
    
    #welcome-screen .btn-continue {
        max-width: 100%;
        border-radius: 0;
        font-size: 18px;
        padding: 20px 50px 20px 24px;
    }
    
    #welcome-screen .btn-continue::after {
        right: 24px;
        font-size: 20px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .benefit-item {
        font-size: 15px;
        padding: 3px 0;
    }

    .check-icon {
        width: 16px;
        height: 16px;
    }

    .question-text {
        font-size: 20px;
    }

    .option {
        padding: 16px;
    }

    .option-text {
        font-size: 15px;
    }

    .navigation-buttons {
        gap: 10px;
    }

    .btn-back {
        font-size: 16px;
        padding: 16px 24px;
    }

    .btn-continue {
        font-size: 16px;
        padding: 16px 24px;
    }

    .final-container {
        padding: 15px;
        min-height: 100vh;
    }

    .final-content {
        gap: 16px;
    }

    .final-title {
        font-size: 32px;
        line-height: 1.1;
        letter-spacing: -0.015em;
    }

    .final-subtitle {
        font-size: 19px;
        line-height: 1.4;
    }

    .product-image-final {
        max-height: 400px;
        min-height: 300px;
    }

    .btn-final-cta {
        font-size: 17px;
        padding: 14px 28px;
        max-width: 100%;
    }
    
    .final-content {
        gap: 36px;
        padding-bottom: 100px;
    }
    
    .products-visual-final {
        padding: 24px 0;
    }
    
    #final-screen .btn-final-cta {
        max-width: 100%;
        border-radius: 0;
    }
}

/* Animações de entrada */
.option {
    animation: slideIn 0.4s ease-out backwards;
}

.option:nth-child(1) { animation-delay: 0.1s; }
.option:nth-child(2) { animation-delay: 0.2s; }
.option:nth-child(3) { animation-delay: 0.3s; }
.option:nth-child(4) { animation-delay: 0.4s; }
.option:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

