/* Gambia9 marketing site — design system v1.1 tokens.
   Source: docs/03-design/design-files-v1.1/GAMBIA9_DESIGN_SYSTEM_v1.1.md
   No JavaScript. Mobile-first. */

/* ===========================================================================
   OPERATOR IDENTIFICATION COLOURS
   ---------------------------------------------------------------------------
   Sampled from each operator's own official logo (africell.com, qcell.gm,
   comium.gm, gamcel.gm) on 2026-08-16. Logo use approved by the project owner
   on the basis that Pay365 already uses these marks in the Ping Money service.

   Note: Africell and QCell both sample to near-identical oranges, so the row
   colour alone cannot distinguish them — the logos do that. Africell therefore
   uses its secondary purple here to keep the rows visually separable.

   THIS IS THE ONLY PLACE THEY ARE DEFINED.
   =========================================================================== */
:root {
  --op-africell: #A31C87;  /* Africell magenta-purple, per the official
                              wordmark (its orange accent clashes with
                              QCell's #F78F21, so the purple is used) */
  --op-qcell:    #F78F21;  /* sampled from qcell.gm logo   */
  --op-comium:   #E12827;  /* exact, from comium.gm SVG    */
  --op-unknown:  #00A78D;  /* Gamcel teal, sampled          */
}

:root {
  /* Colour tokens (locked — see design system §2) */
  --brand: #1E4FB4;
  --brand-hover: #173F94;
  --brand-subtle: #EEF3FC;
  --success: #2F7D33;
  --green-underscore: #79C280;
  --amber: #E8960C;
  --ink: #191F2B;
  --fg-secondary: #515B6E;
  --fg-tertiary: #98A2B3;
  --deadline: #C0311F;   /* Sun Red 600 — countdown only (§2)            */
  --danger:   #C0311F;   /* Sun Red 600 — scam-safety warnings only (§2) */
  --border: #DDE3EB;
  --sunken: #ECF0F5;
  --canvas: #F6F8FB;
  --surface: #FFFFFF;

  /* Radii (§4) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Type */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space (4px base) */
  --gutter: 16px;
  --max-width: 940px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* All numerals use Space Grotesk with tabular figures (§3) */
.num,
.number,
.stat-value,
table td:first-child,
h1, h2, h3, h4 {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 40px; }
h3 { font-size: 19px; margin-top: 28px; }
h4 { font-size: 17px; margin-top: 24px; }

p { margin: 0 0 16px; }

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: var(--brand-hover); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

strong { font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--sunken);
  border-radius: 4px;
  padding: 1px 5px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header .logo {
  display: block;
  line-height: 0;
}

.site-header .logo img {
  height: 28px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  min-height: 44px;
  line-height: 28px;
  color: var(--fg-secondary);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  background: var(--brand-subtle);
  color: var(--brand-hover);
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-subtle);
}

/* ---------- Main ---------- */

main {
  display: block;
  padding-bottom: 56px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 48px;
}

.hero-compact { padding: 32px 0 36px; }

.hero h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.hero .lede {
  font-size: 20px;
  color: var(--fg-secondary);
  max-width: 30em;
  margin-bottom: 24px;
}

.hero .lede .mail {
  font-family: var(--font-display);
  font-weight: 700;
  word-break: break-word;
}

/* ---------- Signature: the prefix insertion (leads the page) ---------- */

.sig-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.sig-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  white-space: nowrap;
}

.sig-old {
  color: var(--fg-tertiary);
  background: var(--sunken);
}

.sig-new {
  background: var(--brand-subtle);
  border-color: var(--brand);
}

.sig-num .prefix {
  color: var(--brand);
  font-weight: 700;
}

.sig-arrow {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--fg-tertiary);
  line-height: 1;
}

/* ---------- Countdown (deadline red — §2, countdown only) ---------- */

.countdown-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.countdown {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.countdown-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 48px;
  line-height: 1;
  color: var(--deadline);
}

.countdown-num[hidden] { display: none; }

.countdown-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}

/* ---------- Step icons ---------- */

.ico {
  width: 32px;
  height: 32px;
  display: block;
  color: var(--brand);
}

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 8px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.step h3 {
  margin: 10px 0 4px;
  font-size: 20px;
}

.step p {
  margin: 0;
  font-size: 15px;
  color: var(--fg-secondary);
}

/* ---------- App screenshots ----------
   Sources are 590x1282 (iPhone, downscaled from the 1320x2868 store masters in
   docs/03-design/store-screenshots/), displayed at 295px CSS wide — exactly 2x,
   so they are never upscaled. Mobile-first: one screenshot per row, stacking to
   two columns only once there is room for both at full size. The radius is
   --radius-lg so the shot reads as a phone rather than a pasted rectangle. */

.screens {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-top: 24px;
}

.screen {
  margin: 0;
  max-width: 295px;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--sunken);
}

.screen figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--fg-secondary);
}

@media (min-width: 620px) {
  .screens {
    grid-template-columns: repeat(2, 1fr);
    max-width: 660px;
    gap: 20px;
  }
}

/* One featured screenshot on its own row (the preview screen). Without this it
   would drop into the left column of the two-up grid above and sit off-centre.
   Written as .screens.screens-solo so it outranks the two-column rule in the
   media query above. */
.screens.screens-solo {
  grid-template-columns: 1fr;
  max-width: 295px;
  margin-top: 28px;
}

/* A screenshot answering one question inside body copy (the undo shot on
   /support/). Deliberately smaller than the 295px feature size — it is a
   landmark to match against a phone, not a showcase. Still 2x+ its source. */
.screen.screen-inline {
  max-width: 200px;
  margin: 12px 0 20px;
}

/* ---------- Asset placeholders (no real asset exists yet) ---------- */

.asset-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px;
  text-align: center;
  border: 2px dashed var(--fg-tertiary);
  border-radius: var(--radius-md);
  background: var(--sunken);
  color: var(--fg-secondary);
  font-size: 13px;
  font-weight: 500;
}

.asset-phone { aspect-ratio: 9 / 16; }

.asset-video {
  aspect-ratio: 16 / 9;
  max-width: 620px;
}

.asset-inline {
  max-width: 200px;
  margin: 12px 0 20px;
}

/* ---------- Cards & sections ---------- */

.section {
  padding-top: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}

.card h3 {
  margin-top: 0;
  font-size: 17px;
}

.card p:last-child { margin-bottom: 0; }

/* ---------- Privacy promise ---------- */

.promise {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-md);
  padding: 20px;
}

.promise .ico-lock {
  width: 36px;
  height: 36px;
  color: var(--success);
  margin-bottom: 10px;
}

.promise .promise-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.promise .promise-sub {
  color: var(--fg-secondary);
  margin-bottom: 12px;
}

/* Reserved for the Wolof / Mandinka / Fula lines once verified. */
.promise-local {
  font-size: 17px;
  color: var(--fg-secondary);
  margin-bottom: 4px;
}

.promise-link { margin: 0; }

/* ---------- Price cards ---------- */

.audience .card { text-align: left; }

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 34px;
  line-height: 1.1;
  color: var(--brand);
  margin: 4px 0 8px;
}

.price-free { color: var(--success); }

.audience .card p:last-child {
  color: var(--fg-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  background: var(--sunken);
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }

td .prefix,
.op-table .prefix {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-size: 17px;
}

/* Operator rows. Colours come from the placeholder block at the top of this
   file — see the comment there before changing anything. */

.op-table th[scope="row"] {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
}

.op-table td { font-size: 16px; }

.op-row { border-left: 6px solid var(--op-unknown); }
.op-row.op-africell { border-left-color: var(--op-africell); }
.op-row.op-qcell    { border-left-color: var(--op-qcell); }
.op-row.op-comium   { border-left-color: var(--op-comium); }

.op-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: baseline;
  background: var(--op-unknown);
}

.op-africell .op-dot { background: var(--op-africell); }
.op-qcell .op-dot    { background: var(--op-qcell); }
.op-comium .op-dot   { background: var(--op-comium); }

.op-note {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}

.footnote,
.source-note {
  font-size: 13px;
  color: var(--fg-tertiary);
}

/* ---------- Store badges ---------- */

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.badge:hover {
  background: #000;
  color: var(--surface);
}

.badge .badge-sub {
  display: block;
  font-size: 12px;
  color: var(--fg-tertiary);
  line-height: 1.3;
}

.badge .badge-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.badge-note {
  font-size: 14px;
  color: var(--fg-secondary);
  margin-top: 12px;
}

/* ---------- Support / FAQ ---------- */

.support-hint {
  font-size: 17px;
  margin-bottom: 8px;
}

.support-warn {
  font-size: 17px;
  font-weight: 500;
  color: var(--danger);
  margin-bottom: 0;
}

.faq h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin-top: 32px;
  margin-bottom: 6px;
}

.faq h2:first-child { margin-top: 0; }

.faq p {
  font-size: 17px;
  margin-bottom: 0;
}

.faq ul {
  margin: 8px 0 0;
  padding-left: 22px;
  font-size: 17px;
  color: var(--fg-secondary);
}

.faq li { margin-bottom: 4px; }

/* ---------- Notices ---------- */

.notice-draft {
  background: #FDF6E7;
  border: 1px solid var(--amber);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 0 28px;
  color: #8A5A06;
  font-weight: 500;
}

.notice-draft p { margin: 0; }

/* ---------- Legal page body ---------- */

.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin-top: 32px;
}

.doc h1 { margin-top: 0; }

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc li { margin-bottom: 8px; }

.doc blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--sunken);
  border-left: 4px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--fg-secondary);
}

.doc blockquote p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 15px;
  color: var(--fg-secondary);
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin: 0 0 10px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 8px; }

.site-footer a { color: var(--fg-secondary); }

.site-footer a:hover { color: var(--brand-hover); }

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-tertiary);
}

.footer-legal p { margin: 0 0 6px; }

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  h1 { font-size: 38px; }
  .hero { padding: 56px 0 60px; }
  .hero-compact { padding: 40px 0 40px; }
  .hero h1 { font-size: 44px; }
  .sig-num { font-size: 40px; padding: 12px 18px; }
  .sig-arrow { font-size: 30px; }
  .countdown-num { font-size: 64px; }
  .countdown-label { font-size: 21px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .doc { padding: 32px 36px; }
}

@media (min-width: 900px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 48px; }
  .sig-num { font-size: 46px; }
  .countdown-num { font-size: 72px; }
}

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


/* Operator logo in the prefix table.
   The three marks have very different aspect ratios — africell.png is a
   377x206 wordmark, comium.svg a 432x107 wordmark, qcell.png a 200x200 square.
   A square 28x28 box would squeeze the two wordmarks down to a few pixels of
   height and leave the operator names starting at different x positions. So
   the box is fixed at 76x24 for every row: `contain` scales each mark to fit
   without distortion, and `object-position: left` parks it against the left
   edge of that box, so all three names line up in the column. Keep the box
   fixed in both dimensions — that is what holds the row alignment. */
.op-logo {
  display: inline-block;
  width: 76px;
  height: 24px;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------------------------------------------------------------------------
   Mobile navigation. Desktop keeps the inline row; below 640px the links
   collapse behind a hamburger. Collapsing only applies once JS has set
   .js-nav on <html>, so the nav stays usable with JavaScript disabled.
   --------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border, #DDE3EB);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: #191F2B;
}

.nav-toggle[aria-expanded="true"] {
  border-color: #1E4FB4;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .js-nav .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid var(--border, #DDE3EB);
  }

  .js-nav .site-nav.is-open { display: flex; }

  .js-nav .site-nav a {
    padding: 14px 4px;      /* 48px touch target, per the design system */
    border-bottom: 1px solid var(--border, #DDE3EB);
  }

  .js-nav .site-nav a:last-child { border-bottom: 0; }

  .site-header .wrap { flex-wrap: wrap; }
}
