/* ==========================================================================
   EXECUTIVE THEME — B2C MEMBER & B2B SACCO LEADERS FUNNEL SPLIT
   Supports Kenya (SASRA / KES), Uganda (UMRA / UGX), Tanzania (TCDC / TZS)
   ========================================================================== */

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

#for-sacco-leaders,
#pricing,
#solutions,
#mobile-app {
    scroll-margin-top: 92px;
}

/* 1. Header Entry Points: Member Portal vs Management Dashboard */
.ks-entry-split {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.ks-btn-login--member {
    border-color: rgba(16, 185, 129, 0.38) !important;
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    font-size: 0.82rem !important;
    padding: 7px 13px !important;
}

.ks-btn-login--member:hover {
    background: rgba(16, 185, 129, 0.22) !important;
    border-color: #10b981 !important;
    transform: translateY(-1px);
}

.ks-btn-login--management {
    border-color: rgba(56, 189, 248, 0.38) !important;
    background: rgba(14, 165, 233, 0.12) !important;
    color: #38bdf8 !important;
    font-size: 0.82rem !important;
    padding: 7px 13px !important;
}

.ks-btn-login--management:hover {
    background: rgba(14, 165, 233, 0.24) !important;
    border-color: #38bdf8 !important;
    transform: translateY(-1px);
}

.ks-btn-b2b-demo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: #e2e8f0;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.7));
    transition: all 0.22s ease;
}

.ks-btn-b2b-demo:hover {
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.22);
    transform: translateY(-1px);
}

/* 2. Dynamic Regional Regulator Strip (SASRA / UMRA / TCDC) */
.ks-regulator-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.ks-regulator-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--ks-text-muted, #94a3b8);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ks-regulator-chip strong {
    color: var(--ks-text-main, #f8fafc);
    font-family: var(--ks-font-mono, monospace);
    letter-spacing: 0.04em;
}

.ks-regulator-chip small {
    font-size: 0.72rem;
    opacity: 0.8;
}

.ks-regulator-chip.active,
.ks-regulator-chip:hover {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.14);
    color: #ecfdf5;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.16);
}

.ks-pricing-reg-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--ks-font-mono, monospace);
    font-size: 0.74rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.34);
}

/* 3. Cockpit B2B Management Divider & Pricing Dual CTAs */
.ks-cockpit-b2b-divider {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(148, 163, 184, 0.22);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--ks-text-muted, #94a3b8);
}

.ks-cockpit-b2b-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ks-cockpit-mgmt-link {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
}

.ks-cockpit-mgmt-link:hover {
    text-decoration: underline;
}

.ks-cockpit-demo-link {
    color: #34d399;
    font-weight: 600;
    text-decoration: none;
}

.ks-plan-cta-group {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ks-plan-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    transition: all 0.2s ease;
}

.ks-plan-cta-secondary:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #38bdf8;
}

/* 4. Mobile App Screenshots Placeholder Containers */
.ks-app-screenshots {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 16px;
    align-items: stretch;
}

.ks-app-screenshot-stack {
    display: grid;
    gap: 16px;
}

.ks-app-screenshot-card {
    position: relative;
    border-radius: 24px;
    padding: 20px 18px;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.78));
    border: 1px solid rgba(52, 211, 153, 0.28);
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ks-app-screenshot-card--featured {
    border-color: rgba(16, 185, 129, 0.48);
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 60%),
                linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.84));
}

.ks-phone-notch {
    width: 68px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.32);
    margin: 0 auto 14px;
}

.ks-screenshot-placeholder {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ks-screenshot-tag {
    font-family: var(--ks-font-mono, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: #38bdf8;
    text-transform: uppercase;
}

.ks-screenshot-placeholder h4 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ks-text-main, #f8fafc);
}

.ks-screenshot-mock-balance {
    font-family: var(--ks-font-mono, monospace);
    font-size: 1.55rem;
    font-weight: 800;
    color: #34d399;
    margin: 4px 0;
}

.ks-screenshot-mock-pill,
.ks-screenshot-mock-metric {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.ks-screenshot-placeholder p {
    margin: 4px 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--ks-text-muted, #94a3b8);
}

/* 5. Secondary B2B "For SACCO Leaders / Management Solution" Section */
.ks-sacco-leaders {
    padding: 88px 0;
    position: relative;
    border-top: 1px solid rgba(56, 189, 248, 0.16);
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
    background: radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.09), transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.08), transparent 40%);
}

.ks-pill-badge--b2b {
    border-color: rgba(56, 189, 248, 0.4) !important;
    background: rgba(14, 165, 233, 0.12) !important;
    color: #38bdf8 !important;
}

.ks-leaders-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.ks-leader-card-wrap {
    position: relative;
    border-radius: 24px;
}

.ks-leader-card {
    height: 100%;
    padding: 28px 24px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ks-leader-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ks-leader-pill {
    font-family: var(--ks-font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.06em;
}

.ks-leader-pill.cyan,
.ks-leader-stat.cyan {
    color: #38bdf8;
}

.ks-leader-stat {
    font-family: var(--ks-font-mono, monospace);
    font-size: 0.76rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
}

.ks-leader-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
}

.ks-leader-icon.cyan {
    background: rgba(14, 165, 233, 0.14);
    color: #38bdf8;
}

.ks-leader-card h3 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--ks-text-main, #f8fafc);
}

.ks-leader-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ks-text-muted, #94a3b8);
}

.ks-leader-checklist {
    list-style: none;
    padding: 12px 0 0;
    margin: auto 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: grid;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ks-text-main, #e2e8f0);
}

.ks-leader-checklist li::before {
    content: "✓ ";
    color: #34d399;
    font-weight: 800;
}

.ks-leaders-cta-banner {
    margin-top: 32px;
    padding: 24px 28px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ks-security-banner--b2b {
    margin-top: 0 !important;
    flex: 1 1 420px;
}

.ks-leaders-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 6. Footer Portal Entry Pills */
.ks-footer-portals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ks-footer-portal-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.ks-footer-portal-pill--member {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.ks-footer-portal-pill--management {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

/* 7. Light Mode Overrides */
html.ks-light-mode .ks-entry-split,
html.ks-light-mode .ks-regulator-chip,
html.ks-light-mode .ks-leader-card,
html.ks-light-mode .ks-leaders-cta-banner,
html.ks-light-mode .ks-app-screenshot-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html.ks-light-mode .ks-btn-login--member {
    color: #047857 !important;
}

html.ks-light-mode .ks-btn-login--management,
html.ks-light-mode .ks-btn-b2b-demo {
    color: #0369a1 !important;
    background: rgba(14, 165, 233, 0.1);
}

/* 8. Responsive Breakpoints */
@media (max-width: 992px) {
    .ks-leaders-grid {
        grid-template-columns: 1fr;
    }
    .ks-app-screenshots {
        grid-template-columns: 1fr;
    }
}

