/* GENERATED from ai-work/brand/tokens.css by brand/sync.mjs. Do not edit here. */
/*
 * Web IT Solutions brand tokens: THE single source for colors, fonts and shapes in every app.
 * Rules: ../policies/brand.md. Do not edit the copies inside apps; edit this file, then run
 * `node brand/sync.mjs` from the ai-work root (it copies this file into each app and checks for drift).
 * Values come from the Image Library Saver landing page (image-library-saver/site/styles.css and
 * site/assets/system.css), the first product, as recorded in policies/brand.md on 2026-11-04.
 */
:root {
  color-scheme: light dark;

  /* Brand: ONE fixed indigo for logos and brand marks, the same in light and dark mode (D-15 crm-sheet-sync;
     WCAG 1.4.11 asks 3:1 for graphics: #3b5bdb is 3.25:1 on the dark background). Never redefined in dark mode. */
  --brand: #3b5bdb;
  --brand-ink: #ffffff;   /* marks drawn on --brand */

  /* Colors: light mode */
  --bg: #fbfaf7;          /* page background (warm off-white) */
  --band: #f3f1ea;        /* alternate section background */
  --surface: #ffffff;     /* cards */
  --ink: #181b26;         /* text */
  --muted: #566074;       /* secondary text */
  --line: #e4e1d8;        /* borders */
  --accent: #3b5bdb;      /* UI accent (buttons, links, focus): brand indigo in light mode, a lighter indigo in dark mode for text contrast */
  --accent-ink: #ffffff;  /* text on accent */
  --accent-soft: #e7ecff; /* tinted backgrounds, hovers */
  --warn: #fff3bf;        /* notices */
  --stop: #c92a2a;        /* errors */
  --highlight: #ffd43b;   /* the yellow in product logos (same in dark mode); since B-02 also the marker behind one key phrase */
  /* B-02 (Valentin, 2026-11-18, "B: add yellow + green"): two supporting hues next to the indigo, for meaning, not
     decoration. Green = a good outcome (synced, in the sheet, paid). Yellow = attention and energy (the marker, a
     highlight, a quick-win icon). Contrast measured with the WCAG formula, tested in brand/tokens.test.mjs. */
  --good: #24773a;        /* green text and icons: 5.33:1 on --bg, 5.18:1 on --good-soft, 4.92:1 on --band */
  --good-soft: #ebfbee;   /* green tinted backgrounds (badges, success notes) */
  --spark: #8f5f00;       /* yellow-family text and icons on light grounds: 5.29:1 on --bg, 5.21:1 on --spark-soft */
  --spark-soft: #fff9db;  /* yellow tinted backgrounds (icon tiles, highlight cards) */

  /* Type: system fonts only, no web fonts (speed, no third-party requests) */
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-size: 1rem;      /* 16px body text = --text-md (was 17px before the Untitled UI scale, 2026-11-11) */
  --line-height: 1.5;     /* 24px on 16px */

  /* Type scale: Untitled UI's sizes, line heights and letter spacing (styles/theme.css in its MIT React kit, commit
     207c26b), with OUR system font (Valentin, 2026-11-11). Rules: ../policies/brand.md "Type". */
  --text-xs: 0.75rem;            --text-xs-lh: 1.125rem;   /* 12/18 */
  --text-sm: 0.875rem;           --text-sm-lh: 1.25rem;    /* 14/20 */
  --text-md: 1rem;               --text-md-lh: 1.5rem;     /* 16/24 */
  --text-lg: 1.125rem;           --text-lg-lh: 1.75rem;    /* 18/28 */
  --text-xl: 1.25rem;            --text-xl-lh: 1.875rem;   /* 20/30 */
  --display-xs: 1.5rem;          --display-xs-lh: 2rem;    /* 24/32 */
  --display-sm: 1.875rem;        --display-sm-lh: 2.375rem;/* 30/38 */
  --display-md: 2.25rem;         --display-md-lh: 2.75rem; /* 36/44 */
  --display-lg: 3rem;            --display-lg-lh: 3.75rem; /* 48/60 */
  --display-xl: 3.75rem;         --display-xl-lh: 4.5rem;  /* 60/72 */
  --display-2xl: 4.5rem;         --display-2xl-lh: 5.625rem;/* 72/90 */
  --display-md-ls: -0.72px; --display-lg-ls: -0.96px; --display-xl-ls: -1.2px; --display-2xl-ls: -1.44px;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;
  --weight-button: 700;   /* every button and call to action (Valentin, 2026-11-19: "for CTAs, make the font weight 600", then "use 700 then"; was 500) */

  /* Shape */
  --radius: 14px;         /* cards */
  --radius-logo: 12px;    /* logos */

  /* Spacing: a 4px base unit, multiples of 8 for layout (Untitled UI grids & spacing, Valentin 2026-11-11;
     rules in ../policies/brand.md "Spacing and grid"). Names follow Untitled UI's numeric primitives: the number
     times 4px. 2px and 6px are only for borders, outlines and tight icon gaps. */
  --space-0-5: 0.125rem;  /*   2px */
  --space-1: 0.25rem;     /*   4px */
  --space-1-5: 0.375rem;  /*   6px */
  --space-2: 0.5rem;      /*   8px */
  --space-3: 0.75rem;     /*  12px */
  --space-4: 1rem;        /*  16px */
  --space-5: 1.25rem;     /*  20px */
  --space-6: 1.5rem;      /*  24px */
  --space-8: 2rem;        /*  32px */
  --space-10: 2.5rem;     /*  40px */
  --space-12: 3rem;       /*  48px */
  --space-16: 4rem;       /*  64px */
  --space-20: 5rem;       /*  80px */
  --space-24: 6rem;       /*  96px */
  /* Space after a heading (Valentin, 2026-11-14: "standard rules for headings using rem ... like 2.5rem after H2, 2rem after
     H3"; rules in ../policies/brand.md "Space after headings"). A heading and its supporting text are one header block:
     --heading-lead-gap sits between them, then --after-hN separates the block from the content it introduces. A card's own
     title is a label inside a component, not a section heading: it uses --card-title-gap. */
  --heading-lead-gap: 1.25rem; /* 20px: heading to its supporting text */
  --after-h1: 3rem;            /* 48px */
  --after-h2: 2.5rem;          /* 40px */
  --after-h3: 2rem;            /* 32px */
  --after-h4: 1.5rem;          /* 24px */
  --card-title-gap: 0.5rem;    /*  8px */

  /* Layout */
  --container-max: 80rem;           /* 1280px content width on desktop */
  --container-pad: 1rem;            /* 16px side padding on mobile; 32px from 768px (below) */
  --gutter: 1rem;                   /* 16px between grid columns on mobile; 32px from 768px */
  --paragraph-max: 45rem;           /* 720px: the longest line of body text */

  /* Color roles: Untitled UI's role names (text-*, bg-*, border-*, fg-* for icons) over OUR colors above. No new hues
     (Valentin, 2026-11-11: "We can keep our colors"). Each role points at one of our colors, so dark mode follows by
     itself. Components use roles; the raw colors above are for defining roles. Rules: ../policies/brand.md. */
  --color-text-primary: var(--ink);            /* headings, body text */
  --color-text-secondary: var(--muted);        /* supporting text */
  --color-text-tertiary: var(--muted);         /* captions, hints */
  --color-text-placeholder: var(--muted);
  --color-text-brand-primary: var(--accent);   /* links, brand-colored text */
  --color-text-error-primary: var(--stop);
  --color-text-primary_on-brand: var(--accent-ink); /* text on an accent background (buttons) */
  --color-bg-primary: var(--bg);               /* the page */
  --color-bg-primary_alt: var(--surface);      /* cards and panels on the page */
  --color-bg-secondary: var(--band);           /* alternate sections */
  --color-bg-brand-primary: var(--accent-soft);/* tinted backgrounds, hovers */
  --color-bg-brand-solid: var(--accent);       /* primary buttons */
  --color-bg-warning-primary: var(--warn);     /* notices */
  --color-border-primary: var(--line);
  --color-border-secondary: var(--line);
  --color-border-brand: var(--accent);         /* focus rings, selected items */
  --color-border-error: var(--stop);
  --color-fg-primary: var(--ink);              /* icons next to text */
  --color-fg-secondary: var(--muted);          /* quieter icons */
  --color-fg-brand-primary: var(--accent);     /* brand icons */
  --color-fg-error-primary: var(--stop);
  --color-fg-white: var(--accent-ink);         /* icons on an accent background */
  /* B-02 roles */
  --color-text-success-primary: var(--good);   /* "synced", "in the sheet 4.7 s later", "paid" */
  --color-bg-success-primary: var(--good-soft);
  --color-fg-success-primary: var(--good);
  --color-border-success: var(--good);
  --color-text-spark-primary: var(--spark);    /* yellow-family label text */
  --color-bg-spark-primary: var(--spark-soft); /* yellow icon tiles, highlight cards */
  --color-fg-spark-primary: var(--spark);      /* yellow icons */
  --color-bg-highlight: var(--highlight);      /* the marker behind one phrase; text on it stays --color-text-on-highlight */
  --color-text-on-highlight: #181b26;          /* dark ink on yellow in both modes: 12.04:1 */
  /* B-02 amended (Valentin, 2026-11-18, "Yellow button"): the MAIN call to action is yellow, the one yellow thing on a
     sales page, so it stands out against the indigo. Secondary buttons and links stay indigo. */
  --color-bg-cta: var(--highlight);            /* #ffd43b, both modes */
  --color-bg-cta-hover: #fcc419;               /* ink on it: 10.66:1 */
  --color-text-on-cta: #181b26;                /* 12.04:1 on #ffd43b */
  --color-border-cta: #b08400;                 /* light mode edge against the off-white page: 3.27:1 on --bg (WCAG 1.4.11) */
  /* The hero ground shared by every site (Valentin, 2026-11-18: "the hero of CRM Sheet Sync and MRR Sync to use the same
     background as the main hub"): the dark ground in BOTH modes, lit from the top centre by the brand indigo. Inside a
     hero that uses it, set the dark-mode colour values (see policies/brand.md "Hero ground"). Values copied from the hub
     (webitsolutions-hub public/styles.css, #top > .hero.ground-inverse, branch brand-colour-b02). */
  --hero-ground: #181b26;   /* measured on the hub preview 2026-11-18: light mode #181b26, dark mode #0b0d12 */
  /* Sunrise (Valentin, 2026-11-19: "it looks better from the bottom to center, apply it to the other websites"): the light
     rises from the hero's bottom edge and has faded out by about the h1. Phones use a wider ellipse (below). */
  --hero-glow: radial-gradient(ellipse 80% 70% at 50% 100%, color-mix(in srgb, #3b5bdb 40%, transparent), transparent 70%);
}

/* Phones: the hero is narrow and its button sits near the bottom, so the desktop ellipse showed as a small patch behind the
   button; wider than the screen, it spans the whole bottom edge (measured on the hub, 2026-11-18). */
@media (max-width: 767px) {
  :root { --hero-glow: radial-gradient(ellipse 120% 80% at 50% 100%, color-mix(in srgb, #3b5bdb 40%, transparent), transparent 70%); }
}

/* Tablet and desktop: Untitled UI's 768px and 1440px frames use 32px gutters and 32px container padding. */
@media (min-width: 768px) {
  :root {
    --container-pad: 2rem;
    --gutter: 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141b;
    --band: #171a23;
    --surface: #1a1d27;
    --ink: #eef0f6;
    --muted: #a3acc0;
    --line: #2a2f3d;
    --accent: #748ffc;
    --accent-ink: #0f1220;
    --accent-soft: #232a4a;
    --warn: #3a3414;
    --stop: #ff8787;
    --good: #69db7c;      /* 10.53:1 on --bg, 7.78:1 on --good-soft */
    --good-soft: #1b3324;
    --spark: #ffd43b;     /* 12.91:1 on --bg, 8.76:1 on --spark-soft */
    --spark-soft: #3a3414;
    --color-border-cta: #ffd43b;
    --hero-ground: #0b0d12;  /* the hub's dark-mode hero, a step darker than the page (#12141b) */  /* no edge needed in dark mode: the yellow is 12.91:1 on --bg */
  }
}

/* Shadows: Untitled UI's scale (Valentin, 2026-11-19: "Use Untitled UI shadows as tokens"). Offsets, blurs, spreads and
   strengths are theirs, from styles/theme.css in github.com/untitleduico/react (MIT), main at bff7606, read 2026-11-19.
   Their colour is black; ours is --shadow-color, black by default, so a dark section can set it to an indigo and get the
   same shapes as a glow (a black shadow doesn't show on a dark page). Each strength is their alpha, as a share of
   --shadow-color. Declared on every element (:where(*), no added specificity) rather than only :root, so a
   --shadow-color set on a section reaches the shadows of the elements inside it. */
:root { --shadow-color: #000; }
:where(*) {
  --shadow-xs: 0 1px 2px color-mix(in srgb, var(--shadow-color) 5%, transparent);
  --shadow-sm: 0 1px 3px color-mix(in srgb, var(--shadow-color) 10%, transparent),
               0 1px 2px -1px color-mix(in srgb, var(--shadow-color) 10%, transparent);
  --shadow-md: 0 4px 6px -1px color-mix(in srgb, var(--shadow-color) 10%, transparent),
               0 2px 4px -2px color-mix(in srgb, var(--shadow-color) 6%, transparent);
  --shadow-lg: 0 12px 16px -4px color-mix(in srgb, var(--shadow-color) 8%, transparent),
               0 4px 6px -2px color-mix(in srgb, var(--shadow-color) 3%, transparent),
               0 2px 2px -1px color-mix(in srgb, var(--shadow-color) 4%, transparent);
  --shadow-xl: 0 20px 24px -4px color-mix(in srgb, var(--shadow-color) 8%, transparent),
               0 8px 8px -4px color-mix(in srgb, var(--shadow-color) 3%, transparent),
               0 3px 3px -1.5px color-mix(in srgb, var(--shadow-color) 4%, transparent);
  --shadow-2xl: 0 24px 48px -12px color-mix(in srgb, var(--shadow-color) 18%, transparent),
                0 4px 4px -2px color-mix(in srgb, var(--shadow-color) 4%, transparent);
  --shadow-3xl: 0 32px 64px -12px color-mix(in srgb, var(--shadow-color) 14%, transparent),
                0 5px 5px -2.5px color-mix(in srgb, var(--shadow-color) 4%, transparent);
}
