/* Ako Keja — landing site styles */
:root {
  /* Brand blue — matches the app splash gradient (#2196F3 → #1976D2).
     Variable names kept as --green-* to avoid touching every rule; the values are blue. */
  --green-900: #0A2E5C;  /* deep brand blue (download band) */
  --green-700: #1565C0;  /* primary strong / hover */
  --green-600: #1976D2;  /* primary */
  --green-500: #2196F3;  /* light brand blue (splash start) */
  --green-100: #E3F2FD;  /* tint */
  --ink: #14223A;        /* blue-tinted near-black for text/footer */
  --muted: #5A6B82;
  --surface: #ffffff;
  --surface-2: #f4f8fe;
  --line: #e0e8f2;
  --mpesa: #00A859;      /* M-Pesa brand green — intentionally kept */
  --radius: 16px;
  --shadow: 0 12px 40px rgba(15, 35, 70, 0.12);
  --shadow-sm: 0 4px 16px rgba(15, 35, 70, 0.09);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green-700); text-decoration: none; }
.nav .btn { padding: 9px 18px; font-size: 0.92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1rem; border-radius: 999px; padding: 14px 26px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--green-700); }
.btn-store { background: var(--ink); color: #fff; padding: 13px 22px; }
.btn-store:hover { background: #000; color: #fff; }
.btn-store small { display: block; font-size: 0.66rem; font-weight: 600; opacity: .8; line-height: 1; }
.btn-store strong { font-size: 1.05rem; line-height: 1.15; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(33,150,243,.16), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-100); color: var(--green-700);
  font-weight: 700; font-size: 0.82rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--green-600); }
.hero .lede { font-size: 1.18rem; color: var(--muted); margin: 20px 0 28px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

/* Phone mockup */
.phone {
  width: 270px; max-width: 78%; margin: 0 auto; aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, var(--green-700), var(--green-500));
  border-radius: 38px; padding: 12px; box-shadow: var(--shadow);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.5);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 28px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 22px;
}
.phone-screen img { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.phone-screen .pname { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.phone-screen .ptag { font-size: 0.86rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

.alt { background: var(--surface-2); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-100); margin-bottom: 16px; font-size: 24px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { text-align: center; padding: 8px; }
.step .num {
  counter-increment: step; width: 46px; height: 46px; margin: 0 auto 14px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--green-600); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* Feeder band */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.split li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.split li b { color: var(--ink); }
.check { color: var(--green-600); font-weight: 800; flex: 0 0 auto; }
.earn-card {
  background: linear-gradient(160deg, var(--green-700), var(--green-500));
  color: #fff; border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow);
  text-align: center;
}
.earn-card .big { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.earn-card p { opacity: .92; margin-top: 8px; }

/* Download band */
.download {
  text-align: center;
  background:
    radial-gradient(700px 380px at 50% 120%, rgba(33,150,243,.22), transparent 60%),
    var(--green-900);
  color: #fff;
}
.download h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.download p { color: rgba(255,255,255,.78); margin: 14px auto 28px; max-width: 520px; }
.download .hero-cta { justify-content: center; }

/* Safety callout */
.note-card {
  background: #FFF8E1; border: 1px solid #F3E2A8; color: #6b5a16;
  border-radius: var(--radius); padding: 20px 24px; font-size: 0.96rem; margin-top: 30px;
}
.note-card b { color: #5a4a0f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdd6c7; padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer p { color: #9fae98; font-size: 0.95rem; margin-top: 12px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.footer-col a, .footer-col span { display: block; color: #b6c2ae; font-size: 0.95rem; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.88rem; color: #8b9a84;
}

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--green-700); }
.legal p { color: #33402f; margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 22px; color: #33402f; }
.legal li { margin-bottom: 8px; }
.legal .back { display: inline-block; margin-bottom: 26px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  section { padding: 56px 0; }
  .features, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 60px; }
}
