@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #FDFCFA;
  --card-bg: #FFFFFF;
  --sidebar-bg: #F2EDE7;
  --sidebar-border: rgba(0,0,0,0.08);
  --text: #2C2C2C;
  --text-mid: #525250;
  --text-light: #96968E;
  --primary: #8B1A1A;
  --primary-bg: rgba(139, 26, 26, 0.05);
  --primary-light: rgba(139, 26, 26, 0.08);
  --accent: #D4842A;
  --accent-bg: rgba(212, 132, 42, 0.06);
  --accent-light: rgba(212, 132, 42, 0.12);
  --green: #1a7a1a;
  --green-bg: rgba(34, 139, 34, 0.07);
  --rule: rgba(0,0,0,0.05);
  --code-bg: #1E1E1E;
  --code-fg: #E8A435;
  --sidebar-w: 260px;
  /* Aliases used by per-page custom CSS (kept so pre-existing rules keep working) */
  --border: rgba(0,0,0,0.08);
  --text-primary: #2C2C2C;
  --text-secondary: #525250;
  --surface-subtle: rgba(0,0,0,0.025);
  --surface-muted:  rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════
   SIDEBAR
   ═══════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 16px;
}
.sidebar-logo img { height: 36px; }
.sidebar-logo .sidebar-title {
  font-size: 15px; font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
  letter-spacing: -0.2px;
}
.sidebar-logo .sidebar-sub {
  font-size: 10.5px;
  color: var(--text-light);
  margin-top: 1px;
}

.sidebar-section {
  padding: 0 12px;
  margin-bottom: 8px;
}
.sidebar-section-title {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  padding: 8px 10px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin: 1px 0;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.12s;
}
.sidebar-link:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
.sidebar-link.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}
.sidebar-link .link-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  min-width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  background: rgba(0,0,0,0.04);
  color: var(--text-light);
  flex-shrink: 0;
}
.sidebar-link.active .link-icon {
  background: var(--primary);
  color: #fff;
}
.sidebar-link .badge-new {
  font-size: 8px; font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px 0;
  border-top: 1px solid var(--sidebar-border);
}
.sidebar-footer a {
  font-size: 11px; color: var(--text-light);
  text-decoration: none;
}
.sidebar-footer a:hover { color: var(--primary); }
.sidebar-footer small {
  display: block;
  font-size: 10px; color: var(--text-light);
  margin-top: 4px;
  opacity: 0.7;
}

/* ═══════════════════════════════
   MOBILE NAV
   ═══════════════════════════════ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  z-index: 99;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.mobile-header img { height: 28px; }
.mobile-header span {
  font-size: 14px; font-weight: 700;
  color: var(--primary);
}
.hamburger {
  margin-left: auto;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none;
  cursor: pointer; font-size: 20px;
  color: var(--text);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}

/* ═══════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════ */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 32px 40px 60px;
}
.content {
  max-width: clamp(720px, 82vw, 1280px);
  margin: 0 auto;
}

/* ── Page header ── */
.page-header { margin-bottom: 32px; }
.page-header .breadcrumb {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.page-header .breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}
.page-header .breadcrumb a:hover { color: var(--primary); }
.page-header h1 {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.page-header h1 span { color: var(--primary); }
.page-header .page-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* ── Section ── */
section {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
section h2 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--primary); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
section h2 small {
  font-weight: 400; text-transform: none;
  letter-spacing: 0; color: var(--text-light);
  font-size: 11px;
}
section h2 .badge {
  font-size: 8px; font-weight: 700;
  background: var(--accent-light); color: var(--accent);
  padding: 2px 6px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 1px;
}
section h2 .badge-live {
  font-size: 8px; font-weight: 700;
  background: var(--green-bg); color: var(--green);
  padding: 2px 6px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 1px;
}
section h3 {
  font-size: 15px; font-weight: 600;
  margin-bottom: 8px; margin-top: 16px;
}
section h3:first-child { margin-top: 0; }

/* ── Rows (key-value) ── */
.r {
  display: flex; align-items: baseline;
  gap: 14px; padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.r:last-child { border-bottom: none; }
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  background: var(--code-bg); color: var(--code-fg);
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.r code:first-child { min-width: 100px; text-align: center; flex-shrink: 0; }
.r span { color: var(--text-mid); font-size: 13.5px; }
.r a { color: var(--primary); text-decoration: none; }
.r a:hover { text-decoration: underline; }

/* ── Numbered items ── */
.n {
  display: flex; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.n:last-child { border-bottom: none; }
.n i {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600; font-size: 10px;
  min-width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; flex-shrink: 0; margin-top: 3px;
  background: var(--primary-bg); color: var(--primary);
}
.n i.accent { background: var(--accent-bg); color: var(--accent); }
.n i.x { background: rgba(150, 40, 40, 0.06); color: #8C3838; }
.n i.check { background: var(--green-bg); color: var(--green); }
.n p { color: var(--text-mid); font-size: 13.5px; line-height: 1.6; }
.n p strong { color: var(--text); font-weight: 600; }

/* ── Columns ── */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Callout ── */
.callout {
  background: var(--primary-bg);
  border-left: 3px solid var(--primary);
  padding: 12px 16px; border-radius: 0 6px 6px 0;
  margin: 8px 0;
  max-width: 720px;
}
.callout p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.callout strong { color: var(--text); }
.callout.accent {
  background: var(--accent-bg);
  border-left-color: var(--accent);
}
.callout.green {
  background: var(--green-bg);
  border-left-color: var(--green);
}

/* ── Quote block ── */
.quote {
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  margin: 8px 0;
  font-style: italic;
  color: var(--text-mid);
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 720px;
}
.quote cite {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── Step blocks (walkthrough) ── */
.step {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.step:last-child { border-bottom: none; }
.step-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 11px;
  min-width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff;
}
.step-title { font-weight: 600; font-size: 15px; }
.step-body { padding-left: 38px; }
.step-body p { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; margin-bottom: 8px; }
.step-body p:last-child { margin-bottom: 0; }
.step-body ul { list-style: none; padding: 0; margin: 4px 0 8px; }
.step-body li {
  font-size: 13.5px; color: var(--text-mid);
  padding: 3px 0 3px 16px;
  position: relative; line-height: 1.6;
}
.step-body li::before {
  content: '\2022';
  color: var(--accent);
  font-weight: 700;
  position: absolute; left: 0;
}

/* ── Template/code block ── */
.template {
  background: var(--code-bg);
  color: #D4D4D4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 16px 18px;
  border-radius: 6px;
  margin: 8px 0 12px;
  overflow-x: auto;
  line-height: 1.9;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.template .comment { color: #6A9955; }
.template .key { color: var(--code-fg); }
.template .val { color: #9CDCFE; }

/* ── Outcome box ── */
.outcomes {
  background: var(--accent-bg);
  border: 1px solid rgba(212, 132, 42, 0.15);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 8px 0;
  max-width: 720px;
}
.outcomes h3 {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 8px;
  margin-top: 0;
}
.outcomes li {
  font-size: 13px; color: var(--text-mid);
  padding: 3px 0; list-style: none;
  padding-left: 18px; position: relative;
  line-height: 1.6;
}
.outcomes li::before {
  content: '\2713';
  color: var(--accent); font-weight: 700;
  position: absolute; left: 0;
}

/* ── Analogy box ── */
.analogy {
  background: var(--primary-bg);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 10px 0;
  max-width: 720px;
}
.analogy .label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--primary); margin-bottom: 4px;
}
.analogy p {
  font-size: 13px; color: var(--text-mid); line-height: 1.6;
}

/* ── Prose ── */
.prose { margin-bottom: 8px; max-width: 720px; }
.prose p {
  font-size: 14px; color: var(--text-mid);
  line-height: 1.7; margin-bottom: 8px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }

/* ── Session cards (index page) ── */
.session-grid { display: grid; gap: 14px; }
.session-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.session-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(139, 26, 26, 0.06);
  transform: translateY(-1px);
}
.session-card .card-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 13px;
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; flex-shrink: 0;
  background: var(--primary); color: #fff;
}
.session-card .card-num.upcoming { background: var(--accent); }
.session-card .card-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; margin-top: 0; }
.session-card .card-body .card-date {
  font-size: 11px; color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
}
.session-card .card-body .card-desc {
  font-size: 12.5px; color: var(--text-mid);
  margin-top: 6px; line-height: 1.55;
}

/* ── Video link ── */
.video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--primary-bg);
  border: 1px solid rgba(139, 26, 26, 0.12);
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  margin: 6px 0;
}
.video-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.video-link .lock {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 4px;
}
.video-link:hover .lock { color: rgba(255,255,255,0.6); }

/* ── Tool card ── */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-card {
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.12s;
}
.tool-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.tool-card h4 {
  font-size: 13px; font-weight: 600;
  margin-bottom: 3px;
}
.tool-card p {
  font-size: 11.5px; color: var(--text-mid);
  line-height: 1.5;
}
.tool-card .tool-tag {
  display: inline-block;
  font-size: 9px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 6px;
}
.tool-tag.core { background: var(--primary-bg); color: var(--primary); }
.tool-tag.data { background: var(--accent-bg); color: var(--accent); }
.tool-tag.video { background: var(--green-bg); color: var(--green); }
.tool-tag.research { background: rgba(75, 75, 200, 0.08); color: #4b4bc8; }
.tool-tag.writing { background: rgba(139, 26, 26, 0.05); color: #8B1A1A; }

/* ── Reading card ── */
.reading-card {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.reading-card:last-child { border-bottom: none; }
.reading-card .reading-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 3px;
  height: fit-content;
  flex-shrink: 0;
  margin-top: 2px;
}
.reading-type.article { background: var(--accent-bg); color: var(--accent); }
.reading-type.course { background: var(--primary-bg); color: var(--primary); }
.reading-type.guide { background: var(--green-bg); color: var(--green); }
.reading-type.docs { background: rgba(75, 75, 200, 0.08); color: #4b4bc8; }
.reading-card .reading-body a {
  font-size: 13.5px; font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.reading-card .reading-body a:hover { color: var(--primary); }
.reading-card .reading-body p {
  font-size: 12px; color: var(--text-light);
  margin-top: 2px; line-height: 1.5;
}

/* ── Footer ── */
.main-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.main-footer a {
  font-size: 12px; color: var(--text-light);
  text-decoration: none; font-weight: 500;
}
.main-footer a:hover { color: var(--primary); }
.main-footer small { font-size: 11px; color: var(--text-light); }

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
/* ── Copy block ── */
.copy-block {
  position: relative;
}
.copy-block .copy-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #aaa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.15s;
  z-index: 2;
}
.copy-block .copy-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.copy-block .copy-btn.copied {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ── Screenshot ── */
.screenshot {
  border-radius: 8px;
  border: 1px solid var(--rule);
  overflow: hidden;
  margin: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.screenshot img {
  width: 100%;
  display: block;
}
.screenshot .caption {
  font-size: 11px;
  color: var(--text-light);
  padding: 8px 12px;
  background: var(--sidebar-bg);
  font-style: italic;
}

/* ── Team callout ── */
.team-callout {
  background: var(--green-bg);
  border: 1px solid rgba(34, 139, 34, 0.12);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 12px 0;
}
.team-callout .team-names {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}
.team-callout p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Stat row ── */
.stat-row {
  display: flex; gap: 14px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.stat {
  flex: 1; min-width: 120px;
  background: var(--accent-bg);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}
.stat .stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; font-weight: 700;
  color: var(--accent);
}
.stat .stat-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── File tree ── */
.file-tree {
  background: var(--code-bg);
  color: #D4D4D4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 16px 20px;
  border-radius: 6px;
  margin: 8px 0;
  line-height: 2;
}
.file-tree .folder { color: var(--code-fg); font-weight: 600; }
.file-tree .file { color: #9CDCFE; }
.file-tree .desc { color: #6A9955; font-size: 10px; }

/* ── Video banner ── */
.video-banner {
  background: linear-gradient(135deg, var(--primary), #5a1010);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.video-banner .play-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: #fff;
}
.video-banner .video-info a {
  font-size: 14px; font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.video-banner .video-info a:hover { text-decoration: underline; }
.video-banner .video-info p {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* ── Featured prompt section ── */
.prompt-featured {
  border: 2px solid rgba(139, 26, 26, 0.15);
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(139, 26, 26, 0.02) 100%);
  box-shadow: 0 4px 20px rgba(139, 26, 26, 0.06);
}
.prompt-featured h2 {
  font-size: 12px;
  letter-spacing: 2px;
}
.prompt-featured .copy-block .template {
  border: 1px solid rgba(232, 164, 53, 0.15);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

/* ═══════════════════════════════
   HERO BANNER — Next Session
   ═══════════════════════════════ */
.hero-banner {
  background: linear-gradient(135deg, #1E1E1E 0%, #2a1010 50%, #3d1515 100%);
  border-radius: 14px;
  padding: 36px 36px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212, 132, 42, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(139, 26, 26, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(212, 132, 42, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-badge .pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-banner h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 8px;
  text-transform: none;
  position: relative;
  z-index: 1;
}
.hero-banner h2 span { color: var(--accent); }
.hero-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero-teaser {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 560px;
  position: relative;
  z-index: 1;
}
.hero-teaser strong { color: rgba(255,255,255,0.9); }
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.hero-btn.primary {
  background: var(--accent);
  color: #fff;
}
.hero-btn.primary:hover {
  background: #e8922e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 132, 42, 0.3);
}
.hero-btn.secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-btn.secondary:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.hero-popular {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

/* ── Community / Momentum section ── */
.momentum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.momentum-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  transition: all 0.15s;
}
.momentum-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(139, 26, 26, 0.05);
}
.momentum-card .mc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.momentum-card .mc-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.momentum-card .mc-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}
.momentum-card.highlight {
  border-color: rgba(212, 132, 42, 0.2);
  background: var(--accent-bg);
}

/* ── Inline CTA banner ── */
.cta-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--primary-bg);
  border: 1px solid rgba(139, 26, 26, 0.1);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.cta-inline:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(139, 26, 26, 0.08);
}
.cta-inline .cta-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.cta-inline .cta-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}
.cta-inline .cta-text p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}
.cta-inline .cta-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ── Teaser / locked content ── */
.teaser-section {
  position: relative;
  overflow: hidden;
}
.teaser-content {
  position: relative;
}
.teaser-content::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--card-bg));
  pointer-events: none;
}
.teaser-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(75, 75, 200, 0.06);
  border: 1px dashed rgba(75, 75, 200, 0.2);
  border-radius: 8px;
  padding: 14px 20px;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}
.teaser-lock p {
  font-size: 13px;
  font-weight: 600;
  color: #4b4bc8;
  margin: 0;
}
.teaser-lock .lock-icon {
  font-size: 14px;
}

/* ── Topic pill grid ── */
.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--rule);
  background: var(--card-bg);
  color: var(--text-mid);
}
.topic-pill.active {
  background: var(--primary-bg);
  border-color: rgba(139, 26, 26, 0.15);
  color: var(--primary);
}
.topic-pill .pill-icon {
  font-size: 14px;
}

/* ═══════════════════════════════
   JOURNEY PATH
   ═══════════════════════════════ */
.journey-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.journey-step {
  text-align: center;
  padding: 18px 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card-bg);
  position: relative;
}
.journey-step.done {
  border-color: rgba(34, 139, 34, 0.25);
  background: var(--green-bg);
}
.journey-step.today {
  border-color: rgba(212, 132, 42, 0.3);
  background: var(--accent-bg);
  box-shadow: 0 2px 12px rgba(212, 132, 42, 0.12);
}
.journey-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: var(--primary-bg); color: var(--primary);
}
.journey-step.done .journey-num { background: var(--green); color: #fff; }
.journey-step.today .journey-num { background: var(--accent); color: #fff; }
.journey-title {
  font-size: 12px; font-weight: 700;
  color: var(--text); margin-bottom: 3px;
}
.journey-desc {
  font-size: 11px; color: var(--text-mid); line-height: 1.45;
}
.journey-tag {
  font-size: 8px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 10px;
  margin-top: 8px; display: inline-block;
}
.journey-step.done .journey-tag { background: var(--green); color: #fff; }
.journey-step.today .journey-tag { background: var(--accent); color: #fff; }

/* ═══════════════════════════════
   BUILDER SPOTLIGHT
   ═══════════════════════════════ */
.builder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 12px 0;
}
.builder-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 16px;
  border-top: 3px solid var(--accent);
  transition: all 0.15s;
}
.builder-card:hover {
  border-color: rgba(212, 132, 42, 0.25);
  box-shadow: 0 2px 12px rgba(212, 132, 42, 0.08);
}
.builder-name {
  font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 2px;
}
.builder-project {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 8px;
}
.builder-desc {
  font-size: 12px; color: var(--text-mid); line-height: 1.55;
}

/* ═══════════════════════════════
   HOOK FLOW DIAGRAM
   ═══════════════════════════════ */
.hook-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 8px; align-items: center;
  margin: 16px 0;
}
.hook-step {
  text-align: center;
  padding: 16px 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card-bg);
}
.hook-step.safe { border-color: rgba(34, 139, 34, 0.2); background: var(--green-bg); }
.hook-step.check { border-color: rgba(212, 132, 42, 0.2); background: var(--accent-bg); }
.hook-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; color: var(--accent); font-weight: 700;
  text-align: center;
}
.hook-icon { font-size: 22px; margin-bottom: 6px; }
.hook-title {
  font-size: 11px; font-weight: 700;
  color: var(--text); margin-bottom: 2px;
}
.hook-desc {
  font-size: 10.5px; color: var(--text-mid); line-height: 1.45;
}

/* ═══════════════════════════════
   POWER PREVIEW
   ═══════════════════════════════ */
.power-preview {
  background: linear-gradient(135deg, #1E1E1E 0%, #2a1010 50%, #3d1515 100%);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 12px 0;
  position: relative;
  overflow: hidden;
}
.power-preview::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(212, 132, 42, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.power-preview h3 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 10px;
  position: relative; z-index: 1;
}
.power-preview p {
  font-size: 13px; color: rgba(255,255,255,0.7);
  line-height: 1.65; position: relative; z-index: 1;
}
.power-preview strong { color: rgba(255,255,255,0.9); }
.power-preview .power-stats {
  display: flex; gap: 20px; margin-top: 14px;
  position: relative; z-index: 1;
}
.power-stat {
  text-align: center;
}
.power-stat .ps-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; font-weight: 700; color: var(--accent);
}
.power-stat .ps-label {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.4); margin-top: 2px;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 280px;
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; z-index: 150; }
  .mobile-header { display: flex; }
  .main {
    margin-left: 0;
    padding: 72px 20px 40px;
  }
  .tool-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .step-body { padding-left: 0; }
  .hero-banner { padding: 24px 20px; }
  .hero-banner h2 { font-size: 22px; }
  .momentum-grid { grid-template-columns: 1fr; }
  .cta-inline { flex-direction: column; text-align: center; gap: 8px; }
  .cta-inline .cta-arrow { display: none; }
  .journey-path { grid-template-columns: repeat(2, 1fr); }
  .builder-grid { grid-template-columns: 1fr; }
  .hook-flow { grid-template-columns: 1fr; gap: 4px; }
  .hook-arrow { transform: rotate(90deg); }
  .power-preview .power-stats { flex-wrap: wrap; }
  .readings-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════
   VISIBILITY POLISH PASS (v2)
   — Layered overrides for existing components.
     No restructuring; just crispness.
   ═══════════════════════════════ */

/* 1. Sidebar active state — unmistakable left accent bar */
.sidebar-link.active {
  position: relative;
  padding-left: 13px;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 2px; top: 5px; bottom: 5px;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* 2. Stat tiles — thin top accent + hover lift
      Keeps the existing minimal feel but adds a "this is a card, not a paragraph" cue. */
.stat {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 132, 42, 0.10);
  transition: all 0.15s ease;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.45;
}
.stat:hover {
  box-shadow: 0 3px 14px rgba(212, 132, 42, 0.10);
  transform: translateY(-1px);
  border-color: rgba(212, 132, 42, 0.22);
}
.stat:hover::before { opacity: 0.85; }
.stat .stat-num { transition: color 0.15s; }

/* 3. Session-card badges — make "Latest" / "Next" pop */
.session-card .badge-new {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(212, 132, 42, 0.30);
  vertical-align: 1px;
}

/* 4. Hero banner — bump the headline so it's clearly the focal point */
.hero-banner h2 {
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

/* 5. Section heading rhythm — breathing room between heading and content */
section h2 { margin-bottom: 16px; }
section h3 { margin-top: 22px; margin-bottom: 10px; }
section h3:first-child { margin-top: 4px; }

/* 6. Reading cards — 2-col grid on desktop (used in readings.html)
      Keeps the existing .reading-card bordered look; adds density. */
.readings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 4px;
}
.readings-grid .reading-card {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  align-items: flex-start;
  transition: all 0.12s;
  background: var(--card-bg);
}
.readings-grid .reading-card:hover {
  border-color: rgba(212, 132, 42, 0.35);
  background: var(--accent-bg);
  transform: translateY(-1px);
}
.readings-grid .reading-card:last-child { border-bottom: 1px solid var(--rule); }

/* 7. Quick hover polish on session cards — slightly stronger lift */
.session-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.08);
}

/* 8. Tool-card — matching lift so interactive tiles feel consistent */
.tool-card {
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tool-card:hover { transform: translateY(-1px); }
