/*
 * Local Genius design tokens: the ONE definition of every --lg-* custom property, shared by
 * the web app, the admin panel and the landing site.
 *
 *   web, admin: `@import` from their src/styles/index.scss (Vite inlines it at build time).
 *   landing:    `<link href="/assets/tokens.css">`; the landing Dockerfile copies this file
 *               into the served site, and the landing dev server serves it from here.
 *
 * Tailwind names for these (bg-lg-brand, shadow-lg-pop, …) live next door in tailwind.ts.
 * Never define --lg-* inside an app: add or change it here so all three stay in step.
 * Plain CSS (no Sass) because the landing site ships it as-is.
 */
:root {
  /* ── Palette ─────────────────────────────────────────────────────────────── */

  /* primary (violet) */
  --lg-primary-50: #f2efff;
  --lg-primary-100: #e5deff;
  --lg-primary-200: #cdbfff;
  --lg-primary-500: #6c4eff;
  --lg-primary-600: #5938e0;
  --lg-primary-700: #4a2ebe;

  /* iris (blue accent) */
  --lg-iris-500: #4c6fff;
  --lg-iris-600: #3a56e6;
  --lg-iris-700: #2e44be;

  /* plum (violet-tinted neutrals) */
  --lg-plum-50: #f7f6fb;
  --lg-plum-100: #f0eef7;
  --lg-plum-200: #e8e4f2;
  --lg-plum-400: #a8a2bd;
  --lg-plum-700: #37324c;
  --lg-plum-800: #261f3d;
  --lg-plum-900: #1b1330;

  /* ── Brand ───────────────────────────────────────────────────────────────── */
  --lg-brand: var(--lg-primary-500);
  --lg-brand-hover: var(--lg-primary-600);
  --lg-brand-press: var(--lg-primary-700);
  --lg-brand-soft: var(--lg-primary-50);
  /* Stronger tint for selected / identity fills that sit on the grey canvas, where brand-soft
     disappears: the sidebar's active tile and the avatars. */
  --lg-brand-tint: var(--lg-primary-100);

  /* ── Surfaces ────────────────────────────────────────────────────────────── */
  /* App-wide page background: a cool near-white (hue 240) that sits with the plum text and
     violet accents; white cards still separate from it. Also the muted surface for menu
     panels, the Reserve selected-business card and info strips. */
  --lg-bg-app: #f7f7fa;
  /* Hovered menu/list row on white (dropdown options, menus). */
  --lg-bg-hover: #f2f2f7;
  --lg-surface: #ffffff;

  /* ── Text ────────────────────────────────────────────────────────────────── */
  --lg-foreground: #16161a; /* cool near-black (hue 240, like the background) */
  --lg-muted-foreground: #6b6b7b; /* hue 240 grey, ~4.9:1 on the background (passes AA) */
  --lg-text-placeholder: #9e9eaa; /* hue 240, lighter than muted */
  --lg-text-disabled: #c9c4da;
  --lg-text-on-brand: #edeafb;

  /* ── Strokes ─────────────────────────────────────────────────────────────── */
  --lg-stroke: #e4e4ec; /* light border: cards, dividers, empty progress (hue 240) */
  --lg-stroke-strong: #d1d1de; /* input border (hue 240) */

  /* ── Status ──────────────────────────────────────────────────────────────── */
  --lg-error: #f0455b;
  --lg-error-bg: #fde7ea;
  --lg-success: #2bb673;
  --lg-success-bg: #e4f7ee;
  --lg-success-strong: #177a4b; /* deep green: text on success-bg (status pill) */
  --lg-info: #4c6fff;
  --lg-info-bg: #eef1ff;
  --lg-warning: #f5a524;
  --lg-warning-bg: #fef3e0;
  --lg-warning-strong: #8a6300; /* deep amber (notification promo glyph) */

  /* ── Accents ─────────────────────────────────────────────────────────────── */
  /* Plans / gold: score rings, plan reminders, the header bell dot, membership pills. */
  --lg-plan: #ffc53d;
  --lg-plan-bg: #fff6dd;
  /* Save/like glyph: the success green, named for intent. Green, not red, because the swipe
     deck pairs it with a red skip (the error red). */
  --lg-heart: var(--lg-success);
  /* Landing discovery-card badge. */
  --lg-badge: var(--lg-iris-500);

  /* ── Overlays ────────────────────────────────────────────────────────────── */
  --lg-scrim: rgba(
    27,
    19,
    48,
    0.45
  ); /* modal/backdrop overlay (plum-900 at alpha) */
  --lg-scrim-strong: rgba(27, 19, 48, 0.6);

  /* ── Dark chrome ─────────────────────────────────────────────────────────── */
  /* The near-black strip the phone's page sheet and tab bar sit on. Its own token, not the
     text colour: it is a surface, and it is darker than --lg-foreground. */
  --lg-chrome: #080809;
  /* Hairline on that dark strip (the tab bar's outline). --lg-stroke and --lg-stroke-strong
     are light-surface greys and would read as a bright white ring here. */
  --lg-chrome-stroke: rgba(255, 255, 255, 0.12);

  /* ── Shadows ─────────────────────────────────────────────────────────────── */
  --lg-shadow-sm: 0 2px 8px -2px rgba(40, 25, 90, 0.12);
  --lg-shadow-md:
    0 12px 24px -16px rgba(40, 25, 90, 0.3), 0 1px 0 rgba(20, 15, 40, 0.02);
  /* Floating dropdowns (select, menus): short, neutral lift + crisp contact edge, so a
     dropdown reads attached to its field. Hue 240 (HSB 240° 62.5% 15.7%), the same cool
     family as --lg-stroke and --lg-bg-app. */
  --lg-shadow-pop:
    0 4px 12px -4px rgba(15, 15, 40, 0.1), 0 1px 2px rgba(15, 15, 40, 0.05);
  /* Dialogs: the same cool, crisp language as --lg-shadow-pop (pair with a 1.5px --lg-stroke
     edge), scaled up for a large surface: a wide soft lift, a mid layer and the contact edge. */
  --lg-shadow-modal:
    0 24px 48px -16px rgba(15, 15, 40, 0.18),
    0 8px 16px -8px rgba(15, 15, 40, 0.08), 0 1px 2px rgba(15, 15, 40, 0.05);
  --lg-shadow-focus: 0 0 0 4px rgba(108, 78, 255, 0.18);
  /* Landing floating action buttons. */
  --lg-action-shadow:
    0 12px 24px -6px rgba(40, 25, 90, 0.34),
    0 4px 9px -3px rgba(40, 25, 90, 0.2);

  /* ── Type ────────────────────────────────────────────────────────────────── */
  --lg-font-sans:
    "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}
