/* ============================================================
   ESCALÁRIO — Design Tokens
   Concept: tech moderno e dinâmico — navy profundo + teal elétrico
   + destaque âmbar/coral para CTAs. Grelhas de turnos, geofencing,
   pulso QR de 7s como motivos visuais recorrentes.
   ============================================================ */

:root, [data-theme='light'] {
  /* Surfaces */
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfe;
  --color-surface-offset: #eef1f7;
  --color-surface-offset-2: #e3e8f0;
  --color-surface-dynamic: #dbe1ea;
  --color-divider: #dfe4ec;
  --color-border: #d3d9e3;

  /* Text */
  --color-text: #0b1224;
  --color-text-muted: #545e73;
  --color-text-faint: #9aa3b5;
  --color-text-inverse: #f7f9fc;

  /* Primary accent — Electric Teal */
  --color-primary: #027a75;
  --color-primary-hover: #01605c;
  --color-primary-active: #014b48;
  --color-primary-highlight: #cdeae7;

  /* CTA accent — Coral/Amber */
  --color-cta: #e8552b;
  --color-cta-hover: #cf431d;
  --color-cta-active: #a83417;
  --color-cta-highlight: #fde3d8;

  --color-success: #2f8f5b;
  --color-success-highlight: #d8ede1;
  --color-warning: #b0790f;
  --color-warning-highlight: #f3e6c9;
  --color-error: #b23b52;
  --color-error-highlight: #f4dde2;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.2 0.02 250 / 0.10);
  --shadow-lg: 0 20px 48px oklch(0.2 0.02 250 / 0.16);
  --shadow-glow: 0 0 0 1px oklch(0.65 0.15 185 / 0.25), 0 8px 32px oklch(0.65 0.15 185 / 0.22);

  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

[data-theme='dark'] {
  --color-bg: #060b17;
  --color-surface: #0b1224;
  --color-surface-2: #0f172c;
  --color-surface-offset: #121b32;
  --color-surface-offset-2: #182238;
  --color-surface-dynamic: #202b45;
  --color-divider: #1c2740;
  --color-border: #263452;

  --color-text: #eaeefb;
  --color-text-muted: #97a3c0;
  --color-text-faint: #5c6785;
  --color-text-inverse: #0b1224;

  --color-primary: #2fe0c8;
  --color-primary-hover: #5aebd6;
  --color-primary-active: #17b39d;
  --color-primary-highlight: #113531;

  --color-cta: #ff7a45;
  --color-cta-hover: #ff936a;
  --color-cta-active: #e2622f;
  --color-cta-highlight: #3a2317;

  --color-success: #4fd489;
  --color-success-highlight: #123526;
  --color-warning: #ecc25a;
  --color-warning-highlight: #3a2f10;
  --color-error: #ef7791;
  --color-error-highlight: #3a1620;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.55);
  --shadow-glow: 0 0 0 1px oklch(0.75 0.15 185 / 0.3), 0 0 40px oklch(0.75 0.15 185 / 0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #060b17;
    --color-surface: #0b1224;
    --color-surface-2: #0f172c;
    --color-surface-offset: #121b32;
    --color-surface-offset-2: #182238;
    --color-surface-dynamic: #202b45;
    --color-divider: #1c2740;
    --color-border: #263452;
    --color-text: #eaeefb;
    --color-text-muted: #97a3c0;
    --color-text-faint: #5c6785;
    --color-text-inverse: #0b1224;
    --color-primary: #2fe0c8;
    --color-primary-hover: #5aebd6;
    --color-primary-active: #17b39d;
    --color-primary-highlight: #113531;
    --color-cta: #ff7a45;
    --color-cta-hover: #ff936a;
    --color-cta-active: #e2622f;
    --color-cta-highlight: #3a2317;
    --color-success: #4fd489;
    --color-success-highlight: #123526;
    --color-warning: #ecc25a;
    --color-warning-highlight: #3a2f10;
    --color-error: #ef7791;
    --color-error-highlight: #3a1620;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
    --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
    --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.55);
    --shadow-glow: 0 0 0 1px oklch(0.75 0.15 185 / 0.3), 0 0 40px oklch(0.75 0.15 185 / 0.25);
  }
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.2rem + 1vw, 1.875rem);
  --text-2xl: clamp(1.875rem, 1.4rem + 2.2vw, 3.25rem);
  --text-3xl: clamp(2.25rem, 1.2rem + 4vw, 4.5rem);
  --text-hero: clamp(2.5rem, 1rem + 5.5vw, 5.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}
