/* Tempo design tokens — the only place where colors, type and shape are defined.
   Values follow the TEMPO brand deck (palette: slide 7, type: slide 8); see design/DESIGN_SPEC.md. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/InterVariable.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* Surfaces (neutral greys, brand palette) */
  --bg: #0B0B0D;
  --surface: #141417;
  --surface-2: #1A1A1F;
  --surface-3: #2A2A31;
  --border: #24242B;
  --border-strong: #3F3F48;

  /* Text */
  --text: #F7F7F8;
  --text-muted: #A3A3AC;
  --text-dim: #6B6B73;

  /* Brand accent: Naranja Tempo */
  --accent: #FF551E;
  --accent-hover: #FF7747;
  --accent-pressed: #E8471A;
  --accent-tint: #FFF0EB;
  --accent-text: #FF551E;
  --on-accent: #0B0B0D;
  --on-accent-strong: #FFFFFF;
  --qr-paper: #FFFFFF; /* a payment QR is read on white in both themes (QR standard) */
  --accent-soft: rgba(255, 85, 30, 0.14);
  --accent-ring: rgba(255, 85, 30, 0.45);

  /* Chips */
  --chip-active-bg: #F1F2F4;
  --chip-active-fg: #0B0B0D;

  /* Status: green only means success / ready, blue only informative */
  --info: #2563EB;
  --info-soft: rgba(37, 99, 235, 0.16);
  --info-text: #7DA2F5;
  --ok: #00C896;
  --ok-text: #00C896;
  --ok-soft: rgba(0, 200, 150, 0.14);
  --warn: #F79009;
  --warn-soft: rgba(247, 144, 9, 0.14);
  --warn-text: #F79009;
  --danger: #F04438;
  --danger-soft: rgba(240, 68, 56, 0.14);
  --danger-text: #F97066;

  /* State of a table or an order: the whole card takes the color (background, border, header). One scheme for the register,
     the waiters, the kitchen and the diner's phone; names in shared/table-state.js. Text on -bg is --text (AA); -fg is the
     label and the icon. Orange only for "en cocina" (the guide's "en preparación"). */
  --st-free-bg: #141417;
  --st-free-head: #1A1A1F;
  --st-free-border: #24242B;
  --st-free-fg: #A3A3AC;
  --st-occupied-bg: #131C33;
  --st-occupied-head: #1A2747;
  --st-occupied-border: #2E4C8F;
  --st-occupied-fg: #9DBBFA;
  --st-kitchen-bg: #2B1A12;
  --st-kitchen-head: #3D2317;
  --st-kitchen-border: #8A3A1C;
  --st-kitchen-fg: #FF9A73;
  --st-ready-bg: #0E2620;
  --st-ready-head: #12352C;
  --st-ready-border: #0F7A5E;
  --st-ready-fg: #3EDDB4;
  --st-served-bg: #1E1A33;
  --st-served-head: #292347;
  --st-served-border: #5B4BB0;
  --st-served-fg: #B9ACFA;
  --st-bill-bg: #0F2530;
  --st-bill-head: #143342;
  --st-bill-border: #1F7A99;
  --st-bill-fg: #67D3F5;
  --st-late-bg: #33161A;
  --st-late-head: #471D22;
  --st-late-border: #B3382F;
  --st-late-fg: #FF9C94;
  /* A product that already left the kitchen: its check, and how much the row fades */
  /* A co-branded lockup is drawn for a dark background: on the light theme it sits on a dark plate */
  --brand-plate: transparent;
  --out-check: #00C896;
  --out-check-ink: #0B0B0D;
  --out-opacity: 0.5;
  --dur-state: 320ms;

  /* Selection and keyboard focus of a card: one ring, drawn inside the card (base.css .sel), so no scroll box clips it.
     Selected: the accent, thick. Focus: the text color, thin, so it never reads as "selected" or as a state. */
  --ring-w: 3px;
  --ring-select: #FF551E;
  --focus-w: 2px;
  --focus: #F7F7F8;

  /* Cash count (Cierre Z): balanced, over and short */
  --count-ok-text: #00C896;
  --count-ok-soft: rgba(0, 200, 150, 0.14);
  --count-over-text: #7DA2F5;
  --count-over-soft: rgba(37, 99, 235, 0.16);
  --count-short-text: #F97066;
  --count-short-soft: rgba(240, 68, 56, 0.14);

  /* Effects */
  --scrim: rgba(5, 5, 7, 0.72);
  --nav-glass: rgba(11, 11, 13, 0.86);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-card: none;
  --shadow-sheet: 0 -12px 40px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 8px 28px rgba(255, 85, 30, 0.3);
  --glow: radial-gradient(60% 50% at 50% 0%, rgba(255, 85, 30, 0.16), transparent 70%);
  --tile: linear-gradient(145deg, #222228, #16161A);
  --featured-veil: linear-gradient(90deg, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0.55) 55%, rgba(11, 11, 13, 0.1) 100%);
  --featured-line: rgba(245, 243, 239, 0.5);
  --on-accent-veil: rgba(255, 255, 255, 0.2);
  --featured-art: radial-gradient(80% 90% at 85% 50%, rgba(255, 85, 30, 0.38), rgba(255, 85, 30, 0) 70%), linear-gradient(145deg, #241A16, #141417);

  /* Landing (brand manual) */
  --text-warm: #F5F3EF;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.10);
  --surface-glass: rgba(20, 20, 23, 0.62);
  --phone-frame: #050506;
  --wave-on-accent: rgba(255, 255, 255, 0.32);
  --ink-on-accent: rgba(11, 11, 13, 0.78);

  /* Type: Inter for all product UI; Space Grotesk only for marketing */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --type-h1: 700 3rem/3.5rem var(--font-body);          /* Display / H1 48/56 */
  --type-h2: 600 2rem/2.5rem var(--font-body);          /* H2 32/40 */
  --type-title: 600 1.75rem/2.125rem var(--font-body);  /* H2 on mobile 28/34 */
  --type-h3: 600 1.25rem/1.75rem var(--font-body);      /* H3 on mobile 20/28 */
  --type-subtitle: 600 1rem/1.375rem var(--font-body);  /* 16/22 */
  --type-body: 400 1rem/1.5rem var(--font-body);        /* Body 16/24 */
  --type-small: 400 0.875rem/1.25rem var(--font-body);  /* 14/20 */
  --type-caption: 500 0.75rem/1rem var(--font-body);    /* Caption 12/16 */
  --type-button: 700 1.1875rem/1.2 var(--font-body);    /* 19px bold = large text for AA on orange */

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

  /* Shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;
  --tap: 44px;
  --gutter: 16px;
  --gutter-app: 20px;
  --tabbar-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 220ms;
}

/* Light theme (slides 3, 10, 11). The theme is chosen, not guessed from the system: js/theme.js sets data-theme on <html>
   before the first paint (register and waiters: dark unless the local or the device says otherwise; the diner's phone: as its
   system unless the local asks for one). Landing and kitchen have no light theme: they stay dark whatever data-theme says. */
:root[data-theme="light"] body.mesa, :root[data-theme="light"] body.caja, :root[data-theme="light"] body.activacion, :root[data-theme="light"] body.mozo {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #F7F7F8;
  --surface-2: #F1F2F4;
  --surface-3: #E5E6EA;
  --border: #ECECEF;
  --border-strong: #C4C4CC;
  --text: #0B0B0D;
  --text-muted: #5F5F68;
  --text-dim: #85858E;
  --accent-text: #C2410C;
  --accent-soft: rgba(255, 85, 30, 0.12);
  --chip-active-bg: #0B0B0D;
  --chip-active-fg: #FFFFFF;
  --info-text: #1D4ED8;
  --ok: #0E9F77;
  --ok-text: #056B50;
  --warn-text: #B54708;
  --danger-text: #B42318;
  --st-free-bg: #F7F7F8;
  --st-free-head: #F1F2F4;
  --st-free-border: #ECECEF;
  --st-free-fg: #5F5F68;
  --st-occupied-bg: #EAF0FF;
  --st-occupied-head: #DCE6FF;
  --st-occupied-border: #9DB5F2;
  --st-occupied-fg: #1D4ED8;
  --st-kitchen-bg: #FFF0EB;
  --st-kitchen-head: #FFE2D8;
  --st-kitchen-border: #F5A58A;
  --st-kitchen-fg: #A83A0B;
  --st-ready-bg: #E4F7F1;
  --st-ready-head: #D0F0E6;
  --st-ready-border: #7FD1BB;
  --st-ready-fg: #056B50;
  --st-served-bg: #F0ECFF;
  --st-served-head: #E4DDFF;
  --st-served-border: #B5A8EE;
  --st-served-fg: #5B3FC4;
  --st-bill-bg: #E3F4FA;
  --st-bill-head: #D0ECF6;
  --st-bill-border: #86C7DE;
  --st-bill-fg: #0B6382;
  --st-late-bg: #FEECEB;
  --st-late-head: #FDDDDA;
  --st-late-border: #F0A39C;
  --st-late-fg: #B42318;
  --brand-plate: #0B0B0D;
  --focus: #0B0B0D;
  --ring-select: #E8471A; /* the brand's "pressed" orange: 3:1 on every light card */
  --out-check: #0A7F5E;
  --out-check-ink: #FFFFFF;
  --count-ok-text: #067A5B;
  --count-ok-soft: #E4F7F1;
  --count-over-text: #1D4ED8;
  --count-over-soft: #E7EDFF;
  --count-short-text: #B42318;
  --count-short-soft: #FEECEB;
  --scrim: rgba(11, 11, 13, 0.4);
  --nav-glass: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 64px rgba(11, 11, 13, 0.18);
  --shadow-card: 0 1px 2px rgba(11, 11, 13, 0.04), 0 4px 16px rgba(11, 11, 13, 0.06);
  --shadow-sheet: 0 -12px 40px rgba(11, 11, 13, 0.12);
  --glow: radial-gradient(60% 50% at 50% 0%, rgba(255, 85, 30, 0.10), transparent 70%);
  --tile: linear-gradient(145deg, #F4F4F6, #E9E9ED);
  --featured-veil: linear-gradient(90deg, rgba(11, 11, 13, 0.88) 0%, rgba(11, 11, 13, 0.5) 55%, rgba(11, 11, 13, 0.05) 100%);
  --featured-art: radial-gradient(80% 90% at 85% 50%, rgba(255, 85, 30, 0.5), rgba(255, 85, 30, 0) 70%), linear-gradient(145deg, #2A1D17, #17171A);
  /* Liquid Glass (css/glass.css): softer shadows on a light background */
  --lg-shade: rgba(11, 11, 13, 0.42);
}
