/* FeedSync design tokens — the single source of truth for all three surfaces
   (marketing site, merchant /app, agency /admin). Change a value here and it
   updates everywhere. Tokens ONLY: no element or component rules live in this
   file (those belong in base.css and the per-surface files).

   Palette is sampled from the "FEED SYNC by STACKWISE" logo (public/imgs/):
   a left-to-right gradient from bright royal blue ("FEED") to deep navy
   ("SYNC"), on white, with bracket accents. */

:root {
  /* ---- Brand palette (from the logo) ---- */
  --color-primary: #1f5cff;        /* bright royal blue — the "FEED" end + brackets */
  --color-primary-strong: #1442c8; /* hover/active fill (darker, AA on white text) */
  --color-primary-soft: #e8efff;   /* tinted surfaces, selected rows */
  --color-primary-deep: #0e2148;   /* deep navy — the "SYNC" end */
  --color-navy: #0a1a38;           /* deepest navy — headers, footer, nav bar */
  --color-navy-soft: #16294d;      /* raised elements on navy */
  --color-on-brand: #ffffff;       /* text/marks on a brand-coloured fill */

  /* The logo's left→right wordmark gradient. Used for the wordmark, hero
     accents, and primary CTAs. */
  --brand-gradient: linear-gradient(95deg, #1f5cff 0%, #1846c9 52%, #0e2148 100%);
  --brand-gradient-soft: linear-gradient(120deg, #eef3ff 0%, #f5f8ff 60%, #ffffff 100%);

  /* ---- Neutrals ---- */
  --color-ink: #0f1b2d;            /* primary text (near-navy) */
  --color-text: #1e293b;           /* body text */
  --color-muted: #5b6b82;          /* secondary text, captions */
  --color-faint: #8595a8;          /* placeholders, disabled text */
  --color-border: #e2e8f2;         /* hairlines, card borders */
  --color-border-strong: #cdd6e4;  /* inputs, dividers needing more weight */
  --color-bg: #f5f8fd;             /* page background (faint blue tint) */
  --color-surface: #ffffff;        /* cards, panels */
  --color-surface-2: #f1f5fc;      /* table headers, inset areas */

  /* ---- Semantic (status) ----
     Each as text / background / border so pills, flashes, and badges stay
     consistent across surfaces. */
  --color-success: #15803d;
  --color-success-bg: #dcfce7;
  --color-success-border: #b9efc9;
  --color-warning: #b45309;
  --color-warning-bg: #fef3c7;
  --color-warning-border: #fbe08a;
  --color-danger: #b91c1c;
  --color-danger-strong: #911717;
  --color-danger-bg: #fee2e2;
  --color-danger-border: #fbc9c9;
  --color-info: #1d4ed8;
  --color-info-bg: #dbeafe;
  --color-info-border: #bfd5fb;

  /* error-code severity (docs/error-codes.md): 4xx = merchant-actionable
     (warning), 5xx = server/Shoptet-side (error). Aliased to semantic tokens
     so the per-row error display reads from the same palette. */
  --color-code-actionable: var(--color-warning);
  --color-code-actionable-bg: var(--color-warning-bg);
  --color-code-actionable-border: var(--color-warning-border);
  --color-code-server: var(--color-danger);
  --color-code-server-bg: var(--color-danger-bg);
  --color-code-server-border: var(--color-danger-border);

  /* ---- Typography ---- */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;

  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.6;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Spacing scale ---- */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* ---- Radii ---- */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---- Shadows (navy-tinted) ---- */
  --shadow-xs: 0 1px 2px rgba(10, 26, 56, 0.06);
  --shadow-sm: 0 1px 3px rgba(10, 26, 56, 0.08), 0 1px 2px rgba(10, 26, 56, 0.05);
  --shadow-md: 0 6px 16px -6px rgba(10, 26, 56, 0.14);
  --shadow-lg: 0 16px 40px -12px rgba(10, 26, 56, 0.22);
  --shadow-focus: 0 0 0 3px rgba(31, 92, 255, 0.28);

  /* ---- Layout ---- */
  --container: 64rem;
  --container-wide: 72rem;
}
