/* Vestmark design tokens — mirrors the Figma variables (--vm-*) 1:1.
   Anything not defined in Figma (motion, scrim, extra radii) is marked "derived". */
:root {
  /* Surfaces — app and card greys warmed a touch to sit with the warm near-black text
     (client feedback; Figma has ecedef / f3f3f5). Hover shades elsewhere follow the same hue. */
  --vm-surface-app: #edece9;
  --vm-surface-page: #ffffff;
  --vm-surface-card: #f4f3f1;
  /* derived — hover states: grey cards darken a step (like grey buttons, never a shadow);
     rows on white get the button-hover grey at 50%, table rows half that again */
  --vm-surface-card-hover: #ebeae7;
  --vm-hover-soft: rgba(233, 232, 229, 0.5);
  --vm-hover-row: rgba(233, 232, 229, 0.25);
  --vm-surface-inverse: #1a1917;

  /* Text */
  --vm-text-primary: #1a1917;
  --vm-text-secondary: #60636a;
  --vm-text-tertiary: #6f7279;
  --vm-text-on-inverse: #ffffff;
  --vm-text-positive: #13795b;
  --vm-text-positive-on-inverse: #4bb798;
  --vm-text-info: #2647c9;
  --vm-text-warning: #8a5a00;
  --vm-text-danger: #c4320a; /* derived — "Cancel request", "Close my account" */

  /* Accents & tints */
  --vm-accent-primary: #2e5bff;
  --vm-accent-positive: #1f9d6c;
  --vm-tint-amber: #fff2d6;
  --vm-tint-blue: #e3ecff;
  --vm-tint-green: #d6f2e4;
  --vm-tint-violet: #ece8ff; /* derived — "Upcoming" chip */
  --vm-text-violet: #5b3fd0; /* derived */
  --vm-tint-red: #fde6e1;   /* derived */

  /* Borders */
  --vm-border-default: #e4e5e8;
  --vm-border-subtle: #e4e5e8;
  --vm-border-strong: #1a1917;

  /* Radii */
  --vm-radius-xs: 6px;
  --vm-radius-sm: 8px;
  --vm-radius-md: 12px;
  --vm-radius-lg: 16px;
  --vm-radius-xl: 20px;
  --vm-radius-2xl: 24px;

  /* Elevation */
  --vm-shadow-control: 0 1px 3px rgba(26, 23, 18, 0.06);
  --vm-shadow-nav: 0 1px 1.5px rgba(26, 23, 18, 0.06);
  --vm-shadow-pop: 0 2px 4px rgba(26, 23, 18, 0.04), 0 8px 20px -6px rgba(26, 23, 18, 0.1), 0 18px 36px -16px rgba(26, 23, 18, 0.14); /* derived */
  --vm-shadow-drawer: -24px 0 60px -20px rgba(26, 23, 18, 0.25); /* derived */
  /* derived — soft, layered hover lift for white and dark buttons */
  --vm-shadow-hover: 0 1px 2px rgba(26, 23, 18, 0.05), 0 6px 16px -6px rgba(26, 23, 18, 0.16);
  --vm-shadow-hover-dark: 0 1px 2px rgba(26, 25, 23, 0.08), 0 4px 10px -4px rgba(26, 25, 23, 0.16), 0 12px 24px -12px rgba(26, 25, 23, 0.3);
  /* derived — dropdown / popover surface (matches the notifications panel) */
  --vm-shadow-menu: 0 1px 2px rgba(26, 25, 23, 0.04), 0 4px 8px -2px rgba(26, 25, 23, 0.05), 0 10px 20px -6px rgba(26, 25, 23, 0.08);
  --vm-scrim: rgba(26, 25, 23, 0.22); /* derived */

  /* Type */
  --vm-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion (derived) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 480ms;

  /* Layout */
  --sidebar-w: 232px;
  --rail-w: 340px;
  --topbar-h: 64px;
  /* derived — mobile floating tab bar (replaces the menu sheet of Figma 346:2373) */
  --tabbar-h: 64px;
  --tabbar-gap: 12px;
  --tabbar-max: 460px;
}
