:root{
  /* Core brand */
  --kc-chilli:#AC070F;  --kc-rampe:#0F4A3A;  --kc-pepper:#1E1D20;
  --kc-cream:#F1F0EC;   --kc-turmeric:#EEB71F; --kc-white:#FDFDFD;
  /* Brand scales (guideline page 13) */
  --red-50:#FDCED0; --red-100:#FB9DA2; --red-200:#F85D65; --red-300:#F62C36; --red-400:#E60914;
  --red-500:#AC070F; --red-600:#93060D; --red-700:#7B050B; --red-800:#620409; --red-900:#310204;
  --green-50:#EEFBF5; --green-100:#D6F5E5; --green-200:#B0EACF; --green-300:#7CD9B3; --green-400:#46C193;
  --green-500:#23A67A; --green-600:#158662; --green-700:#116B51; --green-800:#105541; --green-900:#0F4A3A;
  --gray-50:#F7F7F7; --gray-100:#EDEDED; --gray-200:#E0E0E0; --gray-300:#C8C8C8; --gray-400:#ADADAD;
  --gray-500:#999999; --gray-600:#888888; --gray-700:#7B7B7B; --gray-800:#545454; --gray-900:#363636;
  --yellow-50:#FEFCF6; --yellow-100:#FCF4DE; --yellow-200:#F9E5AE; --yellow-300:#F5D67F; --yellow-400:#F2C750;
  --yellow-500:#EEB71F; --yellow-600:#E8AF12; --yellow-700:#CC9A0F; --yellow-800:#9C760C; --yellow-900:#6D5208;
}
/* KC POS design tokens. The only place colours, type, radius, spacing and motion are defined.
   Brand source: Kottu Corner brand kit (Red #AC070F, Green #0F4A3A, Yellow #EEB71F, Off-white #F1F0EC, Black #1E1D20).
   Style: warm monochrome with one brand accent. Red is reserved for the single money action on a screen. */

@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-grotesque-variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  /* Type */
  --font-ui: "DM Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 26px; --fs-3xl: 34px; --fs-4xl: 44px;

  /* Shape and space */
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
  --tap: 48px;           /* minimum touch target */
  --tap-sm: 44px;        /* compact controls inside the bill */
  --bar-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms; --t-med: 220ms; --t-slow: 360ms;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #FBFBFA;
  --surface-3: #F1F0EC;
  --line: #EAEAEA;
  --line-strong: #D6D4CF;
  --text: #1E1D20;
  --text-2: #6B6A66;           /* 5.0:1 on --bg, 5.4:1 on --surface */
  --primary: #1E1D20;
  --primary-hover: #34333A;
  --on-primary: #FFFFFF;
  --accent: #AC070F;           /* KC red: Pay and Complete only */
  --accent-hover: #8E050C;
  --on-accent: #FFFFFF;        /* 7.4:1 */
  --brand-green: #0F4A3A;
  --red-bg: #FDEBEC;    --red-fg: #9F2F2D;
  --green-bg: #EDF3EC;  --green-fg: #346538;
  --yellow-bg: #FBF3DB; --yellow-fg: #7A5200;
  --blue-bg: #E1F3FE;   --blue-fg: #1F6C9F;
  --focus: #1F6C9F;
  --hover-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --sheet-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --scrim: rgba(30, 29, 32, 0.32);
  --logo-filter: none;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161517;
  --surface: #1E1D20;
  --surface-2: #232225;
  --surface-3: #2A292D;
  --line: #2F2D32;
  --line-strong: #3D3B41;
  --text: #F1F0EC;
  --text-2: #A8A59F;           /* 7.2:1 on --bg */
  --primary: #F1F0EC;
  --primary-hover: #DEDCD6;
  --on-primary: #161517;
  --accent: #C8141D;
  --accent-hover: #DA2A33;
  --on-accent: #FFFFFF;        /* 5.6:1 */
  --brand-green: #7FC9A8;
  --red-bg: #3A1A1B;    --red-fg: #F4A6A3;
  --green-bg: #1B2B1F;  --green-fg: #9CCB9F;
  --yellow-bg: #332A10; --yellow-fg: #E8C267;
  --blue-bg: #13273A;   --blue-fg: #8CC8EE;
  --focus: #8CC8EE;
  --hover-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  --sheet-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.35);
  --scrim: rgba(0, 0, 0, 0.5);
  --logo-filter: brightness(1.55) saturate(0.9);
}

:root{--border:var(--line);--ink:var(--text);--muted:var(--text-2);--success:var(--brand-green);--success-bg:var(--green-bg);--warning-text:var(--yellow-fg);--warning-bg:var(--yellow-bg);--danger:var(--red-fg);--danger-bg:var(--red-bg)}
