/* ==========================================================================
   assets/css/tokens.css - DESIGN TOKENS: every colour, size, spacing and shadow the site uses, in one place.
   Change a value here and every page updates. Pages and components.css use these names; never hard-code a colour in a page.
   SAFE TO CHANGE: values (keep enough contrast). DON'T CHANGE: the --names, components.css depends on them.
   ========================================================================== */
:root{
  /* ---- Neutrals: violet-tinted charcoal (hue ~285), brighter, with a clear elevation scale ----
     Sections read as panels by LIGHTNESS, not borders (Linear "luminance stacking", Material dark overlays, Primer bgColor tiers).
     page  <  section (noticeably lifted)  <  raised (card/inset inside a section)  <  hover.  Never white. */
  --surface-page:#14121b;        /* page ground */
  --surface-section:#27223a;     /* section panels: clearly lifted off the page */
  --surface-raised:#332c4b;      /* a card, row or group INSIDE a section */
  --surface-hover:#3b3456;       /* hover/pressed on raised rows. Purple TEXT here = purple-300 (5.82); purple-400 is only 4.10 */
  --surface-inset:#18151f;       /* recessed: inputs, code, the floor plan canvas */
  --color-bg:var(--surface-page);
  --color-surface-0:var(--surface-inset);    /* legacy names kept so every existing rule follows the new scale */
  --color-surface-1:var(--surface-section);
  --color-surface-2:var(--surface-raised);
  --color-surface-3:var(--surface-hover);
  --color-line:#3a3452;          /* dividers INSIDE lists and tables (decorative) */
  --color-line-strong:#4a4366;   /* table heads, dialog edge */
  --color-text:#f1effa;          /* body text: 16.31 page / 13.42 section / 11.52 raised / 10.19 hover */
  --color-text-muted:#b4afc8;    /* secondary text: 8.75 page / 7.20 section / 6.18 raised / 5.47 hover */
  --color-text-faint:#77718f;    /* decorative / disabled only, never essential text */
  --color-control:#938cad;       /* input, stepper, chip borders: 5.54 inset / 4.79 section / 4.12 raised / 3.64 hover */
  --color-ghost-border:#655d84;  /* ghost button border (label carries meaning) */
  --color-header:rgba(20,18,27,.78);

  /* ---- Purple scale (OKLCH hue 292) ---- */
  --purple-50:#f5f4ff; --purple-200:#d4cdfc; --purple-300:#bcadfe;
  --purple-400:#a287fe; --purple-500:#885cf3; --purple-600:#7141d7; --purple-700:#5d32b3;
  --purple-800:#452786;

  /* ---- Semantic colour roles ---- */
  --color-accent:var(--purple-600);          /* primary button fill, brand marks */
  --color-accent-hover:var(--purple-700);    /* primary hover / pressed; white text 8.16:1 */
  --color-accent-text:var(--purple-400);     /* purple TEXT on dark grounds (6.78:1 on bg) */
  --color-accent-text-soft:var(--purple-300);/* small purple labels on tinted tiles (7.5:1) */
  --color-accent-tint:rgba(113,65,215,.14);  /* selected chip, step-number disc, accent badge ground */
  --color-on-accent:#ffffff;
  --color-focus:var(--purple-500);           /* focus ring: 4.44:1 on bg, 3.40:1 on surface-3 */
  --color-link:var(--purple-400);
  --color-link-hover:var(--purple-200);
  --color-link-visited:var(--purple-300);
  --btn-gradient:linear-gradient(180deg,#7748dc,#6a3bcf); /* white text 5.61 top / 6.69 bottom */

  /* ---- Status colours (dark ground; text on its own tint, all ≥7:1) ---- */
  --color-warn:#ebc070; --color-warn-edge:#e2b04a;
  --color-danger:#f4a39b;  --color-danger-tint:rgba(240,113,103,.13); --color-danger-edge:#e0786d;
  --color-success:#8fd6a8;
  --color-info:#b7c4f5;
  --color-neutral:#d6d3e3; --color-neutral-tint:var(--color-surface-3); /* Locked badge: neutral, never red */
  /* Microfibre cloth swatches. Cloth colours (hex locked): BLACK = toilets and
     urinals only, PURPLE = desks, counters, sinks, touch points, BLUE = glass and mirrors. The swatch is aria-hidden and always sits next to
     the colour word and rule, so the word carries the meaning (the swatch is supplementary, not required to meet 3:1).
     purple = the accent #7141d7 (3.04 page / 2.50 section / 2.15 raised; the 22% light inner ring lifts its edge on the lighter tiers).
     black #111111 ALWAYS carries its 1px #d4d4d8 edge (--cloth-black-edge), so it shows on dark sections. blue unchanged. */
  --cloth-black:#111111; --cloth-black-edge:#d4d4d8; --cloth-purple:#7141d7; --cloth-blue:#4a8fe7;

  /* ---- Type ---- */
  --font-display:"Inter Tight",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  /* fluid scale: min at 360px, max at 1440px */
  --text-xs:clamp(.75rem,.73rem + .1vw,.8125rem);     /* 12–13px  labels, eyebrows */
  --text-s:clamp(.875rem,.85rem + .12vw,.9375rem);    /* 14–15px  secondary, buttons */
  --text-b:clamp(1rem,.96rem + .2vw,1.125rem);        /* 16–18px  body */
  --text-l:clamp(1.125rem,1.05rem + .4vw,1.375rem);   /* 18–22px  lead, h4 */
  --text-xl:clamp(1.5rem,1.2rem + 1.4vw,2.25rem);     /* 24–36px  h3 */
  --text-2xl:clamp(2rem,1.4rem + 2.8vw,3.5rem);       /* 32–56px  h2 */
  --text-3xl:clamp(2.75rem,1.5rem + 5.6vw,6.25rem);   /* 44–100px h1 */
  --text-num:clamp(3rem,1.8rem + 5vw,6rem);           /* 48–96px  big prices */
  --weight-body:400; --weight-medium:500; --weight-semibold:600; --weight-heading:650; --weight-display:680;
  --leading-body:1.6; --leading-tight:1.05; --leading-snug:1.25;
  --tracking-h1:-.035em; --tracking-h2:-.025em; --tracking-h3:-.015em; --tracking-label:.14em;
  --measure:66ch;                /* max line length for running text */

  /* ---- Space (8pt) ---- */
  --space-1:.5rem; --space-2:1rem; --space-3:1.5rem; --space-4:2rem;
  --space-5:3rem;  --space-6:4rem; --space-7:6rem;   --space-8:8rem;
  --max:1280px;
  --gutter:clamp(1rem,.5rem + 2.4vw,2.5rem);   /* 16px at 360 → 40px at 1440 */
  --header-h:72px; --header-h-mobile:64px;
  --tap:44px;                                   /* minimum tap target */
  --control-h:48px;                             /* buttons + inputs */
  
  /* ---- Radius ---- */
  --radius:8px;        /* buttons, inputs, chips, badges */
  --radius-card:14px;  /* cards, panels, dialogs, photos */
  --radius-pill:999px; /* NEW pill, progress bars, step discs */

  /* ---- Elevation: 3 levels only ---- */
  /* Section panels and cards are borderless; tier = surface colour. Only a hairline of light on the top edge */
  --elevation-section:inset 0 1px 0 rgba(188,173,254,.10);   /* faint purple top highlight instead of a border */
  --elevation-raised:inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(5,3,12,.45),0 10px 24px -14px rgba(6,3,16,.6);
  /* SIGNATURE: only the hero price card, the quote estimate card */
  --elevation-signature:inset 0 1px 0 rgba(255,255,255,.10),0 0 0 1px rgba(5,3,12,.55),0 1px 1px rgba(5,3,12,.60),0 3px 6px -1px rgba(5,3,12,.55),0 24px 48px -12px rgba(4,2,12,.8),0 64px 120px -28px rgba(6,3,18,.9);
  --elevation-overlay:0 20px 60px -10px rgba(4,2,12,.85),0 0 0 1px var(--color-line-strong); /* dialogs, toasts, menus */
  --btn-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 0 1px rgba(90,50,180,.9),0 6px 16px -8px rgba(113,65,215,.55);

  /* ---- Glass (signature cards only) ---- */
  --glass-fallback:#1e1b29;      /* prefers-reduced-transparency / no backdrop-filter */
  --glass-blur:blur(16px) saturate(140%);

  /* ---- Glow hint (one per site: behind the hero price card, hidden <900px) ---- */
  --glow-hint:radial-gradient(closest-side,rgba(130,82,240,.30),rgba(113,65,215,.11) 45%,rgba(113,65,215,.035) 72%,rgba(113,65,215,0) 100%);
  --glow-w:820px; --glow-h:680px;

  /* ---- Grain ---- */
  --grain-opacity:.035;
  --grain:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  /* ---- Motion ---- */
  --dur-fast:150ms; --dur-base:250ms;
  --ease-standard:cubic-bezier(.2,0,0,1);
  /* Pointer glow (laser-v3.min.js has its own built-in timing) */
  --glow-spot-radius:88px;   /* pointer spotlight */
  --glow-spot-base:var(--purple-700);
}
