/* Auditi brand tokens · v1.0 · 2026-12-01
   Single source for colour, type, spacing, shape and shadow.
   The brand guide (index.html) reads these values, so the guide and the tokens cannot drift apart.
   Website mapping: see the comments after each token (names from marketing/src/app.css). */

@font-face { font-family: 'Sohne'; src: url('assets/fonts/soehne-buch.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sohne'; src: url('assets/fonts/soehne-buch-kursiv.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Sohne'; src: url('assets/fonts/soehne-kraftig.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sohne'; src: url('assets/fonts/soehne-halbfett.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sohne'; src: url('assets/fonts/soehne-dreiviertelfett.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* ── Core colour ─────────────────────────────────────────── */
  --auditi-blue: #0B5AD9;        /* the logo blue; the only brand blue   → --color-page-accent */
  --auditi-ink: #060C2A;         /* text and the navy surface            → --color-page-ink, --color-problem-bg */
  --auditi-white: #FFFFFF;       /* the ground                           → --color-page-bg */

  /* ── Blue family ─────────────────────────────────────────── */
  --blue-soft: #EEF3FE;          /* hover fills, avatar grounds, tints   → --color-page-accent-soft */
  --blue-muted: #BCD2FF;         /* disabled blue, chart tint            → --color-page-accent-muted */
  --blue-on-navy: #7398FF;       /* links and highlights on navy only    → --color-problem-signal-blue */

  /* ── Neutrals ────────────────────────────────────────────── */
  --slate: #5F6F96;              /* secondary lines such as a hero subline (5.0:1 on white) → --color-page-accent-subdued */
  --grey: #5A626E;               /* metadata, captions, helper text      → --color-page-muted */
  --line: #E2E5EA;               /* hairlines and borders                → --color-page-border */
  --line-soft: #EEF0F3;          /* inner dividers, rings                → --color-page-border-soft */
  --surface: #F6F9FC;            /* the one quiet surface                → --color-page-surface */

  /* ── Navy surface (ink used as a background) ─────────────── */
  --navy-text: #F8FAFC;          /* → --color-problem-ink */
  --navy-muted: #A5AFD3;         /* → --color-problem-muted */
  --navy-line: #1A2246;          /* → --color-problem-border */
  --navy-chip: #0F1738;          /* → --color-problem-chip */

  /* ── Signal red: names the problem, on navy only ─────────── */
  --signal-red: #FF3F31;         /* → --color-problem-eyebrow */

  /* ── Functional colour (states, never decoration) ────────── */
  --ok: #2F8C5E;        --ok-bg: #DFF5E9;        /* done, accepted, included */
  --warn: #DF5E12;      --warn-bg: #FFF2CF;      /* waiting, due */
  --stop: #D63F4D;      --stop-bg: #FDE9ED;      /* rejected, overdue */
  --info: #0B5AD9;      --info-bg: #EAF0FF;      /* new, in progress */
  --idle: #4B5F8F;      --idle-bg: #EEF2F8;      /* open, neutral */

  /* ── Chart series, in this order ─────────────────────────── */
  --chart-1: #0B5AD9;
  --chart-2: #060C2A;
  --chart-3: #6D9CE8;
  --chart-4: #B6CDF4;
  --chart-5: #9AA2AE;

  /* ── Type ────────────────────────────────────────────────── */
  --font-brand: 'Sohne', 'Söhne', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-fallback: Inter, 'Segoe UI', Helvetica, Arial, sans-serif;   /* Office, email, anywhere Söhne is not installed */
  --font-product: Inter, ui-sans-serif, system-ui, sans-serif;       /* inside product screens only */

  --weight-text: 400;
  --weight-head: 500;            /* every headline */
  --weight-label: 600;           /* eyebrows, table heads, strong */

  --text-display: clamp(2.875rem, 4vw, 4.625rem);   /* page H1, line height 1.14 */
  --text-title: clamp(1.875rem, 2.65vw, 3.0625rem); /* section H2, line height 1.08 */
  --text-heading: clamp(1.125rem, 1.25vw, 1.4375rem); /* H3, card and column titles, line height 1.2 */
  --text-lead: 1.25rem;          /* line height 1.55 */
  --text-body-l: 1.125rem;       /* section intro, line height 1.55 */
  --text-body: 1rem;             /* line height 1.5 */
  --text-small: 0.875rem;        /* line height 1.45 */
  --text-eyebrow: 0.8125rem;     /* 600, uppercase, tracking 0.12em */
  --tracking-display: -0.015em;  /* headlines of 30px and above */
  --tracking-eyebrow: 0.12em;

  /* ── Space (4px base) ────────────────────────────────────── */
  --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-section: clamp(4rem, 6vw, 5.75rem);
  --space-section-tight: clamp(3rem, 4.5vw, 4rem);
  --container: 80rem;
  --measure: 38rem;              /* longest comfortable line of running text */

  /* ── Shape ───────────────────────────────────────────────── */
  --radius-action: 0.5625rem;    /* 9px: every button and input */
  --radius-card: 0.875rem;       /* 14px: cards, quote cards, images */
  --radius-panel: 1.125rem;      /* 18px: large panels */
  --radius-screen: 0.75rem;      /* 12px: product screens */
  --radius-round: 9999px;        /* avatars and icon bubbles only */

  /* ── Shadow ──────────────────────────────────────────────── */
  --shadow-shell: 0 1px 3px rgb(6 12 42 / 0.08);
  --shadow-card: 0 0 0 4px var(--line-soft), 0 10px 24px rgb(6 12 42 / 0.04);
  --shadow-screen: 0 0 0 1px rgb(19 39 90 / 0.08), 0 2px 6px rgb(19 39 90 / 0.08), 0 12px 28px rgb(19 39 90 / 0.14);
}
