/* SafetyRatios theme */
:root {
  --canvas:        #f8f9fc;
  --surface:       #ffffff;
  --ink:           #0f1923;
  --ink-muted:     #64748b;
  --border:        #e2e8f0;
  --primary:       #0c6e84;
  --primary-light: #e0f4f8;
  --primary-dark:  #0a5a6d;
  --accent:        #8be1e1;
  --accent-light:  #f0fafa;
  --amber:         #ffd166;
  --amber-dark:    #d97706;
  --loss:          #ef4444;
  --gain:          #10b981;
  --font-sans:     system-ui, -apple-system, sans-serif;
  --font-mono:     ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.1); }
#nav-sentinel    { height: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* iOS Safari quirk: the logo mark (whether JS-built <svg> or <img src=
   "/icon.svg">) ignores its width/height attributes inside a flex
   container and collapses to 0×0. Explicit CSS dimensions force the
   donut mark to render at the right size on real mobile devices.
   Dashboard's inline-HTML SVG is unaffected. */
.logo svg, .logo img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-wordmark {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

.nav-auth {
  display: none;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) { .nav-auth { display: flex; } }
.nav-auth .btn-ghost {
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.nav-auth .btn-ghost:hover { color: var(--ink); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-outline:hover { background: var(--primary-light); }

.btn-primary.lg, .btn-outline.lg { padding: 0.875rem 2rem; }

/* ── Mobile menu button ──────────────────────────────────────────────────── */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 768px) { .menu-btn { display: none; } }
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  gap: 1rem;
}
.mobile-nav.open { display: flex; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  padding: 0.25rem 0;
}
.mobile-nav a:hover { color: var(--ink); }
.mobile-nav .btn-primary { width: 100%; margin-top: 0.5rem; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 6rem 0 4rem; }
@media (min-width: 1024px) { .hero { padding: 9rem 0 5rem; } }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.hero-muted { color: var(--ink-muted); }
.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Reel ────────────────────────────────────────────────────────────────── */
.reel-wrap { margin-top: 4rem; }
.reel-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.reel-sub {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.reel-overflow { overflow: hidden; }

@keyframes reel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.reel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: reel-scroll 34s linear infinite;
}
.reel-track:hover { animation-play-state: paused; }

.reel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  flex-shrink: 0;
}
.reel-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reel-icon svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.reel-name    { font-size: 0.875rem; font-weight: 500; color: var(--ink);      white-space: nowrap; }
.reel-context { font-size: 0.75rem;  color: var(--ink-muted); white-space: nowrap; }

/* ── Section shared ──────────────────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.7;
}
.section-intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Generic section container */
.sr-section         { padding: 5rem 0 7rem; }
.sr-section-canvas  { padding: 5rem 0 7rem; background: var(--canvas); border-top: 1px solid var(--border); }
.sr-section-border  { border-top: 1px solid var(--border); }
.sr-section-intro   { max-width: 672px; margin-bottom: 3rem; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps-section { padding: 3.5rem 0 5rem; background: var(--canvas); }

.steps-grid { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 640px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: color-mix(in srgb, var(--primary) 40%, transparent);
  margin-bottom: 8px;
}
.step-title { font-size: 0.875rem; font-weight: 600; color: var(--ink);      margin-bottom: 6px; }
.step-body  { font-size: 0.75rem;  color: var(--ink-muted); line-height: 1.6; }

/* ── Publications ────────────────────────────────────────────────────────── */
.publications-section { padding: 3.5rem 0 5rem; }

.pub-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }

.pub-card {
  display: flex;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.pub-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.pub-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pub-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.pub-strand {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 60%, transparent);
  margin-bottom: 4px;
}
.pub-title { font-size: 0.875rem; font-weight: 600; color: var(--ink);      margin-bottom: 8px; }
.pub-desc  { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; }

/* ── CTA section ─────────────────────────────────────────────────────────── */
.cta-section { padding: 5rem 0 7rem; background: var(--ink); text-align: center; }
.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary-inv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary-inv:hover { background: var(--primary-dark); }
.btn-ghost-inv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost-inv:hover { background: rgba(255,255,255,0.2); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr repeat(5, 1fr); } }

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 220px;
}
.footer-col h3 {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 0.875rem; color: var(--ink-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { color: var(--ink-muted); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--ink); }

/* ── Interior page hero ───────────────────────────────────────────────────── */
.page-hero { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--border); }
.page-h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 640px;
}
.page-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 560px;
}
.page-body { padding: 3rem 0 6rem; }
.page-body-full { padding: 5rem 0 7rem; }

/* ── Prose (about, methodology, legal pages) ──────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.125rem; font-weight: 600; color: var(--ink); margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.5rem; }
.prose p { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.25rem; }
.prose ol { margin: 0 0 1rem 1.25rem; }
.prose li { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 0.35rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose-narrow { max-width: 768px; margin: 0 auto; }
.prose-narrow .prose { max-width: 100%; }
.prose-section { margin-bottom: 4rem; }
.prose-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem; margin-bottom: 4rem;
}
.prose-box .section-eyebrow { margin-bottom: 1rem; }

/* ── Insights tabs + mosaic ───────────────────────────────────────────────── */
.insights-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 2.5rem;
}
.filter-btn {
  font-size: 0.75rem; font-weight: 600; padding: 0.375rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted);
  cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { color: var(--ink); border-color: rgba(0,0,0,0.25); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-count { opacity: 0.65; }
.filter-total { margin-left: auto; font-size: 0.72rem; color: var(--ink-muted); }

.insights-mosaic { columns: 1; gap: 1rem; }
@media (min-width: 640px)  { .insights-mosaic { columns: 2; } }
@media (min-width: 1024px) { .insights-mosaic { columns: 3; } }
.mosaic-item { break-inside: avoid; margin-bottom: 1rem; }

.insights-footer { text-align: center; font-size: 0.72rem; color: var(--ink-muted); padding: 2.5rem 0 1rem; }

.article-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.article-thumb {
  width: 100%; height: 12rem; overflow: hidden; flex-shrink: 0;
  background: var(--canvas);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; display: block; }
.article-card:hover .article-thumb img { transform: scale(1.03); }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; gap: 0.5rem; }
.article-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem;
}
.article-cat-pill {
  font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.2rem 0.625rem; border-radius: 999px; background: var(--primary-light); color: var(--primary);
}
.article-read-time { font-size: 0.6875rem; color: var(--ink-muted); }
.article-tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
}
.article-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.article-excerpt { font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.6; flex: 1; }
.article-meta {
  font-size: 0.72rem; color: var(--ink-muted); display: flex; gap: 0.75rem; align-items: center;
  margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

/* ── 3-col feature grid (about/services/index pages) ─────────────────────── */
.feature-grid {
  display: grid; gap: 1.25rem; margin: 2rem 0;
}
@media (min-width: 640px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem;
}
.feature-icon { color: var(--primary); margin-bottom: 0.875rem; }
.feature-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.feature-body  { font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.65; }

/* ── Marketing form (newsletter, contact) ─────────────────────────────────── */
.mkt-form-wrap { max-width: 540px; }
.mkt-form { display: flex; flex-direction: column; gap: 1.125rem; }
.mkt-field { display: flex; flex-direction: column; gap: 0.35rem; }
.mkt-label { font-size: 0.8125rem; font-weight: 500; color: var(--ink); }
.mkt-input, .mkt-textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  background: var(--canvas); padding: 0.625rem 0.875rem; font-size: 0.875rem;
  color: var(--ink); outline: none; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mkt-input::placeholder, .mkt-textarea::placeholder { color: var(--ink-muted); opacity: 0.6; }
.mkt-input:focus, .mkt-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.mkt-textarea { resize: vertical; min-height: 130px; }

/* ── Two-col layout (contact page) ───────────────────────────────────────── */
.two-col { display: grid; gap: 3rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1.6fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-item-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.contact-item-val   { font-size: 0.9rem; color: var(--ink); }

/* ── Dimensions table (about / methodology pages) ────────────────────────── */
.dimensions-table { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.dimension-row {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem 1.5rem;
}
@media (min-width: 640px) { .dimension-row { flex-direction: row; align-items: flex-start; gap: 2rem; } }
.dimension-row:nth-child(odd)  { background: var(--surface); }
.dimension-row:nth-child(even) { background: var(--canvas); }
.dimension-label {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); width: 8rem; flex-shrink: 0; padding-top: 2px;
}
.dimension-desc { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; }

/* ── Signal cards (caution/positive/watch) ───────────────────────────────── */
.signal-cards { display: flex; flex-direction: column; gap: 1rem; }
.signal-card { border-radius: 12px; border: 1px solid; padding: 1.5rem; }
.signal-card-positive { background: color-mix(in srgb, var(--primary) 5%, transparent);  border-color: color-mix(in srgb, var(--primary) 22%, transparent); }
.signal-card-caution  { background: rgba(217,119,6,0.05);  border-color: rgba(217,119,6,0.2); }
.signal-card-watch    { background: rgba(239,68,68,0.05);  border-color: rgba(239,68,68,0.2); }
.signal-label {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.signal-label-positive { color: var(--primary); }
.signal-label-caution  { color: var(--amber-dark); }
.signal-label-watch    { color: var(--loss); }
.signal-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.signal-item { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: var(--ink-muted); }
.signal-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 0.4rem; }
.signal-dot-positive { background: var(--primary); }
.signal-dot-caution  { background: var(--amber-dark); }
.signal-dot-watch    { background: var(--loss); }

/* ── Track chips (scan-series, solutions pages) ──────────────────────────── */
.track-group-label {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.75rem;
}
.track-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.track-chip {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 160px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.track-chip:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 4%, transparent);
}
.track-chip-top   { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.2rem; }
.track-chip-code  { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); }
.track-chip-name  { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.track-chip-note  { font-size: 0.6875rem; color: var(--ink-muted); }

/* ── Source list (sources/methodology pages) ──────────────────────────────── */
.source-group { margin-bottom: 2.5rem; }
.source-group-label {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.875rem;
}
.source-list { display: flex; flex-direction: column; gap: 0.5rem; }
.source-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.875rem 1.125rem; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.source-name { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.source-desc { font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.55; }
.source-type {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 0.15rem 0.45rem;
  white-space: nowrap; flex-shrink: 0;
}

/* ── Pricing tier cards ──────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; gap: 1.5rem; margin-top: 2.5rem;
}
@media (min-width: 768px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.pricing-tier {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary);
}
.pricing-price { font-size: 2rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.pricing-price-sub { font-size: 0.875rem; color: var(--ink-muted); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.pricing-features li {
  font-size: 0.875rem; color: var(--ink-muted); line-height: 1.55;
  padding-left: 1.25rem; position: relative;
}
.pricing-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}

/* ── Coming soon / signed-out / 404 ───────────────────────────────────────── */
.coming-soon { padding: 7rem 0 9rem; }
.coming-soon-inner { max-width: 480px; margin: 0 auto; text-align: center; }
.coming-soon-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 10%, transparent); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 2rem;
}
.coming-soon-eyebrow {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 1rem;
}
.coming-soon-h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); margin-bottom: 1rem;
}
.coming-soon-tagline {
  font-size: 1rem; font-weight: 500; color: var(--primary); margin-bottom: 1rem; line-height: 1.5;
}
.coming-soon-desc {
  font-size: 0.875rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 2.5rem;
}

/* ── Nav auth slot (desktop right side + mobile-nav bottom) ──────────── */
.nav-auth {
  display: none;
  align-items: center;
  gap: 0.625rem;
  margin-left: 1rem;
}
@media (min-width: 768px) { .nav-auth { display: flex; } }
.nav-auth .btn-ghost {
  font-size: 0.875rem;
  color: var(--ink-muted);
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.nav-auth .btn-ghost:hover { color: var(--ink); }
.nav-auth .btn-primary {
  font-size: 0.875rem;
  padding: 0.45rem 0.875rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  text-decoration: none;
}
.nav-auth .btn-primary:hover { background: var(--primary-dark); }
.nav-auth-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-user-label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-nav-auth {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.mobile-nav-auth .btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9375rem;
}
.btn-link {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--ink-muted);
  padding: 0.25rem 0;
  text-align: left;
}
.btn-link:hover { color: var(--ink); }
