/*
  Fast1HQ design tokens.
  Palette is deliberately continuous with the real dispatch dashboard
  (dashboard/dispatch-dashboard.html :root vars) so the marketing site
  and the product feel like the same company, not a separate skin.
*/

:root {
  /* Color - light (default) */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-surface: #ffffff;
  --color-border: #e2e5ea;
  --color-border-strong: #d1d5db;
  --color-text: #1a1d21;
  --color-text-muted: #5b6270;
  --color-text-faint: #8a919e;

  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-soft: #eaf0fe;
  --color-success: #0f9d68;
  --color-success-soft: #e6f6ef;
  --color-warning: #b45309;
  --color-warning-soft: #fdf1e3;
  --color-danger: #dc2626;

  --color-dark: #12151a;
  --color-dark-surface: #1a1d21;
  --color-dark-border: #2b2f37;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem);
  --fs-h1: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  --fs-h2: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
  --fs-body-lg: 1.1875rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-normal: 1.55;

  --tracking-tight: -0.03em;
  --tracking-snug: -0.015em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(16, 20, 27, 0.06);
  --shadow-md: 0 6px 20px -4px rgba(16, 20, 27, 0.12);
  --shadow-lg: 0 24px 60px -20px rgba(16, 20, 27, 0.28);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;

  --container-w: 1180px;
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0e1013;
    --color-bg-alt: #14171b;
    --color-surface: #181b20;
    --color-border: #262a31;
    --color-border-strong: #33383f;
    --color-text: #f2f3f5;
    --color-text-muted: #a8adb8;
    --color-text-faint: #8b9099; /* lightened from #71767f: that value read 3.8-4.2:1 against dark-mode surfaces, below the 4.5:1 AA floor */

    /* #2f6fc7, not the lighter #5b8dfc this replaced: that lighter value
       read well as text on dark backgrounds (~6:1) but dropped white
       button/pill text on an accent fill to 3.2:1, below WCAG AA. This
       value holds ≥4.5:1 for white-on-accent-fill and ≥3.8:1 for
       accent-as-text-on-dark, so one token stays safe for both uses. */
    --color-accent: #2f6fc7;
    --color-accent-hover: #2557a8;
    --color-accent-soft: #16233f;
    --color-success: #34c98b;
    --color-success-soft: #10261c;
    --color-warning: #e3a458;
    --color-warning-soft: #2b2013;
    --color-danger: #f0655a;

    --color-dark: #05060a;
    --color-dark-surface: #101318;
    --color-dark-border: #262a31;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 20px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  --color-bg: #0e1013;
  --color-bg-alt: #14171b;
  --color-surface: #181b20;
  --color-border: #262a31;
  --color-border-strong: #33383f;
  --color-text: #f2f3f5;
  --color-text-muted: #a8adb8;
  --color-text-faint: #8b9099; /* lightened from #71767f, see prefers-color-scheme block above */

  --color-accent: #2f6fc7;
  --color-accent-hover: #2557a8;
  --color-accent-soft: #16233f;
  --color-success: #34c98b;
  --color-success-soft: #10261c;
  --color-warning: #e3a458;
  --color-warning-soft: #2b2013;
  --color-danger: #f0655a;

  --color-dark: #05060a;
  --color-dark-surface: #101318;
  --color-dark-border: #262a31;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
