/* Public website (web/site). Design language v3 "Karatasi, Wino na Mshono"
   (docs/design/tukonekt-design-language.md): paper, ink, one accent (Tanzanite), serif display,
   system UI text, hairlines instead of boxes. No framework, no external request. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --surface: #ffffff;
  --wash: #f1efea;
  --pressed: #e6e3dc;
  --ink: #15161d;
  --muted: #4a4c59;
  --faint: #686a77;
  --ghost: #9c9a94;
  --hairline: #e4e1da;
  --rule: #8a8882;
  --accent: #3b38b5;
  --on-accent: #ffffff;
  --accent-pressed: #2e2b94;
  --accent-soft: #ecebfa;
  --warning: #744600;
  --keyline: rgba(21, 22, 29, 0.06);
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1120px;
  /* service tints (2.5): tile ground / glyph ink */
  --t-cargo: #e2e8f1; --i-cargo: #2c4869;
  --t-beauty: #f2e3ee; --i-beauty: #6e2f5c;
  --t-livestock: #f1e8dc; --i-livestock: #6a4526;
  --t-scrap: #dceae8; --i-scrap: #1d5a56;
  --t-rentals: #e3ecdb; --i-rentals: #3a5a25;
  --t-food: #f5e1d9; --i-food: #8e361f;
}

/* Light is the default for everyone, whatever the system setting (owner, 15 Nov 2026); dark only
   when the visitor chose it with the switch in the header (data-theme on <html>, set before the first
   paint by the inline script in <head>, remembered in localStorage by site.js). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1014;
  --surface: #17181e;
  --wash: #1e2027;
  --pressed: #2a2c36;
  --ink: #ecebe6;
  --muted: #b4b5bf;
  --faint: #8a8c98;
  --ghost: #5a5c68;
  --hairline: #2a2c35;
  --rule: #6e707c;
  --accent: #adabff;
  --on-accent: #14133f;
  --accent-pressed: #c2c1ff;
  --accent-soft: #23224a;
  --warning: #e4b25a;
  --keyline: rgba(255, 255, 255, 0.06);
  --t-cargo: #1b2532; --i-cargo: #a9c1e0;
  --t-beauty: #2e1c29; --i-beauty: #e3a9d1;
  --t-livestock: #2c2218; --i-livestock: #ddbb98;
  --t-scrap: #142927; --i-scrap: #8ccfc8;
  --t-rentals: #1e2917; --i-rentals: #b4d39a;
  --t-food: #301d17; --i-food: #eda98f;
}

/* ------------------------------------------------------------------------------- language */
/* Every text exists in Swahili (.sw) and English (.en); the inactive language is hidden. Without a
   script the page stays in Swahili. Classes, not the lang attribute, so a Swahili word quoted in an
   English sentence can still carry lang="sw". */
html:not([lang="en"]) .en,
html[lang="en"] .sw { display: none !important; }

/* ---------------------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------------------- type scale */
.display, h1 {
  font-family: var(--display);
  font-variant-numeric: lining-nums;
  font-size: 36px; line-height: 1.12; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 40;
}
h2, .title-serif {
  font-family: var(--display);
  font-size: 28px; line-height: 1.18; letter-spacing: -0.005em;
  font-variation-settings: "opsz" 28;
}
h3 { font-size: 17px; line-height: 22px; font-weight: 600; }
.lead { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.body { font-size: 15px; line-height: 21px; color: var(--muted); }
.kicker { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); }
.caption { font-size: 13px; line-height: 18px; color: var(--faint); }
.measure { max-width: 34em; }

/* ------------------------------------------------------------------------------------ header */
.top { border-bottom: 1px solid var(--hairline); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.lockup { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-height: 48px; }
.lockup svg { width: 36px; height: 36px; flex: none; }
.wordmark { font-family: var(--display); font-size: 21px; line-height: 1; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; padding-top: 3px; }
.mark path { fill: none; stroke-width: 11.5; stroke-linecap: round; stroke-linejoin: round; }
.mark .nina { stroke: var(--ink); }
.mark .nataka { stroke: var(--accent); }

.langs { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; }
.langs button {
  appearance: none; border: 0; background: transparent; color: var(--ink);
  font: 600 14px/1 var(--ui); letter-spacing: 0.02em;
  min-width: 48px; min-height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .langs button[aria-pressed="false"]:hover { background: var(--wash); } }
/* the pill is 48 px tall: the 40 px buttons sit inside a 3 px rim plus the border */
.controls { display: inline-flex; align-items: center; gap: 8px; }

/* the theme switch: a 48 px ring beside the language pill; the moon offers dark, the sun light */
.theme {
  appearance: none; display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; padding: 0; border: 1px solid var(--rule); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun, [data-theme="dark"] .theme .moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
[data-theme="dark"] .theme .sun { opacity: 1; transform: none; }
.theme:active { background: var(--pressed); }
.theme:focus-visible { border-radius: 50%; }
@media (hover: hover) { .theme:hover { background: var(--wash); } }
@media (prefers-reduced-motion: no-preference) {
  .theme svg { transition: opacity 180ms ease, transform 280ms cubic-bezier(.3, 1.4, .5, 1); }
}

/* -------------------------------------------------------------------------------------- hero */
.hero { padding: 36px 0 44px; }
.hero .grid { display: grid; gap: 32px; }
.hero .kicker { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hero h1 q { quotes: "\201C" "\201D"; }
.hero .lead { margin-top: 18px; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 600 16px/20px var(--ui); letter-spacing: 0.01em; text-decoration: none;
  transition: background-color 120ms ease, transform 120ms ease;
}
.btn:active { background: var(--accent-pressed); transform: scale(0.98); }
@media (hover: hover) { .btn:hover { background: var(--accent-pressed); } }
.btn svg { width: 18px; height: 18px; }
.textlink {
  display: inline-flex; align-items: center; min-height: 48px; gap: 6px;
  color: var(--accent); font: 600 16px/20px var(--ui); text-decoration: none;
}
.textlink:hover { text-decoration: underline; }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mosaic li { margin: 0; }
.photo {
  position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--wash);
}
.photo::after { content: ""; position: absolute; inset: 0; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--keyline); pointer-events: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .caption { margin-top: 6px; }
.bg-cargo { background: #958b8d; } .bg-beauty { background: #655654; } .bg-livestock { background: #807456; }
.bg-scrap { background: #3d2f1f; } .bg-rentals { background: #968880; } .bg-food { background: #757981; }

/* ----------------------------------------------------------------------------------- sections */
.section { padding: 48px 0; border-top: 1px solid var(--hairline); }
.section > .wrap > header { margin-bottom: 24px; }
.section > .wrap > header .body { margin-top: 10px; max-width: 34em; }

/* services: rows with a tinted glyph tile; hanging hairlines start at the text column */
.services { list-style: none; margin: 0; padding: 0; display: grid; }
.svc { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 16px 0; position: relative; }
.svc + .svc::before { content: ""; position: absolute; top: 0; left: 72px; right: calc(-1 * var(--gutter)); border-top: 1px solid var(--hairline); }
.tile { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; }
.tile svg { width: 32px; height: 32px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile .body-fill { fill: currentColor; fill-opacity: 0.18; }
.tile .dot { fill: currentColor; stroke: none; }
.tile .hole { fill: var(--tile); }
.svc h3 { font-size: 17px; line-height: 22px; margin-top: 2px; }
.svc .short { color: var(--faint); font-weight: 400; }
.svc p { margin-top: 4px; }
.s-cargo { --tile: var(--t-cargo); color: var(--i-cargo); }
.s-beauty { --tile: var(--t-beauty); color: var(--i-beauty); }
.s-livestock { --tile: var(--t-livestock); color: var(--i-livestock); }
.s-scrap { --tile: var(--t-scrap); color: var(--i-scrap); }
.s-rentals { --tile: var(--t-rentals); color: var(--i-rentals); }
.s-food { --tile: var(--t-food); color: var(--i-food); }
.tile { background: var(--tile); }
.svc-text { color: var(--ink); }

/* how it works: three steps told with the brand's dots and line (dashed = not yet, solid = done) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { padding: 24px 0; position: relative; }
.step:first-child { padding-top: 4px; }
.step + .step::before { content: ""; position: absolute; top: 0; left: 0; right: calc(-1 * var(--gutter)); border-top: 1px solid var(--hairline); }
.scene { width: 144px; height: 54px; margin: 0 0 14px -8px; }
.scene .ink { fill: var(--ink); }
.scene .acc { fill: var(--accent); }
.scene .ring { fill: none; stroke: var(--rule); stroke-width: 2; }
.scene .dash { fill: none; stroke: var(--rule); stroke-width: 2; stroke-dasharray: 4 4; stroke-linecap: butt; }
.scene .solid { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.step .num { font: 600 13px/18px var(--ui); color: var(--faint); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 2px; font-size: 20px; line-height: 26px; }
.step .body { max-width: 30em; }
.step p { margin-top: 6px; }

/* two-column feature blocks: tracking, payments */
.feature { display: grid; gap: 28px; }
.points { list-style: none; margin: 20px 0 0; padding: 0; }
.points li { padding: 14px 0 14px 28px; position: relative; color: var(--ink); font-size: 16px; line-height: 23px; }
.points li + li { border-top: 1px solid var(--hairline); }
.points li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.points li.live::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.route { width: 100%; max-width: 360px; height: auto; aspect-ratio: 128 / 72; margin: 8px auto 0; }
.route .path { fill: none; stroke: var(--rule); stroke-width: 1.5; stroke-dasharray: 3 3; }
.route .walked { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.route .ink { fill: var(--ink); }
.route .acc { fill: var(--accent); }
.route .ring { fill: var(--paper); stroke: var(--rule); stroke-width: 1.5; }
.route .ring-acc { fill: var(--paper); stroke: var(--accent); stroke-width: 1.4; }
.route .halo { fill: var(--accent); opacity: 0.18; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .route .halo { animation: live 2.4s ease-out infinite; }
  @keyframes live { 0% { transform: scale(0.6); opacity: 0.32; } 100% { transform: scale(2.2); opacity: 0; } }
}

/* the ledger: a price as the app shows it (MoneyText 4.5), one total rule above the agreed price */
.ledger { margin: 0; max-width: 420px; }
.ledger .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.ledger .row:first-child { border-top: 0; }
.ledger .row.total { border-top: 1px solid var(--rule); }
.ledger dt { color: var(--muted); font-size: 15px; line-height: 21px; }
.ledger dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.money .cur { font-size: 0.62em; font-weight: 500; color: var(--muted); margin-right: 0.25em; }
.money .amt { font-weight: 700; color: var(--ink); font-size: 17px; }
.money .unit { color: var(--muted); font-size: 13px; margin-left: 0.25em; }
.ledger .total .amt { font-size: 24px; }
.ledger .note { margin-top: 10px; }
.operators { margin-top: 16px; color: var(--ink); }

/* coming to Android and iPhone: plain text, no store badges */
.platforms { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; }
.platform { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; min-height: 32px; }
.platform svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* demo: the warning tone is the demo label colour of the app (2.1); glyph + word together */
.demo-label { display: inline-flex; align-items: center; gap: 8px; color: var(--warning); font: 600 14px/18px var(--ui); letter-spacing: 0.02em; }
.demo-label svg { width: 16px; height: 16px; }
.demo-label .tri { fill: var(--warning); }
.demo-label .bang { fill: var(--paper); }
.demo .actions { margin-top: 24px; }

/* ------------------------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--hairline); padding: 28px 0 40px; }
.legal { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.legal a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 15px; }
.legal a:hover { color: var(--accent); text-decoration: underline; }
.foot .caption { margin-top: 16px; }
.foot .copy { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.foot .copy svg { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------------------------- inner pages */
.page { padding: 36px 0 56px; }
.page h1 { font-size: 34px; }
.page .lead { margin-top: 14px; }
.page section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.page section h2 { font-size: 24px; line-height: 30px; }
.page section p, .page section li { margin-top: 10px; color: var(--muted); max-width: 38em; }
.page ol, .page ul { padding-left: 20px; margin: 0; }
.page .back { margin-top: 8px; }
.credits { list-style: none; padding: 0; margin: 0; }
.credits li { padding: 14px 0; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 15px; line-height: 21px; }
.credits li:first-child { border-top: 0; }
.credits strong { color: var(--ink); font-weight: 600; }
.code {
  font: 600 15px/20px ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums slashed-zero; letter-spacing: 0.02em; color: var(--ink);
  word-break: break-all;
}
.download[hidden] { display: none !important; }
.download .caption { margin-top: 8px; }

/* -------------------------------------------------------------------------- the mark's Click */
@media (prefers-reduced-motion: no-preference) {
  .click .nina { animation: nina 420ms cubic-bezier(.3, 1.4, .5, 1) 120ms both; }
  .click .nataka { animation: nataka 420ms cubic-bezier(.3, 1.4, .5, 1) 120ms both; }
  @keyframes nina { from { transform: translateX(-6px); } to { transform: none; } }
  @keyframes nataka { from { transform: translateX(6px); } to { transform: none; } }
}

/* -------------------------------------------------------------------------------- wider screens */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .display, h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .mosaic { gap: 12px; }
  .section { padding: 64px 0; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .hero { padding: 72px 0 80px; }
  .hero .grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
  .display, h1 { font-size: 60px; line-height: 1.06; font-variation-settings: "opsz" 48; }
  h2 { font-size: 40px; line-height: 1.12; font-variation-settings: "opsz" 40; }
  .mosaic { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 88px 0; }
  .section > .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .section > .wrap > header { margin-bottom: 0; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .services .svc:nth-child(2)::before { display: none; }
  .services .svc + .svc::before { right: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
  .step, .step:first-child { padding: 0; }
  .step + .step::before { display: none; }
  .route { max-width: 460px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .section .body { font-size: 16px; line-height: 24px; }
  .page h1 { font-size: 48px; }
  .page .wrap { max-width: 820px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .services { grid-template-columns: 1fr; }
  .services .svc:nth-child(2)::before { display: block; }
}
.nw { white-space: nowrap; }
.page .demo-label { margin-bottom: 12px; }
.page .points { padding-left: 0; }
.page section .points li { margin-top: 0; color: var(--ink); }
.page section.end { border-top: 0; margin-top: 28px; padding-top: 0; }
.page ol > li + li { margin-top: 16px; }
.page .credits { padding-left: 0; }
.page section .credits li { margin-top: 0; }
