/* ============================================================
   MTU KATI — corporate site · mtukati.com
   Kanga Modern design language · one stylesheet, no build step
   Tokens are canonical (Build Guide Part B / design-system doc).
   The gold rule: #C9A227 only on the coin / held-money marks,
   ONE primary CTA per screen-view, and canon accents (BY NUMARAH,
   the trust dot, the kanga stripe). Never decoration.
   ============================================================ */

:root {
  /* -- colour tokens (exact, Part B) -- */
  --navy-900: #12294A;
  --navy-950: #0C1D35;          /* pressed navy (derived, design doc) */
  --ink-800:  #17304F;
  --royal-600:#1D4A85;
  --gold-500: #C9A227;
  --gold-700: #A8861D;          /* gold TEXT on light (AA) */
  --gold-300: #E3C878;          /* gold on navy / dark */
  --ivory-50: #FDFAF2;          /* app / page background */
  --ivory-warm:#F6F1E4;         /* stripe ivory · text on navy */
  --sand-200: #EFE8D8;
  --line-300: #E7DFCB;
  --muted-500:#77705C;
  --muted-600:#6B6450;          /* muted text on sand/canvas grounds (derived, AA) */
  --body-600: #5C6470;
  --body-700: #3D4657;
  --canvas:   #E9E6DF;          /* behind phones only (canon) */
  --success:  #2E7D4F;
  --success-deep:#1E6B45;
  --danger:   #B3372B;
  --warn:     #D08700;
  --info:     #7C5CBF;
  --royal-tint:#E8EFF9;
  --icon-tile:#E7EDF7;

  /* -- type -- */
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* -- surfaces & rhythm -- */
  --shadow-card: 0 4px 18px -8px rgba(23, 48, 79, .14);
  --shadow-lift: 0 14px 34px -14px rgba(23, 48, 79, .22);
  --radius-card: 20px;
  --wrap: 1140px;
  --gutter: clamp(20px, 4vw, 32px);

  /* -- the kanga stripe (celebration cloth — canon recipe) -- */
  --stripe: repeating-linear-gradient(135deg,
      #C9A227 0 12px, #12294A 12px 24px, #F6F1E4 24px 36px);
  /* royal variant so the cloth reads on navy grounds (auth-layout canon) */
  --stripe-royal: repeating-linear-gradient(135deg,
      #C9A227 0 12px, #1D4A85 12px 24px, #F6F1E4 24px 36px);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--ivory-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: var(--royal-600); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--gold-700); }

::selection { background: var(--royal-600); color: var(--ivory-warm); }

:focus-visible {
  outline: 3px solid var(--royal-600);
  outline-offset: 3px;
  border-radius: 6px;
}
.band--navy :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-300);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ivory-warm);
  color: var(--navy-900);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 14px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 780px; }

.band { padding-block: clamp(64px, 9vw, 120px); }
.band--tight { padding-block: clamp(48px, 6vw, 80px); }
.band--navy { background: var(--navy-900); color: var(--ivory-warm); }
.band--ivory { background: var(--ivory-50); }
.band--sand { background: var(--sand-200); }
.band--canvas { background: var(--canvas); }   /* behind phones only */

/* The kanga stripe — a woven edge, used like jewellery */
.kanga {
  height: 8px;
  background: var(--stripe);
}
.kanga--royal { background: var(--stripe-royal); }
.kanga--thin { height: 6px; }

/* ============================================================
   Type system
   ============================================================ */
.display-1 {
  font-size: clamp(2.85rem, 8.6vw, 6.1rem);
  line-height: 1.02;
}
.display-2 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
.display-3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-500);
  margin-bottom: 18px;
}
.band--navy .eyebrow { color: rgba(246, 241, 228, .62); }
.band--sand .eyebrow, .band--canvas .eyebrow { color: var(--muted-600); }   /* AA on darker grounds */

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--body-700);
  max-width: 42em;
}
.band--navy .lede { color: rgba(246, 241, 228, .78); }

.echo {
  /* the Swahili echo line under display headlines */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
  color: rgba(246, 241, 228, .66);
  margin-top: 10px;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 14px; }

.center { text-align: center; }
.center .section-head, .center .lede, .section-head.center { margin-inline: auto; }

/* ============================================================
   Buttons — E3: primary gold (navy text, Bricolage 800),
   money-alt navy, ghost on navy, outline on light
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 30px;
  border-radius: 17px;
  border: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(201, 162, 39, .55);
}
.btn--gold:hover { background: #D4AC2B; color: var(--navy-900); box-shadow: 0 14px 30px -12px rgba(201, 162, 39, .65); }

.btn--navy {
  background: var(--navy-900);
  color: var(--ivory-warm);
}
.btn--navy:hover { background: var(--navy-950); color: var(--ivory-warm); }

.btn--ghost {
  background: rgba(246, 241, 228, .1);
  color: var(--ivory-warm);
  border: 1.5px solid rgba(246, 241, 228, .28);
}
.btn--ghost:hover { background: rgba(246, 241, 228, .18); color: var(--ivory-warm); }

.btn--outline {
  background: #fff;
  color: var(--ink-800);
  border: 1.5px solid #D9CFB6;
}
.btn--outline:hover { border-color: var(--royal-600); color: var(--royal-600); }

.btn-note {
  font-size: 13px;
  color: var(--muted-500);
  margin-top: 12px;
}
.band--navy .btn-note { color: rgba(246, 241, 228, .6); }
.band--sand .btn-note { color: var(--muted-600); }

/* ============================================================
   Header — navy chrome under the kanga edge
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(246, 241, 228, .09);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory-warm);
  margin-right: auto;
}
.brand svg { width: 58px; height: 24px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(246, 241, 228, .82);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ivory-warm); background: rgba(246, 241, 228, .08); }
.site-nav a[aria-current="page"] {
  color: var(--ivory-warm);
  background: rgba(246, 241, 228, .12);
  font-weight: 700;
}

/* Language toggle — EN | SW */
.lang-toggle {
  display: inline-flex;
  border: 1.5px solid rgba(246, 241, 228, .3);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex: none;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: rgba(246, 241, 228, .75);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 32px;
}
.lang-btn[aria-pressed="true"] {
  background: var(--ivory-warm);
  color: var(--navy-900);
}
.lang-btn:hover { color: var(--ivory-warm); }
.lang-btn[aria-pressed="true"]:hover { color: var(--navy-900); }

/* Mobile nav */
.nav-toggle {
  display: none;
  border: 1.5px solid rgba(246, 241, 228, .3);
  background: transparent;
  color: var(--ivory-warm);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-burger { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-950);
    padding: 12px var(--gutter) 22px;
    gap: 4px;
    border-bottom: 1px solid rgba(246, 241, 228, .1);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .5);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 16px; font-size: 16px; }
}

/* ============================================================
   HERO (index) — the splash promise, desktop scale
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(72px, 10vw, 140px);
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.hero-copy .display-1 { color: var(--ivory-warm); }
.hero-sub { margin-top: 26px; }
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* trust pill — gold dot canon (15 hero / auth panel) */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(246, 241, 228, .1);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ivory-warm);
  margin-top: 42px;
}
.trust-pill .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-500);
  flex: none;
}

/* The Held Coin mark, large & floating */
.hero-mark-box { display: flex; justify-content: center; }
.hero-mark { width: min(100%, 460px); overflow: visible; }
@media (max-width: 899px) {
  .hero-mark { width: min(64vw, 320px); }
  .hero-mark-box { order: -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: mk-float 7s ease-in-out infinite; }
  .hero-mark .coin-glow { animation: mk-glow 7s ease-in-out infinite; }
}
@keyframes mk-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes mk-glow {
  0%, 100% { opacity: .10; }
  50% { opacity: .30; }
}

/* ============================================================
   Money-in-the-middle diagram — E8, faithfully
   ============================================================ */
.mim {
  background: var(--navy-900);
  color: var(--ivory-warm);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lift);
}
.mim-row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 24px);
}
.mim-party { text-align: center; flex: none; }
.mim-avatar {
  width: clamp(44px, 6vw, 56px);
  height: clamp(44px, 6vw, 56px);
  border-radius: 50%;
  background: #24406B;
  border: 2.5px solid rgba(246, 241, 228, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--ivory-warm);
  margin-inline: auto;
}
.mim-party span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(246, 241, 228, .72);
}
.mim-track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #2C4C7E;
}
.mim-track::before {
  /* the money has travelled to the middle — and stopped */
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  border-radius: 999px;
  background: var(--gold-500);
}
.mim-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold-500);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(11.5px, 3.4vw, 16px);
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45);
}
.mim-caption {
  margin-top: 30px;
  text-align: center;
  font-size: clamp(13.5px, 1.6vw, 15.5px);
  font-weight: 700;
  color: var(--gold-300);   /* canon: E8 caption is gold-300 on navy */
}

/* the canonical explainer sentence, as a woven pull-line */
.pull-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.35;
  color: var(--ink-800);
  max-width: 26em;
  margin: clamp(40px, 6vw, 64px) auto 0;
  text-align: center;
  text-wrap: balance;
}
.pull-line em { font-style: normal; color: var(--royal-600); }

/* Three beats */
.beats {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
}
@media (min-width: 760px) { .beats { grid-template-columns: repeat(3, 1fr); } }
.beat {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 24px 28px;
}
.beat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--royal-tint);
  color: var(--royal-600);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.beat:first-child .beat-num { background: #F7EFD6; color: var(--gold-700); }
.beat h3 { font-size: 19px; margin-bottom: 8px; }
.beat p { font-size: 14.5px; color: var(--body-600); }

/* ============================================================
   Receipt timeline — E7 homage (rows, gold ring, HELD SAFE band)
   ============================================================ */
.receipt {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: clamp(28px, 4.5vw, 48px);
  max-width: 660px;
  margin-inline: auto;
}
.receipt-stamp {
  /* the rotated gold corner band — canon 29 */
  position: absolute;
  top: 26px;
  right: -44px;
  transform: rotate(35deg);
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  padding: 8px 52px;
  pointer-events: none;
}
.receipt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 2.4vw, 21px);
  margin-bottom: 26px;
  padding-right: 64px; /* clear the stamp */
}
.coin-dot {
  /* tiny Held Coin — gold coin with the navy ring punched inside (canon mark) */
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 4px solid #F1E8CE;
  box-shadow: inset 0 0 0 3px var(--gold-500), inset 0 0 0 5.5px var(--navy-900);
  flex: none;
}

/* with the head row gone, the first step clears the corner stamp */
.receipt-stamp + .r-row { padding-right: 58px; }

.r-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0 16px;
  padding-bottom: 26px;
}
.r-row:last-of-type { padding-bottom: 0; }
.r-row::before {
  /* connector */
  content: "";
  position: absolute;
  left: 14px;
  top: 26px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(#DCD6C4, #EDE9DC);
}
.r-row:last-of-type::before { display: none; }

.r-marker { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 4px; }
.r-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--royal-600);
  margin-top: 3px;
}
.r-dot--hollow { background: #fff; border: 3px solid #D8D2C0; }
.r-ring {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 4px solid #F1E8CE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  margin-top: -4px;
}
.r-title { font-family: var(--font-display); font-weight: 800; font-size: 15.5px; }
.r-title--gold { color: var(--gold-700); }
.r-sub { font-size: 13.5px; color: var(--body-600); margin-top: 3px; max-width: 34em; }
.r-sub--muted { color: var(--muted-500); }

.receipt-note {
  margin-top: 28px;
  background: #FBF6E3;
  border: 1px solid #EFDFB4;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #6E5A12;
  display: flex;
  gap: 10px;
}
.receipt-note span:first-child { flex: none; }

/* ============================================================
   Phone gallery — CSS phone frames on the canvas ground
   Screenshots are 780px wide with an 80px canvas margin baked in;
   the negative-margin crop below trims it away responsively.
   ============================================================ */
.gallery-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: clamp(24px, 3.5vw, 44px);
  overflow-x: auto;
  overscroll-behavior-x: contain;   /* the rail never captures the page — wheel keeps scrolling */
  scroll-snap-type: x proximity;
  padding-block: 18px 30px;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: #C9C2B2 transparent;
}
.gallery-scroller::-webkit-scrollbar { height: 8px; }
.gallery-scroller::-webkit-scrollbar-thumb { background: #C9C2B2; border-radius: 999px; }
.gallery-scroller::-webkit-scrollbar-track { background: transparent; }

.shot { scroll-snap-align: center; width: var(--pw); margin: 0; }
.shot { --pw: clamp(218px, 60vw, 262px); }

.phone {
  width: var(--pw);
  background: linear-gradient(160deg, #16305A, var(--navy-950) 60%);
  padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.148);
  box-shadow:
    0 34px 60px -30px rgba(18, 41, 74, .55),
    inset 0 1px 0 rgba(246, 241, 228, .14);
}
.screen {
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.118);
  aspect-ratio: var(--sar, 612 / 1302);
  background: #F3EEE2;
}
.screen > img {
  width: 127.451%;
  max-width: none;
  margin: -13.7255%;
}
/* native crop ratios per screenshot (phones are honest heights) */
.sar-standard { --sar: 612 / 1325; }   /* 26 · 28 · 31 · 33 */
.sar-order    { --sar: 612 / 1070; }   /* 29 */
.sar-swahili  { --sar: 612 / 913;  }   /* 47 */
.sar-kyc      { --sar: 612 / 1293; }   /* 12 */

.shot figcaption { margin-top: 18px; padding-inline: 6px; }
.shot .cap-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16.5px;
  color: var(--ink-800);
}
.shot .cap-sub {
  display: block;
  font-size: 13px;
  color: var(--body-600);
  margin-top: 4px;
  max-width: 24em;
}

/* ============================================================
   Card grids (trust strip, built-for-TZ, principles)
   ============================================================ */
.cards-3 { display: grid; gap: 20px; }
@media (min-width: 780px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.t-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 26px 32px;
}
.icon-tile {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--icon-tile);
  color: var(--royal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-tile svg { width: 22px; height: 22px; }
.t-card h3 { font-size: 20px; margin-bottom: 10px; }
.t-card p { font-size: 14.5px; color: var(--body-600); }

/* navy variant (built for Tanzania) */
.band--navy .t-card { background: #1A3457; box-shadow: none; border: 1px solid rgba(246, 241, 228, .08); }
.band--navy .t-card h3 { color: var(--ivory-warm); }
.band--navy .t-card p { color: rgba(246, 241, 228, .72); }
.band--navy .icon-tile { background: rgba(246, 241, 228, .1); color: var(--ivory-warm); }

/* BY NUMARAH signature */
.signature { text-align: center; margin-top: clamp(48px, 7vw, 80px); }
.signature .by {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--gold-300);   /* canon: BY NUMARAH is always caps, gold */
}
.signature p { margin-top: 12px; font-size: 14.5px; color: rgba(246, 241, 228, .7); }
.signature a { color: var(--ivory-warm); }
.signature a:hover { color: var(--gold-300); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn { margin-top: 34px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  color: rgba(246, 241, 228, .75);
}
.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: clamp(48px, 7vw, 72px) 36px;
}
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
.footer-brand svg { width: 66px; height: 27px; margin-bottom: 16px; }
.footer-brand .f-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ivory-warm);
}
.footer-brand p { font-size: 13.5px; margin-top: 8px; max-width: 26em; }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 228, .5);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li a {
  color: rgba(246, 241, 228, .82);
  text-decoration: none;
  font-size: 14.5px;
}
.site-footer li a:hover { color: var(--gold-300); }
.footer-contact a { color: var(--ivory-warm); font-weight: 700; }
.footer-contact p { font-size: 13px; margin-top: 8px; }

.footer-beta {
  border-top: 1px solid rgba(246, 241, 228, .12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.footer-beta .made { color: rgba(246, 241, 228, .8); font-weight: 600; }
.footer-beta .made b {
  color: var(--gold-300);
  letter-spacing: 0.22em;
  font-weight: 800;
}

/* ============================================================
   How-it-works — step compositions
   ============================================================ */
.step {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 88px);
}
@media (min-width: 880px) {
  .step { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .step--flip .step-copy { order: 2; }
  .step--flip .step-media { order: 1; }
}
.step + .step { border-top: 1.5px solid var(--line-300); }

.step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted-500);
  margin-bottom: 16px;
}
.step-kicker .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--royal-tint);
  color: var(--royal-600);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}
.step--money .step-kicker .n { background: #F7EFD6; color: var(--gold-700); }

.step h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.step-copy p { color: var(--body-700); font-size: 16px; max-width: 34em; }

.money-line {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #FBF6E3;
  border: 1px solid #EFDFB4;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #6E5A12;
  max-width: 34em;
}
.money-line .coin-dot { width: 20px; height: 20px; border-width: 3px; margin-top: 1px; }

.step-media { display: flex; justify-content: center; }
.step-media .phone { --pw: clamp(230px, 34vw, 300px); width: var(--pw); }

/* the Pesa-iko-salama interlude */
.interlude {
  text-align: center;
  padding-block: clamp(56px, 8vw, 96px);
}
.interlude .phone { --pw: clamp(230px, 30vw, 280px); width: var(--pw); margin-inline: auto; }
.interlude h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 36px 0 12px; }
.interlude p { color: var(--body-700); max-width: 34em; margin-inline: auto; }

/* dispute band steps */
.d-steps { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 780px) { .d-steps { grid-template-columns: repeat(3, 1fr); } }
.d-step {
  background: #1A3457;
  border: 1px solid rgba(246, 241, 228, .08);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}
.d-step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(246, 241, 228, .1);
  color: var(--ivory-warm);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 14px;
}
.d-step h3 { font-size: 18px; color: var(--ivory-warm); margin-bottom: 8px; }
.d-step p { font-size: 14px; color: rgba(246, 241, 228, .72); }

.reassure {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  background: rgba(246, 241, 228, .08);
  border: 1px solid rgba(246, 241, 228, .14);
  border-radius: 16px;
  padding: 14px 20px;
  margin-top: 26px;
  font-size: 15px;
  color: rgba(246, 241, 228, .85);
}
.reassure b { color: var(--ivory-warm); }

/* ============================================================
   FAQ — native accordions, shadow-led cards
   ============================================================ */
.faq { display: grid; gap: 14px; max-width: 780px; margin-inline: auto; }
.faq details {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sand-200);
  color: var(--ink-800);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq details p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--body-600);
  max-width: 44em;
}

/* ============================================================
   About — name play, swatches, founder note
   ============================================================ */
.name-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 7.5rem);
  letter-spacing: -0.03em;
  color: var(--ivory-warm);
  line-height: 1;
}
.name-play .np-coin {
  width: clamp(34px, 7vw, 76px);
  height: clamp(34px, 7vw, 76px);
  flex: none;
}
.name-caption {
  max-width: 620px;
  margin: 36px auto 0;
  text-align: center;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: rgba(246, 241, 228, .78);
}

.prose-block { max-width: 720px; margin-inline: auto; }
.prose-block p { color: var(--body-700); font-size: clamp(16px, 1.9vw, 18px); line-height: 1.75; }
.prose-block p + p { margin-top: 24px; }

.swatches { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 700px) { .swatches { grid-template-columns: 1fr 1fr; } }
.swatch {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
}
.swatch .chip { width: 44px; height: 44px; border-radius: 13px; flex: none; }
.swatch .chip--line { border: 1.5px solid var(--line-300); }
.swatch b { display: block; font-family: var(--font-display); font-size: 15.5px; }
.swatch span { display: block; font-size: 13px; color: var(--body-600); margin-top: 2px; }

.stripe-demo {
  height: 14px;
  border-radius: 999px;
  background: var(--stripe);
  margin-top: 26px;
  box-shadow: var(--shadow-card);
}

.founder {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  padding: clamp(32px, 5vw, 60px);
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.founder img { width: min(320px, 70%); margin: 0 auto 30px; }
.founder p {
  font-size: clamp(15.5px, 1.9vw, 17.5px);
  line-height: 1.75;
  color: var(--body-700);
  text-align: left;
}
.founder p + p { margin-top: 20px; }
.founder .sign {
  margin-top: 30px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--gold-700);
}

.principles { display: grid; gap: 18px; max-width: 820px; margin-inline: auto; }
.principle {
  display: flex;
  gap: 18px;
  align-items: baseline;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
}
.principle .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--royal-600);
  flex: none;
}
.principle p { font-family: var(--font-display); font-weight: 700; font-size: clamp(16.5px, 2vw, 19px); }
.principle p em { font-style: normal; color: var(--gold-700); }

/* ============================================================
   Safety page
   ============================================================ */
.safety-grid {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 880px) {
  .safety-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--body-700);
}
.check-list .tick {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #E5F1E9;
  color: var(--success-deep);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.habits {
  background: var(--sand-200);
  border-radius: 24px;
  padding: clamp(28px, 4.5vw, 48px);
}
.habits h2 { margin-bottom: 20px; }
.habits .check-list li { font-size: 15.5px; }

.legal-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ============================================================
   Legal pages (terms / privacy)
   ============================================================ */
.legal-head { padding-block: clamp(48px, 7vw, 80px) clamp(36px, 5vw, 56px); }
.legal-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FAEDE0;
  color: #A0521A;
  border: 1px solid #EDD3BC;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 22px;
}
.band--navy .legal-note { background: rgba(250, 237, 224, .12); color: #F3C69B; border-color: rgba(243, 198, 155, .3); }
.legal-updated { font-size: 13.5px; color: rgba(246, 241, 228, .65); margin-top: 16px; }

.prose { max-width: 720px; margin-inline: auto; }
.prose .lang-notice {
  font-size: 13.5px;
  color: var(--muted-600);
  background: var(--sand-200);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 36px;
}
.prose h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 40px 0 12px;
}
.prose p { color: var(--body-700); font-size: 15.5px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose .cross {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1.5px solid var(--line-300);
  font-size: 14px;
  color: var(--body-600);
}

/* white paper — Swahili intro + long-form lists */
.prose .sw-intro {
  background: var(--sand-200);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--body-700);
  margin-bottom: 14px;
}
.prose ul, .prose ol {
  margin: 14px 0 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
}
.prose li {
  color: var(--body-700);
  font-size: 15.5px;
  line-height: 1.75;
}
.prose li::marker { font-weight: 800; color: var(--royal-600); }

/* ============================================================
   Papers index (papers.html) — the shelf of publications
   ============================================================ */
.papers-grid { display: grid; gap: 20px; max-width: 720px; margin-inline: auto; }
.paper-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 28px 32px;
}
.paper-card .p-date {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-500);
}
.paper-card h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 12px 0 10px; }
.paper-card p { font-size: 14.5px; color: var(--body-600); }
.paper-card .p-read { display: inline-block; margin-top: 18px; font-weight: 700; }
.papers-note {
  text-align: center;
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--muted-500);
}

/* breadcrumb back to the shelf (top of the white paper) */
.crumb { margin-bottom: 18px; font-size: 14px; font-weight: 700; }
.crumb a { text-decoration: none; }
.legal-head .crumb a { color: rgba(246, 241, 228, .72); }
.legal-head .crumb a:hover { color: var(--gold-300); }

/* ============================================================
   WhatsApp link — hand-drawn flat glyph, currentColor.
   Ivory on navy chrome (footer, 404), navy on light bands.
   ============================================================ */
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
}
.wa-link:hover { color: var(--royal-600); }
.wa-link .wa-icon { width: 18px; height: 18px; flex: none; }
.btn-note .wa-link { font-size: 13.5px; }
.prose .wa-link { display: inline-flex; vertical-align: -3px; color: var(--royal-600); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose .wa-link:hover { color: var(--gold-700); }
.site-footer .wa-link { color: var(--ivory-warm); }
.site-footer .wa-link:hover { color: var(--gold-300); }

/* ============================================================
   Hero-vs-fraud scene (index) — pure CSS + inline SVG, no libs.
   The base (unanimated) positions ARE the reduced-motion
   storyboard: the Held Coin standing between buyer and seller,
   money docked safely at the coin, parcel delivered.
   Animation runs only when the visitor allows motion.
   ============================================================ */
.fraud-stage {
  background: var(--navy-900);
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
  padding: clamp(16px, 3vw, 30px) clamp(12px, 2.5vw, 26px);
  max-width: 860px;
  margin-inline: auto;
}
.fraud-stage svg { width: 100%; height: auto; }
.fv-glow { opacity: .14; }
.fraud-caption {
  max-width: 46em;
  margin: 22px auto 0;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body-700);
}
.fraud-caption + .fraud-caption { margin-top: 10px; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .fv-coin   { animation: fv-coin 10s ease-in-out infinite; }
  .fv-shield { animation: fv-shield 10s cubic-bezier(.3, .7, .3, 1.05) infinite; }
  .fv-seller { animation: fv-seller 10s ease-in-out infinite; }
  .fv-parcel { animation: fv-parcel 10s ease-in-out infinite; }
  .fv-glow   { animation: fv-glow 10s ease-in-out infinite; }

  /* the money: sent → hesitates as the seller slips → docks at the coin →
     waits → released to the seller once the parcel has arrived → reset */
  @keyframes fv-coin {
    0%, 5%     { transform: translateX(-196px); opacity: 1; }
    19%        { transform: translateX(154px);  opacity: 1; }
    22%        { transform: translateX(144px);  opacity: 1; }
    25%        { transform: translateX(152px);  opacity: 1; }
    28%        { transform: translateX(148px);  opacity: 1; }
    36%, 63%   { transform: translateX(0);      opacity: 1; }
    76%        { transform: translateX(250px);  opacity: 1; }
    81%        { transform: translateX(250px);  opacity: 0; }
    88%        { transform: translateX(-196px); opacity: 0; }
    93%, 100%  { transform: translateX(-196px); opacity: 1; }
  }
  /* the Held Coin drops in like a shield, and stands its ground */
  @keyframes fv-shield {
    0%, 26%    { transform: translateY(-260px); }
    33%        { transform: translateY(10px); }
    37%, 88%   { transform: translateY(0); }
    95%, 100%  { transform: translateY(-260px); }
  }
  @keyframes fv-glow {
    0%, 30%    { opacity: 0; }
    37%        { opacity: .3; }
    50%        { opacity: .12; }
    62%        { opacity: .2; }
    86%        { opacity: .12; }
    93%, 100%  { opacity: 0; }
  }
  /* the old trick: the seller starts to slip away — until the coin lands */
  @keyframes fv-seller {
    0%, 13%    { transform: translateX(0);    opacity: 1; }
    23%        { transform: translateX(46px); opacity: .35; }
    30%        { transform: translateX(72px); opacity: .16; }
    41%, 100%  { transform: translateX(0);    opacity: 1; }
  }
  /* the parcel travels to the buyer BEFORE any money moves on */
  @keyframes fv-parcel {
    0%, 44%    { transform: translateX(368px); opacity: 0; }
    49%        { transform: translateX(368px); opacity: 1; }
    63%, 86%   { transform: translateX(0);     opacity: 1; }
    92%, 100%  { transform: translateX(0);     opacity: 0; }
  }
}

/* ============================================================
   Scroll reveal — armed by JS only when motion is allowed
   ============================================================ */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1);
}
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }
html.js-reveal .reveal.d2 { transition-delay: .1s; }
html.js-reveal .reveal.d3 { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ============================================================
   Small-screen polish
   ============================================================ */
#main { scroll-margin-top: 84px; }   /* skip-link lands clear of the sticky header */

@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .receipt-stamp { top: 20px; right: -52px; padding: 7px 52px; font-size: 10px; }
  .footer-beta { justify-content: center; text-align: center; }
}

@media (max-width: 430px) {
  /* header squeeze: brand + burger + language toggle fit a 360px frame */
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand svg { width: 46px; height: 19px; }
  .brand-name { font-size: 17.5px; }
  .lang-btn { padding: 6px 10px; }
}

/* ============================================================
   Print — legal pages read as clean documents, and navy bands
   stay legible when the browser strips backgrounds
   ============================================================ */
@media print {
  .site-header, .site-footer, .kanga, .skip-link, .fraud-stage { display: none; }
  html.js-reveal .reveal { opacity: 1; transform: none; }   /* never print blank sections */
  .band--navy, .legal-head, .mim, .d-step, .band--navy .t-card { background: none; color: var(--ink-800); }
  .mim, .d-step, .band--navy .t-card, .reassure, .btn--navy, .btn--ghost { border: 1px solid var(--line-300); box-shadow: none; }
  .hero-copy .display-1, .name-play, .d-step h3, .band--navy .t-card h3,
  .reassure b, .trust-pill, .btn--navy, .btn--ghost { color: var(--ink-800); }
  .echo, .name-caption, .band--navy .lede, .legal-updated, .mim-party span, .band--navy .eyebrow,
  .signature p, .signature a, .d-step p, .band--navy .t-card p, .reassure,
  .band--navy .btn-note { color: var(--body-700); }
  .mim-avatar { color: var(--ink-800); border-color: var(--ink-800); }
  .mim-caption, .signature .by { color: var(--gold-700); }
  .band--navy .legal-note { background: none; color: var(--ink-800); border-color: var(--line-300); }
}

/* ============ FAQ (safety page) ============ */
.faq-list { max-width: 780px; margin-top: 34px; }
.faq-item {
  border: 1px solid var(--line-300, rgba(18,41,74,.14));
  border-radius: 14px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy, #12294A);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 800; color: var(--gold, #C9A227); flex: none; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item > p { padding: 0 20px 18px; margin: 0; line-height: 1.65; }
@media print { .faq-item { border-color: var(--line-300); } }

/* Language toggle rendered as links on generated /sw/ pages */
a.lang-btn, span.lang-btn { text-decoration: none; display: inline-block; }
span.lang-btn--current { cursor: default; }
