/* ========================================
   LeadFlow Affiliates — Landing Page
   ======================================== */

/* == Reset & Base == */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ── */
/* ── Founder's Top Banner ── */
.founders-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    padding: 10px 16px;
    animation: bannerSlideDown 0.5s ease forwards;
    transform: translateY(-100%);
}
@keyframes bannerSlideDown {
    to { transform: translateY(0); }
}
.founders-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.founders-bar-cta {
    display: inline-block;
    background: #ffffff;
    color: #d97706;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.founders-bar-cta:hover {
    background: #fef3c7;
}

.nav {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.nav-scrolled {
    border-bottom-color: #e5e7eb;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo-icon { color: #6366f1; font-size: 20px; }
.logo-light { font-weight: 400; color: #64748b; }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
}
.nav-links a:hover { color: #1a1a2e; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn:not(.btn-outline):not(.btn-white) {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn:not(.btn-outline):not(.btn-white):hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #1a1a2e;
    border: 2px solid #e2e8f0;
}
.btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.btn-white {
    background: #ffffff;
    color: #6366f1;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

/* ── Hero ── */
.hero {
    padding: 200px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 20px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-proof {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* ── Trust Bar ── */
.trust-bar {
    padding: 48px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}
.trust-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 20px;
}
.trust-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trust-logo {
    font-size: 18px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}

/* ── Sections ── */
.section {
    padding: 100px 0;
}
.section-alt {
    background: #f8fafc;
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}
.section-header p {
    font-size: 18px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Feature Cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}
.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

.badge-pro, .badge-biz {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}
.badge-pro {
    background: #ede9fe;
    color: #7c3aed;
}
.badge-biz {
    background: #fef3c7;
    color: #b45309;
}

/* ── Hero Screenshot ── */
.hero-screenshot {
    margin-top: 56px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Browser Frame (shared) ── */
.browser-frame {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255,255,255,0.05);
}
.browser-dots {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
}
.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #334155;
}
.browser-dots span:first-child  { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }
.browser-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Dashboard Preview Tabs ── */
.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.preview-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}
.preview-tab:hover {
    color: #6366f1;
    background: #ede9fe;
}
.preview-tab.active {
    color: #6366f1;
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}
.preview-window {
    max-width: 960px;
    margin: 0 auto;
}
.preview-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ── Steps ── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}
.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.step p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.pricing-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    transition: box-shadow 0.3s;
}
.pricing-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.pricing-card-featured {
    border-color: #6366f1;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    transform: scale(1.04);
}
.pricing-card-featured:hover {
    box-shadow: 0 16px 50px rgba(99, 102, 241, 0.22);
}
.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.pricing-tier {
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.pricing-price {
    margin-bottom: 8px;
    line-height: 1;
}
.price-original {
    font-size: 24px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 6px;
    vertical-align: baseline;
}
.price-original .price-currency {
    font-size: 16px;
    color: #94a3b8;
}
.price-currency {
    font-size: 28px;
    font-weight: 700;
    vertical-align: super;
    color: #1a1a2e;
}
.price-amount {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a1a2e;
}
.pricing-desc {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
}
.founders-banner {
    text-align: center;
    margin-bottom: 32px;
    font-size: 15px;
    color: #334155;
}
.founders-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 0.03em;
    margin-right: 8px;
}
.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}
.pricing-features li {
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}
.pricing-features li:last-child {
    border-bottom: none;
}
.pricing-features li strong {
    color: #1a1a2e;
}

/* ── Comparison Table ── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.comparison-table thead th {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}
.col-featured {
    background: rgba(99, 102, 241, 0.04);
}
.comparison-table thead th.col-featured {
    color: #6366f1;
}

/* ── FAQ ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] {
    border-color: #c7d2fe;
}
.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: #94a3b8;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] summary::after {
    content: '−';
    color: #6366f1;
}
.faq-item[open] summary {
    color: #6366f1;
}
.faq-item p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
    text-align: center;
    padding: 100px 0;
}
.cta-section h2 {
    color: #ffffff;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 40px;
}

/* ── Footer ── */
.footer {
    padding: 48px 0;
    border-top: 1px solid #e5e7eb;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-copy {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: #1a1a2e; }
.footer-ls-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-ls-link:hover { color: #3730a3; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 900px) {
    .features-grid,
    .pricing-grid,
    .steps {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 20px;
    }
    .pricing-card-featured {
        transform: none;
    }
    .nav-links { display: none; }
    .hero { padding: 160px 0 80px; }
    .section { padding: 72px 0; }
    .hero-proof { flex-direction: column; gap: 12px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Download Section ── */
.download-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
}
.download-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.download-fields input {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.download-fields input:focus {
    outline: none;
    border-color: #6366f1;
}
.download-note {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 12px;
}
.download-success {
    text-align: center;
}
.download-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 16px;
}
.download-success h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.download-success p {
    color: #64748b;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .download-fields {
        flex-direction: column;
    }
    .download-card {
        padding: 32px 20px;
    }
}

/* ── Exit-Intent Popup ── */
.exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: exitFadeIn 0.25s ease;
}
@keyframes exitFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.exit-popup {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 40px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: exitSlideUp 0.3s ease;
}
@keyframes exitSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.exit-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.exit-close:hover {
    color: #1e293b;
}
.exit-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.exit-heading {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}
.exit-sub {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}
.exit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.exit-form input[type="text"],
.exit-form input[type="email"] {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.exit-form input[type="text"]:focus,
.exit-form input[type="email"]:focus {
    border-color: #6366f1;
    outline: none;
}
.exit-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}
.exit-success {
    text-align: center;
}
.exit-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}
.exit-success p {
    color: #64748b;
    margin-bottom: 16px;
}
@media (max-width: 500px) {
    .founders-bar { font-size: 12px; padding: 8px 12px; }
    .founders-bar-inner { gap: 8px; }
    .exit-popup {
        padding: 36px 24px 32px;
    }
    .exit-heading {
        font-size: 19px;
    }
}
