/* ═══════════════════════════════════════════════════════════════════
   INNER COMPASS COURSE — MODULE STYLESHEET
   Shared across all 12 HTML modules
   mindsawaken.com
═══════════════════════════════════════════════════════════════════ */

:root {
  --sage:        #7a9e7e;
  --sage-d:      #4a7050;
  --sage-l:      #f0f5f0;
  --sage-ll:     #f7faf7;
  --gold:        #c8a45a;
  --gold-d:      #a8843a;
  --gold-l:      #faf3e0;
  --gold-ll:     #fdfaf3;
  --cream:       #faf8f4;
  --cream-d:     #f2efe9;
  --ink:         #1a1a18;
  --ink-soft:    #3d3d3a;
  --ink-muted:   #7a7a75;
  --ink-faint:   #b0b0a8;
  --white:       #ffffff;
  --navy:        #2a3f6f;
  --navy-l:      #eef1f8;
  --amber:       #b87a20;
  --amber-l:     #fdf4e3;
  --red:         #8b3a3a;
  --red-l:       #fdf0ee;
  --green:       #2e7d4f;
  --green-l:     #e8f5ee;
  --lav:         #6b5b8b;
  --lav-l:       #f0edf8;
  --border:      rgba(26,26,24,0.08);
  --border-m:    rgba(26,26,24,0.14);

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  --content-w:   740px;
  --wide-w:      960px;
  --header-h:    60px;
  --reading-lh:  1.9;
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-serif);
  background: var(--cream);
  color: var(--ink);
  line-height: var(--reading-lh);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-d); }

/* ── STICKY TOP BAR ───────────────────────────────────────────── */
.module-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(250,248,244,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}
.topbar-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-d);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
}
.topbar-breadcrumb {
  font-family: var(--font-sans);
  font-size: .72rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-breadcrumb span { color: var(--ink-faint); margin: 0 .3rem; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.topbar-progress {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.progress-track {
  width: 80px;
  height: 4px;
  background: rgba(0,0,0,.08);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--sage-d);
  border-radius: 100px;
  transition: width .4s ease;
}
.progress-label {
  font-family: var(--font-sans);
  font-size: .68rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.btn-mark-complete {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 8px 20px;
  background: var(--sage-d);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-mark-complete:hover { background: var(--ink); }
.btn-mark-complete.done { background: var(--sage); cursor: default; }

/* ── MODULE HERO ──────────────────────────────────────────────── */
.module-hero {
  padding: 5rem 2rem 4rem;
  background: linear-gradient(160deg, var(--sage-ll) 0%, var(--cream) 60%, var(--gold-ll) 100%);
  position: relative;
  overflow: hidden;
}
.module-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(200,164,90,.06), transparent),
    radial-gradient(ellipse 40% 50% at 5% 80%, rgba(74,112,80,.05), transparent);
  pointer-events: none;
}
.module-hero-inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  position: relative;
}
.module-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-d);
  margin-bottom: 1.25rem;
}
.module-eyebrow-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.module-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.module-hero h1 em {
  color: var(--sage-d);
  font-style: italic;
}
.module-hero-desc {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  font-weight: 300;
  max-width: 580px;
  margin-bottom: 2rem;
}
.module-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  color: var(--ink-muted);
}
.meta-item-icon { font-size: .9rem; }
.module-outcomes {
  background: white;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  max-width: 560px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.outcomes-label {
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-d);
  margin-bottom: .85rem;
}
.outcomes-list {
  list-style: none;
}
.outcomes-list li {
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--ink-soft);
  padding: .4rem 0;
  display: flex;
  gap: .6rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.outcomes-list li:last-child { border-bottom: none; }
.outcomes-list li::before {
  content: "✓";
  color: var(--sage-d);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── READING PROGRESS BAR ─────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 199;
}
.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-d), var(--gold));
  width: 0%;
  transition: width .1s linear;
}

/* ── CONTENT AREA ─────────────────────────────────────────────── */
.module-content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
.module-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--sage-d);
  margin: 3.5rem 0 1rem;
  line-height: 1.15;
  letter-spacing: -.005em;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.module-content h2:first-child { margin-top: 0; border-top: none; }

.module-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 .75rem;
  letter-spacing: .005em;
}
.module-content h4 {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-d);
  margin: 2rem 0 .6rem;
}
.module-content p {
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}
.module-content p:last-child { margin-bottom: 0; }

.module-content ul, .module-content ol {
  margin: 1rem 0 1.4rem 1.5rem;
}
.module-content li {
  margin-bottom: .5rem;
  line-height: 1.75;
}
.module-content strong { font-weight: 600; color: var(--ink); }
.module-content em { font-style: italic; }

/* Section divider */
.section-break {
  border: none;
  border-top: 1px solid var(--border-m);
  margin: 3.5rem 0;
  position: relative;
}
.section-break::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cream);
  color: var(--ink-faint);
  padding: 0 1rem;
  font-size: .75rem;
}

/* ── ILLUSTRATIONS ─────────────────────────────────────────────── */
.illustration-wrap {
  margin: 2.5rem 0;
  background: var(--cream-d);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
  overflow: hidden;
  /* No negative margins — stays within column to prevent iframe overflow */
}
.illustration-wrap img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  margin: 0 auto;
  display: block;
  /* Clickable — cursor indicates expandability */
  cursor: zoom-in;
  transition: box-shadow .2s, transform .15s;
}
.illustration-wrap img:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  transform: scale(1.005);
}
.illustration-zoom-hint {
  font-family: var(--font-sans);
  font-size: .68rem;
  color: var(--ink-faint);
  margin-top: .5rem;
  letter-spacing: .04em;
}
.illustration-zoom-hint::before { content: '⤢  '; }
.illustration-caption {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: .75rem;
  line-height: 1.55;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── LIGHTBOX ──────────────────────────────────────────────────── */
.illustration-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
  animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.illustration-lightbox img {
  max-width: min(98vw, 2000px);
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  cursor: default;
  animation: lbSlideUp .25s ease;
}
@keyframes lbSlideUp {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.illustration-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10000;
  font-family: var(--font-sans);
}
.illustration-lightbox-close:hover { background: rgba(255,255,255,.2); }

.illustration-lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-style: italic;
  text-align: center;
  max-width: 600px;
  padding: 0 1rem;
  line-height: 1.5;
}

/* ── CALLOUT BOXES ─────────────────────────────────────────────── */
.callout {
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-left: 4px solid;
}
.callout-sage  { background: var(--sage-l);  border-color: var(--sage-d); }
.callout-gold  { background: var(--gold-l);  border-color: var(--gold-d); }
.callout-navy  { background: var(--navy-l);  border-color: var(--navy); }
.callout-red   { background: var(--red-l);   border-color: var(--red); }
.callout-amber { background: var(--amber-l); border-color: var(--amber); }
.callout-green { background: var(--green-l); border-color: var(--green); }
.callout-lav   { background: var(--lav-l);   border-color: var(--lav); }

.callout-label {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.callout-sage  .callout-label { color: var(--sage-d); }
.callout-gold  .callout-label { color: var(--gold-d); }
.callout-navy  .callout-label { color: var(--navy); }
.callout-red   .callout-label { color: var(--red); }
.callout-amber .callout-label { color: var(--amber); }
.callout-green .callout-label { color: var(--green); }
.callout-lav   .callout-label { color: var(--lav); }

.callout p { font-size: .97rem; margin-bottom: .85rem; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin-left: 1.25rem; }
.callout li { font-size: .95rem; margin-bottom: .4rem; }

/* ── EXERCISE SECTIONS ─────────────────────────────────────────── */
.exercise-block {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 2.5rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.exercise-header {
  background: var(--sage-d);
  color: white;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.exercise-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
}
.exercise-header-text h3 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .15rem;
  font-family: var(--font-sans);
}
.exercise-header-text p {
  color: rgba(255,255,255,.65);
  font-size: .75rem;
  font-family: var(--font-sans);
  margin: 0;
}
.exercise-body {
  padding: 1.75rem;
}
.exercise-body h4 {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage-d);
  margin: 1.5rem 0 .6rem;
}
.exercise-body h4:first-child { margin-top: 0; }
.exercise-body p { font-size: .97rem; margin-bottom: 1rem; }
.exercise-body ol, .exercise-body ul {
  margin: .5rem 0 1rem 1.25rem;
}
.exercise-body li { font-size: .95rem; margin-bottom: .5rem; line-height: 1.65; }

.exercise-prompt {
  background: var(--sage-ll);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-left: 3px solid var(--sage-d);
  font-style: italic;
  font-size: .97rem;
  color: var(--ink-soft);
}

/* ── THE HARD PART SECTION ─────────────────────────────────────── */
.hard-part {
  background: var(--red-l);
  border-radius: 20px;
  padding: 2rem 2rem;
  margin: 3rem 0;
  border: 1px solid rgba(139,58,58,.15);
  position: relative;
  overflow: hidden;
}
.hard-part::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #c8504a);
}
.hard-part-label {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.hard-part p { font-size: .97rem; margin-bottom: .9rem; color: var(--ink-soft); }
.hard-part p:last-child { margin-bottom: 0; }
.hard-part p em { color: var(--ink); font-style: italic; }

/* ── INTEGRATION CHECKPOINT ────────────────────────────────────── */
.checkpoint {
  background: var(--gold-ll);
  border-radius: 20px;
  padding: 2rem;
  margin: 3rem 0;
  border: 1px solid rgba(200,164,90,.2);
}
.checkpoint-label {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.checkpoint ol { margin-left: 1.25rem; }
.checkpoint li {
  font-size: .95rem;
  margin-bottom: .75rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ── RESOURCES ─────────────────────────────────────────────────── */
.resources-section {
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
  padding-top: 2.5rem;
}
.resources-section h2 {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.resource-item {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.resource-item:last-child { border-bottom: none; }
.resource-item cite { font-style: italic; }

/* ── MODULE NAVIGATION ─────────────────────────────────────────── */
.module-nav {
  background: white;
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.module-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border-m);
  color: var(--ink-soft);
  background: white;
  transition: all .2s;
}
.module-nav-btn:hover {
  border-color: var(--sage);
  color: var(--sage-d);
}
.module-nav-btn.next {
  background: var(--sage-d);
  color: white;
  border-color: var(--sage-d);
  font-weight: 600;
}
.module-nav-btn.next:hover { background: var(--ink); border-color: var(--ink); }
.module-nav-dots {
  display: flex;
  gap: .35rem;
  align-items: center;
}
.nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-m);
  cursor: pointer;
  transition: all .2s;
}
.nav-dot.active { background: var(--sage-d); transform: scale(1.2); }
.nav-dot.done { background: var(--sage); }

/* ── INLINE BUY PROMPT ─────────────────────────────────────────── */
.buy-prompt-inline {
  background: linear-gradient(135deg, var(--sage-ll), var(--gold-ll));
  border-radius: 20px;
  padding: 2rem;
  margin: 2.5rem 0;
  border: 1px solid rgba(74,112,80,.12);
  text-align: center;
}
.buy-prompt-inline h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: .5rem;
}
.buy-prompt-inline p {
  font-size: .9rem;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 auto .85rem;
}
.buy-prompt-inline .btn-buy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 12px 28px;
  background: var(--sage-d);
  color: white;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.buy-prompt-inline .btn-buy:hover { background: var(--ink); }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  html { font-size: 16px; }
  .module-hero { padding: 3rem 1.25rem 2.5rem; }
  .module-content { padding: 2.5rem 1.25rem 4rem; }
  .module-topbar { padding: 0 1rem; }
  .topbar-breadcrumb { display: none; }
  .illustration-wrap { margin: 2rem -1.25rem; padding: 1.25rem; }
  .module-nav { padding: 1.25rem; }
  .btn-mark-complete span { display: none; }
}

@media (max-width: 500px) {
  .module-hero h1 { font-size: 2rem; }
  .module-meta { gap: 1rem; }
  .module-nav-dots { display: none; }
}
