/* ───────────────────────────────────────────────────────────
   EpicureAI Labs — Health-Tech Design System v2
   Stripe × Linear × Clinical Journal
   ─────────────────────────────────────────────────────────── */
:root {
  /* Canvas */
  --bg: #FAFAF7;
  --bg-2: #F4F4EE;
  --surface: #FFFFFF;
  --surface-tint: #F0F4F7;

  /* Ink */
  --ink: #0A1628;
  --ink-2: #1A2A3F;
  --muted: #5C6B7A;
  --muted-2: #8A95A3;
  --border: #E5E8EC;
  --border-strong: #D0D6DD;

  /* Brand — pulled from EpicureAI logo */
  --teal: #2DD4BF;
  --teal-2: #14B8A6;
  --blue: #1E5FBF;
  --blue-2: #0F3D80;
  --blue-deep: #0A1F4D;

  /* Gradient stops */
  --grad-start: #2DD4BF;
  --grad-mid:   #18A0C4;
  --grad-end:   #1E5FBF;

  /* Semantic */
  --accent-bg: rgba(30, 95, 191, 0.06);
  --accent-bg-2: rgba(45, 212, 191, 0.08);
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 1px 1px rgba(10, 22, 40, 0.02);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.03);
  --shadow-lg: 0 12px 32px rgba(10, 22, 40, 0.08), 0 4px 8px rgba(10, 22, 40, 0.04);
  --shadow-glow: 0 0 0 1px rgba(45, 212, 191, 0.18), 0 8px 24px rgba(30, 95, 191, 0.10);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Space */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 2.5rem;
  --s-6: 3rem;
  --s-7: 4rem;
  --s-8: 5rem;
  --s-9: 6.5rem;
  --s-10: 8rem;

  --max-w: 1200px;
  --max-prose: 720px;
  --pad-x: clamp(1.25rem, 4vw, 2rem);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Dot-grid background utility ─── */
.dotgrid {
  background-image: radial-gradient(circle, rgba(10,22,40,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}
.dotgrid-fade {
  position: relative;
}
.dotgrid-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10,22,40,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); letter-spacing: -0.034em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); letter-spacing: -0.026em; line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: 0.92rem; font-weight: 600; }

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  font-style: italic;
}
em.serif, .serif em { font-style: italic; font-family: var(--font-serif); font-weight: 400; }

p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: var(--s-3);
  max-width: var(--max-prose);
}
p.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-bottom: var(--s-4);
  max-width: 760px;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}
a:hover { color: var(--blue); }
a.link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(30, 95, 191, 0.35);
}
a.link:hover { text-decoration-color: var(--blue); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { padding-left: 1.2rem; margin-bottom: var(--s-3); }
ul li, ol li { font-size: 1.0625rem; line-height: 1.62; margin-bottom: 0.4rem; color: var(--ink-2); }

/* ─── Eyebrow / Tag ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 0 0 3px var(--accent-bg-2);
}
.eyebrow.no-dot::before { display: none; }

.muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(110deg, var(--teal) 0%, var(--blue) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
  z-index: 1;
}
section { padding: var(--s-9) 0; position: relative; }
section.tight { padding: var(--s-7) 0; }

/* ─── Nav ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.nav-logo-img {
  height: 70px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 70px;
  width: auto;
  display: block;
  margin-bottom: var(--s-2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover {
  background: var(--accent-bg);
  color: var(--ink);
}
.nav-links a.active {
  color: var(--ink);
  background: var(--accent-bg);
}
.nav-cta {
  background: var(--ink) !important;
  color: var(--bg) !important;
  padding: 0.55rem 1rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
  margin-left: 0.4rem;
  transition: background 0.18s ease !important;
}
.nav-cta:hover {
  background: var(--blue) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: var(--pad-x);
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 220px;
    gap: 0.1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0.85rem; }
  .nav-cta { margin-left: 0; margin-top: 0.4rem; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg) !important;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue); color: white !important; box-shadow: var(--shadow-md); }
.btn-grad {
  background: linear-gradient(110deg, var(--teal) 0%, var(--blue) 100%);
  color: white !important;
  box-shadow: 0 4px 14px rgba(30, 95, 191, 0.28);
}
.btn-grad:hover { box-shadow: 0 6px 22px rgba(30, 95, 191, 0.36); transform: translateY(-1px); color: white !important; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
  display: inline-block;
}
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(3px); }

.actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: var(--s-4);
}

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.badge-grad {
  background: linear-gradient(110deg, var(--accent-bg-2), var(--accent-bg));
  border-color: rgba(45, 212, 191, 0.25);
  color: var(--blue-2);
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ─── Hero ─── */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow-wrap { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--s-3); flex-wrap: wrap; }

.hero h1 {
  margin-bottom: var(--s-3);
  max-width: 22ch;
}
.hero .hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 660px;
  margin-bottom: var(--s-4);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Floating accent shapes */
.hero-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-accent::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(45,212,191,0.16), transparent 60%);
  filter: blur(40px);
}
.hero-accent::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(30,95,191,0.14), transparent 60%);
  filter: blur(40px);
}

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-3);
  transition: border-color 0.2s ease, box-shadow 0.22s ease, transform 0.22s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card.tilt-on-hover:hover { transform: translateY(-2px); }
.card .card-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.card h3, .card h4 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; line-height: 1.55; color: var(--muted); margin-bottom: 0; }
.card.accent { border-color: rgba(45,212,191,0.3); background: linear-gradient(180deg, var(--surface), rgba(240,244,247,0.4)); }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-link:hover { color: inherit; }
.card-link:hover .card { border-color: var(--ink); box-shadow: var(--shadow-md); }

/* ─── Grids ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.grid-2-1 { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); }
@media (max-width: 880px) {
  .grid-2, .grid-2-1 { grid-template-columns: 1fr; gap: var(--s-3); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
}

.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }

/* ─── Stat card ─── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3);
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.stat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.stat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.stat-card:hover::before { opacity: 1; }
.stat-card .stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.stat-card .stat {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.6rem;
  display: block;
  background: linear-gradient(110deg, var(--ink) 0%, var(--blue-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card .stat-note {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0;
}

/* ─── Tables ─── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table th {
  text-align: left;
  padding: 0.95rem 1.1rem;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-2);
  line-height: 1.5;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: rgba(30, 95, 191, 0.025); }
table td.muted { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) {
  table { font-size: 0.88rem; }
  table th, table td { padding: 0.7rem 0.8rem; }
}

/* ─── Callout ─── */
.callout {
  background: linear-gradient(135deg, var(--surface-tint), var(--bg-2));
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
}
.callout .eyebrow { margin-bottom: 0.6rem; }
.callout p { font-size: 0.98rem; line-height: 1.55; color: var(--ink-2); }
.callout p:last-child { margin-bottom: 0; }

/* ─── Dark block (CTA) ─── */
.dark-block {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.dark-block::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,212,191,0.18), transparent 60%);
  pointer-events: none;
}
.dark-block::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30,95,191,0.22), transparent 60%);
  pointer-events: none;
}
.dark-block > * { position: relative; z-index: 1; }
.dark-block .eyebrow { color: var(--teal); }
.dark-block .eyebrow::before { background: var(--teal); box-shadow: 0 0 0 3px rgba(45,212,191,0.16); }
.dark-block h2 { color: var(--bg); }
.dark-block p { color: rgba(250,250,247,0.78); max-width: 640px; }
.dark-block a { color: var(--bg); }
.dark-block .btn-primary {
  background: var(--bg);
  color: var(--ink) !important;
}
.dark-block .btn-primary:hover { background: white; color: var(--ink) !important; }
.dark-block .btn-ghost {
  background: transparent;
  color: var(--bg) !important;
  border-color: rgba(250,250,247,0.3);
}
.dark-block .btn-ghost:hover { border-color: var(--bg); background: rgba(250,250,247,0.08); }
.dark-block .btn-grad { background: linear-gradient(110deg, var(--teal) 0%, var(--blue) 100%); color: white !important; }

/* ─── Section divider line ─── */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}
section + section { border-top: 1px solid var(--border); }

/* ─── Footer ─── */
.site-footer {
  padding: var(--s-7) 0 var(--s-4);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo-link { text-decoration: none; }
.footer-tag { font-size: 0.92rem; line-height: 1.55; color: var(--muted); margin-bottom: var(--s-2); max-width: 320px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
}

/* ─── Reveal-on-scroll utility ─── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge .dot { animation: none; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ─── Blog-specific ─── */
.blog-hero { padding: var(--s-7) 0 var(--s-5); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.blog-hero .container { max-width: 820px; }
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.blog-back:hover { color: var(--ink); }
.blog-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s-3);
  padding: 0.32rem 0.7rem;
  background: var(--accent-bg);
  border: 1px solid rgba(30, 95, 191, 0.18);
  border-radius: 999px;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: var(--s-3);
  line-height: 1.08;
}
.blog-excerpt {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: var(--s-4);
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.blog-meta-sep { color: var(--border-strong); }
.blog-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.blog-author-name { font-weight: 500; color: var(--ink); }

.blog-body { padding: var(--s-6) 0 var(--s-8); }
.blog-body .container { max-width: 760px; }

.blog-prose p {
  font-size: 1.13rem;
  line-height: 1.75;
  margin-bottom: var(--s-3);
  max-width: none;
  color: var(--ink-2);
}
.blog-prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  letter-spacing: -0.022em;
  margin-top: var(--s-5);
  margin-bottom: var(--s-3);
  line-height: 1.2;
  color: var(--ink);
}
.blog-prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.9vw, 1.32rem);
  margin-top: var(--s-4);
  margin-bottom: var(--s-2);
}
.blog-prose ul, .blog-prose ol { margin: var(--s-2) 0 var(--s-3); padding-left: 1.5rem; }
.blog-prose ul li, .blog-prose ol li {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 0.55rem;
  color: var(--ink-2);
}
.blog-prose strong { font-weight: 600; color: var(--ink); }
.blog-prose em { font-style: italic; }
.blog-prose blockquote {
  border-left: 3px solid var(--teal);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: var(--s-4) 0;
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
}
.blog-prose .callout {
  background: linear-gradient(135deg, var(--surface-tint), var(--bg-2));
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) 0;
}
.blog-prose .callout p { font-size: 1rem; margin-bottom: 0; line-height: 1.6; color: var(--ink-2); }
.blog-prose .callout p span {
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
  font-family: var(--font-serif);
}
.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-3) 0;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-prose table th {
  text-align: left;
  padding: 0.7rem 0.95rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-prose table td {
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink-2);
}
.blog-prose table tr:last-child td { border-bottom: none; }
.blog-prose .stat-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--s-3);
  align-items: center;
}
.blog-prose .stat-bar .sb-stat { text-align: center; }
.blog-prose .stat-bar .sb-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.026em;
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1;
  background: linear-gradient(110deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-prose .stat-bar .sb-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.blog-prose .stat-bar .sb-sep { width: 1px; height: 32px; background: var(--border); }
@media (max-width: 600px) {
  .blog-prose .stat-bar { grid-template-columns: 1fr; gap: var(--s-2); }
  .blog-prose .stat-bar .sb-sep { display: none; }
}

/* Blog list cards */
.blog-grid { display: grid; gap: 0; }
.blog-list-card {
  display: block;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
  color: var(--ink);
  transition: padding-left 0.2s ease;
}
.blog-list-card:hover { padding-left: 0.4rem; }
.blog-list-card:last-child { border-bottom: none; }
.blog-list-card .blog-cat { display: inline-flex; margin-bottom: var(--s-2); }
.blog-list-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  letter-spacing: -0.022em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  max-width: 760px;
  color: var(--ink);
  transition: color 0.18s ease;
}
.blog-list-card:hover h3 { color: var(--blue); }
.blog-list-card p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
  margin-bottom: 0.7rem;
  max-width: 720px;
}
.blog-list-card .blog-meta { font-size: 0.84rem; }

.blog-related { border-top: 1px solid var(--border); padding: var(--s-6) 0; margin-top: var(--s-6); }

/* Avola-specific: agent ring graphic */
.agent-ring {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════
   v3 ADDITIONS — Multi-product · Cohort · Legal
   ═══════════════════════════════════════════════════════════ */

/* ─── Product accent theming ─── */
.theme-avola  { --pa: #14B8A6; --pa-2: #1E5FBF; }
.theme-forsight { --pa: #7C3AED; --pa-2: #4C1D95; }

/* ─── Product card (index) ─── */
.product-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--pa, var(--teal)), var(--pa-2, var(--blue)));
  opacity: .9;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.product-card h3 {
  font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: .35rem;
}
.product-kicker {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pa, var(--teal)); font-weight: 500;
  display: block; margin-bottom: .75rem;
}
.product-tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.05rem; color: var(--muted); margin-bottom: var(--s-3);
}
.product-meta {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-3);
  padding-top: var(--s-3); border-top: 1px solid var(--border);
}
.chip {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em;
  padding: .3rem .6rem; border-radius: 100px;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--border);
}
.chip-accent {
  background: color-mix(in srgb, var(--pa, var(--teal)) 10%, transparent);
  color: var(--pa-2, var(--blue)); border-color: color-mix(in srgb, var(--pa, var(--teal)) 25%, transparent);
}

/* ─── Numbered step / week cards ─── */
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.step-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500;
  color: var(--teal-2); letter-spacing: .02em;
  display: inline-block; margin-bottom: .5rem;
}
.step-card h4 { font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: .5rem; }
.step-card p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }
.deliverable {
  display: block; margin-top: var(--s-3); padding-top: var(--s-2);
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-2); line-height: 1.5;
}
.step-card.highlight {
  border-color: var(--teal); box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, rgba(45,212,191,.05), var(--surface) 60%);
}

/* ─── Included / Not-included ─── */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 760px){ .scope-grid { grid-template-columns: 1fr; } }
.scope-box {
  border-radius: var(--radius-lg); padding: var(--s-4);
  border: 1px solid var(--border); background: var(--surface);
}
.scope-box.included { border-color: var(--teal); background: linear-gradient(180deg, rgba(45,212,191,.06), var(--surface) 55%); }
.scope-box.excluded { background: var(--bg-2); }
.scope-title {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: var(--s-3); font-weight: 500;
}
.scope-box.included .scope-title { color: var(--teal-2); }
.scope-box.excluded .scope-title { color: var(--muted); }
.scope-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.scope-list li { display: flex; gap: .7rem; font-size: .94rem; line-height: 1.55; align-items: flex-start; }
.scope-list li::before { flex: 0 0 auto; margin-top: .42rem; }
.scope-box.included .scope-list li::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--teal-2);
}
.scope-box.excluded .scope-list li::before {
  content: ""; width: 10px; height: 1.5px; background: var(--muted-2); margin-top: .68rem;
}
.scope-box.excluded .scope-list li { color: var(--muted); }

/* ─── Comparison two-column (generic vs this) ─── */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 760px){ .versus { grid-template-columns: 1fr; } }

/* ─── Big stat row ─── */
.statline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 860px){ .statline { grid-template-columns: repeat(2, 1fr); } }
.statline .sl-num {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; color: var(--ink);
}
.statline .sl-lab {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-top: .6rem; line-height: 1.5;
}

/* ─── Timeline / fee bar ─── */
.factbar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 760px){ .factbar { grid-template-columns: 1fr; } }
.factbar > div { background: var(--surface); padding: var(--s-4); }
.factbar .fb-lab {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.factbar .fb-val { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.factbar .fb-sub { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

/* ─── Sector pills ─── */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  font-size: .87rem; padding: .45rem .9rem; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.9);
}
.pill-light {
  border-color: var(--border); color: var(--ink-2); background: var(--surface);
}

/* ─── Disclaimer ─── */
.disclaimer {
  font-size: .78rem; line-height: 1.7; color: var(--muted-2);
  border-top: 1px solid var(--border); padding-top: var(--s-3);
}
.disclaimer strong { color: var(--muted); font-weight: 500; }

/* ─── Legal prose ─── */
.legal-prose { max-width: var(--max-prose); }
.legal-prose h2 {
  font-size: 1.25rem; letter-spacing: -0.01em;
  margin-top: var(--s-6); margin-bottom: var(--s-2);
  padding-top: var(--s-4); border-top: 1px solid var(--border);
}
.legal-prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-prose h3 { font-size: 1rem; margin-top: var(--s-4); margin-bottom: .6rem; }
.legal-prose p, .legal-prose li { font-size: .95rem; line-height: 1.75; color: var(--ink-2); }
.legal-prose p { margin-bottom: var(--s-2); }
.legal-prose ul, .legal-prose ol { margin: 0 0 var(--s-3) 1.15rem; }
.legal-prose li { margin-bottom: .5rem; }

/* ─── Agent grid (Forsight / AVOLA) ─── */
.agent-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s-3) var(--s-4);
  display: flex; gap: var(--s-3); align-items: flex-start;
}
.agent-idx {
  font-family: var(--font-mono); font-size: .8rem; color: var(--pa, var(--teal-2));
  font-weight: 500; flex: 0 0 auto; padding-top: .15rem;
}
.agent-card h4 { font-size: .98rem; margin-bottom: .3rem; }
.agent-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ─── Nav dropdown ─── */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; min-width: 250px; list-style: none;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.drop li { display: block; }
.drop a {
  display: block; padding: .6rem .75rem; border-radius: var(--radius-sm);
  font-size: .9rem; line-height: 1.4; text-decoration: none;
}
.drop a:hover { background: var(--bg-2); }
.drop .d-name { font-weight: 600; color: var(--ink); display: block; }
.drop .d-desc { font-size: .78rem; color: var(--muted); display: block; margin-top: .12rem; }
@media (max-width: 900px) {
  .drop {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; background: transparent;
    padding: .25rem 0 .25rem 1rem; min-width: 0;
  }
  .has-drop:hover .drop, .has-drop:focus-within .drop { transform: none; }
  .drop a { padding: .45rem 0; }
}

/* ─── Utility ─── */
.center { text-align: center; }
.maxw-prose { max-width: var(--max-prose); }
.maxw-prose-center { max-width: var(--max-prose); margin-left: auto; margin-right: auto; }
.section-tight { padding-top: var(--s-6); padding-bottom: var(--s-6); }

/* ─── Large numeric display (alias of .stat, used standalone) ─── */
.stat-num, .stat-number {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  background: linear-gradient(110deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

/* ─── Blog: stats grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
  margin: var(--s-5) 0;
}
.stats-grid > * {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3);
}
.stats-grid .stat-number { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .35rem; }

/* ─── Blog: table of contents ─── */
.toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--s-4);
  margin: var(--s-5) 0;
}
.toc h3, .toc h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.toc ul, .toc ol { margin: 0; padding-left: 1.15rem; }
.toc li { margin-bottom: .45rem; font-size: .93rem; line-height: 1.55; }
.toc a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ─── Blog: warning / caution box ─── */
.warning-box {
  background: #FFF8ED;
  border: 1px solid #F2D9A8;
  border-left: 3px solid #D98E1F;
  border-radius: var(--radius);
  padding: var(--s-4);
  margin: var(--s-5) 0;
}
.warning-box p:last-child { margin-bottom: 0; }
.warning-title {
  display: block;
  font-weight: 600;
  color: #8A5A0B;
  font-size: .95rem;
  margin-bottom: .5rem;
  letter-spacing: -0.01em;
}
