/* =============================================
   LEADFELLOW HOMEPAGE REDESIGN — 2026
   ============================================= */

/* --- Variables --- */
:root {
    --lf-primary: #14b870;
    --lf-primary-dark: #0f9a5c;
    --lf-secondary: #6c5ce7;
    --lf-secondary-dark: #5a4bd1;
    --lf-dark: #1a1a2e;
    --lf-heading: #2b2350;
    --lf-body: #5a5775;
    --lf-light-bg: #f7f8fc;
    --lf-white: #ffffff;
    --lf-border: #e8e6f0;
    --lf-ai-accent: #6c5ce7;
    --lf-radius: 12px;
    --lf-radius-lg: 20px;
    --lf-shadow: 0 4px 24px rgba(43, 35, 80, 0.08);
    --lf-shadow-lg: 0 12px 48px rgba(43, 35, 80, 0.12);
}

/* --- Reset for home sections --- */
.home-redesign section {
    overflow: hidden;
}

.home-redesign .lf-section-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--lf-heading);
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.25;
}

.home-redesign .lf-section-title--light {
    color: var(--lf-white);
}

/* --- Buttons --- */
.lf-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.lf-btn--primary {
    background: var(--lf-primary);
    color: var(--lf-white);
    border-color: var(--lf-primary);
}
.lf-btn--primary:hover {
    background: var(--lf-primary-dark);
    border-color: var(--lf-primary-dark);
    color: var(--lf-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 184, 112, 0.3);
}

.lf-btn--secondary {
    background: var(--lf-secondary);
    color: var(--lf-white);
    border-color: var(--lf-secondary);
}
.lf-btn--secondary:hover {
    background: var(--lf-secondary-dark);
    border-color: var(--lf-secondary-dark);
    color: var(--lf-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}

.lf-btn--outline {
    background: transparent;
    color: var(--lf-heading);
    border-color: var(--lf-border);
}
.lf-btn--outline:hover {
    background: var(--lf-heading);
    color: var(--lf-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.lf-btn--outline-light {
    background: transparent;
    color: var(--lf-white);
    border-color: rgba(255,255,255,0.4);
}
.lf-btn--outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: var(--lf-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.lf-btn--block {
    display: block;
    width: 100%;
}

.lf-btn--lg {
    padding: 18px 40px;
    font-size: 18px;
}

/* =============================================
   1. HERO SECTION
   ============================================= */
.lf-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f7f8fc 0%, #eef0f8 100%);
    position: relative;
}

.lf-hero__badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.lf-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.lf-badge--eu {
    background: #e3f9ed;
    color: #0f9a5c;
}

.lf-badge--ai {
    background: #ede9ff;
    color: #6c5ce7;
}

.lf-hero__title {
    font-family: 'Work Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--lf-heading);
    margin-bottom: 20px;
}

.lf-hero__title span {
    color: var(--lf-primary);
}

.lf-hero__subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--lf-body);
    margin-bottom: 32px;
    max-width: 500px;
}

.lf-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lf-hero__micro {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.lf-hero__visual {
    text-align: center;
}

.lf-hero__img {
    max-width: 100%;
    border-radius: var(--lf-radius-lg);
    box-shadow: var(--lf-shadow-lg);
}

/* =============================================
   2. SOCIAL PROOF BAR
   ============================================= */
.lf-proof-bar {
    padding: 32px 0;
    background: var(--lf-white);
    border-bottom: 1px solid var(--lf-border);
}

.lf-proof-bar__label {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.lf-proof-bar__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.lf-proof-bar__item {
    font-size: 15px;
    font-weight: 600;
    color: #b0adc0;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.3s;
}

.lf-proof-bar__item:hover {
    color: var(--lf-heading);
}

.lf-proof-bar__item--ai {
    color: var(--lf-ai-accent);
    background: #f0edff;
}

/* =============================================
   3. PROBLEM SECTION
   ============================================= */
.lf-problems {
    padding: 80px 0 60px;
    background: var(--lf-white);
}

.lf-problem-card {
    background: var(--lf-light-bg);
    border-radius: var(--lf-radius);
    padding: 36px 28px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--lf-border);
}

.lf-problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lf-shadow);
}

.lf-problem-card__icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.lf-problem-card__quote {
    font-size: 18px;
    font-weight: 600;
    color: var(--lf-heading);
    margin-bottom: 12px;
    font-style: italic;
    line-height: 1.4;
}

.lf-problem-card__text {
    font-size: 15px;
    color: var(--lf-body);
    line-height: 1.65;
    margin: 0;
}

.lf-problems__transition {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    font-weight: 600;
    color: var(--lf-primary);
}

/* =============================================
   4. HOW IT WORKS — STEPS
   ============================================= */
.lf-steps {
    padding: 80px 0;
    background: var(--lf-light-bg);
}

.lf-step {
    text-align: center;
    padding: 32px 24px;
}

.lf-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lf-primary);
    color: var(--lf-white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.lf-step__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--lf-heading);
    margin-bottom: 12px;
}

.lf-step__text {
    font-size: 15px;
    color: var(--lf-body);
    line-height: 1.65;
    max-width: 320px;
    margin: 0 auto;
}

.lf-steps__note {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
    color: #999;
    font-style: italic;
}

/* =============================================
   5. TWO SIDES — ROLES TABS
   ============================================= */
.lf-roles {
    padding: 80px 0;
    background: var(--lf-white);
}

.lf-roles__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.lf-roles__tab {
    padding: 12px 32px;
    border-radius: 30px;
    border: 2px solid var(--lf-border);
    background: transparent;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--lf-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lf-roles__tab--active {
    background: var(--lf-heading);
    color: var(--lf-white);
    border-color: var(--lf-heading);
}

.lf-roles__tab:hover:not(.lf-roles__tab--active) {
    border-color: var(--lf-heading);
    color: var(--lf-heading);
}

.lf-roles__content {
    display: none;
}

.lf-roles__content--active {
    display: block;
}

.lf-roles__role-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--lf-heading);
    margin-bottom: 24px;
    line-height: 1.3;
}

.lf-roles__list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.lf-roles__list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--lf-body);
    line-height: 1.5;
}

.lf-roles__list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--lf-primary);
    font-weight: 700;
    font-size: 16px;
}

.lf-roles__img {
    max-width: 100%;
    border-radius: var(--lf-radius-lg);
    box-shadow: var(--lf-shadow);
}

/* =============================================
   6. AI / AGENT SECTION
   ============================================= */
.lf-ai {
    /* AI section with light background for better readability */
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1040 100%);
    color: #ffffff;
}

.lf-ai .lf-section-title--light {
    color: #ffffff !important;
}

.lf-ai__subtitle {
    text-align: center;
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    max-width: 640px;
    margin: -24px auto 48px;
    line-height: 1.65;
}

.lf-ai__demo {
    max-width: 720px;
    margin: 0 auto 56px;
}

.lf-ai__terminal {
    background: #0d0d1a;
    border-radius: var(--lf-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.lf-ai__terminal-header {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lf-ai__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.lf-ai__dot--red { background: #ff5f57; }
.lf-ai__dot--yellow { background: #febc2e; }
.lf-ai__dot--green { background: #28c840; }

.lf-ai__terminal-body {
    padding: 28px 24px;
}

.lf-ai__msg {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.lf-ai__msg:last-child {
    margin-bottom: 0;
}

.lf-ai__msg--user {
    color: #ffffff;
}

.lf-ai__msg--agent {
    color: #5eff82;
    padding-left: 16px;
    border-left: 3px solid rgba(40, 200, 64, 0.4);
}

.lf-ai__features {
    margin-bottom: 40px;
}

.lf-ai__card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--lf-radius);
    padding: 28px 24px;
    height: 100%;
    transition: background 0.3s ease;
}

.lf-ai__card:hover {
    background: rgba(255,255,255,0.1);
}

.lf-ai__card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 12px;
}

.lf-ai__card p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.65;
    margin: 0;
}

/* Force high contrast for all AI section text */
.lf-ai,
.lf-ai h2,
.lf-ai h4,
.lf-ai p,
.lf-ai strong {
    color: #ffffff !important;
}

.lf-ai__subtitle {
    color: rgba(255,255,255,0.9) !important;
}

.lf-ai__card p {
    color: rgba(255,255,255,0.88) !important;
}

.lf-ai__msg--user {
    color: #e8e8ff !important;
}

.lf-ai__msg--agent {
    color: #5eff82 !important;
}

.lf-ai__terminal {
    background: #060612 !important;
}

.lf-ai .lf-btn--outline-light {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.lf-ai .lf-btn--outline-light:hover {
    background: rgba(255,255,255,0.2) !important;
}

.lf-ai__links {
    text-align: center;
}

/* =============================================
   7. INTEGRATIONS SECTION
   ============================================= */
.lf-integrations {
    padding: 80px 0;
    background: var(--lf-light-bg);
}

.lf-integrations__row {
    margin-bottom: 32px;
    text-align: center;
}

.lf-integrations__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.lf-integrations__grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lf-integrations__item {
    padding: 12px 24px;
    background: var(--lf-white);
    border: 1px solid var(--lf-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lf-heading);
    transition: all 0.3s ease;
}

.lf-integrations__item:hover {
    box-shadow: var(--lf-shadow);
    transform: translateY(-2px);
}

.lf-integrations__item--ai {
    border-color: var(--lf-ai-accent);
    color: var(--lf-ai-accent);
    background: #f8f6ff;
}

.lf-integrations__note {
    text-align: center;
    margin-top: 16px;
    font-size: 15px;
    color: #999;
}

/* =============================================
   8. METRICS / SOCIAL PROOF
   ============================================= */
.lf-metrics {
    padding: 80px 0;
    background: var(--lf-white);
}

.lf-metric-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--lf-light-bg);
    border-radius: var(--lf-radius);
    border: 1px solid var(--lf-border);
    height: 100%;
}

.lf-metric-card__number {
    font-size: 32px;
    font-weight: 700;
    color: var(--lf-heading);
    margin-bottom: 8px;
}

.lf-metric-card__text {
    font-size: 15px;
    color: var(--lf-body);
    margin: 0;
}

/* =============================================
   9. PRICING PREVIEW
   ============================================= */
.lf-pricing {
    padding: 80px 0;
    background: var(--lf-light-bg);
}

.lf-pricing-card {
    background: var(--lf-white);
    border-radius: var(--lf-radius);
    padding: 40px 32px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--lf-border);
    transition: all 0.3s ease;
}

.lf-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lf-shadow-lg);
}

.lf-pricing-card--featured {
    border-color: var(--lf-secondary);
    position: relative;
}

.lf-pricing-card--featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lf-secondary);
    color: var(--lf-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.lf-pricing-card__name {
    font-size: 20px;
    font-weight: 600;
    color: var(--lf-heading);
    margin-bottom: 8px;
}

.lf-pricing-card__price {
    font-size: 44px;
    font-weight: 800;
    color: var(--lf-heading);
    margin-bottom: 4px;
    line-height: 1.1;
}

.lf-pricing-card__period {
    font-size: 16px;
    font-weight: 400;
    color: var(--lf-body);
}

.lf-pricing-card__trial {
    font-size: 14px;
    color: var(--lf-primary);
    margin-bottom: 24px;
}

.lf-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex-grow: 1;
    text-align: left;
}

.lf-pricing-card__features li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
    color: var(--lf-body);
    border-bottom: 1px solid var(--lf-border);
}

.lf-pricing-card__features li:last-child {
    border-bottom: none;
}

.lf-pricing-card__features li::before {
    content: '\2713';
    position: absolute;
    left: 4px;
    color: var(--lf-primary);
    font-weight: 700;
}

.lf-pricing__note {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #999;
}

/* =============================================
   10. FINAL CTA
   ============================================= */
.lf-final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2b2350 100%);
    text-align: center;
    color: var(--lf-white);
}

.lf-final-cta__title {
    font-family: 'Work Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--lf-white);
    margin-bottom: 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.lf-final-cta__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
}

.lf-final-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.lf-final-cta__demo {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
}

.lf-final-cta__demo a {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
}

.lf-final-cta__demo a:hover {
    color: var(--lf-white);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .lf-hero {
        padding: 120px 0 60px;
    }

    .lf-hero__title {
        font-size: 36px;
    }

    .lf-hero__visual {
        margin-top: 40px;
    }

    .lf-hero__text {
        order: 1;
    }

    .lf-hero__visual {
        order: 2;
    }

    .home-redesign .lf-section-title {
        font-size: 28px;
        margin-bottom: 36px;
    }

    .lf-roles__role-title {
        font-size: 24px;
    }

    .lf-roles__visual {
        margin-top: 32px;
    }

    .lf-final-cta__title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .lf-hero {
        padding: 100px 0 48px;
    }

    .lf-hero__title {
        font-size: 30px;
    }

    .lf-hero__subtitle {
        font-size: 17px;
    }

    .lf-hero__ctas {
        flex-direction: column;
    }

    .lf-hero__ctas .lf-btn {
        text-align: center;
    }

    .lf-problems,
    .lf-steps,
    .lf-roles,
    .lf-integrations,
    .lf-metrics,
    .lf-pricing {
        padding: 60px 0;
    }

    .lf-ai {
    /* AI section with light background for better readability */
        padding: 70px 0;
    }

    .lf-final-cta {
        padding: 70px 0;
    }

    .lf-proof-bar__grid {
        gap: 16px;
    }

    .lf-problem-card {
        margin-bottom: 20px;
    }

    .lf-step {
        padding: 20px 16px;
    }

    .lf-pricing-card {
        margin-bottom: 20px;
    }

    .lf-metric-card {
        margin-bottom: 16px;
    }

    .lf-final-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .lf-ai__terminal-body {
        padding: 20px 16px;
    }

    .lf-ai__msg {
        font-size: 14px;
    }

    .lf-roles__tabs {
        margin-bottom: 32px;
    }

    .lf-roles__tab {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Pricing card description */
.lf-pricing-card__desc {
    font-size: 14px;
    color: var(--lf-body);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Header nav buttons - Leadfellow blue */
.nav-right .nav-btn {
    color: #2b2350 !important;
    font-weight: 500 !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.nav-right .nav-btn:hover {
    color: #6c5ce7 !important;
    text-decoration: none !important;
}

.nav-right .nav-btn-cta {
    background: #6c5ce7 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 8px 24px !important;
}

.nav-right .nav-btn-cta:hover {
    background: #5a4bd1 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* Sticky header also needs visible buttons */
.header_trans-fixed.affix .nav-right .nav-btn {
    color: #2b2350 !important;
}

.header_trans-fixed.affix .nav-right .nav-btn-cta {
    background: #6c5ce7 !important;
    color: #ffffff !important;
}

/* Final CTA - ensure all text is white */
.lf-final-cta__subtitle {
    color: rgba(255,255,255,0.85) !important;
}

.lf-final-cta__demo {
    color: rgba(255,255,255,0.7) !important;
}

.lf-final-cta__demo a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.lf-final-cta__demo a:hover {
    color: #ffffff !important;
    opacity: 0.9;
}

/* Homepage: dark menu links on light hero background */
body.home .site-main-menu > li > a,
body.page-template-template-home .site-main-menu > li > a {
    color: #2b2350 !important;
}

body.home .site-main-menu > li > a:hover,
body.page-template-template-home .site-main-menu > li > a:hover {
    color: #6c5ce7 !important;
    opacity: 1 !important;
}

body.home .site-main-menu > li > a:after,
body.page-template-template-home .site-main-menu > li > a:after {
    background: #6c5ce7 !important;
}

body.home .site-main-menu > li.current-menu-item > a,
body.page-template-template-home .site-main-menu > li.current-menu-item > a {
    color: #6c5ce7 !important;
}

/* Nav buttons too */
body.home .nav-right .nav-btn,
body.page-template-template-home .nav-right .nav-btn {
    color: #2b2350 !important;
}

body.home .nav-right .nav-btn:hover,
body.page-template-template-home .nav-right .nav-btn:hover {
    color: #6c5ce7 !important;
}

/* Logo should also be visible */
body.home .site-mobile-logo .main-logo,
body.page-template-template-home .site-mobile-logo .main-logo {
    filter: none !important;
}

/* When scrolled (fixed header) - keep dark */
body.home .fixed-header .site-main-menu > li > a,
body.page-template-template-home .fixed-header .site-main-menu > li > a {
    color: #2b2350 !important;
}
