@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=Frank+Ruhl+Libre:wght@300;400;500;700;900&display=swap');

/* ── GUIDE THEME ─────────────────────────────────────────── */
:root {
  --guide-sidebar-w: 260px;
  --guide-content-max: 780px;
  --guide-warm: #E8A87C;
  --guide-warm-light: rgba(232,168,124,0.12);
  --guide-rose-light: rgba(232,93,117,0.09);
  --guide-purple-light: rgba(187,178,238,0.15);
  --guide-section-gap: 120px;
  --anim-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-dark="true"] {
  --color-bg: #111113;
  --color-surface: #1D1D1F;
  --color-surface-elevated: #2C2C2E;
  --color-fg1: #F5F5F7;
  --color-fg2: #98989F;
  --color-fg3: #636366;
  --color-border: rgba(255,255,255,0.07);
  --color-border-strong: rgba(255,255,255,0.12);
  --guide-rose-light: rgba(232,93,117,0.12);
  --guide-purple-light: rgba(187,178,238,0.1);
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-large: 0 12px 40px rgba(0,0,0,0.4);
}

/* ── RESET + BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-fg1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ── KEYFRAME ANIMATIONS ──────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(2deg); }
  66%       { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-12px) scale(1.04); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,93,117,0); }
  50%       { box-shadow: 0 0 32px 8px rgba(232,93,117,0.2); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}
@keyframes draw-path {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}
@keyframes blob-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%       { border-radius: 50% 60% 30% 60% / 30% 70% 50% 60%; }
  75%       { border-radius: 60% 40% 60% 30% / 70% 30% 60% 40%; }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes count-fill {
  from { width: 0%; }
  to   { width: var(--target-w); }
}
@keyframes orbit {
  from { transform: rotate(var(--start)) translateX(var(--radius)) rotate(calc(-1 * var(--start))); }
  to   { transform: rotate(calc(var(--start) + 360deg)) translateX(var(--radius)) rotate(calc(-1 * (var(--start) + 360deg))); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.12); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.06); }
  70%       { transform: scale(1); }
}
@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.4); }
}
@keyframes progress-fill {
  from { width: 0; }
}
@keyframes check-draw {
  from { stroke-dashoffset: 30; }
  to   { stroke-dashoffset: 0; }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-scale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--anim-ease), transform 0.7s var(--anim-ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── PROGRESS BAR ─────────────────────────────────────────── */
#guide-progress-bar {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: var(--color-surface-elevated);
  z-index: 1000;
}
#guide-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #E85D75, #BBB2EE);
  width: 0%;
  transition: width 0.15s linear;
  border-radius: 0 2px 2px 0;
}
#guide-progress-pct {
  position: fixed;
  top: 12px;
  left: 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-fg3);
  z-index: 1000;
  letter-spacing: 0.05em;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.guide-layout {
  display: flex;
  min-height: 100vh;
}
.guide-content {
  flex: 1;
  padding-right: var(--guide-sidebar-w);
  min-width: 0;
}
@media (max-width: 900px) {
  .guide-content { padding-right: 0; }
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.guide-sidebar {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: var(--guide-sidebar-w);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  padding: 80px 0 40px;
  overflow-y: auto;
  z-index: 500;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}
.guide-sidebar::-webkit-scrollbar { width: 4px; }
.guide-sidebar::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 2px; }

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.sidebar-logo img { height: 28px; }

.sidebar-section-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fg3);
  padding: 0 20px;
  margin-bottom: 8px;
}

.sidebar-chapter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  border-right: 3px solid transparent;
  text-decoration: none;
  position: relative;
}
.sidebar-chapter:hover { background: var(--guide-rose-light); }
.sidebar-chapter.active {
  background: var(--guide-rose-light);
  border-right-color: var(--color-accent);
}
.sidebar-chapter-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-fg3);
  min-width: 20px;
  font-family: var(--font-body);
}
.sidebar-chapter-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-fg2);
  flex: 1;
  line-height: 1.3;
  transition: color 0.2s;
}
.sidebar-chapter.active .sidebar-chapter-name { color: var(--color-accent); font-weight: 600; }
.sidebar-chapter.done .sidebar-chapter-name { color: var(--color-fg1); }

.sidebar-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-success);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-chapter.done .sidebar-check { opacity: 1; }

.sidebar-bookmark-list {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
}
.sidebar-bookmark-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--color-fg3); text-transform: uppercase; margin-bottom: 8px;
}
.bookmark-item {
  font-size: 12px; color: var(--color-accent);
  cursor: pointer; padding: 4px 0;
  display: flex; align-items: center; gap: 6px;
}
.bookmark-item:hover { text-decoration: underline; }

/* ── MOBILE SIDEBAR ───────────────────────────────────────── */
.mobile-toc-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px; height: 52px;
  background: var(--color-accent);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 600;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-accent);
  animation: pulse-glow 3s ease-in-out infinite;
}
@media (max-width: 900px) {
  .guide-sidebar { display: none; }
  .guide-sidebar.mobile-open {
    display: flex;
    right: auto; left: 0;
    z-index: 650;
    background: var(--color-surface);
    box-shadow: var(--shadow-large);
  }
  .mobile-toc-btn {
    display: flex;
    z-index: 700;
  }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-fg1);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a0a10 0%, #1D1D1F 40%, #0f0a1a 100%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blob-morph 8s ease-in-out infinite;
  will-change: border-radius;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,93,117,0.3), transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(187,178,238,0.2), transparent 70%);
  bottom: -80px; left: -80px;
  animation-delay: -3s;
}
.hero-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,168,124,0.15), transparent 70%);
  top: 50%; left: 30%;
  animation-delay: -6s;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 40px 32px;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,93,117,0.15);
  border: 1px solid rgba(232,93,117,0.3);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #FF8FAB;
  letter-spacing: 0.03em;
  animation: reveal-up 0.8s var(--anim-ease) 0.2s both;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: #E85D75;
  border-radius: 50%;
  animation: heartbeat 2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 20px;
  animation: reveal-up 0.8s var(--anim-ease) 0.4s both;
  text-wrap: balance;
}
.hero-title span {
  background: linear-gradient(135deg, #E85D75, #BBB2EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  line-height: 1.6;
  animation: reveal-up 0.8s var(--anim-ease) 0.6s both;
}
.hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  animation: reveal-up 0.8s var(--anim-ease) 0.7s both;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.hero-meta-item svg { opacity: 0.6; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #E85D75, #D14A62);
  color: #fff;
  padding: 18px 40px;
  border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: reveal-up 0.8s var(--anim-ease) 0.9s both, pulse-glow 3s ease-in-out 2s infinite;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent-hover); }

/* ── SECTION BASE ─────────────────────────────────────────── */
.guide-section {
  padding: 100px 60px;
  max-width: calc(var(--guide-content-max) + 120px);
  margin: 0 auto;
  position: relative;
}
@media (max-width: 700px) { .guide-section { padding: 60px 20px; } }

.guide-section.alt-bg { background: var(--color-surface-elevated); }
.guide-section.dark-bg {
  background: var(--color-fg1);
  color: #F5F5F7;
}

.chapter-header {
  margin-bottom: 60px;
}
.chapter-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 12px;
}
.chapter-label-line {
  width: 24px; height: 2px; background: var(--color-accent); border-radius: 1px;
}
.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; line-height: 1.15;
  color: var(--color-fg1); margin-bottom: 16px;
  text-wrap: balance;
}
.chapter-desc {
  font-family: var(--font-body); font-size: 17px;
  font-weight: 300; line-height: 1.7;
  color: var(--color-fg2); max-width: 580px;
}

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--anim-ease), box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }

.card-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card-grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 700px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
}

/* ── NUMBERED PRINCIPLE CARDS ─────────────────────────────── */
.principle-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.principle-card:hover { transform: translateX(-4px); box-shadow: var(--shadow-medium); }
.principle-num {
  font-family: var(--font-display); font-size: 48px; font-weight: 900;
  line-height: 1; color: var(--color-accent);
  opacity: 0.25; min-width: 56px; text-align: center; flex-shrink: 0;
  transition: opacity 0.3s;
}
.principle-card:hover .principle-num { opacity: 0.5; }
.principle-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  background: var(--guide-rose-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── TABS ─────────────────────────────────────────────────── */
.tab-bar {
  display: flex; gap: 4px; overflow-x: auto;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: 24px;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1; min-width: 80px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--color-fg2); background: transparent;
  transition: all 0.2s var(--anim-ease);
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--color-surface);
  color: var(--color-fg1); font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.tab-content { animation: fade-scale 0.3s var(--anim-ease); }

/* ── ACCORDION ────────────────────────────────────────────── */
.accordion-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: var(--color-surface);
  margin-bottom: 10px;
}
.accordion-card:hover { box-shadow: var(--shadow-medium); }
.accordion-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  background: transparent; border: none; width: 100%;
  text-align: right;
}
.accordion-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 22px;
  transition: transform 0.3s;
}
.accordion-title {
  flex: 1; font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: var(--color-fg1);
}
.accordion-teaser {
  font-family: var(--font-body); font-size: 13px;
  color: var(--color-fg3); display: none;
}
.accordion-chevron {
  transition: transform 0.3s var(--anim-ease);
  color: var(--color-fg3); flex-shrink: 0;
}
.accordion-card.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--anim-ease);
  padding: 0 24px;
}
.accordion-card.open .accordion-body { max-height: 600px; }
.accordion-body-inner {
  padding-bottom: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* ── QUIZ ─────────────────────────────────────────────────── */
.quiz-container {
  max-width: 600px; margin: 0 auto;
}
.quiz-step-indicator {
  display: flex; gap: 6px; margin-bottom: 32px; justify-content: center;
}
.quiz-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-border-strong);
  transition: all 0.3s var(--anim-ease);
}
.quiz-dot.active { background: var(--color-accent); transform: scale(1.4); }
.quiz-dot.done { background: var(--color-success); }

.quiz-question {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--color-fg1); margin-bottom: 28px; text-align: center;
  line-height: 1.3;
}
.quiz-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 24px;
}
@media (max-width: 500px) { .quiz-options { grid-template-columns: 1fr; } }

.quiz-option-btn {
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border-strong);
  background: var(--color-surface);
  cursor: pointer; text-align: center;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--color-fg1);
  transition: all 0.2s var(--anim-ease);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.quiz-option-btn:hover { border-color: var(--color-accent); background: var(--guide-rose-light); transform: scale(1.02); }
.quiz-option-btn.selected {
  border-color: var(--color-accent);
  background: var(--guide-rose-light);
  color: var(--color-accent);
  transform: scale(1.02);
}
.quiz-option-emoji { font-size: 28px; }

.quiz-result {
  background: linear-gradient(135deg, var(--guide-rose-light), var(--guide-purple-light));
  border: 1px solid rgba(232,93,117,0.2);
  border-radius: var(--radius-2xl);
  padding: 36px;
  text-align: center;
  animation: fade-scale 0.5s var(--anim-ease);
}
.quiz-result-type {
  font-family: var(--font-display); font-size: 28px; font-weight: 900;
  color: var(--color-accent); margin-bottom: 12px;
}
.quiz-result-desc {
  font-family: var(--font-body); font-size: 16px; font-weight: 400;
  color: var(--color-fg2); line-height: 1.6;
}

/* ── FOOD TABLE ───────────────────────────────────────────── */
.food-table-wrap { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid var(--color-border); }
.food-table { width: 100%; border-collapse: collapse; }
.food-table th {
  background: var(--color-surface-elevated);
  padding: 14px 20px;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-fg3);
  text-align: right; border-bottom: 1px solid var(--color-border);
}
.food-table td {
  padding: 14px 20px;
  font-family: var(--font-body); font-size: 14px; color: var(--color-fg1);
  border-bottom: 1px solid var(--color-border); vertical-align: middle;
}
.food-table tr:last-child td { border-bottom: none; }
.food-table tr { transition: background 0.15s; }
.food-table tr:hover td { background: var(--guide-rose-light); }
.food-cat-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
}
.cat-protein { background: rgba(52,199,89,0.12); color: #2D9E47; }
.cat-carb    { background: rgba(255,149,0,0.12); color: #C07000; }
.cat-fat     { background: rgba(187,178,238,0.2); color: #7B6FC0; }
.cat-veg     { background: rgba(66,165,245,0.12); color: #1976D2; }

/* ── EXERCISE TABLE ───────────────────────────────────────── */
.exercise-row {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.exercise-row:hover { box-shadow: var(--shadow-soft); }
.exercise-header {
  display: grid; grid-template-columns: 1fr 80px 80px 80px 40px;
  gap: 12px; align-items: center;
  padding: 16px 20px;
  cursor: pointer; background: transparent; border: none; width: 100%;
  text-align: right;
}
.exercise-name { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--color-fg1); }
.exercise-meta { font-family: var(--font-body); font-size: 13px; color: var(--color-fg2); text-align: center; }
.exercise-expand-icon { color: var(--color-fg3); transition: transform 0.3s; flex-shrink: 0; justify-self: center; }
.exercise-row.open .exercise-expand-icon { transform: rotate(180deg); }
.exercise-detail {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--anim-ease);
  padding: 0 20px;
}
.exercise-row.open .exercise-detail { max-height: 400px; }
.exercise-detail-inner {
  padding: 16px 0 20px;
  border-top: 1px solid var(--color-border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 600px) { .exercise-detail-inner { grid-template-columns: 1fr; } }
.exercise-detail-block-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: 6px;
}
.exercise-detail-block p {
  font-size: 13px; color: var(--color-fg2); line-height: 1.6; margin: 0;
}

/* ── TIMELINE ─────────────────────────────────────────────── */
.timeline-vertical {
  position: relative; padding-right: 32px;
}
.timeline-vertical::before {
  content: '';
  position: absolute;
  right: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-purple));
  border-radius: 1px;
}
.timeline-item {
  position: relative; margin-bottom: 40px;
}
.timeline-dot {
  position: absolute;
  right: -38px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 3px rgba(232,93,117,0.2);
  transition: transform 0.3s;
}
.timeline-item:hover .timeline-dot { transform: scale(1.3); }

/* ── WEEK CAPSULE ─────────────────────────────────────────── */
.week-capsule {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.week-capsule:hover { box-shadow: var(--shadow-medium); }
.week-capsule-header {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 28px; cursor: pointer;
  background: transparent; border: none; width: 100%; text-align: right;
}
.week-num-badge {
  width: 52px; height: 52px;
  border-radius: var(--radius-xl);
  background: var(--guide-rose-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 900;
  color: var(--color-accent); flex-shrink: 0;
}
.week-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--color-fg1); }
.week-subtitle { font-family: var(--font-body); font-size: 13px; color: var(--color-fg3); margin-top: 2px; }
.week-capsule-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--anim-ease);
  padding: 0 28px;
}
.week-capsule.open .week-capsule-body { max-height: 1200px; }
.week-capsule-inner {
  padding: 0 0 28px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

/* ── TRACKER TABLE ────────────────────────────────────────── */
.tracker-table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.tracker-table th {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  color: var(--color-fg3); padding: 10px 8px; text-align: center;
}
.tracker-table td { vertical-align: middle; text-align: center; }
.tracker-label {
  font-family: var(--font-body); font-size: 13px;
  font-weight: 600; color: var(--color-fg1); text-align: right; padding-right: 8px;
}
.tracker-check {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border-strong);
  background: var(--color-surface);
  cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
  transition: all 0.2s var(--anim-ease);
}
.tracker-check:hover { border-color: var(--color-accent); transform: scale(1.1); }
.tracker-check.checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.tracker-check svg { opacity: 0; transition: opacity 0.2s; }
.tracker-check.checked svg { opacity: 1; animation: fade-scale 0.2s var(--anim-ease); }

/* ── PULL QUOTE ───────────────────────────────────────────── */
.pull-quote {
  border-right: 4px solid var(--color-accent);
  padding: 20px 28px;
  margin: 40px 0;
  position: relative;
}
.pull-quote-text {
  font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px);
  font-weight: 700; line-height: 1.3; color: var(--color-fg1);
  font-style: italic;
}
.pull-quote-icon {
  position: absolute; top: -16px; right: 20px;
  font-size: 60px; color: var(--color-accent); opacity: 0.15;
  font-family: Georgia, serif; line-height: 1;
}

/* ── TOOLTIP ──────────────────────────────────────────────── */
.tooltip-trigger {
  border-bottom: 1px dashed var(--color-accent);
  color: var(--color-accent);
  cursor: help; position: relative; display: inline;
}
.tooltip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--color-fg1);
  color: #F5F5F7;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  font-family: var(--font-body); font-size: 12px; line-height: 1.5;
  box-shadow: var(--shadow-large);
  z-index: 200;
  animation: slide-down 0.2s var(--anim-ease);
  pointer-events: none;
}
.tooltip-box::after {
  content: '';
  position: absolute; top: 100%; right: 16px;
  border: 6px solid transparent;
  border-top-color: var(--color-fg1);
}

/* ── WHY IMPORTANT ────────────────────────────────────────── */
.why-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  padding: 6px 14px; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--color-fg3);
  transition: all 0.2s;
  margin-top: 12px;
}
.why-btn:hover { background: var(--guide-rose-light); border-color: var(--color-accent); color: var(--color-accent); }
.why-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--anim-ease);
  background: var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  font-family: var(--font-body); font-size: 13px;
  color: var(--color-fg2); line-height: 1.7;
}
.why-content.open { max-height: 200px; padding: 16px; }

/* ── CALCULATORS ──────────────────────────────────────────── */
.calc-input-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
@media (max-width: 500px) { .calc-input-group { grid-template-columns: 1fr; } }
.calc-input-wrap { display: flex; flex-direction: column; gap: 6px; }
.calc-label { font-size: 12px; font-weight: 600; color: var(--color-fg3); }
.calc-input {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface);
  font-family: var(--font-body); font-size: 15px; color: var(--color-fg1);
  transition: border-color 0.2s;
  text-align: center;
  -moz-appearance: textfield;
}
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-input:focus { outline: none; border-color: var(--color-accent); }
.calc-btn {
  width: 100%; padding: 14px;
  background: var(--color-accent);
  color: white; border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.calc-btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.calc-result {
  text-align: center; padding: 20px;
  background: var(--guide-rose-light);
  border-radius: var(--radius-xl);
  margin-top: 16px;
  animation: fade-scale 0.4s var(--anim-ease);
}
.calc-result-num {
  font-family: var(--font-display); font-size: 42px; font-weight: 900;
  color: var(--color-accent); line-height: 1;
}
.calc-result-label { font-size: 14px; color: var(--color-fg2); margin-top: 4px; }

/* ── PROGRESS RING ────────────────────────────────────────── */
.progress-ring { transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: var(--color-border-strong); stroke-width: 8; }
.progress-ring-fill {
  fill: none; stroke: url(#ring-gradient);
  stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--anim-ease);
}

/* ── FOOD SWAP BANK ───────────────────────────────────────── */
.swap-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  font-family: var(--font-body); font-size: 14px;
  margin-bottom: 8px;
}
.swap-from { font-weight: 500; color: var(--color-fg2); }
.swap-arrow { color: var(--color-accent); font-size: 18px; flex-shrink: 0; }
.swap-to { font-weight: 600; color: var(--color-fg1); }
.swap-tag {
  margin-right: auto;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  background: var(--guide-rose-light); color: var(--color-accent);
}

/* ── DARK MODE TOGGLE ─────────────────────────────────────── */
.dark-mode-toggle {
  position: fixed;
  top: 20px; left: 112px;
  width: 44px; height: 24px;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  cursor: pointer; z-index: 1000;
  display: flex; align-items: center;
  padding: 2px; transition: background 0.3s;
}
.dark-mode-toggle.dark { background: var(--color-purple-deep, #9B8FE0); }
.dark-mode-knob {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-fg3);
  transition: transform 0.3s var(--anim-ease), background 0.3s;
}
.dark-mode-toggle.dark .dark-mode-knob { transform: translateX(-20px); background: white; }

/* ── MICROBIOME SVG ───────────────────────────────────────── */
.microbiome-container {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
}
.microbiome-svg { overflow: visible; }
.micro-orbit-ring {
  fill: none; stroke: var(--color-border);
  stroke-dasharray: 4 4;
  animation: spin-slow var(--duration, 20s) linear infinite;
  transform-origin: center;
}
.micro-bacteria {
  cursor: pointer;
  transition: transform 0.3s;
  transform-origin: center;
}
.micro-bacteria:hover { transform: scale(1.3); }

/* ── CHECKLIST ────────────────────────────────────────────── */
.habit-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  cursor: pointer; margin-bottom: 10px;
  transition: all 0.2s var(--anim-ease);
}
.habit-item.done { background: var(--guide-rose-light); border-color: rgba(232,93,117,0.2); }
.habit-checkbox {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--anim-ease);
  background: var(--color-surface);
}
.habit-item.done .habit-checkbox { background: var(--color-accent); border-color: var(--color-accent); }
.habit-check-svg { opacity: 0; transition: opacity 0.2s; }
.habit-item.done .habit-check-svg { opacity: 1; }
.habit-text { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.4; }
.habit-item.done .habit-text { color: var(--color-accent); }
.habit-desc { font-size: 13px; color: var(--color-fg3); margin-top: 4px; font-weight: 400; }

/* ── CORTISOL CYCLE ───────────────────────────────────────── */
.cycle-steps { display: flex; flex-direction: column; gap: 0; }
.cycle-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 24px; opacity: 0.4;
  transition: opacity 0.5s, background 0.3s;
  border-radius: var(--radius-xl);
}
.cycle-step.revealed { opacity: 1; background: var(--color-surface); }
.cycle-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent);
  color: white; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ── JOURNAL ──────────────────────────────────────────────── */
.journal-input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  font-family: var(--font-body); font-size: 14px; color: var(--color-fg1);
  resize: none; line-height: 1.6;
  transition: border-color 0.2s;
}
.journal-input:focus { outline: none; border-color: var(--color-accent); }
.journal-saved-indicator {
  font-size: 11px; color: var(--color-success); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  opacity: 0; transition: opacity 0.3s;
}
.journal-saved-indicator.show { opacity: 1; }

/* ── MISC ─────────────────────────────────────────────────── */
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-purple));
  border-radius: 2px; margin: 0 0 40px;
}
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
}
.tag-rose { background: var(--guide-rose-light); color: var(--color-accent); }
.tag-purple { background: var(--guide-purple-light); color: var(--color-purple-deep); }
.tag-warm { background: var(--guide-warm-light); color: var(--guide-warm); }

.icon-thin { stroke-width: 1.5; }
.warning-card {
  background: rgba(255,59,48,0.06);
  border: 1px solid rgba(255,59,48,0.15);
  border-radius: var(--radius-xl); padding: 16px 20px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

.animated-num {
  display: inline-block;
  animation: reveal-up 0.6s var(--anim-ease) both;
}

/* ── WAVE LOADER (music bars) ─────────────────────────────── */
.wave-loader { display: inline-flex; gap: 3px; align-items: flex-end; height: 20px; }
.wave-bar {
  width: 3px; border-radius: 2px;
  background: var(--color-accent);
  animation: wave 0.8s ease-in-out infinite;
}
.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 14px; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; height: 18px; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; height: 10px; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; height: 16px; }

/* ── TOOLTIP WRAPPER ──────────────────────────────────────── */
.t-wrap { position: relative; display: inline; }

/* ── SIDE NOTE ────────────────────────────────────────────── */
.side-note {
  background: var(--guide-purple-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-family: var(--font-body); font-size: 13px;
  color: var(--color-fg2); line-height: 1.6;
  border-right: 3px solid var(--color-purple);
  margin: 20px 0;
}

/* ── MICROBIOME VISUALS ─────────────────────────────────── */
.micro-scene {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  margin-bottom: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(232,93,117,0.12), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(187,178,238,0.16), transparent 30%),
    linear-gradient(135deg, var(--color-surface), rgba(255,255,255,0.02));
}
.micro-kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--guide-rose-light);
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.micro-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.micro-section-icon,
.micro-mini-icon,
.micro-function-icon,
.impact-node-icon,
.impact-center-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.micro-section-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--guide-rose-light), var(--guide-purple-light));
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.micro-inline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.micro-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.micro-icon-card {
  position: relative;
  overflow: hidden;
}
.micro-icon-card::after {
  content: "";
  position: absolute;
  left: -40px;
  top: -40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187,178,238,0.16), transparent 70%);
  pointer-events: none;
}
.micro-function-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.micro-function-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,93,117,0.08), rgba(187,178,238,0.12));
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.micro-scene-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--color-fg1);
}
.micro-scene-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-fg2);
  margin-bottom: 14px;
}
.micro-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.micro-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-fg1);
}
.micro-orbit {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.micro-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232,93,117,0.9), rgba(187,178,238,0.9));
  color: white;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow: 0 24px 60px rgba(232,93,117,0.22);
  animation: pulse-glow 4s ease-in-out infinite;
  z-index: 2;
}
.micro-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.16);
}
.micro-ring-a { width: 180px; height: 180px; animation: spin-slow 16s linear infinite; }
.micro-ring-b { width: 240px; height: 240px; animation: spin-reverse 22s linear infinite; }
.micro-ring-c { width: 290px; height: 290px; animation: spin-slow 28s linear infinite; opacity: 0.65; }
.micro-node {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17,17,19,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.micro-node-a { top: 34px; right: 46px; animation: float 5s ease-in-out infinite; }
.micro-node-b { top: 92px; left: 8px; animation: float2 4.5s ease-in-out infinite; }
.micro-node-c { bottom: 54px; right: 12px; animation: float 6s ease-in-out infinite; }
.micro-node-d { bottom: 24px; left: 44px; animation: float2 5.5s ease-in-out infinite; }
.micro-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E85D75, #BBB2EE);
  box-shadow: 0 0 16px rgba(232,93,117,0.4);
}
.micro-spark-a { top: 48px; left: 64px; animation: float2 2.4s ease-in-out infinite; }
.micro-spark-b { top: 210px; right: 44px; animation: float 2.9s ease-in-out infinite; }
.micro-spark-c { bottom: 42px; left: 110px; animation: float2 3.2s ease-in-out infinite; }

.impact-constellation {
  position: relative;
  min-height: 360px;
  margin-bottom: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(232,93,117,0.08), transparent 22%),
    radial-gradient(circle at 20% 20%, rgba(187,178,238,0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}
.impact-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.impact-center-badge {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(232,93,117,0.14), rgba(187,178,238,0.18));
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  margin-bottom: 10px;
  animation: pulse-glow 4s ease-in-out infinite;
}
.impact-center-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-fg1);
}
.impact-node {
  position: absolute;
  min-width: 120px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  color: var(--color-fg1);
  font-size: 13px;
  font-weight: 700;
}
.impact-node::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232,93,117,0.35), rgba(187,178,238,0.1));
}
.impact-node-1 { top: 24px; right: 22%; animation: float2 5s ease-in-out infinite; }
.impact-node-1::before { bottom: -24px; right: 18px; transform: rotate(55deg); }
.impact-node-2 { top: 34%; right: 8%; animation: float 5.5s ease-in-out infinite; }
.impact-node-2::before { right: 100%; top: 50%; transform: rotate(-10deg); }
.impact-node-3 { bottom: 22%; right: 18%; animation: float2 6s ease-in-out infinite; }
.impact-node-3::before { top: -16px; right: 22px; transform: rotate(-55deg); }
.impact-node-4 { top: 26%; left: 10%; animation: float 5.3s ease-in-out infinite; }
.impact-node-4::before { left: 100%; top: 50%; transform: rotate(8deg); }
.impact-node-5 { bottom: 18%; left: 16%; animation: float2 5.8s ease-in-out infinite; }
.impact-node-5::before { top: -14px; left: 24px; transform: rotate(50deg); }
.impact-node-6 { top: 10%; left: 28%; animation: float 4.8s ease-in-out infinite; }
.impact-node-6::before { bottom: -22px; left: 18px; transform: rotate(-48deg); }

.gut-brain-bridge {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: 24px;
  background:
    linear-gradient(90deg, rgba(232,93,117,0.06), transparent 25%, transparent 75%, rgba(187,178,238,0.1)),
    var(--color-surface);
}
.gb-side {
  text-align: center;
}
.gb-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: white;
}
.gb-brain {
  background: linear-gradient(135deg, #E85D75, #F0A8B8);
  animation: float2 4s ease-in-out infinite;
}
.gb-gut {
  background: linear-gradient(135deg, #8A7FE8, #BBB2EE);
  animation: float2 4.8s ease-in-out infinite;
}
.gb-label {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-fg2);
  max-width: 220px;
  margin: 0 auto;
}
.gb-channel {
  min-width: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gb-channel-line {
  width: 150px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #E85D75, #BBB2EE);
  opacity: 0.9;
}
.gb-channel-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
.gb-channel-wave span {
  width: 5px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #E85D75, #BBB2EE);
  animation: wave 0.9s ease-in-out infinite;
}
.gb-channel-wave span:nth-child(2) { animation-delay: 0.1s; height: 12px; }
.gb-channel-wave span:nth-child(3) { animation-delay: 0.2s; height: 20px; }
.gb-channel-wave span:nth-child(4) { animation-delay: 0.3s; height: 14px; }
.gb-channel-wave span:nth-child(5) { animation-delay: 0.4s; height: 18px; }
.gb-channel-tag {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-accent);
  background: var(--guide-rose-light);
  padding: 7px 12px;
  border-radius: 999px;
}

.synbiotic-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px;
  margin-bottom: 24px;
}
.syn-card {
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.syn-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  background-size: 200% 100%;
  animation: shimmer 3.2s linear infinite;
  opacity: 0.4;
}
.syn-pro { background: linear-gradient(135deg, rgba(232,93,117,0.1), rgba(232,93,117,0.02)); }
.syn-pre { background: linear-gradient(135deg, rgba(130,195,133,0.14), rgba(130,195,133,0.03)); }
.syn-post { background: linear-gradient(135deg, rgba(187,178,238,0.16), rgba(187,178,238,0.04)); }
.syn-head {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-fg1);
  margin-bottom: 4px;
}
.syn-sub {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--color-fg2);
}
.syn-plus, .syn-arrow {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-fg3);
}

/* ── CHAPTER 1 VISUALS ──────────────────────────────────── */
.nutrition-kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--guide-warm-light);
  color: var(--guide-warm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.nutrition-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.nutrition-section-icon,
.nutrition-mini-icon,
.nutrition-function-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--guide-warm);
}
.nutrition-section-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--guide-warm-light), rgba(232,93,117,0.08));
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.nutrition-inline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.nutrition-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.nutrition-icon-card {
  position: relative;
  overflow: hidden;
}
.nutrition-icon-card::after {
  content: "";
  position: absolute;
  left: -36px;
  top: -36px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,168,124,0.16), transparent 70%);
  pointer-events: none;
}
.nutrition-principle-card {
  align-items: flex-start;
  gap: 12px;
}
.nutrition-function-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,168,124,0.12), rgba(232,93,117,0.08));
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.nutrition-goal-card {
  overflow: hidden;
  position: relative;
}
.nutrition-goal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.14), transparent);
  background-size: 200% 100%;
  animation: shimmer 3.2s linear infinite;
  opacity: 0.3;
}
.nutrition-goal-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(232,168,124,0.16), rgba(187,178,238,0.16));
  border: 1px solid var(--color-border);
}
.calorie-dashboard {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  margin-bottom: 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(232,168,124,0.16), transparent 24%),
    radial-gradient(circle at 82% 26%, rgba(232,93,117,0.09), transparent 26%),
    linear-gradient(135deg, var(--color-surface), rgba(255,255,255,0.02));
}
.calorie-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--color-fg1);
  margin-bottom: 10px;
}
.calorie-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-fg2);
}
.calorie-rings {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calorie-rings::before,
.calorie-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.16);
}
.calorie-rings::before { width: 220px; height: 220px; animation: spin-slow 18s linear infinite; }
.calorie-rings::after { width: 290px; height: 290px; animation: spin-reverse 26s linear infinite; }
.calorie-center {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232,168,124,0.95), rgba(232,93,117,0.85));
  color: white;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow: 0 24px 60px rgba(232,168,124,0.18);
}
.calorie-chip {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17,17,19,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}
.calorie-chip-a { top: 28px; right: 54px; animation: float 5s ease-in-out infinite; }
.calorie-chip-b { top: 112px; left: 0; animation: float2 4.8s ease-in-out infinite; }
.calorie-chip-c { bottom: 54px; right: 20px; animation: float 6s ease-in-out infinite; }
.calorie-chip-d { bottom: 16px; left: 52px; animation: float2 5.4s ease-in-out infinite; }
.macro-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.macro-visual-item {
  text-align: center;
  padding: 14px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--color-border);
}
.macro-visual-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--guide-warm);
  background: linear-gradient(135deg, rgba(232,168,124,0.14), rgba(187,178,238,0.12));
  border: 1px solid var(--color-border);
}
.macro-visual-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-fg1);
  margin-bottom: 4px;
}
.macro-visual-sub {
  font-size: 13px;
  color: var(--color-fg2);
}
.plate-visual {
  display: flex;
  justify-content: center;
  padding: 24px;
  margin-bottom: 24px;
}
.plate-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px var(--color-border);
  position: relative;
}
.plate-q {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-weight: 800;
  color: white;
}
.plate-q span {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17,17,19,0.35);
  backdrop-filter: blur(10px);
}
.plate-q1 { background: linear-gradient(135deg, rgba(232,93,117,0.85), rgba(232,93,117,0.55)); }
.plate-q2 { background: linear-gradient(135deg, rgba(232,168,124,0.92), rgba(232,168,124,0.6)); }
.plate-q3 { background: linear-gradient(135deg, rgba(108,183,125,0.95), rgba(108,183,125,0.7)); }
.plate-q4 { background: linear-gradient(135deg, rgba(78,163,100,0.95), rgba(78,163,100,0.7)); }
.plate-center-badge {
  position: absolute;
  inset: auto 50% 50% auto;
  transform: translate(50%, 50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17,17,19,0.85);
  color: white;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ── CHAPTER 2 VISUALS ───────────────────────────────────── */
.bloat-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 58px 0 18px;
}
.bloat-section-icon,
.bloat-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: linear-gradient(180deg, rgba(232, 93, 117, 0.16), rgba(187, 178, 238, 0.18));
  border: 1px solid rgba(232, 93, 117, 0.18);
  box-shadow: 0 10px 26px rgba(232, 93, 117, 0.12);
}
.bloat-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
}
.bloat-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  flex-shrink: 0;
  font-size: 16px;
}
.bloat-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bloat-overview-card,
.bloat-bullet-card {
  position: relative;
  overflow: hidden;
}
.bloat-overview-card::after,
.bloat-bullet-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -55% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 178, 238, 0.18), transparent 68%);
  pointer-events: none;
}
.bloat-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(232, 93, 117, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(187, 178, 238, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
}
.bloat-hero h4 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  color: var(--color-fg1);
}
.bloat-hero p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-fg2);
}
.bloat-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.bloat-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(187, 178, 238, 0.42);
  color: var(--color-fg2);
  font-size: 12px;
  font-weight: 700;
}
.bloat-hero-art {
  position: relative;
  min-height: 290px;
}
.bloat-orbit {
  position: absolute;
  inset: 10% 14%;
  border: 1px dashed rgba(187, 178, 238, 0.4);
  border-radius: 50%;
}
.bloat-orbit-b {
  inset: 18% 22%;
  border-color: rgba(232, 93, 117, 0.32);
  animation: spinSlow 18s linear infinite reverse;
}
.bloat-orbit-a { animation: spinSlow 24s linear infinite; }
.bloat-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
}
.bloat-core-ring,
.bloat-core-ring-two {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 117, 0.12), transparent 68%);
  animation: pulseSoft 3s ease-in-out infinite;
}
.bloat-core-ring-two {
  inset: 18px;
  background: radial-gradient(circle, rgba(187, 178, 238, 0.18), transparent 66%);
  animation-delay: 1s;
}
.bloat-core-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fff7fb);
  border: 1px solid rgba(232, 93, 117, 0.18);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(232, 93, 117, 0.16);
}
.bloat-float {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(187, 178, 238, 0.35);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-fg2);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  animation: float2 4.8s ease-in-out infinite;
}
.bloat-float-1 { top: 10%; left: 8%; }
.bloat-float-2 { top: 18%; right: 6%; animation-delay: .8s; }
.bloat-float-3 { bottom: 16%; left: 14%; animation-delay: 1.2s; }
.bloat-float-4 { bottom: 8%; right: 14%; animation-delay: 1.6s; }
.digest-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}
.digest-stop {
  position: relative;
  padding: 18px 16px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247, 243, 255, 0.84));
  border: 1px solid var(--color-border);
  text-align: center;
}
.digest-stop-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: rgba(232, 93, 117, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.digest-stop-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-fg2);
}
.digest-stop-line {
  position: absolute;
  top: 50%;
  left: calc(100% - 4px);
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, rgba(232, 93, 117, 0.55), rgba(187, 178, 238, 0.55));
}
.bloat-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 22px;
}
.bloat-type-node {
  padding: 18px 14px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248, 243, 255, 0.9));
  border: 1px solid var(--color-border);
  text-align: center;
}
.bloat-type-node-icon {
  font-size: 25px;
  margin-bottom: 8px;
}
.bloat-type-node-label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-fg2);
  font-weight: 700;
}
.fodmap-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  padding: 20px 22px;
  margin-bottom: 22px;
}
.fodmap-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.fodmap-flow-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(232, 93, 117, 0.12), rgba(187, 178, 238, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.fodmap-flow-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-fg2);
}
.fodmap-flow-arrow { display: none; }

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ── CHAPTER 3 VISUALS ───────────────────────────────────── */
.train-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 58px 0 18px;
}
.train-section-icon,
.train-progression-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: linear-gradient(180deg, rgba(232, 93, 117, 0.14), rgba(187, 178, 238, 0.16));
  border: 1px solid rgba(187, 178, 238, 0.26);
  box-shadow: 0 10px 26px rgba(187, 178, 238, 0.14);
}
.train-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
}
.train-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(187, 178, 238, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(232, 168, 124, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
}
.train-hero h4 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  color: var(--color-fg1);
}
.train-hero p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-fg2);
}
.train-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.train-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(187, 178, 238, 0.42);
  color: var(--color-fg2);
  font-size: 12px;
  font-weight: 700;
}
.train-hero-art {
  position: relative;
  min-height: 280px;
}
.train-bars {
  position: absolute;
  inset: 10% 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 12px;
}
.train-bar {
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, rgba(232, 93, 117, 0.18), rgba(187, 178, 238, 0.42));
  animation: pulseSoft 3.2s ease-in-out infinite;
}
.train-bar-1 { height: 34%; }
.train-bar-2 { height: 52%; animation-delay: .4s; }
.train-bar-3 { height: 68%; animation-delay: .8s; }
.train-bar-4 { height: 84%; animation-delay: 1.2s; }
.train-hero-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fdf8ff);
  color: var(--color-accent);
  border: 1px solid rgba(187, 178, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 42px rgba(187, 178, 238, 0.18);
}
.train-float {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(187, 178, 238, 0.35);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-fg2);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  animation: float2 4.8s ease-in-out infinite;
}
.train-float-1 { top: 10%; left: 6%; }
.train-float-2 { top: 16%; right: 8%; animation-delay: .8s; }
.train-float-3 { bottom: 18%; left: 12%; animation-delay: 1.2s; }
.train-float-4 { bottom: 10%; right: 14%; animation-delay: 1.6s; }
.train-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  padding: 20px 22px;
  margin-bottom: 22px;
}
.train-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.train-flow-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(232, 93, 117, 0.12), rgba(187, 178, 238, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.train-flow-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-fg2);
}
.train-flow-arrow { display: none; }
.train-card-wrap,
.train-split-card,
.train-progression-card {
  position: relative;
  overflow: hidden;
}
.train-card-wrap::after,
.train-split-card::after,
.train-progression-card::after {
  content: "";
  position: absolute;
  inset: auto -16% -56% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 178, 238, 0.18), transparent 68%);
  pointer-events: none;
}
.train-progression-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 20px;
  margin-bottom: 10px;
}
.muscle-map {
  position: relative;
  min-height: 340px;
  margin-bottom: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(187, 178, 238, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
}
.muscle-map-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fdf8ff);
  border: 1px solid rgba(187, 178, 238, 0.3);
  box-shadow: 0 20px 48px rgba(187, 178, 238, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.muscle-map-center-icon {
  font-size: 34px;
  margin-bottom: 6px;
}
.muscle-map-center-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-fg2);
}
.muscle-map-node {
  position: absolute;
  width: 170px;
  padding: 14px;
  border-radius: var(--radius-2xl);
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}
.muscle-map-node::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(232, 93, 117, 0.45), rgba(187, 178, 238, 0.45));
}
.muscle-map-node-1 { top: 26px; right: 28px; }
.muscle-map-node-1::before { right: 100%; }
.muscle-map-node-2 { bottom: 34px; right: 30px; }
.muscle-map-node-2::before { right: 100%; }
.muscle-map-node-3 { bottom: 42px; left: 26px; }
.muscle-map-node-3::before { left: 100%; }
.muscle-map-node-4 { top: 28px; left: 28px; }
.muscle-map-node-4::before { left: 100%; }
.muscle-map-node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 8px;
}
.muscle-map-node-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-fg1);
  margin-bottom: 4px;
}
.muscle-map-node-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-fg2);
}
.weekly-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.weekly-track-col {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248, 243, 255, 0.86));
}
.weekly-track-head {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.weekly-track-days {
  display: grid;
  gap: 8px;
}
.weekly-track-day {
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(187, 178, 238, 0.26);
  font-size: 13px;
  color: var(--color-fg2);
  line-height: 1.5;
}

/* ── CHAPTER 4 VISUALS ───────────────────────────────────── */
.life-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 58px 0 18px;
}
.life-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: linear-gradient(180deg, rgba(232, 93, 117, 0.14), rgba(187, 178, 238, 0.16));
  border: 1px solid rgba(187, 178, 238, 0.26);
  box-shadow: 0 10px 26px rgba(187, 178, 238, 0.14);
}
.life-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(187, 178, 238, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(232, 93, 117, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
}
.life-hero h4 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  color: var(--color-fg1);
}
.life-hero p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-fg2);
}
.life-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.life-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(187, 178, 238, 0.42);
  color: var(--color-fg2);
  font-size: 12px;
  font-weight: 700;
}
.life-hero-art {
  position: relative;
  min-height: 280px;
}
.life-orbit {
  position: absolute;
  inset: 12% 18%;
  border: 1px dashed rgba(187, 178, 238, 0.36);
  border-radius: 50%;
}
.life-orbit-b {
  inset: 22% 28%;
  border-color: rgba(232, 93, 117, 0.3);
  animation: spinSlow 18s linear infinite reverse;
}
.life-orbit-a { animation: spinSlow 24s linear infinite; }
.life-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fdf8ff);
  color: var(--color-accent);
  border: 1px solid rgba(187, 178, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 42px rgba(187, 178, 238, 0.18);
}
.life-float {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(187, 178, 238, 0.35);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-fg2);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  animation: float2 4.8s ease-in-out infinite;
}
.life-float-1 { top: 10%; left: 8%; }
.life-float-2 { top: 18%; right: 8%; animation-delay: .8s; }
.life-float-3 { bottom: 18%; left: 12%; animation-delay: 1.2s; }
.life-float-4 { bottom: 10%; right: 14%; animation-delay: 1.6s; }
.life-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  padding: 20px 22px;
  margin-bottom: 22px;
}
.life-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.life-flow-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(232, 93, 117, 0.12), rgba(187, 178, 238, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.life-flow-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-fg2);
}
.life-flow-arrow { display: none; }
.life-card {
  position: relative;
  overflow: hidden;
}
.life-card::after {
  content: "";
  position: absolute;
  inset: auto -16% -56% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 178, 238, 0.16), transparent 68%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .micro-scene,
  .gut-brain-bridge,
  .synbiotic-strip {
    grid-template-columns: 1fr;
  }
  .nutrition-section-title {
    align-items: flex-start;
  }
  .calorie-dashboard,
  .macro-visual {
    grid-template-columns: 1fr;
  }
  .plate-circle {
    width: 260px;
    height: 260px;
  }
  .micro-section-title {
    align-items: flex-start;
  }
  .micro-orbit { min-height: 280px; }
  .impact-constellation {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 120px;
  }
  .impact-center {
    top: 18px;
    bottom: auto;
  }
  .impact-node {
    position: static;
    min-width: 0;
  }
  .impact-node::before { display: none; }
  .gb-channel { min-width: 0; }
  .gb-channel-line { width: 100%; max-width: 180px; }
  .syn-plus, .syn-arrow { display: none; }
  .bloat-hero {
    grid-template-columns: 1fr;
  }
  .bloat-section-title {
    align-items: flex-start;
  }
  .digest-journey,
  .bloat-type-grid,
  .fodmap-flow {
    grid-template-columns: 1fr 1fr;
  }
  .digest-stop-line,
  .fodmap-flow-arrow {
    display: none;
  }
  .bloat-hero-art {
    min-height: 240px;
  }
  .train-hero {
    grid-template-columns: 1fr;
  }
  .train-section-title {
    align-items: flex-start;
  }
  .train-flow {
    grid-template-columns: 1fr 1fr;
  }
  .train-hero-art {
    min-height: 240px;
  }
  .weekly-track {
    grid-template-columns: 1fr;
  }
  .muscle-map {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 128px;
  }
  .muscle-map-center {
    top: 18px;
    bottom: auto;
    width: 120px;
    height: 120px;
  }
  .muscle-map-node {
    position: static;
    width: auto;
  }
  .muscle-map-node::before {
    display: none;
  }
  .life-hero {
    grid-template-columns: 1fr;
  }
  .life-section-title {
    align-items: flex-start;
  }
  .life-flow {
    grid-template-columns: 1fr 1fr;
  }
  .life-hero-art {
    min-height: 240px;
  }
}

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
  padding: 7px 16px; border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface); cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--color-fg2); transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: white; }

/* search */
.search-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  font-family: var(--font-body); font-size: 15px; color: var(--color-fg1);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.search-input:focus { outline: none; border-color: var(--color-accent); }

/* ── BOOKMARK BTN ─────────────────────────────────────────── */
.bookmark-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--color-fg3); transition: color 0.2s;
  padding: 0;
}
.bookmark-btn:hover { color: var(--color-accent); }
.bookmark-btn.active { color: var(--color-accent); }

/* ── SMOOTH SCROLL INDICATOR ──────────────────────────────── */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 12px; font-family: var(--font-body);
  animation: float2 2s ease-in-out infinite;
}

/* ── BEFORE/AFTER WORKOUT ─────────────────────────────────── */
.workout-timing {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start;
}
.workout-timing-divider {
  width: 2px; background: var(--color-border);
  align-self: stretch; justify-self: center;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .workout-timing { grid-template-columns: 1fr; }
  .workout-timing-divider { width: 100%; height: 2px; }
}

/* ── PROBIOTIC TABLE ──────────────────────────────────────── */
.compare-table { width: 100%; }
.compare-col {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  padding: 28px; flex: 1;
}
.compare-col-header {
  text-align: center; padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border); margin-bottom: 20px;
}
.compare-col-icon { font-size: 36px; margin-bottom: 8px; }
.compare-col-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.compare-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body); font-size: 14px; color: var(--color-fg2); line-height: 1.5;
}
.compare-item:last-child { border-bottom: none; }
.compare-bullet { color: var(--color-accent); font-size: 18px; flex-shrink: 0; margin-top: -2px; }

/* ── SALES FUNNEL ─────────────────────────────────────────── */
.landing-page {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(187,178,238,0.05) 38%, rgba(232,93,117,0.04) 100%),
    var(--color-bg);
}
.landing-page .guide-section {
  width: min(100%, 1120px);
  max-width: 1120px;
  padding: 84px 32px;
}
.landing-page .guide-section + .guide-section {
  padding-top: 24px;
}
.landing-page .chapter-title {
  max-width: 860px;
}
.landing-page .chapter-desc {
  max-width: 760px;
}
.landing-hero {
  min-height: auto;
  padding: 86px 24px 58px;
}
.landing-hero-content {
  width: min(100%, 880px);
  max-width: 880px;
  padding: 28px 0;
}
.landing-hero .hero-title {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(36px, 5.4vw, 58px);
  overflow-wrap: break-word;
}
.landing-hero .hero-title span {
  display: block;
}
.landing-hero .hero-subtitle {
  max-width: 720px;
  margin: 0 auto 26px;
}
.landing-hero .hero-meta {
  gap: 12px;
  margin-bottom: 24px;
}
.landing-hero .hero-meta-item {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.72);
}
.landing-hero-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 18px;
}
.landing-hero-chip {
  min-height: 48px;
  font-size: 14px;
  white-space: normal;
  text-align: center;
}
.landing-primary-cta {
  justify-content: center;
  min-width: 210px;
  min-height: 56px;
  margin-top: 4px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.landing-personal-note {
  padding: 34px 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(187,178,238,0.09)),
    var(--color-surface);
}
.landing-personal-note .chapter-title {
  max-width: 760px;
}
.landing-personal-note-text {
  max-width: 820px;
  display: grid;
  gap: 14px;
}
.landing-personal-note-text p {
  margin: 0;
  color: var(--color-fg2);
  font-size: 15px;
  line-height: 1.9;
}
.landing-personal-photo-wrap {
  margin-top: 26px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(25,34,29,0.08);
  box-shadow: 0 18px 46px rgba(17,17,19,0.12);
}
.landing-personal-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7.4;
  object-fit: cover;
  object-position: center 56%;
}
.landing-before-after-grid {
  align-items: stretch;
}
.landing-belly-card {
  overflow: hidden;
}
.landing-belly-image {
  object-fit: contain;
}
.landing-section-cta {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 24px auto 0;
  text-align: center;
}
.landing-section-cta .hero-cta {
  animation: none;
  box-shadow: var(--shadow-accent);
}
.landing-cta-note {
  max-width: 440px;
  color: var(--color-fg3);
  font-size: 13px;
  line-height: 1.6;
}
.landing-sticky-cta {
  position: fixed;
  right: 18px;
  left: 18px;
  bottom: 16px;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(232,93,117,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 16px 42px rgba(18,18,20,0.16);
  backdrop-filter: blur(14px);
}
.landing-sticky-cta strong {
  display: block;
  color: var(--color-fg1);
  font-size: 14px;
  line-height: 1.2;
}
.landing-sticky-cta strong small {
  color: var(--color-fg3);
  font-size: 10px;
  font-weight: 700;
  text-decoration: line-through;
}
.landing-sticky-cta span {
  display: block;
  color: var(--color-fg3);
  font-size: 11px;
  line-height: 1.2;
}
.landing-sticky-cta a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #E85D75, #D14A62);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.sales-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 34px 32px;
  overflow: hidden;
}
.sales-copy {
  position: relative;
  z-index: 1;
}
.sales-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sales-chip,
.sales-price-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-fg1);
  line-height: 1.35;
}
.sales-price-tag {
  background: rgba(232,93,117,0.12);
  color: var(--color-accent);
  border-color: rgba(232,93,117,0.18);
}
.sales-limited-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(232,168,124,0.28);
  background: rgba(232,168,124,0.14);
  color: #B86B34;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.sales-visual {
  display: grid;
  align-content: center;
  gap: 12px;
}
.sales-flow-card {
  min-height: 64px;
  border-radius: 22px;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(245,240,251,0.78));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-fg1);
  box-shadow: var(--shadow-soft);
}
.sales-flow-card-2 { transform: translateX(-14px); }
.sales-flow-card-3 { transform: translateX(10px); }
.sales-flow-card-4 { transform: translateX(-6px); }
.sales-flow-arrow {
  justify-self: center;
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 800;
}
.sales-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sales-step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 20px 18px;
  min-height: 180px;
}
.sales-step-num {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(232,93,117,0.12);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.sales-step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-fg1);
}
.sales-step-desc {
  font-size: 13px;
  color: var(--color-fg2);
  line-height: 1.75;
}
.sales-purchase-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  padding: 36px;
  align-items: stretch;
}
.sales-purchase-copy,
.sales-form-wrap {
  min-width: 0;
}
.sales-mini-note {
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  background: rgba(187,178,238,0.14);
  color: var(--color-fg2);
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid rgba(187,178,238,0.18);
}
.sales-form-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(246,241,251,0.8));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
.sales-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.sales-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-fg3);
  margin-bottom: 8px;
}
.sales-input,
.sales-form-wrap select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-fg1);
}
.sales-static-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-xl);
  border: 1.5px dashed var(--color-border-strong);
  background: rgba(255,255,255,0.72);
  font-size: 13px;
  color: var(--color-fg2);
  line-height: 1.7;
}
.sales-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-fg2);
  line-height: 1.7;
}
.sales-consent input {
  flex: 0 0 auto;
  margin-top: 4px;
}
.sales-terms-consent {
  padding: 12px 14px;
  border: 1px solid rgba(232,93,117,0.18);
  border-radius: var(--radius-xl);
  background: rgba(232,93,117,0.06);
}
.sales-terms-consent a {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: none;
  margin: 0 4px;
}
.sales-terms-consent a:hover {
  text-decoration: underline;
}
.sales-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.72);
  color: var(--color-fg1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.sales-final-cta {
  margin: 0;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(232,93,117,0.16);
  background: linear-gradient(135deg, rgba(232,93,117,0.08), rgba(187,178,238,0.08));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.sales-final-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.sales-final-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-fg1);
  margin-bottom: 8px;
}
.sales-final-limited {
  margin-bottom: 10px;
}
.sales-final-text {
  font-size: 14px;
  color: var(--color-fg2);
  line-height: 1.8;
  max-width: 700px;
}
.landing-legal-links {
  width: min(100% - 44px, 1120px);
  margin: 0 auto;
  padding: 10px 32px 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--color-fg3);
  font-size: 13px;
}
.landing-legal-links a {
  color: var(--color-fg3);
  font-weight: 700;
  text-decoration: none;
}
.landing-legal-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.terms-page {
  min-height: 100vh;
  padding: 34px 22px 56px;
  background:
    radial-gradient(circle at 50% 0%, rgba(232,93,117,0.12), transparent 34%),
    linear-gradient(180deg, rgba(187,178,238,0.06), rgba(255,255,255,0) 40%),
    var(--color-bg);
}
.terms-hero,
.terms-card,
.terms-footer {
  width: min(100%, 980px);
  margin-right: auto;
  margin-left: auto;
}
.terms-hero {
  padding: 28px 0 18px;
}
.terms-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  color: var(--color-fg1);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.terms-hero h1 {
  margin: 12px 0 12px;
  max-width: 820px;
  color: var(--color-fg1);
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}
.terms-hero p {
  max-width: 780px;
  margin: 0 0 14px;
  color: var(--color-fg2);
  font-size: 16px;
  line-height: 1.85;
}
.terms-updated {
  color: var(--color-fg3);
  font-size: 13px;
  font-weight: 700;
}
.terms-card {
  margin-top: 16px;
  padding: 26px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-soft);
}
.terms-highlight {
  border-color: rgba(232,93,117,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(232,93,117,0.045));
}
.terms-card h2 {
  margin: 0 0 12px;
  color: var(--color-fg1);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
}
.terms-card p {
  margin: 0;
  color: var(--color-fg2);
  font-size: 14px;
  line-height: 1.9;
}
.terms-card p + p {
  margin-top: 10px;
}
.terms-card a {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: none;
}
.terms-card a:hover {
  text-decoration: underline;
}
.terms-footer {
  padding-top: 28px;
  text-align: center;
}

.guide-access-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(232,93,117,0.12), transparent 34%),
    var(--color-bg);
}
.guide-access-panel {
  width: min(100%, 520px);
  text-align: center;
  padding: 44px 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-large);
}
[data-dark="true"] .guide-access-panel {
  background: rgba(29,29,31,0.9);
}
.guide-access-logo {
  height: 30px;
  margin-bottom: 24px;
}
.guide-access-panel h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--color-fg1);
}
.guide-access-panel p {
  margin: 0 auto 24px;
  max-width: 380px;
  color: var(--color-fg2);
  line-height: 1.8;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .guide-layout {
    display: block;
    width: 100%;
    min-height: 100vh;
  }
  .guide-content {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    overflow-x: hidden;
  }
  #guide-progress-pct {
    top: 10px;
    right: 14px;
    left: auto;
    font-size: 10px;
  }
  .dark-mode-toggle {
    top: 14px;
    left: 14px;
  }
  .mobile-toc-btn {
    left: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
  .guide-sidebar.mobile-open {
    width: min(86vw, 320px);
    max-width: 320px;
    padding-top: 64px;
    border-right: 1px solid var(--color-border);
  }
  .guide-content .hero-section {
    min-height: 100svh !important;
    padding: 68px 18px 58px;
  }
  .guide-content .hero-content {
    width: 100%;
    max-width: 390px;
    padding: 24px 0;
  }
  .guide-content .hero-badge {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 14px;
    margin-bottom: 22px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
  }
  .guide-content .hero-title {
    width: 100%;
    font-size: clamp(38px, 14vw, 52px);
    line-height: 1.12;
    margin-bottom: 16px;
    overflow-wrap: break-word;
  }
  .guide-content .hero-subtitle {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.7;
  }
  .guide-content .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 24px;
  }
  .guide-content .hero-meta-item {
    justify-content: center;
    text-align: center;
    min-height: 34px;
  }
  .guide-content .hero-cta {
    width: min(100%, 310px);
    justify-content: center;
    padding: 15px 22px;
    white-space: normal;
  }
  .scroll-indicator {
    display: none;
  }
  .guide-section {
    width: 100%;
    max-width: 100%;
    padding: 56px 18px !important;
    overflow-x: hidden;
  }
  .guide-section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .guide-section [style*="gridTemplateColumns"] {
    grid-template-columns: 1fr !important;
  }
  .chapter-header {
    margin-bottom: 34px;
  }
  .chapter-title {
    font-size: clamp(28px, 8.5vw, 38px);
    line-height: 1.18;
    overflow-wrap: break-word;
  }
  .chapter-desc {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.8;
  }
  .card {
    max-width: 100%;
    padding: 22px 18px !important;
    border-radius: 20px;
  }
  .card:hover,
  .principle-card:hover,
  .exercise-row:hover,
  .week-capsule:hover,
  .accordion-card:hover {
    transform: none;
  }
  .principle-card,
  .habit-item,
  .cycle-step,
  .swap-item {
    padding: 18px 16px;
    gap: 12px;
  }
  .principle-num {
    min-width: 42px;
    font-size: 36px;
  }
  .accordion-header,
  .week-capsule-header {
    padding: 18px 16px;
    gap: 12px;
  }
  .accordion-title,
  .week-title {
    font-size: 17px;
    line-height: 1.35;
  }
  .accordion-body {
    padding: 0 16px;
  }
  .week-capsule-body {
    padding: 0 16px;
  }
  .week-num-badge {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  .exercise-header {
    grid-template-columns: 1fr 42px;
    gap: 8px;
    padding: 15px 14px;
  }
  .exercise-header .exercise-meta {
    display: none;
  }
  .exercise-detail {
    padding: 0 14px;
  }
  .food-table-wrap,
  .tracker-table-wrap {
    width: 100%;
    overflow-x: visible !important;
  }
  .mobile-table-card {
    padding: 0 !important;
    overflow-x: visible !important;
  }
  .food-table,
  .mobile-stack-table,
  .tracker-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  .food-table thead,
  .mobile-stack-table thead,
  .tracker-table thead {
    display: none;
  }
  .food-table tbody,
  .mobile-stack-table tbody,
  .tracker-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }
  .food-table tr,
  .mobile-stack-table tr,
  .tracker-table tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface);
  }
  .food-table tr:hover td {
    background: transparent;
  }
  .food-table td,
  .mobile-stack-table td,
  .tracker-table td {
    display: grid;
    grid-template-columns: minmax(86px, 34%) 1fr;
    gap: 12px;
    align-items: start;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--color-border) !important;
    font-size: 13px !important;
    text-align: right !important;
    overflow-wrap: anywhere;
  }
  .food-table td:last-child,
  .mobile-stack-table td:last-child,
  .tracker-table td:last-child {
    border-bottom: none !important;
  }
  .food-table td::before,
  .mobile-stack-table td::before,
  .tracker-table td::before {
    content: attr(data-label);
    color: var(--color-fg3);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
  }
  .tracker-table .tracker-metric-name {
    display: block;
    grid-template-columns: 1fr;
    background: var(--guide-rose-light);
    color: var(--color-accent) !important;
    font-weight: 800 !important;
  }
  .tracker-table .tracker-metric-name::before {
    content: none;
  }
  .tracker-table input {
    width: 100% !important;
    min-height: 42px;
    text-align: right !important;
  }
  .mobile-edit-table td {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mobile-edit-table td::before {
    display: block;
  }
  .mobile-edit-table textarea {
    min-height: 92px !important;
  }
  .tab-bar {
    margin-right: -4px;
    margin-left: -4px;
    padding: 4px;
  }
  .tab-btn {
    flex: 0 0 auto;
    min-width: 104px;
    padding: 10px 14px;
  }
  .micro-scene,
  .micro-impact-map,
  .micro-functions-grid,
  .micro-action-grid,
  .micro-signal-grid {
    grid-template-columns: 1fr !important;
  }
  .microbiome-container {
    padding: 24px 0;
    overflow: hidden;
  }
  .microbiome-svg {
    width: min(100%, 320px);
    height: auto;
  }
  .micro-scene {
    align-items: stretch;
    gap: 18px;
    overflow: visible;
  }
  .micro-scene-copy {
    position: relative;
    z-index: 2;
  }
  .micro-orbit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: auto;
    padding: 14px 0 4px;
    margin-top: 4px;
  }
  .micro-core {
    grid-column: 1 / -1;
    justify-self: center;
    width: 112px;
    height: 112px;
    margin-bottom: 4px;
  }
  .micro-ring,
  .micro-spark {
    display: none;
  }
  .micro-node {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    width: 100%;
    padding: 8px 10px;
    text-align: center;
    animation: none !important;
    transform: none !important;
    backdrop-filter: none;
  }
  .pull-quote {
    margin: 28px 0;
    padding: 18px 20px;
  }
  .pull-quote-text {
    font-size: 21px;
  }
  .tooltip-box {
    width: min(260px, 78vw);
  }
  .guide-content footer {
    padding: 28px 18px !important;
    justify-content: center !important;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .landing-page .guide-section {
    padding: 56px 22px;
  }
  .landing-page .guide-section + .guide-section {
    padding-top: 18px;
  }
  .landing-hero {
    padding: 72px 18px 48px;
  }
  .landing-hero .hero-badge {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 14px;
    margin-bottom: 22px;
    line-height: 1.4;
    white-space: normal;
  }
  .landing-hero .hero-title {
    width: 100%;
    max-width: 350px;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.18;
    margin-bottom: 16px;
  }
  .landing-hero .hero-subtitle {
    max-width: 350px;
    font-size: 16px;
    margin-bottom: 22px;
  }
  .landing-hero .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 18px;
  }
  .landing-hero .hero-meta-item {
    justify-content: center;
    text-align: center;
  }
  .landing-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-bottom: 18px;
  }
  .landing-primary-cta {
    width: min(100%, 360px);
    min-width: 0;
    white-space: normal;
  }
  .landing-section-cta {
    margin-top: 18px;
  }
  .landing-personal-note {
    padding: 26px 22px;
  }
  .landing-personal-note-text p {
    font-size: 14px;
  }
  .landing-personal-photo-wrap {
    margin-top: 20px;
    border-radius: 22px;
  }
  .landing-personal-photo {
    aspect-ratio: 4 / 3;
    object-position: center;
  }
  .landing-before-after-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .landing-belly-card {
    min-height: 0 !important;
    padding: 12px 10px !important;
    border-radius: 18px;
  }
  .landing-belly-visual {
    border-radius: 16px !important;
    padding: 18px 8px 0 !important;
    margin-bottom: 12px !important;
  }
  .landing-belly-badge {
    top: 8px !important;
    left: 8px !important;
    max-width: calc(100% - 16px);
    padding: 5px 7px !important;
    font-size: 9px !important;
    line-height: 1.25;
    white-space: normal;
  }
  .landing-belly-image {
    max-width: 100% !important;
    margin-top: 18px !important;
    border-radius: 14px !important;
    box-shadow: none !important;
  }
  .landing-belly-title {
    font-size: 18px !important;
    margin-bottom: 5px !important;
  }
  .landing-belly-subtitle {
    font-size: 11px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
  }
  .landing-belly-points {
    gap: 7px !important;
  }
  .landing-belly-point {
    gap: 6px !important;
  }
  .landing-belly-point div {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
  .landing-sticky-cta {
    display: flex;
  }
  .landing-page {
    padding-bottom: 86px;
  }
  .sales-shell,
  .sales-purchase-shell,
  .sales-steps-grid,
  .sales-form-grid,
  .sales-final-cta {
    grid-template-columns: 1fr;
  }
  .sales-purchase-shell,
  .sales-form-wrap,
  .sales-final-cta {
    padding: 24px;
  }
  .sales-final-cta {
    display: grid;
    justify-items: stretch;
  }
  .landing-legal-links {
    width: min(100% - 36px, 390px);
    padding: 4px 0 28px;
    flex-wrap: wrap;
  }
  .terms-page {
    padding: 22px 18px 44px;
  }
  .terms-card {
    padding: 22px 20px;
  }
  .terms-hero h1 {
    font-size: 36px;
  }
  .terms-hero p {
    font-size: 15px;
  }
  .sales-flow-card-2,
  .sales-flow-card-3,
  .sales-flow-card-4 {
    transform: none;
  }
}
