/* ==========================================================================
   GridCall Design System — Base tokens + semantic selectors
   Marketing website only. Light mode only.
   ========================================================================== */

/* League Spartan — self-hosted brand font, registered via design system upload.
   Variable font (wght 100-900) covers all weights. League Spartan ships
   without an italic; the system disables italics by design
   (em { font-style: normal; font-weight: 500 }).
   IBM Plex Mono — Google Fonts (tabular/code).
   League Spartan is the GridCall sans, a geometric grotesque that echoes
   the wordmark's structural feel. Single-font system: it handles UI,
   display, and tabular contexts (the latter via tabular-nums). */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/LeagueSpartan-VariableFont_wght.ttf') format('truetype-variations'),
       url('fonts/LeagueSpartan-VariableFont_wght.ttf') format('truetype');
}
:root {
  /* ---- Base neutrals ------------------------------------------------- */
  --gc-ink:            #0A0A0B;   /* Gridcall Black — primary text, wordmark */
  --gc-paper:          #FAFAFA;   /* Gridcall White — backgrounds */
  --gc-paddock-900:    #1F2022;
  --gc-paddock-700:    #3C3E42;   /* secondary text on light */
  --gc-paddock-400:    #9CA0A6;   /* disabled, placeholders */
  --gc-paddock-200:    #DCDEE2;   /* dividers, borders */
  --gc-paddock-100:    #EEF0F3;   /* hover, subtle fills */
  --gc-white:          #FFFFFF;

  /* ---- Signal Yellow (single accent family) ------------------------ */
  /* One accent. Contrast comes from inversion (yellow on ink, ink on yellow), */
  /* never from darkening. Do not introduce yellow-600/800.                  */
  --gc-yellow-50:      #FFFBEB;   /* soft pill/badge background, hover row     */
  --gc-yellow-200:     #FDE68A;   /* highlight <mark>, decorative divider      */
  --gc-yellow-400:     #F5C518;   /* logo brand mark, CTA fill, underline, live */

  /* Backwards-compatible alias — anything still calling --gc-signal-blue */
  /* now resolves to Yellow 400 so legacy components don't break.        */
  --gc-signal-yellow:        var(--gc-yellow-400);
  --gc-signal-blue:          var(--gc-yellow-400);   /* deprecated alias */
  --gc-signal-blue-hover:    var(--gc-ink);          /* deprecated alias */
  --gc-signal-blue-press:    var(--gc-ink);          /* deprecated alias */

  /* ---- Semantic (distinct from brand accents) ----------------------- */
  --gc-success:        #22C55E;
  --gc-warning:        #F59E0B;
  --gc-error:          #EF4444;
  --gc-info:           #3B82F6;

  /* ---- Foreground / background aliases ------------------------------ */
  --fg-1:              var(--gc-ink);
  --fg-2:              var(--gc-paddock-700);
  --fg-3:              var(--gc-paddock-400);
  --fg-on-accent:      var(--gc-white);

  --bg-1:              var(--gc-paper);
  --bg-2:              var(--gc-paddock-100);
  --bg-surface:        var(--gc-white);
  --border-default:    var(--gc-paddock-200);
  --border-strong:     var(--gc-paddock-400);

  /* ---- Typography ---------------------------------------------------- */
  --font-sans:    'League Spartan', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'League Spartan', ui-sans-serif, system-ui, sans-serif; /* same family, used for hero/wordmark — pair with weight 700/800 */
  --font-mono:    'League Spartan', ui-sans-serif, system-ui, sans-serif; /* same family as sans — combine with .mono / tabular-nums for data contexts */

  /* Type scale (8-point). Size/line-height pairs.
     Weights tuned to match the wordmark: League Spartan reads heavier than
     most sans, so headings cap at Medium (500). Bold (700) is reserved for
     rare emphasis only — never for headings or display copy. */
  --type-web-hero-xl:   96px; --lh-web-hero-xl: 101px; /* Medium — web hero ONLY, not app surfaces. Scale to 112px desktop max / 40–48px mobile. */
  --type-display-xl:    56px; --lh-display-xl: 64px;  /* Medium */
  --type-display-l:     40px; --lh-display-l:  48px;  /* Regular */
  --type-h1:            32px; --lh-h1:         40px;  /* Medium, 1.2 */
  --type-h2:            24px; --lh-h2:         32px;  /* Medium, 1.25 */
  --type-h3:            20px; --lh-h3:         28px;  /* Regular, 1.3 */
  --type-body-l:        18px; --lh-body-l:     28px;  /* Regular, 1.5 */
  --type-body:          16px; --lh-body:       24px;  /* Regular, 1.5 */
  --type-body-s:        14px; --lh-body-s:     20px;  /* Regular */
  --type-caption:       12px; --lh-caption:    18px;  /* Medium */

  /* Font weights — League Spartan weights in use */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* ---- Spacing (8-point, 4px minor step) ---------------------------- */
  --space-0:   0;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-7:   40px;
  --space-8:   48px;
  --space-9:   64px;
  --space-10:  80px;
  --space-11:  120px;

  /* ---- Radii --------------------------------------------------------- */
  --radius-sm:    4px;
  --radius-md:    8px;     /* buttons */
  --radius-lg:    12px;    /* cards */
  --radius-pill:  999px;   /* status pills */

  /* ---- Elevation ----------------------------------------------------- */
  /* Almost never used. Only a single very subtle layer on card hover. */
  --shadow-none:   none;
  --shadow-hover:  0 1px 2px rgba(10, 10, 11, 0.04),
                   0 2px 8px rgba(10, 10, 11, 0.06);

  /* ---- Motion -------------------------------------------------------- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast:   120ms;
  --dur-med:    180ms;

  /* ---- Layout -------------------------------------------------------- */
  --container-max:  1200px;
  --container-pad:  24px;
  --focus-ring:     0 0 0 3px rgba(245, 197, 24, 0.45);
}

/* ==========================================================================
   Semantic selectors — unopinionated resets + role-based defaults.
   Scope under .gc-root to avoid leaking into consuming UIs.
   ========================================================================== */

.gc-root,
.gc-root * {
  box-sizing: border-box;
}

.gc-root {
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga"; /* League Spartan: standard kerning + ligatures */
  font-variant-numeric: normal;
}

/* Tabular figures for any data/time/countdown context */
.gc-root .tabular,
.gc-root time,
.gc-root code,
.gc-root kbd,
.gc-root samp {
  font-variant-numeric: tabular-nums;
}

.gc-root h1, .gc-root h2, .gc-root h3, .gc-root h4 {
  margin: 0;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.gc-root .display-xl {
  font-size: var(--type-display-xl);
  line-height: var(--lh-display-xl);
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
}
.gc-root .display-l {
  font-size: var(--type-display-l);
  line-height: var(--lh-display-l);
  font-weight: var(--fw-regular);
  letter-spacing: -0.015em;
}
.gc-root h1, .gc-root .h1 {
  font-size: var(--type-h1); line-height: var(--lh-h1); font-weight: var(--fw-medium);
}
.gc-root h2, .gc-root .h2 {
  font-size: var(--type-h2); line-height: var(--lh-h2); font-weight: var(--fw-medium);
}
.gc-root h3, .gc-root .h3 {
  font-size: var(--type-h3); line-height: var(--lh-h3); font-weight: var(--fw-regular);
}

.gc-root p, .gc-root .body {
  margin: 0;
  font-size: var(--type-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  text-wrap: pretty;
}
.gc-root .body-l { font-size: var(--type-body-l); line-height: var(--lh-body-l); }
.gc-root .body-s { font-size: var(--type-body-s); line-height: var(--lh-body-s); }
.gc-root .caption {
  font-size: var(--type-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-medium);
}
.gc-root .caption-caps {
  font-size: var(--type-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.gc-root .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Italics are intentionally not part of the system (League Spartan ships
   without italics anyway). If <em> must render, keep it upright and use
   weight to signal emphasis. */
.gc-root em, .gc-root i { font-style: normal; font-weight: var(--fw-medium); }

/* Links — ink text with a Yellow 400 underline that thickens on hover.
   The underline is the accent, not the colour of the text. */
.gc-root a {
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 2px solid var(--gc-yellow-400);
  padding-bottom: 1px;
  transition: border-bottom-width var(--dur-fast) var(--ease-standard),
              padding-bottom var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.gc-root a:hover    { border-bottom-width: 4px; padding-bottom: 0; }
.gc-root a:focus-visible {
  outline: none;
  border-radius: 2px;
  box-shadow: var(--focus-ring);
}

/* ==========================================================================
   Button system — single-accent (Yellow 400). Inversion-based contrast.
   ========================================================================== */

.gc-root .gc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: var(--fw-medium);
  font-size: 15px; line-height: 1;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}

/* Primary: yellow fill, ink text → hover inverts to ink fill, yellow text */
.gc-root .gc-btn-primary {
  background: var(--gc-yellow-400);
  color: var(--fg-1);
  border-bottom: 0;
}
.gc-root .gc-btn-primary:hover {
  background: var(--fg-1);
  color: var(--gc-yellow-400);
}
.gc-root .gc-btn-primary:focus-visible {
  outline: none;
  background: var(--gc-yellow-400);
  color: var(--fg-1);
  box-shadow: 0 0 0 2px var(--fg-1);
}

/* Secondary: paper fill, ink border → hover ink fill, yellow text */
.gc-root .gc-btn-secondary {
  background: var(--bg-surface);
  color: var(--fg-1);
  border: 1.5px solid var(--fg-1);
  padding: 10.5px 20.5px; /* compensate 1.5px border so heights match primary */
  border-bottom: 1.5px solid var(--fg-1);
}
.gc-root .gc-btn-secondary:hover {
  background: var(--fg-1);
  color: var(--gc-yellow-400);
  border-color: var(--fg-1);
  border-bottom: 1.5px solid var(--fg-1);
}
.gc-root .gc-btn-secondary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.gc-root hr {
  border: 0;
  border-top: 1px solid var(--border-default);
  margin: var(--space-6) 0;
}

::selection { background: var(--gc-yellow-200); color: var(--fg-1); }
