/* ─────────────────────────────────────────────────────────────────────────
   cluster.css — shared stylesheet for the Find Your Signal entity/content
   cluster (/about, /ai-visibility-diagnostic, /missing-from-ai-search,
   /dashboard-vs-diagnosis). Reuses the homepage visual system: dark theme,
   teal accent, DM Serif Display / DM Sans / JetBrains Mono, hairline-separated
   editorial layout. Content-page components only — no homepage-specific markup.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --page-bg:        #10141a;
  --surface:        #171c26;
  --surface-alt:    #1b2130;
  --surface-raised: #1f2636;
  --teal:           #35b5ad;
  --text:           #dde6f0;
  --muted:          #8dafc8;
  --muted-lo:       #617f99;
  --hairline:       rgba(255,255,255,0.08);
  --hairline-soft:  rgba(255,255,255,0.05);
  --font-display:   'DM Serif Display', Georgia, serif;
  --font-sans:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --max-w:          1120px;
  --read-w:         720px;
  --nav-h:          60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; overflow-x: hidden; }

/* ── HEADER NAV (four content pages only — their own page navigation) ───────
   Sticky header: wordmark + the four page links. Scoped to `body > nav` so it
   never affects a nested <nav>, and lives in cluster.css only — the homepage's
   inline-styled header is untouched. Sticky (not fixed) so the longer link set
   wraps gracefully on narrow screens without overlapping page content. */
body > nav {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--nav-h);
  background: rgba(16,20,26,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center;
}
.nav-inner {
  width: 100%; max-width: var(--max-w); min-width: 0;
  margin: 0 auto; padding: 11px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 30px;
}
.nav-wordmark {
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); text-decoration: none; white-space: nowrap;
}
.nav-menu {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px;
  min-width: 0; max-width: 100%;
}
.nav-pagelink {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.05em; color: var(--muted-lo);
  text-decoration: none; transition: color 0.15s; white-space: nowrap;
}
.nav-pagelink:hover { color: var(--teal); }
.nav-pagelink[aria-current="page"] { color: var(--text); pointer-events: none; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
main { display: block; }

/* ── BUTTONS (homepage v7.3 outlined-mono primary) ──────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 26px; text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.btn-primary:hover { border-color: var(--teal); color: var(--teal); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-lo); text-decoration: none; transition: color 0.15s;
}
.btn-secondary:hover { color: var(--teal); }
.btn-secondary .arr { color: var(--teal); opacity: 0.6; }

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  padding-top: 64px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--hairline-soft);
}
.section-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); opacity: 0.72; margin-bottom: 18px;
}
.page-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--text); max-width: 820px; text-wrap: balance;
}
.page-lede {
  margin-top: 22px; max-width: var(--read-w);
  font-size: 16px; line-height: 1.72; color: var(--muted); text-wrap: pretty;
}
.page-lede strong { color: var(--text); font-weight: 600; }

/* ── PROSE / ARTICLE ────────────────────────────────────── */
.prose { max-width: var(--read-w); margin: 0 auto; padding: 64px 40px 16px; }
.prose > section { padding: 18px 0; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.22; letter-spacing: -0.01em; color: var(--text);
  margin-bottom: 16px; text-wrap: balance;
}
.prose p {
  font-size: 15px; line-height: 1.72; color: var(--muted);
  text-wrap: pretty; margin-bottom: 14px;
}
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose p em { color: var(--text); font-style: italic; }
.prose a {
  color: var(--teal); text-decoration: none;
  border-bottom: 1px solid rgba(53,181,173,0.32); transition: border-color 0.15s;
}
.prose a:hover { border-bottom-color: var(--teal); }
.prose .lead-line {
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; line-height: 1.55; color: var(--text);
  border-left: 1px solid rgba(53,181,173,0.4); padding-left: 18px;
  margin-bottom: 20px; max-width: 600px;
}

/* ── DEFINITION LIST (the four things it measures, etc.) ─── */
.def-list { display: flex; flex-direction: column; margin-top: 6px; }
.def-item {
  padding: 16px 0; border-bottom: 1px solid var(--hairline-soft);
  display: grid; grid-template-columns: 8px 1fr; gap: 16px; align-items: start;
}
.def-item:first-child { border-top: 1px solid var(--hairline-soft); }
.def-item::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal); opacity: 0.6; margin-top: 8px;
}
.def-item p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.def-item .def-term { color: var(--text); font-weight: 600; }

/* ── REASON STACK (Page 3) ──────────────────────────────── */
.reason-stack { display: flex; flex-direction: column; margin-top: 8px; }
.reason {
  padding: 26px 0; border-bottom: 1px solid var(--hairline-soft);
  display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: start;
}
.reason:first-child { border-top: 1px solid var(--hairline-soft); }
.reason-idx {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--teal); opacity: 0.75; padding-top: 2px;
}
.reason-h {
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  color: var(--text); line-height: 1.35; margin-bottom: 8px;
}
.reason-body { font-size: 15px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.reason-body em { color: var(--text); font-style: italic; }
.reason.is-aside .reason-idx { color: var(--muted-lo); opacity: 0.55; }

/* ── CONTRAST GRID (Page 4 dashboard vs diagnosis) ──────── */
.contrast-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 6px;
}
.contrast-card {
  background: var(--surface-alt); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 28px;
}
.contrast-card.is-diagnosis { border-color: rgba(53,181,173,0.28); }
.contrast-label {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-lo); margin-bottom: 14px;
}
.contrast-card.is-diagnosis .contrast-label { color: var(--teal); opacity: 0.85; }
.contrast-card p { font-size: 15px; line-height: 1.68; color: var(--muted); margin: 0; }
.contrast-card p em { color: var(--text); font-style: italic; }

/* ── FAQ (always visible — crawlable) ───────────────────── */
.faq { margin-top: 10px; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--hairline-soft); }
.faq-item:first-child { border-top: 1px solid var(--hairline-soft); }
.faq-q {
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.45; margin-bottom: 8px;
}
.faq-a { font-size: 14.5px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* ── CTA BAND ───────────────────────────────────────────── */
.cta-band {
  margin-top: 56px;
  background: var(--surface);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 72px 0; text-align: center;
}
.cta-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--teal); opacity: 0.62; margin-bottom: 18px;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2;
  color: var(--text); max-width: 520px; margin: 0 auto 30px;
  letter-spacing: -0.01em; text-wrap: balance;
}
.cta-row { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }

/* ── FOOTER (matches homepage + cluster cross-links) ────── */
footer { border-top: 1px solid var(--hairline); padding: 40px 0; background: var(--page-bg); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding-bottom: 26px; margin-bottom: 26px;
  border-bottom: 1px solid var(--hairline-soft);
}
.footer-link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted-lo); text-decoration: none; transition: color 0.15s;
}
.footer-link:hover { color: var(--teal); }
.footer-link[aria-current="page"] { color: var(--muted); opacity: 0.55; pointer-events: none; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-wordmark {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); opacity: 0.62;
}
.footer-note {
  font-size: 12px; color: var(--muted-lo); opacity: 0.42;
  font-family: var(--font-mono); letter-spacing: 0.06em;
}

/* ── ANIMATION ──────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease both; }
.delay-1 { animation-delay: 0.07s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.27s; }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; } }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  /* Stack the header: wordmark on its own line, the page links wrap within the
     full container width (prevents the link row overflowing on narrow screens). */
  .nav-inner { padding: 11px 24px; flex-direction: column; align-items: stretch; gap: 12px; }
  .container { padding: 0 24px; }
  .prose { padding-left: 24px; padding-right: 24px; }
  .contrast-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section-label, .cta-eyebrow { font-size: 12px; }
  .page-lede { font-size: 16px; }
  .prose p { font-size: 16px; line-height: 1.75; }
  .def-item p, .reason-body, .contrast-card p { font-size: 16px; line-height: 1.75; }
  .faq-a { font-size: 15.5px; line-height: 1.75; }
  .footer-note { font-size: 13px; }
}
@media (max-width: 600px) {
  .page-hero { padding-top: 36px; padding-bottom: 40px; }
  .nav-inner { padding: 11px 20px; }
  .nav-pagelink { font-size: 12.5px; }
  .prose { padding-top: 48px; }
  .reason { grid-template-columns: 1fr; gap: 8px; }
  .reason-idx { padding-top: 0; }
  .cta-row { flex-direction: column; gap: 18px; }
  .cta-row .btn-primary { width: 100%; max-width: 320px; justify-content: center; }
}
