/* Kenya flag theme: charcoal, white, green and restrained red accents. */
:root {
  color-scheme: dark;
  --bg: #101211; --bg2: #191c1a;
  --text: #f6f6f6; --muted: #b9c0bc; --faint: #929d96;
  --green: #15803d; --green-2: #006b3f; --red: #bb1d24; --highlight: #f5f5f5; --black: #0b0b0b;
  --glass: rgba(28, 31, 29, 0.94); --glass-strong: rgba(16, 18, 17, 0.97);
  --line: rgba(255, 255, 255, 0.12); --line-2: rgba(255, 255, 255, 0.24);
  --radius: 18px; --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fafafa; --bg2: #f1f3f2; --text: #141815; --muted: #4c5a51; --faint: #627168; --highlight: #006b3f;
    --glass: rgba(255, 255, 255, 0.7); --glass-strong: rgba(255, 255, 255, 0.92);
    --line: rgba(13, 32, 22, 0.12); --line-2: rgba(13, 32, 22, 0.22); --shadow: 0 20px 50px -24px rgba(13, 32, 22, 0.25);
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); line-height: 1.6; min-height: 100dvh;
  background:
    radial-gradient(60rem 40rem at 90% -10%, rgba(0, 107, 63, 0.06), transparent 60%),
    radial-gradient(44rem 34rem at -10% 20%, rgba(255, 255, 255, 0.015), transparent 60%),
    radial-gradient(36rem 28rem at 70% 110%, rgba(187, 29, 36, 0.035), transparent 60%),
    linear-gradient(170deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
  background-attachment: fixed;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--highlight); color: #000; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.flag { height: 6px; background: linear-gradient(90deg, var(--black) 0 30%, #fff 30% 35%, var(--red) 35% 65%, #fff 65% 70%, var(--green-2) 70% 100%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--glass-strong); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); padding-top: env(safe-area-inset-top, 0); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; font-family: var(--display); font-weight: 800; box-shadow: 0 6px 18px -6px rgba(24,160,88,.7); }
.logo small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; gap: .25rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { white-space: nowrap; text-decoration: none; padding: .55rem .8rem; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { display: flex; gap: .5rem; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 44px; height: 44px; font-size: 1.2rem; }
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: .75rem 1.25rem 1.25rem; background: var(--glass-strong); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .nav.open .nav-links a { padding: .85rem .8rem; font-size: 1.05rem; }
  .nav-cta { margin-left: .5rem; }
}

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.2rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; box-shadow: 0 10px 28px -12px rgba(24,160,88,.8), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-gold { background: var(--red); color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn, .reveal { transition: none !important; transform: none !important; } }

/* Sections */
section { padding: clamp(3rem, 7vw, 6rem) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--highlight); border: 1px solid rgba(187,29,36,.3); border-radius: 999px; padding: .35rem .8rem; background: rgba(187,29,36,.06); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(215,38,61,.25); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.accent { color: var(--text); }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }
.hero { padding-top: clamp(3.5rem, 9vw, 7rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.card { padding: 1.4rem; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.num { font-family: var(--display); font-size: 2.3rem; font-weight: 800; color: var(--highlight); line-height: 1; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .2rem .65rem; border: 1px solid var(--line-2); color: var(--muted); }
.tag.key { border-color: rgba(215,38,61,.5); color: #ff8a98; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(24,160,88,.14); color: #6fe3a3; margin-bottom: .9rem; }
.icon svg { width: 22px; height: 22px; }
ul.check { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .55rem; }
ul.check li { display: grid; grid-template-columns: 22px 1fr; gap: .5rem; color: var(--muted); }
ul.check li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* Seat cards */
.seat { display: flex; flex-direction: column; gap: .4rem; }
.seat .count { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.seat .who { font-size: .85rem; color: var(--faint); }

/* Mock dashboard in hero */
.mock { padding: 1rem; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mock-tile { border: 1px solid var(--line); border-radius: 12px; padding: .7rem; background: rgba(255,255,255,.03); }
.mock-tile b { display: block; font-family: var(--display); font-size: 1.35rem; }
.mock-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: .35rem; }
.mock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #4fd38a); }
.ward { display: grid; grid-template-columns: 90px 1fr 48px; gap: .6rem; align-items: center; font-size: .88rem; padding: .45rem 0; border-top: 1px solid var(--line); }

/* Feature list */
.feature { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 1.5rem; padding: 1.6rem; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }
.feature h3 { margin-bottom: .35rem; }

/* Tables and explorer */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-size: .93rem; }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: rgba(255,255,255,.03); }
tbody tr:hover { background: rgba(255,255,255,.03); }
.explorer-controls { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }

/* Forms */
form .field { display: grid; gap: .35rem; }
label { font-weight: 600; font-size: .92rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid var(--line-2); border-radius: 12px; padding: .75rem .9rem; min-height: 46px; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) input, :root:not([data-theme="dark"]) select, :root:not([data-theme="dark"]) textarea { background: #fff; } }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,160,88,.3); }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #6fe3a3; } .form-status.err { color: #ff8a98; }
.hp { position: absolute; left: -5000px; }

/* Pricing */
.price { font-family: var(--display); font-size: 2.1rem; font-weight: 800; }
.plan { display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem; }
.plan.popular { border-color: rgba(0,107,63,.65); box-shadow: var(--shadow), 0 0 0 1px rgba(187,29,36,.3); }
.plan .btn { margin-top: auto; }

/* Blog */
.post { padding: 1.5rem; }
.post time { font-size: .82rem; color: var(--faint); }
article.prose { max-width: 72ch; }
article.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
article.prose p, article.prose li { color: var(--muted); }

/* CTA + footer */
.cta { padding: clamp(2rem, 5vw, 3.5rem); text-align: center; background: linear-gradient(135deg, rgba(24,160,88,.22), rgba(215,38,61,.12)); }
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom, 0)); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer a { text-decoration: none; color: var(--muted); display: block; padding: .25rem 0; }
.site-footer a:hover { color: var(--text); }
.site-footer h4 { color: var(--text); margin: 0 0 .6rem; font-size: .95rem; }
.wa { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0)); z-index: 40; border-radius: 999px; width: 56px; height: 56px; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.wa[hidden] { display: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media print { .site-header, .wa, .cta { display: none; } body { background: #fff; color: #000; } .glass { box-shadow: none; background: #fff; border-color: #ccc; } }

/* Light theme contrast for national colours and accents. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .eyebrow { color: #006b3f; border-color: rgba(0,107,63,.3); background: rgba(0,107,63,.06); }
  :root:not([data-theme="dark"]) .num { color: #0f7a41; }
  :root:not([data-theme="dark"]) .accent { background: linear-gradient(90deg, #0f7a41 0%, #18a058 55%, #006b3f 100%); -webkit-background-clip: text; background-clip: text; }
  :root:not([data-theme="dark"]) .tag.key { color: #b0182b; }
  :root:not([data-theme="dark"]) .icon { color: #0f7a41; }
}
@media (max-width: 420px) { .nav-cta .btn-primary { padding: .6rem .8rem; font-size: .9rem; } .logo small { display: none; } }
@media (max-width: 480px) { .mock-tile { padding: .55rem; } .mock-tile b { font-size: 1.1rem; } .mock-tile span { font-size: .72rem; line-height: 1.3; display: block; } }

.skip { background: var(--green-2); color: #fff; }

/* Public layout aligned with the reference: wide header and centred hero. */
:root { --display: var(--font); --radius: 8px; }
body { background: var(--bg); }
.wrap { width: min(1240px, calc(100% - 48px)); }
.nav { min-height: 68px; gap: 20px; }
.logo { flex-shrink: 0; font-size: 14px; }
.logo small { font-size: 10px; letter-spacing: .08em; }
.logo-mark { border-radius: 6px; box-shadow: none; }
.nav-links a { font-size: 14px; border-radius: 3px; padding: .55rem .65rem; }
.nav-links a[aria-current="page"] { color: #f06a72; background: rgba(187,29,36,.12); }
.btn { border-radius: 4px; box-shadow: none; }
.nav-cta .btn { min-height: 38px; padding: .5rem 1rem; font-size: 14px; }
.hero-home { position: relative; isolation: isolate; overflow: hidden; padding: 80px 0 76px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 30%, rgba(187,29,36,.14), transparent 68%), linear-gradient(145deg, #111513, #090c0b); }
.hero-home::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(#000, transparent); }
.hero-centered { text-align: center; }
.hero-centered h1 { max-width: 1160px; margin: 38px auto 30px; font-size: clamp(42px, 7.2vw, 96px); line-height: 1.03; letter-spacing: -.055em; font-weight: 800; }
.hero-centered .accent { color: #20a362; }
.hero-subtitle { font-size: clamp(20px, 2.2vw, 25px); margin: 0 auto 16px; color: #d2d5d3; }
.hero-centered .lead { max-width: 650px; margin: 0 auto; font-size: 16px; line-height: 1.65; }
.hero-centered .hero-actions { justify-content: center; gap: 16px; margin-top: 42px; }
.hero-centered .hero-actions .btn { min-width: 205px; min-height: 56px; }
.hero-geography { margin-top: 28px; font-size: 12px; }
.platform-strip { padding: 22px 0; background: #101612; border-bottom: 1px solid var(--line); text-align: center; }
.platform-strip p { margin: 0 0 18px; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 700; }
.platform-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 36px; font-size: 14px; color: var(--muted); }
.site-footer .developer-credit { display: inline; padding: 0; white-space: nowrap; }
.site-footer .developer-credit strong { color: var(--text); }
.grid > *, .footer-grid > * { min-width: 0; }
@media (max-width: 1180px) { .nav-cta .btn-ghost { display: inline-flex; } }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav { gap: 8px; flex-wrap: wrap; padding-block: 12px; }
  .nav .logo { margin-right: auto; }
  .nav .menu-btn { margin-left: 0; }
  .nav-cta { width: 100%; margin: 0; }
  .nav-cta .btn { flex: 1; }
  .hero-home { padding: 54px 0 48px; }
  .hero-centered h1 { margin: 28px auto 24px; font-size: clamp(38px, 9vw, 56px); }
  .hero-centered .eyebrow { font-size: 9px; letter-spacing: .08em; max-width: 100%; }
  .hero-centered .hero-actions { margin-top: 28px; }
  .hero-centered .hero-actions .btn { min-width: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
