:root {
  --ink: #191b1a;
  --muted: #5f625e;
  --paper: #fffdf5;
  --cream: #fff7d6;
  --yellow: #ffd426;
  --yellow-deep: #efb600;
  --green: #118f4f;
  --green-dark: #08723d;
  --red: #dd193d;
  --blue: #1b91c9;
  --line: #dfdfd8;
  --shadow: 0 24px 70px rgba(46, 38, 5, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
}
nav { display: flex; align-items: center; gap: 28px; }
nav a { text-decoration: none; font-weight: 700; font-size: .94rem; }
nav a:hover { color: var(--green-dark); }
.nav-contact { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; }

main { overflow: hidden; }
.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 650px;
  border-radius: 32px;
  padding: clamp(36px, 6vw, 78px);
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .72) 0 5%, transparent 5.5%),
    linear-gradient(135deg, var(--cream), #fff3a9 70%, #ffe56c);
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 54px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  right: -120px;
  bottom: -170px;
  z-index: -1;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: .78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: clamp(2.75rem, 4.8vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.hero .eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 5px 5px 0 rgba(17, 143, 79, .24);
  font-size: .86rem;
  letter-spacing: .12em;
}
.hero-intro {
  max-width: 640px;
  margin-bottom: 30px;
  padding: 14px 17px;
  border-left: 5px solid var(--green);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, .68);
  color: var(--ink);
  font-size: clamp(1.05rem, 1.35vw, 1.16rem);
  font-weight: 650;
}
.paybill-card {
  max-width: 660px;
  padding: 22px 24px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
}
.paybill-card > div { display: flex; flex-direction: column; }
.paybill-label { color: var(--green-dark); font-weight: 850; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; }
.paybill-card strong { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: .02em; white-space: nowrap; }
.paybill-note { color: var(--muted); font-weight: 650; font-size: .88rem; }
.copy-button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 10px 15px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.copy-button:hover { background: var(--green-dark); }
.copy-icon { margin-right: 5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  min-height: 52px;
  padding: 13px 21px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 10px 25px rgba(17, 143, 79, .2); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border: 1.5px solid rgba(25, 27, 26, .22); background: rgba(255, 255, 255, .72); }

.quick-guide { align-self: center; }
.network-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.network-pill { padding: 7px 12px; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 850; box-shadow: 0 4px 12px rgba(0, 0, 0, .11); }
.safaricom { background: var(--green); }
.airtel { background: var(--red); }
.telkom { background: var(--blue); }
.phone-card {
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 26px 22px 22px;
  border: 8px solid var(--ink);
  border-radius: 38px;
  background: #fff;
  box-shadow: var(--shadow);
}
.phone-top { width: 74px; height: 7px; margin: -8px auto 22px; border-radius: 99px; background: #d7d7d3; }
.phone-card > p { margin: 0; color: var(--green-dark); font-weight: 950; letter-spacing: .08em; }
.phone-card > span { display: block; margin-bottom: 19px; color: var(--muted); font-size: .9rem; }
.mini-field { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.mini-field small { display: block; color: var(--muted); line-height: 1.2; }
.mini-field strong { display: block; font-size: 1.05rem; }
.phone-confirm { margin-top: 16px; padding: 11px; border-radius: 10px; background: var(--green); color: white; text-align: center; font-weight: 850; }
.secure-note { max-width: 340px; margin: 15px auto 0; text-align: center; color: #4f524e; font-size: .84rem; }
.secure-note span { color: var(--green); font-weight: 950; }

.steps-section, .networks-section, .poster-section, .contact-section {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.steps-section { padding: 112px 0 82px; display: grid; grid-template-columns: .74fr 1.26fr; gap: clamp(45px, 8vw, 110px); }
.section-heading h2, .poster-copy h2, .contact-section h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -.05em;
}
.section-heading > p:last-child, .poster-copy > p, .contact-section > div > p:last-child { color: var(--muted); }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps-list li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
}
.step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); font-weight: 950; }
.steps-list strong { display: block; margin: 1px 0 2px; font-size: 1.06rem; }
.steps-list p { margin: 0; color: var(--muted); }
.steps-list .highlight-step { border-color: var(--yellow-deep); background: #fffbea; box-shadow: inset 4px 0 0 var(--yellow); }
.highlight-step .step-number { background: var(--yellow); }

.networks-section { padding: 82px 0 105px; }
.centered { max-width: 690px; margin: 0 auto 42px; text-align: center; }
.network-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.network-card { min-height: 180px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; display: flex; align-items: flex-start; gap: 17px; background: #fff; }
.network-card h3 { margin: 3px 0 7px; font-size: 1.32rem; }
.network-card p { margin: 0; color: var(--muted); }
.network-initial { flex: 0 0 auto; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 950; }
.safaricom-card { box-shadow: inset 0 5px 0 var(--green); }
.safaricom-card .network-initial { background: var(--green); }
.airtel-card { box-shadow: inset 0 5px 0 var(--red); }
.airtel-card .network-initial { background: var(--red); }
.telkom-card { box-shadow: inset 0 5px 0 var(--blue); }
.telkom-card .network-initial { background: var(--blue); }
.important-note { max-width: 800px; margin: 26px auto 0; padding: 18px 20px; border-radius: 16px; display: flex; align-items: center; gap: 14px; background: var(--cream); }
.important-note > span { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-weight: 950; }
.important-note p { margin: 0; }

.poster-section { padding: 40px; border-radius: 28px; display: grid; grid-template-columns: .65fr 1.35fr; align-items: center; gap: clamp(28px, 5vw, 68px); background: #20221f; color: #fff; }
.poster-section img { border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.poster-section .eyebrow { color: var(--yellow); }
.poster-copy > p { color: #c8cac5; }
.text-link { color: var(--yellow); font-weight: 850; text-underline-offset: 5px; }

.contact-section { margin-top: 90px; margin-bottom: 90px; padding: clamp(30px, 5vw, 55px); border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 38px; background: var(--green); color: #fff; }
.contact-section .eyebrow, .contact-section > div > p:last-child { color: #dcffe9; }
.contact-section h2 { margin-bottom: 8px; }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex: 0 0 auto; }
.whatsapp-button { background: #fff; color: var(--green-dark); }
.contact-number { text-align: center; font-weight: 800; text-underline-offset: 4px; }

footer { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 55px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 25px; color: var(--muted); font-size: .9rem; }
footer p { margin: 0; }
.footer-brand { color: var(--ink); }

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  padding: 12px 17px;
  border-radius: 999px;
  background: #25d366;
  color: #082a14;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .22);
  font-weight: 900;
  text-decoration: none;
}
.floating-whatsapp span { margin-right: 7px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .quick-guide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px 25px; }
  .network-row { grid-column: 1 / -1; }
  .secure-note { text-align: left; }
  .steps-section { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: 1fr; }
  .network-card { min-height: 0; }
  .poster-section { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .site-header { width: min(100% - 28px, 1180px); min-height: 72px; }
  nav a:not(.nav-contact) { display: none; }
  .brand { font-size: .95rem; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .hero, .steps-section, .networks-section, .poster-section, .contact-section, footer { width: min(100% - 28px, 1100px); }
  .hero { padding: 32px 20px 38px; border-radius: 22px; min-height: auto; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.45rem); }
  .hero .eyebrow { font-size: .76rem; padding: 9px 12px; }
  .hero-intro { font-size: 1rem; padding: 12px 14px; }
  .paybill-card { align-items: stretch; flex-direction: column; box-shadow: 5px 5px 0 var(--ink); }
  .paybill-card strong { font-size: clamp(2.55rem, 14vw, 4rem); }
  .copy-button { width: 100%; }
  .hero-actions .button { width: 100%; }
  .quick-guide { display: block; }
  .phone-card { margin-top: 18px; }
  .secure-note { text-align: center; }
  .steps-section { padding: 82px 0 54px; }
  .steps-list li { padding: 17px; grid-template-columns: 40px 1fr; gap: 13px; }
  .step-number { width: 38px; height: 38px; }
  .networks-section { padding: 54px 0 78px; }
  .poster-section { padding: 24px; }
  .contact-section { margin-top: 70px; margin-bottom: 70px; align-items: stretch; flex-direction: column; }
  .contact-actions { width: 100%; }
  .floating-whatsapp { right: 14px; bottom: 14px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
