/* ===================================================================
   retention-light.css
   Light theme override for the Retention AI product page.
   Loaded AFTER styles.css and product-page.css.
   All rules scoped to body.page-retention to avoid polluting other pages.
   =================================================================== */

/* ===== 1. CSS Custom Properties (scoped to page) ===== */
body.page-retention {
    --ret-bg-main:        #FFFFFF;
    --ret-bg-subtle:      #F8FAFC;
    --ret-text-primary:   #0F172A;
    --ret-text-secondary: #64748B;
    --ret-accent:         #1B4F72;
    --ret-accent-bright:  #3B82F6;
    --ret-accent-hover:   #0F3A5C;
    --ret-success:        #10B981;
    --ret-border:         #E2E8F0;
    --ret-radius:         14px;
    --ret-max-width:      1200px;
    --ret-text-width:     680px;
}

/* ===== 2. Body override ===== */
body.page-retention {
    background-color: var(--ret-bg-main);
    color: var(--ret-text-primary);
}

/* ===== 3. Shared Section / Container helpers ===== */
body.page-retention .ret-section {
    padding: 96px 0;
    background-color: var(--ret-bg-main);
}

body.page-retention .ret-section-subtle {
    background-color: var(--ret-bg-subtle);
}

body.page-retention .ret-container {
    width: 100%;
    max-width: var(--ret-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

body.page-retention .ret-section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--ret-text-primary);
    line-height: 1.15;
    margin-bottom: 16px;
}

body.page-retention .ret-section-subtitle {
    font-size: 18px;
    color: var(--ret-text-secondary);
    max-width: var(--ret-text-width);
    line-height: 1.65;
    margin-bottom: 56px;
}

/* Center variant */
body.page-retention .ret-section-header-center {
    text-align: center;
}

body.page-retention .ret-section-header-center .ret-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ===== 4. Shared Button Styles ===== */
body.page-retention .ret-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    border-radius: 8px;
    padding: 15px 32px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

body.page-retention .ret-btn-primary {
    background-color: var(--ret-accent);
    color: #FFFFFF;
    border-color: var(--ret-accent);
}

body.page-retention .ret-btn-primary:hover {
    background-color: var(--ret-accent-hover);
    border-color: var(--ret-accent-hover);
    color: #FFFFFF;
}

body.page-retention .ret-btn-secondary {
    background-color: transparent;
    color: var(--ret-accent);
    border-color: var(--ret-accent);
}

body.page-retention .ret-btn-secondary:hover {
    background-color: var(--ret-accent);
    color: #FFFFFF;
}

body.page-retention .ret-btn-white {
    background-color: #FFFFFF;
    color: var(--ret-accent);
    border-color: #FFFFFF;
}

body.page-retention .ret-btn-white:hover {
    background-color: var(--ret-bg-subtle);
    border-color: var(--ret-bg-subtle);
    color: var(--ret-accent-hover);
}

/* ===== 5. Hero Section ===== */
body.page-retention .ret-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #FFFFFF 60%, #F0F7FF 100%);
    overflow: hidden;
}

body.page-retention .ret-hero-inner {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 64px;
    align-items: center;
    max-width: var(--ret-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Left column */
body.page-retention .ret-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body.page-retention .ret-hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ret-accent);
    margin-bottom: -8px;
}

body.page-retention .ret-hero-headline {
    font-size: clamp(44px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ret-text-primary);
    margin: 0;
}

body.page-retention .ret-hero-sub {
    font-size: 20px;
    color: var(--ret-text-secondary);
    line-height: 1.6;
    max-width: 560px;
    margin: 0;
}

/* Stats row */
body.page-retention .ret-hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid var(--ret-border);
    border-bottom: 1px solid var(--ret-border);
}

body.page-retention .ret-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.page-retention .ret-stat-value {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--ret-success);
    line-height: 1;
}

body.page-retention .ret-stat-label {
    font-size: 13px;
    color: var(--ret-text-secondary);
    line-height: 1.4;
}

/* CTA group */
body.page-retention .ret-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Trust bar */
body.page-retention .ret-hero-trust {
    font-size: 14px;
    color: var(--ret-text-secondary);
    margin: -8px 0 0;
}

/* Right column: Player Profile Card mockup */
body.page-retention .ret-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-retention .ret-profile-card {
    background: #FFFFFF;
    border: 1px solid var(--ret-border);
    border-radius: var(--ret-radius);
    padding: 28px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.page-retention .ret-profile-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ret-border);
}

body.page-retention .ret-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B4F72 0%, #3B82F6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

body.page-retention .ret-profile-info {
    flex: 1;
    min-width: 0;
}

body.page-retention .ret-profile-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ret-text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-retention .ret-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--ret-success);
}

body.page-retention .ret-profile-attrs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

body.page-retention .ret-attr {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.page-retention .ret-attr-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--ret-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.page-retention .ret-attr-value {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--ret-text-primary);
}

body.page-retention .ret-attr-value.is-success {
    color: var(--ret-success);
}

body.page-retention .ret-attr-value.is-accent {
    color: var(--ret-accent);
}

/* ===== 6. Problem Section ===== */
body.page-retention .ret-problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

body.page-retention .ret-problem-card {
    background: #FFFFFF;
    border: 1px solid var(--ret-border);
    border-radius: var(--ret-radius);
    padding: 32px;
    transition: box-shadow 0.2s ease;
}

body.page-retention .ret-problem-card:hover {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

body.page-retention .ret-problem-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--ret-accent);
}

body.page-retention .ret-problem-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ret-text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

body.page-retention .ret-problem-desc {
    font-size: 15px;
    color: var(--ret-text-secondary);
    line-height: 1.65;
}

/* ===== 7. Solution Section ===== */
body.page-retention .ret-solution-body {
    max-width: var(--ret-text-width);
    margin: 0 auto;
}

body.page-retention .ret-solution-lead {
    font-size: 20px;
    color: var(--ret-text-primary);
    line-height: 1.65;
    margin-bottom: 40px;
}

body.page-retention .ret-quote-block {
    border-left: 4px solid var(--ret-accent);
    padding: 24px 28px;
    background: var(--ret-bg-subtle);
    border-radius: 0 var(--ret-radius) var(--ret-radius) 0;
}

body.page-retention .ret-quote-text {
    font-size: 18px;
    font-style: italic;
    color: var(--ret-text-primary);
    line-height: 1.7;
    margin-bottom: 12px;
}

body.page-retention .ret-quote-attr {
    font-size: 14px;
    color: var(--ret-text-secondary);
    font-style: normal;
}

/* ===== 8. Key Numbers Section ===== */
body.page-retention .ret-numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

body.page-retention .ret-number-card {
    background: #FFFFFF;
    border: 1px solid var(--ret-border);
    border-radius: var(--ret-radius);
    padding: 32px 28px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

body.page-retention .ret-number-card:hover {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

body.page-retention .ret-number-value {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(40px, 5vw, 80px);
    font-weight: 800;
    line-height: 1;
    color: var(--ret-accent);
    font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
}

body.page-retention .ret-number-label {
    font-size: 15px;
    color: var(--ret-text-secondary);
    line-height: 1.5;
}

body.page-retention .ret-number-value.is-success {
    color: var(--ret-success);
}

/* ===== 9. Two Ways to Work Section ===== */
body.page-retention .ret-modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

body.page-retention .ret-mode-card {
    background: #FFFFFF;
    border: 1px solid var(--ret-border);
    border-radius: var(--ret-radius);
    padding: 36px 32px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

body.page-retention .ret-mode-card:hover {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

body.page-retention .ret-mode-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

body.page-retention .ret-mode-badge-blue {
    background: rgba(59, 130, 246, 0.10);
    color: var(--ret-accent-bright);
}

body.page-retention .ret-mode-badge-gold {
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
}

body.page-retention .ret-mode-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ret-text-primary);
    margin-bottom: 8px;
}

body.page-retention .ret-mode-positioning {
    font-size: 15px;
    color: var(--ret-text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

body.page-retention .ret-mode-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.page-retention .ret-mode-list li {
    font-size: 15px;
    color: var(--ret-text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

body.page-retention .ret-mode-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ret-accent);
}

body.page-retention .ret-mode-message {
    font-size: 14px;
    font-style: italic;
    color: var(--ret-text-secondary);
    padding-top: 20px;
    border-top: 1px solid var(--ret-border);
    line-height: 1.6;
}

/* ===== 10. Works With Your Stack Section ===== */
body.page-retention .ret-platform-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

body.page-retention .ret-platform-tag {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--ret-text-primary);
    background: #FFFFFF;
    border: 1px solid var(--ret-border);
    border-radius: 8px;
    padding: 8px 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.page-retention .ret-platform-tag:hover {
    border-color: var(--ret-accent);
    box-shadow: 0 2px 8px rgba(27, 79, 114, 0.10);
}

/* Architecture Diagram */
body.page-retention .ret-arch-diagram {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 48px;
}

body.page-retention .ret-arch-block {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid var(--ret-border);
    border-radius: var(--ret-radius);
    padding: 28px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.page-retention .ret-arch-block-center {
    border-color: var(--ret-accent);
    background: rgba(27, 79, 114, 0.03);
}

body.page-retention .ret-arch-block-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ret-text-primary);
    margin-bottom: 4px;
}

body.page-retention .ret-arch-block-desc {
    font-size: 13px;
    color: var(--ret-text-secondary);
    line-height: 1.6;
}

body.page-retention .ret-arch-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.page-retention .ret-arch-block-list li {
    font-size: 13px;
    color: var(--ret-text-secondary);
    padding-left: 14px;
    position: relative;
}

body.page-retention .ret-arch-block-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--ret-accent);
}

body.page-retention .ret-arch-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ret-accent);
    margin-top: auto;
    padding-top: 16px;
}

body.page-retention .ret-arch-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    color: var(--ret-border);
}

body.page-retention .ret-arch-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--ret-accent);
    opacity: 0.5;
}

/* ===== 11. How It Works Section ===== */
body.page-retention .ret-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

body.page-retention .ret-step-card {
    background: #FFFFFF;
    border: 1px solid var(--ret-border);
    border-radius: var(--ret-radius);
    padding: 32px 28px;
    transition: box-shadow 0.2s ease;
}

body.page-retention .ret-step-card:hover {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

body.page-retention .ret-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ret-accent);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}

body.page-retention .ret-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ret-text-primary);
    margin-bottom: 12px;
}

body.page-retention .ret-step-desc {
    font-size: 15px;
    color: var(--ret-text-secondary);
    line-height: 1.65;
}

/* ===== 12. Under the Hood Section ===== */
body.page-retention .ret-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

body.page-retention .ret-tech-card {
    background: #FFFFFF;
    border: 1px solid var(--ret-border);
    border-radius: var(--ret-radius);
    padding: 24px 20px;
    transition: box-shadow 0.2s ease;
}

body.page-retention .ret-tech-card:hover {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

body.page-retention .ret-tech-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ret-text-primary);
    margin-bottom: 8px;
}

body.page-retention .ret-tech-card-desc {
    font-size: 13px;
    color: var(--ret-text-secondary);
    line-height: 1.6;
}

body.page-retention .ret-tech-tag {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--ret-accent);
    background: rgba(27, 79, 114, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 10px;
}

/* ===== 13. Final CTA Section ===== */
body.page-retention .ret-final-cta {
    padding: 96px 0;
    background-color: var(--ret-accent);
    color: #FFFFFF;
    text-align: center;
}

body.page-retention .ret-final-cta .ret-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

body.page-retention .ret-final-cta-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
    max-width: 640px;
    margin: 0;
}

body.page-retention .ret-final-cta-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}

body.page-retention .ret-final-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

body.page-retention .ret-final-cta-email {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

body.page-retention .ret-final-cta-email a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== 14. Responsive Rules ===== */

/* --- 1024px breakpoint --- */
@media (max-width: 1024px) {
    /* Hero: single column */
    body.page-retention .ret-hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    body.page-retention .ret-hero-visual {
        order: -1;
    }

    body.page-retention .ret-profile-card {
        max-width: 480px;
    }

    /* Problems: 2-col */
    body.page-retention .ret-problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Numbers: 2-col */
    body.page-retention .ret-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Steps: 2-col */
    body.page-retention .ret-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tech: 2-col */
    body.page-retention .ret-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Architecture: vertical */
    body.page-retention .ret-arch-diagram {
        flex-direction: column;
        align-items: stretch;
    }

    body.page-retention .ret-arch-arrow {
        width: auto;
        height: 40px;
        transform: rotate(90deg);
    }
}

/* --- 768px breakpoint --- */
@media (max-width: 768px) {
    body.page-retention .ret-section {
        padding: 64px 0;
    }

    body.page-retention .ret-final-cta {
        padding: 64px 0;
    }

    /* Hero stats: stack */
    body.page-retention .ret-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    /* Hero CTAs: stack */
    body.page-retention .ret-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    body.page-retention .ret-hero-ctas .ret-btn {
        width: 100%;
        text-align: center;
    }

    /* Modes: 1-col */
    body.page-retention .ret-modes-grid {
        grid-template-columns: 1fr;
    }

    /* Numbers: 1-col */
    body.page-retention .ret-numbers-grid {
        grid-template-columns: 1fr;
    }

    /* Steps: 1-col */
    body.page-retention .ret-steps-grid {
        grid-template-columns: 1fr;
    }

    /* Tech: 1-col */
    body.page-retention .ret-tech-grid {
        grid-template-columns: 1fr;
    }

    /* Problems: 1-col */
    body.page-retention .ret-problems-grid {
        grid-template-columns: 1fr;
    }

    /* Final CTA buttons: full-width */
    body.page-retention .ret-final-cta-actions .ret-btn {
        width: 100%;
        text-align: center;
    }

    /* Profile card: full width */
    body.page-retention .ret-profile-card {
        max-width: 100%;
    }

    /* Hero headline smaller on narrow screens */
    body.page-retention .ret-hero-headline {
        font-size: clamp(36px, 8vw, 52px);
    }

    /* Modes: adjust padding */
    body.page-retention .ret-mode-card {
        padding: 28px 24px;
    }
}

/* --- 480px / very narrow --- */
@media (max-width: 480px) {
    body.page-retention .ret-hero {
        padding: 96px 0 64px;
    }

    body.page-retention .ret-stat-value {
        font-size: 28px;
    }

    body.page-retention .ret-profile-attrs {
        grid-template-columns: 1fr;
    }

    body.page-retention .ret-hero-sub {
        font-size: 17px;
    }
}
