/* ADIB POS design tokens: the ONE source for colours, type, spacing, radii and motion.
   Used by the till screens (exe + browser) and meant to be reused unchanged by the cloud back office,
   so both halves look like one product. Brand: ADIB Marketing (ink, white, signal red used sparingly).
   Fonts are bundled from the `geist` npm package (1.9.2); nothing is fetched at run time.
   Back office copy of till/shared/tokens.css: only the font paths differ (../fonts/). Keep the two in step. */

@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMono-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: block; }

:root {
  /* Brand */
  --brand-ink: #0A0A0A;
  --brand-white: #FFFFFF;
  --brand-red: #E10600;          /* signal red: the main action and alerts only (about a tenth of a screen) */

  /* Surfaces: a calm neutral ground with white panels and one tinted layer */
  --c-canvas: #F3F3F1;           /* app background */
  --c-panel: #FFFFFF;            /* cards, sheets, the basket */
  --c-panel-2: #ECECE9;          /* toolbars, idle tiles, segmented controls */
  --c-panel-3: #E3E3DF;          /* pressed idle tiles */
  --c-ink-panel: #0A0A0A;        /* the one dark surface: the live weight and the top bar */
  --c-line: #E0E0DB;             /* hairlines between rows */
  --c-line-strong: #C9C9C3;      /* input borders */

  /* Text */
  --c-text: #0A0A0A;
  --c-text-2: #52524C;           /* secondary: 7.6:1 on white */
  --c-text-3: #6E6E67;           /* hints: 5.1:1 on white, 4.6:1 on canvas */
  --c-text-on-ink: #FFFFFF;
  --c-text-on-ink-2: #B4B4AE;    /* secondary on ink: 9:1 */

  /* Actions and states (no green anywhere: success is plain ink, problems are red) */
  --c-primary: #E10600;          /* Pay, Complete sale, Sign in: one per screen */
  --c-primary-hover: #C80500;
  --c-primary-press: #A80400;
  --c-on-primary: #FFFFFF;
  --c-strong: #0A0A0A;           /* strong secondary actions: Add, Add weighing */
  --c-strong-hover: #262624;
  --c-on-strong: #FFFFFF;
  --c-alert: #E10600;
  --c-alert-bg: #FDEDEC;
  --c-alert-text: #9E0400;       /* red text on the alert tint: 6.9:1 */
  --c-notice-bg: #F6F1E4;        /* calm notice (draft, typed weight) */
  --c-notice-text: #5E4A12;
  --c-selected: #0A0A0A;         /* selected tile/chip ring and fill */
  --c-disabled-bg: #E6E6E2;
  --c-disabled-text: #8E8E87;
  --c-focus: #0A0A0A;
  --c-selection: rgba(225, 6, 0, 0.16);

  /* Type: one family. Figures use tabular numbers only in number columns and the live weight. */
  --font-sans: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Consolas, monospace;   /* codes and raw scale frames only */
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1.0625rem;   /* 17: body on the till */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: 1.5rem;      /* 24 */
  --fs-2xl: 1.875rem;   /* 30 */
  --fs-3xl: 2.5rem;     /* 40: totals, change due */
  --fs-weight: 6.5rem;  /* 104: the live weight, the largest thing on Sell */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.5;
  --tracking-tight: -0.02em;
  --tracking-display: -0.035em;

  /* Spacing (4 px grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Touch targets */
  --tap: 56px;          /* every till control */
  --tap-lg: 72px;       /* number pads, Pay, Add */
  --tap-gap: 8px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Depth: soft, offset shadows only */
  --shadow-1: 0 1px 2px rgba(10, 10, 10, 0.06), 0 1px 1px rgba(10, 10, 10, 0.03);
  --shadow-2: 0 6px 20px rgba(10, 10, 10, 0.08), 0 2px 6px rgba(10, 10, 10, 0.05);
  --shadow-3: 0 18px 48px rgba(10, 10, 10, 0.18), 0 4px 12px rgba(10, 10, 10, 0.08);

  /* Motion: state changes only */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 260ms;

  /* Layout */
  --topbar-h: 64px;
  --basket-w: 400px;
}

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