/*
 * ERPOWER design tokens: the single source of every value in the design.
 * Names follow the Tailwind v4 theme namespaces (--color-*, --font-*, --text-*, --radius-*,
 * --spacing-*), so this block can move into @theme unchanged once the app is built.
 *
 * All 21 solid colours of the design are here unchanged. Merged to keep the scale readable:
 * - white on ink: text 0.7 and 0.78 -> 0.72, text 0.45 and 0.55 -> 0.5,
 *   lines 0.08 to 0.15 -> 0.12, lines 0.2 to 0.3 -> 0.25, fills 0.04 -> 0.06, 0.1 -> 0.12;
 * - type sizes: 10 -> 10.5, 13 -> 13.5, 15.5 -> 15, 20 -> 22.
 */

:root {
  color-scheme: light;

  /* Brand */
  --color-brand: #a62534;
  --color-brand-hover: #7e1723;
  --color-brand-raised: #93202d;
  --color-brand-tint: #e4899a;
  --color-on-brand: #ffffff;

  /* Dark surfaces */
  --color-ink: #101418;
  --color-ink-raised: #171c22;
  --color-ink-stripe-a: #1a2028;
  --color-ink-stripe-b: #141a21;

  /* Light surfaces */
  --color-canvas: #f6f7f9;
  --color-surface: #ffffff;
  --color-stripe-a: #eef0f3;
  --color-stripe-b: #f7f8fa;

  /* Lines */
  --color-line: #e6e8ec;
  --color-line-soft: #eef0f3;
  --color-line-strong: #d8dbe0;

  /* Text on light surfaces */
  --color-fg: var(--color-ink);
  --color-fg-muted: #6b7280;
  --color-fg-hint: #8a9099;
  --color-fg-subtle: #a0a6ae;

  /* States and highlight */
  --color-success: #0e9c68;
  --color-warning: #c97a12;
  --color-transit: #3a4756;
  --color-highlight: #ffd24a;
  --color-on-highlight: var(--color-ink);

  /* White on dark surfaces */
  --color-on-ink: #ffffff;
  --color-on-ink-muted: rgba(255, 255, 255, 0.72);
  --color-on-ink-subtle: rgba(255, 255, 255, 0.5);
  --color-line-on-ink: rgba(255, 255, 255, 0.12);
  --color-line-strong-on-ink: rgba(255, 255, 255, 0.25);
  --color-fill-on-ink: rgba(255, 255, 255, 0.06);
  --color-fill-on-ink-hover: rgba(255, 255, 255, 0.12);

  /* Dimmed page behind a Modal; not in the design, which has no overlays */
  --color-scrim: rgba(16, 20, 24, 0.5);
  --color-scrim-soft: rgba(16, 20, 24, 0.32);
  --transition-state:
    color 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;

  /* A card lifts on hover: the border darkens, the card rises a little and casts a soft shadow. */
  --lift-y: -2px;
  --shadow-lift: 0 12px 24px -14px rgba(16, 20, 24, 0.35), 0 2px 6px -2px rgba(16, 20, 24, 0.1);
  --transition-lift: var(--transition-state), transform 0.16s ease;

  /* Font families */
  --font-sans: "Space Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type styles in Space Grotesk */
  --text-display: 46px;
  --text-display--line-height: 1.04;
  --text-display--letter-spacing: -0.02em;
  --text-display--font-weight: 700;

  --text-heading-xl: 34px;
  --text-heading-xl--line-height: 1.1;
  --text-heading-xl--letter-spacing: -0.02em;
  --text-heading-xl--font-weight: 700;

  --text-heading-lg: 24px;
  --text-heading-lg--line-height: 1.2;
  --text-heading-lg--letter-spacing: -0.01em;
  --text-heading-lg--font-weight: 700;

  --text-heading-md: 22px;
  --text-heading-md--line-height: 1.15;
  --text-heading-md--letter-spacing: 0;
  --text-heading-md--font-weight: 700;

  --text-title: 15px;
  --text-title--line-height: 1.3;
  --text-title--letter-spacing: 0;
  --text-title--font-weight: 600;

  --text-title-sm: 14.5px;
  --text-title-sm--line-height: 1.32;
  --text-title-sm--letter-spacing: 0;
  --text-title-sm--font-weight: 600;

  --text-body-lg: 16px;
  --text-body-lg--line-height: 1.5;
  --text-body-lg--letter-spacing: 0;
  --text-body-lg--font-weight: 400;

  --text-body: 15px;
  --text-body--line-height: 1.55;
  --text-body--letter-spacing: 0;
  --text-body--font-weight: 400;

  --text-ui: 14px;
  --text-ui--line-height: 1.2;
  --text-ui--letter-spacing: 0;
  --text-ui--font-weight: 500;

  --text-ui-sm: 13.5px;
  --text-ui-sm--line-height: 1.2;
  --text-ui-sm--letter-spacing: 0;
  --text-ui-sm--font-weight: 600;

  /* Type styles in IBM Plex Mono */
  --text-price: 19px;
  --text-price--line-height: 1.2;
  --text-price--letter-spacing: 0;
  --text-price--font-weight: 600;

  --text-price-sm: 15px;
  --text-price-sm--line-height: 1.2;
  --text-price-sm--letter-spacing: 0;
  --text-price-sm--font-weight: 600;

  --text-mono-lg: 12.5px;
  --text-mono-lg--line-height: 1.5;
  --text-mono-lg--letter-spacing: 0;
  --text-mono-lg--font-weight: 400;

  --text-mono: 12px;
  --text-mono--line-height: 1.5;
  --text-mono--letter-spacing: 0;
  --text-mono--font-weight: 400;

  --text-mono-sm: 11.5px;
  --text-mono-sm--line-height: 1.5;
  --text-mono-sm--letter-spacing: 0;
  --text-mono-sm--font-weight: 400;

  --text-mono-xs: 11px;
  --text-mono-xs--line-height: 1.5;
  --text-mono-xs--letter-spacing: 0;
  --text-mono-xs--font-weight: 400;

  --text-code: 10.5px;
  --text-code--line-height: 1.5;
  --text-code--letter-spacing: 0;
  --text-code--font-weight: 400;

  --text-utility: 11.5px;
  --text-utility--line-height: 1.5;
  --text-utility--letter-spacing: 0.04em;
  --text-utility--font-weight: 400;

  --text-eyebrow: 11px;
  --text-eyebrow--line-height: 1.5;
  --text-eyebrow--letter-spacing: 0.14em;
  --text-eyebrow--font-weight: 400;

  --text-label: 10.5px;
  --text-label--line-height: 1.5;
  --text-label--letter-spacing: 0.12em;
  --text-label--font-weight: 400;

  --text-tag: 9.5px;
  --text-tag--line-height: 1.2;
  --text-tag--letter-spacing: 0.1em;
  --text-tag--font-weight: 400;

  /* Shape */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-full: 50%;

  /* Spacing: multiples of 4 px, half steps included */
  --spacing: 4px;

  /* Layout */
  --spacing-page: 1440px;
  --spacing-page-narrow: 1120px;
  --spacing-gutter: 32px;
  --spacing-section: 44px;
  --spacing-block: 16px;
  --spacing-grid: 12px;

  /* Heights */
  --spacing-utility-bar: 34px;
  --spacing-nav: 52px;
  --spacing-control-xs: 30px;
  --spacing-control-sm: 38px;
  --spacing-control-md: 42px;
  --spacing-control-lg: 44px;
  --spacing-control-xl: 46px;
}
