/* FuseLift design tokens for any surface that is not the portal build: the marketing site (www.fuselift.com), a
   public document, a PDF template. Same names and values as web/src/index.css; web/src/lib/brand-tokens.test.ts
   fails when the two drift apart, so edit both together. Documented in docs/UI-CHARTER.md (§2, §13).

   Use it as a plain stylesheet: <link rel="stylesheet" href="/fuselift-tokens.css">. No build step, no script. The
   marketing site's policy (infra/deploy/Caddyfile) allows `style-src 'self'` only, so keep every style in files:
   no <style> element, no style="" attribute.

   The dark values apply when the visitor's system asks for them. A page that wants one fixed theme can drop the
   media block. */

:root {
  color-scheme: light dark;

  /* Surfaces and text */
  --background: #f3f6fb;
  --foreground: #23272c;
  --card: #ffffff;
  --card-foreground: #23272c;
  --muted: #e8edf5;
  --muted-foreground: #586178;
  --surface-sunken: #eef2f9;
  --border: #d8e1f0;

  /* Blue = the action to take; orange = a thing to notice; green = status, never decoration */
  --primary: #2d5bd9;
  --primary-foreground: #ffffff;
  --accent: #dbe6fc;
  --accent-foreground: #1e3f9a;
  --link: #1e3f9a;
  --ring: #2d5bd9;
  --orange: #f59e4b;
  --orange-foreground: #23272c;

  /* States: text on its tint, always with a word and an icon */
  --warn: #8a3f07;
  --attention: #fde6d0;
  --success: #1f6b38;
  --success-tint: #ddf0e2;
  --info: #1e3f9a;
  --info-tint: #dbe6fc;
  --destructive: #9a2f1e;
  --danger-tint: #f5dcd5;
  --online: #2f8f4e;

  /* Deep-blue band (guided panels in the app; the one strong band of a page on the site) */
  --hero: #1e3f9a;
  --hero-foreground: #ffffff;
  --hero-muted: #dce6fc;
  --overline: #5c657d;

  /* Depth */
  --elev-card: 0 1px 2px rgb(20 40 90 / 0.06), 0 8px 24px -12px rgb(20 40 90 / 0.18);
  --elev-raised: 0 12px 32px -14px rgb(30 63 154 / 0.35);

  /* Ink field (D-411): the one gradient of the look, behind a page or screen header; text on it is hero-foreground. */
  --ink: #0c1838;
  --ink-2: #1e3f9a;
  --ink-muted: #cfdaf6;
  --ink-fill: rgb(255 255 255 / 0.13);
  --mint: #5fe0a6;
  --radius-lg: 1.25rem;
  --elev-float: 0 1px 2px rgb(16 32 80 / 0.06), 0 14px 32px -14px rgb(16 32 80 / 0.28);

  /* Shape and type (charter §4 and §5) */
  --radius: 0.75rem;
  --font-sans: "Figtree Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e1322;
    --foreground: #e9edf6;
    --card: #171d2d;
    --card-foreground: #e9edf6;
    --muted: #222a3d;
    --muted-foreground: #9da8bf;
    --surface-sunken: #131929;
    --border: #273049;

    --primary: #8fb0fa;
    --primary-foreground: #0e1322;
    --accent: #1f2a48;
    --accent-foreground: #a9c0f8;
    --link: #a9c0f8;
    --ring: #8fb0fa;
    --orange: #f2a262;
    --orange-foreground: #0e1322;

    --warn: #f5b98a;
    --attention: #4a3220;
    --success: #8bd9a1;
    --success-tint: #1f3a2a;
    --info: #a9c0f8;
    --info-tint: #25304d;
    --destructive: #f2b8a8;
    --danger-tint: #4a2a24;
    --online: #6fcb8a;

    --hero: #2c3c6b;
    --hero-foreground: #f3f6ff;
    --hero-muted: #c4d2f5;
    --overline: #9da8bf;

    --elev-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
    --elev-raised: 0 12px 32px -14px rgb(0 0 0 / 0.7);

    --ink: #121a33;
    --ink-2: #1b2b5e;
    --ink-muted: #aebbe0;
    --ink-fill: rgb(255 255 255 / 0.1);
    --elev-float: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 32px -14px rgb(0 0 0 / 0.7);
  }
}

/* The fonts are self-hosted, never from a font service. Copy the two files from web/node_modules (OFL licence) next
   to this stylesheet:
     @fontsource-variable/figtree/files/figtree-latin-wght-normal.woff2           (about 20 kB)
     @fontsource-variable/jetbrains-mono/files/jetbrains-mono-latin-wght-normal.woff2 */
@font-face {
  font-family: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("./figtree-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("./jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}
