:root {
  --red: #e8232a;
  --red-dark: #b5151b;
  --yellow: #ffd400;
  --yellow-soft: #fff6c2;
  --ink: #1d1d1f;
  --muted: #5b5b60;
  --line: #ececec;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.1rem; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.block { padding: 48px 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.top { background: var(--red); position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand img { width: 64px; height: auto; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; display: block; padding: 10px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); }
.nav--wide { display: none; }
.menu summary {
  list-style: none; cursor: pointer; color: #fff; font-weight: 700;
  border: 2px solid rgba(255, 255, 255, .6); border-radius: 8px; padding: 6px 14px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .nav {
  position: absolute; left: 0; right: 0; top: 72px; background: var(--red-dark); padding: 8px 16px 16px;
}
@media (min-width: 900px) {
  .menu { display: none; }
  .nav--wide { display: flex; gap: 4px; }
}

/* Hero */
.hero { background: var(--yellow); overflow: hidden; }
.hero__in { display: grid; gap: 24px; align-items: center; padding-top: 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--red-dark); margin: 0 0 8px; }
.hero h1 { color: var(--ink); }
.hero h1 span { color: var(--red); white-space: nowrap; }
.lead { font-size: 1.12rem; color: var(--ink); }
.hero__img { align-self: end; }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: 5fr 6fr; padding-top: 56px; }
  .hero__text { padding-bottom: 56px; }
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 4px 0 var(--red-dark);
}
.btn:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--red-dark); box-shadow: inset 0 0 0 2px var(--red-dark); }
.btn--ghost:hover { background: rgba(0, 0, 0, .05); }

/* Network cards */
.nets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 24px 0; }
.net { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border-top: 6px solid var(--red); }
.net img { width: 140px; margin-bottom: 10px; }
/* The network logos are white artwork on transparency: they need their brand colour behind them. */
.mno { border-radius: 8px; padding: 4px 6px; }
.mno--mpesa { background: #e60000; }
.mno--tigopesa { background: #00377b; }
.mno--halopesa { background: #f37021; }
.mno--airtel { background: #e40000; }
.net--mpesa { border-top-color: #e60000; }
.net--tigopesa { border-top-color: #00377b; }
.net--halopesa { border-top-color: #f37021; }
.net--airtel { border-top-color: #e40000; }
.net__code { font-size: 1.05rem; margin: 0 0 8px; }
.net__code strong { font-size: 1.4rem; color: var(--red); letter-spacing: .02em; }
.net ol { margin: 0; padding-left: 1.2em; }
.net li { margin: 4px 0; }
.note { background: var(--yellow-soft); border-left: 6px solid var(--yellow); padding: 16px 18px; border-radius: 8px; }

.promo { border-radius: var(--radius); margin: 8px 0 28px; box-shadow: var(--shadow); }

.band { background: var(--ink); color: #fff; }
.band__in { display: grid; gap: 24px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.band img { border-radius: var(--radius); }
@media (min-width: 900px) { .band__in { grid-template-columns: 1fr 1fr; } }

/* Tables, FAQ, lists */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--yellow-soft); }

.qa { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; background: #fff; }
.qa summary { cursor: pointer; font-weight: 700; padding: 14px 16px; }
.qa p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

.rg li { margin: 8px 0; }
.callout { background: var(--red); color: #fff; padding: 16px 18px; border-radius: 10px; font-weight: 700; }
.callout a { color: #fff; }

.contact { list-style: none; padding: 0; }
.contact li { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact span { min-width: 120px; font-weight: 700; }

.prose { overflow-wrap: anywhere; }
.prose p, .prose li { color: #333; }

/* Footer */
.foot { background: #141414; color: #cfcfd4; margin-top: 24px; font-size: .92rem; }
.foot a { color: #fff; }
.foot__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 24px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot__pay, .foot__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.foot__copy { border-top: 1px solid #2a2a2a; padding-top: 16px; padding-bottom: 24px; margin: 0 auto; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.1fr .8fr 1.6fr; } }
