/* Global Styles */
/* Font loading moved to HTML for better performance */

:root {
    --primary-color: #066a3a;
    /* Darker Green from Image */
    --secondary-color: #27ae60;
    --accent-color: #f1c40f;
    --bg-color: #f4f9f6;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --success: #2ecc71;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* New Specific Colors from Reference */
    --ref-green-dark: #0f5132;
    --ref-green-light: #d1e7dd;
    --ref-green-border: #badbcc;
    --insight-bg: #eafff5;
    --insight-border: #00b865;
    --check-bg: #dcfce7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Welcome Screen --- */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Default (Mobile): Smaller image for faster LCP */
    background: url('https://images.unsplash.com/photo-1579621970563-ebec7560ff3e?ixlib=rb-1.2.1&auto=format&fit=crop&w=600&q=50&fm=webp') no-repeat center center/cover;
    background-color: #1a5c37;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Desktop: Higher quality image */
@media (min-width: 768px) {
    #welcome-screen {
        background-image: url('https://images.unsplash.com/photo-1579621970563-ebec7560ff3e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1080&q=60&fm=webp');
    }
}

#welcome-screen .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 92, 55, 0.85);
    /* Strong green overlay */
    backdrop-filter: blur(3px);
}

#welcome-screen .content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 700px;
    color: #fff;
}

#welcome-screen .main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#welcome-screen .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
}

.start-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: #2ecc71;
}

/* --- Quiz Section --- */
#quiz-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.quiz-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 600px;
    transition: transform 0.3s ease;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.4s ease;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: var(--bg-color);
    border: 2px solid transparent;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-btn:hover {
    border-color: var(--secondary-color);
    background: #eafaf1;
    transform: translateY(-2px);
}

.option-letter {
    font-weight: 700;
    color: var(--primary-color);
    background: #d4efdf;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Analysis & Transitions --- */
.hidden {
    display: none !important;
}

#analysis-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.star-rating {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* --- Sales Page NEW DESIGN --- */
#sales-page {
    animation: fadeIn 1s ease-out;
    padding-bottom: 60px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* White Card Header Style */
.sales-card-header {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.sales-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.sales-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Green Insight Box */
.green-insight-box {
    background: var(--insight-bg);
    border-left: 5px solid var(--insight-border);
    padding: 25px;
    border-radius: 8px;
    margin: 30px auto;
    text-align: left;
    max-width: 800px;
    display: flex;
    gap: 20px;
}

.insight-icon {
    font-size: 2rem;
}

.insight-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.insight-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Checkmark Box */
.green-check-box {
    background: var(--check-bg);
    padding: 20px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid var(--ref-green-border);
}

.green-check-box p {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.green-check-box .check-icon {
    background: var(--secondary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Guarantee Box */
.guarantee-box {
    background: var(--white);
    border: 2px dashed var(--secondary-color);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

/* FAQ Styles */
.faq-section {
    padding: 40px 20px;
    background: var(--bg-color);
}

.faq-grid {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.01);
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust if content is very long */
}

/* Remaining Sections */
.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.vsl-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: #000;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 10;
}

.benefits-section {
    padding: 0 20px 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
}

.benefit-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.testimonials-section {
    background: #fff;
    padding: 60px 20px;
}

.testimonial {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.testimonial p {
    font-style: italic;
    color: var(--text-color);
}

.client-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
    display: block;
}

.offer-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--bg-color) 0%, #e8f6f3 100%);
    text-align: center;
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.price-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Featured / Pop-up Animation Styles */
.price-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
    position: relative;
    overflow: visible;
    /* Allow shadow/badge to be seen */
    z-index: 1;
}

.price-card.featured:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.2);
    z-index: 2;
}

@keyframes popup {
    0% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 20px 50px rgba(39, 174, 96, 0.3);
    }

    100% {
        transform: scale(1.05);
    }
}

.pop-up-animation {
    animation: popup 1.5s ease infinite;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 10;
}

.plan-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.price {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin: 15px 0;
}

.price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.features-list {
    text-align: left;
    margin: 20px 0;
    flex-grow: 1;
    list-style: none;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
}

.cta-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 92, 55, 0.5);
}

.comparison-table {
    width: 100%;
    margin: 50px 0;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: var(--primary-color);
    color: var(--white);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #welcome-screen .main-title {
        font-size: 1.8rem;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        /* Space for the scaled up card */
    }

    .price-card.featured {
        transform: scale(1.05);
        /* Slight prominence on mobile too */
        order: -1;
    }

    .headline {
        font-size: 1.8rem;
    }

    .vsl-container {
        margin: 0 auto 30px;
        width: 100%;
    }

    .green-insight-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .insight-content h3 {
        text-align: center;
    }
}