/* ===== ShareSchool — Global Styles ===== */
:root {
  --bg: #f8f6f1;
  --bg2: #ffffff;
  --bg3: #f0ede6;
  --text: #4a4543;
  --text-dim: #a09890;
  --text-bright: #2d2926;
  --green: #2eaa6e;
  --green-light: #1b8a52;
  --red: #e05c5c;
  --red-light: #c93c3c;
  --accent: #5b8fd9;
  --accent-light: #3a6fb8;
  --border: #e5e0d8;
  --star: #d4930d;
  --ma5: #d4930d;
  --ma10: #5b8fd9;
  --ma20: #b34dd1;
  --tooltip-bg: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  /* Warm module accent palette */
  --m1: #7bab8e; /* sage — fresh start */
  --m2: #7ba3cc; /* soft blue — analytical */
  --m3: #c98a6e; /* terracotta — hands-on */
  --m4: #b8943f; /* amber — charts */
  --m5: #5ea3a0; /* teal — balance */
  --m6: #b87d8a; /* dusty rose — careful */
  --m7: #8e85b8; /* lavender — psychology */
  --m8: #5d9678; /* deep sage — completion */
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ===== Top Navigation ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.nav-progress-track {
  width: 120px;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.nav-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}
.nav-hamburger svg { width: 24px; height: 24px; }

/* ===== Page Container ===== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero Section (Index) ===== */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
  background: linear-gradient(180deg, rgba(123,171,142,0.06) 0%, transparent 100%);
}
.hero h1,
.hero .subtitle {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-label {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(123,171,142,0.12);
  color: var(--m8);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero .subtitle {
  font-size: 18px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 36px;
}
.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(91,143,217,0.25);
}
.cta-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91,143,217,0.35);
  text-decoration: none;
  color: #fff;
}
.hero .hero-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ===== Benefits Section ===== */
.benefits-section {
  padding-bottom: 64px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  text-align: center;
  padding: 36px 24px 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.benefit-card:hover { box-shadow: var(--shadow); }
.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit-icon-blue { background: rgba(123,171,142,0.12); color: var(--m1); }
.benefit-icon-green { background: rgba(94,163,160,0.12); color: var(--m5); }
.benefit-icon-gold { background: rgba(201,138,110,0.12); color: var(--m3); }
.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* ===== Module Grid (Index) ===== */
.modules-section {
  padding: 48px 0 64px;
}
.modules-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 8px;
}
.modules-section .section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 48px;
}
.module-group {
  margin-bottom: 40px;
}
.group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.group-dot-free { background: var(--green); }
.group-dot-email { background: var(--accent); }
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.module-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}
.module-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
/* Per-module accent colors */
.module-card[data-module="m1"] { border-top-color: var(--m1); }
.module-card[data-module="m2"] { border-top-color: var(--m2); }
.module-card[data-module="m3"] { border-top-color: var(--m3); }
.module-card[data-module="m4"] { border-top-color: var(--m4); }
.module-card[data-module="m5"] { border-top-color: var(--m5); }
.module-card[data-module="m6"] { border-top-color: var(--m6); }
.module-card[data-module="m7"] { border-top-color: var(--m7); }
.module-card[data-module="m8"] { border-top-color: var(--m8); }
.module-card[data-module="m1"] .card-num { color: var(--m1); }
.module-card[data-module="m2"] .card-num { color: var(--m2); }
.module-card[data-module="m3"] .card-num { color: var(--m3); }
.module-card[data-module="m4"] .card-num { color: var(--m4); }
.module-card[data-module="m5"] .card-num { color: var(--m5); }
.module-card[data-module="m6"] .card-num { color: var(--m6); }
.module-card[data-module="m7"] .card-num { color: var(--m7); }
.module-card[data-module="m8"] .card-num { color: var(--m8); }
.module-card .card-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.module-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
  line-height: 1.3;
}
.module-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}
.module-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
}
.module-card .card-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-free { background: rgba(46,170,110,0.12); color: var(--green); }
.badge-locked { background: rgba(91,143,217,0.1); color: var(--accent); }

.module-card .card-progress {
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}
.module-card .card-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ===== Module Page Layout ===== */
.module-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 56px);
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar */
.module-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}
.sidebar-title {
  padding: 0 20px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
}
.sidebar-section-label {
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.sidebar-item:hover { background: var(--bg3); text-decoration: none; color: var(--text); }
.sidebar-item.active { background: var(--accent); color: #fff; }
.sidebar-item.active:hover { color: #fff; }
.sidebar-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.sidebar-icon.pending { border: 2px solid var(--text-dim); }
.sidebar-icon.done { background: var(--green); color: #fff; }
.sidebar-icon.active-icon { background: var(--accent); color: #fff; }

/* Module Content Area */
.module-content {
  flex: 1;
  padding: 40px 48px;
}
.module-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 8px;
  line-height: 1.2;
}
.module-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
}

/* Knowledge Point Cards */
.kp-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  scroll-margin-top: 72px;
}
.kp-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.kp-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-light);
  margin: 20px 0 8px;
}
.kp-card p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.kp-card ul, .kp-card ol {
  margin: 8px 0 12px 20px;
  font-size: 16px;
  line-height: 1.8;
}

/* Callout boxes */
.analogy {
  background: var(--bg3);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
}
.analogy::before {
  content: 'Analogy: ';
  color: var(--accent-light);
  font-weight: 600;
}
.key-point {
  background: rgba(46,170,110,0.08);
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
}
.key-point::before {
  content: 'Key Point: ';
  color: var(--green-light);
  font-weight: 600;
}
.warning-box {
  background: rgba(224,92,92,0.06);
  border-left: 3px solid var(--red);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
}
.warning-box::before {
  content: 'Warning: ';
  color: var(--red-light);
  font-weight: 600;
}
.book-ref {
  background: rgba(212,147,13,0.08);
  border-left: 3px solid var(--star);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
}
.book-ref::before {
  content: 'From the bookshelf: ';
  color: var(--star);
  font-weight: 600;
}

/* ===== Quiz Section ===== */
.quiz-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 48px;
}
.quiz-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
}
.quiz-question-block {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.quiz-question-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.quiz-q-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
  line-height: 1.5;
}
.quiz-q-num {
  color: var(--accent);
  margin-right: 4px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-option {
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  transition: all var(--transition);
  color: var(--text);
}
.quiz-option:hover {
  border-color: var(--accent);
  background: rgba(91,143,217,0.08);
}
.quiz-option.correct {
  border-color: var(--green);
  background: rgba(46,170,110,0.1);
  color: var(--green-light);
  cursor: default;
}
.quiz-option.wrong {
  border-color: var(--red);
  background: rgba(224,92,92,0.08);
  color: var(--red-light);
  cursor: default;
}
.quiz-option.disabled {
  pointer-events: none;
  opacity: 0.5;
}
.quiz-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
  display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.correct-fb { background: rgba(46,170,110,0.1); color: var(--green-light); }
.quiz-feedback.wrong-fb { background: rgba(224,92,92,0.08); color: var(--red-light); }

.quiz-result {
  text-align: center;
  padding: 24px;
  display: none;
}
.quiz-result.show { display: block; }
.quiz-result .score {
  font-size: 36px;
  font-weight: 800;
  color: var(--green);
}
.quiz-result .score-label {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 4px;
}
.quiz-result .retry-btn {
  margin-top: 16px;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.quiz-result .retry-btn:hover { background: var(--accent-light); }

/* ===== Inline Quiz (kp-check) ===== */
.kp-check {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--border);
}
.kp-check-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.kp-check-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
  line-height: 1.5;
}
.kp-check-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kp-check-opt {
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  transition: all var(--transition);
  color: var(--text);
  text-align: left;
  font-family: inherit;
}
.kp-check-opt:hover {
  border-color: var(--accent);
  background: rgba(91,143,217,0.08);
}
.kp-check.answered .kp-check-opt {
  pointer-events: none;
  opacity: 0.5;
}
.kp-check.answered .kp-check-opt.correct {
  border-color: var(--green);
  background: rgba(46,170,110,0.1);
  color: var(--green-light);
  opacity: 1;
}
.kp-check.answered .kp-check-opt.wrong {
  border-color: var(--red);
  background: rgba(224,92,92,0.08);
  color: var(--red-light);
  opacity: 1;
}
.kp-check-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
  display: none;
}
.kp-check-feedback.show { display: block; }
.kp-check-feedback.correct-fb { background: rgba(46,170,110,0.1); color: var(--green-light); }
.kp-check-feedback.wrong-fb { background: rgba(224,92,92,0.08); color: var(--red-light); }

/* ===== Module Complete Summary ===== */
.module-complete {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  margin-top: 48px;
  text-align: center;
}
.module-complete h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}
.module-complete .complete-score {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
}

/* ===== Think First Component ===== */
.think-first {
  background: rgba(91,143,217,0.06);
  border: 1px solid rgba(91,143,217,0.2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 16px 0;
}
.think-prompt {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 12px;
  line-height: 1.5;
}
.think-reveal {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.think-reveal:hover { background: var(--accent-light); }
.think-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(91,143,217,0.2);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* ===== Try It Calculator ===== */
.try-it {
  background: rgba(46,170,110,0.06);
  border: 1px solid rgba(46,170,110,0.2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 16px 0;
}
.try-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.try-it label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}
.try-input {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
}
.try-input:focus { outline: none; border-color: var(--green); }
.try-slider {
  width: 200px;
  max-width: 100%;
  vertical-align: middle;
  accent-color: var(--green);
}
.try-result {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-bright);
}
.try-result strong {
  font-size: 22px;
  color: var(--green);
}

/* ===== KP Illustration Wrapper ===== */
.kp-illustration {
  margin: 16px auto;
  text-align: center;
  max-width: 520px;
}
.kp-illustration svg {
  max-width: 100%;
  height: auto;
}

/* ===== Module Navigation (bottom) ===== */
.module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.module-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}
.module-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.module-nav .nav-next { margin-left: auto; }

/* ===== Email Gate ===== */
.email-gate-overlay {
  position: relative;
  margin-top: -60px;
  padding-top: 60px;
}
.email-gate-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  max-height: 300px;
  overflow: hidden;
  position: relative;
}
.email-gate-blur::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
}
.email-gate-box {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  margin: -40px auto 32px;
  position: relative;
  z-index: 2;
}
.email-gate-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.email-gate-box p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
}
.email-gate-form {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.email-gate-form input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 240px;
  outline: none;
  transition: border-color var(--transition);
}
.email-gate-form input:focus { border-color: var(--accent); }
.email-gate-form button {
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.email-gate-form button:hover { background: var(--accent-light); }
.email-gate-msg {
  font-size: 13px;
  margin-top: 8px;
  color: var(--green);
  display: none;
}

/* ===== Bookshelf ===== */
.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.book-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition);
}
.book-card:hover { box-shadow: var(--shadow-hover); }
.book-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.book-card .book-author {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.book-card .book-oneliner {
  font-size: 14px;
  color: var(--accent-light);
  font-style: italic;
  margin-bottom: 12px;
}
.book-card ul {
  list-style: none;
  margin: 0 0 12px;
}
.book-card ul li {
  font-size: 14px;
  padding: 3px 0;
  line-height: 1.5;
}
.book-card ul li::before {
  content: '\2713 ';
  color: var(--green);
  font-weight: 700;
  margin-right: 4px;
}
.book-card .book-stage {
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

/* ===== Bookshelf Teaser ===== */
.bookshelf-teaser {
  padding: 0 24px 64px;
}
.bookshelf-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 36px;
  background: var(--bg3);
  border-radius: var(--radius);
}
.bookshelf-teaser h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.bookshelf-teaser p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
}
.cta-btn-outline {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.cta-btn-outline:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 64px;
}
.site-footer a { color: var(--accent); }

/* ===== Confetti Canvas ===== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .module-sidebar { width: 220px; min-width: 220px; }
  .module-content { padding: 32px 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 12px;
    box-shadow: var(--shadow);
  }

  .hero { padding: 48px 16px 36px; }
  .hero h1 { font-size: 30px; }
  .hero .subtitle { font-size: 16px; }

  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit-card { padding: 28px 20px 24px; }

  .module-grid { grid-template-columns: 1fr; }

  .bookshelf-teaser-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 28px 24px;
  }

  .module-layout { flex-direction: column; }
  .module-sidebar {
    width: 100%;
    min-width: auto;
    position: relative;
    top: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .sidebar-title { display: none; }
  .sidebar-section-label { display: none; }
  .sidebar-item { white-space: nowrap; padding: 8px 14px; }
  .module-content {
    padding: 24px 16px;
    max-width: 100%;
  }
  .module-content h1 { font-size: 24px; }

  .email-gate-form { flex-direction: column; align-items: center; }
  .email-gate-form input { width: 100%; max-width: 300px; }

  .bookshelf-grid { grid-template-columns: 1fr; }
}
