/* ═══════════════════════════════════════════════════════════
   journey.css — "Your Journey" landing page
   From Flashcards to IELTS: a gold road running down the LEFT
   side, courses as compact stations. Depends on main.css tokens
   and the shared wh-* hero classes from why.css.
   ═══════════════════════════════════════════════════════════ */

/* ── Intro block ─────────────────────────────── */
.jr-intro {
  max-width: 700px;
  margin: 10px auto 26px;
  text-align: center;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--text-dim, #a9a9b6);
}
.jr-intro strong { color: var(--text, #f4f4f6); }

.jr-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.jr-jumps a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(251, 191, 36, .35);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gold-light, #fcd34d);
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease;
}
.jr-jumps a:hover {
  border-color: var(--gold, #fbbf24);
  background: rgba(251, 191, 36, .08);
}

/* ── The road: a left rail ───────────────────── */
.jr-road {
  position: relative;
  padding: 26px 0 8px;
}

/* the track — hugging the left edge */
.jr-line {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(251, 191, 36, .16);
  border-radius: 3px;
}

/* the fill that grows as the learner scrolls */
.jr-line i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--gold, #fbbf24), var(--gold-dark, #f59e0b));
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(251, 191, 36, .45);
}
.jr-line i::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--gold-light, #fcd34d);
  box-shadow: 0 0 10px rgba(251, 191, 36, .9);
}

/* ── Level milestones ────────────────────────── */
.jr-level {
  position: relative;
  max-width: 720px;
  padding: 46px 0 14px 58px;
}
.jr-level-marker {
  position: absolute;
  left: -0.5px;                  /* center on the rail */
  top: 46px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg, #0b0b0f);
  border: 2px solid var(--gold, #fbbf24);
  color: var(--gold, #fbbf24);
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(251, 191, 36, .28);
  z-index: 1;
}
.jr-level-name {
  margin: 0 0 2px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text, #f4f4f6);
}
.jr-level-tag {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold-light, #fcd34d);
}
.jr-level-intro {
  margin: 10px 0 0;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--text-dim, #a9a9b6);
}

/* ── Stations ────────────────────────────────── */
.jr-stop {
  position: relative;
  max-width: 720px;
  padding: 18px 0 18px 58px;
}
.jr-dot {
  position: absolute;
  left: 13px;                    /* center on the rail */
  top: 28px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-card-3, #24242f);
  border: 2px solid rgba(251, 191, 36, .35);
  z-index: 1;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.jr-stop.is-passed .jr-dot {
  background: var(--gold, #fbbf24);
  border-color: var(--gold, #fbbf24);
  box-shadow: 0 0 12px rgba(251, 191, 36, .65);
}

.jr-narration {
  margin: 0 0 14px;
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--text-dim, #a9a9b6);
}
.jr-narration strong { color: var(--text, #f4f4f6); }
.jr-narration em {
  font-style: italic;
  color: var(--gold-light, #fcd34d);
}

/* the small label between narration and card */
.jr-course-label {
  display: block;
  margin: 0 0 6px;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light, #fcd34d);
}

/* ── Compact course card ─────────────────────── */
.jr-course-card {
  max-width: 560px;
  padding: 15px 18px 13px;
  background: var(--bg-card, #14141b);
  border: 1px solid var(--border, #272733);
  border-radius: 14px;
  transition: border-color .25s ease, transform .25s ease;
}
.jr-course-card:hover {
  border-color: var(--border-strong, #34343f);
  transform: translateY(-2px);
}
.jr-course-name {
  margin: 0 0 5px;
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text, #f4f4f6);
}
.jr-course-desc {
  margin: 0 0 10px;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--text-dim, #a9a9b6);
}
.jr-course-card .ld-content-link {
  font-size: .9rem;
}

/* ── The fork ────────────────────────────────── */
.jr-fork {
  position: relative;
  padding: 46px 0 10px;
}
.jr-fork-question {
  max-width: 720px;
  margin: 0;
  padding-left: 58px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--text, #f4f4f6);
}
.jr-fork-question em {
  font-style: normal;
  color: var(--gold, #fbbf24);
}
.jr-fork-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 980px;
  margin: 22px 0 0;
  padding-left: 58px;
}
.jr-branch-label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-light, #fcd34d);
}
.jr-branch .jr-narration { margin-bottom: 12px; }

/* ── Closing block ───────────────────────────── */
.jr-final {
  text-align: center;
  padding: 72px 0 10px;
}
.jr-final-congrats {
  margin: 0 0 6px;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light, #fcd34d);
}
.jr-final h2 {
  margin: 0 0 10px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text, #f4f4f6);
}
.jr-final-proud {
  margin: 0 0 26px;
  font-size: 1.05rem;
  color: var(--text-dim, #a9a9b6);
}

/* ── Scroll reveals (only when wh-anim is set) ── */
.wh-anim .jr-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.wh-anim .jr-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── Narrow screens ──────────────────────────── */
@media (max-width: 860px) {
  .jr-fork-branches { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .jr-intro { font-size: 1rem; }
  .jr-narration { font-size: .98rem; }
}

/* ── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .jr-line i { box-shadow: none; }
  .jr-dot, .jr-stop.is-passed .jr-dot { transition: none; }
  .jr-course-card, .jr-course-card:hover { transition: none; transform: none; }
}
