/* pesabell.com. One family, Archivo: wide and heavy for headlines (a painted shop sign), normal width for text.
   Green is PesaBell's own (the app icon), gold is kept for sound: the bell's clapper and the voice while it plays. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --deep: #0B4D38;       /* hero and top bars */
  --forest: #0B3B2B;     /* text, footer */
  --forest-2: #3E5F53;   /* quieter text */
  --green: #12936A;      /* the brand: marks, numbers */
  --green-text: #0E7F5C; /* links and buttons on white */
  --mint: #EEF6F2;
  --line: #D3E5DB;
  --gold: #FFC94A;       /* sound only */
  --on-deep: #CDE7DA;    /* quieter text on the hero */
  --sms: #E9EDEF;
  --sms-ink: #1D2421;
  --red: #B3261E;
  --red-bg: #FCE8E6;
  --amber: #7A5300;
  --amber-bg: #FFF1CC;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --phone: Roboto, system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--forest);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
html:lang(zh) body { line-height: 1.7; }
svg { display: block; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 800; font-stretch: 125%; letter-spacing: -0.01em; text-wrap: balance; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { letter-spacing: 0.02em; }
/* Chinese headlines break between words (at spaces, punctuation and <wbr>), not inside them */
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3, html:lang(zh) summary, .spoken:lang(zh) { word-break: keep-all; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
a { color: var(--green-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .topbar :focus-visible, .foot :focus-visible { outline-color: #fff; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Top bar: the name and the language */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font-size: 21px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.01em;
}
.mark { width: 34px; height: 34px; flex: none; }
.lang { display: none; gap: 2px; }
.js .lang { display: flex; }
.lang button {
  appearance: none; border: 0; cursor: pointer;
  min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 999px;
  background: transparent; color: var(--on-deep);
  font: 600 15px/1 var(--font);
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Hero: the M-Pesa message, then what the speaker says */
.hero, .topbar { background: var(--deep); color: #fff; }
.hero { padding-bottom: 56px; }
.stage { display: grid; gap: 22px; padding-top: 16px; }

.sms { max-width: 31rem; }
.sms-from {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font: 600 14px/1 var(--phone); color: var(--on-deep);
}
.sms-avatar {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #5F7D72; color: #fff; font-size: 13px;
}
.sms-time { margin-left: auto; font-weight: 400; }
.bubble {
  background: var(--sms); color: var(--sms-ink);
  font: 400 15px/1.45 var(--phone);
  padding: 12px 14px; border-radius: 4px 18px 18px 18px;
  overflow-wrap: anywhere;
}

.voice { display: grid; gap: 18px; }
.listen {
  justify-self: start; display: inline-flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 4px 20px 4px 4px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  cursor: pointer; background: transparent; color: #fff; font: 700 16px/1.2 var(--font); text-align: left;
}
.listen:hover { border-color: rgba(255, 255, 255, 0.7); }
.disc {
  position: relative; flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--forest);
}
.disc svg { width: 22px; height: 22px; }
.disc .body { fill: currentColor; }
.disc .wave { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.disc .i-stop { display: none; fill: currentColor; }
.listen[aria-pressed="true"] .i-stop { display: block; }
.listen[aria-pressed="true"] .i-play { display: none; }
.disc::before, .disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold); opacity: 0; pointer-events: none;
}
.playing .disc::before { animation: ring 1.2s ease-out infinite; }
.playing .disc::after { animation: ring 1.2s ease-out 0.6s infinite; }
@keyframes ring {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(2.1); opacity: 0; }
}

.spoken {
  font-size: clamp(30px, 8.6vw, 80px); line-height: 1.02;
  font-weight: 800; font-stretch: 125%; letter-spacing: -0.015em;
  text-wrap: balance;
}
.spoken:lang(zh) { letter-spacing: 0.02em; line-height: 1.15; }
.spoken span { transition: color 0.12s linear; }
.playing .spoken span { color: rgba(255, 255, 255, 0.32); }
.playing .spoken span.said { color: #fff; }
.playing .spoken span.now { color: var(--gold); }

.pitch {
  display: grid; gap: 26px; margin-top: 4px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.pitch h1 { font-size: clamp(22px, 5.4vw, 32px); line-height: 1.12; font-stretch: 112%; font-weight: 750; }
.lead { margin-top: 12px; max-width: 36rem; color: var(--on-deep); }
.actions { display: grid; gap: 10px; align-content: start; max-width: 26rem; }
.meta { font-size: 14.5px; line-height: 1.45; color: var(--on-deep); }
.actions .meta { margin-bottom: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 18px; border-radius: 14px;
  font: 700 17px/1.15 var(--font); text-decoration: none; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-main { background: #fff; color: var(--forest); }
.btn-main:hover { background: #E8F4EE; }
.btn-line { border: 2px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn-solid { background: var(--green-text); color: #fff; }
.btn-solid:hover { background: #0B6B4D; }
.btn-ghost { border: 2px solid var(--line); color: var(--forest); }
.btn-ghost:hover { border-color: var(--green); }

/* Sections */
.block { padding: 64px 0; border-top: 1px solid var(--line); }
main > .block:first-child { border-top: 0; }
.block h2 { font-size: clamp(28px, 6.6vw, 46px); line-height: 1.04; max-width: 22ch; }
.intro { margin-top: 14px; max-width: 38rem; color: var(--forest-2); }
.aside { margin-top: 28px; color: var(--forest-2); }

.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-size: 44px; line-height: 0.9; font-weight: 800; font-stretch: 125%; color: var(--green);
}
.steps h3 { font-size: 20px; line-height: 1.2; font-stretch: 112%; font-weight: 750; }
.steps p { margin-top: 6px; color: var(--forest-2); }
.steps-install { max-width: 46rem; }
.steps-install p { margin-top: 4px; color: var(--forest); }
.steps-install b { font-weight: 700; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; max-width: none; margin-top: 28px; }
.actions-row .btn { flex: 1 1 260px; }

.split { display: grid; gap: 32px; }
.split > div > p { margin-top: 14px; max-width: 34rem; color: var(--forest-2); }

.fake { background: var(--mint); border-radius: 22px; padding: 18px; max-width: 31rem; }
.fake .sms-from { color: var(--forest-2); }
.fake .sms-avatar { background: #8FA39A; }
.warning { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--red-bg); color: #5C1A15; }
.warning-title { display: flex; align-items: flex-start; gap: 8px; color: var(--red); font-weight: 750; }
.warning svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: var(--red); }
.warning .cut { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.warning p + p { margin-top: 4px; font-size: 15.5px; }

.models { display: grid; gap: 28px; margin-top: 32px; }
.model svg { width: 44px; height: 44px; fill: var(--green); }
.model svg path { fill: none; stroke: var(--green); stroke-width: 3.4; stroke-linecap: round; }
.model h3 { margin-top: 12px; font-size: 20px; font-stretch: 112%; font-weight: 750; }
.model p { margin-top: 6px; color: var(--forest-2); }

.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; max-width: 34rem; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 0.42em; width: 13px; height: 7px;
  border: solid var(--green); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg);
}

.ledger { max-width: 30rem; padding: 4px 18px 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.ledger-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 0 12px; border-bottom: 1px solid var(--line);
}
.ledger-head span { color: var(--forest-2); font-weight: 600; }
.ledger-head strong { font-size: 26px; font-weight: 800; font-stretch: 112%; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who amt" "when amt";
  column-gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--mint);
}
.ledger li:last-child { border-bottom: 0; }
.who { grid-area: who; font-size: 15.5px; font-weight: 650; }
.when { grid-area: when; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--forest-2); }
.amt { grid-area: amt; align-self: center; font-weight: 750; font-stretch: 112%; color: var(--green-text); }
.personal .amt { color: #82938C; text-decoration: line-through; }
.tag { padding: 2px 8px; border-radius: 999px; background: #E6ECE9; color: #4A5C55; font-size: 12.5px; font-style: normal; font-weight: 650; }
.tag-check { background: var(--amber-bg); color: var(--amber); }

.narrow { max-width: 800px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 24px; border-top: 1px solid var(--line); }
summary { position: relative; padding: 18px 40px 18px 0; list-style: none; cursor: pointer; font-size: 18px; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { max-width: 42rem; padding-bottom: 20px; color: var(--forest-2); }

/* Footer */
.foot { background: var(--forest); color: #D7E6DF; padding: 48px 0 40px; font-size: 15.5px; }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 14px; }
.foot .brand { justify-self: start; margin-bottom: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.small { font-size: 13.5px; color: #9FBCB0; }

/* Privacy policy and the missing-page page */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: clamp(30px, 7vw, 48px); line-height: 1.04; }
.doc .updated { margin-top: 10px; font-size: 15px; color: var(--forest-2); }
.doc h2 { margin-top: 36px; font-size: 22px; font-stretch: 112%; font-weight: 750; line-height: 1.2; }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc article { max-width: 44rem; }
.lost { padding: 72px 0 96px; }
.lost h1 { font-size: clamp(32px, 8vw, 56px); line-height: 1.04; }
.lost p { margin-top: 16px; color: var(--forest-2); }

@media (min-width: 700px) {
  .models { grid-template-columns: 1fr 1fr; gap: 48px; max-width: 54rem; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .wrap { padding: 0 32px; }
  .bar { min-height: 76px; }
  .hero { padding-bottom: 88px; }
  .stage { gap: 34px; padding-top: 40px; }
  .pitch { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; padding-top: 36px; }
  .block { padding: 104px 0; }
  .btn { padding: 0 24px; font-size: 18px; }
  .actions-row .btn { flex: 0 0 auto; }
  /* three steps side by side, numbers, titles and texts on shared rows */
  .steps:not(.steps-install) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 40px; }
  .steps:not(.steps-install) li { grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
  .steps:not(.steps-install) li::before { grid-row: auto; margin-bottom: 14px; font-size: 64px; }
  .steps-install li { grid-template-columns: 56px minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .playing .disc::before { animation: none; opacity: 1; transform: scale(1.45); }
  .playing .disc::after { animation: none; }
  .spoken span { transition: none; }
}
