/* =====================================================================
   LEVELPOINT DESIGN TOKENS (v2, Dec 2026)
   One source for color, type, spacing, radius, elevation and motion.
   Loaded after night.css on every page, so the site, the account dashboard and every product
   demo read the same values. New work uses the --lp-* names; the older names further down
   (--carbon, --ink, --panel, ...) are re-pointed here so existing rules follow the new system.

   Direction: graphite product surfaces, quiet hairlines, crisp type, one warm signal color.
   Amber is spent on actions, live status and the logo point. Blue is for data only.
   ===================================================================== */
:root {
  color-scheme: dark;

  /* ---- Surfaces: each step up is a raised layer, never a different hue ---- */
  --lp-bg:        #08090B;   /* page canvas */
  --lp-bg-band:   #0B0C0F;   /* alternate section band */
  --lp-surface-1: #0F1013;   /* cards */
  --lp-surface-2: #15161A;   /* raised cards, inputs, chosen items */
  --lp-surface-3: #1C1D22;   /* hover, pressed, popovers */
  --lp-line:      rgb(255 255 255 / 0.075);
  --lp-line-2:    rgb(255 255 255 / 0.12);
  --lp-line-3:    rgb(255 255 255 / 0.20);
  --lp-highlight: rgb(255 255 255 / 0.06);  /* top inner edge on raised surfaces */

  /* ---- Text ---- */
  --lp-text:   #EDEEF0;
  --lp-text-2: #A3A6AD;
  --lp-text-3: #6E727B;

  /* ---- Signal (brand) ---- */
  --lp-accent:      #F5A524;
  --lp-accent-hi:   #FFC35C;  /* hover, and accent text on dark */
  --lp-accent-ink:  #1A1102;  /* text on an amber fill */
  --lp-accent-soft: rgb(245 165 36 / 0.12);
  --lp-accent-line: rgb(245 165 36 / 0.45);
  --lp-accent-grad: linear-gradient(135deg, #FFD27A 0%, #F5A524 100%);

  /* ---- Data and status (dashboards, charts, demos) ---- */
  --lp-data-1: #F5A524;  /* primary series = brand */
  --lp-data-2: #7AA2FF;  /* comparison series */
  --lp-data-3: #8B8FF7;
  --lp-data-4: #4FD1C5;
  --lp-ok:     #3DD68C;  --lp-ok-soft:   rgb(61 214 140 / 0.12);
  --lp-warn:   #F5A524;  --lp-warn-soft: rgb(245 165 36 / 0.12);
  --lp-bad:    #FF6B6B;  --lp-bad-soft:  rgb(255 107 107 / 0.12);
  --lp-info:   #7AA2FF;  --lp-info-soft: rgb(122 162 255 / 0.12);

  /* ---- Type ---- */
  --lp-font:      "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lp-font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --lp-fs-hero:  clamp(2.75rem, 6.6vw, 5.75rem);  /* page headline */
  --lp-fs-1:     clamp(2.125rem, 4.2vw, 3.5rem);   /* section headline */
  --lp-fs-2:     clamp(1.5rem, 2.4vw, 1.875rem);   /* sub-section */
  --lp-fs-3:     1.1875rem;                        /* card title */
  --lp-fs-lead:  clamp(1.125rem, 1.5vw, 1.3125rem);
  --lp-fs-body:  1rem;
  --lp-fs-sm:    0.875rem;
  --lp-fs-xs:    0.78125rem;
  --lp-track-hero: -0.045em;
  --lp-track-head: -0.032em;
  --lp-track-ui:   -0.011em;

  /* ---- Space (4px grid) ---- */
  --lp-s-1: 4px;  --lp-s-2: 8px;  --lp-s-3: 12px; --lp-s-4: 16px; --lp-s-5: 20px;
  --lp-s-6: 24px; --lp-s-7: 32px; --lp-s-8: 40px; --lp-s-9: 56px; --lp-s-10: 80px;
  --lp-section: clamp(72px, 9vw, 128px);

  /* ---- Radius: small things small, containers larger ---- */
  --lp-r-xs: 6px;   /* pills, tags */
  --lp-r-sm: 8px;   /* buttons, inputs */
  --lp-r-md: 12px;  /* cards inside cards, rows */
  --lp-r-lg: 16px;  /* cards */
  --lp-r-xl: 22px;  /* hero panels, product windows */

  /* ---- Elevation: light from above, a hairline and a soft drop ---- */
  --lp-elev-1: inset 0 1px 0 var(--lp-highlight), 0 1px 2px rgb(0 0 0 / 0.4);
  --lp-elev-2: inset 0 1px 0 var(--lp-highlight), 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  --lp-elev-3: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 2px 4px rgb(0 0 0 / 0.4), 0 32px 80px -24px rgb(0 0 0 / 0.8);
  --lp-ring:   0 0 0 3px rgb(245 165 36 / 0.35);

  /* ---- Motion ---- */
  --lp-ease:     cubic-bezier(0.16, 1, 0.3, 1);    /* settle: entrances, hovers */
  --lp-ease-io:  cubic-bezier(0.65, 0, 0.35, 1);   /* move: things travelling across */
  --lp-ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1); /* small confirmations only */
  --lp-t-1: 120ms;  /* press, color */
  --lp-t-2: 200ms;  /* hover */
  --lp-t-3: 360ms;  /* open, swap */
  --lp-t-4: 700ms;  /* page-load sequence */

  /* ---- Legacy names, re-pointed (styles.css, night.css, home.css, demos) ---- */
  --field: var(--lp-bg); --night: var(--lp-bg); --deep: var(--lp-bg);
  --panel: var(--lp-surface-1); --raised: var(--lp-surface-2);
  --white: var(--lp-surface-1); --paper: var(--lp-surface-2); --night-2: var(--lp-surface-1);
  --line: var(--lp-line); --line-hi: var(--lp-line-2); --rule: var(--lp-line); --night-line: var(--lp-line);
  --ink: var(--lp-text); --muted: var(--lp-text-2); --night-text: var(--lp-text); --night-muted: var(--lp-text-2);
  --carbon: var(--lp-accent); --carbon-deep: var(--lp-accent-hi); --on-accent: var(--lp-accent-ink);
  --glow: rgb(245 165 36 / 0.22);
  --display: var(--lp-font); --body: var(--lp-font); --mono: var(--lp-font-mono);
  --radius: var(--lp-r-lg); --r-1: var(--lp-r-xs); --r-2: var(--lp-r-md); --r-3: var(--lp-r-lg);
  --ease-out: var(--lp-ease); --ease-spring: var(--lp-ease-pop);
  --dur-1: var(--lp-t-1); --dur-2: var(--lp-t-2); --dur-3: var(--lp-t-3);
}
