/* Kanga's public site. Colours, font, radii and ornaments are the app's
   (mobile/lib/app/theme.dart, shared/widgets/backdrops.dart, brand_scaffold.dart). */

@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url("fonts/Manrope-Regular.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url("fonts/Manrope-Medium.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url("fonts/Manrope-SemiBold.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url("fonts/Manrope-Bold.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url("fonts/Manrope-ExtraBold.woff2") format("woff2"); }

/* KangaColors.light */
:root {
  --primary: #016ffe;
  --primary-fill: #016ffe;
  --ink: #0a1a33;
  --muted: #4a5b78;
  --mist: #f6f8fc;
  --fill: #edf1f9;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --line: rgba(74, 91, 120, 0.12);
  --on-brand: #ffffff;
  --map: rgba(47, 111, 216, 0.06);
  --pattern: rgba(47, 111, 216, 0.12);
  --phone: #0a1a33;
  --shadow: 0 1px 2px rgba(10, 26, 51, 0.04), 0 12px 32px -18px rgba(10, 26, 51, 0.18);
  --glow: 0 6px 16px rgba(1, 111, 254, 0.22);
  /* The ochre of the illustrations (calabash, wax), used sparingly. */
  --sun: #f2a33a;
  --sun-soft: rgba(242, 163, 58, 0.28);
  --band: rgba(1, 111, 254, 0.28);
  color-scheme: light;
}

/* KangaColors.dark */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3d8eff;
    --primary-fill: #1f5bef;
    --ink: #e8eef8;
    --muted: #94a3b8;
    --mist: #06122a;
    --fill: #14244a;
    --card: #0e1c3d;
    --glass: rgba(19, 35, 74, 0.8);
    --line: rgba(255, 255, 255, 0.1);
    --map: rgba(90, 180, 255, 0.07);
    --pattern: rgba(90, 180, 255, 0.1);
    --phone: #020814;
    --shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.6);
    --glow: 0 6px 16px rgba(61, 142, 255, 0.22);
    --sun: #f5b14f;
    --sun-soft: rgba(245, 177, 79, 0.3);
    --band: rgba(90, 180, 255, 0.3);
    color-scheme: dark;
  }
  /* The word « Kanga » turns white in dark mode (KangaLogo). */
  .wordmark { filter: brightness(0) invert(1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; }

/* ---- Header: the floating glass of the app's bars --------------------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.bar-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo-row { display: flex; align-items: center; gap: 6px; }
.logo-row .logo-mark { width: 34px; height: auto; }
.logo-row .wordmark { width: 79px; height: auto; }
.bar-nav { display: none; gap: 28px; margin-left: auto; }
.bar-nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.bar-nav a:hover { color: var(--ink); }
.pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--primary-fill); color: var(--on-brand);
  font-weight: 700; font-size: 15px;
  box-shadow: var(--glow);
}
.pill .icon { font-size: 18px; }
@media (min-width: 860px) {
  .bar-nav { display: flex; }
  .bar-nav + .pill { margin-left: 8px; }
}

/* ---- Ornaments (BrandBackdrop / MistBackdrop), painted through masks ---- */
.decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; animation: reveal 900ms cubic-bezier(0.2, 0, 0, 1) both; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .decor { animation: none; } html { scroll-behavior: auto; } }
.o {
  position: absolute; display: block;
  background: var(--pattern);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.o-africa { background: var(--map); aspect-ratio: 953 / 1000; -webkit-mask-image: url("img/africa.svg"); mask-image: url("img/africa.svg"); }
.o-arc { aspect-ratio: 1; width: 286px; -webkit-mask-image: url("img/arc.svg"); mask-image: url("img/arc.svg"); }
.o-dots { aspect-ratio: 60 / 186; width: 31px; -webkit-mask-image: url("img/dots.svg"); mask-image: url("img/dots.svg"); }

.hero-africa { width: min(92vw, 640px); left: 50%; top: 2%; transform: translateX(-50%); }
.hero-arc-1 { left: -210px; top: 12%; }
.hero-arc-2 { right: -205px; top: 62%; }
.hero-arc-3 { left: -220px; bottom: -150px; }
.hero-dots-1 { right: 22px; top: 7%; }
.hero-dots-2 { left: 12px; top: 46%; }
.side-arc-left { left: -215px; top: 10%; width: 258px; }
.side-arc-left.low { top: auto; bottom: 8%; }
.side-arc-right { right: -215px; top: 46%; width: 258px; }
.small-africa { width: min(26vw, 220px); left: 56%; top: 8px; transform: translateX(-50%); }
.side-dots { right: 24px; top: 60%; }

/* ---- Shared pieces --------------------------------------------------- */
/* The three promises of the app's welcome page, used as labels too. */
.chip, .promises li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3;
}
.chip .icon, .promises .icon { color: var(--primary); font-size: 15px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* BrandButton: 52 high, 32 radius, label centred, arrow on the right. */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 440px; min-height: 56px; padding: 8px 22px;
  border-radius: 32px;
  font-size: 16px; font-weight: 700; letter-spacing: 0.1px; line-height: 1.25; text-align: center;
  transition: transform 160ms ease, filter 160ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-fill); color: var(--on-brand); box-shadow: var(--glow); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary[aria-disabled="true"] { opacity: 0.45; box-shadow: none; cursor: default; }
.btn-label { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding-left: 20px; }
.btn-label .icon { font-size: 20px; }
.btn-arrow { font-size: 20px; }
.btn-tonal { background: var(--fill); color: var(--primary); margin-top: 10px; }
.btn-tonal:hover { filter: brightness(0.98); }
/* 360 px phones: both labels on one line, in the hero as in the card below. */
@media (max-width: 420px) {
  .btn { padding: 8px 16px; font-size: 15px; }
  .btn-label { padding-left: 0; gap: 8px; }
}

.phone {
  display: block;
  padding: 9px;
  border-radius: 42px;
  background: var(--phone);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 30px 60px -28px rgba(10, 26, 51, 0.45);
}
.phone img { width: 100%; border-radius: 33px; }

/* ---- Hero: the app's welcome page ------------------------------------ */
.hero { position: relative; padding: 40px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 {
  margin-top: 18px;
  font-size: clamp(34px, 7.4vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  max-width: 14ch;
}
.lead { margin-top: 16px; max-width: 34em; color: var(--muted); font-size: clamp(16px, 2.2vw, 18.5px); line-height: 1.55; }
.promises { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.download { width: 100%; display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.meta { margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  max-width: 440px; padding: 14px 16px; border-radius: 20px;
  background: var(--fill); color: var(--ink); font-weight: 600; font-size: 15px;
}
.notice .icon { color: var(--primary); font-size: 20px; margin-top: 1px; }
.qr {
  display: none; align-items: center; gap: 16px; text-align: left;
  margin-top: 26px; max-width: 440px; padding: 14px 18px 14px 14px;
  border-radius: 20px; background: var(--card); border: 1px solid var(--line);
}
.qr img { width: 96px; height: 96px; padding: 8px; border-radius: 12px; background: #fff; }
.qr p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.qr strong { color: var(--ink); }

.phones { position: relative; width: min(100%, 470px); aspect-ratio: 470 / 600; margin: 0 auto; }
.phones .phone { position: absolute; width: 54%; }
.phone-back { left: 0; top: 0; transform: rotate(-4deg); opacity: 0.96; }
.phone-front { right: 0; bottom: 0; transform: rotate(3deg); }

@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 40px; }
  .hero-text { align-items: flex-start; text-align: left; }
  .promises { justify-content: flex-start; }
  .download { align-items: flex-start; }
  .btn { max-width: 380px; }
  .qr { display: flex; }
  .hero-africa { width: 640px; left: auto; right: -40px; top: 6%; transform: none; }
}

/* ---- Sections -------------------------------------------------------- */
.section { position: relative; padding: 72px 0; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 640px; margin: 0 auto 40px; }
h2 { margin-top: 16px; font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.55; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }

.features { display: grid; gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.feature .art { width: 112px; height: 112px; border-radius: 50%; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; gap: 20px; }
  .feature { flex-direction: row; align-items: center; padding: 26px; gap: 22px; }
  .feature .art { width: 128px; height: 128px; }
}

.gallery {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(20px, calc((100vw - 1080px) / 2)) 28px;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(62vw, 250px); margin: 0; scroll-snap-align: center; text-align: center; }
.shot figcaption { margin-top: 14px; font-weight: 700; font-size: 15px; }
@media (min-width: 1080px) {
  .gallery { justify-content: center; overflow: visible; }
  .shot { flex-basis: 250px; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { padding: 24px; }
.step-n {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
  background: var(--fill); color: var(--primary); font-weight: 800; font-size: 17px;
}
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.cta {
  margin-top: 40px; padding: 40px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
@media (max-width: 420px) { .cta { padding-inline: 14px; } }
.cta-mark { width: 72px; }
.cta h2 { margin-top: 14px; }
.cta > p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.cta .download { margin-top: 26px; align-items: center; }

/* ---- Footer ---------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer .logo-mark { width: 28px; }
.footer .wordmark { width: 64px; }
.footer p { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.4px; }

/* ---- Owner request, 26 October 2026: « you give your @identifiant, not your number » ---- */
.hl { color: var(--primary); background: linear-gradient(transparent 68%, var(--sun-soft) 0); white-space: nowrap; }

.handle-badge {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 800; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap;
}
.handle-badge .icon {
  width: 30px; height: 30px; padding: 6px; border-radius: 50%;
  background: var(--primary-fill); color: var(--on-brand); stroke-width: 2.4;
}

/* Kente / wax band: the app's blue, a few ochre gems. */
.band { position: relative; height: 24px; overflow: hidden; }
.band::before, .band::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask-size: 32px 24px; mask-size: 32px 24px;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.band::before { background: var(--band); -webkit-mask-image: url("img/band.svg"); mask-image: url("img/band.svg"); }
.band::after { background: var(--sun); opacity: 0.85; -webkit-mask-image: url("img/band-gems.svg"); mask-image: url("img/band-gems.svg"); }
.band-in { position: absolute; left: 0; right: 0; top: 0; height: 18px; border-radius: 24px 24px 0 0; }
.band-in::before, .band-in::after { -webkit-mask-size: 24px 18px; mask-size: 24px 18px; }
.cta { position: relative; overflow: hidden; padding-top: 52px; }

.compare { display: grid; gap: 14px; align-items: center; max-width: 920px; margin: 0 auto; }
.cmp { padding: 22px; }
.cmp-label {
  display: inline-block; padding: 4px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--fill); color: var(--muted);
}
.cmp-id { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.cmp-id .icon { font-size: 24px; }
.cmp p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.cmp-off .cmp-id { color: var(--muted); }
.cmp-num { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #e5484d; }
.cmp-on { border-color: var(--primary); box-shadow: var(--shadow), 0 0 0 3px rgba(1, 111, 254, 0.08); }
.cmp-on .cmp-label { background: var(--primary-fill); color: var(--on-brand); }
.cmp-on .cmp-id { color: var(--primary); }
.cmp-qr { margin-left: auto; color: var(--muted); }
.cmp-arrow { display: grid; place-items: center; color: var(--primary); font-size: 26px; transform: rotate(90deg); }
@media (min-width: 760px) {
  .compare { grid-template-columns: 1fr auto 1fr; gap: 18px; }
  .cmp-arrow { transform: none; }
}

.reasons { display: grid; gap: 16px; margin-top: 28px; }
.reason { padding: 24px; }
.reason-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 50%; background: var(--fill); color: var(--primary); font-size: 22px;
}
.reason p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (min-width: 860px) { .reasons { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.tiles {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.tiles li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line);
}
.tiles .icon { grid-row: span 2; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--fill); color: var(--primary); }
.tiles strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.tiles span { color: var(--muted); font-size: 13px; line-height: 1.35; }

.narrow { max-width: 760px; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: 20px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 16px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 20px; color: var(--primary); transition: transform 200ms ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.footer { padding-top: 0; border-top: 0; }
.footer .band { margin-bottom: 26px; }
