/* ============================================================
   KIJANI SACCO — PUBLIC LANDING
   The only page a group sees before it decides. Self-contained:
   brand.css supplies the palette and Sora, font-awesome the
   glyphs, and nothing else is loaded — no Bootstrap, no CDN.
   A treasurer opening this on a phone over 3G should have the
   headline and the price before anything else arrives.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    font-family: var(--brand-font);
    color: var(--brand-ink);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand-link); text-decoration: none; }
a:hover { color: var(--brand-link-hover); }

.wrap { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--tint { background: var(--brand-mist); }
.section--dark { background: var(--brand-forest); color: #fff; }

/* --- Type scale --------------------------------------------
   Fluid, so the hero is a headline on a laptop and still a
   headline on a 360px phone without a media query per step. */
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; }
.lede { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: #44584c; max-width: 62ch; }
.section--dark .lede { color: #C7D9CD; }

.eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-link); margin-bottom: .9rem;
}
.section--dark .eyebrow { color: var(--brand-sprout); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* --- Buttons ------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .82rem 1.5rem; border-radius: 999px;
    font-weight: 600; font-size: .95rem; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-forest); color: #fff; }
.btn-primary:hover { background: var(--brand-forest-lift); color: #fff; box-shadow: 0 8px 24px rgba(15,61,38,.22); }
.btn-ghost { border-color: rgba(15,61,38,.22); color: var(--brand-forest); background: #fff; }
.btn-ghost:hover { border-color: var(--brand-forest); color: var(--brand-forest); }
.btn-sprout { background: var(--brand-sprout); color: var(--brand-forest-deep); }
.btn-sprout:hover { background: #6ee79b; color: var(--brand-forest-deep); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .55rem 1.05rem; font-size: .86rem; }

/* --- Nav ---------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15,61,38,.08);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: #3d5147; font-weight: 600; font-size: .92rem; }
.nav-links a:hover { color: var(--brand-forest); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
/* Both buttons stay on a phone. Hiding "Log in" to save 70px would leave an
   existing treasurer on a handset with no way in from the top of the page. */
@media (max-width: 420px) {
    .nav-inner { gap: 12px; }
    .nav-cta .btn { padding: .5rem .8rem; font-size: .8rem; }
}

/* --- Hero --------------------------------------------------- */
.hero {
    padding: 76px 0 84px;
    background:
        radial-gradient(760px 420px at 88% -6%, rgba(74,222,128,.18), transparent 62%),
        radial-gradient(620px 380px at -8% 8%, rgba(34,168,91,.10), transparent 60%),
        #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(34,168,91,.10); color: var(--brand-link);
    border: 1px solid rgba(34,168,91,.22);
    padding: .38rem .85rem; border-radius: 999px;
    font-size: .8rem; font-weight: 600; margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--brand-kijani); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: .85rem; color: #6b7c72; }
.hero-note i { color: var(--brand-kijani); margin-right: .35rem; }

/* The product glance — a member statement, drawn rather than
   screenshotted so it stays sharp and weighs nothing. */
.glance {
    background: #fff; border-radius: 20px; padding: 22px;
    box-shadow: 0 24px 60px rgba(15,61,38,.14), 0 2px 6px rgba(15,61,38,.06);
    border: 1px solid rgba(15,61,38,.07);
}
.glance-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.glance-title { font-weight: 800; font-size: .95rem; }
.glance-sub { font-size: .74rem; color: #7c8d84; }
.glance-chip {
    font-size: .68rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px;
    background: rgba(34,168,91,.12); color: var(--brand-link);
}
.glance-figure {
    background: var(--brand-forest); color: #fff; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 16px;
}
.glance-figure span { display: block; font-size: .72rem; color: #A9C6B4; letter-spacing: .06em; text-transform: uppercase; }
.glance-figure strong { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.glance-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .62rem 0; border-bottom: 1px dashed rgba(15,61,38,.10); font-size: .86rem;
}
.glance-row:last-child { border-bottom: 0; }
.glance-row span { color: #55685d; }
.glance-row b { font-weight: 600; }
.glance-row .up { color: var(--brand-link); }

/* --- Audience cards ----------------------------------------- */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .aud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .aud-grid { grid-template-columns: 1fr; } }
.aud {
    display: block; background: #fff; border: 1px solid rgba(15,61,38,.10);
    border-radius: 16px; padding: 22px; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.aud:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15,61,38,.10); border-color: rgba(34,168,91,.4); }
.aud i { font-size: 1.3rem; color: var(--brand-kijani); }
.aud h3 { margin: .8rem 0 .3rem; color: var(--brand-ink); }
.aud p { font-size: .87rem; color: #61736a; margin: 0 0 .9rem; }
.aud-price { font-size: .8rem; font-weight: 600; color: var(--brand-link); }

/* --- Module grid -------------------------------------------- */
.band { margin-bottom: 46px; }
.band:last-child { margin-bottom: 0; }
.band-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.band-head h3 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.band-head p { font-size: .88rem; color: #67796f; margin: 0; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
.mod {
    background: #fff; border: 1px solid rgba(15,61,38,.10); border-radius: 14px;
    padding: 18px; display: flex; flex-direction: column; gap: .5rem;
    transition: border-color .14s ease, box-shadow .14s ease;
}
.mod:hover { border-color: rgba(34,168,91,.45); box-shadow: 0 10px 26px rgba(15,61,38,.07); }
.mod-top { display: flex; align-items: center; gap: 10px; }
.mod-ico {
    width: 34px; height: 34px; border-radius: 9px; flex: none;
    background: rgba(34,168,91,.11); color: var(--brand-link);
    display: inline-flex; align-items: center; justify-content: center; font-size: .95rem;
}
.mod-name { font-weight: 700; font-size: .95rem; }
.mod p { font-size: .84rem; color: #63756b; margin: 0; }
.mod-price {
    margin-top: auto; padding-top: .7rem; font-size: .78rem; font-weight: 600;
    color: var(--brand-link); border-top: 1px dashed rgba(15,61,38,.10);
}

/* --- Pricing cards ------------------------------------------ */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .plan-grid { grid-template-columns: 1fr; } }
.plan {
    background: #fff; border: 1.5px solid rgba(15,61,38,.12); border-radius: 18px;
    padding: 26px 22px; display: flex; flex-direction: column; position: relative;
}
.plan--popular { border-color: var(--brand-kijani); box-shadow: 0 18px 44px rgba(15,61,38,.12); }
.plan-flag {
    position: absolute; top: -12px; left: 22px;
    background: var(--brand-kijani); color: #fff; font-size: .68rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; padding: .28rem .7rem; border-radius: 999px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: .2rem; }
/* Two lines of headroom on both, so the price and the module list line up
   across all four cards however long an operator's tagline turns out to be. */
.plan-tag { font-size: .84rem; color: #67796f; min-height: 3.4em; margin-bottom: 1rem; }
/* The rate stays small and the group's actual bill is the big number: a
   treasurer reads the grid to find out what THEY pay, not what a member costs. */
.plan-rate { font-size: .84rem; font-weight: 600; color: var(--brand-link); margin-bottom: .5rem; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; }
.plan-price b { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: .82rem; color: #67796f; }
.plan-per { font-size: .8rem; color: #7b8c82; margin: .2rem 0 .35rem; }
.plan-year { font-size: .78rem; color: #8a9a91; margin: 0 0 1.1rem; font-variant-numeric: tabular-nums; }
.plan-math {
    background: var(--brand-mist); border-radius: 10px; padding: .6rem .8rem;
    font-size: .78rem; color: #55685d; margin-bottom: 1.2rem; min-height: 3.6em;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.plan li { display: flex; gap: .55rem; font-size: .86rem; padding: .3rem 0; align-items: flex-start; }
.plan li i { color: var(--brand-kijani); font-size: .78rem; margin-top: .34rem; flex: none; }
.plan li.muted { color: #a5b2aa; }
.plan li.muted i { color: #cdd6d0; }
.plan .btn { margin-top: auto; }

/* --- Group size control -------------------------------------
   One input, at the top of the pricing grid. Every card, and the
   totals row of the comparison table, answer to it — so the grid
   IS the calculator rather than sitting above a separate one. */
.sizer {
    background: var(--brand-forest); color: #fff; border-radius: 18px;
    padding: 22px 26px; margin-bottom: 30px;
    display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
}
@media (max-width: 780px) { .sizer { grid-template-columns: 1fr; gap: 16px; padding: 20px; } }
.sizer-label { font-size: .9rem; font-weight: 600; color: #DCE9E1; }
.sizer-label small { display: block; font-weight: 400; font-size: .78rem; color: #93AC9E; margin-top: .15rem; }
.sizer-slide { display: flex; align-items: center; gap: 14px; }
.sizer-slide input[type=range] { flex: 1; accent-color: var(--brand-sprout); height: 26px; min-width: 120px; }
.sizer-num {
    width: 96px; flex: none; font-family: inherit; font-size: 1.25rem; font-weight: 800;
    text-align: center; padding: .45rem .3rem; border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff;
    font-variant-numeric: tabular-nums;
}
.sizer-num:focus { outline: none; border-color: var(--brand-sprout); background: rgba(255,255,255,.14); }
.sizer-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.sizer-preset {
    background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.16);
    color: #DCE9E1; border-radius: 999px; padding: .42rem .85rem;
    font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.sizer-preset:hover { border-color: var(--brand-sprout); }
.sizer-preset[aria-pressed="true"] { background: var(--brand-sprout); border-color: var(--brand-sprout); color: var(--brand-forest-deep); }

/* The card whose member cap this group has outgrown. Dimmed, not hidden:
   knowing the next bundle up exists is part of the answer. */
.plan--over { opacity: .55; }
.plan-over-note {
    font-size: .76rem; font-weight: 600; color: #B4520F;
    background: #FEF3E7; border-radius: 8px; padding: .4rem .6rem; margin-bottom: .9rem;
}

/* --- Comparison table --------------------------------------- */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { border-collapse: collapse; width: 100%; min-width: 720px; background: #fff; font-size: .88rem; }
.cmp th, .cmp td { padding: .72rem .9rem; text-align: center; border-bottom: 1px solid rgba(15,61,38,.08); }
.cmp thead th { position: sticky; top: 0; background: #fff; z-index: 2; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp .cmp-cat td {
    background: var(--brand-mist); font-weight: 700; font-size: .76rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--brand-forest);
}
.cmp-plan { font-weight: 800; font-size: 1rem; }
.cmp-plan small { display: block; font-weight: 600; font-size: .78rem; color: var(--brand-link); }
.cmp .yes { color: var(--brand-kijani); }
.cmp .no  { color: #d3dbd6; }
.cmp tfoot td { border-bottom: 0; padding-top: 1.1rem; }
/* The row that answers "so what do WE pay". Forest ground so it reads as the
   conclusion of the table rather than one more comparison row. */
.cmp-total td { background: var(--brand-forest); color: #fff; border-bottom: 0; padding-top: .9rem; padding-bottom: .9rem; }
.cmp-total b { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cmp-total small { color: #A9C6B4; font-weight: 600; margin-left: .25rem; }
.cmp-total .cmp-mod { font-weight: 700; }
.cmp-total .cmp-mod small { display: block; margin-left: 0; font-weight: 400; color: #A9C6B4; font-size: .76rem; }
.cmp-mod small { display: block; color: #7b8c82; font-size: .78rem; font-weight: 400; }

/* --- Steps -------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 58px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--brand-sprout); color: var(--brand-forest-deep);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem;
}
.step h3 { color: #fff; margin-bottom: .35rem; }
.step p { color: #C7D9CD; font-size: .9rem; margin: 0; }

/* --- FAQ ---------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
    border-bottom: 1px solid rgba(15,61,38,.10); padding: 1.05rem 0;
}
.faq summary {
    cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none;
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\f107'; font-family: FontAwesome; color: var(--brand-kijani); transition: transform .16s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq p { margin: .8rem 0 0; color: #5c6e64; font-size: .92rem; }

/* --- CTA + footer ------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .hero-actions { justify-content: center; }
.foot { background: var(--brand-forest-deep); color: #9FB8A9; padding: 46px 0 34px; font-size: .86rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot a { color: #C7D9CD; }
.foot a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.10); font-size: .8rem; }

/* Respect a reader who has asked for less movement. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
