/* ProductBeacon Design System
   Brand: Deep Navy + Amber, dark-mode-first
   Typography: Inter + JetBrains Mono
   Grid: 12-column, 8px base unit */

/* ============================================
   1. CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Colors */
  --ink: #0F172A;
  --surface: #1E293B;
  --border: #334155;
  --muted: #64748B;
  --secondary: #94A3B8;
  --text: #F1F5F9;
  --bright: #F8FAFC;
  --amber: #F59E0B;
  --amber-hover: #FBBF24;
  --amber-dim: rgba(245, 158, 11, 0.10);
  --amber-glow: rgba(245, 158, 11, 0.06);
  --emerald: #10B981;
  --sky: #38BDF8;

  /* Spacing (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --container: 1200px;
  --content-width: 720px;
  --nav-height: 72px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-xs: 6px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Styled scrollbar (not hidden) */
  scrollbar-color: var(--border) var(--ink);
  scrollbar-width: thin;
}

html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--ink); }
html::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover { background: var(--muted); }

body { min-height: 100vh; }

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--amber-hover); }

img { max-width: 100%; height: auto; display: block; }

/* Focus states — accessibility */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--bright);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.4;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted); }
.text-amber { color: var(--amber); }
.text-bright { color: var(--bright); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ============================================
   4. LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--content-width);
}

/* Simple grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

/* ============================================
   5. SECTIONS
   ============================================ */
.section {
  padding: var(--space-24) 0;
}

.section--ink { background: var(--ink); }
.section--surface { background: var(--surface); }

.section--accent {
  background: radial-gradient(ellipse at 30% 50%, rgba(245, 158, 11, 0.04) 0%, var(--ink) 70%);
}

.section--compact {
  padding: var(--space-16) 0;
}

.section__header {
  margin-bottom: var(--space-12);
}

.section__header h2 {
  margin-bottom: var(--space-4);
}

.section__header p {
  color: var(--secondary);
  font-size: 1.125rem;
  max-width: 600px;
}

/* ============================================
   6. NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  z-index: 100;
  transition: background 0.3s;
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--bright);
  font-size: 1.25rem;
}

.nav__logo svg { flex-shrink: 0; }

.nav__logo-text {
  font-weight: 400;
}

.nav__logo-text strong {
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--bright);
}

/* Ensure primary button in nav keeps its proper colors */
.nav__links .btn--primary {
  color: var(--ink);
  background: var(--amber);
}
.nav__links .btn--primary:hover {
  color: var(--ink);
  background: var(--amber-hover);
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: var(--space-2);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6);
  z-index: 99;
}

.nav__mobile.open { display: block; }

.nav__mobile a {
  display: block;
  padding: var(--space-3) 0;
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--bright); }

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  height: 40px;
  padding: 0 var(--space-6);
  white-space: nowrap;
}

.btn--primary {
  background: var(--amber);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--amber-hover);
  color: var(--ink);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--secondary);
}
.btn--outline:hover {
  background: var(--surface);
  border-color: var(--text);
  color: var(--bright);
}

.btn--ghost {
  background: transparent;
  color: var(--secondary);
  padding: 0;
  height: auto;
}
.btn--ghost:hover { color: var(--amber); }

.btn--lg {
  height: 48px;
  padding: 0 var(--space-8);
  font-size: 1rem;
}

.btn-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   8. CARDS
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  transition: border-color 0.2s, transform 0.15s;
}

.card:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

a.card {
  display: block;
  text-decoration: none;
  color: var(--text);
}

a.card:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.card--on-ink {
  background: var(--surface);
}

.card--on-surface {
  background: var(--ink);
  border-color: var(--border);
}

.card--featured {
  background: linear-gradient(135deg, var(--surface), rgba(245, 158, 11, 0.06));
  border-color: rgba(245, 158, 11, 0.3);
}

.card h3 { margin-bottom: var(--space-2); }
.card h4 { margin-bottom: var(--space-2); }

.card p {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ============================================
   9. BADGES & TAGS
   ============================================ */
.badge {
  display: inline-block;
  background: var(--amber-dim);
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--border-radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--muted {
  background: rgba(148, 163, 184, 0.1);
  color: var(--secondary);
}

/* ============================================
   10. METRIC BLOCKS
   ============================================ */
.metrics {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.metric {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  flex: 1;
}

.metric__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.2;
}

.metric__label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Large stat blocks (credentials section) */
.stat {
  text-align: center;
}

.stat__value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-top: var(--space-2);
}

/* ============================================
   11. STEPS / PROCESS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 12px);
  right: calc(16.67% + 12px);
  height: 2px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
  position: relative;
  z-index: 1;
}

.step h4 {
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--secondary);
  font-size: 0.875rem;
}

.step .eyebrow {
  margin-top: var(--space-2);
  font-size: 11px;
}

/* ============================================
   12. HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__qualifier {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.hero .eyebrow {
  margin-bottom: var(--space-4);
}

.hero h1 {
  margin-bottom: var(--space-4);
}

.hero h1 span { color: var(--amber); }

.hero__sub {
  font-size: 1.125rem;
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 560px;
}

/* Beacon animation */
.hero__visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  z-index: 1;
}

.beacon-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.08);
  animation: beacon-pulse 4s ease-in-out infinite;
}

.beacon-ring:nth-child(1) { width: 120px; height: 120px; animation-delay: 0s; }
.beacon-ring:nth-child(2) { width: 240px; height: 240px; animation-delay: 0.5s; }
.beacon-ring:nth-child(3) { width: 360px; height: 360px; animation-delay: 1s; }
.beacon-ring:nth-child(4) { width: 480px; height: 480px; animation-delay: 1.5s; }

.beacon-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 65, 85, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

@keyframes beacon-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.08; transform: translate(-50%, -50%) scale(1.05); }
}

/* ============================================
   13. DELIVERABLE PREVIEW
   ============================================ */
.deliverable-preview {
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: rotate(1.5deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.deliverable-preview:hover {
  transform: rotate(0deg);
}

.deliverable-preview img {
  width: 100%;
  display: block;
}

/* ============================================
   14. DIVIDERS
   ============================================ */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

.divider--amber {
  height: 2px;
  background: var(--amber);
}

.divider--subtle {
  background: rgba(51, 65, 85, 0.5);
}

/* ============================================
   15. QUOTE
   ============================================ */
.quote {
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  color: var(--secondary);
  border-left: 2px solid var(--amber);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
}

.quote__attribution {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted);
}

/* ============================================
   16. FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand p {
  color: var(--secondary);
  font-size: 0.875rem;
  margin-top: var(--space-3);
  max-width: 300px;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.footer__col a {
  display: block;
  color: var(--secondary);
  font-size: 0.875rem;
  padding: var(--space-1) 0;
}

.footer__col a:hover { color: var(--amber); }

.footer__bottom {
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer__social a {
  color: var(--muted);
  margin-left: var(--space-4);
}

.footer__social a:hover { color: var(--amber); }

/* ============================================
   17. SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================
   18. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .beacon-ring {
    animation: none;
    opacity: 0.15;
  }

  .card, .btn, .deliverable-preview, a {
    transition: none;
  }
}

/* ============================================
   18b. INSIGHT TABLES
   ============================================ */

.insight-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-8) 0;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #475569;
  border-radius: 8px;
  overflow: hidden;
}

.insight-table thead {
  background: #1E293B;
}

.insight-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--amber);
  border-bottom: 2px solid #475569;
}

.insight-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #334155;
  color: #CBD5E1;
  vertical-align: top;
}

.insight-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.5);
}

.insight-table tbody tr:last-child td {
  border-bottom: none;
}

.insight-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.08);
}

.insight-table td:first-child {
  font-weight: 600;
  color: #F1F5F9;
  white-space: nowrap;
}

.insight-table td strong {
  color: #F1F5F9;
}

@media (max-width: 767px) {
  .insight-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.8125rem;
  }
  .insight-table th,
  .insight-table td {
    padding: 10px 14px;
  }
}

/* ============================================
   19. RESPONSIVE
   ============================================ */

/* Tablet (< 1024px) */
@media (max-width: 1023px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }

  .split { grid-template-columns: 1fr; gap: var(--space-8); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }

  .hero__visual { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + var(--space-20)); padding-bottom: var(--space-20); }

  .footer__inner { grid-template-columns: 1fr 1fr; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .section { padding: var(--space-16) 0; }
}

/* Mobile (< 640px) */
@media (max-width: 639px) {
  :root {
    --space-6: 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metrics { flex-direction: column; }

  .hero { padding-top: calc(var(--nav-height) + var(--space-12)); padding-bottom: var(--space-16); }
  .hero h1 { font-size: 2rem; }

  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }

  .section { padding: var(--space-12) 0; }
  .stat__value { font-size: 2.25rem; }
}

/* ============================================
   20. INSIGHT PAGES
   ============================================ */

/* -- Hub Page -- */
.insight-hub__hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-12);
  text-align: center;
}

.insight-hub__hero p {
  color: var(--secondary);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1023px) {
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .insight-grid { grid-template-columns: 1fr; }
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}

.insight-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  color: var(--text);
}

.insight-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.insight-card__favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ink);
  flex-shrink: 0;
}

.insight-card__company {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bright);
}

.insight-card__thesis {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: var(--space-4);
}

.insight-card__tag {
  display: inline-block;
  background: var(--amber-dim);
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--border-radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

/* -- Individual Insight Page -- */
.insight-hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.insight-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.insight-hero__favicon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface);
}

.insight-hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.insight-hero__thesis {
  font-size: 1.25rem;
  color: var(--secondary);
  line-height: 1.5;
  max-width: 720px;
}

.insight-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.insight-body h2 {
  font-size: 1.75rem;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.insight-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.insight-body h3 {
  font-size: 1.25rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.insight-body p {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.insight-body ul, .insight-body ol {
  color: var(--secondary);
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.insight-body li {
  margin-bottom: var(--space-2);
}

.insight-body strong {
  color: var(--text);
}

.insight-body .highlight-box {
  background: var(--amber-dim);
  border-left: 3px solid var(--amber);
  padding: var(--space-4) var(--space-6);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin: var(--space-6) 0;
}

.insight-body .highlight-box p {
  color: var(--text);
  margin-bottom: 0;
}

.insight-body .open-loop {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  text-align: center;
}

.insight-body .open-loop p {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0;
}

.insight-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-8);
  margin-top: var(--space-12);
  text-align: center;
}

.insight-cta h3 {
  margin-bottom: var(--space-3);
}

.insight-cta p {
  color: var(--secondary);
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.insight-brief-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: var(--space-4);
}

.insight-brief-cta:hover {
  background: var(--amber-hover);
  color: var(--ink);
}

.insight-methodology {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.insight-methodology p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* -- Grade badges -- */
.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-right: 6px;
}

.grade--a { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.grade--b { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.grade--c { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.grade--d { background: rgba(239, 68, 68, 0.2); color: #EF4444; }

/* -- Cluster Pages -- */
.cluster-intro {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.cluster-intro p {
  color: var(--secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* -- Diagnostic Form -- */
.diagnostic-form {
  max-width: 560px;
  margin: 0 auto;
}

.diagnostic-form .form-group {
  margin-bottom: var(--space-4);
}

.diagnostic-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.diagnostic-form input,
.diagnostic-form textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.diagnostic-form input:focus,
.diagnostic-form textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.diagnostic-form textarea {
  min-height: 120px;
  resize: vertical;
}

.diagnostic-form button[type="submit"] {
  width: 100%;
  margin-top: var(--space-2);
}

@media (max-width: 639px) {
  .insight-hero h1 { font-size: 1.75rem; }
  .insight-hero__thesis { font-size: 1.0625rem; }
  .insight-body { padding: var(--space-8) var(--space-6); }
}
