/* JILINDE TANZANIA — mobile-first, low-bandwidth (system fonts, no external assets) */
:root {
  --green: #0b5d3b;
  --green-2: #11804f;
  --green-soft: #e7f4ec;
  --blue: #00a3dd;
  --yellow: #fcd116;
  --red: #c8102e;
  --red-soft: #fdecee;
  --amber: #b45309;
  --amber-soft: #fff6e0;
  --ink: #14201a;
  --ink-2: #4a5852;
  --line: #dde5e0;
  --bg: #f6f8f5;
  --card: #fff;
  --green-text: var(--green);
  --red-text: var(--red);
  --sms-bg: #eef2f0;
  --cream: #fffbe6;
  --cream-line: #f3e3a1;
  --soft-line: #b6dec6;
  --toast-bg: #111;
  color-scheme: light;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 40, 25, .06), 0 6px 20px rgba(10, 40, 25, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Arial, sans-serif;
  font-size: 100%;
}
html.big { font-size: 118%; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.55; font-size: 1.0625rem; padding-bottom: 76px;
}
img { max-width: 100%; }
a { color: var(--green-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; margin-top: 1.2em; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 720px; }
.muted { color: var(--ink-2); }
.fineprint { font-size: .85rem; color: var(--ink-2); margin-top: 14px; }
.link { font-weight: 600; text-decoration: none; }
.badge { background: var(--red); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 99px; letter-spacing: .05em; margin-right: 6px; }

/* flag stripe */
.flagbar { display: grid; grid-template-columns: 4fr 1fr 1fr 4fr; height: 6px; }
.flagbar span:nth-child(1) { background: #1eb53a; }
.flagbar span:nth-child(2) { background: var(--yellow); }
.flagbar span:nth-child(3) { background: #000; }
.flagbar span:nth-child(4) { background: var(--blue); }

/* top bar */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .02em; color: var(--green-text); }
.brand small { display: block; font-size: .75rem; color: var(--ink-2); margin-top: -2px; }
.brand strong { white-space: nowrap; }
@media (max-width: 400px) { .brand strong { font-size: .95rem; } .brand img { width: 34px; height: 34px; } .topbar__in { gap: 8px; } .topbar__tools { gap: 4px; } .iconbtn { min-width: 42px; } }
.topnav { display: none; gap: 4px; }
.topnav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.topnav a:hover, .topnav a[aria-current] { background: var(--green-soft); color: var(--green-text); }
.topnav .topnav__help { color: var(--red-text); }
.topbar__tools { display: flex; gap: 6px; }
.iconbtn {
  min-width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  font: 700 1rem var(--font); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.iconbtn[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green-text); }
@media (min-width: 960px) { .topnav { display: flex; } #menuBtn { display: none; } }

/* drawer */
.drawer { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 50; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--card); padding: 16px; overflow-y: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 1.1rem; }
.drawer__nav a { display: flex; gap: 12px; align-items: center; padding: 14px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.drawer__nav a span { font-size: 1.3rem; width: 28px; text-align: center; }
.drawer__nav a[aria-current] { background: var(--green-soft); color: var(--green-text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border-radius: 12px; border: 2px solid transparent; font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .06s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--lg { min-height: 56px; font-size: 1.08rem; padding: 12px 24px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #084a2f; }
.btn--ghost { background: var(--card); color: var(--green-text); border-color: var(--green-text); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #a50d26; }
.btn--wa { background: #1f9d55; color: #fff; }

/* hero */
.hero { background: linear-gradient(160deg, #0b5d3b 0%, #0a4f33 55%, #083c28 100%); color: #fff; padding: 36px 0 44px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 209, 22, .22), transparent 70%); }
.hero__in { display: grid; gap: 28px; position: relative; z-index: 1; }
.hero h1 span { color: var(--yellow); }
.eyebrow { text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--green-2); margin-bottom: 8px; }
.hero .eyebrow { color: #b8e6c9; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.hero .lead { color: #d9efe2; max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero .btn--primary { background: var(--yellow); color: #1a1a00; }
.hero .btn--primary:hover { background: #ffe04d; }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.networks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.networks li { font-size: .8rem; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 4px 10px; border-radius: 99px; }
.pincard { background: var(--card); color: var(--ink); border-radius: 20px; padding: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); border-top: 8px solid var(--red); align-self: center; }
.pincard__lock { font-size: 2.4rem; }
.pincard__big { font-size: 1.6rem; font-weight: 800; line-height: 1.15; color: var(--red-text); margin: 6px 0 10px; }
@media (min-width: 860px) { .hero { padding: 64px 0 72px; } .hero__in { grid-template-columns: 1.4fr 1fr; align-items: center; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: -22px 0 32px; position: relative; z-index: 2; }
.stat { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-left: 5px solid var(--line); }
.stat b { display: block; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.stat small { font-weight: 400; font-size: .75rem; }
.stat--red { border-left-color: var(--red-text); } .stat--red b { color: var(--red-text); }
.stat--green { border-left-color: var(--green-2); } .stat--green b { color: var(--green-2); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* tiles */
.section-title { margin: 8px 0 14px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.tile {
  background: var(--card); border-radius: var(--radius); padding: 18px 16px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); border: 2px solid transparent; display: flex; flex-direction: column; gap: 4px; min-height: 132px;
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--green-2); transform: translateY(-2px); }
.tile__ic { font-size: 1.9rem; }
.tile b { font-size: 1.05rem; }
.tile small { color: var(--ink-2); font-size: .85rem; }
.tile--hot { background: var(--green); color: #fff; } .tile--hot small { color: #cfe9da; }
.tile--sos { background: var(--red-soft); border-color: #f5c2ca; } .tile--sos b { color: var(--red-text); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* panels & cards */
.card, .panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel { margin-bottom: 32px; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel__head h2 { font-size: 1.15rem; }
.founder { display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(135deg, var(--cream), var(--card)); border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 22px; margin-bottom: 40px; }
.founder__avatar { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.founder h2 { font-size: 1.2rem; }

.pagehead { padding: 28px 0 18px; }
.pagehead--sos h1 { color: var(--red-text); }

/* forms */
.form label { display: block; font-weight: 700; margin: 16px 0 6px; }
.form label:first-child { margin-top: 0; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
input[type=text], input[type=tel], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); min-height: 52px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 4px rgba(17, 128, 79, .15); }
[aria-invalid] { border-color: var(--red) !important; }
.err { color: var(--red-text); font-size: .9rem; font-weight: 600; margin: 4px 0 0; min-height: 0; }
.err:empty { display: none; }
.counter { text-align: right; font-size: .8rem; color: var(--ink-2); margin: 4px 0 0; }
.row2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.form .btn--block { margin-top: 20px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px; accent-color: var(--green-text); }
.checks { display: grid; gap: 10px; margin-bottom: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }
.check--big { padding: 14px; border: 2px solid var(--line); border-radius: 12px; margin: 0 !important; }
.check--big:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: .9rem; color: var(--ink-2); }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 6px 12px; font: 600 .85rem var(--font); cursor: pointer; color: var(--ink); min-height: 36px; }
.chip:hover { border-color: var(--green-2); }

/* results */
.result { margin-top: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; scroll-margin-top: 80px; }
.verdict { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 14px; }
.verdict h2 { margin: 0; font-size: 1.5rem; }
.verdict p { margin: 4px 0 0; }
.verdict__ic { font-size: 2.4rem; }
.verdict--danger { background: var(--red); color: #fff; }
.verdict--caution { background: var(--amber-soft); color: #6b3a00; border: 2px solid #f3c56b; }
.verdict--clear { background: var(--green-soft); color: var(--green-text); border: 2px solid var(--soft-line); }
.reasons { padding-left: 1.2em; } .reasons li { margin-bottom: 8px; }
.typehint a { font-weight: 700; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.result .numcard { margin-top: 14px; }

/* numbers */
.numlist { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 760px) { .numlist { grid-template-columns: repeat(2, 1fr); } .numlist--grid { grid-template-columns: repeat(3, 1fr); } }
.numcard { border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 14px; padding: 14px 16px; background: var(--card); }
.numcard--high { border-left-color: var(--red-text); }
.numcard--low { border-left-color: #e3a008; }
.numcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.numcard__phone { font-size: 1.25rem; font-weight: 800; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.numcard__meta { font-size: .85rem; color: var(--ink-2); margin: 2px 0 8px; }
.numcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.numcard__regions { font-size: .9rem; margin: 0; }
.numcard blockquote { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); font-style: italic; }
.tag { background: var(--bg); border: 1px solid var(--line); font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.pill { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill--high { background: var(--red); color: #fff; }
.pill--mid { background: var(--amber-soft); color: var(--amber); }
.pill--low { background: #fff8db; color: #7a5a00; }
.empty { color: var(--ink-2); background: var(--bg); padding: 20px; border-radius: 12px; text-align: center; grid-column: 1 / -1; margin: 0; }
.searchbar { display: grid; gap: 10px; padding: 14px; }
@media (min-width: 700px) { .searchbar { grid-template-columns: 2fr 1.2fr auto; align-items: center; } }
#searchSummary { margin: 16px 0 0; font-weight: 600; }

/* accordion */
.accordion { display: grid; gap: 10px; margin-bottom: 40px; }
.acc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.acc summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-size: 1.08rem; min-height: 64px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--green-2); font-weight: 700; }
.acc[open] summary::after { content: "–"; }
.acc[open] summary { border-bottom: 1px solid var(--line); }
.acc__n { width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green-text); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: 0 0 28px; }
.acc__ic { font-size: 1.5rem; }
.acc__body { padding: 4px 18px 18px; }
.sms { background: var(--sms-bg); border-radius: 4px 16px 16px 16px; padding: 12px 14px; margin: 0; font-size: .95rem; position: relative; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--green-2); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

/* rules */
.rules { list-style: none; counter-reset: r; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.rules li { counter-increment: r; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 16px 16px 72px; position: relative; min-height: 72px; }
.rules li::before { content: counter(r); position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: var(--yellow); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }
.rules li:first-child { border: 2px solid var(--red); } .rules li:first-child::before { background: var(--red); color: #fff; }
.rules b { display: block; font-size: 1.08rem; }
.rules span { color: var(--ink-2); font-size: .95rem; }
.sharebox { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.sharebox p { margin: 0; flex: 1 1 240px; }

/* help */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--card); border-left: 5px solid var(--red); border-radius: 12px; padding: 14px 16px 14px 56px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .contacts { grid-template-columns: repeat(4, 1fr); } }
.contact { --c: var(--c-light, var(--green)); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-decoration: none; color: var(--ink); border-top: 6px solid var(--c); display: flex; flex-direction: column; gap: 2px; }
.contact__name { font-weight: 700; }
.contact__num { font-size: 2rem; font-weight: 800; color: var(--c); line-height: 1.1; font-variant-numeric: tabular-nums; }
.contact__note { font-size: .82rem; color: var(--ink-2); flex: 1; }
.contact__cta { margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--c); }
a.contact:hover { transform: translateY(-2px); }
.contact--mama { --c: var(--amber); background: var(--cream); }

/* hacker */
.versus { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 600px) { .versus { grid-template-columns: 1fr 1fr; } }
.vs { border-radius: var(--radius); padding: 22px; }
.vs h2 small { font-size: .95rem; font-weight: 600; opacity: .8; }
.vs__ic { font-size: 2.6rem; }
.vs--bad { background: #1d1d1f; color: #fff; }
.vs--good { background: var(--green-soft); color: var(--green-text); border: 2px solid var(--soft-line); }
.vs--good p { color: var(--ink); }
.truth { margin-bottom: 40px; border-top: 6px solid var(--yellow); }

/* bottom nav (mobile) */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 10px; text-decoration: none; color: var(--ink-2); font-size: .72rem; font-weight: 700; min-height: 60px; }
.bottomnav a span { font-size: 1.3rem; }
.bottomnav a[aria-current] { color: var(--green-text); background: var(--green-soft); }
.bottomnav a.sos { color: var(--red-text); }
@media (min-width: 960px) { .bottomnav { display: none; } body { padding-bottom: 0; } }

/* footer */
.footer { background: #0a2a1c; color: #cfe0d6; padding: 28px 0; font-size: .9rem; }
.footer .muted { color: #9fb8aa; }
.footer__slogan { font-size: 1.05rem; color: #fff; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--toast-bg); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Dark mode ---------- */
html.dark {
  color-scheme: dark;
  --green-soft: #12301f;
  --green-2: #2fa86a;
  --green-text: #6ad69a;
  --red-soft: #3a1419;
  --red-text: #ff7b8a;
  --amber: #f2a93b;
  --amber-soft: #3a2a0c;
  --ink: #e6eee9;
  --ink-2: #a3b3ab;
  --line: #2a3a32;
  --bg: #0d1511;
  --card: #16211b;
  --sms-bg: #22302a;
  --cream: #2a2512;
  --cream-line: #4d4320;
  --soft-line: #2b5a3e;
  --toast-bg: #2a3a32;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .25);
}
html.dark .hero { background: linear-gradient(160deg, #0a3d27 0%, #082f1f 55%, #061f15 100%); }
html.dark .tile--sos { border-color: #6b2630; }
html.dark .verdict--caution { color: #ffd591; border-color: #7a5410; }
html.dark .pill--low { background: #3a320c; color: #f5d76e; }
html.dark .vs--bad { background: #050807; border: 1px solid var(--line); }
html.dark .vs--good p { color: var(--ink); }
html.dark .footer { background: #07100b; }
html.dark .contact { --c: var(--c-dark, var(--c-light, var(--green-text))); }
html.dark .contact--mama { --c: var(--amber); }
html.dark .drawer { background: rgba(0, 0, 0, .65); }
html.dark .stat--green { border-left-color: var(--green-text); } html.dark .stat--green b { color: var(--green-text); }
html.dark img.brand__logo, html.dark .brand img { filter: drop-shadow(0 0 1px rgba(255,255,255,.4)); }
.themeicon--sun { display: none; }
html.dark .themeicon--sun { display: block; }
html.dark .themeicon--moon { display: none; }
