/* ==========================================================================
   ACBIZ CFMS — Landing Page
   Design language: "the ledger" — financial infrastructure for African
   fintechs, banks, SACCOs and enterprises. Ledger green + brass gold,
   paper background, monospace numerals for anything that is a real figure.
   ========================================================================== */

/* Design tokens (--ink, --paper, --ledger, fonts, etc.) now live in the
   shared public/css/brand.css, loaded before this file. */

* { box-sizing: border-box; }

body.landing {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.lnd-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

a { color: inherit; }

/* ---------- Nav ---------- */
.lnd-nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(242, 244, 239, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.lnd-nav .lnd-wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.lnd-logo {
    font-family: var(--font-display); font-weight: 700; font-size: 18px;
    letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
    display: flex; align-items: center; gap: 8px;
}
.lnd-logo .mark {
    width: 26px; height: 26px; border-radius: 6px;
    background: var(--ledger); color: var(--paper);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 13px; font-weight: 500;
}
.lnd-nav-links { display: flex; align-items: center; gap: 28px; }
.lnd-nav-links a {
    text-decoration: none; font-size: 14px; color: var(--ink-soft);
    font-weight: 500;
}
.lnd-nav-links a:hover { color: var(--ink); }
.lnd-nav-cta {
    background: var(--ink); color: var(--paper) !important;
    padding: 9px 18px; border-radius: 7px; font-size: 14px !important;
    font-weight: 600 !important;
}
.lnd-nav-cta:hover { background: var(--ledger); }
.lnd-nav-toggle { display: none; }

/* ---------- Hero ---------- */
.lnd-hero { padding: 88px 0 72px; }
.lnd-hero .lnd-wrap {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 56px; align-items: center;
}
.lnd-eyebrow {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ledger-bright); font-weight: 500;
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.lnd-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); display: inline-block;
}
.lnd-hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06;
    letter-spacing: -0.02em; margin: 0 0 22px;
}
.lnd-hero h1 em {
    font-style: normal; color: var(--ledger);
    text-decoration: underline; text-decoration-color: var(--gold);
    text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.lnd-hero p.lede {
    font-size: 17px; color: var(--ink-soft); max-width: 480px; margin: 0 0 32px;
}
.lnd-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    padding: 13px 24px; border-radius: 8px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ledger); color: var(--paper); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Ledger card (hero visual) ---------- */
.lnd-card {
    background: var(--ink); border-radius: 16px; padding: 26px;
    color: var(--paper); position: relative; overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(11, 31, 26, 0.45);
}
.lnd-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 85% -10%, rgba(201,162,39,0.25), transparent 55%);
    pointer-events: none;
}
.lnd-card-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; position: relative;
}
.lnd-card-head .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--gold-soft); text-transform: uppercase; }
.lnd-card-head .badge {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
    border: 1px solid var(--line-on-dark); padding: 4px 9px; border-radius: 20px;
    color: var(--paper); opacity: .8;
}
.lnd-card-balance { position: relative; margin-bottom: 22px; }
.lnd-card-balance .amt { font-family: var(--font-mono); font-size: 40px; font-weight: 500; letter-spacing: -0.01em; }
.lnd-card-balance .cur { font-family: var(--font-mono); font-size: 15px; color: var(--gold-soft); margin-left: 6px; }
.lnd-ledger-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 11px 0; border-top: 1px solid var(--line-on-dark);
    font-size: 13px; position: relative;
}
.lnd-ledger-row .who { color: var(--paper); font-weight: 500; }
.lnd-ledger-row .meta { color: rgba(242,244,239,0.55); font-family: var(--font-mono); font-size: 11px; }
.lnd-ledger-row .amt { font-family: var(--font-mono); }
.lnd-ledger-row .amt.pos { color: #8FD6B9; }

/* ---------- Live stats band (the signature element) ---------- */
.lnd-stats {
    background: var(--ink); color: var(--paper);
    padding: 52px 0; border-top: 1px solid var(--line-on-dark);
    border-bottom: 1px solid var(--line-on-dark);
}
.lnd-stats .lnd-eyebrow { color: var(--gold-soft); }
.lnd-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    margin-top: 28px; border-top: 1px solid var(--line-on-dark);
}
.lnd-stat {
    padding: 22px 20px 0; border-left: 1px solid var(--line-on-dark);
}
.lnd-stat:first-child { border-left: none; padding-left: 0; }
.lnd-stat .num {
    font-family: var(--font-mono); font-size: clamp(26px, 3vw, 36px);
    font-weight: 500; color: var(--paper); display: block;
}
.lnd-stat .num .cursor { color: var(--gold); }
.lnd-stat .cap { font-size: 13px; color: rgba(242,244,239,0.6); margin-top: 6px; }
.lnd-stats-note {
    font-family: var(--font-mono); font-size: 11px; color: rgba(242,244,239,0.45);
    margin-top: 22px;
}

/* ---------- Modules ---------- */
.lnd-modules { padding: 84px 0; }
.lnd-section-head { max-width: 620px; margin-bottom: 48px; }
.lnd-section-head h2 {
    font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px);
    font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px;
}
.lnd-section-head p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.lnd-module-group {
    border-top: 1px solid var(--line); padding: 26px 0;
    display: grid; grid-template-columns: 230px 1fr; gap: 24px;
}
.lnd-module-group:last-child { border-bottom: 1px solid var(--line); }
.lnd-module-cat {
    font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
    letter-spacing: .06em; color: var(--ink); font-weight: 500;
}
.lnd-module-items { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.lnd-mod {
    font-size: 14px; padding: 7px 13px; border-radius: 7px;
    border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px;
    background: var(--paper-raised);
}
.lnd-mod .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.lnd-mod.is-live .dot { background: var(--ledger-bright); }
.lnd-mod.is-roadmap .dot { background: var(--gold); }
.lnd-mod.is-roadmap { color: var(--ink-soft); border-style: dashed; }

.lnd-legend { display: flex; gap: 22px; margin-top: -18px; margin-bottom: 46px; }
.lnd-legend span { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.lnd-legend .dot { width: 7px; height: 7px; border-radius: 50%; }
.lnd-legend .dot.live { background: var(--ledger-bright); }
.lnd-legend .dot.roadmap { background: var(--gold); }

/* ---------- CTA band ---------- */
.lnd-cta {
    background: var(--ledger); color: var(--paper); border-radius: 20px;
    padding: 56px; margin: 0 0 84px; display: flex; align-items: center;
    justify-content: space-between; gap: 32px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.lnd-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 90% 0%, rgba(201,162,39,0.3), transparent 60%);
}
.lnd-cta h3 {
    font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700; margin: 0 0 8px; position: relative;
}
.lnd-cta p { margin: 0; color: rgba(242,244,239,0.75); position: relative; }
.lnd-cta .btn-primary { background: var(--gold); color: var(--ink); position: relative; }
.lnd-cta .btn-primary:hover { background: var(--gold-soft); }

/* ---------- Footer ---------- */
.lnd-footer { background: var(--ink); color: rgba(242,244,239,0.7); padding: 44px 0 30px; }
.lnd-footer .lnd-wrap {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 24px;
}
.lnd-footer .brand { color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.lnd-footer .tag { font-size: 13px; max-width: 340px; }
.lnd-footer-links { display: flex; gap: 22px; font-size: 13px; }
.lnd-footer-links a { text-decoration: none; color: rgba(242,244,239,0.7); }
.lnd-footer-links a:hover { color: var(--paper); }
.lnd-footer-bottom {
    border-top: 1px solid var(--line-on-dark); margin-top: 30px; padding-top: 18px;
    font-family: var(--font-mono); font-size: 11.5px; color: rgba(242,244,239,0.4);
}

/* ---------- Motion (respectful) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .lnd-count { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .lnd-hero .lnd-wrap { grid-template-columns: 1fr; }
    .lnd-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
    .lnd-stat:nth-child(3) { border-left: none; padding-left: 0; }
    .lnd-module-group { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
    .lnd-nav-links { display: none; }
    .lnd-cta { padding: 36px 26px; }
    .lnd-hero { padding: 48px 0 56px; }
}
