/* =============================================================
   SafetyChain Sales & Marketing Design System
   Shared tokens, base styles, navigation, theme
   ============================================================= */

400;500;600;700;800&display=swap');

/* ---------- Tokens (light, default) ---------- */
:root {
  /* Brand (sourced from 2025 SafetyChain theme: accent2 #0E97C4, accent3 #2DC3E8) */
  --sc-cyan-50:  #E5F5FB;
  --sc-cyan-100: #BFE7F4;
  --sc-cyan-200: #8FD7ED;
  --sc-cyan-300: #5CCAE5;
  --sc-cyan-400: #2DC3E8;   /* brand light — theme accent3 */
  --sc-cyan-500: #0E97C4;   /* brand primary — theme accent2 / hlink */
  --sc-cyan-600: #0B7DA3;
  --sc-cyan-700: #086483;
  --sc-cyan-800: #064C66;
  --sc-cyan-900: #053860;   /* brand navy — theme accent1 / dk2 */

  /* Navy (deep brand) — sourced from theme dk2/accent1 #053860 */
  --sc-navy-500: #053860;
  --sc-navy-600: #042B49;
  --sc-navy-400: #1A557F;

  /* Industrial cool neutrals (blue-tinted) */
  --sc-ink-0:   #FFFFFF;
  --sc-ink-50:  #F4F7FA;
  --sc-ink-100: #E5ECF2;
  --sc-ink-200: #C7D2DC;
  --sc-ink-300: #94A4B5;
  --sc-ink-400: #6B7E92;
  --sc-ink-500: #4A5E73;
  --sc-ink-600: #2D4358;
  --sc-ink-700: #1F3349;
  --sc-ink-800: #14253A;
  --sc-ink-900: #0B1929;

  /* Semantic (sourced from theme accent4/5/6) */
  --sc-green-500: #7BC144;   /* safety pass — theme accent6 */
  --sc-green-100: #E5F4D5;
  --sc-green-700: #4F8B22;
  --sc-amber-500: #FFB400;   /* warning — theme accent4 */
  --sc-amber-100: #FFEFC2;
  --sc-amber-700: #B57E00;
  --sc-orange-500:#F97316;   /* alert / hold — theme accent5 */
  --sc-orange-100:#FFE5D2;
  --sc-orange-700:#B14506;
  /* Stop / negative state — orange family (no red in brand).
     -700 maps to the brand orange #F97316 so all "Don't" / "Reject" labels
     render in the official brand orange, not a derived darker tone. */
  --sc-red-500:   #F97316;
  --sc-red-100:   #FFE0D2;
  --sc-red-700:   #F97316;

  /* CTA — sales & marketing primary action.
     Orange is the official theme accent5. Product UI keeps cyan; this token
     is reserved for marketing pages, decks, emails, ads, and event collateral. */
  --sc-cta: #F97316;
  --sc-cta-hover: #DC5E0A;
  --sc-cta-fg: #FFFFFF;

  /* Semantic mapping */
  --sc-primary: var(--sc-cyan-500);
  --sc-primary-hover: var(--sc-cyan-600);
  --sc-primary-fg: #FFFFFF;
  --sc-accent: var(--sc-cyan-400);
  /* Brand accent — stays cyan regardless of the per-page primary tweak.
     Used by eyebrows, section-nav active states, brand-locked tabs. */
  --sc-brand-accent: var(--sc-cyan-500);

  /* Surfaces */
  --sc-bg: var(--sc-ink-50);
  --sc-surface: #FFFFFF;
  --sc-surface-2: var(--sc-ink-50);
  --sc-surface-3: var(--sc-ink-100);
  --sc-border: var(--sc-ink-100);
  --sc-border-strong: var(--sc-ink-200);
  --sc-fg: var(--sc-ink-900);
  --sc-fg-muted: var(--sc-ink-500);
  --sc-fg-subtle: var(--sc-ink-400);

  /* Typography */
  --sc-font-display: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --sc-font-body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  /* "Mono" is Poppins Medium with tracking — used for eyebrows/labels. Keeping one variable
     so we don't sprinkle font-family overrides everywhere. */
  --sc-font-mono: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Type scale */
  --sc-text-xs:   12px;
  --sc-text-sm:   14px;
  --sc-text-base: 16px;
  --sc-text-md:   18px;
  --sc-text-lg:   20px;
  --sc-text-xl:   24px;
  --sc-text-2xl:  30px;
  --sc-text-3xl:  38px;
  --sc-text-4xl:  48px;
  --sc-text-5xl:  64px;
  --sc-text-6xl:  84px;

  /* Spacing (4pt grid) */
  --sc-1:  4px;
  --sc-2:  8px;
  --sc-3:  12px;
  --sc-4:  16px;
  --sc-5:  20px;
  --sc-6:  24px;
  --sc-8:  32px;
  --sc-10: 40px;
  --sc-12: 48px;
  --sc-16: 64px;
  --sc-20: 80px;
  --sc-24: 96px;
  --sc-32: 128px;

  /* Radii */
  --sc-radius-xs: 4px;
  --sc-radius-sm: 6px;
  --sc-radius-md: 10px;
  --sc-radius-lg: 14px;
  --sc-radius-xl: 20px;
  --sc-radius-2xl: 28px;
  --sc-radius-full: 9999px;

  /* Shadows */
  --sc-shadow-xs: 0 1px 2px rgba(11, 25, 41, 0.06);
  --sc-shadow-sm: 0 2px 4px rgba(11, 25, 41, 0.06), 0 1px 2px rgba(11, 25, 41, 0.04);
  --sc-shadow-md: 0 6px 14px -4px rgba(11, 25, 41, 0.08), 0 2px 4px rgba(11, 25, 41, 0.04);
  --sc-shadow-lg: 0 18px 34px -10px rgba(11, 25, 41, 0.14), 0 4px 8px rgba(11, 25, 41, 0.04);
  --sc-shadow-xl: 0 28px 60px -20px rgba(11, 25, 41, 0.20), 0 8px 18px rgba(11, 25, 41, 0.06);
  --sc-ring: 0 0 0 3px rgba(19, 148, 196, 0.25);

  /* Motion */
  --sc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sc-duration-fast: 120ms;
  --sc-duration-base: 200ms;
  --sc-duration-slow: 320ms;

  /* Layout */
  --sc-max-width: 1240px;
  --sc-content-width: 880px;
  --sc-nav-height: 64px;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --sc-primary: var(--sc-cyan-400);
  --sc-primary-hover: var(--sc-cyan-300);
  --sc-primary-fg: var(--sc-ink-900);
  --sc-accent: var(--sc-cyan-300);
  --sc-brand-accent: var(--sc-cyan-400);

  --sc-bg: #0A1622;
  --sc-surface: #11202F;
  --sc-surface-2: #16283B;
  --sc-surface-3: #1F3349;
  --sc-border: #1F3349;
  --sc-border-strong: #2D4358;
  --sc-fg: #ECF1F7;
  --sc-fg-muted: #94A4B5;
  --sc-fg-subtle: #6B7E92;

  --sc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --sc-shadow-md: 0 6px 14px -4px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  --sc-shadow-lg: 0 18px 34px -10px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.3);
  --sc-shadow-xl: 0 28px 60px -20px rgba(0, 0, 0, 0.7), 0 8px 18px rgba(0, 0, 0, 0.3);
  --sc-ring: 0 0 0 3px rgba(44, 196, 235, 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sc-bg);
  color: var(--sc-fg);
  font-family: var(--sc-font-body);
  font-size: var(--sc-text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
  /* Offset anchor jumps so targets clear the fixed nav */
  scroll-padding-top: calc(var(--sc-nav-height) + var(--sc-4));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Cross-document page transitions (View Transitions API) ---- */
/* Browsers without support fall back to instant navigation. */
@view-transition {
  navigation: auto;
}
@keyframes sc-vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes sc-vt-fade-out {
  to { opacity: 0; }
}
::view-transition-old(root) {
  animation: sc-vt-fade-out 140ms var(--sc-ease) both;
}
::view-transition-new(root) {
  animation: sc-vt-fade-in 240ms var(--sc-ease) both;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

a {
  color: var(--sc-primary);
  text-decoration: none;
  transition: color var(--sc-duration-fast) var(--sc-ease);
}
a:hover { color: var(--sc-primary-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sc-font-display);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* Brand rule: section/page headers in cyan, Medium (500) */
h1, h2, h3 { color: var(--sc-brand-accent); }
/* Functional / UI-level headings keep body color */
h4, h5, h6 { color: var(--sc-fg); }

h1 { font-size: var(--sc-text-4xl); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: var(--sc-text-3xl); letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: var(--sc-text-2xl); line-height: 1.2; }
h4 { font-size: var(--sc-text-xl); font-weight: 600; line-height: 1.3; }
h5 { font-size: var(--sc-text-lg); font-weight: 600; line-height: 1.3; }
h6 { font-size: var(--sc-text-base); font-weight: 600; line-height: 1.35; }

/* Header emphasis — use <em> inside h1–h3 to anchor a word in navy.
   It contrasts against the cyan headline so the eye lands on it. */
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--sc-navy-500);
  font-weight: 700;
}
:root[data-theme="dark"] h1 em,
:root[data-theme="dark"] h2 em,
:root[data-theme="dark"] h3 em { color: #FFFFFF; }

/* Helpers for contexts that need the heading in body or white */
.sc-heading-ink { color: var(--sc-fg) !important; }
.sc-heading-on-dark { color: #FFFFFF !important; }

p { margin: 0; text-wrap: pretty; }

code {
  font-family: var(--sc-font-mono);
  font-size: 0.92em;
  background: var(--sc-surface-3);
  padding: 2px 6px;
  border-radius: var(--sc-radius-xs);
  color: var(--sc-fg);
}

hr {
  border: 0;
  height: 1px;
  background: var(--sc-border);
  margin: var(--sc-8) 0;
}

::selection { background: var(--sc-cyan-200); color: var(--sc-ink-900); }
:root[data-theme="dark"] ::selection { background: var(--sc-cyan-700); color: var(--sc-ink-0); }

/* ---------- Layout primitives ---------- */
.sc-container {
  max-width: var(--sc-max-width);
  margin: 0 auto;
  padding: 0 var(--sc-6);
}

.sc-page {
  padding: calc(var(--sc-nav-height) + var(--sc-12)) 0 var(--sc-24);
}

.sc-section {
  padding: var(--sc-16) 0;
  border-top: 1px solid var(--sc-border);
}
.sc-section:first-of-type { border-top: 0; }

.sc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sc-2);
  font-size: var(--sc-text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sc-brand-accent);
}
.sc-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.sc-section-title { margin: var(--sc-3) 0 var(--sc-3); }
.sc-section-lede {
  max-width: 64ch;
  color: var(--sc-fg-muted);
  font-size: var(--sc-text-md);
  margin: 0 0 var(--sc-10);
}

/* ---------- Top Navigation ---------- */
.sc-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--sc-nav-height);
  background: color-mix(in oklab, var(--sc-surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--sc-border);
  z-index: 50;
}
.sc-topnav-inner {
  max-width: var(--sc-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--sc-6);
  display: flex;
  align-items: center;
  gap: var(--sc-8);
}
.sc-topnav-brand {
  display: flex;
  align-items: center;
  gap: var(--sc-3);
  font-weight: 700;
  font-size: var(--sc-text-md);
  letter-spacing: -0.01em;
  color: var(--sc-fg);
}
.sc-topnav-brand img { height: 22px; width: auto; flex-shrink: 0; display: block; align-self: center; }
.sc-topnav-brand .sc-divider {
  width: 1px; height: 22px; background: var(--sc-border-strong);
  transform: translateY(1px);
}
.sc-topnav-logo-dark { display: none; }
.sc-topnav-brand small {
  font-size: var(--sc-text-xs);
  font-weight: 600;
  color: var(--sc-fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(1px);
}

.sc-topnav-links {
  display: flex;
  align-items: center;
  gap: var(--sc-1);
  margin-left: auto;
}
.sc-topnav-links a {
  padding: 8px 14px;
  font-size: var(--sc-text-sm);
  font-weight: 500;
  color: var(--sc-fg-muted);
  border-radius: var(--sc-radius-sm);
  transition: all var(--sc-duration-fast) var(--sc-ease);
}
.sc-topnav-links a:hover {
  color: var(--sc-fg);
  background: var(--sc-surface-2);
}
.sc-topnav-links a[aria-current="page"] {
  color: var(--sc-fg);
  background: var(--sc-surface-2);
}

.sc-topnav-actions {
  display: flex;
  align-items: center;
  gap: var(--sc-2);
}

.sc-theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--sc-radius-sm);
  border: 1px solid var(--sc-border);
  background: var(--sc-surface);
  color: var(--sc-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--sc-duration-fast) var(--sc-ease);
}
.sc-theme-toggle:hover { background: var(--sc-surface-2); border-color: var(--sc-border-strong); }
.sc-theme-toggle svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .sc-theme-toggle .sun { display: block; }
:root[data-theme="dark"] .sc-theme-toggle .moon { display: none; }
.sc-theme-toggle .sun { display: none; }
.sc-theme-toggle .moon { display: block; }

/* ---------- Page hero ---------- */
.sc-page-hero {
  padding: var(--sc-12) 0 var(--sc-10);
  border-bottom: 1px solid var(--sc-border);
}
.sc-page-hero h1 {
  font-size: clamp(40px, 5.6vw, var(--sc-text-5xl));
  margin: var(--sc-3) 0 var(--sc-4);
}
.sc-page-hero .sc-lede {
  max-width: 64ch;
  font-size: var(--sc-text-md);
  color: var(--sc-fg-muted);
}

/* ---------- Card primitive ---------- */
.sc-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-lg);
  padding: var(--sc-6);
  transition: border-color var(--sc-duration-base) var(--sc-ease),
              box-shadow var(--sc-duration-base) var(--sc-ease);
}
.sc-card--hover:hover {
  border-color: var(--sc-border-strong);
  box-shadow: var(--sc-shadow-md);
}

.sc-grid { display: grid; gap: var(--sc-5); }
.sc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sc-grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) {
  .sc-grid-3, .sc-grid-4, .sc-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sc-grid-2, .sc-grid-3, .sc-grid-4, .sc-grid-6 { grid-template-columns: 1fr; }
}

.sc-stack { display: flex; flex-direction: column; gap: var(--sc-3); }
.sc-row { display: flex; align-items: center; gap: var(--sc-3); flex-wrap: wrap; }

/* ---------- Buttons (base, shared) ---------- */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: var(--sc-text-sm);
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--sc-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--sc-duration-fast) var(--sc-ease);
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.sc-btn:focus-visible { outline: none; box-shadow: var(--sc-ring); }

/* ============================================================
   Button system
   --------------------------------------------------------------
   Three-tier filled hierarchy + alternates.

     Primary    — orange  (#F97316) — the lead action on a page
     Secondary  — cyan    (#0E97C4) — supporting action
     Tertiary   — navy    (#053860) — third-tier action

   Background-aware rule:
   ────────────────────────────────
   If a button would render in the same color as its surrounding
   surface, swap to the next tier OR to the outline variant.
   On navy: don't use sc-btn-tertiary — use sc-btn-outline-light.
   On cyan: don't use sc-btn-secondary — drop to primary or outline.
   On orange: don't use sc-btn-primary — drop to outline-light.
   On any of those dark/colored surfaces, text on outline buttons
   stays white (no dark text on saturated brand fills).

   Alternates:
     sc-btn-outline       neutral outline on light surfaces
     sc-btn-outline-light white outline on dark/colored surfaces
     sc-btn-link          text-only with arrow, cyan
     sc-btn-ghost         text-only, muted (dismiss/cancel)
     sc-btn-cta           alias for sc-btn-primary (legacy)
   ============================================================ */

/* --- Primary (orange) — the lead action --- */
.sc-btn-primary {
  background: var(--sc-cta);          /* #F97316 */
  color: var(--sc-cta-fg);
}
.sc-btn-primary:hover { background: var(--sc-cta-hover); color: var(--sc-cta-fg); }

/* CTA is an alias for primary (kept for backwards compatibility) */
.sc-btn-cta {
  background: var(--sc-cta);
  color: var(--sc-cta-fg);
}
.sc-btn-cta:hover { background: var(--sc-cta-hover); color: var(--sc-cta-fg); }

/* --- Secondary (cyan) — supporting action --- */
.sc-btn-secondary {
  background: var(--sc-cyan-500);
  color: #FFFFFF;
  border-color: transparent;
}
.sc-btn-secondary:hover { background: var(--sc-cyan-600); color: #FFFFFF; }

/* --- Tertiary (navy) — third-tier action --- */
.sc-btn-tertiary {
  background: var(--sc-navy-500);
  color: #FFFFFF;
  border-color: transparent;
}
.sc-btn-tertiary:hover { background: var(--sc-navy-600); color: #FFFFFF; }

/* --- Light cyan companion — alternate secondary for variety --- */
.sc-btn-primary-light {
  background: var(--sc-cyan-400);
  color: #FFFFFF;
}
.sc-btn-primary-light:hover { background: var(--sc-cyan-300); color: #FFFFFF; }
:root[data-theme="dark"] .sc-btn-primary-light {
  background: var(--sc-cyan-400);
  color: #FFFFFF;
}
:root[data-theme="dark"] .sc-btn-primary-light:hover { background: var(--sc-cyan-300); color: #FFFFFF; }

/* --- Outline (neutral) — on light surfaces --- */
.sc-btn-outline {
  background: var(--sc-surface);
  color: var(--sc-fg);
  border-color: var(--sc-border-strong);
}
.sc-btn-outline:hover { background: var(--sc-surface-2); border-color: var(--sc-ink-300); color: var(--sc-fg); }

/* --- Outline (light) — for use on navy/cyan/orange surfaces --- */
.sc-btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.35);
}
.sc-btn-outline-light:hover { background: rgba(255,255,255,0.10); border-color: #FFFFFF; color: #FFFFFF; }

/* --- Text-link with arrow (cyan) --- */
.sc-btn-link {
  background: transparent;
  color: var(--sc-cyan-500);
}
.sc-btn-link:hover { background: var(--sc-cyan-50); color: var(--sc-cyan-600); }
:root[data-theme="dark"] .sc-btn-link { color: var(--sc-cyan-300); }
:root[data-theme="dark"] .sc-btn-link:hover { background: rgba(44, 196, 235, 0.10); color: var(--sc-cyan-200); }

/* --- Ghost (text, muted) — dismiss / cancel --- */
.sc-btn-ghost {
  background: transparent;
  color: var(--sc-fg-muted);
}
.sc-btn-ghost:hover { background: var(--sc-surface-2); color: var(--sc-fg); }

/* --- Danger — kept for in-product destructive actions only --- */
.sc-btn-danger {
  background: var(--sc-red-500);
  color: white;
}
.sc-btn-danger:hover { background: var(--sc-red-700); color: white; }

.sc-btn--sm { padding: 8px 14px; font-size: var(--sc-text-xs); }
.sc-btn--lg { padding: 16px 28px; font-size: var(--sc-text-md); border-radius: var(--sc-radius-md); }
.sc-btn--icon { padding: 10px; }
.sc-btn--block { width: 100%; }

.sc-btn[disabled],
.sc-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Footer ---------- */
.sc-footer {
  border-top: 1px solid var(--sc-border);
  padding: var(--sc-12) 0 var(--sc-8);
  margin-top: var(--sc-16);
  background: var(--sc-surface);
}
.sc-footer-inner {
  max-width: var(--sc-max-width);
  margin: 0 auto;
  padding: 0 var(--sc-6);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sc-10);
}
.sc-footer-brand { display: flex; flex-direction: column; gap: var(--sc-3); max-width: 320px; }
.sc-footer-brand img { height: 24px; width: auto; align-self: flex-start; display: block; }
.sc-footer-brand p { color: var(--sc-fg-muted); font-size: var(--sc-text-sm); }
.sc-footer h6 {
  font-size: var(--sc-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sc-fg-subtle);
  margin-bottom: var(--sc-3);
  font-weight: 600;
}
.sc-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sc-2); }
.sc-footer ul a { color: var(--sc-fg-muted); font-size: var(--sc-text-sm); }
.sc-footer ul a:hover { color: var(--sc-fg); }
.sc-footer-bottom {
  max-width: var(--sc-max-width);
  margin: var(--sc-10) auto 0;
  padding: var(--sc-6) var(--sc-6) 0;
  border-top: 1px solid var(--sc-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--sc-text-xs); color: var(--sc-fg-subtle);
}
@media (max-width: 800px) {
  .sc-footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sc-6); }
}

/* ---------- Utility ---------- */
.sc-mono { font-family: var(--sc-font-mono); font-feature-settings: "tnum"; }
.sc-muted { color: var(--sc-fg-muted); }
.sc-subtle { color: var(--sc-fg-subtle); }
.sc-tabular { font-variant-numeric: tabular-nums; }
.sc-uppercase-mono {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--sc-text-xs);
  font-weight: 600;
}
.sc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--sc-radius-full);
  background: var(--sc-cyan-50);
  color: var(--sc-cyan-700);
  font-size: var(--sc-text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
:root[data-theme="dark"] .sc-pill { background: rgba(44, 196, 235, 0.12); color: var(--sc-cyan-300); }

.sc-divider-h { height: 1px; background: var(--sc-border); width: 100%; }
.sc-divider-v { width: 1px; background: var(--sc-border); align-self: stretch; }

/* ---------- Tweaks Panel (vanilla) ---------- */
#sc-tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border-strong);
  border-radius: var(--sc-radius-lg);
  box-shadow: var(--sc-shadow-xl);
  z-index: 100;
  padding: var(--sc-5);
  font-family: var(--sc-font-body);
  display: none;
}
#sc-tweaks.is-open { display: block; }
#sc-tweaks header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sc-4);
}
#sc-tweaks header h6 {
  font-size: var(--sc-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sc-fg-muted);
  font-weight: 600;
}
#sc-tweaks .sc-tweak-close {
  background: transparent; border: 0; cursor: pointer; color: var(--sc-fg-muted);
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--sc-radius-xs);
}
#sc-tweaks .sc-tweak-close:hover { background: var(--sc-surface-2); color: var(--sc-fg); }
#sc-tweaks .sc-tweak {
  margin-bottom: var(--sc-4);
}
#sc-tweaks .sc-tweak:last-child { margin-bottom: 0; }
#sc-tweaks label {
  display: block;
  font-size: var(--sc-text-xs);
  font-weight: 600;
  color: var(--sc-fg);
  margin-bottom: 6px;
}
#sc-tweaks .sc-swatches {
  display: flex; gap: 8px;
}
#sc-tweaks .sc-swatch {
  width: 28px; height: 28px;
  border-radius: var(--sc-radius-sm);
  border: 2px solid var(--sc-border);
  cursor: pointer;
  transition: transform var(--sc-duration-fast) var(--sc-ease);
}
#sc-tweaks .sc-swatch:hover { transform: scale(1.08); }
#sc-tweaks .sc-swatch.is-active {
  border-color: var(--sc-fg);
  box-shadow: 0 0 0 2px var(--sc-surface), 0 0 0 4px var(--sc-fg);
}
#sc-tweaks .sc-segmented {
  display: flex;
  background: var(--sc-surface-2);
  border-radius: var(--sc-radius-sm);
  padding: 3px;
  gap: 2px;
}
#sc-tweaks .sc-segmented button {
  flex: 1;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: var(--sc-text-xs);
  font-weight: 500;
  color: var(--sc-fg-muted);
  font-family: var(--sc-font-body);
}
#sc-tweaks .sc-segmented button.is-active {
  background: var(--sc-surface);
  color: var(--sc-fg);
  box-shadow: var(--sc-shadow-xs);
}
#sc-tweaks input[type="range"] {
  width: 100%;
  accent-color: var(--sc-primary);
}
