/* =========================================================
   Product pages — the vocabulary every page under
   /pages/products/ shares. Loaded after /index.css and before
   the page's own page.css.

   WHY THIS FILE EXISTS. The eight solution pages were each derived from a
   sibling by renaming the prefix, which left ~2,800 near-identical lines
   and a bug that had been copied four generations deep before anyone
   found it. Resources already start the other way round
   (pages/resources/resources.css); products do now too.

   MIGRATION NOTE. Patient 360 still carries its own copy of all of this
   under p3-. It should move onto this file — the rules are the same
   shapes with a different prefix — but it shipped working two commits
   ago and a blind rename is not worth the risk. Until that is done there
   are two copies of this vocabulary: FIX BOTH.

   Every class here is prefixed pr- ; the reset weighs nothing (§14).
   ========================================================= */

.pr {
  --pad: calc(67 * var(--u));
  --text: #2a2a2a;
  --faint: #9a9a9a;
  --soft: #f5f8f1;
  --grey: #f7f7f7;
  --lime-tint: #effcb5;
  --lime-ink: #3f5a00;
  --amber: #fff1d2;
  --amber-ink: #8a5600;
  --r-card: calc(18 * var(--u));
  --r: calc(12 * var(--u));
  --r-sm: calc(9 * var(--u));
  --shadow: 0 1px 2px rgba(17, 19, 24, .03), 0 calc(18 * var(--u)) calc(40 * var(--u)) calc(-28 * var(--u)) rgba(17, 19, 24, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  display: block;
  color: var(--ink);
}
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }
:where(.pr) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, blockquote) { margin: 0; }
:where(.pr) :where(ul, ol) { padding: 0; list-style: none; }
.pr img { display: block; max-width: 100%; }
.pr .i { flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type (§3.3) ---------- */
.pr-h1, .pr-h2, .pr-h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.pr-h1 { font-size: calc(64 * var(--u)); line-height: calc(72 * var(--u)); letter-spacing: -.035em; }
.pr-h2 { font-size: calc(48 * var(--u)); line-height: calc(57 * var(--u)); }
.pr-h3 { font-size: calc(24 * var(--u)); line-height: calc(31 * var(--u)); }
.pr .dim { color: var(--muted); }
.pr-lede { margin-top: calc(20 * var(--u)); max-width: calc(620 * var(--u)); font-size: calc(21 * var(--u)); line-height: calc(31 * var(--u)); letter-spacing: -.01em; color: var(--muted); text-wrap: pretty; }
.pr-sub { margin-top: calc(18 * var(--u)); max-width: calc(680 * var(--u)); font-size: calc(19 * var(--u)); line-height: calc(29 * var(--u)); letter-spacing: -.01em; color: var(--muted); text-wrap: pretty; }
.pr-sub b { font-weight: 600; color: var(--ink); }
.pr-sub a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--lime-ico); }
.pr-sub a:hover { background: var(--lime-soft); }
.pr-k { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pr-k .i { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.pr-k + .pr-h2 { margin-top: calc(14 * var(--u)); }

.pr-eyebrow { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(6 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: var(--ink); color: var(--lime); font-size: calc(12.5 * var(--u)); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pr-eyebrow::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: var(--lime); }
.pr-eyebrow + .pr-h1 { margin-top: calc(24 * var(--u)); }

.pr-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14 * var(--u)); margin-top: calc(40 * var(--u)); }
.pr .btn .i { width: calc(22 * var(--u)); height: calc(22 * var(--u)); transition: transform .2s var(--ease); }
.pr .btn:hover .i { transform: translateX(calc(3 * var(--u))); }

.pr-link { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(16 * var(--u)); font-weight: 600; color: var(--lime-ink); }
.pr-link .i { transition: transform .2s var(--ease); }
.pr-link:hover .i { transform: translateX(calc(3 * var(--u))); }
.pr-linkrow { margin-top: calc(22 * var(--u)); }

/* a claim the page makes in its own voice, not inside a box (§7.1) */
.pr-line { margin-top: calc(44 * var(--u)); max-width: calc(760 * var(--u)); font-family: var(--font-head); font-size: calc(26 * var(--u)); line-height: calc(34 * var(--u)); font-weight: 500; letter-spacing: -.025em; color: var(--muted); }
.pr-line b { font-weight: 500; color: var(--ink); }

/* ---------- sections (§5.1) ---------- */
.pr-sec { position: relative; padding: calc(124 * var(--u)) var(--pad); }
.pr-sec + .pr-sec { border-top: 1px solid var(--rule); }
.pr-head { max-width: calc(940 * var(--u)); }
.pr-stage { margin-top: calc(64 * var(--u)); }
.pr-sec.soft { isolation: isolate; }
.pr-sec.soft::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); background: #fafaf8; z-index: -1; }
.pr-sec.soft::after { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; right: -1px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); pointer-events: none; }

/* ---------- hero: 45 / 55, copy then the product (§5.2, brief §25) ---------- */
.pr-hero { position: relative; padding: calc(112 * var(--u)) var(--pad); }
.pr-hero__grid {
  position: absolute; top: 0; left: 0; right: 0; height: calc(600 * var(--u)); pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: calc(100% / 11) calc(600 * var(--u) / 5); background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(#000 52%, transparent); mask-image: linear-gradient(#000 52%, transparent);
}
/* Everything in the hero except the grid itself must be positioned. The
   grid is position: absolute, and an absolutely positioned element paints
   ABOVE static in-flow content no matter what the DOM order is — so a hero
   that puts its copy straight into .pr-hero, rather than inside
   .pr-hero__cols, gets ruled lines drawn over its own H1. The four
   split heroes never hit it because __cols is relative anyway. */
.pr-hero > :not(.pr-hero__grid) { position: relative; }

.pr-hero__cols { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); column-gap: calc(56 * var(--u)); align-items: center; }
.pr-hero__copy { min-width: 0; }

/* =========================================================
   THE PRODUCT SURFACE — one chrome for every screen on the page
   ========================================================= */
.pr-ui { border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.pr-ui__top { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)) calc(18 * var(--u)); border-bottom: 1px solid var(--rule); background: #fcfcfb; }
.pr-ui__top b { font-size: calc(12.5 * var(--u)); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.pr-ui__top .pr-tag, .pr-ui__top .pr-find { margin-left: auto; }
.pr-ui__body { padding: calc(20 * var(--u)); }
.pr-ui.sm .pr-ui__body { padding: calc(16 * var(--u)); }
.pr-dots { display: inline-flex; gap: calc(5 * var(--u)); }
.pr-dots i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--divider); }
.pr-find { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); border: 1px solid var(--rule); border-radius: 999px; font-size: calc(12.5 * var(--u)); color: var(--faint); }

.pr-tag { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: var(--grey); color: var(--text); font-size: calc(12 * var(--u)); font-weight: 600; white-space: nowrap; }
.pr-tag.ok { background: var(--lime-tint); color: var(--lime-ink); }
.pr-tag.wait { background: var(--amber); color: var(--amber-ink); }

.pr-av { display: grid; place-items: center; flex: none; width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; background: var(--lime); font-size: calc(13.5 * var(--u)); font-weight: 700; }
.pr-who { display: flex; align-items: center; gap: calc(13 * var(--u)); }
.pr-who > div > b { display: block; font-size: calc(19 * var(--u)); font-weight: 600; letter-spacing: -.02em; }
/* > div > span, not `span`: a bare descendant selector is (0,1,1) and
   silently beats .pr-av (0,1,0), which turned the avatar back into a
   block and knocked its initials out of the circle */
.pr-who > div > span { display: block; margin-top: calc(2 * var(--u)); font-size: calc(13 * var(--u)); color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-who.lg .pr-av { width: calc(48 * var(--u)); height: calc(48 * var(--u)); font-size: calc(16 * var(--u)); }
.pr-who.lg b { font-size: calc(23 * var(--u)); }

/* current / needs attention / next — the three the product answers */
.pr-triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: calc(20 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.pr-triad > li { display: grid; gap: calc(6 * var(--u)); padding: calc(15 * var(--u)) calc(16 * var(--u)); }
.pr-triad > li + li { border-left: 1px solid var(--rule); }
.pr-triad b { font-size: calc(16 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.pr-triad .warn { background: var(--amber); }
.pr-triad .warn b, .pr-triad .warn .pr-k { color: var(--amber-ink); }
.pr-triad .on { background: var(--lime-soft); }
.pr-triad .on b { color: var(--lime-ink); }

.pr-rows { margin-top: calc(16 * var(--u)); border-top: 1px solid var(--rule); }
.pr-rows > li { display: flex; align-items: center; gap: calc(11 * var(--u)); padding: calc(11 * var(--u)) 0; border-bottom: 1px solid var(--rule); font-size: calc(15 * var(--u)); font-weight: 500; }
.pr-rows > li:last-child { border-bottom: 0; }
.pr-rows .i { color: var(--faint); }

.pr-fields { display: grid; gap: calc(11 * var(--u)); }
.pr-fields > div { display: flex; align-items: baseline; justify-content: space-between; gap: calc(16 * var(--u)); }
.pr-fields dt { font-size: calc(13 * var(--u)); color: var(--muted); }
.pr-fields dd { font-size: calc(15 * var(--u)); font-weight: 600; text-align: right; }
.pr-fields dd.warn { color: var(--amber-ink); }
.pr-fields.two { grid-template-columns: 1fr 1fr; column-gap: calc(28 * var(--u)); }

.pr-list { display: grid; }
.pr-list > li { display: grid; grid-template-columns: calc(12 * var(--u)) minmax(0, 1fr) auto; align-items: center; column-gap: calc(14 * var(--u)); padding: calc(13 * var(--u)) 0; border-bottom: 1px solid var(--rule); }
.pr-list > li:last-child { border-bottom: 0; }
.pr-list .d { width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; border: 2px solid var(--divider); background: #fff; }
.pr-list .warn .d { border-color: var(--amber-ink); background: var(--amber); }
.pr-list .on .d { border-color: var(--lime-ico); background: var(--lime); }
.pr-list b { display: block; font-size: calc(16 * var(--u)); font-weight: 600; letter-spacing: -.015em; }
.pr-list div > span { display: block; margin-top: calc(2 * var(--u)); font-size: calc(14 * var(--u)); color: var(--muted); }
.pr-list time { font-size: calc(13.5 * var(--u)); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the same third column, when it holds a STATUS rather than a time —
   "Urgent", "Assigned", "In progress". <time> would be the wrong element
   for those, so they are spans and this is their styling. */
.pr-list .st { font-size: calc(13.5 * var(--u)); font-weight: 600; color: var(--muted); white-space: nowrap; }
.pr-list .warn .st { color: var(--amber-ink); }
.pr-list .on .st { color: var(--lime-ink); }
.pr-list .warn b { color: var(--amber-ink); }
.pr-list .on b { color: var(--lime-ink); }

.pr-main { padding: calc(24 * var(--u)); min-width: 0; }
.pr-main__head { display: flex; align-items: center; justify-content: space-between; gap: calc(16 * var(--u)); padding-bottom: calc(20 * var(--u)); border-bottom: 1px solid var(--rule); }


.pr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(14 * var(--u)); margin-top: calc(18 * var(--u)); }
.pr-card { display: grid; align-content: start; gap: calc(9 * var(--u)); padding: calc(18 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.pr-card.warn { border-color: var(--amber-ink); background: var(--amber); }
.pr-card.warn .pr-k { color: var(--amber-ink); }
.pr-card__big { font-size: calc(19 * var(--u)); font-weight: 600; letter-spacing: -.015em; }
.pr-card__sub { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8 * var(--u)); font-size: calc(14 * var(--u)); color: var(--muted); }
.pr-card.warn .pr-card__sub { color: var(--amber-ink); }
.pr-card .pr-fields { margin-top: calc(2 * var(--u)); }

/* =========================================================
   THE PATIENT-FACING SCREEN — the phone the patient actually sees

   Same reasoning as .pr-ui above: the device chrome was written once
   for Patient Journeys and was about to be written a second time for
   Patient Ticketing. It lives here now. What goes INSIDE the screen
   stays page-local, because a booking form and a raised ticket have
   nothing in common below the top bar.

   (Patient Education still carries its own .pe-phone. Its internals
   are a chat transcript, not a form, and it shipped working; it should
   come onto this when someone is next in that file.)
   ========================================================= */
.pr-fone { width: calc(340 * var(--u)); border: 1px solid var(--rule); border-radius: calc(30 * var(--u)); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.pr-fone.lg { width: calc(384 * var(--u)); }
.pr-fone.fill { width: 100%; }

.pr-fone__top { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)) calc(17 * var(--u)); border-bottom: 1px solid var(--rule); background: #fcfcfb; }
.pr-mark { display: grid; place-items: center; flex: none; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--lime); font-size: calc(12 * var(--u)); font-weight: 700; }
/* > div > b and > div > span, never a bare `b`/`span`: a descendant
   selector is (0,1,1) and silently beats .pr-mark (0,1,0), which turns
   the mark into a block and knocks its letter out of the square (§14.1) */
.pr-fone__top > div { min-width: 0; }
.pr-fone__top > div > b { display: block; font-size: calc(14 * var(--u)); font-weight: 600; letter-spacing: -.015em; }
.pr-fone__top > div > span { display: block; margin-top: calc(1 * var(--u)); font-size: calc(11.5 * var(--u)); color: var(--muted); }
.pr-fone__top .pr-tag { margin-left: auto; }

.pr-fone__body { display: grid; gap: calc(15 * var(--u)); padding: calc(19 * var(--u)); }
/* display: grid on the panel beats the UA's [hidden] { display: none }, so
   every panel of a tab set renders at once unless this is stated (§14.1) */
.pr-panel[hidden] { display: none; }

/* ---------- type inside a screen ---------- */
.pr-fh { font-family: var(--font-head); font-size: calc(21 * var(--u)); line-height: calc(27 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.pr-fq { font-size: calc(15 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.pr-fp { font-size: calc(13.5 * var(--u)); line-height: calc(20 * var(--u)); color: var(--muted); }
.pr-fl { font-size: calc(11.5 * var(--u)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* step N of M — the words AND the bar, never the bar alone (§8.4) */
.pr-prog { display: grid; gap: calc(7 * var(--u)); }
.pr-prog > span { font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pr-prog > i { display: block; height: calc(4 * var(--u)); border-radius: 999px; background: var(--rule); overflow: hidden; }
.pr-prog > i::after { content: ""; display: block; width: var(--p, 25%); height: 100%; border-radius: 999px; background: var(--lime-ico); transition: width .55s var(--ease); }

/* the button inside the screen — not .btn, which is the page's own */
.pr-go { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); padding: calc(13 * var(--u)); border-radius: 999px; background: var(--lime); font-size: calc(15 * var(--u)); font-weight: 700; letter-spacing: -.01em; }
.pr-go .i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.pr-go.quiet { background: #fff; border: 1px solid var(--rule); color: var(--text); }

/* =========================================================
   04 THE TIMELINE
   ========================================================= */
.pr-story__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(18 * var(--u)); padding-bottom: calc(20 * var(--u)); border-bottom: 1px solid var(--rule); }
.pr-flags { display: flex; flex-wrap: wrap; gap: calc(10 * var(--u)); }
.pr-flags > li { display: grid; gap: calc(4 * var(--u)); padding: calc(10 * var(--u)) calc(15 * var(--u)); border-radius: var(--r-sm); background: var(--grey); font-size: calc(15 * var(--u)); font-weight: 600; }
.pr-flags .warn { background: var(--amber); color: var(--amber-ink); }
.pr-flags .warn .pr-k { color: var(--amber-ink); }
.pr-flags .on { background: var(--lime-soft); color: var(--lime-ink); }

/* no column-gap: the columns stay exactly 1/5 each so the rail can run
   from the first marker's centre to the last one's */
.pr-time { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: calc(40 * var(--u)); }
.pr-time::before { content: ""; position: absolute; top: calc(6 * var(--u)); left: calc(7 * var(--u)); right: calc(100% / 5 - 7 * var(--u)); height: 2px; background: var(--divider); }
.pr-time::after { content: ""; position: absolute; top: calc(6 * var(--u)); left: calc(7 * var(--u)); width: 0; height: 2px; background: var(--lime-ico); transition: width 1.7s var(--ease); }
.pr-time.is-in::after, .pr-ui.is-in .pr-time::after { width: calc(100% - 100% / 5); }
.pr-time > li { display: grid; justify-items: start; gap: calc(13 * var(--u)); padding-right: calc(20 * var(--u)); opacity: .4; transition: opacity .5s var(--ease); }
.pr-ui.is-in .pr-time > li, .pr-time.is-in > li { opacity: 1; transition-delay: calc(var(--i) * 190ms); }
.pr-time 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); }
.pr-ui.is-in .pr-time i, .pr-time.is-in i { border-color: var(--lime-ico); background: var(--lime); transition-delay: calc(var(--i) * 190ms); }
.pr-time .warn i { border-color: var(--amber-ink); background: var(--amber); }
.pr-ui.is-in .pr-time .warn i { border-color: var(--amber-ink); background: var(--amber); }
.pr-time b { font-size: calc(16.5 * var(--u)); font-weight: 600; letter-spacing: -.015em; }
.pr-time time { font-size: calc(13.5 * var(--u)); color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-time .on b { color: var(--lime-ink); }

/* =========================================================
   05 CONTEXT IN ACTION
   ========================================================= */
.pr-moment { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: calc(24 * var(--u)); align-items: start; }
.pr-msg { padding: calc(16 * var(--u)) calc(18 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r); background: var(--grey); font-size: calc(18 * var(--u)); line-height: calc(27 * var(--u)); font-weight: 500; }
.pr-msg .pr-k { display: flex; margin-bottom: calc(8 * var(--u)); }
.pr-ctx { margin-top: calc(16 * var(--u)); padding: calc(18 * var(--u)); border: 1px solid var(--lime-ico); border-radius: var(--r); background: var(--lime-soft); }
.pr-ctx .pr-k { margin-bottom: calc(14 * var(--u)); color: var(--lime-ink); }
.pr-appt__dr { margin-top: calc(12 * var(--u)); font-family: var(--font-head); font-size: calc(26 * var(--u)); line-height: calc(32 * var(--u)); font-weight: 500; letter-spacing: -.03em; }
.pr-appt__when { margin-top: calc(6 * var(--u)); font-size: calc(19 * var(--u)); font-weight: 600; color: var(--lime-ink); font-variant-numeric: tabular-nums; }
.pr-appt__type { margin-top: calc(4 * var(--u)); font-size: calc(15 * var(--u)); color: var(--muted); }
.pr-appt__prev { display: grid; gap: calc(4 * var(--u)); margin-top: calc(18 * var(--u)); padding-top: calc(16 * var(--u)); border-top: 1px solid var(--rule); font-size: calc(15 * var(--u)); font-weight: 600; }/* ---------- mid-page CTA strip ---------- */
.pr-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(28 * var(--u)); margin: 0 var(--pad); padding: calc(36 * var(--u)) calc(40 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--soft); }
.pr-strip p { margin-top: calc(6 * var(--u)); font-size: calc(16.5 * var(--u)); color: var(--muted); }
.pr-strip__acts { display: flex; flex-wrap: wrap; gap: calc(12 * var(--u)); }
.pr-sec + .pr-strip { margin-top: calc(96 * var(--u)); }
.pr-strip + .pr-sec { margin-top: calc(96 * var(--u)); border-top: 1px solid var(--rule); }/* =========================================================
   FAQ — native exclusive accordion, no script
   ========================================================= */
.pr-faq { max-width: calc(920 * var(--u)); margin-top: calc(52 * var(--u)); border-top: 1px solid var(--rule); }
.pr-faq details { border-bottom: 1px solid var(--rule); }
.pr-faq summary { display: flex; align-items: center; gap: calc(18 * var(--u)); padding: calc(24 * var(--u)) 0; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: calc(22 * var(--u)); line-height: calc(29 * var(--u)); font-weight: 500; letter-spacing: -.028em; transition: color .15s ease; }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary:hover { color: var(--lime-ink); }
.pr-faq summary::after { content: ""; flex: none; width: calc(11 * var(--u)); height: calc(11 * var(--u)); margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(calc(-2 * var(--u)), calc(-2 * var(--u))); transition: transform .25s var(--ease); }
.pr-faq details[open] summary::after { transform: rotate(-135deg); }
.pr-faq p { padding: 0 calc(48 * var(--u)) calc(26 * var(--u)) 0; max-width: calc(760 * var(--u)); font-size: calc(17 * var(--u)); line-height: calc(27 * var(--u)); color: var(--prose); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.pr-final { padding: calc(124 * var(--u)) var(--pad); border-top: 1px solid var(--rule); text-align: center; }
.pr-final .pr-h2 { max-width: calc(820 * var(--u)); margin-inline: auto; }
.pr-final .pr-lede { margin-inline: auto; }
.pr-final .pr-ctas { justify-content: center; }
.pr-next { display: grid; justify-items: center; gap: calc(6 * var(--u)); max-width: calc(520 * var(--u)); margin: calc(56 * var(--u)) auto 0; padding: calc(26 * var(--u)); border: 1px solid var(--rule); border-radius: var(--r-card); background: #fff; transition: border-color .2s var(--ease); }
.pr-next:hover { border-color: var(--lime-ico); background: var(--lime-soft); }
.pr-next b { display: inline-flex; align-items: center; gap: calc(9 * var(--u)); font-family: var(--font-head); font-size: calc(24 * var(--u)); font-weight: 500; letter-spacing: -.028em; }
.pr-next b .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); transition: transform .2s var(--ease); }
.pr-next:hover b .i { transform: translateX(calc(3 * var(--u))); }
.pr-next > span:last-child { font-size: calc(15.5 * var(--u)); color: var(--muted); }

/* =========================================================
   MOTION (§9, brief §24) — subtle, and off under reduced motion
   ========================================================= */
.pr-js .pr-rev { opacity: 0; transform: translateY(calc(12 * var(--u))); }
.pr-js .pr-rev.is-in { opacity: 1; transform: none; transition: opacity .75s ease var(--d, 0ms), transform .75s var(--ease) var(--d, 0ms); }

@media (prefers-reduced-motion: no-preference) {
  /* the hero screen assembles itself rather than appearing whole (§9.6) */
  .pr-js .pr-hero__ui .pr-triad > li,
  .pr-js .pr-hero__ui .pr-rows > li { opacity: 0; transform: translateY(calc(6 * var(--u))); }
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-triad > li,
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-rows > li {
    opacity: 1; transform: none;
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-triad > li:nth-child(1) { transition-delay: .30s; }
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-triad > li:nth-child(2) { transition-delay: .40s; }
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-triad > li:nth-child(3) { transition-delay: .50s; }
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-rows > li:nth-child(1) { transition-delay: .62s; }
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-rows > li:nth-child(2) { transition-delay: .69s; }
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-rows > li:nth-child(3) { transition-delay: .76s; }
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-rows > li:nth-child(4) { transition-delay: .83s; }
  .pr-js .pr-hero__stage.is-in .pr-hero__ui .pr-rows > li:nth-child(5) { transition-delay: .90s; }

  /* the overview screen plays its own sections (§9.6) */
  .pr-panel:not([hidden]) { animation: prSettle .45s var(--ease); }
  @keyframes prSettle { from { opacity: 0; transform: translateY(6px); } }
  .pr-app.is-cycling .pr-side__item[aria-selected="true"] .bar { animation: prFill 4600ms linear forwards; }
  @keyframes prFill { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .pr *, .pr *::before, .pr *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
}


@media (max-width: 1179px) {
  .pr { --pad: 22px; }
  .pr .i { width: 16px; height: 16px; }
  .pr-h1 { font-size: clamp(32px, 7.4vw, 48px); line-height: 1.08; }
  .pr-h2 { font-size: clamp(26px, 5.6vw, 36px); line-height: 1.16; }
  .pr-h3 { font-size: 20px; line-height: 27px; }
  .pr-lede { font-size: 17px; line-height: 26px; max-width: none; }
  .pr-sub { font-size: 16px; line-height: 25px; max-width: none; }
  .pr-line { font-size: 20px; line-height: 28px; max-width: none; margin-top: 30px; }
  .pr-ctas { margin-top: 28px; flex-direction: column; align-items: stretch; }
  /* .btn is white-space: nowrap, so a long label's MIN-CONTENT can exceed
     the column — and because .pr-ctas is a stretch column, the long button
     drags its short sibling out with it and the page scrolls sideways.
     "Explore Workflow Builder" needs 356px against a 331px column. On a
     phone a two-line button is fine; a horizontally scrolling page is not. */
  .pr-ctas .btn { white-space: normal; text-align: center; }
  /* the hero never stacked below 1180: the two columns just kept their
     .82fr / 1fr ratio, which on a 375px phone is a 124px copy column and a
     five-line H1 broken one word per line. Patient Communication and
     Patient Education both shipped with it; the fix belongs here, not in
     a third page's stylesheet (§10 — stack, don't shrink). */
  .pr-hero__cols { grid-template-columns: minmax(0, 1fr); column-gap: 0; align-items: start; }
  .pr-hero { padding: 40px 22px 56px; }
  .pr-sec { padding: 56px 22px; }
  .pr-stage { margin-top: 32px; }
  .pr-app__grid { grid-template-columns: minmax(0, 1fr); }
  .pr-side { grid-auto-flow: column; grid-auto-columns: max-content; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule); padding: 12px; scrollbar-width: none; }
  .pr-side::-webkit-scrollbar { display: none; }
  .pr-main { padding: 18px; }
  .pr-list > li { grid-template-columns: 12px minmax(0, 1fr); row-gap: 4px; }
  .pr-list time, .pr-list .st { grid-column: 2; }
  .pr-main__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pr-fone, .pr-fone.lg { width: 100%; max-width: 420px; margin-inline: auto; border-radius: 26px; }
  .pr-fone__body { padding: 16px; gap: 13px; }
  .pr-fh { font-size: 19px; line-height: 25px; }
  .pr-triad { grid-template-columns: minmax(0, 1fr); }
  .pr-triad > li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .pr-cards { grid-template-columns: minmax(0, 1fr); }
  .pr-fields.two { grid-template-columns: minmax(0, 1fr); row-gap: 11px; }
  .pr-strip { flex-direction: column; align-items: stretch; margin: 0 22px; padding: 24px 22px; }
  .pr-strip__acts { flex-direction: column; }
  .pr-sec + .pr-strip, .pr-strip + .pr-sec { margin-top: 56px; }
  .pr-faq summary { font-size: 19px; line-height: 26px; padding: 20px 0; gap: 14px; }
  .pr-faq p { font-size: 16px; line-height: 25px; padding: 0 0 22px; }
  .pr-final { padding: 64px 22px; text-align: left; }
  .pr-final .pr-h2, .pr-final .pr-lede { margin-inline: 0; }
  .pr-final .pr-ctas { justify-content: flex-start; }
  .pr-next { max-width: none; margin-top: 36px; padding: 20px; justify-items: start; text-align: left; }
  .pr-next b { font-size: 20px; }
}
