/* Design tokens: the single source of every colour, font, size and radius.
   Copy this file as is to review-ui/src/design/tokens.css (see 01-foundations.md).

   Three layers:
   1. Palette: raw colours, named by what they look like. Only the semantic layer below uses them.
   2. Semantic: colours named by the job they do. Components and pages use only these.
   3. Scales: type, radius, spacing and sizes.

   To change the look, change this file and nothing else:
   . a new shade of a colour: edit the palette value
   . a colour doing a different job (say the notice turns green): point the semantic token at another palette colour
   . a new brand: the palette, the highlight, the brand tokens and the display font, all below
   Lead colours chosen 18 Nov 2026: indigo and teal. */

:root {
  /* 1. Palette */
  --palette-white: #FFFFFF;
  --palette-stone-50: #F2F3EF;
  --palette-stone-100: #E4E7E0;
  --palette-stone-200: #D5D9D0;
  --palette-stone-300: #B9BFB4;
  --palette-ink-900: #18222D;
  --palette-ink-700: #4F5965;
  --palette-ink-500: #6B7480;
  --palette-ink-300: #C9CED4;
  --palette-yellow-400: #FFE24A;
  --palette-green-700: #1E6A43;
  --palette-green-100: #E3F1E8;
  --palette-amber-800: #7A4A00;
  --palette-amber-100: #FFF0D6;
  --palette-red-700: #B42318;
  --palette-red-100: #FCEBE8;
  --palette-blue-700: #1F5FC4;
  --palette-blue-100: #E8F0FC;
  --palette-indigo-700: #3B37A8;
  --palette-indigo-100: #ECEBF8;
  --palette-teal-700: #0B6B66;
  --palette-teal-600: #1A8079;
  --palette-teal-100: #E1F1EF;
  --palette-slate-600: #56606B;
  --palette-slate-500: #737D88;
  --palette-slate-100: #ECEEF1;

  /* 2. Semantic colours */
  /* grounds */
  --color-page: var(--palette-stone-50);              /* page background */
  --color-surface: var(--palette-white);              /* cards, panels, top bar, footer, inputs */
  --color-surface-sunken: var(--palette-stone-100);   /* segmented control track, placeholders, map ground */
  --color-overlay: rgba(255, 255, 255, 0.85);         /* small labels laid over the map */
  /* text */
  --color-text: var(--palette-ink-900);
  --color-text-muted: var(--palette-ink-700);         /* secondary text, passes 4.5:1 on surface and page */
  --color-text-placeholder: var(--palette-ink-500);
  --color-text-inverse: var(--palette-white);         /* text on inverse grounds */
  --color-text-inverse-muted: var(--palette-ink-300);
  /* lines */
  --color-border: var(--palette-stone-200);           /* controls, plan cards */
  --color-border-subtle: var(--palette-stone-100);    /* cards, dividers between rows */
  --color-border-hover: var(--palette-stone-300);
  --color-border-strong: var(--palette-ink-900);      /* buttons, the chosen plan */
  /* inverse: the dark ground of primary buttons, selected chips, the offer band */
  --color-inverse: var(--palette-ink-900);
  /* the highlight: site notice yellow. Only for what matters: trial status, exclusivity, offers, new leads */
  --color-highlight: var(--palette-yellow-400);
  --color-text-on-highlight: var(--palette-ink-900);
  --color-highlight-edge: rgba(24, 34, 45, 0.12);     /* hairline inside highlighted shapes */
  /* focus */
  --color-focus: var(--palette-ink-900);
  /* status */
  --color-success: var(--palette-green-700);
  --color-success-bg: var(--palette-green-100);
  --color-warning: var(--palette-amber-800);
  --color-warning-bg: var(--palette-amber-100);
  --color-danger: var(--palette-red-700);
  --color-danger-bg: var(--palette-red-100);
  /* leads: hot is the best, warm the next, cool the rest. They differ in lightness as well as hue.
     -bg is the badge ground, -pin is the map pin (3:1 against the map) */
  --color-lead-hot: var(--palette-indigo-700);
  --color-lead-hot-bg: var(--palette-indigo-100);
  --color-lead-hot-pin: var(--palette-indigo-700);
  --color-lead-warm: var(--palette-teal-700);
  --color-lead-warm-bg: var(--palette-teal-100);
  --color-lead-warm-pin: var(--palette-teal-600);
  --color-lead-cool: var(--palette-slate-600);
  --color-lead-cool-bg: var(--palette-slate-100);
  --color-lead-cool-pin: var(--palette-slate-500);
  /* admin only: where a value came from (used from the admin brief) */
  --color-source-register: var(--palette-slate-600);
  --color-source-register-bg: var(--palette-slate-100);
  --color-source-ai: var(--palette-blue-700);
  --color-source-ai-bg: var(--palette-blue-100);
  --color-source-guess: var(--palette-amber-800);
  --color-source-guess-bg: var(--palette-amber-100);
  --color-source-verified: var(--palette-green-700);
  --color-source-verified-bg: var(--palette-green-100);

  /* brand: changes with the brand, nothing else does */
  --brand-mark-fill: var(--color-highlight);
  --brand-mark-ink: var(--palette-ink-900);

  /* 3. Scales */
  /* fonts: one family; the display style is the same family condensed */
  --font-sans: "Archivo Variable", "Archivo", system-ui, "Segoe UI", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-display-stretch: 72%;
  --font-display-weight: 800;
  --font-display-tracking: -0.005em;

  /* type sizes. Text steps go up by 1.5 px; display steps are for the condensed face */
  --font-size-xs: 12px;     /* badges, tags, the footer disclaimer */
  --font-size-sm: 13.5px;   /* secondary lines, notes, chips */
  --font-size-md: 15px;     /* body */
  --font-size-lg: 16.5px;   /* buttons, inputs (16 px or more stops phones zooming), card titles */
  --font-size-xl: 18px;
  --font-size-2xl: 20px;    /* brand wordmark, small display */
  --font-size-3xl: 22px;    /* section headings, notice titles on phone */
  --font-size-4xl: 26px;    /* notice titles on desktop, larger section headings */
  --font-size-5xl: 34px;    /* project title on phone */
  --font-size-6xl: 40px;    /* page titles on phone */
  --font-size-7xl: 48px;    /* prices, project title on desktop */
  --font-size-8xl: 60px;    /* page titles and prices on desktop */

  /* radius */
  --radius-xs: 3px;         /* paper: the notice, tags */
  --radius-sm: 6px;         /* badges, tabs, segmented buttons */
  --radius-md: 10px;        /* buttons, inputs, chips' cousins */
  --radius-lg: 12px;        /* cards, panels, plan cards */
  --radius-full: 999px;     /* pills, chips, round icons */

  /* spacing: use these steps; where a reference page shows a value between steps, take the nearest */
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;

  /* sizes */
  --control-height: 50px;
  --control-height-sm: 44px;
  --touch-min: 44px;
  --topbar-height: 60px;
  --topbar-height-desktop: 68px;
  --container: 1200px;
  --gutter: 16px;
  --gutter-desktop: 32px;
  --border-control: 1.5px;
  --focus-ring: 3px solid var(--color-focus);
  --focus-offset: 2px;
  --shadow-raised: 0 1px 2px rgba(24, 34, 45, 0.14);
}
