/* ClanDi Interactive Training Modules — shared styles
   Aligned with Maremoto 2025 brand guide (matches style.css :root).
   --accent (interaction) = Maremoto Green #009f57
   --success (completion) = Maremoto Yellow #fbed4f
   --warn = Maremoto Amber #e59635 */

:root {
  --ink: #1a1a1a;
  --paper: #fafaf8;
  --mid: #6b6b6b;
  --light: #e8e6e1;
  --accent: #009f57;
  --accent-soft: #e8f9f0;
  --accent-hover: #00733f;
  /* Yellow drives completion celebrations; for text contrast on white we
     use the deeper yellow-dark since pure brand yellow is light on white. */
  --success: #c2b521;
  --success-soft: #fffce0;
  --warn: #e59635;
  --warn-soft: #fcefdc;
  /* Aligned with main style.css palette + new font system. */
  --display: 'Rubik Mono One', 'Impact', 'Helvetica Neue', sans-serif;
  /* "serif" is a legacy token name from the previous editorial style;
     it now points at Work Sans (no Georgia fallback that could render serif). */
  --serif: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Headlines inside modules use the Rubik Mono One display face. */
  --module-headline: 'Rubik Mono One', 'Impact', 'Helvetica Neue', sans-serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 680px;
}

/* Module-page topbar (overrides .topbar-page-title content from base.html) */
.module-topbar-meta { display: flex; flex-direction: column; gap: 4px; }
.module-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.module-eyebrow-sep { opacity: 0.55; margin: 0 6px; }
.module-headline {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

/* Module progress bar — sticky just below the app topbar */
.module-progress-wrap {
  position: sticky;
  top: var(--topbar-h);
  z-index: 49;
  background: var(--off-white);
  margin: 0 -28px 1.5rem;
  padding: 0 28px;
}
.module-progress-track {
  height: 4px;
  background: var(--gray-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.module-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Module root — the long-form reading column */
.module-root {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero { max-width: var(--max-w); margin: 0 auto; padding: 64px 24px 48px; }
.hero-label {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(28px, 4.6vw, 40px);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.005em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-objectives {
  color: var(--mid); font-size: 15px; line-height: 1.65;
  border-left: 3px solid var(--light); padding-left: 20px;
}

/* Section containers */
.section {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px 56px;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.section.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.section.locked { display: none; }
.section-number {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--mid); margin-bottom: 8px;
}
.section h2 {
  font-family: var(--module-headline); font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 400; line-height: 1.15; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--light);
  text-transform: uppercase; letter-spacing: -0.005em;
}
.section h3 {
  font-family: var(--module-headline); font-size: 18px; font-weight: 400;
  margin: 28px 0 12px; text-transform: uppercase; letter-spacing: 0;
}
.section p { margin-bottom: 18px; }
.section strong { font-weight: 600; }
.section a { color: var(--accent); }
.section ul, .section ol { margin: 0 0 18px 22px; }
.section li { margin-bottom: 8px; }

.section-divider { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: none; }
.section-divider.show { display: block; }
.section-divider hr { border: none; border-top: 1px solid var(--light); margin-bottom: 48px; }

code {
  font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
  font-size: 14px; background: #f0eeea; padding: 2px 7px;
  border-radius: 4px; color: var(--accent);
}

/* Steps block */
.steps-block {
  background: white; border: 1px solid var(--light); border-radius: 16px;
  padding: 24px 28px; margin: 24px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.steps-block-title { font-family: var(--serif); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.step-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.step-item:last-child { margin-bottom: 0; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.step-text { font-size: 15px; line-height: 1.55; }

/* Warning / info boxes */
.warning-box {
  background: var(--warn-soft); border-left: 3px solid var(--warn);
  border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 24px 0;
  font-size: 15px; line-height: 1.6;
}
.warning-box strong { color: #b5722e; }

.info-card {
  background: white; border: 1px solid var(--light); border-radius: 16px;
  padding: 20px 24px; margin: 20px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Comprehension check */
.check-wrap {
  background: white; border: 1px solid var(--light); border-radius: 20px;
  padding: 28px; margin: 32px 0 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.check-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px;
}
.check-question {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  line-height: 1.4; margin-bottom: 20px;
}
.check-options { display: grid; gap: 8px; }
.check-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--light); border-radius: 12px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.15s;
  font-size: 15px; line-height: 1.5; user-select: none;
}
.check-option:hover:not(.disabled) { border-color: #c5e8d2; background: #f3fbf6; transform: translateX(2px); }
/* Correctness semantics: green = right, yellow = wrong.
   Selected pre-submit uses neutral green-tint; resolves to right/wrong on submit. */
.check-option.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.check-option.correct { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.check-option.incorrect { border-color: #fbed4f; background: #fffce0; color: var(--ink); opacity: 0.85; }
.check-option.disabled { cursor: default; }
.check-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #ccc; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.check-option.selected .check-radio { border-color: var(--accent); }
.check-option.correct .check-radio { border-color: var(--accent); }
.check-option.incorrect .check-radio { border-color: #c2b521; }
.check-radio-dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0; }
.check-option.selected .check-radio-dot { background: var(--accent); opacity: 1; }
.check-option.correct .check-radio-dot { background: var(--accent); opacity: 1; }
.check-option.incorrect .check-radio-dot { background: #c2b521; opacity: 1; }
.check-submit {
  margin-top: 16px; padding: 12px 28px;
  background: var(--ink); color: white; border: none; border-radius: 9999px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; opacity: 0.3; pointer-events: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.check-submit.active { opacity: 1; pointer-events: auto; }
.check-submit.active:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.check-feedback {
  margin-top: 16px; padding: 16px 20px; border-radius: 12px;
  font-size: 14px; line-height: 1.6; display: none;
}
.check-feedback.show { display: block; }
.check-feedback.right { background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--ink); }
.check-feedback.wrong { background: #fffce0; border-left: 3px solid #fbed4f; color: var(--ink); }

.continue-wrap { margin-top: 20px; display: none; }
.continue-wrap.show { display: block; }
.continue-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; background: var(--accent); color: white;
  border: none; border-radius: 9999px; font-family: var(--sans);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 159, 87, 0.18);
}
.continue-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 159, 87, 0.28); }
.continue-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.continue-btn:hover svg { transform: translateX(3px); }

/* Task checklist */
.practice-block {
  background: white; border: 1px solid var(--light); border-radius: 20px;
  padding: 28px; margin: 32px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.practice-block.milestone {
  border-color: var(--success); background: #fffce0;
  box-shadow: 0 4px 16px rgba(194, 181, 33, 0.15);
}
.practice-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--ink); color: white;
  padding: 4px 12px; border-radius: 9999px; margin-bottom: 14px;
}
.practice-block.milestone .practice-label { background: var(--success); color: var(--ink); }
.practice-title {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  margin-bottom: 12px; line-height: 1.3;
}
.practice-desc {
  font-size: 15px; color: var(--mid); margin-bottom: 20px; line-height: 1.6;
}
.task-list { display: grid; gap: 8px; }
.task-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; background: var(--paper); border-radius: 12px;
  font-size: 15px; line-height: 1.5; cursor: pointer; user-select: none;
  transition: background 0.15s, transform 0.15s;
  border: 1px solid transparent;
}
.task-item:hover { background: #f3fbf6; border-color: #c5e8d2; transform: translateX(2px); }
.task-item.done { opacity: 0.55; }
.task-item.done .task-text { text-decoration: line-through; }
.task-checkbox {
  width: 22px; height: 22px; border: 2px solid #ccc; border-radius: 6px;
  flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.task-item.done .task-checkbox {
  background: var(--success); border-color: var(--success); color: var(--ink);
  transform: rotate(360deg);
}
.task-checkmark { opacity: 0; transition: opacity 0.15s; color: var(--ink); }
.task-item.done .task-checkmark { opacity: 1; }
.practice-complete-msg {
  margin-top: 16px; padding: 14px 18px;
  background: var(--success-soft); border-radius: 12px;
  border: 1px solid var(--success);
  font-size: 14px; color: var(--ink); font-weight: 500; display: none;
}
.practice-complete-msg.show { display: block; }

/* Source evaluation (Module 3) */
.source-eval { display: grid; gap: 12px; margin: 20px 0; }
.source-item {
  background: white; border: 1px solid var(--light); border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.source-item-text { font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
.source-buttons { display: flex; gap: 8px; }
.source-btn {
  padding: 8px 18px; background: white;
  border: 1.5px solid var(--light); border-radius: 9999px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.source-btn:hover:not(.disabled) { border-color: #ccc; }
.source-btn.correct { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.source-btn.wrong { background: #fffce0; border-color: #fbed4f; color: var(--ink); opacity: 0.85; }
.source-btn.disabled { cursor: default; }
.source-feedback {
  margin-top: 14px; padding: 12px 14px;
  background: var(--paper); border-left: 3px solid var(--light);
  border-radius: 0 12px 12px 0; font-size: 14px; line-height: 1.55;
  display: none;
}
.source-feedback.show { display: block; }
.source-feedback.right { border-left-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.source-feedback.wrong { border-left-color: #fbed4f; background: #fffce0; color: var(--ink); }

/* Reference evaluation (Module 4) — same pattern */
.ref-item {
  background: white; border: 1px solid var(--light); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ref-source { font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
.ref-buttons { display: flex; gap: 8px; }
.ref-btn {
  padding: 8px 18px; background: white;
  border: 1.5px solid var(--light); border-radius: 9999px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.ref-btn:hover:not(.disabled) { border-color: #ccc; }
.ref-btn.correct { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.ref-btn.wrong { background: #fffce0; border-color: #fbed4f; color: var(--ink); opacity: 0.85; }
.ref-btn.disabled { cursor: default; }
.ref-feedback {
  margin-top: 14px; padding: 12px 14px;
  background: var(--paper); border-left: 3px solid var(--light);
  border-radius: 0 12px 12px 0; font-size: 14px; line-height: 1.55;
  display: none;
}
.ref-feedback.show { display: block; }
.ref-feedback.right { border-left-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.ref-feedback.wrong { border-left-color: #fbed4f; background: #fffce0; color: var(--ink); }

/* Fix-the-text workshop (Modules 3, 6) */
.fix-item {
  background: white; border: 1px solid var(--light); border-radius: 20px;
  padding: 22px 24px; margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.fix-question { font-family: var(--serif); font-weight: 600; font-size: 17px; margin-bottom: 16px; }
.fix-options { display: grid; gap: 8px; }
.fix-option {
  display: block; padding: 12px 14px;
  border: 1.5px solid var(--light); border-radius: 12px;
  font-size: 14.5px; line-height: 1.5; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.fix-option:hover:not(.disabled) { border-color: #c5e8d2; background: #f3fbf6; transform: translateX(2px); }
.fix-option.correct { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.fix-option.incorrect { border-color: #fbed4f; background: #fffce0; color: var(--ink); opacity: 0.85; }
.fix-option.disabled { cursor: default; }
.fix-feedback {
  margin-top: 14px; padding: 12px 14px; border-radius: 6px;
  font-size: 14px; line-height: 1.55; display: none;
}
.fix-feedback.show { display: block; }
.fix-feedback.right { background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--ink); }
.fix-feedback.wrong { background: #fffce0; border-left: 3px solid #fbed4f; color: var(--ink); }

/* Scenario block (Module 5) — read-only dialogue */
.scenario-block {
  background: #fdfaf2; border: 1px solid var(--light); border-radius: 20px;
  padding: 22px 26px; margin: 24px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.scenario-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--mid); margin-bottom: 12px;
}
.scenario-text { font-size: 15px; line-height: 1.65; }
.scenario-text strong { font-weight: 600; color: var(--ink); }

/* Grids used in various modules */
.username-grid, .tool-compare, .bias-grid, .wp-grid,
.source-grid, .finder-grid, .sustain-grid, .skills-grid,
.example-grid {
  display: grid; gap: 10px; margin: 20px 0;
}
.tool-compare, .source-grid, .finder-grid { grid-template-columns: 1fr 1fr; }
.skills-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) {
  .tool-compare, .source-grid, .finder-grid, .skills-grid { grid-template-columns: 1fr; }
}
.username-grid .card,
.bias-grid .card,
.wp-grid .card,
.source-card, .finder-card, .sustain-card {
  background: white; border: 1px solid var(--light); border-radius: 14px;
  padding: 14px 18px; font-size: 14.5px; line-height: 1.55;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card-name, .source-card-name, .finder-card-name, .sustain-card-name {
  font-weight: 600; font-size: 15px; margin-bottom: 4px;
}
.card-desc, .source-card-desc, .finder-card-desc, .sustain-card-desc {
  font-size: 14px; color: var(--mid); line-height: 1.55;
}
.skill-card {
  background: white; border: 1px solid var(--light); border-radius: 14px;
  padding: 14px 18px; font-size: 14px; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.skill-card-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--success); color: var(--ink);
  font-weight: 700; margin-right: 8px;
}

.practice-option {
  background: var(--paper); border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 10px 0;
  font-size: 14.5px; line-height: 1.55;
}

.sandbox-url {
  font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
  background: var(--accent-soft); padding: 10px 16px; border-radius: 9999px;
  font-size: 14px; color: var(--accent-hover); display: inline-block; margin: 10px 0;
  border: 1px solid var(--accent);
}

/* Module-complete screen */
.completion {
  max-width: var(--max-w); margin: 32px auto;
  padding: 56px 32px 64px; text-align: center; display: none;
  background: var(--accent-soft);
  border-radius: 28px;
  border: 1px solid var(--accent);
  box-shadow: 0 8px 32px rgba(0, 159, 87, 0.12);
  position: relative;
  overflow: hidden;
}
.completion::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--success) 0%, transparent 60%);
  opacity: 0.25;
  pointer-events: none;
}
.completion::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: 0.18;
  pointer-events: none;
}
.completion.show {
  display: block;
  animation: completion-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes completion-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.completion-icon { font-size: 56px; margin-bottom: 16px; position: relative; z-index: 1; animation: completion-bounce 1.4s ease-in-out infinite; }
@keyframes completion-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.completion-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--success); color: var(--ink);
  margin-bottom: 20px;
  position: relative; z-index: 1;
  animation: completion-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.2s;
}
@keyframes completion-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.completion h2 {
  font-family: var(--module-headline); font-size: clamp(26px, 3.8vw, 34px);
  font-weight: 400; margin-bottom: 16px;
  letter-spacing: -0.005em; text-transform: uppercase; line-height: 1.1;
  position: relative; z-index: 1;
}
.completion p {
  color: var(--ink); font-size: 16px; max-width: 480px; margin: 0 auto 12px;
  line-height: 1.65;
  position: relative; z-index: 1;
  opacity: 0.85;
}
.completion-cta {
  margin-top: 28px; display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.completion-cta .continue-btn { font-size: 14px; padding: 12px 24px; }
.completion.graduation { padding: 64px 32px 80px; }
.completion.graduation h2 { font-size: clamp(34px, 5vw, 48px); }

/* Journey tracker page */
.journey-page { max-width: 840px; margin: 0 auto; padding: 64px 24px 80px; }
.journey-header { text-align: center; margin-bottom: 40px; }
.journey-header h1 {
  font-family: var(--module-headline); font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 400; letter-spacing: -0.005em; margin-bottom: 12px;
  text-transform: uppercase; line-height: 1.05;
}
.journey-header p { color: var(--mid); font-size: 16px; }

.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: white; border: 1px solid var(--light); border-radius: 20px;
  padding: 22px 24px; margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
@media (max-width: 640px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { text-align: center; }
.stat-num {
  font-family: var(--module-headline); font-size: 26px; font-weight: 400; color: var(--ink);
  letter-spacing: -0.005em;
}
.stat-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--mid); margin-top: 4px;
}

.trail { position: relative; padding-left: 32px; }
.trail::before {
  content: ''; position: absolute; left: 14px; top: 20px; bottom: 20px;
  width: 2px; background: var(--light);
}
.trail-node {
  position: relative; background: white;
  border: 1px solid var(--light); border-radius: 20px;
  padding: 22px 24px; margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.trail-node:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.trail-node::before {
  content: ''; position: absolute; left: -26px; top: 28px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--light); border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--light);
}
.trail-node.complete::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.trail-node.active::before {
  background: var(--accent); box-shadow: 0 0 0 2px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent); }
  50% { box-shadow: 0 0 0 6px var(--accent-soft); }
}
.trail-node.locked { opacity: 0.55; }
.trail-node.active { border-color: var(--accent); }
.trail-node .node-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 10px;
}
.node-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--mid);
}
.trail-node.active .node-label { color: var(--accent); }
.trail-node.complete .node-label { color: var(--success); }
.node-title {
  font-family: var(--module-headline); font-size: 18px; font-weight: 400;
  margin-top: 4px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: -0.005em;
}
.node-progress {
  height: 6px; background: var(--light); border-radius: 3px;
  margin-top: 14px; overflow: hidden;
}
.node-progress-fill {
  height: 100%; background: var(--accent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.trail-node.complete .node-progress-fill { background: var(--success); }
.node-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--mid); margin-top: 10px;
}
.node-cta { margin-top: 16px; }

@media (max-width: 640px) {
  .hero { padding: 40px 20px 36px; }
  .section { padding: 0 20px 48px; }
  .check-wrap, .practice-block, .steps-block, .fix-item { padding: 20px; }
  .journey-page { padding: 40px 20px 60px; }
}
