/* ==========================================================================
   Tirevana design tokens
   --------------------------------------------------------------------------
   Concept: a photo studio for tires.
   - "Studio"  : the seamless light-grey backdrop products are shot on.
   - "Paper"   : browsing surfaces (cards, forms).
   - "Panel"   : dark rubber instrument panels. Reserved for LIVE, computed
                 facts: stock, ship cut-off, all-in price, delivery date and
                 advisor answers. If it is on a panel, it was calculated for you.
   - "Vana"    : brand emerald, used for primary actions and verified fit.
   - "Mint"    : live readouts on panels.
   - "Signal"  : low stock / time running out. Use sparingly.
   - "Livery"  : race day. Racing green fields with a volt-yellow pinstripe,
                 slanted forward. Brand moments only (hero stage, footer,
                 step roundels, deal stickers), never state.
   - "Compound": one colour per tire type, like the coloured band on a race
                 tire's sidewall. It identifies the category and nothing else.
   Type: Archivo variable. Width is hierarchy: expanded (125%) for display,
   prices and sizes; normal width for reading. Display type leans forward
   (italic) like livery lettering.
   ========================================================================== */

:root {
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: 125%;
  --semi: 112%;

  /* Type scale (1.25, base 16) */
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-s: 0.875rem;     /* 14 */
  --fs-m: 1rem;         /* 16 */
  --fs-l: 1.25rem;      /* 20 */
  --fs-xl: 1.5625rem;   /* 25 */
  --fs-2xl: 1.953rem;   /* 31 */
  --fs-3xl: 2.441rem;   /* 39 */

  /* Light (default) */
  --studio: #E9EDEC;
  --studio-hi: #F5F7F6;
  --studio-2: #DFE5E3;
  --paper: #F8FAF9;
  --paper-2: #FFFFFF;
  --ink: #15191A;
  --ink-2: #364240;
  --muted: #56635F;
  --amber: #B06F0E;      /* stars, low stock, warnings: non-text, ≥3:1 on paper */
  --mint-ink: #05140C;   /* text on mint */
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6966' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --chev-on-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398A6A3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --line: rgba(21, 25, 26, 0.10);
  --line-2: rgba(21, 25, 26, 0.18);
  --stage-hi: #F7F9F8;
  --stage-lo: #DCE3E1;

  --vana: #0B6E50;
  --vana-hover: #095C43;
  --vana-ink: #FFFFFF;
  --vana-soft: rgba(11, 110, 80, 0.10);

  --panel: #15191A;
  --panel-2: #1F2627;
  --panel-3: #2A3233;
  --panel-ink: #EEF3F1;
  --panel-muted: #98A6A3;
  --panel-line: rgba(255, 255, 255, 0.09);
  --mint: #8FE3B0;

  --signal: #9A5B06;
  --signal-soft: rgba(214, 140, 30, 0.14);
  --signal-panel: #F2B45A;
  --danger: #B42318;
  --danger-soft: rgba(180, 35, 24, 0.09);
  --danger-panel: #FF9C8F;

  /* Livery: racing green fields + volt pinstripe. Volt never carries text on
     a light surface (1.2:1); text sits ON volt in --volt-ink. */
  --livery: #0A5C43;
  --livery-2: #0D7353;          /* the lit side of the band */
  --livery-ink: #FFFFFF;
  --livery-muted: rgba(255, 255, 255, 0.74);
  --livery-line: rgba(255, 255, 255, 0.16);
  --volt: #FFD21F;
  --volt-ink: #1A1600;
  --slant: -14deg;              /* the forward lean shared by stripes, flags and type */

  /* Compound colours, one per tire type (CATEGORIES[].key). Fills and marks
     only, always next to the category's name. Never a fit, stock or price state. */
  --cc-touring: #13A89B;        /* aqua: calm, quiet miles */
  --cc-allweather: #8CC63F;     /* lime: the in-between compound */
  --cc-winter: #2F80ED;         /* ice blue */
  --cc-performance: #E5322D;    /* race red: the soft, fast compound */
  --cc-ev: #8A5CF5;             /* electric violet */
  --cc-allterrain: #F07A1A;     /* Baja orange: dirt and gravel */
  --cc-value: #8E9AA3;          /* silver: the hard, long-life compound */

  --shadow-1: 0 1px 2px rgba(21, 25, 26, 0.05), 0 6px 16px -10px rgba(21, 25, 26, 0.18);
  --shadow-2: 0 2px 6px rgba(21, 25, 26, 0.05), 0 28px 56px -28px rgba(21, 25, 26, 0.32);
  --shadow-sheet: 0 -10px 60px -12px rgba(10, 14, 15, 0.35);

  /* Radius by hierarchy: controls are pills, cards 22, panels 30 */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 30px;
  --pill: 999px;

  --gutter: 16px;
  --maxw: 1200px;
  --header-h: 60px;
  --tabbar-h: 64px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* Dark: the studio after hours. Panels stay darkest so they still read as "live". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --studio: #0D1112;
    --studio-hi: #141A1B;
    --studio-2: #121718;
    --paper: #151B1C;
    --paper-2: #1A2122;
    --ink: #E7EDEB;
    --ink-2: #C3CDCA;
    --muted: #8E9C99;
  --amber: #F2B45A;
  --chev: var(--chev-on-dark);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.16);
    --stage-hi: #2C3537;
    --stage-lo: #111617;
    --vana: #46C493;
    --vana-hover: #5BD3A3;
    --vana-ink: #06140E;
    --vana-soft: rgba(70, 196, 147, 0.13);
    --panel: #070A0B;
    --panel-2: #10161A;
    --panel-3: #1A2226;
    --signal: #F2B45A;
    --signal-soft: rgba(242, 180, 90, 0.14);
    --danger: #FF9C8F;
    --danger-soft: rgba(255, 156, 143, 0.12);
    --livery: #0B3F30;
    --livery-2: #0F5240;
    --cc-value: #A9B4BC;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -12px rgba(0, 0, 0, 0.6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --studio: #0D1112;
  --studio-hi: #141A1B;
  --studio-2: #121718;
  --paper: #151B1C;
  --paper-2: #1A2122;
  --ink: #E7EDEB;
  --ink-2: #C3CDCA;
  --muted: #8E9C99;
  --amber: #F2B45A;
  --chev: var(--chev-on-dark);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --stage-hi: #2C3537;
  --stage-lo: #111617;
  --vana: #46C493;
  --vana-hover: #5BD3A3;
  --vana-ink: #06140E;
  --vana-soft: rgba(70, 196, 147, 0.13);
  --panel: #070A0B;
  --panel-2: #10161A;
  --panel-3: #1A2226;
  --signal: #F2B45A;
  --signal-soft: rgba(242, 180, 90, 0.14);
  --danger: #FF9C8F;
  --danger-soft: rgba(255, 156, 143, 0.12);
  --livery: #0B3F30;
  --livery-2: #0F5240;
  --cc-value: #A9B4BC;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -12px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 68px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }
