/* Brand design tokens.
   Shared by marketing assets (marketing.css) and product screens (ui/_shell/ui.css).
   Link this file first. All URLs are relative, so the _shared folder can be moved as a whole.

   Product accent: put data-product="assure|derma|clinic|hospital|lab|one" on <html>, <body>
   or any wrapper. Everything inside picks up that product's --accent set.
   With no data-product the accent is neutral ink (company-level assets). */

/* ---------- Fonts (SIL Open Font Licence 1.1, see fonts/LICENCE.txt) ---------- */
/* Archivo: display, numerals, wordmark. Variable weight 100-900 and width 62-125. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: block;
  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 { /* latin-ext carries the rupee sign U+20B9 */
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: block;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter: interface and body text. Variable weight 100-900. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: block;
  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";
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: block;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- Colour: the two grounds and their neutrals ---------- */
  --ink: #0E1B2A;            /* dark ground; body text on paper */
  --paper: #F7F4EE;          /* light ground */
  --slate: #5B6776;          /* secondary text on paper or white (5.3:1 on paper) */
  --line: #D9D4C8;           /* rules and borders on paper */
  --white: #FFFFFF;          /* cards */

  --paper-deep: #EFEBE2;     /* a quieter panel on paper */
  --ink-raised: #172839;     /* a panel on ink */
  --ink-line: #2A3D52;       /* rules and borders on ink */
  --on-ink: #F7F4EE;         /* text on ink */
  --on-ink-muted: #9FB0C3;   /* secondary text on ink (7.8:1) */

  /* ---------- Colour: status (never used as a product accent) ---------- */
  --ok: #0E7450;    --ok-tint: #DFF2E8;    --ok-fill: #1E9E6C;
  --warn: #8A5A00;  --warn-tint: #FBEBC8;  --warn-fill: #E0A21A;
  --risk: #B3261E;  --risk-tint: #FBE4E1;  --risk-fill: #D9463B;
  --info: #1F4BC2;  --info-tint: #E3EAFB;  --info-fill: #4D78E6;

  /* ---------- Accent: neutral default for company-level assets ---------- */
  --accent: #0E1B2A;
  --accent-strong: #0E1B2A;      /* text on paper or white */
  --accent-tint: #E9E5DB;        /* pale background */
  --accent-on-ink: #F7F4EE;      /* text and marks on ink */
  --accent-2: var(--accent);     /* second accent; only the "one" product sets a different one */
  --accent-2-strong: var(--accent-strong);
  --accent-2-tint: var(--accent-tint);
  --accent-2-on-ink: var(--accent-on-ink);

  /* ---------- Type ---------- */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display-stretch: 100%;       /* headlines */
  --numeral-stretch: 78%;        /* oversized numerals: narrower, so a rupee amount fits */
  --wordmark-stretch: 108%;      /* the width the wordmark is drawn at */

  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 44px;
  --text-4xl: 60px;
  --text-5xl: 84px;
  --text-numeral: 120px;
  --text-numeral-xl: 200px;

  --leading-tight: 1.04;
  --leading-snug: 1.25;
  --leading-body: 1.5;
  --tracking-display: -0.022em;
  --tracking-numeral: -0.03em;
  --tracking-caps: 0.09em;

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ---------- Radii: small and square-ish, never pill-shaped panels ---------- */
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;          /* status pills and avatars only */

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 2px rgba(14, 27, 42, 0.06);
  --shadow-md: 0 1px 2px rgba(14, 27, 42, 0.06), 0 6px 16px -4px rgba(14, 27, 42, 0.10);
  --shadow-lg: 0 2px 4px rgba(14, 27, 42, 0.06), 0 18px 40px -12px rgba(14, 27, 42, 0.22);
  --shadow-window: 0 2px 6px rgba(14, 27, 42, 0.08), 0 40px 80px -24px rgba(14, 27, 42, 0.38);
  --shadow-window-ink: 0 0 0 1px rgba(247, 244, 238, 0.10), 0 40px 90px -20px rgba(0, 0, 0, 0.65);
}

/* ---------- Per-product accents ----------
   --accent          the brand hex from the brief: fills, bars, large shapes
   --accent-strong   text and icons on paper or white (4.5:1 or better; measured values in README)
   --accent-tint     pale background on paper or white
   --accent-on-ink   text, numerals and marks on ink (7:1 or better) */
[data-product="assure"] {   /* emerald */
  --accent: #12A47A; --accent-strong: #0B7355; --accent-tint: #E0F2EA; --accent-on-ink: #3FD6A6;
}
[data-product="derma"] {    /* clay rose */
  --accent: #C8553D; --accent-strong: #A8412B; --accent-tint: #F9E6DF; --accent-on-ink: #F2917A;
}
[data-product="clinic"] {   /* amber */
  --accent: #E0921A; --accent-strong: #9C5700; --accent-tint: #FBEBCC; --accent-on-ink: #F6B24A;
}
[data-product="hospital"] { /* cobalt */
  --accent: #2456D6; --accent-strong: #1F4BC2; --accent-tint: #E3EAFB; --accent-on-ink: #86A6FF;
}
[data-product="lab"] {      /* violet */
  --accent: #6B4BD8; --accent-strong: #5A3BC6; --accent-tint: #ECE7FB; --accent-on-ink: #AD9BFF;
}
[data-product="one"] {      /* teal, with cobalt as the second accent */
  --accent: #0E8C8C; --accent-strong: #0A6E6E; --accent-tint: #DCF0EE; --accent-on-ink: #45CFC9;
  --accent-2: #2456D6; --accent-2-strong: #1F4BC2; --accent-2-tint: #E3EAFB; --accent-2-on-ink: #86A6FF;
}
[data-product="assure"], [data-product="derma"], [data-product="clinic"],
[data-product="hospital"], [data-product="lab"] {
  --accent-2: var(--accent); --accent-2-strong: var(--accent-strong);
  --accent-2-tint: var(--accent-tint); --accent-2-on-ink: var(--accent-on-ink);
}
