/* =========================================================
   Patient Journeys — the experience the patient moves through.

   Prefix pj-, layered on pages/products/products.css (pr-), which
   already carries the type scale, the sections, the product surface
   (.pr-ui), tags, fields, the FAQ, the final CTA and the reveal
   contract. Nothing here repeats any of that.

   What this page owns that no sibling does: the Webfront — a mobile
   patient-facing FORM, not a conversation. Patient Education's phones
   are chat bubbles; these are slots, options, uploads, progress and
   status. That difference is the whole reason both pages can be
   phone-led without looking like each other.
   ========================================================= */

/* =========================================================
   INSIDE THE WEBFRONT — the parts only a booking form has. The device
   itself (.pr-fone, .pr-mark, .pr-prog, .pr-fh/fq/fp/fl, .pr-go and
   .pr-panel) moved into products.css when Patient Ticketing needed it.
   ========================================================= */

.pj-dr { display: flex; align-items: center; gap: calc(11 * var(--u)); padding: calc(11 * var(--u)) calc(12 * var(--u)); border: 1px solid var(--lime-ico); border-radius: var(--r); background: var(--lime-soft); }
.pj-dr img { flex: none; width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: 50%; object-fit: cover; }
.pj-dr > div { min-width: 0; }
.pj-dr > div > b { display: block; font-size: calc(15 * var(--u)); font-weight: 600; letter-spacing: -.015em; }
.pj-dr > div > span { display: block; margin-top: calc(1 * var(--u)); font-size: calc(12.5 * var(--u)); color: var(--lime-ink); }
.pj-dr .i { margin-left: auto; color: var(--lime-ink); }

.pj-chips { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(8 * var(--u)); }
.pj-chip { display: grid; justify-items: center; gap: calc(3 * var(--u)); padding: calc(10 * var(--u)) calc(4 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; font-size: calc(13 * var(--u)); font-weight: 600; text-align: center; white-space: nowrap; }
.pj-chip em { font-style: normal; font-size: calc(10.5 * var(--u)); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
/* the chosen chip carries a tick, so the choice is not only green */
.pj-chip.on { border-color: var(--lime-ico); background: var(--lime); }
.pj-chip.on em { color: var(--lime-ink); }
.pj-chip .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); stroke-width: 2.4; color: var(--lime-ink); }

.pj-opts { display: grid; gap: calc(8 * var(--u)); }
.pj-opt { display: flex; align-items: center; gap: calc(11 * var(--u)); padding: calc(11 * var(--u)) calc(13 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); font-size: calc(14.5 * var(--u)); font-weight: 500; }
.pj-opt > i { flex: none; width: calc(15 * var(--u)); height: calc(15 * var(--u)); border-radius: 50%; border: 2px solid var(--divider); background: #fff; }
.pj-opt.on { border-color: var(--lime-ico); background: var(--lime-soft); font-weight: 600; }
.pj-opt.on > i { border-color: var(--lime-ico); background: var(--lime); box-shadow: inset 0 0 0 calc(3 * var(--u)) #fff; }

.pj-ups { display: grid; gap: calc(8 * var(--u)); }
.pj-up { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(11 * var(--u)) calc(13 * var(--u)); border: 1px dashed var(--divider); border-radius: var(--r); font-size: calc(14 * var(--u)); font-weight: 500; }
.pj-up .i { color: var(--faint); }
.pj-up .pr-tag { margin-left: auto; }
.pj-up.done { border-style: solid; border-color: var(--lime-ico); background: var(--lime-soft); }
.pj-up.done .i { color: var(--lime-ink); }

.pj-inps { display: grid; gap: calc(10 * var(--u)); }
.pj-inp { display: grid; gap: calc(5 * var(--u)); }
.pj-inp > span { font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pj-inp > b { padding: calc(11 * var(--u)) calc(13 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); font-size: calc(14.5 * var(--u)); font-weight: 500; }
.pj-inp > b.todo { border-style: dashed; color: var(--faint); font-weight: 400; }


.pj-done { display: grid; justify-items: center; gap: calc(9 * var(--u)); padding: calc(8 * var(--u)) 0 calc(2 * var(--u)); text-align: center; }
.pj-done__tick { display: grid; place-items: center; flex: none; width: calc(48 * var(--u)); height: calc(48 * var(--u)); border-radius: 50%; background: var(--lime); }
.pj-done__tick .i { width: calc(23 * var(--u)); height: calc(23 * var(--u)); stroke-width: 2.2; }
.pj-done__when { font-size: calc(16 * var(--u)); font-weight: 700; font-variant-numeric: tabular-nums; }

.pj-tick { display: grid; gap: calc(9 * var(--u)); padding: calc(13 * var(--u)) calc(14 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: var(--grey); }
.pj-tick__id { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 700; }
.pj-tick__sub { font-size: calc(12.5 * var(--u)); color: var(--muted); }

/* =========================================================
   01 HERO — a conversation, a line, and the Webfront it opens
   ========================================================= */
/* The copy column is widened from the shared .82fr and the H1 dropped from
   64 to 58, because they were measured against each other rather than
   guessed: at 64 on a 505px column "patients move through." runs 557px and
   breaks to a third line ending in one orphaned word. 58 on a 524px column
   leaves 19px of slack. */
.pj .pr-hero__cols { grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); }
.pj .pr-h1 { font-size: calc(58 * var(--u)); line-height: calc(69 * var(--u)); }

.pj-hero__stage { position: relative; display: grid; justify-items: end; min-height: calc(560 * var(--u)); }
.pj-person { position: absolute; left: calc(-40 * var(--u)); bottom: calc(-58 * var(--u)); width: calc(400 * var(--u)); z-index: 0; }
.pj-person img {
  width: 100%; height: auto; border-radius: var(--r-card);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .78) 80%, rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .78) 80%, rgba(0, 0, 0, 0) 100%);
}
.pj-hero__phone, .pj-tap, .pj-wire { position: relative; z-index: 1; }

/* the message the journey starts from */
.pj-tap { width: calc(340 * var(--u)); padding: calc(15 * var(--u)) calc(17 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.pj-tap__who { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.pj-tap__who .i { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.pj-tap p { margin-top: calc(9 * var(--u)); font-size: calc(15 * var(--u)); line-height: calc(23 * var(--u)); font-weight: 500; }
.pj-tap__cta { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); margin-top: calc(12 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: var(--lime); font-size: calc(13.5 * var(--u)); font-weight: 700; }
.pj-tap__cta .i { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }

/* the line between the message and the Webfront it opens */
.pj-wire { display: grid; justify-items: center; gap: 0; width: calc(340 * var(--u)); height: calc(46 * var(--u)); }
.pj-wire i { display: block; width: 2px; height: 100%; background: var(--divider); }
.pj-wire i::after { content: ""; display: block; width: 2px; height: 0; background: var(--lime-ico); transition: height 1.1s var(--ease) .35s; }
.pj-hero__stage.is-in .pj-wire i::after { height: 100%; }

/* =========================================================
   02 THE BUILDER — four steps, four patient-facing experiences
   ========================================================= */
.pj-build { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: calc(64 * var(--u)); align-items: start; }

.pj-steps { position: relative; display: grid; }
/* the rail runs from the first badge's centre to the last one's, so no
   row-gap: the air lives inside each step as padding */
.pj-steps::before { content: ""; position: absolute; left: calc(17 * var(--u)); top: calc(31 * var(--u)); bottom: calc(31 * var(--u)); width: 2px; background: var(--divider); }
.pj-step { position: relative; display: grid; grid-template-columns: calc(34 * var(--u)) minmax(0, 1fr); align-items: start; column-gap: calc(17 * var(--u)); width: 100%; padding: calc(17 * var(--u)) calc(16 * var(--u)) calc(17 * var(--u)) 0; border: 0; border-bottom: 1px solid var(--rule); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pj-step:first-child { border-top: 1px solid var(--rule); }
.pj-step__n { display: grid; place-items: center; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; border: 2px solid var(--divider); background: #fff; font-size: calc(13 * var(--u)); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.pj-step__t { display: block; margin-top: calc(4 * var(--u)); font-family: var(--font-head); font-size: calc(21 * var(--u)); line-height: calc(27 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.pj-step__d { display: block; margin-top: calc(4 * var(--u)); font-size: calc(14.5 * var(--u)); line-height: calc(22 * var(--u)); color: var(--muted); }
.pj-step .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--lime-ico); }
.pj-step:hover .pj-step__n { border-color: var(--lime-ico); }
.pj-step.is-done .pj-step__n { border-color: var(--lime-ico); background: var(--lime-soft); color: var(--lime-ink); }
.pj-step[aria-selected="true"] .pj-step__n { border-color: var(--lime-ico); background: var(--lime); color: var(--ink); }
.pj-step[aria-selected="true"] .pj-step__t { color: var(--lime-ink); }
.pj-step:focus-visible { outline: 2px solid var(--ink); outline-offset: calc(-3 * var(--u)); }

.pj-build__side { display: grid; justify-items: center; gap: calc(16 * var(--u)); }
.pj-build__note { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(13.5 * var(--u)); font-weight: 600; color: var(--muted); }
.pj-build__note .i { color: var(--lime-ink); }

/* =========================================================
   03 EXPERIENCE TYPES — editorial, not a card grid
   ========================================================= */
.pj-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(56 * var(--u)); row-gap: calc(76 * var(--u)); }
.pj-type { display: grid; align-content: start; gap: calc(10 * var(--u)); }
.pj-type .pr-k { color: var(--lime-ink); }
.pj-type p { max-width: calc(480 * var(--u)); font-size: calc(16 * var(--u)); line-height: calc(25 * var(--u)); color: var(--muted); text-wrap: pretty; }
.pj-type .pr-fone { max-width: calc(400 * var(--u)); margin-top: calc(18 * var(--u)); }

/* =========================================================
   04 WEBFRONTS — one build, two entry points
   ========================================================= */
.pj-pub { display: grid; justify-items: center; }
.pj-pub__src { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(13 * var(--u)) calc(22 * var(--u)); border: 1px solid var(--lime-ico); border-radius: 999px; background: var(--lime-soft); font-size: calc(16 * var(--u)); font-weight: 600; color: var(--lime-ink); }

/* one line down, then a split to the two places it is published */
.pj-fork { position: relative; width: 100%; height: calc(58 * var(--u)); }
.pj-fork i { position: absolute; background: var(--divider); }
.pj-fork i:nth-child(1) { top: 0; left: calc(50% - 1px); width: 2px; height: calc(28 * var(--u)); }
.pj-fork i:nth-child(2) { top: calc(28 * var(--u)); left: 25%; right: 25%; height: 2px; }
.pj-fork i:nth-child(3) { top: calc(28 * var(--u)); left: calc(25% - 1px); width: 2px; bottom: 0; }
.pj-fork i:nth-child(4) { top: calc(28 * var(--u)); right: calc(25% - 1px); width: 2px; bottom: 0; }
.pj-pub.is-in .pj-fork i { background: var(--lime-ico); transition: background .6s var(--ease); }
.pj-pub.is-in .pj-fork i:nth-child(2) { transition-delay: .25s; }
.pj-pub.is-in .pj-fork i:nth-child(3), .pj-pub.is-in .pj-fork i:nth-child(4) { transition-delay: .5s; }

.pj-where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(36 * var(--u)); width: 100%; }
/* NOT justify-items: center — that sizes the grid area to max-content, so
   the panels' width: 100% resolves against their own content and they come
   out half the intended width. The column stretches; the label centres. */
.pj-where > li { display: grid; align-content: start; gap: calc(14 * var(--u)); }
.pj-where .pr-k { justify-self: center; color: var(--lime-ink); }

/* a conversation the Webfront opens from */
.pj-thread { width: 100%; max-width: calc(430 * var(--u)); margin-inline: auto; padding: calc(17 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.pj-thread__who { display: flex; align-items: center; gap: calc(10 * var(--u)); padding-bottom: calc(13 * var(--u)); border-bottom: 1px solid var(--rule); }
.pj-thread__who > div > b { display: block; font-size: calc(14.5 * var(--u)); font-weight: 600; }
.pj-thread__who > div > span { display: block; font-size: calc(12 * var(--u)); color: var(--muted); }
.pj-thread p { margin-top: calc(14 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: var(--r); background: var(--grey); font-size: calc(14.5 * var(--u)); line-height: calc(22 * var(--u)); }
.pj-thread .pr-go { margin-top: calc(10 * var(--u)); font-size: calc(14 * var(--u)); }

/* the same experience, on the hospital's own site */
.pj-site { width: 100%; max-width: calc(430 * var(--u)); margin-inline: auto; border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.pj-site__bar { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(11 * var(--u)) calc(14 * var(--u)); border-bottom: 1px solid var(--rule); background: #fcfcfb; }
.pj-site__url { flex: 1; min-width: 0; padding: calc(5 * var(--u)) calc(11 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; font-size: calc(11.5 * var(--u)); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-site__body { display: grid; gap: calc(12 * var(--u)); padding: calc(22 * var(--u)) calc(20 * var(--u)) calc(24 * var(--u)); }
.pj-site__body .pr-go { margin-top: calc(4 * var(--u)); }

.pj-caption { margin-top: calc(48 * var(--u)); text-align: center; }

/* create → edit → preview → publish */
.pr-flow { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: calc(56 * var(--u)); }
.pr-flow::before { content: ""; position: absolute; top: calc(7 * var(--u)); left: calc(8 * var(--u)); right: calc(100% / 4 - 8 * var(--u)); height: 2px; background: var(--divider); }
.pr-flow::after { content: ""; position: absolute; top: calc(7 * var(--u)); left: calc(8 * var(--u)); width: 0; height: 2px; background: var(--lime-ico); transition: width 1.6s var(--ease); }
.pr-flow.is-in::after { width: calc(100% - 100% / 4); }
.pr-flow > li { display: grid; justify-items: start; gap: calc(12 * var(--u)); padding-right: calc(22 * var(--u)); opacity: .4; transition: opacity .5s var(--ease); }
.pr-flow.is-in > li { opacity: 1; transition-delay: calc(var(--i) * 190ms); }
.pr-flow i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; border: 2px solid var(--divider); background: #fff; transition: border-color .5s var(--ease), background .5s var(--ease); }
.pr-flow.is-in i { border-color: var(--lime-ico); background: var(--lime); transition-delay: calc(var(--i) * 190ms); }
.pr-flow b { font-size: calc(16.5 * var(--u)); font-weight: 600; letter-spacing: -.015em; }
.pr-flow span { display: block; margin-top: calc(3 * var(--u)); font-size: calc(14 * var(--u)); line-height: calc(21 * var(--u)); color: var(--muted); }

/* =========================================================
   05 CUSTOM DESIGN — settings on the left, the patient's view on the right
   ========================================================= */
.pj-custom { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: calc(64 * var(--u)); align-items: start; }
.pj-set { display: grid; }
.pj-set > li { display: flex; align-items: center; gap: calc(14 * var(--u)); padding: calc(15 * var(--u)) 0; border-bottom: 1px solid var(--rule); font-size: calc(16 * var(--u)); font-weight: 600; }
.pj-set > li:first-child { border-top: 1px solid var(--rule); }
.pj-set .i { color: var(--faint); transition: color .4s var(--ease); }
.pj-set em { margin-left: auto; font-style: normal; font-size: calc(14 * var(--u)); font-weight: 500; color: var(--muted); }
.pj-set .sw { flex: none; width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: calc(5 * var(--u)); border: 1px solid var(--rule); background: var(--grey); }

/* the preview the settings drive */
.pj-prev { display: grid; gap: calc(16 * var(--u)); justify-items: center; }
.pj-prev__note { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(13.5 * var(--u)); font-weight: 600; color: var(--muted); }
.pj-prev__note .i { color: var(--lime-ink); }

/* =========================================================
   06 JOURNEY VISIBILITY — the funnel, and what it tells you
   ========================================================= */
.pj-vis { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); column-gap: calc(52 * var(--u)); align-items: start; }

.pj-funnel { position: relative; display: grid; padding-left: calc(30 * var(--u)); }
.pj-funnel::before { content: ""; position: absolute; left: calc(6 * var(--u)); top: calc(14 * var(--u)); bottom: calc(30 * var(--u)); width: 2px; background: var(--divider); }
.pj-funnel::after { content: ""; position: absolute; left: calc(6 * var(--u)); top: calc(14 * var(--u)); height: 0; width: 2px; background: var(--lime-ico); transition: height 1.9s var(--ease); }
.pj-funnel.is-in::after { height: calc(100% - 44 * var(--u)); }
.pj-funnel > li { position: relative; padding: 0 0 calc(24 * var(--u)); }
.pj-funnel > li:last-child { padding-bottom: 0; }
.pj-funnel > li::before { content: ""; position: absolute; left: calc(-30 * var(--u)); top: calc(8 * var(--u)); width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; border: 2px solid var(--divider); background: #fff; transition: border-color .5s var(--ease), background .5s var(--ease); }
.pj-funnel.is-in > li::before { border-color: var(--lime-ico); background: var(--lime); transition-delay: calc(var(--i) * 190ms); }
.pj-funnel b { display: block; font-family: var(--font-head); font-size: calc(38 * var(--u)); line-height: calc(44 * var(--u)); font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pj-funnel span { display: block; margin-top: calc(2 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pj-funnel .bar { display: block; height: calc(6 * var(--u)); margin-top: calc(11 * var(--u)); border-radius: 999px; background: var(--lime); width: var(--w); transform: scaleX(.06); transform-origin: left; transition: transform 1.1s var(--ease); }
.pj-funnel.is-in .bar { transform: none; transition-delay: calc(var(--i) * 190ms); }

.pj-drop { margin-top: calc(18 * var(--u)); }
.pj-drop > div { display: flex; align-items: baseline; justify-content: space-between; gap: calc(16 * var(--u)); padding: calc(14 * var(--u)) 0; border-bottom: 1px solid var(--rule); }
.pj-drop > div:last-child { border-bottom: 0; }
.pj-drop dt { font-size: calc(14 * var(--u)); color: var(--muted); }
.pj-drop dd { font-size: calc(19 * var(--u)); font-weight: 600; letter-spacing: -.015em; text-align: right; font-variant-numeric: tabular-nums; }
.pj-drop dd small { display: block; margin-top: calc(2 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 500; color: var(--muted); }

/* =========================================================
   07 THE PATIENT STORY — one evening, five minutes
   ========================================================= */
.pj-story { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: calc(64 * var(--u)); align-items: start; }
.pj-face { width: calc(420 * var(--u)); }
.pj-face img { width: 100%; height: auto; border-radius: var(--r-card); }
.pj-face figcaption { display: grid; gap: calc(5 * var(--u)); margin-top: calc(20 * var(--u)); }
.pj-face b { font-family: var(--font-head); font-size: calc(26 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.pj-face span { font-size: calc(16 * var(--u)); line-height: calc(24 * var(--u)); color: var(--muted); }

.pj-when { position: relative; display: grid; padding-left: calc(34 * var(--u)); }
.pj-when::before { content: ""; position: absolute; left: calc(7 * var(--u)); top: calc(9 * var(--u)); bottom: calc(26 * var(--u)); width: 2px; background: var(--divider); }
.pj-when::after { content: ""; position: absolute; left: calc(7 * var(--u)); top: calc(9 * var(--u)); height: 0; width: 2px; background: var(--lime-ico); transition: height 1.9s var(--ease); }
.pj-when.is-in::after { height: calc(100% - 35 * var(--u)); }
.pj-when > li { position: relative; padding-bottom: calc(26 * var(--u)); opacity: .45; transition: opacity .5s var(--ease); }
.pj-when.is-in > li { opacity: 1; transition-delay: calc(var(--i) * 190ms); }
.pj-when > li:last-child { padding-bottom: 0; }
.pj-when > li::before { content: ""; position: absolute; left: calc(-34 * var(--u)); top: calc(3 * var(--u)); width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; border: 2px solid var(--divider); background: #fff; transition: border-color .5s var(--ease), background .5s var(--ease); }
.pj-when.is-in > li::before { border-color: var(--lime-ico); background: var(--lime); transition-delay: calc(var(--i) * 190ms); }
.pj-when time { display: block; font-size: calc(13.5 * var(--u)); font-weight: 700; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pj-when b { display: block; margin-top: calc(4 * var(--u)); font-family: var(--font-head); font-size: calc(21 * var(--u)); line-height: calc(28 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.pj-when p { margin-top: calc(4 * var(--u)); max-width: calc(480 * var(--u)); font-size: calc(15 * var(--u)); line-height: calc(23 * var(--u)); color: var(--muted); }
.pj-when .end { display: inline-flex; align-items: center; gap: calc(9 * var(--u)); margin-top: calc(4 * var(--u)); padding: calc(9 * var(--u)) calc(16 * var(--u)); border-radius: 999px; background: var(--lime); font-size: calc(14.5 * var(--u)); font-weight: 700; }

/* =========================================================
   08 CARE JOURNEYS — four strips, not four cards
   ========================================================= */
.pj-cares { display: grid; }
.pj-care { display: grid; grid-template-columns: calc(230 * var(--u)) minmax(0, 1fr); align-items: center; column-gap: calc(40 * var(--u)); padding: calc(30 * var(--u)) 0; border-bottom: 1px solid var(--rule); }
.pj-care:first-child { border-top: 1px solid var(--rule); }
.pj-care__t b { display: block; font-family: var(--font-head); font-size: calc(24 * var(--u)); line-height: calc(31 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.pj-care__t span { display: block; margin-top: calc(3 * var(--u)); font-size: calc(14.5 * var(--u)); line-height: calc(22 * var(--u)); color: var(--muted); }
.pj-legs { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.pj-legs::before { content: ""; position: absolute; top: calc(6 * var(--u)); left: calc(6 * var(--u)); right: calc(100% / var(--n) - 6 * var(--u)); height: 2px; background: var(--divider); }
.pj-legs::after { content: ""; position: absolute; top: calc(6 * var(--u)); left: calc(6 * var(--u)); width: 0; height: 2px; background: var(--lime-ico); transition: width 1.5s var(--ease); }
.pj-legs.is-in::after { width: calc(100% - 100% / var(--n)); }
.pj-legs > li { display: grid; justify-items: start; gap: calc(11 * var(--u)); padding-right: calc(16 * var(--u)); }
.pj-legs i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; border: 2px solid var(--divider); background: #fff; transition: border-color .5s var(--ease), background .5s var(--ease); }
.pj-legs.is-in i { border-color: var(--lime-ico); background: var(--lime); transition-delay: calc(var(--i) * 170ms); }
.pj-legs span { font-size: calc(15 * var(--u)); font-weight: 600; letter-spacing: -.01em; }

/* =========================================================
   09 ADAPTATION — what the patient sees next
   ========================================================= */
.pj-adapt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(24 * var(--u)); }
.pj-case { display: grid; align-content: start; gap: calc(14 * var(--u)); padding: calc(26 * var(--u)) calc(24 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; }
.pj-case__q { font-family: var(--font-head); font-size: calc(19 * var(--u)); line-height: calc(26 * var(--u)); font-weight: 500; letter-spacing: -.025em; }
.pj-branch { display: grid; gap: calc(10 * var(--u)); }
.pj-branch > li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: calc(12 * var(--u)); }
.pj-branch__k { display: grid; place-items: center; min-width: calc(44 * var(--u)); padding: calc(6 * var(--u)) calc(11 * var(--u)); border-radius: 999px; border: 1px solid var(--rule); background: var(--grey); font-size: calc(13 * var(--u)); font-weight: 700; }
.pj-branch__k.yes { border-color: var(--lime-ico); background: var(--lime); }
.pj-branch__v { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(14.5 * var(--u)); line-height: calc(21 * var(--u)); font-weight: 500; }
.pj-branch__v .i { flex: none; color: var(--faint); }
.pj-chain { display: grid; gap: calc(9 * var(--u)); }
/* :not(.pj-down) — the connector between two links of the chain is a list
   item too, and would otherwise take the box, the border and the padding */
.pj-chain > li:not(.pj-down) { display: flex; align-items: center; gap: calc(11 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); font-size: calc(14.5 * var(--u)); font-weight: 600; }
.pj-chain > li .i { color: var(--faint); }
.pj-chain > li.end { border-color: var(--lime-ico); background: var(--lime-soft); color: var(--lime-ink); }
.pj-chain > li.end .i { color: var(--lime-ink); }
.pj-down { display: grid; place-items: center; }
.pj-down i { width: 2px; height: calc(14 * var(--u)); background: var(--divider); }

/* =========================================================
   10 PATIENT OS — where the experience sits
   ========================================================= */
.pj-os { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(14 * var(--u)); }
.pj-os > li > * { display: grid; align-content: start; gap: calc(7 * var(--u)); height: 100%; padding: calc(22 * var(--u)) calc(20 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; transition: border-color .2s var(--ease), background .2s var(--ease); }
.pj-os a:hover { border-color: var(--lime-ico); background: var(--lime-soft); }
.pj-os b { font-size: calc(17 * var(--u)); font-weight: 600; letter-spacing: -.02em; }
.pj-os > li > * > span:last-child { font-size: calc(14 * var(--u)); line-height: calc(21 * var(--u)); color: var(--muted); }
/* the current product is filled AND labelled — never colour alone (§8.4).
   > li.is-on > span, not `.is-on > span`: the panel is itself a last-child
   span, so the description rule above would otherwise win on source order */
.pj-os > li.is-on > span { border-color: var(--lime-ico); background: var(--lime); }
.pj-os > li.is-on > span > span:last-child { color: var(--text); }
.pj-os .pr-k { color: var(--lime-ink); }

/* =========================================================
   PREV / NEXT
   ========================================================= */
.pj-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(16 * var(--u)); max-width: calc(880 * var(--u)); margin: calc(60 * var(--u)) auto 0; text-align: left; }
.pj-nav a { display: grid; align-content: start; gap: calc(6 * var(--u)); padding: calc(24 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; transition: border-color .2s var(--ease), background .2s var(--ease); }
.pj-nav a:hover { border-color: var(--lime-ico); background: var(--lime-soft); }
.pj-nav b { font-family: var(--font-head); font-size: calc(23 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.pj-nav > a > span:last-child { font-size: calc(15 * var(--u)); line-height: calc(22 * var(--u)); color: var(--muted); }
.pj-nav .pj-nav__next { text-align: right; justify-items: end; }
.pj-back { margin-top: calc(26 * var(--u)); }

/* =========================================================
   MOTION (§9) — every clause of the screen contract lives in
   page.js; what is here is the resting state it animates from.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* the hero Webfront assembles itself: the message, the line, the
     screen, then the choices inside it (§9.6) */
  .pr-js .pj-hero__stage [data-s] { opacity: 0; transform: translateY(calc(8 * var(--u))); }
  .pr-js .pj-hero__stage.is-in [data-s] { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .pr-js .pj-hero__stage.is-in [data-s="1"] { transition-delay: .55s; }
  .pr-js .pj-hero__stage.is-in [data-s="2"] { transition-delay: 1.35s; }
  .pr-js .pj-hero__stage.is-in [data-s="3"] { transition-delay: 1.75s; }
  .pr-js .pj-hero__stage.is-in [data-s="4"] { transition-delay: 2.15s; }
  .pr-js .pj-hero__stage.is-in [data-s="5"] { transition-delay: 2.55s; }

  /* the builder panel settles rather than snaps (§9.6.6) */
  .pr-panel:not([hidden]) { animation: pjSettle .45s var(--ease); }
  @keyframes pjSettle { from { opacity: 0; transform: translateY(6px); } }
  /* and the playing step fills its own underline over exactly the
     interval, so the advance is expected rather than startling (§9.6.4) */
  .pj-build.is-cycling .pj-step[aria-selected="true"] .bar { animation: pjFill 4400ms linear forwards; }
  @keyframes pjFill { to { transform: scaleX(1); } }

  /* the four settings light in turn, and the preview answers each one a
     beat later — that lag is the whole point of the sequence */
  .pj-set .i, .pj-set em { transition: color .5s var(--ease); }
  .pj-custom.is-played .pj-set > li[data-c] .i { color: var(--lime-ink); transition-delay: calc(var(--i) * 620ms); }
  .pj-custom.is-played .pj-set > li[data-c] em { color: var(--ink); transition-delay: calc(var(--i) * 620ms); }
  .pr-js .pj-prev [data-c] { opacity: .22; }
  .pj-custom.is-played .pj-prev [data-c] { opacity: 1; transition: opacity .55s var(--ease) calc(var(--i) * 620ms + 260ms); }
}

/* =========================================================
   Below 1180 --u is 1px. Stack, don't shrink (§10).
   ========================================================= */
@media (max-width: 1179px) {
  .pj-chips { gap: 7px; }
  .pj-chip { font-size: 12px; padding: 9px 3px; }

  .pj .pr-h1 { font-size: clamp(32px, 7.4vw, 48px); line-height: 1.08; }
  .pj-hero__stage { min-height: 0; justify-items: stretch; margin-top: 32px; }
  .pj-person { position: static; width: min(62%, 240px); margin-bottom: 18px; }
  .pj-tap, .pj-wire { width: 100%; max-width: 420px; margin-inline: auto; }
  .pj-wire { height: 30px; }

  .pj-build, .pj-custom, .pj-vis, .pj-story, .pj-types { grid-template-columns: minmax(0, 1fr); }
  .pj-build { row-gap: 32px; }
  .pj-custom, .pj-vis { row-gap: 36px; }
  .pj-story { row-gap: 32px; }
  .pj-types { row-gap: 48px; }
  .pj-step { padding: 15px 0; column-gap: 14px; grid-template-columns: 30px minmax(0, 1fr); }
  .pj-steps::before { left: 15px; top: 28px; bottom: 28px; }
  .pj-step__n { width: 30px; height: 30px; }
  .pj-step__t { font-size: 18px; line-height: 24px; }
  .pj-step__d { font-size: 14px; line-height: 21px; }

  .pj-where { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pj-fork { height: 34px; }
  .pj-fork i:nth-child(2), .pj-fork i:nth-child(3), .pj-fork i:nth-child(4) { display: none; }
  .pj-fork i:nth-child(1) { height: 100%; }
  .pj-thread, .pj-site { max-width: none; }
  .pj-caption { margin-top: 32px; text-align: left; }
  .pr-flow { grid-auto-flow: row; grid-auto-columns: auto; margin-top: 32px; padding-left: 26px; }
  .pr-flow::before, .pr-flow::after { display: none; }
  .pr-flow > li { padding: 0 0 18px; grid-template-columns: auto; position: relative; }
  .pr-flow > li:last-child { padding-bottom: 0; }
  .pr-flow i { position: absolute; left: -26px; top: 3px; }

  .pj-funnel b { font-size: 30px; line-height: 36px; }
  .pj-face { width: 100%; max-width: 420px; }

  .pj-care { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding: 24px 0; }
  .pj-legs { grid-auto-flow: row; grid-auto-columns: auto; padding-left: 24px; }
  .pj-legs::before, .pj-legs::after { display: none; }
  .pj-legs > li { padding: 0 0 12px; position: relative; }
  .pj-legs > li:last-child { padding-bottom: 0; }
  .pj-legs i { position: absolute; left: -24px; top: 3px; }

  .pj-adapt { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pj-case { padding: 20px 18px; }
  .pj-os { grid-template-columns: minmax(0, 1fr); }
  .pj-nav { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .pj-nav a { padding: 20px; }
  .pj-nav .pj-nav__next { text-align: left; justify-items: start; }
  .pj-nav b { font-size: 20px; }
}
