/* ==========================================================================
   FlashCharging design tokens
   Palette follows the FlashCharging app: Slow = electric blue, Fast = cyan,
   Flash = neon green. Overpass descends from road-sign lettering.
   ========================================================================== */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Overpass";
  src: url("../fonts/overpass-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Ink and surfaces */
  --ink: #0B2134;          /* headings, dark panels ("night road") */
  --ink-2: #33495E;        /* body text */
  --ink-3: #536779;        /* secondary text, 4.5:1 on paper */
  --paper: #F3F6F8;        /* page background */
  --surface: #FFFFFF;
  --surface-2: #EDF2F6;
  --line: #DCE3EA;
  --line-strong: #C3CED8;

  /* Charging speeds (match the app) */
  --electric: #2563EB;     /* Slow, primary actions */
  --electric-hover: #1D4ED8;
  --electric-tint: #E2EBFD;
  --current: #06B6D4;      /* Fast */
  --current-ink: #0E7490;
  --current-tint: #D9F4F9;
  --flash: #A3E635;        /* Flash, live energy */
  --flash-ink: #4D7C0F;
  --flash-tint: #ECF8D6;

  /* Brand and states */
  --leaf: #72B23A;         /* logo green */
  --leaf-ink: #3E7D35;
  --amber: #F59E0B;        /* in use */
  --amber-ink: #92400E;
  --muted-pin: #94A3B8;    /* unavailable */
  --error: #B42318;
  --error-tint: #FDECEA;

  /* Dark panels */
  --night: #0B2134;
  --night-2: #13314B;
  --night-line: rgba(232, 239, 245, 0.14);
  --on-night: #E8EFF5;
  --on-night-2: #A9BCCD;

  /* Map */
  --map-land: #E7EDF2;
  --map-street: #FFFFFF;
  --map-water: #B9D5F6;
  --map-park: #CDEEDA;
  --map-road: #FFFFFF;
  --map-major: #F8D88A;
  --map-airport: #DCE3EA;
  --map-label: #5A6E80;

  /* Type */
  --font: "Overpass", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.75rem, 1.55rem + 4.6vw, 5.5rem);  /* 44 → 88 */
  --fs-h2: clamp(2rem, 1.3rem + 2.7vw, 3.625rem);          /* 32 → 58 */
  --fs-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);        /* 20 → 24 */
  --fs-lead: clamp(1.125rem, 1.04rem + 0.36vw, 1.3125rem); /* 18 → 21 */
  --fs-body: 1.0625rem;                                     /* 17 */
  --fs-small: 0.9375rem;                                    /* 15 */
  --fs-tiny: 0.8125rem;                                     /* 13 */

  /* Space (8px rhythm) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section-y: clamp(72px, 3.5rem + 4.5vw, 144px);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  /* Radius by role: chips < controls < cards < stages < devices */
  --r-chip: 999px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(11, 33, 52, 0.06), 0 2px 10px rgba(11, 33, 52, 0.05);
  --shadow-2: 0 18px 40px -18px rgba(11, 33, 52, 0.32);
  --shadow-3: 0 40px 80px -30px rgba(11, 33, 52, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 160ms;
  --medium: 280ms;

  color-scheme: light;
}
