@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --night: #0f1e3a;
  --denim: #1e3a5f;
  --denim-2: #2d4a73;
  --sand: #c9b89a;
  --sand-2: #d8c8ac;
  --sand-3: #e8dcc4;
  --cream: #f4f1ec;
  --cream-2: #ebe6dc;
  --ink: #16243f;
  --muted: #6b7a92;
  --line: rgba(15, 30, 58, 0.12);
  --line-2: rgba(15, 30, 58, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 30, 58, 0.06);
  --shadow-md: 0 8px 28px rgba(15, 30, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 30, 58, 0.18);
}

html, body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; color: var(--night); }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: 18px; font-weight: 600; }

p { color: #2c3a55; }
a { color: var(--denim); text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 236, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces'; font-size: 20px; font-weight: 600; color: var(--night); cursor: pointer; }
.brand-z { letter-spacing: -0.05em; color: var(--sand); font-weight: 700; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink); border-radius: 999px; cursor: pointer; }
.nav-link:hover { background: var(--cream-2); }
.nav-link.active { background: var(--night); color: var(--cream); }

/* Hero */
.hero { padding: 64px 0 48px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--denim); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--denim); }
.hero h1 em { font-style: italic; color: var(--denim); font-weight: 400; }
.hero-sub { font-size: 18px; color: #3b4a66; margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: all 0.2s;
}
.btn-primary { background: var(--night); color: var(--cream); }
.btn-primary:hover { background: var(--denim); }
.btn-ghost { background: transparent; color: var(--night); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--cream-2); }
.btn-sand { background: var(--sand); color: var(--night); }
.btn-sand:hover { background: var(--sand-2); }

.host-card {
  background: var(--night); color: var(--cream);
  border-radius: 24px; padding: 32px;
  position: relative; overflow: hidden;
}
.host-stars { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.host-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sand); margin-bottom: 18px; }
.host-card-name { font-family: 'Fraunces'; font-size: 22px; font-weight: 500; }
.host-card-role { font-size: 13px; color: var(--sand); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.host-card-quote { margin-top: 18px; font-family: 'Fraunces'; font-style: italic; font-size: 17px; line-height: 1.5; color: var(--cream); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-top: 48px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-family: 'Fraunces'; font-size: 36px; font-weight: 500; color: var(--night); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Section */
.section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 12px; }

/* Module grid */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .modules { grid-template-columns: 1fr; } }
.module-card {
  background: white; border-radius: 20px; padding: 28px;
  border: 1px solid var(--line-2);
  cursor: pointer; transition: all 0.25s;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line); }
.module-card-head { display: flex; justify-content: space-between; align-items: start; }
.module-num { font-family: 'Fraunces'; font-size: 13px; color: var(--sand); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.module-time { font-size: 12px; color: var(--muted); }
.module-card h3 { margin-top: 6px; }
.module-card-desc { color: var(--muted); font-size: 15px; }
.module-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.module-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--cream-2); color: var(--denim); }
.tag.bonus { background: var(--sand); color: var(--night); }
.module-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.status-dot.in-progress { background: var(--sand); }
.status-dot.done { background: #4a7c59; }

/* Module page */
.mod-hero {
  background: var(--night); color: var(--cream);
  padding: 56px 0 80px; position: relative; overflow: hidden;
}
.mod-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent), radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.3), transparent), radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.2), transparent), radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.3), transparent);
  background-size: 200px 200px; opacity: 0.6;
}
.mod-hero .container { position: relative; }
.mod-eyebrow { color: var(--sand); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.mod-hero h1 { color: var(--cream); margin-top: 16px; max-width: 800px; }
.mod-hero h1 em { font-style: italic; color: var(--sand); font-weight: 400; }
.mod-hero-sub { font-size: 18px; color: rgba(244, 241, 236, 0.78); max-width: 620px; margin-top: 20px; }
.mod-progress-bar { display: flex; gap: 4px; margin-top: 32px; }
.mod-progress-bar > div { flex: 1; height: 3px; background: rgba(255,255,255,0.15); border-radius: 4px; }
.mod-progress-bar > div.active { background: var(--sand); }
.mod-progress-bar > div.done { background: rgba(201, 184, 154, 0.5); }

.mod-body { padding: 56px 0; }

/* Video player */
.video-card {
  background: var(--night); color: var(--cream);
  border-radius: 20px; aspect-ratio: 16/9;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  background-image: linear-gradient(135deg, var(--night) 0%, var(--denim-2) 100%);
}
.video-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 40%, rgba(201,184,154,0.15), transparent 50%), radial-gradient(circle at 70% 60%, rgba(45,74,115,0.4), transparent 60%);
}
.video-play {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--sand); color: var(--night);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.2s; z-index: 2;
  font-size: 24px;
}
.video-play:hover { transform: scale(1.06); }
.video-meta { position: absolute; bottom: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: end; z-index: 2; }
.video-title { font-family: 'Fraunces'; font-size: 20px; font-weight: 500; color: var(--cream); }
.video-time { font-size: 13px; color: rgba(244,241,236,0.7); font-variant-numeric: tabular-nums; }
.video-ph-text { position: absolute; top: 20px; left: 24px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(244,241,236,0.5); z-index: 2; font-family: 'Inter'; font-weight: 600; }

/* Transcript / content blocks */
.lesson-block {
  background: white; border-radius: 16px;
  padding: 28px 32px; margin-bottom: 16px;
  border: 1px solid var(--line-2);
}
.lesson-block h3 { margin-bottom: 12px; }
.lesson-block h4 { color: var(--denim); margin-bottom: 12px; font-family: 'Fraunces'; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.lesson-block p + p { margin-top: 14px; }
.lesson-block p, .lesson-block li { font-size: 16px; line-height: 1.65; color: #2c3a55; }
.lesson-block ul, .lesson-block ol { padding-left: 22px; margin-top: 12px; }
.lesson-block li { margin-bottom: 8px; }
.lesson-block strong { color: var(--night); font-weight: 600; }

.callout {
  background: var(--cream-2); border-radius: 16px;
  padding: 24px 28px; margin: 20px 0;
  border-left: 3px solid var(--sand);
}
.callout-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--denim); font-weight: 600; margin-bottom: 8px; }
.callout p { margin: 0; }

.pull-quote {
  font-family: 'Fraunces'; font-style: italic;
  font-size: 24px; line-height: 1.4; color: var(--night);
  padding: 20px 0; margin: 12px 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}

.expand-toggle {
  display: flex; align-items: center; gap: 8px;
  color: var(--denim); font-size: 14px; font-weight: 500;
  margin-top: 16px; padding: 8px 0;
}
.expand-toggle:hover { color: var(--night); }
.expand-content { padding-top: 16px; border-top: 1px solid var(--line-2); margin-top: 16px; }

/* Interactive widget shells */
.widget {
  background: white; border-radius: 20px;
  padding: 32px; margin: 24px 0;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.widget-head { margin-bottom: 24px; }
.widget-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); font-weight: 700; margin-bottom: 8px; }
.widget h3 { font-size: 26px; }
.widget-sub { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* Quiz */
.quiz-question { font-family: 'Fraunces'; font-size: 22px; line-height: 1.4; color: var(--night); margin-bottom: 20px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  text-align: left; padding: 16px 20px; border-radius: 12px;
  background: var(--cream); border: 1px solid var(--line-2);
  font-size: 15px; transition: all 0.18s;
  display: flex; align-items: center; gap: 14px;
}
.quiz-option:hover { background: var(--cream-2); border-color: var(--line); }
.quiz-option.selected { background: var(--denim); color: var(--cream); border-color: var(--denim); }
.quiz-option.correct { background: #e7f0e8; color: #1f4530; border-color: #4a7c59; }
.quiz-option.incorrect { background: #fbe9e7; color: #6b2417; border-color: #c2654a; }
.quiz-letter { font-family: 'Fraunces'; font-size: 14px; font-weight: 600; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quiz-option:not(.selected):not(.correct):not(.incorrect) .quiz-letter { background: white; color: var(--denim); border: 1px solid var(--line); }
.quiz-feedback { margin-top: 20px; padding: 18px 22px; border-radius: 12px; background: var(--cream-2); font-size: 15px; line-height: 1.6; }
.quiz-feedback strong { color: var(--night); }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.quiz-progress > div { height: 4px; flex: 1; border-radius: 4px; background: var(--line-2); }
.quiz-progress > div.active { background: var(--sand); }
.quiz-progress > div.done { background: var(--denim); }

/* Breathing widget */
.breath-stage { display: flex; flex-direction: column; align-items: center; padding: 28px 0; }
.breath-circle {
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--denim-2), var(--night));
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); position: relative;
  transition: transform 4s cubic-bezier(0.4, 0, 0.6, 1);
}
.breath-circle.inhale { transform: scale(1.35); transition-duration: 4s; }
.breath-circle.hold { transform: scale(1.35); transition-duration: 7s; }
.breath-circle.exhale { transform: scale(1); transition-duration: 8s; }
.breath-circle.idle { transform: scale(1); }
.breath-phase { font-family: 'Fraunces'; font-size: 22px; }
.breath-count { font-size: 48px; font-weight: 300; font-family: 'Fraunces'; font-variant-numeric: tabular-nums; color: var(--sand); }
.breath-controls { display: flex; gap: 12px; margin-top: 28px; align-items: center; }
.breath-cycle { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* PMR walkthrough */
.pmr-stage { background: var(--night); color: var(--cream); border-radius: 16px; padding: 32px; }
.pmr-progress { display: flex; gap: 4px; margin-bottom: 24px; }
.pmr-progress > div { flex: 1; height: 3px; background: rgba(255,255,255,0.15); border-radius: 4px; transition: background 0.3s; }
.pmr-progress > div.active { background: var(--sand); }
.pmr-progress > div.done { background: rgba(201,184,154,0.4); }
.pmr-step-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); font-weight: 600; }
.pmr-step-name { font-family: 'Fraunces'; font-size: 32px; margin-top: 8px; }
.pmr-instruction { font-size: 17px; line-height: 1.6; color: rgba(244,241,236,0.85); margin-top: 12px; min-height: 100px; }
.pmr-timer { font-family: 'Fraunces'; font-size: 56px; font-weight: 300; color: var(--sand); margin: 16px 0; font-variant-numeric: tabular-nums; }
.pmr-controls { display: flex; gap: 10px; margin-top: 24px; }
.pmr-controls .btn-primary { background: var(--sand); color: var(--night); }
.pmr-controls .btn-ghost { color: var(--cream); border-color: rgba(255,255,255,0.2); }
.pmr-controls .btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* Reframe journal */
.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .journal-grid { grid-template-columns: 1fr; } }
.journal-col h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: 'Inter'; }
.journal-col.negative h4 { color: #b85a44; }
.journal-col.positive h4 { color: #4a7c59; }
.journal-input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--cream); border: 1px solid var(--line-2);
  font-size: 15px; resize: vertical; min-height: 90px;
}
.journal-input:focus { outline: none; border-color: var(--denim); }
.journal-entries { margin-top: 24px; }
.journal-entry { background: var(--cream); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; align-items: center; }
@media (max-width: 700px) { .journal-entry { grid-template-columns: 1fr; gap: 6px; } }
.journal-arrow { color: var(--sand); font-size: 18px; }
.journal-neg { color: #8a4030; font-size: 14px; }
.journal-pos { color: #2d5a3e; font-size: 14px; font-weight: 500; }
.journal-del { color: var(--muted); font-size: 18px; padding: 4px 8px; }
.journal-del:hover { color: #b85a44; }

.suggestions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.suggestion-pill { padding: 10px 14px; background: var(--cream); border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; font-style: italic; color: var(--denim); cursor: pointer; text-align: left; }
.suggestion-pill:hover { background: var(--cream-2); }

/* Sleep compression calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-input-row { margin-bottom: 18px; }
.calc-label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; display: block; }
.calc-time { width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line-2); font-size: 18px; font-family: 'Fraunces'; }
.calc-result { background: var(--night); color: var(--cream); border-radius: 16px; padding: 28px; }
.calc-result-label { color: var(--sand); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.calc-result-time { font-family: 'Fraunces'; font-size: 56px; font-weight: 300; line-height: 1; margin: 12px 0; color: var(--cream); font-variant-numeric: tabular-nums; }
.calc-result-sub { color: rgba(244,241,236,0.7); font-size: 14px; }
.calc-step { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); }
.calc-step-label { font-size: 12px; color: var(--sand); letter-spacing: 0.1em; text-transform: uppercase; }
.calc-step-val { font-family: 'Fraunces'; font-size: 20px; margin-top: 4px; }

/* Routine builder */
.routine-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
@media (max-width: 800px) { .routine-grid { grid-template-columns: 1fr; } }
.routine-pool { background: var(--cream); border-radius: 16px; padding: 20px; }
.routine-pool h4 { margin-bottom: 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: 'Inter'; }
.routine-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: white;
  border: 1px solid var(--line-2); border-radius: 10px;
  margin-bottom: 8px; cursor: grab; font-size: 14px;
  transition: all 0.18s;
}
.routine-item:hover { border-color: var(--denim); background: var(--cream-2); }
.routine-icon { color: var(--sand); font-size: 18px; }
.routine-add { color: var(--denim); font-size: 18px; margin-left: auto; }
.routine-schedule { background: white; border-radius: 16px; padding: 20px; border: 1px solid var(--line-2); }
.routine-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.routine-row:last-child { border-bottom: none; }
.routine-time { font-family: 'Fraunces'; font-size: 18px; color: var(--night); font-variant-numeric: tabular-nums; }
.routine-time-input { background: var(--cream); border: 1px solid var(--line-2); padding: 8px 10px; border-radius: 8px; font-family: 'Fraunces'; font-size: 16px; width: 90px; }
.routine-name { font-size: 15px; }
.routine-empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }
.routine-remove { color: var(--muted); padding: 4px 8px; font-size: 18px; }
.routine-remove:hover { color: #b85a44; }

/* Stim control flowchart */
.flow-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 24px; background: white; border-radius: 16px;
  border: 1px solid var(--line-2); margin-bottom: 12px;
  align-items: start;
}
.flow-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--night); color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces'; font-size: 22px; font-weight: 500;
}
.flow-step h4 { font-family: 'Fraunces'; font-size: 22px; font-weight: 500; color: var(--night); }
.flow-step p { margin-top: 6px; color: #2c3a55; font-size: 15px; line-height: 1.6; }

/* DO/DON'T grid */
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .do-dont { grid-template-columns: 1fr; } }
.do-col, .dont-col { background: white; border-radius: 16px; padding: 24px; border: 1px solid var(--line-2); }
.do-col h4, .dont-col h4 { font-family: 'Fraunces'; font-size: 22px; margin-bottom: 16px; }
.do-col h4 { color: #2d5a3e; }
.dont-col h4 { color: #8a4030; }
.do-col ul, .dont-col ul { list-style: none; padding: 0; }
.do-col li, .dont-col li { padding: 10px 0; border-top: 1px solid var(--line-2); display: flex; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; }
.do-col li:first-child, .dont-col li:first-child { border-top: none; }
.do-col .ic { color: #4a7c59; }
.dont-col .ic { color: #b85a44; }

/* Footer & misc */
.bottom-nav { display: flex; justify-content: space-between; align-items: center; padding: 32px 0; margin-top: 32px; border-top: 1px solid var(--line-2); }
.bn-btn { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px; border-radius: 12px; cursor: pointer; max-width: 360px; transition: background 0.18s; }
.bn-btn:hover { background: var(--cream-2); }
.bn-btn.next { text-align: right; align-items: end; margin-left: auto; }
.bn-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bn-title { font-family: 'Fraunces'; font-size: 20px; color: var(--night); }

footer { background: var(--night); color: var(--cream); padding: 56px 0 32px; margin-top: 80px; }
footer h4 { color: var(--sand); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-family: 'Inter'; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid p, .footer-grid a { font-size: 14px; color: rgba(244,241,236,0.78); margin-top: 12px; line-height: 1.6; display: block; }
.footer-grid a:hover { color: var(--sand); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(244,241,236,0.5); flex-wrap: wrap; gap: 12px; }

.disclaimer-box {
  background: var(--cream-2); padding: 24px 28px; border-radius: 12px;
  font-size: 13px; line-height: 1.6; color: var(--muted);
  border-left: 3px solid var(--sand);
}

/* Print */
@media print {
  .nav, .video-card, footer, .bottom-nav, .btn, button { display: none !important; }
  body { background: white; }
  .widget, .lesson-block { break-inside: avoid; box-shadow: none; }
}

.print-btn { font-size: 13px; color: var(--denim); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); }
.print-btn:hover { background: var(--cream-2); }

/* Module 1 cases */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .case-grid { grid-template-columns: 1fr; } }
.case-card { background: white; border-radius: 16px; padding: 24px; border: 1px solid var(--line-2); }
.case-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.case-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; border: 2px solid var(--sand); }
.case-photo-letter {
  background: linear-gradient(135deg, var(--sand-2), var(--sand));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 26px; color: var(--night);
}
.case-name { font-family: 'Fraunces'; font-size: 22px; margin-bottom: 2px; }
.case-age { color: var(--muted); font-size: 13px; }
.case-bar { height: 6px; background: var(--cream-2); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.case-bar-fill { height: 100%; background: var(--sand); border-radius: 4px; }
.case-stat { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.case-after { background: var(--cream-2); padding: 12px 14px; border-radius: 10px; margin-top: 14px; font-size: 13px; color: var(--denim); font-style: italic; }

/* Sleep position figures (Module B2) */
.pos-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.pos-fig { margin: 0; }
.pos-fig img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); display: block; }
.pos-fig figcaption {
  margin-top: 10px; text-align: center;
  font-family: 'Fraunces', serif; font-size: 16px; color: var(--night);
  letter-spacing: -0.005em;
}


/* ============================================================
   Module 1 — Welcome / Introduction (warm invitation block)
   ============================================================ */

/* Welcome card from Wendy */
.welcome-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: start;
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 32px;
  margin: 8px 0 40px;
  box-shadow: var(--shadow-sm);
}
.welcome-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand-2), var(--sand));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 52px; font-weight: 400;
  color: var(--night);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  object-fit: cover;
  border: 3px solid var(--sand);
}
.welcome-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 10px;
}
.welcome-name {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--night);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.welcome-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  margin-bottom: 14px;
  font-style: italic;
}
.welcome-text {
  font-size: 16px;
  line-height: 1.65;
  color: #2c3a55;
}
@media (max-width: 700px) {
  .welcome-card { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .welcome-avatar { width: 80px; height: 80px; font-size: 38px; }
}

/* Inviting prose lede */
.intro-prose {
  margin: 8px 0 48px;
  max-width: 720px;
}
.intro-lede {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.4;
  color: var(--night);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.intro-dropcap {
  font-size: 17px;
  line-height: 1.75;
  color: #2c3a55;
}
.intro-dropcap::first-letter {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 72px;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--denim);
  letter-spacing: -0.02em;
}

/* Train metaphor highlight */
.metaphor-block {
  background: linear-gradient(135deg, var(--night), var(--denim));
  color: var(--cream);
  padding: 56px 48px;
  border-radius: 20px;
  margin: 8px 0 48px;
  position: relative;
  overflow: hidden;
}
.metaphor-block::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(201, 184, 154, 0.18), transparent 70%);
  pointer-events: none;
}
.metaphor-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
}
.metaphor-text {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--cream);
  max-width: 700px;
  position: relative;
  letter-spacing: -0.005em;
}
@media (max-width: 700px) {
  .metaphor-block { padding: 36px 28px; }
  .metaphor-text { font-size: 22px; }
}

/* Arousal Threshold visualization (Module 1) */
.threshold-viz {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 48px 44px;
  margin: 8px 0 48px;
  box-shadow: var(--shadow-sm);
}
.threshold-header {
  text-align: center;
  margin-bottom: 32px;
}
.threshold-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 12px;
}
.threshold-header h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--night);
  margin: 0;
}
.threshold-header h3 em {
  font-style: italic;
  color: var(--sand);
}
.threshold-hint {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
  font-style: italic;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.threshold-stages {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}
.threshold-stage-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.threshold-stage-btn:hover {
  border-color: var(--line);
  color: var(--ink);
}
.threshold-stage-btn.active {
  background: var(--night);
  color: var(--cream);
  border-color: var(--night);
}
.threshold-stage-num {
  font-family: 'Fraunces', serif;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}
.threshold-stage-btn.active .threshold-stage-num { color: var(--sand); opacity: 1; }
.threshold-svg {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.threshold-svg .zone-awake {
  fill: rgba(216, 200, 172, 0.18);
  transition: height 0.6s ease, y 0.6s ease;
}
.threshold-svg .zone-asleep {
  fill: rgba(22, 36, 63, 0.05);
  transition: height 0.6s ease, y 0.6s ease;
}
.threshold-svg .zone-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--muted);
}
.threshold-svg .threshold-line {
  stroke: var(--night);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  transition: y1 0.6s ease, y2 0.6s ease;
}
.threshold-svg.slow .threshold-line,
.threshold-svg.slow .threshold-text,
.threshold-svg.slow .zone-awake,
.threshold-svg.slow .zone-asleep {
  transition: none;
}
.threshold-svg .threshold-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  fill: var(--night);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: y 0.6s ease;
}
.threshold-svg .arousal-seg {
  transition: y 0.6s ease, height 0.6s ease, fill 0.6s ease;
}
.threshold-svg .arousal-seg--baseline { fill: #7d9890; }   /* sage — calm baseline */
.threshold-svg .arousal-seg--stress   { fill: #c97a3f; }   /* amber — acute stress, hot */
.threshold-svg .arousal-seg--habits   { fill: #4a6178; }   /* slate-blue — chronic, sticky */
.threshold-svg.slow .arousal-seg { transition: none; }
.threshold-svg .arousal-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  fill: var(--muted);
  font-weight: 500;
  text-anchor: middle;
}

/* Legend */
.threshold-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding: 0 8px;
}
.threshold-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.threshold-legend-swatch {
  width: 12px; height: 12px; border-radius: 3px;
  display: inline-block;
}
.threshold-legend-swatch--baseline { background: #7d9890; }
.threshold-legend-swatch--stress   { background: #c97a3f; }
.threshold-legend-swatch--habits   { background: #4a6178; }

/* CBT press-down indicator (stage 6) — fades in and the arrow gently
   bobs downward to suggest pressing the bar lower. */
.cbt-press {
  animation: cbtPressIn 0.7s 0.15s ease-out both;
  transition: transform 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.cbt-press-label {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: #4a7c59;
}
.cbt-press-arrow {
  stroke: #4a7c59;
  stroke-width: 2;
  animation: cbtArrowBob 1.6s 0.7s ease-in-out infinite;
}
@keyframes cbtPressIn {
  from { opacity: 0; transform: translate(300px, var(--cbt-from-y, -40px)); }
  to   { opacity: 1; }
}
@keyframes cbtArrowBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
.threshold-stage-info {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
  text-align: center;
}
.threshold-stage-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--night);
  letter-spacing: -0.005em;
}
.threshold-stage-desc {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .threshold-viz { padding: 32px 22px; }
  .threshold-stages { gap: 4px; }
  .threshold-stage-btn { padding: 7px 10px; font-size: 11.5px; }
  .threshold-stage-title { font-size: 19px; }
  .threshold-stage-desc { font-size: 14.5px; }
}

/* Program overview grid */
.program-overview {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 40px;
  margin: 8px 0 48px;
  box-shadow: var(--shadow-sm);
}
.overview-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--night);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.overview-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}
.overview-item {
  padding: 18px 0;
  border-top: 1px solid var(--line-2);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.overview-item-num {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--sand);
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.overview-item-text {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 700px) {
  .program-overview { padding: 28px 24px; }
}

/* Intro disclaimer (gentle "before you begin" note) */
.intro-disclaimer {
  background: linear-gradient(135deg, #faf3e3, #f0e3c5);
  border: 1px solid rgba(201, 184, 154, 0.4);
  border-left: 3px solid var(--sand);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 8px 0 56px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.intro-disclaimer-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  margin-top: 2px;
}
.intro-disclaimer-content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--denim);
  margin-bottom: 8px;
  font-weight: 700;
}
.intro-disclaimer-content p {
  color: #3a4a66;
  font-size: 14px;
  line-height: 1.65;
}

/* ============================================================
   Sleep Quiz — tap-to-reveal format
   ============================================================ */
.quiz-block {
  margin: 16px 0 56px;
}
.quiz-intro {
  text-align: center;
  margin-bottom: 40px;
}
.quiz-intro-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 14px;
}
.quiz-intro h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--night);
}
.quiz-intro h3 em {
  font-style: italic;
  color: var(--denim);
}
.quiz-intro p {
  color: var(--muted);
  font-size: 15px;
}

.quiz-card {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 700px) {
  .quiz-card { padding: 28px 22px; }
}
.quiz-q-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 14px;
}
.quiz-q {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--night);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* Override legacy .quiz-options/.quiz-option list-style for the new tap-to-reveal */
.quiz-block .quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.quiz-block .quiz-option {
  display: flex;
  align-items: stretch;
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
  overflow: hidden;
  font-family: inherit;
  text-align: left;
  width: 100%;
  padding: 0;
  gap: 0;
  color: var(--ink);
}
.quiz-block .quiz-option:hover:not(.revealed) {
  border-color: var(--sand);
  transform: translateX(2px);
  background: var(--cream-2);
}
.quiz-option-letter {
  flex-shrink: 0;
  width: 56px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--denim);
  border-right: 1px solid var(--line-2);
  transition: all 0.22s;
  align-self: stretch;
}
.quiz-option-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.quiz-option-text {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  display: block;
}
.quiz-option-explanation {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  font-size: 14px;
  color: #3a4a66;
  line-height: 1.65;
  border-top: 1px dashed var(--line);
}

/* Revealed states */
.quiz-block .quiz-option.revealed { cursor: default; }
.quiz-block .quiz-option.revealed:hover { transform: none; }
.quiz-block .quiz-option.revealed.correct {
  background: linear-gradient(135deg, #eef4ec, #e2ebde);
  border-color: #6b8f6b;
  color: var(--ink);
}
.quiz-block .quiz-option.revealed.correct .quiz-option-letter {
  background: #6b8f6b;
  color: white;
  border-right-color: #6b8f6b;
}
.quiz-block .quiz-option.revealed.incorrect {
  background: var(--cream);
  opacity: 0.92;
}
.quiz-block .quiz-option.revealed.incorrect .quiz-option-letter {
  color: var(--muted);
}

/* Inline badge that appears next to revealed answer text */
.quiz-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: 2px;
}
.quiz-badge.right {
  background: #6b8f6b;
  color: white;
}
.quiz-badge.wrong {
  background: var(--line-2);
  color: var(--muted);
}

.quiz-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.quiz-foot {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
