/* CleverPATHS theme */
:root {
  --canvas:        #f9fafb;
  --surface:       #ffffff;
  --ink:           #1e293b;
  --ink-muted:     #64748b;
  --border:        #e2e8f0;
  --primary:       #003366;
  --primary-light: #e6eef5;
  --primary-dark:  #002244;
  --amber:         #ffd166;
  --gain:          #16a34a;
  --loss:          #dc2626;
  --font-sans:     system-ui, -apple-system, sans-serif;
  --font-mono:     monospace;
}
/*
 * base.css — canonical source (xcode)
 *
 * Structural styles for all vjs projects. All colours and fonts reference
 * CSS custom properties defined in theme.css — never hardcode values here.
 *
 * COPY INSTRUCTIONS
 * -----------------
 * Copy to public/css/base.css in each project.
 * Link in HTML *before* theme.css:
 *   <link rel="stylesheet" href="/css/base.css">
 *   <link rel="stylesheet" href="/css/theme.css">
 *
 * When improving, bring the change back here first, then re-copy to projects.
 */

/* ── 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 ──────────────────────────────────────────────────────────────── */
#cp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.08); }
.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-wordmark {
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.07em;
  color: var(--primary);
}
.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 + dropdown ───────────────────────────────────────── */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 60;
  -webkit-appearance: none;
  appearance: none;
}
@media (min-width: 768px) { .menu-btn { display: none; } }
.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.18s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; right: 1rem;
  margin-top: 0.25rem;
  width: 220px;
  background: var(--ink);
  flex-direction: column;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 49;
}
.mobile-nav.open { display: flex; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
  font-size: 0.9375rem; font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: transparent;
  cursor: pointer;
  z-index: 48;
}
.mobile-nav-overlay.open { display: block; }
@media (min-width: 768px) { .mobile-nav-overlay { display: none !important; } }

/* ── 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-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;
}

/* ── 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); }
/* home.css — CleverPATHS homepage section styles */

/* ── Hero two-column ─────────────────────────────────────────────────────── */
.hero-two-col {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero-two-col { grid-template-columns: 1fr 1fr; } }

.orbital-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbital-svg { width: 100%; max-width: 380px; }

/* ── Community strip ─────────────────────────────────────────────────────── */
.community-strip {
  padding: 4.5rem 0;
  background: var(--canvas);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.community-strip .strip-inner { max-width: 720px; margin: 0 auto; }
.community-strip h2 {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.community-strip p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Generic section wrappers ────────────────────────────────────────────── */
.cp-section         { padding: 4.5rem 0 6rem; }
.cp-section-canvas  { padding: 4.5rem 0 6rem; background: var(--canvas); border-top: 1px solid var(--border); }
.cp-section-border  { border-top: 1px solid var(--border); }
.cp-section-intro   { max-width: 560px; margin: 0 auto 3rem; text-align: center; }

/* ── Pillars grid ────────────────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.pillar-card.muted { opacity: 0.72; }

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink-muted) 60%, transparent);
  margin-bottom: 0.5rem;
}
.pillar-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.pillar-name-insights    { color: var(--primary); }
.pillar-name-track       { color: #10b981; }
.pillar-name-recaps      { color: #0ea5e9; }

.pillar-body {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
  flex: 1;
}
.pillar-cta {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  transition: opacity 0.15s;
}
.pillar-cta:hover { opacity: 0.7; }
.pillar-soon {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink-muted) 40%, transparent);
}

/* ── Dashboard story rows ────────────────────────────────────────────────── */
.dash-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) { .dash-row { grid-template-columns: 2fr 3fr; gap: 3.5rem; } }

.dash-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 1.5rem;
}
.dash-feature-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--primary) 70%, transparent);
}

/* SVG chart mount — gives the dynamically-rendered <svg> a fixed height
   the chart's preserveAspectRatio="none" can stretch into. */
.chart-svg-mount { width: 100%; height: 210px; }

/* InfoCardSquare cluster — 2/3/6-col responsive grid of stat cards. */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}
@media (min-width: 480px) { .info-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .info-card-grid { grid-template-columns: repeat(6, 1fr); } }
.info-card {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  position: relative;
  display: flex; flex-direction: column;
  padding: 10px 14px;
  text-align: center;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
}
.info-card-title {
  font-size: 11px; color: #374151; line-height: 1.2; margin-bottom: 4px;
}
.info-card-value {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1;
  margin: auto 0;
}
.info-card-delta {
  display: flex; justify-content: space-between;
  padding: 0 4px;
  font-size: 10px; font-weight: 600; color: #374151;
  margin-bottom: 6px;
}
.info-card-rule {
  height: 1px; background: rgba(0,0,0,0.12);
  margin: 0 8% 4px;
}
.info-card-labels {
  display: flex; justify-content: space-between;
  padding: 0 4px;
  font-size: 9px; color: #374151;
}

/* Subject-mix legend strip above the area chart */
.area-legend {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1rem;
  padding: 0.625rem 1rem 0.25rem;
}
.area-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--ink-muted); }
.area-legend-swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }

/* ── Pricing strip ───────────────────────────────────────────────────────── */
.pricing-strip { padding: 4.5rem 0 6rem; border-top: 1px solid var(--border); }
.pricing-pair {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: 720px; margin: 0 auto 2rem;
}
@media (min-width: 640px) { .pricing-pair { grid-template-columns: repeat(2, 1fr); } }
.pricing-tier {
  position: relative;
  border-radius: 18px;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
}
.pricing-tier.popular {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--primary) 35%, transparent);
  border-color: var(--primary);
}
.pricing-tier-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: #8be1e1; color: var(--ink);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}
.pricing-tier-label {
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.pricing-tier.popular .pricing-tier-label { color: rgba(255,255,255,0.7); }
.pricing-tier:not(.popular) .pricing-tier-label { color: var(--ink-muted); }
.pricing-tier-price {
  display: flex; align-items: baseline; gap: 4px; margin-bottom: 0.75rem;
}
.pricing-tier-price .amount { font-size: 2.25rem; font-weight: 600; }
.pricing-tier.popular .pricing-tier-price .amount { color: #fff; }
.pricing-tier:not(.popular) .pricing-tier-price .amount { color: var(--ink); }
.pricing-tier-price .per { font-size: 0.875rem; }
.pricing-tier.popular .pricing-tier-price .per { color: rgba(255,255,255,0.6); }
.pricing-tier:not(.popular) .pricing-tier-price .per { color: var(--ink-muted); }
.pricing-tier-desc { font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.pricing-tier.popular .pricing-tier-desc { color: rgba(255,255,255,0.8); }
.pricing-tier:not(.popular) .pricing-tier-desc { color: var(--ink-muted); }
.pricing-tier-features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.pricing-tier-features li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem;
}
.pricing-tier-features li::before {
  content: "✓"; font-weight: 700; flex-shrink: 0;
}
.pricing-tier.popular .pricing-tier-features li { color: rgba(255,255,255,0.9); }
.pricing-tier.popular .pricing-tier-features li::before { color: rgba(255,255,255,0.7); }
.pricing-tier:not(.popular) .pricing-tier-features li { color: var(--ink-muted); }
.pricing-tier:not(.popular) .pricing-tier-features li::before { color: var(--primary); }
.pricing-tier-cta {
  display: block; width: 100%; text-align: center;
  padding: 0.625rem 0; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
}
.pricing-tier.popular .pricing-tier-cta { background: #fff; color: var(--primary); }
.pricing-tier:not(.popular) .pricing-tier-cta { background: var(--primary); color: #fff; }
.pricing-strip-footnote {
  text-align: center; font-size: 0.75rem; color: var(--ink-muted);
}
.pricing-strip-footnote a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ── Browser chrome mockup ──────────────────────────────────────────────── */
.chart-frame {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.browser-chrome {
  background: var(--ink);
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.chrome-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chrome-label {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: rgba(255,255,255,0.35);
}
.chart-body { background: var(--surface); padding: 1rem; }

/* ── Bar chart mockup ────────────────────────────────────────────────────── */
.bar-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.625rem; color: color-mix(in srgb, var(--ink-muted) 60%, transparent); }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
}
.bar-group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}
.bar-total { height: calc(var(--v1) * 30px); background: #a8c0d4; }
.bar-hw    { height: calc(var(--v2) * 30px); background: #003366; }

.bar-x-labels {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.bar-x-label {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: color-mix(in srgb, var(--ink-muted) 50%, transparent);
  text-align: center;
}

/* ── KPI card cluster ────────────────────────────────────────────────────── */
.kpi-card-container {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  background: var(--surface);
}
.kpi-card-header {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
}
.kpi-header-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink-muted) 60%, transparent);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  padding: 0.75rem;
}
.kpi-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}
.kpi-title { font-size: 0.625rem; color: var(--ink-muted); margin-bottom: 4px; }
.kpi-value { font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1; }
.kpi-unit  { font-size: 0.625rem; color: var(--ink-muted); margin-top: 2px; }

/* ── Subject mix area chart ──────────────────────────────────────────────── */
.subject-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
}
.subject-item { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--ink-muted); }
.subject-swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.area-chart-svg { width: 100%; display: block; }

/* ── Pricing section ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

.price-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  background: var(--surface);
  position: relative;
}
.price-card-popular {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--primary) 25%, transparent);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.price-card   .price-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; }
.price-card-popular .price-label { color: rgba(255,255,255,0.65); }

.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 1rem; }
.price-card   .price-num { font-size: 2.5rem; font-weight: 600; line-height: 1; color: var(--ink); }
.price-card-popular .price-num { color: #fff; }
.price-card   .price-per { font-size: 0.875rem; color: var(--ink-muted); }
.price-card-popular .price-per { color: rgba(255,255,255,0.6); }

.price-card   .price-desc { font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; color: var(--ink-muted); }
.price-card-popular .price-desc { color: rgba(255,255,255,0.78); }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.75rem; }
.price-card   .price-features li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-muted); }
.price-card-popular .price-features li { color: rgba(255,255,255,0.88); }
.price-check { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.price-card   .price-check { stroke: var(--primary); }
.price-card-popular .price-check { stroke: rgba(255,255,255,0.65); }

.btn-price {
  display: block; width: 100%; text-align: center;
  border-radius: 8px; padding: 0.625rem;
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.15s;
}
.price-card   .btn-price { background: var(--primary); color: #fff; }
.price-card   .btn-price:hover { background: var(--primary-dark); }
.price-card-popular .btn-price { background: #fff; color: var(--primary); }
.price-card-popular .btn-price:hover { background: rgba(255,255,255,0.9); }

.pricing-footnote {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.pricing-footnote a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pricing-footnote a:hover { opacity: 0.8; }
/* marketing.css — shared styles for vjs-cp marketing pages */

/* ── Nav active state ────────────────────────────────────────── */
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ── Section helpers ─────────────────────────────────────────── */
.mkt-section        { padding: 5rem 0; }
.mkt-section-sm     { padding: 3.5rem 0; }
.mkt-section-surface { padding: 5rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mkt-section-dark   { padding: 5rem 0; background: var(--ink); }

/* ── Feature card grid ───────────────────────────────────────── */
.feature-grid { display: grid; gap: 1.25rem; }
@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 {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--canvas);
  transition: border-color 0.15s;
}
.feature-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.feature-card h3 { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; }

/* ── Three-col grid ──────────────────────────────────────────── */
.three-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .three-grid { grid-template-columns: repeat(3, 1fr); } }

.three-card { background: var(--canvas); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; display: flex; flex-direction: column; }
.three-num  { font-family: var(--font-mono); font-size: 0.625rem; color: color-mix(in srgb, var(--ink-muted) 40%, transparent); font-weight: 600; margin-bottom: 1rem; }
.three-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.three-body  { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; }

/* ── About page ──────────────────────────────────────────────── */
.about-two-col { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .about-two-col { grid-template-columns: repeat(2, 1fr); gap: 5rem; align-items: center; } }

.about-quote-block {
  background: linear-gradient(135deg, rgba(0,51,102,0.08), rgba(22,163,74,0.10));
  border: 1px solid rgba(0,51,102,0.2);
  border-radius: 20px; padding: 2.5rem;
  display: flex; flex-direction: column;
}
.about-quote-icon { width: 32px; height: 32px; fill: rgba(0,51,102,0.4); margin-bottom: 1.5rem; }
.about-quote-block blockquote {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600; color: var(--ink); line-height: 1.45; font-style: italic;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-grid { display: grid; gap: 2rem; max-width: 768px; margin: 0 auto; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

.plan-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 16px; padding: 2rem;
  background: var(--surface); border: 1px solid var(--border);
}
.plan-card.popular {
  background: var(--primary); border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,51,102,0.25);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: 999px;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--amber); color: var(--ink); white-space: nowrap;
}
.plan-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; }
.plan-card.popular .plan-label { color: rgba(255,255,255,0.7); }
.plan-price { font-size: 3rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.plan-card.popular .plan-price { color: #fff; }
.plan-period { font-size: 0.875rem; color: var(--ink-muted); }
.plan-card.popular .plan-period { color: rgba(255,255,255,0.6); }
.plan-note { font-size: 0.75rem; color: var(--ink-muted); margin-top: 4px; margin-bottom: 1rem; }
.plan-card.popular .plan-note { color: rgba(255,255,255,0.55); }
.plan-desc { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 1.75rem; }
.plan-card.popular .plan-desc { color: rgba(255,255,255,0.8); }
.plan-cta {
  display: block; width: 100%; text-align: center;
  border-radius: 8px; padding: 0.75rem;
  font-size: 0.875rem; font-weight: 600;
  background: var(--primary); color: #fff;
  transition: background 0.15s; margin-bottom: 2rem;
}
.plan-cta:hover { background: var(--primary-dark); }
.plan-card.popular .plan-cta { background: #fff; color: var(--primary); }
.plan-card.popular .plan-cta:hover { background: rgba(255,255,255,0.9); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; flex: 1; }
.plan-feature { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.plan-feature-check { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--primary); fill: none; }
.plan-card.popular .plan-feature-check { stroke: rgba(255,255,255,0.75); }
.plan-feature-text { color: var(--ink-muted); }
.plan-card.popular .plan-feature-text { color: rgba(255,255,255,0.9); }

/* ── Add-ons ─────────────────────────────────────────────────── */
.addon-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .addon-grid { grid-template-columns: repeat(2, 1fr); } }

.addon-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; }
.addon-label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.addon-price { font-size: 2rem; font-weight: 600; color: var(--ink); }
.addon-billing { font-size: 0.875rem; color: var(--ink-muted); margin-left: 0.25rem; }
.addon-detail { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; margin-top: 1rem; }

/* ── Role grid (how circle works) ────────────────────────────── */
.role-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }

.role-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; }
.role-icon { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 10%, transparent); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.role-icon svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; }
.role-name  { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }
.role-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.role-body  { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.faq-a { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; }

/* ── SEI legend pills (insights) ─────────────────────────────── */
.sei-legend { display: grid; gap: 0.75rem; max-width: 480px; }
@media (min-width: 640px) { .sei-legend { grid-template-columns: repeat(3, 1fr); } }

.sei-pill { display: flex; align-items: center; gap: 0.625rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.625rem 0.875rem; }
.sei-letter { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.sei-letter.s { background: #0ea5e9; }
.sei-letter.e { background: #10b981; }
.sei-letter.i { background: #f59e0b; }
.sei-pill-label { font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.sei-pill-desc  { font-size: 0.625rem; color: var(--ink-muted); margin-top: 2px; }

/* ── Filter pills (cleverrecaps) ─────────────────────────────── */
.pill-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-filter {
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-muted); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pill-filter:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink-muted) 40%, transparent); }
.pill-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Paper cards (cleverrecaps) ──────────────────────────────── */
.paper-grid { display: grid; gap: 1rem; }
@media (min-width: 640px)  { .paper-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .paper-grid { grid-template-columns: repeat(3, 1fr); } }

.paper-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.paper-card:hover { border-color: color-mix(in srgb, var(--primary) 30%, transparent); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.paper-card-top { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 0; }
.curriculum-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 0.625rem; font-weight: 500; }
.curriculum-badge.all          { background: rgba(0,0,0,0.05); color: var(--ink-muted); }
.curriculum-badge.australian   { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.curriculum-badge.british      { background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--primary); }
.curriculum-badge.international{ background: rgba(139,92,246,0.08); color: #7c3aed; }
.price-badge-free { background: rgba(22,163,74,0.1); color: #15803d; padding: 2px 8px; border-radius: 999px; font-size: 0.625rem; font-weight: 700; }
.price-badge-paid { background: rgba(0,0,0,0.05); color: var(--ink); padding: 2px 8px; border-radius: 999px; font-size: 0.625rem; font-weight: 700; }
.paper-card-body { flex: 1; padding: 1rem 1.25rem; }
.paper-strand { font-family: var(--font-mono); font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); opacity: 0.5; margin-bottom: 4px; }
.paper-title  { font-size: 0.875rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 0.5rem; }
.paper-desc   { font-size: 0.75rem; color: var(--ink-muted); line-height: 1.6; }
.paper-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem 1.25rem; gap: 0.75rem; }
.paper-meta { font-family: var(--font-mono); font-size: 0.625rem; color: color-mix(in srgb, var(--ink-muted) 50%, transparent); }
.paper-action-free { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); transition: background 0.15s; }
.paper-action-free:hover { background: color-mix(in srgb, var(--primary) 20%, transparent); }
.paper-action-paid { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; background: var(--primary); color: #fff; transition: background 0.15s; }
.paper-action-paid:hover { background: var(--primary-dark); }

/* ── Coming-soon cards ───────────────────────────────────────── */
.soon-grid { display: grid; gap: 1rem; }
@media (min-width: 640px)  { .soon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .soon-grid { grid-template-columns: repeat(3, 1fr); } }

.soon-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); border-radius: 12px; padding: 1rem 1.25rem; opacity: 0.5; }
.soon-card-title { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.soon-card-sub   { font-size: 0.75rem; color: var(--ink-muted); margin-top: 2px; }
.soon-badge { flex-shrink: 0; font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }

/* ── Mark My Script banner ───────────────────────────────────── */
.mms-banner { display: flex; flex-direction: column; gap: 1.25rem; background: color-mix(in srgb, var(--primary) 5%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); border-radius: 16px; padding: 1.25rem 1.5rem; }
@media (min-width: 640px) { .mms-banner { flex-direction: row; align-items: center; } }
.mms-eyebrow { font-family: var(--font-mono); font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary); margin-bottom: 4px; }
.mms-title   { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.mms-desc    { font-size: 0.75rem; color: var(--ink-muted); line-height: 1.6; margin-top: 4px; }

/* ── Insights coming-soon placeholder ────────────────────────── */
.insights-coming { text-align: center; padding: 4rem 2rem; border: 1px dashed var(--border); border-radius: 16px; }
.insights-coming p { font-size: 0.875rem; color: var(--ink-muted); }

/* ── 404 / signed-out / coming-soon page shell ───────────────────────────── */
.coming-soon {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}
.coming-soon-inner { max-width: 480px; margin: 0 auto; text-align: center; }
.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-desc {
  font-size: 0.875rem; color: var(--ink-muted); line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ── Insights page hero ──────────────────────────────────────────────────── */
.page-hero { padding: 5rem 0 3rem; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.page-h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1rem; line-height: 1.15;
}
.page-sub {
  font-size: 1rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 2rem;
}

/* ── Page body wrapper ───────────────────────────────────────────────────── */
.page-body { padding: 0 0 5rem; }

/* ── SEI legend on insights page ─────────────────────────────────────────── */
.sei-legend-row { display: grid; gap: 0.75rem; max-width: 480px; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .sei-legend-row { grid-template-columns: repeat(3, 1fr); } }
.sei-pill { display: flex; align-items: center; gap: 0.625rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.625rem 0.875rem; }
.sei-letter { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.sei-letter.s { background: #0ea5e9; }
.sei-letter.e { background: #10b981; }
.sei-letter.i { background: #f59e0b; }
.sei-pill-label { font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.sei-pill-desc  { font-size: 0.625rem; color: var(--ink-muted); margin-top: 2px; }

/* ── Insights filter tabs ────────────────────────────────────────────────── */
.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.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); }

/* ── Article mosaic ──────────────────────────────────────────────────────── */
.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; }

/* ── Article card ────────────────────────────────────────────────────────── */
.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; }
.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-thumb-grad { width: 100%; height: 12rem; flex-shrink: 0; }

/* ── Category colour gradients (for image fallback bg) ─────────────────── */
.grad-support   { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.grad-engage    { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.grad-influence { background: linear-gradient(135deg, #fef3c7, #fde68a); }

.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;
}
.article-cat-pill.cat-support   { background: #e0f2fe; color: #0369a1; }
.article-cat-pill.cat-engage    { background: #d1fae5; color: #065f46; }
.article-cat-pill.cat-influence { background: #fef3c7; color: #92400e; }

.article-read-time { font-size: 0.6875rem; color: var(--ink-muted); }
.article-title    { font-size: 0.875rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.article-subtitle { font-size: 0.75rem; color: var(--ink-muted); line-height: 1.5; font-style: italic; }
.article-excerpt  { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; flex: 1; }
.article-meta     { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.6875rem; color: var(--ink-muted); margin-top: auto; }
.article-meta-read { font-size: 0.6875rem; font-weight: 500; color: var(--primary); }

/* ── Insights footer ─────────────────────────────────────────────────────── */
.insights-footer { text-align: center; font-size: 0.72rem; color: var(--ink-muted); padding: 2.5rem 0 1rem; }


/* ── 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.25rem;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav-auth a {
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}
.mobile-nav-auth .btn-primary {
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  text-align: center;
  font-size: 0.875rem;
}
.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); }
