/* QRBs design tokens. The same values are used by the website and (later) the mobile app.
   Theme: <html data-theme="light|dark">, set by /app/boot.js before the first paint. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* QRBs colour system: built on the logo gradient (signal blue #2f5bff → indigo #5b4dff → violet #9b4dff).
   Light theme: cool porcelain background, deep navy ink. Dark theme: midnight navy (not black). */
:root {
  color-scheme: light;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --qr-blue: #2f5bff;
  --qr-indigo: #5b4dff;
  --qr-violet: #9b4dff;

  --bg: #f5f6fb;
  --bg-soft: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f1f3fa;
  --surface-3: #e7eaf5;
  --elevated: #ffffff;
  --text: #0d1030;
  --text-2: #353a5c;
  --muted: #646b8a;
  --faint: #9aa0bb;
  --line: #e3e6f2;
  --line-strong: #d0d5e8;
  --overlay: rgba(9, 12, 40, 0.48);
  --glass: color-mix(in srgb, #ffffff 78%, transparent);

  --brand: #4152ff;
  --brand-2: #7c4dff;
  --brand-ink: #ffffff;
  --brand-soft: #ecedff;
  --brand-text: #3442e8;
  --gradient: linear-gradient(120deg, #2f5bff 0%, #5b4dff 52%, #9b4dff 100%);
  --gradient-soft: linear-gradient(120deg, rgba(47, 91, 255, 0.1), rgba(155, 77, 255, 0.1));
  --gradient-warm: linear-gradient(135deg, #ff4d8d 0%, #ff7a45 100%);
  --glow: 0 10px 28px rgba(79, 77, 255, 0.32);
  --ring-brand: 0 0 0 4px rgba(79, 82, 255, 0.16);

  --success: #0e9f6e;
  --success-soft: #e3f7ee;
  --danger: #e5383b;
  --danger-soft: #fdecec;
  --warning: #d97706;
  --warning-soft: #fff4e0;
  --like: #ff3b6b;

  --plate-bg: #ffffff;
  --plate-ink: #0d1030;
  --plate-band: #2f5bff;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --pill: 999px;

  --shadow-xs: 0 1px 2px rgba(13, 16, 48, 0.06);
  --shadow-sm: 0 2px 10px rgba(13, 16, 48, 0.06);
  --shadow: 0 12px 32px rgba(13, 16, 48, 0.08);
  --shadow-lg: 0 28px 64px rgba(13, 16, 48, 0.18);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 220ms;

  --topbar-h: 60px;
  /* the floating dock on phones: 62px high + 12px gap under it */
  --tabbar-h: 82px;
  --content-w: 1180px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #070a1a;
  --bg-soft: #0b0f24;
  --surface: #0e1330;
  --surface-2: #151b3d;
  --surface-3: #1d2450;
  --elevated: #121838;
  --text: #eef0ff;
  --text-2: #c6cae6;
  --muted: #9097bd;
  --faint: #626a93;
  --line: #1c2348;
  --line-strong: #2a3263;
  --overlay: rgba(2, 4, 16, 0.7);
  --glass: color-mix(in srgb, #0b0f26 78%, transparent);

  --brand: #6a78ff;
  --brand-2: #a27bff;
  --brand-soft: rgba(106, 120, 255, 0.16);
  --brand-text: #9aa6ff;
  --gradient-soft: linear-gradient(120deg, rgba(47, 91, 255, 0.18), rgba(155, 77, 255, 0.18));
  --glow: 0 10px 30px rgba(91, 77, 255, 0.45);
  --ring-brand: 0 0 0 4px rgba(106, 120, 255, 0.22);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.13);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.13);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.13);

  --plate-bg: #f4f5ff;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.6);
}
