:root {
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --blue-mid: #1976d2;
  --blue-soft: #eaf3fc;
  --ink: #101828;
  --muted: #475467;
  --line: #e4e7ec;
  --paper: #f8fafc;
  --white: #ffffff;
  --green: #039855;
  --green-soft: #ecfdf3;
  --amber: #dc6803;
  --amber-soft: #fffaeb;
  --font: "Poppins", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: clamp(1.15rem, 3.2vw, 2rem);
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 8% -10%, #dcebff 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #eef5ff 0%, transparent 50%),
    var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); }

a:hover { color: var(--blue); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

html[data-lang] .l,
html[data-lang] .lb { display: none; }

html[data-lang="en"] .l-en,
html[data-lang="rw"] .l-rw,
html[data-lang="fr"] .l-fr { display: inline; }

html[data-lang="en"] .lb.l-en,
html[data-lang="rw"] .lb.l-rw,
html[data-lang="fr"] .lb.l-fr { display: block; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  z-index: 30;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip:focus { top: 0.85rem; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.85rem 1.2rem;
  padding: 0.85rem var(--pad);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--blue);
  margin-right: auto;
  min-width: 0;
}

.brand img {
  height: 48px;
  width: auto;
  flex: none;
}

.brand-text { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--paper);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
}

.langs {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.langs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.langs button:hover { background: var(--paper); color: var(--ink); }

.lang-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.12);
  flex: none;
}

.lang-flag svg { width: 100%; height: 100%; display: block; }

.langs .code { font-weight: 600; letter-spacing: 0.02em; }
.langs .full { display: none; }

html[data-lang="rw"] .langs [data-set-lang="rw"],
html[data-lang="en"] .langs [data-set-lang="en"],
html[data-lang="fr"] .langs [data-set-lang="fr"] {
  background: var(--blue-dark);
  color: white;
}

html[data-lang="rw"] .langs [data-set-lang="rw"] .lang-flag,
html[data-lang="en"] .langs [data-set-lang="en"] .lang-flag,
html[data-lang="fr"] .langs [data-set-lang="fr"] .lang-flag {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.4rem, 5.5vw, 4.4rem) 0 3.2rem;
}

.hero > * { min-width: 0; }

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #1a73e8, var(--blue-dark));
  color: white;
  box-shadow: 0 10px 22px rgba(13, 71, 161, 0.28);
}

.btn-primary:hover { color: white; }

.btn-quiet {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.btn-quiet:hover {
  border-color: #b9d4f5;
  color: var(--blue-dark);
}

.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-top: 1.4rem;
}

.jumps a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.jumps a:hover { text-decoration: underline; }

/* Realistic phones */
.phones {
  position: relative;
  height: 700px;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 296px;
  height: 628px;
  border-radius: 46px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(160deg, #3a404c 0%, #11141b 38%, #07080b 100%);
  padding: 12px;
  box-shadow:
    0 34px 70px rgba(16, 24, 40, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 41px;
  box-shadow:
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.7),
    inset 0 0 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 3;
}

.phone::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 110px;
  width: 3px;
  height: 86px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(#3a3f4b, #171a21);
  box-shadow: 0 110px 0 #171a21;
}

.phone.front::after {
  left: auto;
  right: -2px;
  top: 160px;
  height: 64px;
  border-radius: 0 2px 2px 0;
  box-shadow: none;
}

.phone.back {
  position: absolute;
  left: max(0px, calc(50% - 220px));
  top: 58px;
  transform: rotate(-8deg);
  z-index: 1;
  opacity: 0.97;
}

.phone.front {
  position: absolute;
  right: max(0px, calc(50% - 170px));
  top: 8px;
  z-index: 2;
}

.island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 26px;
  background: #050607;
  border-radius: 999px;
  z-index: 5;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.island::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: #1a1d24;
}

.island::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4c5d8a, #0b1220 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.screen {
  position: relative;
  background: #f5f7fb;
  border-radius: 35px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  z-index: 1;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 6px;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
}

.status .sig {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 10px;
}

.status .sig i {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
}

.status .sig i:nth-child(1) { height: 3px; }
.status .sig i:nth-child(2) { height: 5px; }
.status .sig i:nth-child(3) { height: 7px; }
.status .sig i:nth-child(4) { height: 10px; }

.appbar {
  background: linear-gradient(180deg, #1b74e4, #0d47a1);
  color: white;
  padding: 8px 16px 12px;
  text-align: center;
}

.app-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
  line-height: 0;
}

.app-brand img {
  width: min(80%, 210px);
  height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.appbar strong {
  display: block;
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.appbar > span {
  display: block;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.95;
  font-weight: 500;
}

.screen-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hello {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.hello b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.balance {
  background: linear-gradient(155deg, #2186f3, #0d47a1 70%);
  color: white;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 18px rgba(13, 71, 161, 0.22);
}

.balance small {
  display: block;
  opacity: 0.9;
  font-size: 11px;
  font-weight: 500;
}

.balance strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.balance .unit {
  font-size: 12px;
  font-weight: 600;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.tile:hover {
  border-color: #b9d4f5;
  color: var(--blue-dark);
}

.tile .ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  margin-bottom: 7px;
}

.tile .ico svg { width: 15px; height: 15px; }

.tabbar {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  padding: 8px 4px 18px;
  position: relative;
}

.tabbar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  border-radius: 999px;
  background: #101828;
  opacity: 0.85;
}

.tabbar a {
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.tabbar a svg {
  width: 16px;
  height: 16px;
}

.tabbar a.on { color: var(--blue); font-weight: 600; }

.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.row:hover { border-color: #b9d4f5; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, #dcebff, #b7d4f7);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.row b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.row small {
  color: var(--muted);
  font-size: 10px;
}

.row em {
  margin-left: auto;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.pill {
  display: inline-block;
  margin-top: 2px;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 600;
}

.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.wait { background: var(--amber-soft); color: var(--amber); }

.shot-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  text-align: center;
}

.section { padding: 0.35rem 0 3.4rem; }

.section h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  font-weight: 700;
}

.intro {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #b9d4f5;
  box-shadow: 0 14px 28px rgba(21, 101, 192, 0.1);
  color: inherit;
}

.card .mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.55;
}

.card .more {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-dark);
}

.leaders,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps { grid-template-columns: repeat(4, 1fr); }

.leaders li,
.steps li {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.15rem;
}

.leaders h3,
.steps h3 {
  margin: 0.55rem 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.leaders p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
}

.num {
  display: inline-grid;
  place-items: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--blue-dark);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 0 16px 16px;
}

.facts div {
  padding: 1.1rem 1.3rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.facts div:nth-child(even) {
  padding-left: 1.3rem;
  border-left: 1px solid var(--line);
}

.facts dt {
  font-weight: 700;
  font-size: 0.98rem;
}

.facts dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
}

.page-head { padding: clamp(2rem, 4vw, 3.1rem) 0 0.3rem; }

.page-head h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

.meta {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.promise {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.25rem 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
}

.promise p {
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.promise p:first-child { border-top: 0; }

.doc {
  display: grid;
  grid-template-columns: 230px minmax(0, 44rem);
  gap: 2.2rem;
  padding: 1.6rem 0 3.6rem;
  align-items: start;
}

.doc > * { min-width: 0; }

.toc { position: sticky; top: 5.8rem; }

.toc p {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol { list-style: none; margin: 0; padding: 0; }

.toc li { margin: 0.4rem 0; }

.toc a {
  display: inline;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.toc a:hover { color: var(--blue-dark); }

.prose h2 {
  margin: 1.9rem 0 0.4rem;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  scroll-margin-top: 5.8rem;
}

.prose p,
.prose li {
  font-size: 1rem;
  font-weight: 400;
  color: #344054;
}

.prose ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.prose li + li { margin-top: 0.4rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.7);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer p { margin: 0; font-weight: 400; }

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

@media (min-width: 980px) {
  .langs .full { display: inline; }
  .langs .code { display: none; }
  .langs button {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 980px) {
  .hero,
  .cards,
  .leaders,
  .facts,
  .doc { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr 1fr; }

  .facts div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .phones {
    height: auto;
    min-height: 640px;
  }

  .phone.back { display: none; }

  .phone.front {
    position: relative;
    right: auto;
    top: auto;
  }

  .toc { position: static; }

  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.95rem;
  }

  .toc li { margin: 0; }
}

@media (max-width: 720px) {
  .top { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; }
  .brand-tag { display: none; }
  .steps { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .lead { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .card { transition: none; }
}

@media print {
  .top,
  .skip,
  .actions,
  .jumps,
  .toc,
  .phones,
  .langs { display: none !important; }
}
