/* ============================================================================
 * afrigis-tokens.css — AfriGIS corporate identity, as design tokens
 * Version: 1.0.0  ·  2026-08-29
 *
 * WHY THIS FILE EXISTS, AND WHY IT IS NOT IN app.css
 *   app.css is linked from base.html, and only explorer.html and
 *   whatsapp_demo.html extend base.html. home, search, account and
 *   buy_credits — every surface the commercial design touches — never load it.
 *   Putting the identity there would have changed nothing on the pages that
 *   needed it, silently. So this is a standalone sheet each template links
 *   directly, with no inheritance to go wrong.
 *
 * WHERE THESE VALUES COME FROM
 *   Read off the live www.afrigis.co.za, not chosen: #003a63 is the dominant
 *   brand colour on the corporate site and #00a797 its accent, with Roboto as
 *   the site typeface. They are the company's identity rather than a product's.
 *
 * WHAT THIS REPLACES
 *   The Deeds Triangle navy/gold (#0a1c33 / #f4b400) is being retired. That
 *   palette is a product sub-brand; a self-service flow selling several products
 *   on one account and one wallet cannot also teach a first-time buyer two
 *   brands. Retire it surface by surface — do not bulk-replace hex values.
 *
 * WHAT IT DELIBERATELY DOES NOT DO
 *   It defines variables and nothing else: no element, class or resets. Linking
 *   it CANNOT change a rendered pixel, which is what makes it safe to deploy on
 *   its own, ahead of any restyling. Templates keep their inline <style> blocks
 *   and those still win — link this BEFORE them.
 *
 *   It also does not touch the --clh-* tokens in app.css. Those are consumed by
 *   the explorer and WhatsApp demo styles; renaming or redefining them would
 *   restyle two working surfaces as a side effect of a change meant to be inert.
 *   Note --clh-teal is #008080, which is NEAR #00a797 but is not it. Leave it.
 *
 * HOW TO USE IT
 *   Link it in <head> ABOVE the template's own <style>, then consume tokens as
 *   var(--ag-navy). Add a token only when a second surface needs the same value;
 *   a colour used once belongs in that template.
 * ========================================================================= */

/* Self-hosted brand faces so type never depends on a blocked/absent webfont.
   Roboto (sans) is the body/headline face; Roboto Slab (serif) is the 2025 CI's
   signature CONTRAST face — kickers and section headers — "a scientific serif
   against a relatable sans". Files live beside this sheet in /static. */
@font-face{font-family:'Roboto';src:url(/static/roboto-400.ttf) format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Roboto';src:url(/static/roboto-700.ttf) format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:'Roboto Slab';src:url(/static/roboto-slab-400.ttf) format('truetype');font-weight:400;font-display:swap}

:root {
  /* ---- brand ------------------------------------------------------------ */
  --ag-navy:        #003a63;   /* primary. Headings, dark bands, primary text */
  --ag-navy-deep:   #002a48;   /* pressed states, deeper bands */
  --ag-navy-soft:   #0b4c78;   /* raised panels ON a navy band */
  --ag-teal:        #00a797;   /* accent. One action per view, and confirmation */
  --ag-teal-dark:   #008579;   /* accent hover/pressed */
  --ag-teal-wash:   #e3f4f2;   /* accent tint behind chips and small badges */
  --ag-sky:         #69b3e3;   /* secondary accent, and borders on navy */

  /* ---- neutrals --------------------------------------------------------- */
  --ag-ink:         #003a63;   /* body text: the navy, not black */
  --ag-ink-muted:   #3d5f7d;   /* secondary prose */
  --ag-ink-faint:   #6b8299;   /* captions, help text, table labels */
  --ag-grey:        #a6a8ab;   /* disabled, placeholder, tertiary */
  --ag-line:        #e8e8e8;   /* hairlines, card borders, table rules */
  --ag-wash:        #f5f5f5;   /* page sections and inset panels */
  --ag-white:       #ffffff;

  /* ---- state ------------------------------------------------------------ */
  /* Amber rather than red: most "attention" states here are a withheld figure
     or a finding to look at, not an error. Red would overstate them. */
  --ag-attention:      #b8860b;
  --ag-attention-wash: #fdf8ec;

  /* ---- type ------------------------------------------------------------- */
  /* Roboto is the corporate site's face. The stack degrades to system faces
     with close metrics, so an offline or blocked webfont does not reflow. */
  --ag-font:      Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ag-font-serif:'Roboto Slab', Georgia, 'Times New Roman', serif;
  --ag-font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- shape ------------------------------------------------------------ */
  --ag-radius-sm: 6px;    /* buttons, inputs, chips */
  --ag-radius:    12px;   /* cards and panels */
  --ag-radius-lg: 14px;   /* pricing cards, feature panels */
}

/* Proposed interaction token; base teal intentionally unchanged. */
:root { --ag-teal-hover:#05a797; }
