/* ========================================
   Retention Systems - OPTIMIZED Mobile-First Styles
   High-Contrast, High-Converting Design
   Following Optimization Guide for Maximum Readability
   ======================================== */

/* CSS Variables - Optimized Color Palette */
:root {
    /* Primary Colors */
    --navy-blue: #0047BB;
    --white: #FFFFFF;

    /* Secondary Colors */
    --bright-blue: #00A4E4;
    --dark-navy: #003057;

    /* Accent Colors */
    --sunshine-yellow: #FFC845;
    --coral: #FF6B6B;
    --teal: #00C9A7;

    /* Optimized Neutrals - NO MORE LIGHT GRAYS */
    --light-blue-bg: #E6F2FF;

    /* Typography */
    --font-heading: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
}

/* ========================================
   Reset & Base Styles (Mobile First)
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark-navy);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Typography (Mobile First) - OPTIMIZED SIZES
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-navy);
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-navy);
}

/* ========================================
   Section 1: Hero (Above the Fold) - OPTIMIZED
   Background: WHITE (not gradient)
   ======================================== */

.hero {
    background: var(--white);
    color: var(--dark-navy);
    padding: 40px 0 20px;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-text {
    text-align: center;
}

.eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 16px;
}

.headline {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark-navy);
    font-weight: 700;
}

.subhead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--dark-navy);
    margin-bottom: 30px;
    font-weight: 400;
}

/* CTA Buttons - MAXIMUM VISIBILITY */
.cta-primary {
    background: var(--sunshine-yellow);
    color: var(--dark-navy);
    font-size: 18px;
    font-weight: 700;
    padding: 18px 40px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 200, 69, 0.4);
    min-height: 56px;
    width: 100%;
    max-width: 400px;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 200, 69, 0.5);
    background: #FFD970;
}

.cta-primary:active {
    transform: translateY(-1px);
}

/* Split Screen Hero Image */
.hero-image {
    width: 100%;
}

.split-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.screen-left,
.screen-right {
    flex: 1;
}

.job-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.job-card.losing {
    border: 3px solid var(--coral);
}

.job-card.winning {
    border: 3px solid var(--teal);
    background: var(--white);
}

.job-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 12px;
}

.job-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 12px;
}

.job-result {
    font-size: 16px;
    color: var(--dark-navy);
    line-height: 1.5;
    font-weight: 400;
}

/* Trust Bar - NAVY BACKGROUND WITH WHITE TEXT */
.trust-bar {
    margin-top: 40px;
    padding: 20px;
    background: var(--navy-blue);
    border-radius: var(--radius-lg);
    text-align: center;
}

.trust-bar p {
    font-size: 15px;
    color: var(--white);
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========================================
   Section 2: The Problem - OPTIMIZED
   ======================================== */

.problem {
    padding: 60px 0;
    background: var(--light-blue-bg);
}

.problem-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.problem-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 71, 187, 0.1);
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.problem-item:hover {
    border-color: var(--navy-blue);
    transform: translateY(-4px);
}

.problem-item h3 {
    color: var(--coral);
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.problem-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-navy);
}

/* ========================================
   Section 3: Before/After Slider - OPTIMIZED
   ======================================== */

.before-after {
    padding: 60px 0;
    background: var(--white);
}

.slider-container {
    position: relative;
}

.slider-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.slider-side h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 700;
}

.old-way h3 {
    color: var(--coral);
}

.new-way h3 {
    color: var(--teal);
}

.journey {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.step {
    background: var(--light-blue-bg);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    text-align: center;
    max-width: 280px;
    width: 100%;
    color: var(--dark-navy);
    font-weight: 500;
    border: 1px solid var(--navy-blue);
}

.arrow {
    font-size: 24px;
    color: var(--navy-blue);
    font-weight: 700;
}

.step.loss {
    background: rgba(255, 107, 107, 0.9);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    border-color: var(--coral);
}

.step.gain {
    background: rgba(0, 201, 167, 0.9);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    border-color: var(--teal);
}

.slider-divider {
    display: none;
}

.stat-overlay {
    margin-top: 40px;
    text-align: center;
    padding: 24px;
    background: var(--navy-blue);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0, 71, 187, 0.3);
}

.stat-overlay p {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

/* ========================================
   Section 4: Social Proof - OPTIMIZED
   ======================================== */

.social-proof {
    padding: 60px 0;
    background: var(--white);
}

.testimonials {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.video-testimonial {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--navy-blue);
    box-shadow: 0 6px 20px rgba(0, 71, 187, 0.15);
}

.video-placeholder {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.video-placeholder img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--sunshine-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--dark-navy);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-quote {
    font-size: 18px;
    line-height: 1.6;
    color: var(--dark-navy);
    font-style: italic;
    font-weight: 500;
}

.written-testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--navy-blue);
    box-shadow: 0 6px 20px rgba(0, 71, 187, 0.15);
}

.stars {
    font-size: 28px;
    color: var(--sunshine-yellow);
    margin-bottom: 16px;
}

.written-testimonial blockquote {
    font-size: 18px;
    line-height: 1.7;
    color: var(--dark-navy);
    margin-bottom: 16px;
    font-style: italic;
    font-weight: 500;
}

.attribution {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy-blue);
}

.rating-badge {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-navy);
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--navy-blue);
    box-shadow: 0 4px 16px rgba(0, 71, 187, 0.12);
}

/* ========================================
   Section 5: What You Get (Features) - OPTIMIZED
   Icon boxes with navy background
   ======================================== */

.features {
    padding: 60px 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--dark-navy);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--navy-blue);
    box-shadow: 0 4px 16px rgba(0, 71, 187, 0.1);
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 71, 187, 0.2);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 16px;
    background: var(--navy-blue);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark-navy);
    font-weight: 700;
}

.feature-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-navy);
}

/* ========================================
   Section 6: Pricing - OPTIMIZED
   ======================================== */

.pricing {
    padding: 60px 0;
    background: var(--light-blue-bg);
}

.pricing-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pricing-plan {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--navy-blue);
    box-shadow: 0 6px 20px rgba(0, 71, 187, 0.15);
}

.pricing-plan h2 {
    font-size: 32px;
    color: var(--navy-blue);
    margin-bottom: 24px;
    font-weight: 700;
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    font-size: 18px;
    line-height: 2.2;
    color: var(--dark-navy);
    font-weight: 500;
}

.calculator {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--navy-blue);
    box-shadow: 0 6px 20px rgba(0, 71, 187, 0.15);
}

.calculator h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--navy-blue);
    font-weight: 700;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-navy);
}

.input-group input {
    padding: 14px;
    font-size: 16px;
    border: 1px solid var(--navy-blue);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--dark-navy);
    font-weight: 500;
}

.input-group input:focus {
    outline: none;
    border-color: var(--navy-blue);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.1);
}

.calculator-results {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 2px solid var(--light-blue-bg);
}

.calculator-results h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark-navy);
    font-weight: 700;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
}

.result-item span {
    color: var(--dark-navy);
    font-weight: 500;
}

.result-item strong {
    color: var(--navy-blue);
    font-size: 20px;
    font-weight: 700;
}

.result-divider {
    height: 2px;
    background: var(--navy-blue);
    margin: 16px 0;
}

.result-item.profit strong {
    color: var(--teal);
    font-size: 28px;
    font-weight: 700;
}

.calculator-example {
    padding: 20px;
    background: var(--navy-blue);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.calculator-example p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--white);
    font-weight: 500;
}

.calculator-example strong {
    font-weight: 700;
}

/* ========================================
   Section 7: Risk Reversal (Guarantee) - OPTIMIZED
   ======================================== */

.guarantee {
    padding: 60px 0;
    background: var(--white);
}

.guarantee-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.guarantee-badge {
    background: var(--sunshine-yellow);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 10px 32px rgba(255, 200, 69, 0.4);
    border: 4px solid var(--white);
}

.guarantee-badge h3 {
    font-size: 32px;
    color: var(--dark-navy);
    margin-bottom: 16px;
    font-weight: 700;
}

.guarantee-headline {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.4;
}

.guarantee-details {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--navy-blue);
}

.guarantee-details h4 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--navy-blue);
    font-weight: 700;
}

.guarantee-details ul {
    list-style: none;
}

.guarantee-details li {
    font-size: 17px;
    line-height: 2.2;
    color: var(--dark-navy);
    padding-left: 32px;
    position: relative;
    font-weight: 500;
}

.guarantee-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
    font-size: 20px;
}

.scarcity {
    background: rgba(255, 107, 107, 0.15);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--coral);
    text-align: center;
}

.scarcity p {
    font-size: 17px;
    color: var(--dark-navy);
    font-weight: 500;
}

.scarcity strong {
    color: var(--coral);
    font-weight: 700;
}

.proof-screenshot {
    background: var(--light-blue-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.proof-screenshot h4 {
    font-size: 22px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--dark-navy);
    font-weight: 700;
}

.dashboard-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-stat {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--navy-blue);
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--dark-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ========================================
   Section 8: Final CTA - OPTIMIZED
   Navy background with white text
   ======================================== */

.final-cta {
    padding: 60px 0;
    background: var(--navy-blue);
    text-align: center;
}

.final-cta h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.3;
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.cta-secondary {
    background: var(--white);
    color: var(--navy-blue);
    font-size: 18px;
    font-weight: 700;
    padding: 18px 40px;
    border: 2px solid var(--white);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px;
    width: 100%;
    max-width: 400px;
}

.cta-secondary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* ========================================
   Tablet Styles (768px and up)
   ======================================== */

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    /* Typography increases */
    h1 { font-size: 48px; }
    h2 { font-size: 40px; }
    h3 { font-size: 28px; }

    p {
        font-size: 18px;
    }

    .headline {
        font-size: 48px;
    }

    .subhead {
        font-size: 20px;
    }

    .split-screen {
        flex-direction: row;
        gap: 24px;
    }

    .problem-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .slider-content {
        flex-direction: row;
        align-items: center;
        position: relative;
        gap: 60px;
    }

    .slider-divider {
        display: block;
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--navy-blue);
        transform: translateX(-50%);
    }

    .slider-side {
        flex: 1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .features h2 {
        font-size: 44px;
    }

    .testimonials {
        flex-direction: row;
        gap: 30px;
    }

    .video-testimonial,
    .written-testimonial {
        flex: 1;
    }

    .pricing-content {
        flex-direction: row;
        gap: 30px;
    }

    .pricing-plan,
    .calculator {
        flex: 1;
    }

    .dashboard-preview {
        flex-direction: row;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .cta-primary,
    .cta-secondary {
        width: auto;
        min-width: 280px;
    }

    .final-cta h2 {
        font-size: 40px;
    }
}

/* ========================================
   Desktop Styles (1024px and up)
   ======================================== */

@media (min-width: 1024px) {
    .headline {
        font-size: 56px;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .hero-text {
        flex: 1;
        text-align: left;
    }

    .hero-image {
        flex: 1;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features h2 {
        font-size: 48px;
    }

    .final-cta h2 {
        font-size: 44px;
    }

    .job-amount {
        font-size: 56px;
    }

    .stat-number {
        font-size: 48px;
    }
}

/* ========================================
   Large Desktop Styles (1200px and up)
   ======================================== */

@media (min-width: 1200px) {
    .headline {
        font-size: 64px;
    }

    .final-cta h2 {
        font-size: 48px;
    }

    h2 {
        font-size: 44px;
    }
}

/* ========================================
   Accessibility & Performance Enhancements
   ======================================== */

/* Focus states for keyboard navigation */
button:focus,
input:focus {
    outline: 3px solid var(--bright-blue);
    outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
