:root {
    /* Dermatological / Neutral Palette */
    --primary-color: #795548;
    /* Brown 500 */
    --primary-light: #A1887F;
    /* Brown 300 */
    --primary-accent: #D7CCC8;
    /* Brown 100 */
    --surface-color: #FFFFFF;
    --background-color: #FAF9F6;
    /* Off-white / Cream */
    --text-main: #3E2723;
    /* Brown 900 */
    --text-secondary: #5D4037;
    /* Brown 700 */
    --error-color: #D32F2F;
    --success-color: #388E3C;
    --border-radius: 24px;
    --btn-radius: 12px;
    --shadow-soft: 0 20px 40px -10px rgba(121, 85, 72, 0.15);
    --shadow-hover: 0 25px 50px -12px rgba(121, 85, 72, 0.25);
    --transition-speed: 0.3s;
    --font-main: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Alinha no topo para permitir rolagem natural */
    overflow-x: hidden;
    padding: 20px 0;
    /* Espaço para não colar no topo */
    background-image: radial-gradient(#EFEBE9 1px, transparent 1px);
    background-size: 20px 20px;
}

.app-container {
    width: 100%;
    max-width: 500px;
    /* Slightly wider mobile base */
    min-height: 100vh;
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
    .app-container {
        max-width: 650px;
        /* More room for desktop */
        min-height: auto;
        border-radius: var(--border-radius);
        margin: 40px auto;
        overflow: visible;
        border: 1px solid #EFEBE9;
    }

    h1 {
        font-size: 32px !important;
    }

    p {
        font-size: 18px !important;
    }
}

/* Step Images */
.step-image-container {
    width: 100%;
    margin-bottom: 24px;
    border-radius: var(--btn-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 250px;
}

/* Header & Progress */
.quiz-header {
    padding: 24px 24px 0;
    background: var(--surface-color);
    z-index: 10;
}

.progress-container {
    height: 6px;
    background: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-accent));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

/* Main Content */
.quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    /* overflow-y removido para que a rolagem seja na página toda */
}

/* Typography & Layouts */
h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-main);
    animation: slideUpFade 0.6s ease-out;
    text-align: center;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: slideUpFade 0.7s ease-out;
    text-align: center;
}

/* Option Cards */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.option-card {
    background: #F8FAFC;
    border: 2px solid transparent;
    padding: 18px 20px;
    border-radius: var(--btn-radius);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    animation: slideUpFade 0.8s backwards;
    /* Stagger via JS usually, but here generally */
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    background: #EFEBE9;
    /* Brown 50 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.option-card.selected {
    background: #F5E6DD;
    /* Warm light beige */
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(121, 85, 72, 0.2);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: var(--btn-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
    /* Push to bottom if flex column */
    box-shadow: 0 10px 20px -5px rgba(121, 85, 72, 0.4);
    transition: all 0.2s ease;
    animation: fadeInUp 1s ease-out;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(121, 85, 72, 0.5);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:disabled {
    background: #D7CCC8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #D7CCC8;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.analysis-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s ease;
}

.analysis-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.quiz-footer {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #F1F5F9;
    background: #FAFAFA;
}

/* Result & Info Content Styles */
.info-card {
    background: #FFFFFF;
    border-radius: var(--btn-radius);
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid #EFEBE9;
    animation: slideUpFade 0.8s ease-out;
}

.info-card.warning {
    background: #FFF5F5;
    /* Warm Red 50 */
    border-color: #FECACA;
    color: #991B1B;
}

.feature-list,
.result-list {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li,
.result-list li {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight {
    font-weight: 700;
    color: var(--error-color);
    background: rgba(211, 47, 47, 0.1);
    padding: 0 4px;
    border-radius: 4px;
}

.result-highlight {
    background: #EFEBE9;
    /* Brown 50 */
    color: var(--primary-color);
    font-weight: 600;
    padding: 16px;
    border-radius: var(--btn-radius);
    text-align: center;
    border: 1px dashed var(--primary-color);
    margin-top: 24px;
}


.check-icon {
    font-weight: bold;
    color: var(--primary-color);
    transition: opacity 0.2s ease;
}

/* Footer alignment fix */
.quiz-footer {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #F1F5F9;
    background: #FAFAFA;
    margin-top: auto;
}

.secure-text {
    font-size: 13px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    animation: none;
}

/* Call to Action Pulse */
@keyframes pulse-soft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(14, 116, 144, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 116, 144, 0);
    }
}

.btn-primary.pulse {
    animation: pulse-soft 2s infinite;
}

/* Input Styling */
.quiz-input-wrapper {
    width: 100%;
    margin-bottom: 24px;
    margin-top: 12px;
}

.quiz-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-family: var(--font-main);
    color: var(--text-main);
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    /* Slate 300 */
    border-radius: 8px;
    /* Slightly less rounded than buttons often looks cleaner for inputs, or match btn-radius */
    border-radius: var(--btn-radius);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.quiz-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(121, 85, 72, 0.15);
    /* Primary color shadow */
}

.quiz-input::placeholder {
    color: #94A3B8;
    /* Slate 400 */
    font-style: italic;
    opacity: 0.8;
}

/* Analysis Progress Bar */
.analysis-container {
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 16px;
}

.analysis-bar-bg {
    width: 100%;
    height: 12px;
    background: #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.analysis-bar-fill {
    height: 100%;
    background: var(--primary-color);
    /* Brown theme */
    width: 0%;
    border-radius: 20px;
    transition: width 0.1s linear;
}

.analysis-status-text {
    font-size: 16px;
    color: var(--text-secondary);
    min-height: 24px;
    /* prevent layout shift */
    font-weight: 500;
    animation: fadeText 0.3s ease-in-out;
}

@keyframes fadeText {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result Page Custom Styles */
.result-alert-box {
    background: rgb(245, 220, 225);
    border: 1px solid #FFCDD2;
    border-radius: 4px;
    /* Retangular nítido */
    padding: 16px 16px;
    /* Tamanho reduzido compacto */
    text-align: center;
    margin-bottom: 24px;
    color: rgb(120, 20, 40);
    box-shadow: none;
}

.result-alert-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    /* Reduzido para 14px */
    font-weight: 800;
    color: rgb(180, 30, 60);
    text-transform: uppercase;
    margin-bottom: 8px;
    /* Menor margem */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

.result-alert-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    /* Reduzido para 14px */
    color: rgb(120, 20, 40);
    line-height: 1.5;
    font-weight: 500;
}

/* Graph Animations */
@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes revealArea {
    to {
        opacity: 0.6;
        /* Goal opacity */
    }
}

@keyframes wipeLeftToRight {
    from {
        clip-path: inset(0 100% 0 0);
        /* Hidden from right */
    }

    to {
        clip-path: inset(0 0 0 0);
        /* Fully visible */
    }
}

.graph-line-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-in-out forwards;
}

.graph-area-path {
    animation: wipeLeftToRight 2s ease-in-out forwards;
    /* opacity: 0.8 inside defs or here */
}

.graph-point {
    opacity: 0;
    animation: fadeText 0.5s ease-out forwards;
}

.result-explanation-text {
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-secondary);
    line-height: 1.5;
}

.result-explanation-strong {
    font-weight: 600;
    display: block;
    font-size: 17px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.result-graph-container {
    background: #FFF;
    border-radius: 12px;
    padding: 20px 20px;
    /* Balanceado (menos lateral que 30, mais que 10) */
    margin-bottom: 32px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
    overflow: visible;
    /* Prevent text clip */
}

.result-green-box {
    background: #E8F5E9;
    /* Soft Green */
    border: 2px solid #C8E6C9;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    color: #1B5E20;
}

.result-green-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 16px;
}

.result-green-text {
    font-size: 16px;
    line-height: 1.6;
    color: #33691E;
    margin-bottom: 20px;
}

.result-green-list {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
    font-size: 15px;
    color: #33691E;
}

.result-green-list li {
    margin-bottom: 8px;
    list-style: none;
    /* We use emojis manually or pseudo */
}

/* Button overrides for green box */
.btn-primary.green-cta {
    background: #43A047;
    /* Green button */
    box-shadow: 0 4px 6px rgba(67, 160, 71, 0.2);
    width: 100%;
    margin-top: 16px;
    font-size: 14px;
    /* Reduced to fit in one line */
    padding: 16px 8px;
    /* Slightly less side padding to ensure width availability */
}

.btn-primary.green-cta:hover {
    background: #2E7D32;
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.3);
}

/* Testimonials Page Styles */
.testimonials-header {
    text-align: center;
    margin-bottom: 30px;
}

.testimonials-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.testimonials-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #B71C1C;
    /* Destaque em vermelho bordeaux */
    margin-bottom: 10px;
}

.testimonials-support {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    /* Increased for better desktop view */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.carousel-slide img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Carousel buttons removed as requested */


.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 25px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C8E6C9;
    /* Soft green indicator */
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #2E7D32;
    /* Deep green active indicator */
    transform: scale(1.2);
}

/* Sales Page Styles */
.sales-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.2;
}

.highlight-name {
    color: #B71C1C;
    /* Destaque em bordeaux */
    text-transform: capitalize;
}

.video-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #000;
    /* Pre-load background */
}

/* Ensure Vturb player respects container */
vturb-smartplayer {
    width: 100% !important;
    height: auto !important;
}

/* Sale Notification Popup */
.sale-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #388E3C;
    /* Green */
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInLeft 0.5s ease-out forwards;
}

.sale-notification.fade-out {
    animation: fadeOutDown 0.5s ease-in forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(20px);
        opacity: 0;
    }
}