/* Shared design tokens for every customer-facing template (catalog, accounts,
   survey). Single source of truth for the theme palette and type stack —
   app-specific <style> blocks should reference these custom properties
   rather than redeclaring hex values.

   Theme model: dark is the default and the only theme with no explicit
   opt-in — there's no automatic prefers-color-scheme switch, so an
   unvisited browser always sees dark regardless of OS setting. A
   visitor's explicit choice, made via the header toggle, is applied by
   stamping data-theme="light" on <html> and remembered in localStorage.
   --on-accent, --navy, --navy-soft, --teal-bright and --teal-ink are
   deliberately NOT overridden by the light theme below: the hero/
   stats-bar panels that use them are a fixed dark accent block in both
   themes (a brand panel/CTA band, same idea as a dark footer on an
   otherwise light site), and --on-accent (dark text on an accent-colored
   fill) already reads correctly against both themes' --accent. */
:root {
  color-scheme: dark;
  --bg: #0a0c11;
  --surface: #14171f;
  --ink: #f1f0ec;
  --muted: #96a0b0;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-soft: #102321;
  --border: #262b35;
  /* >=3:1 against both --bg and --surface (WCAG 1.4.11 non-text contrast)
     — used for the outline of actual interactive controls (inputs,
     selects); --border stays subtle for purely decorative dividers/cards. */
  --border-strong: #5a6478;
  --error: #f87171;
  /* Text/icon color on accent-colored surfaces (buttons, verified badge) —
     distinct from --navy, which is a page-background color elsewhere.
     Same value in both themes: it clears 4.5:1 against both themes'
     --accent (9.8:1 dark, 4.9:1 light). */
  --on-accent: #10151f;
  --navy: #0b1324;
  --navy-soft: #121b33;
  --teal-bright: #2dd4bf;
  --teal-ink: #e7fbf8;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Contrast computed against both --bg and --surface (WCAG 2.1 AA — 4.5:1
   normal text, 3:1 non-text/large text):
     --ink            17.1:1 / 18.3:1
     --muted           5.6:1 /  6.0:1
     --accent-strong   5.1:1 /  5.5:1  (text/link role)
     --accent          3.5:1 /  3.7:1  (fill role only — never used for
                                        text; --on-accent on top of it
                                        is 4.9:1, well clear of AA)
     --border-strong   4.5:1 /  4.8:1
     --error           6.1:1 /  6.5:1
   --border is decorative-only (dividers/card edges), not held to 3:1. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8f8;
  --surface: #ffffff;
  --ink: #10151f;
  --muted: #5b6472;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #e3f6f3;
  --border: #e4e2da;
  --border-strong: #6b7280;
  --error: #b91c1c;
}

/* Form controls don't inherit the page font by default in any browser —
   without this, every button/input/select/textarea silently falls back
   to the OS UI font instead of --font-sans. */
button, input, select, textarea {
  font-family: inherit;
}
