/* ConnectTel Sales Tool v2 — design tokens
   Derived from Euan's connecttel-tokens.css (extracted from index.html v1.14).
   Inherited palette with narrowly scoped contrast corrections for small text.
   The --text-*, --space-*, --radius-* scales are Euan's proposed V2 CHANGE and
   are PENDING HIS SIGN-OFF (his Q1).

   Partner theming: only the variables in the PARTNER-OVERRIDABLE block below
   may be supplied by a tenant. Everything else is product, not brand. */

:root {
  color-scheme: light;
  accent-color: #f5923b;
  /* ---- PARTNER-OVERRIDABLE ---- */
  --navy: #1a3557;
  --navy-mid: #254878;
  --blue: #2469bd;
  --blue-light: #e8f1fb;

  /* ---- NOT PARTNER-OVERRIDABLE: status carries commercial meaning ---- */
  --green: #1a7a4a;
  --green-light: #e6f4ed;
  --amber: #b45309;
  --amber-light: #fef3c7;
  --red: #b91c1c;
  --red-light: #fee2e2;

  /* ---- NOT PARTNER-OVERRIDABLE: neutral ramp ---- */
  --grey-50: #f8f9fa;
  --grey-100: #f1f3f5;
  --grey-200: #e9ecef;
  --grey-300: #dee2e6;
  --grey-500: #adb5bd;
  --grey-700: #495057;
  --grey-900: #212529;
  --text-muted: #626b73; /* Readable small text on the inherited light surfaces. */
  --white: #ffffff; /* a SURFACE token; inverts in dark mode */
  --image-surface: #ffffff; /* product art keeps its white backing in dark mode */

  --text-2xs: 10px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 28px;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 14px;
  --space-8: 16px;
  --space-10: 20px;
  --space-12: 24px;
  --space-14: 28px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-pill: 999px;
  --radius: var(--radius-xl);

  --shadow: 0 2px 12px rgba(26, 53, 87, 0.1);
  --duration-fast: 0.15s;
  --duration-slow: 0.3s;
}

:root[data-theme='dark'] {
  color-scheme: dark;
}
:root[data-theme='light'] {
  color-scheme: light;
}
body.dark-mode {
  --navy: #5a90d0;
  --navy-mid: #6ba1db;
  --blue: #4f9ae0;
  --blue-light: #1d3350;
  --green: #3fae7a;
  --green-light: #163829;
  --amber: #e0a63d;
  --amber-light: #3a2d13;
  --red: #e0605a;
  --red-light: #3a1c1c;
  --grey-50: #1c1c1f;
  --grey-100: #0d0d0f;
  --grey-200: #2a2a2e;
  --grey-300: #38383d;
  --grey-500: #8a8a90;
  --grey-700: #b0b0b5;
  --grey-900: #eeeeee;
  --text-muted: #8a8a90;
  --white: #141416;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* V2 CHANGE (Euan): reduced-motion support, absent in v1.14. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Client-facing letterhead and print stay light regardless of theme. */
@media print {
  :root,
  body.dark-mode {
    --white: #fff;
    --grey-900: #212529;
    --grey-100: #f1f3f5;
  }
}
