/* ══════════════════════════════════════════════════════════════════════════════
   Ponics site — design tokens
   Pixel, 2026-09-17. Built for the splashpage rewrite.

   ⭐ SINGLE SOURCE, AND IT IS NOT THIS FILE.
   Every value below is copied from `ux/catalog/tokens.css`, which is itself
   generated from `ponics_app/lib/design/theme.dart` (CustomColors + ColorScheme).
   THE APP IS CANONICAL. If a value here disagrees with Flutter, Flutter is right
   and this file is stale — do not "fix" it here.

   🔴 THE OLD SPLASHPAGE HAD DRIFTED, AND THIS IS THE RECORD OF IT.
   Its `styles.css:1-15` defined eight tokens. Three matched the app exactly and
   FIVE did not:

     token              old splashpage    app canonical   note
     ─────────────────────────────────────────────────────────────────────────
     black              #282525           #282525         ✅ match
     white              #FFFFFF           #FFFFFF         ✅ match
     grey (secondary)   #72796F           #72796F         ✅ match
     light grey         #D4D4D4           #D9D9D9         🔴 drift
     home (brown)       #393029           #41372F         🔴 drift
     background (cream) #FCFDF6           #FCFDF7         🔴 drift — one step of blue
     accent green       #E5EBE1           #E8EEE5         🔴 drift
     primary green      #1C6129           #1E6C2F         ⚠ SEE BELOW — not drift

   Confirmed against the third property: `ux/admin/admin-brand.css` uses #1E6C2F
   and #FCFDF7 — the app's values. So the app, the catalog and the admin agree,
   and the splashpage was the one outlier.

   ⚠ THE GREEN IS THE EXCEPTION, AND IT IS NOT A MISTAKE.
   The admin carries BOTH: `--pico-primary-background: #1E6C2F` for fills and
   `--pico-primary: #1a5f29` for link/accent text, annotated "deepened from
   #1E6C2F for AA on white". The old splashpage's #1C6129 sits between the two —
   almost certainly the same deliberate deepening, reached independently and
   never written down. So this file keeps the DISTINCTION rather than flattening
   it: a fill token and a deeper on-light text token, exactly as admin does.
   ***A value that looks like drift can be an undocumented decision. The tell is
   that another property made the same "mistake" for a stated reason.***

   NAMING. `--color-*`, matching the catalog and the app, NOT the old
   splashpage's `--n01-*` / `--b01-*` / `--p-green02`. Those names encoded a
   position in a swatch list ("n01", "b02") — the same defect as a numeral in a
   string of record: the name says WHERE it sat, not WHAT it is. Aliases for the
   old names are at the bottom so an integrator can diff rather than guess.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Surface + scaffold ────────────────────────────────────────────────── */
  --color-home:            #41372F;  /* warm brown — dark sections, CTA block   */
  --color-home-light:      #F7F3ED;
  --color-on-home:         #FFFFFF;
  --color-bg:              #FCFDF7;  /* cream page background                   */

  /* ── Brand greens ──────────────────────────────────────────────────────── */
  --color-primary-green-1: #A5F5A8;
  --color-primary-green-2: #1E6C2F;  /* brand green — FILLS, borders, marks     */
  --color-green-on-light:  #1a5f29;  /* deepened for AA — LINK + ACCENT TEXT.
                                        Same role and same value as the admin's
                                        `--pico-primary`. Use this for anything
                                        that is green type on cream or white.   */
  --color-list-separator-green: #D4E8D0;
  --color-accent-green:    #E8EEE5;

  /* ── Neutrals ──────────────────────────────────────────────────────────── */
  --color-black:           #282525;  /* body type                               */
  --color-white:           #FFFFFF;
  --color-accent-grey:     #D9D9D9;  /* borders, dividers, card outlines        */
  --color-outline-disabled:#72796F;  /* secondary type, captions, eyebrows      */
  --color-inverse-disabled:#A7B1A2;

  /* ── Alerts — severity, used by the status indicators ──────────────────── */
  --color-alert-red:       #B60100;
  --color-alert-orange:    #FF8800;  /* MEDIUM severity                         */
  --color-alert-yellow:    #FFDD00;  /* LOW severity                            */

  /* ── Evidence-object amber ─────────────────────────────────────────────── */
  /* Not an app token — this family exists only on the marketing site, where a
     diagram prints real readings. Kept as tokens rather than inline hex because
     five separate values were hard-coded across three pages before this. */
  --color-evidence-ink:    #8A5A12;  /* the readings themselves                 */
  --color-evidence-rule:   #C98A2E;  /* the dashed underline beneath a value    */

  /* ── Type ──────────────────────────────────────────────────────────────── */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ── Layout ────────────────────────────────────────────────────────────── */
  /* ⚠ CORRECTED ON INTEGRATION 2026-09-17. This comment previously claimed the
     old site's 600/900 breakpoints were kept. site.css does not agree with it and
     never did — the real turns are 760, 900 and 1200:
       760  nav links appear, hamburger hides, section padding opens up
       900  evidence objects sit beside their type instead of stacked
      1200  hero goes two-column, nav right-aligns, hero wordmark hides
     Only the 900 is shared with the old site. The stylesheet is authoritative
     over any comment about it; a stale breakpoint note is how someone later
     writes a media query at a width nothing else uses. Note that 1024 falls
     between two real turns, which is why it is a required verification width. */
  --page-max:     1180px;
  --radius-card:  16px;
  --radius-media: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   COMPATIBILITY ALIASES — the old splashpage's eight token names.
   Present so the integrator can lift a rule from the old `styles.css` without
   it silently losing its colour, and so a diff shows exactly which values moved.
   ⛔ Do not write NEW rules against these. They point at the canonical values,
   which means five of them now resolve to a slightly different colour than they
   did on the live site — that is the intended correction, not a regression.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --n01-black:        var(--color-black);
  --n02-white:        var(--color-white);
  --n03-light-grey:   var(--color-accent-grey);      /* was #D4D4D4 */
  --n04-grey:         var(--color-outline-disabled);
  --b01-home:         var(--color-home);             /* was #393029 */
  --b02-background:   var(--color-bg);               /* was #FCFDF6 */
  --b03-accent-green: var(--color-accent-green);     /* was #E5EBE1 */
  --p-green02:        var(--color-green-on-light);   /* was #1C6129 — closest match */
}

/* 🔴 `--b04-accent-pink` is referenced twice in the old styles.css and was never
   defined, so those error states rendered in inherited colour. It is deliberately
   NOT aliased here: defining it now would invent a brand colour nobody chose.
   The error state needs a real decision, and `--color-alert-red` is the obvious
   candidate. Logged in the integration brief, not resolved here. */
