/* ═══════════════════════════════════════════════════════════════
   JIVE MEDIA — Global Design System
   Brand: Chartreuse (#DFFF00 / oklch(0.96 0.22 105))
   Theme: Dark-first, high-contrast
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Chartreuse — the brand accent */
  --color-chartreuse:     #C4F532;
  --color-chartreuse-dim: #a8d425;

  /* Dark background scale */
  --color-ink:         oklch(0.10 0.004 240);   /* deepest bg */
  --color-ink-2:       oklch(0.13 0.004 240);   /* card bg */
  --color-ink-3:       oklch(0.17 0.005 240);   /* hover bg */
  --color-ink-border:  oklch(0.22 0.005 240);   /* borders */

  /* Text */
  --color-text-primary: oklch(0.97 0.002 240);
  --color-text-muted:   oklch(0.72 0.008 240);
  --color-text-faint:   oklch(0.50 0.006 240);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-ink);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

/* ── Section label ──────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-chartreuse);
  margin: 0;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-chartreuse);
}

/* ── Ticker animation ───────────────────────────────────────── */
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-track:hover { animation-play-state: paused; }

/* ── Focus styles ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-chartreuse);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background: oklch(0.96 0.22 105 / 0.25);
  color: var(--color-text-primary);
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-ink); }
::-webkit-scrollbar-thumb {
  background: var(--color-ink-3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-ink-border); }

/* ═══════════════════════════════════════════════════════════════
   SHARED COMPONENT RULES — ported from the (previously unlinked)
   Tailwind source so inner/list pages relying on global classes are
   styled and clear the fixed nav. NOTE: do NOT add `main{padding-top}`
   here — the homepage/about/contact heroes self-compensate; the
   .page-hero top padding below is what clears the 64px nav on the
   pages that use the shared hero.
   ═══════════════════════════════════════════════════════════════ */

/* Shared section utilities */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 1rem;
  line-height: 1.15;
}
.section-title-sm {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 0 1.5rem;
}
.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-chartreuse);
  margin-bottom: 0.75rem;
}
em.accent, .accent { font-style: normal; color: var(--color-chartreuse); }

/* Buttons (global fallback; pages may override scoped) */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-chartreuse); color: var(--color-ink);
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; border-radius: var(--radius-md);
  transition: filter 0.2s, transform 0.2s; white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; background: transparent;
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--color-ink-border);
  border-radius: var(--radius-md); transition: border-color 0.2s, color 0.2s; white-space: nowrap;
}
.btn-secondary { color: var(--color-text-primary); }
.btn-secondary:hover { border-color: var(--color-chartreuse); color: var(--color-chartreuse); }
.btn-ghost { color: var(--color-text-muted); }
.btn-ghost:hover { border-color: var(--color-text-muted); color: var(--color-text-primary); }

/* Page hero (shared across inner pages) — 6rem top clears the fixed nav */
.page-hero {
  padding: 6rem 0 3.5rem;
  border-bottom: 1px solid var(--color-ink-border);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-text-primary);
  margin: 1rem 0 1.25rem;
}
.page-hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--color-text-faint); flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-faint); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-chartreuse); }
.breadcrumb span { color: var(--color-text-faint); }

/* CTA band (shared) */
.cta-band { padding: 5rem 0; border-top: 1px solid var(--color-ink-border); background: var(--color-ink-2); }
.cta-band-inner { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
@media (min-width: 768px) {
  .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-band-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--color-text-primary); margin: 0 0 0.5rem;
}
.cta-band-desc { font-size: 1rem; color: var(--color-text-muted); line-height: 1.6; max-width: 520px; margin: 0; }

/* FAQ (shared) */
.faq-section { padding: 5rem 0; border-top: 1px solid var(--color-ink-border); }
.faq-inner { max-width: 800px; }
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  background: var(--color-ink-2); border: 1px solid var(--color-ink-border);
  border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--color-chartreuse); }
.faq-question {
  padding: 1.25rem 1.5rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--color-text-primary); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--color-chartreuse); flex-shrink: 0; transition: transform 0.2s; }
details[open] .faq-question::after { content: '−'; }
.faq-answer { padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.7; margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   LIGHT SECTION (reusable) — white/cream section for contrast.
   Add `section-light` to any <section>. Handles the shared classes;
   templates add their own overrides for bespoke component classes.
   ═══════════════════════════════════════════════════════════════ */
.section-light {
  --lt-bg:     oklch(0.97 0.008 95);
  --lt-text:   oklch(0.24 0.012 255);
  --lt-muted:  oklch(0.46 0.012 255);
  --lt-border: oklch(0.90 0.008 95);
  --lt-card:   #ffffff;
  --lt-accent: oklch(0.52 0.15 132);
  /* !important so a section's own (dark) background can't win over the light theme */
  background: var(--lt-bg) !important;
  border-color: var(--lt-border) !important;
  border-top: 1px solid var(--lt-border);
  border-bottom: 1px solid var(--lt-border);
}
.section-light .section-eyebrow,
.section-light .section-label { color: var(--lt-accent); }
.section-light .section-label::before { background-color: var(--lt-accent); }
.section-light .section-title,
.section-light .section-title-sm { color: var(--lt-text); }
.section-light .section-desc { color: var(--lt-muted); }
.section-light .breadcrumb,
.section-light .breadcrumb a,
.section-light .breadcrumb span { color: var(--lt-muted); }
.section-light .breadcrumb a:hover { color: var(--lt-accent); }
.section-light .faq-item { background: var(--lt-card); border-color: var(--lt-border); }
.section-light .faq-item[open] { border-color: var(--lt-accent); }
.section-light .faq-question { color: var(--lt-text); }
.section-light .faq-question::after { color: var(--lt-accent); }
.section-light .faq-answer { color: var(--lt-muted); }
.section-light .link-arrow { color: var(--lt-accent); }
.section-light .btn-ghost,
.section-light .btn-secondary { color: var(--lt-text); border-color: var(--lt-border); }
.section-light .btn-ghost:hover,
.section-light .btn-secondary:hover { border-color: var(--lt-accent); color: var(--lt-accent); }
