/* ═══════════════════════════════════════════════════════════
   GutType.com — Shared Stylesheet
   Design: Clean & Scientific
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal-900: #0d4f4a;
  --teal-700: #0b7a75;
  --teal-500: #14b8a6;
  --teal-300: #5eead4;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;

  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  --amber-500: #f59e0b;
  --amber-100: #fef3c7;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 14px rgba(0,0,0,.08);

  --max-w: 1160px;
  --nav-h: 72px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography Scale ─────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; font-weight: 400; }

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { color: var(--slate-700); }

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--slate-500);
  line-height: 1.7;
}

.label {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-700);
}

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

section { padding-block: clamp(4rem, 8vw, 7rem); }

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

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal-700);
  color: var(--white);
  border-color: var(--teal-700);
}
.btn-primary:hover {
  background: var(--teal-900);
  border-color: var(--teal-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--teal-700);
}
.btn-outline:hover {
  background: var(--teal-50);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
}

.btn-lg {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  transition: box-shadow .3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo-gut {
  color: var(--slate-900);
}

.logo-type {
  color: var(--teal-700);
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: .45rem .75rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--slate-500);
  border-radius: 6px;
  transition: color .2s, background .2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--teal-600);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .22s ease;
  transform-origin: left;
}

.nav-links a:hover {
  color: var(--teal-700);
  background: rgba(15,118,110,.06);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--teal-700);
  font-weight: 600;
}

.nav-links a.active::after {
  transform: scaleX(1);
}

/* CTA button in nav — override the underline hack */
.nav-links a.btn::after {
  display: none;
}

.nav-links a.btn {
  background: var(--teal-700);
  color: var(--white);
  border-radius: 8px;
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  margin-left: .5rem;
  letter-spacing: .01em;
  box-shadow: 0 1px 3px rgba(15,118,110,.25);
  transition: background .2s, box-shadow .2s, transform .15s;
}

.nav-links a.btn:hover {
  background: var(--teal-900);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(15,118,110,.35);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background .2s;
}

.nav-toggle:hover {
  background: var(--slate-50);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all .28s cubic-bezier(.4,0,.2,1);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: .15rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: .75rem 1rem;
    font-size: .95rem;
    border-radius: 8px;
  }

  .nav-links a::after { display: none; }

  .nav-links a.active {
    background: rgba(15,118,110,.08);
  }

  .nav-links a.btn {
    margin: .5rem 0 0;
    padding: .8rem 1rem;
    text-align: center;
    justify-content: center;
    font-size: .92rem;
  }

  .nav-cta { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--teal-900) 0%, #0b5e59 40%, #0b7a75 100%);
  color: var(--white);
  padding-block: clamp(5rem, 12vw, 9rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm10-70c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal-300);
}

.hero .lead {
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-top: .3rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  background: var(--teal-50);
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-header .label { margin-bottom: .6rem; }
.section-header h2 { margin-bottom: .8rem; }
.section-header .lead { max-width: 520px; }
.section-header.text-center .lead { margin-inline: auto; }

/* ── Gut Type Cards ───────────────────────────────────────── */
.type-card {
  border: 2px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .25s;
  background: var(--white);
}

.type-card:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.type-a .type-badge { background: #d1fae5; color: #065f46; }
.type-b .type-badge { background: #dbeafe; color: #1e40af; }
.type-c .type-badge { background: #fce7f3; color: #9d174d; }
.type-d .type-badge { background: #fef3c7; color: #92400e; }

.type-card ul {
  list-style: none;
  margin-top: 1rem;
}
.type-card ul li {
  font-size: .9rem;
  color: var(--slate-500);
  padding: .3rem 0;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.type-card ul li::before {
  content: '→';
  color: var(--teal-500);
  flex-shrink: 0;
  font-size: .85rem;
  margin-top: .05rem;
}

/* ── Quiz ─────────────────────────────────────────────────── */
.quiz-wrapper {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 740px;
  margin-inline: auto;
}

.quiz-header {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  padding: 2rem 2.5rem;
  color: var(--white);
}

.quiz-progress-bar {
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  margin-top: 1rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--teal-300);
  border-radius: 4px;
  transition: width .4s ease;
}

.quiz-body { padding: 2.5rem; }

.quiz-question {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--slate-900);
  margin-bottom: 1.75rem;
  line-height: 1.35;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
  text-align: left;
  width: 100%;
  font-family: var(--font-sans);
}

.quiz-option:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
}

.quiz-option.selected {
  border-color: var(--teal-700);
  background: var(--teal-50);
}

.quiz-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--slate-500);
  flex-shrink: 0;
  transition: all .2s;
}

.quiz-option.selected .quiz-option-letter {
  background: var(--teal-700);
  color: var(--white);
}

.quiz-option-text {
  font-size: .95rem;
  color: var(--slate-700);
  padding-top: .15rem;
  line-height: 1.4;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
}

.quiz-step-text {
  font-size: .85rem;
  color: var(--slate-400);
}

/* Quiz Result */
.quiz-result {
  padding: 2.5rem;
  text-align: center;
  display: none;
}

.result-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.result-type-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: .5rem;
}

.result-desc {
  color: var(--slate-500);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.result-traits {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.trait-pill {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: .82rem;
  font-weight: 500;
}

.result-cta {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

/* ── Feature Strip ────────────────────────────────────────── */
.feature-strip {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  padding-block: 3rem;
}

.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.feature-strip-item h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  margin-top: .6rem;
  margin-bottom: .3rem;
  color: var(--slate-900);
}

.feature-strip-item p {
  font-size: .88rem;
  color: var(--slate-500);
}

.feature-icon {
  font-size: 2rem;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: var(--white);
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner .lead { color: rgba(255,255,255,.75); margin-bottom: 2rem; }

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Blog Cards ───────────────────────────────────────────── */
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: .8rem;
  color: var(--slate-400);
  margin-bottom: .75rem;
}

.blog-card-tag {
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: 100px;
  padding: .15rem .6rem;
  font-size: .75rem;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  color: var(--slate-900);
}

.blog-card p {
  font-size: .9rem;
  color: var(--slate-500);
  line-height: 1.6;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-top: 1rem;
}

.blog-card-link:hover { color: var(--teal-900); }

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--white);
  padding-block: 2rem;
  border-bottom: 1px solid var(--slate-100);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--slate-500);
  font-weight: 500;
}

.trust-item svg,
.trust-item .t-icon {
  color: var(--teal-500);
  font-size: 1.1rem;
}

/* ── Accordion (FAQ) ──────────────────────────────────────── */
.accordion { border: 1px solid var(--slate-100); border-radius: var(--radius-md); overflow: hidden; }

.accordion-item { border-bottom: 1px solid var(--slate-100); }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-900);
  text-align: left;
  gap: 1rem;
}

.accordion-header:hover { background: var(--slate-50); }

.accordion-icon {
  font-size: 1.2rem;
  color: var(--teal-700);
  flex-shrink: 0;
  transition: transform .25s;
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-body p {
  padding: 0 1.5rem 1.25rem;
  font-size: .95rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.accordion-item.open .accordion-body { max-height: 500px; }

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin-inline: auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  width: 2px;
  bottom: 0;
  background: var(--slate-100);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--slate-900);
  padding-top: .7rem;
  margin-bottom: .4rem;
}

.step-content p { font-size: .95rem; color: var(--slate-500); }

/* ── Science Callout Box ──────────────────────────────────── */
.science-box {
  background: linear-gradient(135deg, var(--teal-50), #f0fdf4);
  border: 1px solid var(--teal-100);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
}

.science-box .label { margin-bottom: .5rem; }
.science-box h4 { margin-bottom: .5rem; font-family: var(--font-sans); font-weight: 600; }
.science-box p { font-size: .95rem; color: var(--slate-500); }

/* ── Stat highlight ───────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.stat-box {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.stat-box .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--teal-700);
  line-height: 1;
}

.stat-box .desc {
  font-size: .85rem;
  color: var(--slate-500);
  margin-top: .4rem;
  line-height: 1.4;
}

/* ── Viome partner strip ──────────────────────────────────── */
.partner-strip {
  background: var(--slate-50);
  padding: 2.5rem 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  text-align: center;
}

.partner-strip p {
  font-size: .85rem;
  color: var(--slate-400);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--slate-700);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--slate-900);
  color: rgba(255,255,255,.6);
  padding-block: 3rem 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .logo-gut { color: var(--white); }
.footer-brand .logo-type { color: var(--teal-300); }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--teal-300); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
}

.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--teal-300); }

.footer-disclaimer {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  line-height: 1.7;
}

/* ── Utilities ────────────────────────────────────────────── */
.bg-slate { background: var(--slate-50); }
.bg-teal  { background: var(--teal-50); }

.divider {
  height: 1px;
  background: var(--slate-100);
  margin-block: 3rem;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp .5s ease both; }
.fade-up-2 { animation: fadeUp .5s .1s ease both; }
.fade-up-3 { animation: fadeUp .5s .2s ease both; }

/* ════════════════════════════════════════════════════
   ARTICLE PAGE STYLES
   ════════════════════════════════════════════════════ */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--teal-500), var(--teal-300));
  z-index: 200;
  transition: width .1s linear;
}

/* Article header */
.article-page-header {
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--white);
}

.article-breadcrumb {
  font-size: .78rem;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.article-breadcrumb a {
  color: var(--slate-400);
  transition: color .2s;
}

.article-breadcrumb a:hover { color: var(--teal-700); }

.article-breadcrumb-sep { color: var(--slate-300); }

.article-page-header h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--slate-900);
  max-width: 840px;
  margin-bottom: 1.25rem;
}

.article-deck {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 2rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  flex-wrap: wrap;
}

.article-meta-row .blog-card-tag {
  font-size: .75rem;
}

.article-meta-detail {
  font-size: .8rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.article-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--slate-300);
  display: inline-block;
}

.article-peer-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal-700);
  background: rgba(15,118,110,.08);
  border: 1px solid rgba(15,118,110,.2);
  border-radius: 100px;
  padding: .3rem .85rem;
}

/* Hero image */
.article-hero-img {
  width: 100%;
  height: clamp(280px, 40vw, 500px);
  object-fit: cover;
  display: block;
  margin-top: 2.5rem;
}

/* Article layout: body + sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
  padding-block: 3rem 5rem;
}

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 3rem; }
  .article-sidebar { display: none; }
}

/* Article body typography */
.article-body {
  max-width: 720px;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--slate-700);
  margin-bottom: 1.4rem;
}

.article-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: var(--slate-900);
  margin: 2.5rem 0 .85rem;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.article-body h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--slate-800);
  margin: 2rem 0 .65rem;
}

/* Pull quote */
.article-pullquote {
  border-left: 4px solid var(--teal-500);
  margin: 2.5rem 0;
  padding: 1.25rem 1.75rem;
  background: rgba(15,118,110,.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-pullquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem) !important;
  color: var(--teal-800) !important;
  line-height: 1.5 !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

/* Inline article CTA */
.article-inline-cta {
  background: linear-gradient(135deg, #f0fafa 0%, #e6f7f6 100%);
  border: 1px solid rgba(15,118,110,.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.article-inline-cta-text {
  flex: 1;
  min-width: 200px;
}

.article-inline-cta-text strong {
  display: block;
  font-size: 1rem;
  color: var(--slate-900);
  margin-bottom: .35rem;
}

.article-inline-cta-text p {
  font-size: .9rem !important;
  color: var(--slate-500) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* Key finding box */
.article-key-finding {
  background: var(--slate-900);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}

.article-key-finding-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: .6rem;
}

.article-key-finding p {
  font-size: 1rem !important;
  color: rgba(255,255,255,.85) !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}

/* Sources section */
.article-sources {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--slate-100);
}

.article-sources h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.article-sources ol {
  padding-left: 1.25rem;
}

.article-sources li {
  font-size: .83rem;
  color: var(--slate-500);
  line-height: 1.65;
  margin-bottom: .6rem;
}

.article-sources li em {
  font-style: italic;
  color: var(--slate-600);
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-quiz-card {
  background: linear-gradient(160deg, #05140f, #0a2a22);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}

.sidebar-quiz-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: .65rem;
  line-height: 1.3;
}

.sidebar-quiz-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.sidebar-related {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-related h5 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.sidebar-related-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.sidebar-related-item:last-child { border-bottom: none; }

.sidebar-related-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-related-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--slate-700);
  line-height: 1.35;
  transition: color .2s;
}

.sidebar-related-title:hover { color: var(--teal-700); }

.sidebar-related-meta {
  font-size: .75rem;
  color: var(--slate-400);
  margin-top: .25rem;
}

/* Author strip */
.article-author-strip {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 3rem;
}

.article-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal-700);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.article-author-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: .2rem;
}

.article-author-bio {
  font-size: .82rem;
  color: var(--slate-500);
  line-height: 1.6;
}

/* Related articles grid at bottom */
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .related-articles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .related-articles-grid { grid-template-columns: 1fr; }
}

.related-article-card {
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.related-article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-article-thumb {
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.related-article-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-article-body h4 {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--slate-900);
  font-family: var(--font-serif);
  margin-bottom: .4rem;
  flex: 1;
}

.related-article-body p {
  font-size: .8rem;
  color: var(--slate-400);
}

/* ── Global mobile fixes (768px and below) ─────────────────── */
@media (max-width: 768px) {

  /* Quiz: reduce padding so it fits comfortably */
  .quiz-header { padding: 1.25rem 1.5rem; }
  .quiz-body { padding: 1.5rem; }
  .quiz-question { font-size: 1.15rem; margin-bottom: 1.25rem; }
  .quiz-result { padding: 1.75rem 1.5rem; }
  .quiz-nav {
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
  }
  .quiz-step-text { order: -1; width: 100%; text-align: center; }

  /* Section header padding */
  .section-header { margin-bottom: 2rem; }
}

@media (max-width: 480px) {

  /* Quiz option text size */
  .quiz-option { padding: .8rem 1rem; }
  .quiz-option-text { font-size: .9rem; }

  /* Result badge smaller */
  .result-badge { width: 70px; height: 70px; font-size: 1.7rem; }
  .result-type-name { font-size: 1.5rem; }

  /* CTA banner: tighter */
  .cta-banner { padding-block: 3rem; }
}
