/* ============================================================
   JOURNEY PAGE — "Your Treatment Journey"
   Layered on base.css + v3.css + v9.css. Reuses tokens, type
   and the accent system so it tracks every palette automatically.
   Signature component: the three-phase pathway timeline (§3).
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.jn-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-note);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate-mid);
}
.jn-crumb a { color: var(--slate-mid); text-decoration: none; border: 0; transition: color 160ms var(--ease); }
.jn-crumb a:hover { color: var(--fg-strong); opacity: 1; }
.jn-crumb .sep { opacity: 0.5; }
.jn-crumb .here { color: var(--fg-strong); }

/* ============================================================
   1 — HERO
   ============================================================ */
/* Hero follows the /costs pattern — a two-column grid inside .container with a
   rounded, cropped image panel. This replaced an absolutely-positioned
   transparent cut-out that bled into the page ground, and with it goes
   everything that arrangement needed: the viewport-tracking min-height, the
   flex-column centering, and the width:100% / min-width:0 / calc() max-width
   workarounds. `align-items: center` does the centering natively. */
.jn-hero {
  padding: 43px 0 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.jn-hero .container { position: relative; z-index: 1; }
.jn-hero-grid {
  margin-top: 22px;
  padding: 40px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.jn-hero-text { min-width: 0; }
.jn-hero h1 { max-width: none; font-size: clamp(30px, 3.2vw, 42px); }
.jn-hero .jn-standfirst {
  margin-top: 26px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
  color: var(--slate-dark);
  max-width: var(--measure);
}
.jn-hero .jn-standfirst em { font-style: italic; color: var(--accent-deep); }
.jn-hero-ctas {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.jn-hero-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  align-self: stretch;
  min-height: 440px;
  background: var(--bg-alt);
}
.jn-hero-media img,
.jn-hero-media image-slot {
  display: block;
  width: 100%;
  height: 100%;
  /* Source is 1600x1067 (1.50) in a ~1.04 panel, so cover crops the sides
     hard. 62% keeps the patient and the care team in frame rather than
     centring on empty bed. */
  object-fit: cover;
  object-position: 62% center;
}
.jn-hero-figcap {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: var(--fs-note);
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0,0,0,0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 7px 13px;
  border-radius: 999px;
}

/* ============================================================
   2 — BEFORE YOU TRAVEL — remote assessment (conversion lever)
   ============================================================ */
.jn-remote { padding: var(--section-py) 0; background: var(--bg-alt); }
.jn-remote-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--sage-pale);
  border-radius: 14px;
  padding: clamp(36px, 4.5vw, 64px);
}
.jn-remote-panel .eyebrow { color: var(--sage-deep); margin-bottom: 20px; }
.jn-remote-panel .eyebrow::before { background: var(--sage-deep); }
.jn-remote-head {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--sage-ink);
  margin: 0;
  max-width: 16ch;
}
.jn-remote-head em { font-style: italic; }
.jn-remote-lead {
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--sage-ink);
  max-width: 46ch;
}
.jn-remote-lead strong { font-weight: 600; }
.jn-remote-side {
  background: color-mix(in oklab, var(--bg-card) 78%, transparent);
  border: 1px solid color-mix(in oklab, var(--sage-deep) 16%, transparent);
  border-radius: 12px;
  padding: 30px 32px;
}
.jn-remote-side .k {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 18px;
}
.jn-checklist { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.jn-checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sage-ink);
}
.jn-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--sage-deep);
  background:
    linear-gradient(45deg, transparent 44%, var(--sage-deep) 45%, var(--sage-deep) 55%, transparent 56%) center/9px 9px no-repeat;
}
.jn-remote-side .link-quiet { display: inline-flex; margin-bottom: 24px; }

/* ============================================================
   3 — THE PATHWAY AT A GLANCE — SIGNATURE TIMELINE
   ============================================================ */
.jn-pathway { padding: var(--section-py) 0; }
.jn-pathway .section-head { margin-bottom: 8px; }

.jn-timeline {
  margin: 44px 0 0;
}

/* Location ribbon — Shanghai spans phases 1 & 3, At home over phase 2 */
.jn-tl-places {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.jn-tl-place {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate-mid);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.jn-tl-place.city { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
.jn-tl-place.home { color: var(--sage-deep); border-bottom: 2px dashed var(--sage-mid); }
.jn-tl-place .glyph {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
}

/* Phase cards on the track */
.jn-tl-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
/* connecting line running through the node dots */
.jn-tl-track::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 12px, transparent 12px 20px);
  z-index: 0;
}
.jn-phase {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-top: 52px;
}
.jn-phase::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 14%, transparent);
}
.jn-phase.home::before {
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--sage-deep) 14%, transparent);
}
.jn-phase-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,0.04));
}
.jn-phase.home .jn-phase-card {
  background: color-mix(in oklab, var(--sage-pale) 45%, var(--bg));
  border: 1px dashed var(--sage-mid);
}
.jn-phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  white-space: nowrap;
}
.jn-phase.city .jn-phase-tag { color: #fff; background: var(--accent-deep); }
.jn-phase.home .jn-phase-tag { color: var(--sage-ink); background: color-mix(in oklab, var(--sage-mid) 50%, transparent); }
.jn-phase-eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 8px;
}
.jn-phase-title {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin: 0;
}
.jn-phase-dur {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.jn-phase-dur .n {
  font-family: var(--font-serif);
  font-weight:500;
  font-style: italic;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  color: var(--accent-deep);
}
.jn-phase.home .jn-phase-dur .n { color: var(--sage-deep); }
.jn-phase-dur .u {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-mid);
}
.jn-phase-card p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--slate-dark);
  margin: 0;
}

/* flight markers sitting on the track between the phases */
.jn-tl-flights {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 22px;
}
.jn-flight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  font-family: var(--font-sans);
  font-size: var(--fs-note);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--slate-mid);
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  white-space: nowrap;
}
.jn-flight .plane { color: var(--accent-deep); }
.jn-flight.f1 { grid-column: 1 / 3; }
.jn-flight.f2 { grid-column: 2 / 4; }

.jn-timeline-cap {
  margin-top: 34px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(20px,1.9vw, 23px);
  line-height: 1.4;
  color: var(--slate-mid);
}
.jn-timeline-cap em { color: var(--accent-deep); font-style: italic; }

/* ============================================================
   PHASE DETAIL SECTIONS (§4–6) — shared shell
   ============================================================ */
.jn-stage { padding: 80px 0; border-top: 1px solid var(--border-soft); }
.jn-stage.alt { background: var(--bg-alt); }
.jn-stage-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.jn-stage-aside { position: sticky; top: 40px; }
.jn-stage-num {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  color: var(--slate-light);
  display: block;
  margin-bottom: 18px;
}
.jn-stage-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.jn-stage-loc.city { color: var(--accent-deep); background: var(--bg-card); border: 1px solid var(--border-soft); }
.jn-stage-loc.home { color: var(--sage-deep); background: var(--bg-card); border: 1px solid var(--border-soft); }
.jn-stage-aside h2 {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--fg-strong);
  margin: 0 0 14px;
}
.jn-stage-aside h2 em { font-style: italic; }
.jn-stage-aside .jn-stage-dur {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--slate-mid);
}
.jn-stage-body > p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.74;
  color: var(--slate-dark);
  margin: 0 0 22px;
}
.jn-stage-body > p:last-child { margin-bottom: 0; }
.jn-stage-body strong { color: var(--fg-strong); font-weight: 600; }
.jn-stage-body em { font-style: italic; color: var(--accent-deep); }

/* Day-level list */
.jn-days { list-style: none; margin: 6px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.jn-day {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
}
.jn-day:last-child { border-bottom: 1px solid var(--border-soft); }
.jn-day .d {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-top: 3px;
}
.jn-day .t { font-size: 15px; line-height: 1.6; color: var(--slate-dark); margin: 0; }
.jn-day .t strong { color: var(--fg-strong); font-weight: 600; }

/* On-site / callout note inside a stage */
.jn-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin-top: 4px;
}
.jn-note .lbl {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-top: 3px;
}
.jn-note p { font-size: 14px; line-height: 1.6; color: var(--slate-dark); margin: 0; }

/* ICU strong-signal card (Trip 2) */
.jn-icu {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--sage-pale);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 24px;
}
.jn-icu .n {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: 52px;
  line-height: 0.9;
  color: var(--sage-deep);
  flex: 0 0 auto;
}
.jn-icu .txt { font-size: var(--fs-sm); line-height: 1.55; color: var(--sage-ink); }
.jn-icu .txt strong { font-weight: 600; }
.jn-inline-link {
  color: var(--accent-deep);
  font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--accent-deep) 45%, transparent);
  cursor: pointer;
}
.jn-inline-link:hover { border-color: var(--accent-deep); opacity: 1; }

/* ============================================================
   7 — FOLLOW-UP CARE
   ============================================================ */
.jn-follow { padding: var(--section-py) 0; border-top: 1px solid var(--border-soft); }
.jn-follow-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: clamp(36px, 4vw, 60px);
}
.jn-follow-panel .eyebrow { margin-bottom: 20px; }
.jn-follow h2 {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.08;
  color: var(--fg-strong);
  margin: 0;
  max-width: 20ch;
}
.jn-follow h2 em { font-style: italic; }
.jn-follow p { font-size: 16.5px; line-height: 1.72; color: var(--slate-dark); }
.jn-follow p strong { color: var(--fg-strong); font-weight: 600; }
.jn-follow-cadence {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.jn-follow-cadence .n {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
  color: var(--accent-deep);
}
.jn-follow-cadence .u {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-mid);
  max-width: 12ch;
  line-height: 1.4;
}

/* ============================================================
   8 — PRACTICAL SUPPORT — 4 items
   ============================================================ */
.jn-support { padding: var(--section-py) 0; background: var(--bg-alt); }
.jn-support .section-head { margin-bottom: 44px; }
.jn-support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
.jn-support-item {
  background: var(--bg);
  padding: 32px 34px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jn-support-item .ic {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.jn-support-item .ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.jn-support-item h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  color: var(--fg-strong);
  margin: 0;
}
.jn-support-item p { font-size: var(--fs-sm); line-height: 1.65; color: var(--slate-dark); margin: 0; }

/* ============================================================
   9 — INELIGIBLE (honesty block)
   ============================================================ */
.jn-honesty { padding: var(--section-py) 0; }
.jn-honesty-panel {
  background: var(--sage-pale);
  border-radius: 14px;
  padding: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 80px);
}
.jn-honesty-panel .eyebrow { color: var(--sage-deep); margin-bottom: 22px; }
.jn-honesty-panel .eyebrow::before { background: var(--sage-deep); }
.jn-honesty h2 {
  font-family: var(--font-serif);
  font-weight:500;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--sage-ink);
  margin: 0 0 26px;
  max-width: 22ch;
}
.jn-honesty h2 em { font-style: italic; }
.jn-honesty-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1000px;
}
.jn-honesty-body p { font-size: 16px; line-height: 1.72; color: var(--sage-ink); margin: 0; }
.jn-honesty-body p strong { font-weight: 600; }
.jn-honesty-refund {
  border-left: 2px solid var(--accent);
  padding-left: 22px;
}
.jn-honesty-refund .k {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 12px;
}
.jn-honesty-refund a { color: var(--accent-deep); font-weight: 500; }
.jn-pay-touchpoints {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.jn-pay-touchpoints .tp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: color-mix(in oklab, var(--bg-card) 70%, transparent);
  border: 1px solid color-mix(in oklab, var(--sage-deep) 16%, transparent);
  border-radius: 10px;
  padding: 16px 20px;
  flex: 1;
  min-width: 180px;
}
.jn-pay-touchpoints .tp .n {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.jn-pay-touchpoints .tp .l {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 17px;
  color: var(--sage-ink);
}

/* ============================================================
   10 — CLOSING CTA (shared shape with .rx-cta-panel)
   ============================================================ */
.jn-cta-sec { padding: 0 0 112px; }
.jn-cta-panel {
  background: var(--bg-dark);
  border-radius: 14px;
  padding: clamp(56px, 6vw, 88px) clamp(32px, 6vw, 96px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.jn-cta-panel .eyebrow { color: var(--coral-soft); margin-bottom: 22px; }
.jn-cta-panel .eyebrow::before { background: var(--coral-soft); }
.jn-cta-panel h2 { color: #fff; max-width: 20ch; }
.jn-cta-panel h2 em { font-style: italic; }
.jn-cta-panel .lede {
  margin-top: 24px;
  max-width: var(--measure);
  color: rgba(255,255,255,0.78);
}
.jn-cta-panel .btn { margin-top: 36px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Matches the /costs hero collapse: one column, shorter panel. */
@media (max-width: 1000px) {
  .jn-hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 56px; }
  .jn-hero-media { min-height: 300px; }
}
@media (max-width: 1000px) {
  .jn-remote-panel { grid-template-columns: 1fr; gap: 32px; }
  .jn-follow-panel { grid-template-columns: 1fr; gap: 28px; }
  .jn-stage-grid { grid-template-columns: 1fr; gap: 28px; }
  .jn-stage-aside { position: static; }
}
@media (max-width: 860px) {
  /* Timeline stacks vertically on mobile — the middle phase stays distinct */
  .jn-tl-places { display: none; }
  .jn-tl-track { grid-template-columns: 1fr; gap: 0; padding-left: 30px; }
  .jn-tl-track::before {
    top: 0; bottom: 0; left: 8px; right: auto;
    width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--border) 0 12px, transparent 12px 20px);
  }
  .jn-phase { padding-top: 0; padding-bottom: 24px; }
  .jn-phase::before { top: 26px; left: -22px; transform: none; }
  .jn-tl-flights { display: none; }
  .jn-honesty-body { grid-template-columns: 1fr; gap: 28px; }
  .jn-support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .jn-remote, .jn-pathway, .jn-follow, .jn-support, .jn-honesty { padding: 64px 0; }
  .jn-stage { padding: 56px 0; }
  .jn-day { grid-template-columns: 1fr; gap: 6px; }
}
