/* ============================================================
   LiveControl — Design Tokens (Colors & Type)
   The single source of truth for color, type, spacing, radii,
   shadows, motion. Import this file at the top of any artifact.
   ============================================================ */

/* -----------  FONTS  ----------- */
/* Inter is the primary brand face (per brand brief).
   The product app currently ships TT Hoves + Mulish — for production
   parity, those are listed as fallback families. */

/* Display cut — tighter optical sizing for very large hero type. */
/* -----------  TOKENS  ----------- */
:root {
  /* Type — families */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Type — semantic sizes (marketing / dark surface) */
  --fs-h1: 64px;     --lh-h1: 1.05;     --tracking-h1: -0.02em;   --fw-h1: 800;
  --fs-h2: 48px;     --lh-h2: 1.08;     --tracking-h2: -0.018em;  --fw-h2: 800;
  --fs-h3: 32px;     --lh-h3: 1.15;     --tracking-h3: -0.01em;   --fw-h3: 700;
  --fs-h4: 24px;     --lh-h4: 1.25;     --tracking-h4: -0.005em;  --fw-h4: 700;
  --fs-eyebrow: 13px; --tracking-eyebrow: 0.16em; --fw-eyebrow: 600;
  --fs-lead: 20px;   --lh-lead: 1.55;
  --fs-body: 16px;   --lh-body: 1.6;
  --fs-small: 14px;  --lh-small: 1.5;
  --fs-micro: 12px;  --lh-micro: 1.4;

  /* Type — semantic sizes (product / light surface, app-aligned) */
  --fs-app-page-title: 24px;    --fw-app-page-title: 700;
  --fs-app-section: 18px;       --fw-app-section: 700;
  --fs-app-row-title: 15px;     --fw-app-row-title: 600;
  --fs-app-body: 15px;          --fw-app-body: 400;
  --fs-app-meta: 13px;          --fw-app-meta: 400;
  --fs-app-label: 12px;         --fw-app-label: 600;

  /* ----------  COLORS  ---------- */

  /* Brand — official palette (per BRAND COLORS guide).
     Six named brand colors. Coral ("LC Red") is the PRIMARY accent —
     the •Live mark color. Midnight is the deepest brand neutral. */
  --c-brand-midnight: #00102D;  /* Pantone — RGB 0,16,45 — deepest brand neutral */
  --c-brand-navy:     #0D1D3B;  /* RGB 13,29,59 — primary dark surface */
  --c-brand-sapphire: #0C3192;  /* Pantone 661 C — RGB 12,49,146 — deep blue */
  --c-brand-cobalt:   #3664FF;  /* RGB 54,100,255 — interactive blue, primary CTA on light */
  --c-brand-coral:    #FF505F;  /* "LC Red" — Pantone 178 C — RGB 255,80,95 — PRIMARY accent */
  --c-brand-stone:    #F7F7F7;  /* RGB 247,247,247 — light neutral / background */

  /* Legacy alias names (kept so older artifacts don't break) */
  --c-brand-blue:    var(--c-brand-cobalt);
  --c-brand-blue-2:  var(--c-brand-cobalt);

  /* Extended neutrals (cool gray scale) */
  --c-neutral-900: #00102D;     /* = Midnight */
  --c-neutral-800: #0D1D3B;     /* = Navy */
  --c-neutral-700: #304366;
  --c-neutral-600: #596985;
  --c-neutral-500: #838EA3;
  --c-neutral-400: #ACB4C2;
  --c-neutral-300: #C5CAD5;
  --c-neutral-200: #D9DCE2;
  --c-neutral-150: #ECEDEF;
  --c-neutral-100: #F7F7F7;     /* = Stone */

  /* Cobalt tints (extended blue family) */
  --c-cobalt-600: #3664FF;      /* = Cobalt (base) */
  --c-cobalt-500: #5E83FF;
  --c-cobalt-400: #86A2FF;
  --c-cobalt-300: #AFC1FF;
  --c-cobalt-200: #D7E0FF;

  /* Special accent (sparingly — energy/highlight) */
  --c-accent-lime: #D4EF63;

  /* Dark surfaces (marketing / auth / video chrome) */
  --c-bg-deep:   #080E1E;
  --c-bg-mid:    #0D1529;
  --c-bg-card:   #111B33;
  --c-bg-card-2: #132341;       /* alt card on dark */
  --c-bg-overlay:#00102D;       /* sidebar / hero — Figma rgb(0,16,45) */
  --c-bg-near-black: #030019;   /* auth ornamentation */

  /* Light surfaces (product app) */
  --c-app-canvas: #EBF0F3;      /* body bg */
  --c-app-surface: #FFFFFF;
  --c-app-surface-alt: #F7FAFC; /* nested panels */
  --c-app-surface-tint: #F2F5F8;

  /* Borders */
  --c-border-dark: rgba(255, 255, 255, 0.06);
  --c-border-dark-2: rgba(255, 255, 255, 0.10);
  --c-border-light: #E4E8F0;
  --c-border-light-2: #D5DAEA;
  --c-border-input: #CBCBCB;

  /* Text — on dark */
  --c-fg-on-dark:    #F0F2F5;
  --c-fg-on-dark-2:  rgba(176, 186, 209, 0.85);  /* Figma rgb(143,165,207) */
  --c-fg-on-dark-3:  rgba(176, 186, 209, 0.55);

  /* Text — on light (app) */
  --c-fg:           #2E384D;     /* primary text — Figma rgb(46,56,77) */
  --c-fg-2:         #515D82;     /* secondary text */
  --c-fg-3:         #838BA6;     /* tertiary/muted */
  --c-fg-4:         #8798AD;     /* hint */
  --c-fg-disabled:  #A3A3A3;
  --c-fg-link:      var(--c-brand-blue-2);

  /* Tints (app) */
  --c-tint-1: rgba(46, 91, 255, 0.18);
  --c-tint-2: rgba(46, 91, 255, 0.09);
  --c-tint-3: rgba(46, 91, 255, 0.03);

  /* Semantic state */
  --c-success: #048426;
  --c-success-bg: #E6F7EC;
  --c-warning: #FFB400;
  --c-warning-bg: #FFF6E0;
  --c-danger: #FF0000;
  --c-danger-bg: #FFE9E9;
  --c-info: var(--c-brand-blue-2);
  --c-info-bg: #E0E7FF;

  /* Live indicator (broadcast badge) */
  --c-live: #FF505F;

  /* ----------  SPACING ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 48px;
  --sp-9: 64px;
  --sp-10: 80px;
  --sp-11: 96px;
  --sp-12: 128px;

  /* ----------  RADII ---------- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-3xl: 28px;
  --r-pill: 999px;

  /* ----------  SHADOWS / ELEVATION ---------- */
  /* App (light surface) — soft and short */
  --sh-app-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(46, 56, 77, 0.06);
  --sh-app-2: 0 4px 12px rgba(46, 56, 77, 0.07);
  --sh-app-3: 0 12px 32px rgba(46, 56, 77, 0.10);
  --sh-app-focus: 0 0 0 3px rgba(46, 91, 255, 0.20);

  /* Marketing (dark surface) — colored + crisp */
  --sh-glow-blue:   0 12px 32px rgba(78, 95, 253, 0.35);
  --sh-glow-cyan:   0 12px 32px rgba(6, 182, 212, 0.30);
  --sh-card-dark:   0 8px 24px rgba(0, 0, 0, 0.40);
  --sh-card-dark-2: 0 16px 40px rgba(0, 0, 0, 0.55);

  /* ----------  MOTION ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --dur-ambient: 12s;

  /* ----------  LAYOUT ---------- */
  --sidebar-w: 244px;
  --sidebar-w-collapsed: 72px;
  --header-h: 88px;
  --content-max: 1248px;
}

/* -----------  TYPOGRAPHY DEFAULTS  ----------- */
html, body {
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";  /* Inter — disambiguate 1l, single-storey a, etc. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Marketing semantic classes — apply over dark backgrounds */
.lc-h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tracking-h1); font-weight: var(--fw-h1); color: var(--c-fg-on-dark); }
.lc-h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); font-weight: var(--fw-h2); color: var(--c-fg-on-dark); }
.lc-h3 { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); font-weight: var(--fw-h3); color: var(--c-fg-on-dark); }
.lc-h4 { font-family: var(--font-sans); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--tracking-h4); font-weight: var(--fw-h4); color: var(--c-fg-on-dark); }
.lc-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--c-fg-on-dark-2); }
.lc-body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-fg-on-dark-2); }
.lc-small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-fg-on-dark-2); }
.lc-eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  font-weight: var(--fw-eyebrow);
  text-transform: uppercase;
  color: var(--c-brand-blue);
}

/* App / light surface semantic classes */
.lc-app-page-title { font-size: var(--fs-app-page-title); font-weight: var(--fw-app-page-title); color: var(--c-fg); }
.lc-app-section { font-size: var(--fs-app-section); font-weight: var(--fw-app-section); color: var(--c-fg); }
.lc-app-row-title { font-size: var(--fs-app-row-title); font-weight: var(--fw-app-row-title); color: var(--c-fg); }
.lc-app-body { font-size: var(--fs-app-body); color: var(--c-fg); }
.lc-app-meta { font-size: var(--fs-app-meta); color: var(--c-fg-3); }
.lc-app-label {
  font-size: var(--fs-app-label);
  font-weight: var(--fw-app-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-fg-3);
}
