/* ==========================================================================
   VTC Store 2.4.0 — design tokens, layer 1: primitives, scales, legacy aliases.
   Loaded on every page after main.css and before motion.css / v2.css.
   The active preset (tokens/preset-<slug>.css) sets the semantic values;
   this file never names a brand colour directly except in the primitive
   palette block. Legacy --vtc-* names are kept as aliases so that every rule
   written for 2.0–2.3.75 resolves to exactly the same value as before.
   See DESIGN.md §2 (tokens) and docs/css-map.md.
   ========================================================================== */

:root{
  /* --- Primitive palette (the only raw colours in the token layer) ------- */
  --p-ink-900:#1a1030;
  --p-purple-800:#33165f;
  --p-purple-600:#512c95;
  --p-purple-100:#efe9fb;
  --p-purple-050:#f3eff8;
  --p-purple-040:#f6f3fa;
  --p-purple-020:#faf8fc;
  --p-purple-on-dark:#ece6f8;
  --p-purple-on-dark-muted:#c6b9e3;
  --p-grey-700:#453a5c;
  --p-grey-500:#756a8a;
  --p-grey-200:#e6dff0;
  --p-amber-500:#f7941d;
  --p-amber-600:#dd7f10;
  --p-amber-050:#fdf1de;
  --p-green-700:#16794a;
  --p-red-700:#b42318;
  --p-wa-500:#25d366;
  --p-wa-700:#128c7e;
  --p-white:#fff;

  /* --- Spacing scale (4px base) ------------------------------------------ */
  --s-1:4px;--s-2:8px;--s-3:12px;--s-4:16px;--s-5:24px;--s-6:32px;--s-7:48px;--s-8:64px;--s-9:96px;

  /* --- Type scale (mobile value; desktop value at ≥1024px below) --------- */
  --t-caption:13px;--t-body:15px;--t-lead:17px;--t-h4:18px;--t-h3:20px;--t-h2:24px;--t-h1:30px;--t-display:36px;
  --lh-body:1.7;--lh-heading:1.3;--lh-tight:1.2;
  /* Riyal sign (U+20C1) optical size relative to the digits beside it (DESIGN §1.3; measured 2.3.72). */
  --t-riyal:1.3em;
  --t-sar:.8em; /* C1-2b: English «SAR» text */
  --fw-body:400;--fw-ui:500;--fw-heading:600;--fw-hero:700;
  --ff-arabic:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;
  --ff-numeric:"IBM Plex Sans","IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;

  /* --- Shape ------------------------------------------------------------- */
  --r-sm:6px;--r-md:10px;--r-lg:16px;--r-pill:999px;

  /* --- Layout ------------------------------------------------------------ */
  --l-container:1240px;--l-gutter:24px;--l-tabbar:60px;

  /* --- Motion ------------------------------------------------------------ */
  --m-fast:150ms;--m-base:220ms;--m-slow:320ms;
  --m-ease:cubic-bezier(.22,1,.36,1);

  /* --- Legacy aliases (2.0–2.3.75 names) -------------------------------- */
  /* Colours: identical values to the v2.css :root they replace. */
  --vtc-ink:var(--c-ink);
  --vtc-navy:var(--c-brand);
  --vtc-blue:var(--c-brand-2);
  --vtc-amber:var(--c-action);
  --vtc-amber-hover:var(--c-action-hover);
  --vtc-paper:var(--c-paper);
  --vtc-white:var(--c-surface);
  --vtc-text:var(--c-text);
  --vtc-muted:var(--c-muted);
  --vtc-line:var(--c-line);
  --vtc-success:var(--c-success);
  --vtc-danger:var(--c-danger);
  --vtc-violet-soft:var(--c-brand-soft);
  --vtc-amber-soft:var(--c-action-soft);
  --vtc-sunk:var(--c-sunk);
  --vtc-tile:var(--c-tile);
  --vtc-wa:var(--c-wa);
  --vtc-on-dark:var(--c-on-dark);
  --vtc-on-dark-muted:var(--c-on-dark-muted);
  --vtc-focus:var(--e-focus);
  --vtc-shadow:var(--e-2);
  --vtc-container:var(--l-container);
  --vtc-tabbar-h:var(--l-tabbar);
  --vtc-ease:var(--m-ease);
  /* Shape: 2.3.55 names that already match the approved scale. */
  --vtc-r-btn:var(--r-md);
  --vtc-r-card:var(--r-lg);
  /* DEPRECATED (kept at their 2.3.x values so nothing moves in Phase A;
     migrated to --r-sm/--r-md/--r-lg when each component is rebuilt in Phase B). */
  --vtc-radius-sm:8px;
  --vtc-radius:12px;
  --vtc-radius-lg:18px;
  --vtc-r-panel:20px;
}

@media (min-width:1024px){
  :root{
    --t-body:16px;--t-lead:18px;--t-h4:20px;--t-h3:24px;--t-h2:30px;--t-h1:38px;--t-display:48px;
    --l-gutter:32px;
  }
}

/* DESIGN.md: --l-container becomes 1280px at ≥1536px when the layout components
   adopt it (Phase B). Not applied in Phase A so --vtc-container stays 1240px. */

@media (prefers-reduced-motion:reduce){
  :root{--m-fast:0ms;--m-base:0ms;--m-slow:0ms}
}
