/*
 * Theme "paraph" (Ui:Theme=paraph): Paraph by Merchant Labs. Loaded after erp-core.css and before /_ui/theme.css (Ui:AccentColor still wins).
 * Only overrides custom properties and the few colours erp-core.css writes out (the dark side of the sign-in pages); layout stays erp-core's.
 * Source: DESIGN-LANGUAGE.md and tokens.json (version 2) of merchantlabseu/design: petrol accent, ink text, neutral surfaces with a petrol tint,
 * Inter for text and headings, JetBrains Mono for codes, radius at most 8 px, no gradients. Apricot (brand-2) is not used in the application.
 * Fonts: @fontsource/inter@5.3.0 and @fontsource/jetbrains-mono@5.3.0 (fonts/, SIL OFL 1.1).
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* tokens.json: surface, surface-raised, surface-sunken, fg, fg-muted, border, border-strong */
  --bg: #f7fbfc;
  --surface: #ffffff;
  --surface-2: #eef4f7;
  --fg: #162227;
  --muted: #445258;
  --line: #d9e1e5;
  --line-strong: #7d898e;
  /* accent, accent-subtle, accent-fg, accent-text, accent-hover */
  --brand: #016a80;
  --accent: #016a80;
  --accent-soft: #d9f4fc;
  --on-accent: #fbfeff;
  --accent-text: #04687d;
  --accent-hover: #04586a;
  /* success, warning, danger; the operator is shown in info blue (purple is reserved for AI in the design language) */
  --ok: #016e36;
  --ok-text: #016e36;
  --ok-soft: #e0f7e5;
  --warn: #875401;
  --warn-soft: #feedda;
  --bad: #b62725;
  --bad-soft: #feebe9;
  --on-bad: #ffffff;
  --operator: #0f61a5;
  --operator-soft: #e6f2fe;
  --on-operator: #ffffff;
  --shadow-color: 22 34 39;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-heading: var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 6 px controls, 8 px panels and dialogs; pills stay for counts and switches */
  --radius-sm: 6px;
  --radius: 8px;

  /* the dark side of the sign-in pages: ink instead of erp-core's coal */
  --hero-bg: #162227;
  --hero-fg: #eef5f8;
  --hero-muted: #a6b1b5;
  --hero-chip: #eef4f7;
  --hero-chip-fg: #162227;
  --hero-operator: #04586a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1316;
    --surface: #131c1f;
    --surface-2: #1c262a;
    --fg: #eef5f8;
    --muted: #a6b1b5;
    --line: #293338;
    --line-strong: #616c71;
    --brand: #44aac4;
    --accent: #44aac4;
    --accent-soft: #06343e;
    --on-accent: #031318;
    --accent-text: #4eb3cd;
    --accent-hover: #65bbd3;
    --ok: #62b47a;
    --ok-text: #62b47a;
    --ok-soft: #12321c;
    --warn: #d09448;
    --warn-soft: #3b2506;
    --bad: #f9776b;
    --bad-soft: #411e1b;
    --on-bad: #0c1316;
    --operator: #65a6e7;
    --operator-soft: #132c44;
    --on-operator: #0c1316;
    --shadow-color: 0 0 0;
    --hero-bg: #080d0f;
  }
}

body { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0; }

.split-hero { background: var(--hero-bg); color: var(--hero-fg); }
.split-claim { color: var(--hero-fg); font-weight: 700; }
.split-lead, .split-features { color: var(--hero-fg); }
.split-eyebrow, .split-foot { color: var(--hero-muted); }
.split-erps li { border-radius: 4px; background: var(--hero-chip); color: var(--hero-chip-fg); }
.split-erps li::before { background: var(--hero-muted); }
.auth-operator .split-hero { background: var(--hero-operator); }
