/* The page's typefaces, served from this site. Licences: the OFL-*.txt files in /fonts/. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/geist-latin.woff2") format("woff2"); }

/* the film poster from the first paint (TOP-CHANGES.md 4); written by build.py */
@media (max-width: 767px) { .short-phone { background: center / cover no-repeat url("/media/short-phone-poster.jpg"); } }
@media (min-width: 768px) { .short-wide { background: center / cover no-repeat url("/media/short-poster.jpg"); } }
/* Healthcare OS landing page. The look is page-brief/PAGE-LOOK.md and page-brief/MODULES-LOOK.md.
   Every colour, size, radius, spacing and duration is a variable in the :root blocks below; nothing under
   them holds a raw colour or duration. The page continues the film's white stage, what comes with every
   module sits on the soft ground, and the request flow is the film's navy window, opened.
   This file: tokens, base, the page's sections, the top bar, the bars and the dialogs. styles-list.css: the list
   "Everything Healthcare OS does" and the flow. */
:root {
  color-scheme: light;

  /* 1. colours (PAGE-LOOK.md section 1) */
  --c-page: #ffffff;
  --c-ink: #0b2440;
  --c-line: #3d5068;
  --c-soft: #5b6e86;
  --c-edge: #8193aa;
  --c-hair: #e6ecf3;
  --c-tint: #f3f6fa;
  --c-window: #0b2647;
  --c-window-2: #0f305a;
  --c-window-on: #113664;
  --c-on-window: #f5f8fc;
  --c-on-window-2: #c9d6e5;
  --c-window-edge: #7d93ae;
  --c-blue: #2f8cff;
  --c-blue-ink: #1766d6;
  --c-sky: #57a6ff;
  --c-green: #2dd4bf;
  --c-on-green: #05283f;
  --c-soft-card: #dce6f2;
  --c-muted-navy: #9fb6d0;
  --c-main-hover: #163a68;
  --c-main-press: #071b33;
  --c-white: #ffffff;
  --c-error-navy: #ffc4b8;
  --c-rule-navy: rgba(255, 255, 255, 0.12);
  --c-track-navy: rgba(255, 255, 255, 0.14);
  --c-off-navy: rgba(255, 255, 255, 0.14);
  --c-banner-navy: rgba(255, 255, 255, 0.08);
  --c-rail: rgba(11, 36, 64, 0.14);
  --c-backdrop: rgba(255, 255, 255, 0.86);
  --c-preview: #fff4d6;
  /* the open list's roles (MODULES-LOOK.md 1.1): no new colours, five new names */
  --c-ground: var(--c-tint);          /* Revenue overview and the shared block */
  --c-tick-on: var(--c-window);       /* a picked box on white */
  --c-tick-mark: var(--c-green);      /* its check or bar */
  --c-mark: var(--c-line);            /* plain check and needs mark */
  --c-heading-rule: var(--c-ink);     /* the rule above each heading */

  /* 2. type */
  --f-sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Palatino Linotype", Palatino, Georgia, serif;
  --serif-track: -0.01em;
  --label-track: 0.12em;
  --brand-track: 0.14em;
  --fw-body: 400;
  --fw-label: 500;
  --fw-button: 600;
  --fw-row: 600;
  --fs-h1: 44px;  --lh-h1: 48px;
  --fs-h2: 34px;  --lh-h2: 40px;
  --fs-part: 28px; --lh-part: 34px;
  --fs-module: 26px; --lh-module: 32px;
  --fs-shared: 28px; --lh-shared: 34px;
  --fs-step-title: 28px; --lh-step-title: 34px;
  --fs-question: 32px; --lh-question: 38px;
  --fs-done: 32px; --lh-done: 38px;
  --fs-closing: 40px; --lh-closing: 46px;
  --fs-lead: 18px; --lh-lead: 28px;
  --fs-body: 18px; --lh-body: 28px;
  --fs-label: 16px; --lh-label: 24px;
  --fs-button: 17px; --lh-button: 24px;
  --fs-brand: 16px;
  --fs-choice: 20px; --lh-choice: 28px;
  --fs-choice-line: 17px; --lh-choice-line: 26px;
  --fs-row: 18px; --lh-row: 26px;
  --fs-count: 16px; --lh-count: 20px;
  --fs-rec-title: 18px; --lh-rec-title: 26px;

  /* 3. spacing: 4, 8, 12, 16, 24, 32, 48, 64, 96, 160 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 160px;
  --section-gap: var(--s-9);
  --gutter: 20px;
  --container: 1120px;
  --inset: 0px;
  --measure: 34em;
  --measure-h1: 14em;
  --tick-col: 40px;              /* phone: 16 gap and the 24 box */
  --col-a: 320px; --col-gap: 32px;
  --mod-pad: 24px;
  --feat-gap: 16px;
  --heading-gap: 40px;
  --feat-indent: 0px;
  --row-ring-gap: 8px;
  --row-pad: 11px;              /* laptop: the extra height that makes a one-line feature row 48px to press */
  --mark: 20px;

  /* 4. shapes */
  --r-button: 12px;
  --r-tile: 16px;
  --r-block: 20px;
  --r-panel: 24px;
  --r-tick: 7px;
  --r-round: 999px;
  --r-ring: 12px;
  --edge-w: 1.5px;
  --edge-strong: 2px;
  --hair-w: 1px;
  --rule-w: 3px;
  --rail-h: 4px;
  --rail-current-h: 6px;
  --seg-h: 2px; --seg-current-h: 4px;
  --bar-h: 2px;
  --focus-w: 3px;
  --focus-gap: 3px;
  --sh-panel: 0 2px 4px rgba(11, 38, 71, 0.1), 0 20px 48px -8px rgba(11, 38, 71, 0.22);
  --sh-sheet: 0 -12px 32px rgba(4, 16, 34, 0.4);
  --sh-sheet-white: 0 -8px 32px rgba(11, 38, 71, 0.18);

  /* 5. sizes of controls */
  --tap: 48px;
  --btn-h: 52px;
  --btn-pad: 24px;
  --foot-btn-h: 56px;
  --top-h: 64px;
  --flow-head-h: 56px;
  --tick: 24px;
  --tick-bar-w: 10px;
  --tick-bar-h: 2.5px;
  --icon: 16px;
  --icon-small: 12px;
  --list-chev-gap: 6px;        /* the list button's chevron after its label */
  --ld-name-pad: 11px;         /* the list: air above and below each name (22 between names, 15 to a first feature) */
  --ld-feat-pad: 4px;          /* the list: air above and below each feature (8 between features) */
  --ld-feats-end: 7px;         /* the list: after a module's last feature (with 4 and 11: 22 to the next name) */
  --ld-heading-gap: 1px;       /* the list: under a heading (with 11: 12 to its first name) */
  --fs-list-title-small: 22px; --lh-list-title-small: 28px;   /* the list's title under 390 px */
  --film-room: 244px;          /* laptop: top bar, caption and its spaces, act bar and 24 px of air beside the film */
  --film-text-at: 0.0505;      /* the film's own text starts 5.05 percent into its frame (measured on the render) */
  --icon-arrow: 24px;
  --icon-stroke: 2;
  --check-stroke: 2.5;
  --mark-stroke: 2.25;
  --added-stroke: 3;
  --film-inset: 8px;
  --tip-gap: 8px;
  --words-measure: 62ch;
  --num-row-h: 32px;
  --done-mark: 40px;
  --chip-h: 56px;
  --field-h: 56px;
  --choice-h: 128px;
  --all-h: 88px;
  --flow-w: 560px;
  --flow-w-wide: 880px;
  --flow-h: min(760px, calc(100dvh - 96px));
  --flow-pad: 24px;
  --flow-pad-top: 32px;
  --picks-w: 280px;
  --sheet-h: 70dvh;
  --panel-h: 60vh;
  --text-area-h: 192px;
  --press-shift: 1px;
  --underline-offset: 4px;
  --underline-hover: 2px;
  --count-min: 104px;
  --bar-space: 0px;              /* the bar at the bottom, as the page measures it; scroll-padding keeps focus clear of it */
  --sec-bar-h: 72px;
  --menu-w: 304px; --menu-row: 56px;

  /* 6. motion (PAGE-LOOK.md 5, MODULES-LOOK.md 11) */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --d-hover: 150ms;
  --d-flow-in: 360ms;
  --d-backdrop: 240ms;
  --d-flow-out: 220ms;
  --d-step-out: 160ms;
  --d-step-in: 280ms;
  --d-bar: 400ms;
  --d-tick: 180ms;
  --d-rel: 160ms;
  --d-rec-in: 280ms;
  --d-rec-fade: 200ms;
  --d-rec-fade-delay: 100ms;
  --d-rec-out: 360ms;
  --d-sheet: 320ms;
  --d-menu: 200ms;
  --d-count: 200ms;
  --d-sec-bar: 240ms;
  --d-loc: 150ms;
  --d-swap: 120ms;             /* the wordmark and the list button trading places in the top bar */
  --d-list-in: 120ms;          /* the list dialog fading in */
  --d-film-end: 200ms;
  --d-advance: 260ms;
  --d-added: 1200ms;
  --d-copied: 2000ms;
  --move-in: 24px;
  --move-out: 12px;
  --move-step: 16px;
  --move-small: 8px;
  --move-bar: 12px;
}

@media (max-width: 359px) { :root { --fs-h1: 40px; --lh-h1: 44px; } }
@media (min-width: 768px) { :root { --fs-h1: 60px; --lh-h1: 64px; --gutter: max(16px, 3.7vw); } }
@media (min-width: 1024px) {
  :root {
    --fs-h1: 76px; --lh-h1: 80px;
    --fs-h2: 48px; --lh-h2: 54px;
    --fs-part: 32px; --lh-part: 38px;
    --fs-module: 30px; --lh-module: 36px;
    --fs-shared: 32px; --lh-shared: 38px;
    --fs-question: 40px; --lh-question: 46px;
    --fs-closing: 56px; --lh-closing: 62px;
    --fs-lead: 22px; --lh-lead: 34px;
    --section-gap: var(--s-10);
    --gutter: 32px;
    --inset: 56px;
    --top-h: 72px;
    --flow-pad: 40px;
    --flow-pad-top: 40px;
    --tick-col: 48px;
    --heading-gap: 72px;
    --feat-indent: 24px;
    --feat-gap: 24px;
    --all-h: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --d-flow-in: 120ms; --d-backdrop: 120ms; --d-flow-out: 120ms; --d-step-out: 80ms; --d-step-in: 160ms;
    --d-bar: 0ms; --d-tick: 0ms; --d-rel: 0ms; --d-rec-in: 120ms; --d-rec-fade: 120ms; --d-rec-fade-delay: 0ms;
    --d-rec-out: 0ms; --d-sheet: 120ms; --d-menu: 120ms; --d-count: 120ms; --d-sec-bar: 120ms; --d-loc: 0ms;
    --d-film-end: 0ms; --d-advance: 0ms; --d-swap: 0ms;
    --move-in: 0px; --move-out: 0px; --move-step: 0px; --move-small: 0px; --move-bar: 0px;
  }
}

/* ---- base */
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* nothing focused, found or jumped to lands under the top bar or the bar at the bottom (ruling 44) */
  scroll-padding-top: calc(var(--top-h) + var(--s-4));
  scroll-padding-bottom: calc(var(--bar-space) + var(--s-4));
}
html.has-dialog { overflow: hidden; }
body { margin: 0; background: var(--c-page); color: var(--c-ink); font-family: var(--f-sans); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
h1, h2 { font-family: var(--f-serif); font-weight: 400; letter-spacing: var(--serif-track); }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
h3, h4, h5 { font: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: var(--c-blue-ink); }
video { display: block; width: 100%; height: auto; background: var(--c-page); }
svg { display: block; }
label { cursor: pointer; }
:focus-visible { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--focus-gap); }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.skip { position: absolute; left: var(--s-4); top: calc(-1 * var(--s-9)); z-index: 30; background: var(--c-window); color: var(--c-white); padding: var(--s-3) var(--s-4); border-radius: var(--r-button); font-weight: var(--fw-button); }
.skip:focus { top: var(--s-3); }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.inset { padding-inline: var(--inset); }
.label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--c-soft); }
.lede { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--c-line); max-width: var(--measure); }
body:has(> .preview-banner) { --banner-room: calc(var(--lh-label) + 2 * var(--s-2)); }   /* a preview's film leaves room for its banner */
.preview-banner { background: var(--c-preview); color: var(--c-ink); text-align: center; padding: var(--s-2) var(--gutter); font-size: var(--fs-label); line-height: var(--lh-label); }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--btn-h); padding: 0 var(--btn-pad); border-radius: var(--r-button); border: var(--edge-w) solid transparent; font-size: var(--fs-button); line-height: var(--lh-button); font-weight: var(--fw-button); text-decoration: none; text-align: center; transition: background-color var(--d-hover), border-color var(--d-hover), color var(--d-hover); }
.btn-main { background: var(--c-window); color: var(--c-white); }
.btn-main:hover { background: var(--c-main-hover); }
.btn-main:active { background: var(--c-main-press); transform: translateY(var(--press-shift)); }
.btn-second { background: transparent; color: var(--c-ink); border-color: var(--c-edge); }
.btn-second:hover { border-color: var(--c-ink); }
.btn-second:active { background: var(--c-tint); }
.btn-bar { min-height: var(--tap); }
.i-play-mark { width: var(--icon); height: var(--icon); flex: none; }
.i-replay { width: var(--icon); height: var(--icon); flex: none; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.text-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); padding: 0 var(--s-2); color: var(--c-blue-ink); font-weight: var(--fw-label); font-size: var(--fs-label); text-decoration: underline; text-underline-offset: var(--underline-offset); }
.text-btn:hover { text-decoration-thickness: var(--underline-hover); }
.text-btn:active { color: var(--c-ink); }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-round); color: var(--c-ink); flex: none; }
.icon-btn svg { width: var(--icon); height: var(--icon); fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; flex-direction: column; gap: var(--s-3); }
.actions .btn { width: 100%; }
@media (min-width: 768px) { .actions { flex-direction: row; flex-wrap: wrap; } .actions .btn { width: auto; } }

/* ---- top bar: solid white, a hair line once the page scrolls; while the list is on screen it says where you are */
.top { position: sticky; top: 0; z-index: 10; background: var(--c-page); border-bottom: var(--hair-w) solid transparent; transition: border-color var(--d-hover); }
.top.is-scrolled { border-bottom-color: var(--c-hair); }
.bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--top-h); }
.brand { font-size: var(--fs-brand); line-height: var(--lh-label); font-weight: var(--fw-button); letter-spacing: var(--brand-track); text-transform: uppercase; color: var(--c-ink); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: var(--tap); }
/* the wordmark and the list button sit together at the start (TOP-CHANGES.md 2) */
.bar-start { flex: none; display: flex; align-items: center; min-width: 0; }
@media (min-width: 1024px) { .bar-start { padding-left: var(--inset); } }
.list-btn { flex: none; display: inline-flex; align-items: center; gap: var(--list-chev-gap); min-height: var(--tap); padding: 0 var(--s-1); margin-left: var(--s-3);
  font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-button); color: var(--c-ink); white-space: nowrap; }
.lb-short { display: none; }
@media (max-width: 359px) { .lb-full { display: none; } .lb-short { display: inline; } }
/* while the locator or the jumps show, the wordmark gives its place and the list button moves into it: one fixed
   rule at every width, with a short cross-fade (none with reduced motion) */
.top.is-locating .brand, .top:has(.locator:focus) .brand, .top:has(.locator[aria-expanded="true"]) .brand, .top:has(.jumps:focus-within) .brand { display: none; }
.top.is-locating .list-btn, .top:has(.locator:focus) .list-btn, .top:has(.locator[aria-expanded="true"]) .list-btn, .top:has(.jumps:focus-within) .list-btn { margin-left: 0; }
/* the bar's own gap already parts the list button from the locator, so the longest name fits on one line at 320 */
.top.is-locating .locator, .top:has(.locator:focus) .locator, .top:has(.locator[aria-expanded="true"]) .locator { padding-left: 0; }
.top.is-locating .list-btn { animation: fade-in var(--d-swap) var(--ease); }
.top.has-located:not(.is-locating) .bar-start { animation: fade-in var(--d-swap) var(--ease); }
.top-book.is-quiet { visibility: hidden; }
/* the locator (phone) and the jumps (laptop) stay in the Tab order at all times: out of sight, not display: none,
   until the list is in view or they hold focus (CHECK-BUILT-ACCESS.md S3) */
.bar .brand { flex: none; }
/* a heading's full name stays on one line; while the locator shows, the wordmark gives its place (the fixed rule
   below, TOP-CHANGES.md 2), so no name wraps or widens the page (BUILT-FIXES.md 1) */
.locator { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); min-width: 0; padding-left: var(--s-3); margin-left: auto; font-size: var(--fs-label); line-height: var(--lh-count); font-weight: var(--fw-label); color: var(--c-ink); text-align: right; }
.top:not(.is-locating) .locator:not(:focus):not([aria-expanded="true"]), .top:not(.is-locating) .jumps:not(:focus-within) {
  position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.loc-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locator .chev, .count-btn .chev, .list-btn .chev { width: var(--icon-small); height: var(--icon-small); fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; transition: transform var(--d-menu) var(--ease); }
.locator[aria-expanded="true"] .chev { transform: rotate(180deg); }
.loc-name { transition: opacity var(--d-loc); }
.segs { display: none; gap: var(--s-1); align-items: flex-end; height: var(--seg-current-h); margin-top: calc(-1 * var(--seg-current-h)); }
.seg { flex: 1; height: var(--seg-h); border-radius: var(--seg-h); background: var(--c-rail); transition: height var(--d-loc), background-color var(--d-loc); }
.seg.is-passed { background: var(--c-blue); }
.seg.is-current { background: var(--c-blue); height: var(--seg-current-h); border-radius: var(--seg-current-h); }
.loc-wrap { position: relative; height: 0; }
.loc-menu { position: absolute; z-index: 11; right: var(--gutter); top: var(--s-2); width: min(var(--menu-w), calc(100% - 2 * var(--gutter))); padding: var(--s-2) 0; background: var(--c-page); border: var(--hair-w) solid var(--c-hair); border-radius: var(--r-tile); box-shadow: var(--sh-panel); animation: menu-in var(--d-menu) var(--ease); }
.loc-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(calc(-1 * var(--move-small))); } to { opacity: 1; transform: none; } }
.loc-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--menu-row); padding: 0 var(--s-4) 0 var(--s-5); color: var(--c-ink); font-size: var(--fs-row); line-height: var(--lh-row); text-align: left; }
.loc-row[aria-current="true"] { font-weight: var(--fw-row); box-shadow: inset var(--rule-w) 0 0 var(--c-blue); }
.loc-row:focus-visible { outline-offset: calc(-1 * var(--focus-w)); }
.loc-count { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-body); color: var(--c-soft); white-space: nowrap; }
.top.is-locating { border-bottom-color: var(--c-hair); }
@media (max-width: 1023px) {
  .jumps { display: none; }
  .top.is-locating .segs { display: flex; }
}
@media (min-width: 1024px) {
  .locator { display: none; }
  .jumps { display: flex; margin: 0 var(--s-4) 0 auto; }
  .jumps { align-self: stretch; gap: var(--s-3); margin-left: auto; margin-right: var(--s-4); }
  .jump { display: flex; align-items: center; padding: var(--rail-current-h) var(--s-1) 0; margin-bottom: calc(-1 * var(--hair-w)); border-bottom: var(--rail-current-h) solid transparent; color: var(--c-soft); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); text-decoration: none; white-space: nowrap; transition: color var(--d-loc), border-color var(--d-loc); }
  .jump:hover { color: var(--c-ink); }
  .jump.is-passed { color: var(--c-ink); }
  .jump[aria-current="true"] { color: var(--c-ink); border-bottom-color: var(--c-blue); }
  .jump:focus-visible { outline-offset: calc(-1 * var(--focus-w)); }
}
.jl-short { display: none; }
.top-book { flex: none; white-space: nowrap; }
/* measured at 1024 (ruling 45): "Money and focus" does not fit beside a one-line "Book a demo", so up to 1179 the
   jump uses its shorter label; the heading itself keeps its words */
@media (min-width: 1024px) and (max-width: 1179px) { .jl-full { display: none; } .jl-short { display: inline; } }
@media (min-width: 1180px) { .jumps { gap: var(--s-5); margin-right: var(--s-6); } }

/* ---- opening */
/* the film first, then the words (TOP-CHANGES.md 3): caption, film, act bar, then the headline, line, buttons, link */
.hero { padding-top: var(--s-5); }
.hero-words { margin-top: var(--s-7); }
@media (min-width: 768px) { .hero { padding-top: var(--s-6); } .hero-words { margin-top: var(--s-8); } }
.hero h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); max-width: var(--measure-h1); text-wrap: balance; }
@media (min-width: 768px) { .h1-b { display: block; } }
.hero .lede { margin-top: var(--s-4); }
.hero .actions { margin-top: var(--s-5); }
.list-link-row { margin-top: var(--s-2); }
.list-link { padding-left: 0; justify-content: flex-start; }
.text-btn-ink { padding-left: 0; }
.short-caption { max-width: var(--measure); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.short { margin-top: var(--s-3); margin-inline: calc(var(--film-inset) - var(--gutter)); }
.short-film { aspect-ratio: 1080 / 1350; }
.short-wide { display: none; aspect-ratio: 1920 / 1080; }
@media (min-width: 768px) {
  .short { margin-inline: 0; }
  .short-phone { display: none; }
  /* capped so the film and its act bar fit the first screen */
  .short-wide { display: block; --film-w: min(100%, calc((100svh - var(--film-room) - var(--banner-room, 0px)) * 16 / 9)); width: var(--film-w); }
}
/* from 1024 the capped film keeps its own text on the page's text line, as the film dialog does */
@media (min-width: 1024px) { .short-wide { margin-left: calc(var(--inset) - var(--film-text-at) * var(--film-w)); } }
.short-rail { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.rail-bars { flex: 1; display: flex; gap: var(--s-1); min-width: 0; }
.rail-bar { position: relative; flex: var(--grow, 1) 1 0; min-width: var(--tap); height: var(--tap); display: flex; align-items: center; }
.rail-track { display: block; width: 100%; height: var(--rail-h); border-radius: var(--rail-h); background: var(--c-rail); overflow: hidden; }
.rail-fill { display: block; height: 100%; width: 0; background: var(--c-blue); }
.rail-tip { position: absolute; left: 0; bottom: calc(100% - var(--tip-gap)); display: none; white-space: nowrap; padding: var(--s-1) var(--s-2); border-radius: var(--r-button); background: var(--c-window); color: var(--c-white); font-size: var(--fs-label); line-height: var(--lh-label); pointer-events: none; z-index: 2; }
.rail-bar:nth-child(3) .rail-tip { left: 50%; transform: translateX(-50%); }
.rail-bar:nth-child(n+4) .rail-tip { left: auto; right: 0; }
.rail-bar:hover .rail-tip, .rail-bar:focus-visible .rail-tip { display: block; }
@media (max-width: 767px) { .rail-bar { flex-grow: 1; } }
@media (max-width: 359px) { .short-rail { flex-wrap: wrap; } .rail-bars { flex-basis: 100%; } .film-toggle { margin-left: auto; } }
.film-toggle { flex: none; display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-round); border: var(--edge-w) solid var(--c-edge); color: var(--c-ink); transition: border-color var(--d-hover); }
.film-toggle:hover { border-color: var(--c-ink); }
.film-toggle svg { width: var(--icon); height: var(--icon); fill: currentColor; }
.film-toggle[data-state="playing"] .i-play, .film-toggle[data-state="paused"] .i-pause { display: none; }

/* ---- sections */
.contains, .safe, .example, .closing { padding-top: var(--section-gap); }
section h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
section h2 + .lede { margin-top: var(--s-4); }
.safe-steps { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
@media (min-width: 1024px) { .safe-steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }
.safe-steps li { display: grid; gap: var(--s-2); align-content: start; }
.num-row { display: flex; align-items: center; gap: var(--s-3); min-height: var(--num-row-h); }
.safe-steps h3 { font-family: var(--f-serif); font-size: var(--fs-step-title); line-height: var(--lh-step-title); letter-spacing: var(--serif-track); }
.safe-steps p { color: var(--c-line); }
.data-line { margin-top: var(--s-7); font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--c-ink); }
.safe h2:focus { outline: none; }
.safe h2:focus-visible { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--focus-gap); }
.example-block { background: var(--c-soft-card); border-radius: var(--r-block); padding: var(--s-6); display: grid; gap: var(--s-4); justify-items: start; }
.example-block .lede { color: var(--c-ink); }
.example-block .btn { margin-top: var(--s-2); }
.fine { color: var(--c-ink); font-size: var(--fs-label); line-height: var(--lh-label); }
@media (min-width: 1024px) { .example-block { padding: var(--s-7) var(--inset); } }
@media (max-width: 767px) { .example-block .btn { width: 100%; } }
.closing { text-align: center; display: grid; justify-items: center; padding-bottom: var(--section-gap); }
.closing h2 { font-size: var(--fs-closing); line-height: var(--lh-closing); max-width: var(--measure); }
.closing .btn { margin-top: var(--s-6); }
.closing-count { margin-top: var(--s-3); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.closing-count[hidden] { display: none; }
@media (max-width: 767px) { .closing .btn { width: 100%; } }
.foot { border-top: var(--hair-w) solid var(--c-hair); padding-block: var(--s-7) calc(var(--s-7) + env(safe-area-inset-bottom, 0px)); }

/* ---- the bar that carries the choice. Phone: "Book a demo" at the thumb, with the count once something is picked */
.thumb-bar { display: none; }
@media (max-width: 767px) {
  .top-book { display: none; }
  .thumb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; gap: var(--s-3); padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom, 0px)); background: var(--c-page); border-top: var(--hair-w) solid var(--c-hair); }
  .thumb-bar[hidden] { display: none; }
  .thumb-book { flex: 1; min-width: 0; min-height: var(--foot-btn-h); padding: 0 var(--s-3); white-space: nowrap; }
  .foot { padding-bottom: calc(var(--s-7) + var(--foot-btn-h) + var(--s-4) + env(safe-area-inset-bottom, 0px)); }
}
.count-btn { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: var(--s-2); min-width: var(--count-min); min-height: var(--foot-btn-h); padding: 0 var(--s-3); border: var(--edge-w) solid var(--c-edge); border-radius: var(--r-button); color: var(--c-ink); text-align: left; animation: count-in var(--d-count) var(--ease); }
.count-btn[hidden] { display: none; }
.count-btn:hover { border-color: var(--c-ink); }
@keyframes count-in { from { opacity: 0; transform: translateX(calc(-1 * var(--move-small))); } to { opacity: 1; transform: none; } }
.count-lines { display: grid; font-size: var(--fs-count); line-height: var(--lh-count); white-space: nowrap; font-variant-numeric: tabular-nums; }
.count-lines b { font-weight: var(--fw-row); color: var(--c-ink); }
.count-lines span { font-weight: var(--fw-body); color: var(--c-soft); }
.count-btn .chev { stroke: var(--c-ink); }
@media (max-width: 359px) { .count-btn { grid-template-columns: auto; padding: 0 var(--s-2); } .count-btn .chev { display: none; } }

/* laptop and tablet: a bar docked full width at the bottom, sticky inside the list's section */
.sec-bar { display: none; }
@media (min-width: 768px) {
  .sec-bar { position: sticky; bottom: 0; z-index: 8; display: block; min-height: var(--sec-bar-h); background: var(--c-page); border-top: var(--hair-w) solid var(--c-hair);
    visibility: hidden; opacity: 0; transform: translateY(var(--move-bar)); transition: opacity var(--d-sec-bar) var(--ease), transform var(--d-sec-bar) var(--ease), visibility 0s linear var(--d-sec-bar); }
  .sec-bar { margin-bottom: calc(-1 * var(--sec-bar-h) - var(--hair-w)); }   /* at rest it lies over the next section's white padding */
  .sec-bar.is-shown { visibility: visible; opacity: 1; transform: none; transition: opacity var(--d-sec-bar) var(--ease), transform var(--d-sec-bar) var(--ease), visibility 0s; }
  .sec-inner { display: flex; align-items: center; gap: var(--s-4); min-height: var(--sec-bar-h); }
  .sec-count { flex: 1; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); font-variant-numeric: tabular-nums; }
}

/* ---- "What you've picked": a white sheet from the bottom on a phone; on a laptop the bar grows into a panel */
.picks-dialog { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: var(--c-page); color: var(--c-ink); }
.picks-dialog[open] { display: flex; flex-direction: column; max-height: var(--sheet-h); animation: sheet-in var(--d-sheet) var(--ease); }
.picks-dialog::backdrop { background: var(--c-backdrop); animation: fade-in var(--d-backdrop) var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(var(--move-in)); } to { opacity: 1; transform: none; } }
.pd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-top: var(--s-5); }
.pd-body h2 { font-family: var(--f-serif); font-size: var(--fs-module); line-height: var(--lh-module); letter-spacing: var(--serif-track); }
.pd-body h2:focus { outline: none; }
.pd-body h2:focus-visible { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--focus-gap); }
.pd-list { margin-top: var(--s-3); padding-bottom: var(--s-4); }
.pd-foot-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding-block: var(--s-3) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); }
.pd-foot-row .btn { min-height: var(--foot-btn-h); }
.pd-foot-row .sec-count { display: none; }
@media (max-width: 767px) {
  .picks-dialog { border-radius: var(--r-block) var(--r-block) 0 0; box-shadow: var(--sh-sheet-white); }
}
@media (min-width: 768px) {
  .picks-dialog[open] { max-height: calc(var(--panel-h) + var(--sec-bar-h)); animation-name: panel-in; }
  @keyframes panel-in { from { opacity: 0; transform: translateY(var(--move-bar)); } to { opacity: 1; transform: none; } }
  .picks-dialog { border-top: var(--hair-w) solid var(--c-hair); box-shadow: var(--sh-sheet-white); }
  .pd-foot { border-top: var(--hair-w) solid var(--c-hair); }
  .pd-foot-row { display: flex; align-items: center; gap: var(--s-4); min-height: var(--sec-bar-h); padding-block: 0; }
  .pd-foot-row .sec-count { display: block; }
  .pd-foot-row .btn { min-height: var(--tap); }
  .pd-foot-row .pd-done { border-color: transparent; color: var(--c-blue-ink); padding: 0 var(--s-2); font-weight: var(--fw-label); font-size: var(--fs-label); text-decoration: underline; text-underline-offset: var(--underline-offset); }
}

/* ---- the list of everything, names only (TOP-CHANGES.md 1): full screen on a phone, two columns on a tablet, a
   sheet from the top on a laptop. Row 1: the three headings a visitor picks from; below them the part that comes with
   every module on the page's included ground (art check 2). The head and the foot stay; the list scrolls between. */
.list-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--c-page); color: var(--c-ink); }
.list-dialog[open] { display: flex; flex-direction: column; animation: fade-in var(--d-list-in) var(--ease); }
.list-dialog::backdrop { background: var(--c-backdrop); }
.ld-head { flex: none; border-bottom: var(--hair-w) solid var(--c-hair); }
.ld-head-row, .ld-cols, .ld-foot-row { padding-inline: calc(var(--gutter) + var(--inset)); }   /* the page's text line */
.ld-head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--top-h); padding-block: var(--s-2); }
.ld-head h2 { font-family: var(--f-serif); font-size: var(--fs-module); line-height: var(--lh-module); letter-spacing: var(--serif-track); }
@media (max-width: 389px) { .ld-head h2 { font-size: var(--fs-list-title-small); line-height: var(--lh-list-title-small); } }
.ld-head h2:focus { outline: none; }
.ld-head h2:focus-visible { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--focus-gap); }
.ld-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block: var(--s-5) var(--s-6); }
.ld-cols { display: grid; gap: var(--s-6); }
/* one spacing rule at every width, whatever wraps (art check 1): the air round each name is padding, not centring, so
   22 from a name to the next, 15 from a name to its first feature, 8 between features, 12 from a heading */
.ld-col h3 { margin-bottom: var(--ld-heading-gap); }
.ld-link { display: flex; align-items: center; min-height: var(--tap); padding-block: var(--ld-name-pad); font-size: var(--fs-row); line-height: var(--lh-row); font-weight: var(--fw-row); color: var(--c-ink); text-decoration: none; }
.ld-link:hover { text-decoration: underline; text-underline-offset: var(--underline-offset); }
.ld-feats { padding-left: var(--s-4); padding-bottom: var(--ld-feats-end); }
.ld-feats li, .ld-note { font-size: var(--fs-label); line-height: var(--lh-label); }
.ld-feats li { color: var(--c-line); padding-block: var(--ld-feat-pad); }
.ld-note { color: var(--c-soft); }
.ld-feats:has(+ .ld-note) { padding-bottom: 0; }
.ld-note { padding: var(--ld-feat-pad) 0 var(--ld-name-pad) var(--s-4); }
/* the included part: on the page's ground, full bleed on a phone; its title across the ground, then six blocks
   (each starting with its name) flowing into the columns from a tablet (art recheck) */
.ld-included.is-ground { background: var(--c-ground); margin-inline: calc(-1 * var(--gutter)); padding: var(--s-6) var(--gutter) var(--s-5); }
.ld-included .ld-mods > li { break-inside: avoid; }
.ld-foot { flex: none; border-top: var(--hair-w) solid var(--c-hair); }
.ld-foot-row { display: flex; flex-direction: column; gap: var(--s-3); padding-block: var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); }
.ld-count { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-ink); }
.ld-book { min-height: var(--foot-btn-h); }
@media (min-width: 768px) {
  .ld-cols { grid-template-columns: 1fr 1fr; }
  .ld-included { grid-column: 1 / -1; }
  .ld-included .ld-mods { columns: 2; column-gap: var(--s-6); }
  /* like the page's docked bar: the count on the text line at the left, "Book a demo" at the right */
  .ld-foot-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .ld-book { margin-left: auto; }
}
@media (min-width: 1024px) {
  .list-dialog { height: auto; max-height: 100dvh; inset: 0 0 auto 0; box-shadow: var(--sh-panel); }
  .ld-cols { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-6); row-gap: var(--s-7); }
  .ld-included .ld-mods { columns: 3; column-gap: var(--s-6); }
  .ld-included.is-ground { border-radius: var(--r-block); margin-inline: calc(-1 * var(--inset)); padding: var(--s-6) var(--inset) var(--s-5); }
  .ld-book { min-height: var(--btn-h); }
}
@media (min-width: 1280px) {
  .ld-cols { column-gap: var(--s-7); }
  .ld-included .ld-mods { column-gap: var(--s-7); }
}

/* ---- dialogs */
dialog { padding: 0; border: 0; color: var(--c-ink); background: var(--c-page); max-width: none; max-height: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* the full film: full viewport, white, the film's rail under it; a moment plays only its spans, then stops */
.film-dialog { width: 100%; height: 100%; margin: 0; overflow-y: auto; }
.film-dialog::backdrop { background: var(--c-page); }
.film-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--top-h); background: var(--c-page); }
.film-head h2 { font-size: var(--fs-part); line-height: var(--lh-part); }

.film-dialog.is-moment #film-title { display: none; }
.film-now { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-2); font-size: var(--fs-row); line-height: var(--lh-row); font-weight: var(--fw-row); }
@media (min-width: 768px) {
  /* a capped film keeps the left edge of the full one, so its own text stays on the page's line (art recheck 2) */
  .film-dialog.is-moment #full-film { width: auto; max-width: 100%; max-height: calc(100dvh - 200px); margin-inline: 0; }
}
.film-dialog.is-ended .film-sideways { display: none; }
.film-now[hidden] { display: none; }
.film-now .dur { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-body); color: var(--c-soft); }
.film-end { padding-top: var(--s-4); animation: fade-in var(--d-film-end) var(--ease); }
.film-end[hidden] { display: none; }
.film-done { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.film-end-buttons { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-3); }
.film-end-buttons .btn { width: 100%; }
@media (min-width: 768px) { .film-end-buttons { flex-direction: row; } .film-end-buttons .btn { width: auto; } }
.film-dialog.is-moment:not(.is-free) .film-nav { display: none; }
.icon-btn-ink svg { stroke-width: var(--icon-stroke); }
.film-nav { padding-block: var(--s-6) var(--s-4); }
@media (min-width: 1024px) { .film-nav, .film-text, .film-end { padding-inline: var(--inset); } .film-head { padding-left: var(--inset); } }
.film-list-link { margin-top: var(--s-3); padding-left: 0; }
.film-sideways { display: none; color: var(--c-line); margin-top: var(--s-3); }
/* a phone instruction, only on a touch phone (not on a desk computer zoomed to 400 percent) */
@media (max-width: 767px) and (pointer: coarse) { .film-sideways { display: block; } }
#full-film::-webkit-media-controls-panel { background-image: none; background-color: transparent; }
#full-film::-webkit-media-controls-enclosure { background: transparent; }
.film-text { display: grid; gap: var(--s-3); justify-items: start; padding-top: var(--s-4); padding-bottom: var(--s-7); color: var(--c-line); }
.film-text > * { max-width: var(--words-measure); }
.film-words { display: grid; gap: 0; }
.film-words[hidden] { display: none; }
.film-words h3 { font-family: var(--f-serif); font-size: var(--fs-part); line-height: var(--lh-part); letter-spacing: var(--serif-track); color: var(--c-ink); margin: var(--s-6) 0 var(--s-2); }
.film-words h4 { font-weight: var(--fw-button); color: var(--c-ink); margin-top: var(--s-5); }
.film-words h3 + h4 { margin-top: 0; }
.film-jumps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); align-items: end; }
@media (min-width: 1024px) { .film-jumps { grid-template-columns: repeat(7, 1fr); gap: var(--s-4); } }
.film-jumps button { width: 100%; min-height: var(--tap); padding-bottom: var(--s-2); border-bottom: var(--rail-h) solid var(--c-rail); color: var(--c-soft); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); text-align: left; transition: color var(--d-hover), border-color var(--d-hover); }
.film-jumps button[aria-current="true"] { color: var(--c-ink); border-bottom: var(--rail-current-h) solid var(--c-blue); padding-bottom: calc(var(--s-2) - (var(--rail-current-h) - var(--rail-h))); }

/* ---- "Everything Healthcare OS does": the open list (MODULES-LOOK.md sections 2 to 7) */
.contains { padding-bottom: 0; }
.list-top { position: relative; }
.skip-list { position: absolute; left: var(--inset); top: calc(-1 * var(--s-7)); z-index: 5; padding: var(--s-3) var(--s-4); border-radius: var(--r-button); background: var(--c-window); color: var(--c-white); font-weight: var(--fw-button); text-decoration: none; opacity: 0; pointer-events: none; }
.skip-list:focus { opacity: 1; pointer-events: auto; }
.contains h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); text-wrap: balance; }
.contains h2:focus { outline: none; }
.contains h2:focus-visible { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--focus-gap); }
.list-top .lede { margin-top: var(--s-4); }

/* the "All of Healthcare OS" tile: the whole tile is the tick's label */
.all-tile { margin-top: var(--s-6); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: center; min-height: var(--all-h); padding: var(--s-4) var(--s-5); border: var(--edge-w) solid var(--c-edge); border-radius: var(--r-tile); background: var(--c-page); transition: border-color var(--d-hover); }
.all-name { grid-column: 1; font-size: var(--fs-row); line-height: var(--lh-row); font-weight: var(--fw-row); }
.all-line { grid-column: 1; font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.all-tile .tick-wrap { grid-column: 2; grid-row: 1 / span 2; }
@media (hover: hover) { .all-tile:hover { border-color: var(--c-ink); } .all-tile:hover .tick-box { border-color: var(--c-ink); } }
.all-tile:has(.tick:focus-visible) { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--focus-gap); }
.key { margin-top: var(--s-4); display: grid; gap: var(--s-1); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.key li, .rel { display: flex; align-items: flex-start; gap: var(--s-2); }
.mark { width: var(--mark); height: var(--mark); flex: none; margin-top: 2px; color: var(--c-mark); }
.mark path { fill: none; stroke: currentColor; stroke-width: var(--mark-stroke); stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1024px) {
  .key { display: flex; gap: var(--s-6); }
  .all-tile { padding: var(--s-4) 0 var(--s-4) var(--s-5); grid-template-columns: calc(var(--col-a) - var(--s-5) - var(--edge-w)) minmax(0, 1fr) var(--tick-col); column-gap: var(--col-gap); }
  .all-line { grid-column: 2; grid-row: 1; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-line); }
  .all-tile .tick-wrap { grid-column: 3; grid-row: 1; justify-self: center; }
}

/* headings: dividers with a dark rule */
.list { margin-top: var(--s-7); }
/* no scroll-margin here: the page's scroll-padding already keeps a heading clear of both bars (CHECK-BUILT-ACCESS.md M1) */
.heading { margin-top: var(--heading-gap); padding-top: var(--s-3); border-top: var(--hair-w) solid var(--c-heading-rule); color: var(--c-ink); }
.list > .heading:first-child { margin-top: 0; }
.heading:focus { outline: none; }
.heading:focus-visible { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--focus-gap); }

/* a module: name, line, relation, "Watch it", the card slot, its features */
.mod { padding-block: var(--mod-pad); border-top: var(--hair-w) solid var(--c-hair); }
.heading + .mod { border-top: 0; }
.row { position: relative; border-radius: var(--r-ring); }
.mod-row, .feat-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--tick-col); }
.mod-name { grid-column: 1; grid-row: 1; font-family: var(--f-serif); font-size: var(--fs-module); line-height: var(--lh-module); letter-spacing: var(--serif-track); color: var(--c-ink); }
.mod-name label, .feat-name label, .group-name label { display: block; }
.mod-name:focus, .group-name:focus, .feat.is-incl:focus, .incl-row:focus { outline: none; }
.mod-name:focus-visible, .group-name:focus-visible, .feat.is-incl:focus-visible, .incl-row:focus-visible { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--focus-gap); border-radius: var(--r-ring); }
.mod-row > .tick-wrap, .mod-row > .incl-check { grid-column: 2; grid-row: 1; justify-self: end; margin-top: calc((var(--lh-module) - var(--tick)) / 2); }
.mod-line { grid-column: 1 / -1; grid-row: 2; margin-top: var(--s-1); color: var(--c-line); }
.mod-line label { display: block; }
.rel { margin-top: var(--s-2); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.rel[hidden] { display: none; }
.rel.is-met, .rel.is-by, .rel.is-incl, .rel.is-locked { color: var(--c-line); }
.rel-text { transition: opacity var(--d-rel); }
.acts { display: flex; flex-wrap: wrap; column-gap: var(--s-5); }
.mod > .acts:last-child, .mod > .slot:last-child { margin-bottom: calc(-1 * var(--s-3)); }
.watch { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); color: var(--c-blue-ink); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); text-decoration: none; }
.watch .play { width: var(--icon-small); height: var(--icon-small); fill: currentColor; }
.watch .out { width: var(--icon); height: var(--icon); fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.watch .dur { color: var(--c-soft); font-weight: var(--fw-body); }
.watch:hover .w-word { text-decoration: underline; text-underline-offset: var(--underline-offset); }
.feats { display: grid; gap: var(--feat-gap); margin-top: var(--s-2); }
.feat-name { grid-column: 1; grid-row: 1; font-size: var(--fs-row); line-height: var(--lh-row); font-weight: var(--fw-row); color: var(--c-ink); }
.feat-line { grid-column: 1 / -1; grid-row: 2; font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.feat-row > .tick-wrap, .feat-row > .incl-check { grid-column: 2; grid-row: 1; justify-self: end; margin-top: calc((var(--lh-row) - var(--tick)) / 2); }

/* the row's focus ring and hover: around the whole row, never only the box */
.row:has(.tick:focus-visible) { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--row-ring-gap); }
@media (hover: hover) { .row:hover .tick-box { border-color: var(--c-ink); } .row.is-locked:hover .tick-box { border-color: var(--c-tick-on); } }
.row.is-locked label { cursor: default; }

@media (min-width: 1024px) {
  .mod { display: grid; grid-template-columns: var(--col-a) minmax(0, 1fr) var(--tick-col); column-gap: var(--col-gap); align-items: start; }
  .mod-row { grid-column: 1 / -1; grid-row: 1; grid-template-columns: subgrid; column-gap: var(--col-gap); }
  .mod-name { grid-column: 1; grid-row: 1; }
  .mod-line { grid-column: 2; grid-row: 1; margin-top: calc((var(--lh-module) - var(--lh-body)) / 2); }
  .mod-row > .tick-wrap, .mod-row > .incl-check { grid-column: 3; justify-self: center; }
  .mod > .rel { grid-column: 1; grid-row: 2; position: relative; }
  .mod > .acts { grid-column: 1; grid-row: 3; position: relative; }
  /* every part has its own row, in the markup's order, so Tab follows what is seen even when the needs line is
     hidden and its row is empty (CHECK-BUILT-ACCESS.md recheck, N1) */
  .mod > .slot { grid-column: 1 / 3; grid-row: 4; }
  .mod > .feats { grid-column: 1 / -1; grid-row: 5; margin-top: var(--s-4); }
  /* a one-line feature row is 26px tall here: its pressable area grows to 48 without moving anything */
  .feat-row { grid-template-columns: var(--col-a) minmax(0, 1fr) var(--tick-col); column-gap: var(--col-gap);
    padding-block: var(--row-pad); margin-block: calc(-1 * var(--row-pad)); }
  .row.feat-row:has(.tick:focus-visible) { outline-offset: calc(var(--row-ring-gap) - var(--row-pad)); }
  .feat-name { padding-left: var(--feat-indent); }
  .feat-line { grid-column: 2; grid-row: 1; margin-top: 1px; }
  .feat-row > .tick-wrap, .feat-row > .incl-check { grid-column: 3; justify-self: center; }
  .feats .slot { margin-left: var(--feat-indent); max-width: calc(100% - var(--tick-col) - var(--col-gap) - var(--feat-indent)); }
}

/* the tick on white: a navy box with a green check, so the box keeps its edge on the page */
.tick-wrap { position: relative; display: inline-grid; width: var(--tick); height: var(--tick); flex: none; }
.tick { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tick:focus-visible { outline: none; }
.tick-box { display: grid; place-items: center; width: var(--tick); height: var(--tick); border-radius: var(--r-tick); border: var(--edge-strong) solid var(--c-edge); background: var(--c-page); transition: background-color var(--d-tick) var(--ease-out), border-color var(--d-tick) var(--ease-out); pointer-events: none; }
.tick-box svg { width: var(--tick); height: var(--tick); grid-area: 1 / 1; overflow: visible; }
.tick-check { fill: none; stroke: var(--c-tick-mark); stroke-width: var(--check-stroke); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset var(--d-tick) var(--ease-out); }
.tick-some { grid-area: 1 / 1; width: var(--tick-bar-w); height: var(--tick-bar-h); border-radius: var(--tick-bar-h); background: var(--c-tick-mark); opacity: 0; }
.tick-wrap[data-state="all"] .tick-box, .tick-wrap[data-state="some"] .tick-box { background: var(--c-tick-on); border-color: var(--c-tick-on); }
.tick-wrap[data-state="all"] .tick-check { stroke-dashoffset: 0; }
.tick-wrap[data-state="some"] .tick-some { opacity: 1; }
.is-locked .tick { cursor: default; }
/* the plain check: the tick's own check with no box, for what comes with every module */
.incl-check { display: grid; place-items: center; width: var(--tick); height: var(--tick); color: var(--c-mark); }
.incl-check svg { width: var(--tick); height: var(--tick); }
.incl-check path { fill: none; stroke: currentColor; stroke-width: var(--mark-stroke); stroke-linecap: round; stroke-linejoin: round; }

/* the included ground: Revenue overview, then the shared block, one stretch at the end of the list */
.mod.is-included, .shared { background: var(--c-ground); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.mod.is-included { margin-top: var(--s-4); border-top: 0; padding-bottom: var(--s-7); }
.mod.is-included .tick-box { border-color: var(--c-soft); }
/* Revenue overview and the shared block are one ground, joined by a hair across the text column (ruling 39) */
.shared { margin-top: 0; padding-block: var(--s-7);
  background-image: linear-gradient(var(--c-rail), var(--c-rail)); background-size: calc(100% - 2 * var(--gutter)) var(--hair-w); background-position: var(--gutter) 0; background-repeat: no-repeat; }
@media (min-width: 1024px) {
  .mod.is-included, .shared { margin-inline: calc(-1 * var(--inset)); padding-inline: var(--inset); }
  .mod.is-included { border-radius: var(--r-block) var(--r-block) 0 0; }
  .shared { border-radius: 0 0 var(--r-block) var(--r-block); background-size: calc(100% - 2 * var(--inset)) var(--hair-w); background-position: var(--inset) 0; }
}
.shared-title { font-family: var(--f-serif); font-size: var(--fs-shared); line-height: var(--lh-shared); letter-spacing: var(--serif-track); }
.shared-title:focus { outline: none; }
.shared-title:focus-visible { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: var(--focus-gap); }
.shared-line { margin-top: var(--s-2); color: var(--c-line); max-width: var(--measure); }
.groups { margin-top: var(--s-6); display: grid; gap: var(--s-6); }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--tap); border-bottom: var(--hair-w) solid var(--c-rail); }
.group-name { color: var(--c-soft); }
.group-head .watch { flex: none; }
.incl-list { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.incl-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--mark); column-gap: var(--s-3); border-radius: var(--r-ring); }
.incl-name { grid-column: 1; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-row); color: var(--c-ink); }
.incl-line { grid-column: 1 / -1; font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.incl-row .incl-check { grid-column: 2; grid-row: 1; justify-self: end; width: var(--mark); height: var(--mark); margin-top: 2px; }
.incl-row .incl-check svg { width: var(--mark); height: var(--mark); }
.setup-note { margin-top: var(--s-3); padding-top: var(--s-3); border-top: var(--hair-w) solid var(--c-rail); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-line); }
@media (min-width: 1024px) {
  .groups { display: block; columns: 3; column-gap: var(--s-7); }
  .group { break-inside: avoid; padding-bottom: var(--s-6); }
  .incl-line { grid-column: 1; }
}
/* the shared block when its features are picked like the modules */
.group.is-pickable { padding-top: var(--s-2); }
/* the rule under the group's name is drawn as a background, so the row's rounded focus corners never bend it */
.group-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--tick-col); align-items: center; min-height: var(--tap);
  background: linear-gradient(var(--c-rail), var(--c-rail)) left bottom / 100% var(--hair-w) no-repeat; }
.group-row > .tick-wrap { justify-self: end; }
.shared .tick-box, .mod.is-included .tick-box { border-color: var(--c-soft); }
.group.is-pickable .feats { margin-top: var(--s-3); gap: var(--s-3); }
.group.is-pickable .feat-name { font-size: var(--fs-label); line-height: var(--lh-label); }
@media (min-width: 1024px) {
  .shared.is-pickable .groups { columns: 1; }
  .group.is-pickable { display: grid; grid-template-columns: var(--col-a) minmax(0, 1fr) var(--tick-col); column-gap: var(--col-gap); }
  .group.is-pickable > .group-row { grid-column: 1 / -1; grid-template-columns: subgrid; }
  .group.is-pickable > .group-row > .tick-wrap { grid-column: 3; justify-self: center; }
  .group.is-pickable > .acts, .group.is-pickable > .slot { grid-column: 1 / 3; }
  .group.is-pickable > .feats, .group.is-pickable > .setup-note { grid-column: 1 / -1; }
  .group.is-pickable .feat-name { padding-left: 0; }
  .group.is-pickable .feat-row { --row-pad: 12px; }   /* a 24px name row, 48 to press */
}

/* the card slot: one recommendation, or the needs note, under the row that caused it */
.slot:empty { display: none; }
.rec { display: grid; grid-template-rows: 1fr; margin: var(--s-1) 0 var(--s-2); animation: rec-in var(--d-rec-in) var(--ease); scroll-margin-bottom: var(--s-5); }
.rec-inner { overflow: hidden; min-height: 0; border-left: var(--rule-w) solid var(--c-blue); padding: var(--s-1) 0 var(--s-1) var(--s-4); display: grid; gap: var(--s-4); animation: fade-in var(--d-rec-fade) var(--ease) var(--d-rec-fade-delay) backwards; }
.rec.is-note .rec-inner { border-left-color: var(--c-ink); gap: var(--s-3); }
.rec.is-leaving { animation: rec-out var(--d-rec-out) var(--ease) forwards; }
@keyframes rec-in { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }
@keyframes rec-out { 0% { opacity: 1; grid-template-rows: 1fr; } 45% { opacity: 0; grid-template-rows: 1fr; } 100% { opacity: 0; grid-template-rows: 0fr; } }
.rec-lead { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); color: var(--c-ink); }
.rec-lead[hidden] { display: none; }
.rec-item { display: grid; gap: var(--s-1); }
.rec-title { font-size: var(--fs-rec-title); line-height: var(--lh-rec-title); font-weight: var(--fw-row); color: var(--c-ink); }
.rec-why { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-line); }
.rec-where { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.rec-buttons { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.rec-buttons .btn { min-height: var(--tap); padding: 0 var(--s-5); }
.rec-buttons .text-btn { padding: 0 var(--s-2); }
.note-text { font-size: var(--fs-row); line-height: var(--lh-row); font-weight: var(--fw-label); color: var(--c-ink); }
.rec-no[hidden] { display: none; }
.btn.rec-add.is-added { border-color: var(--c-ink); cursor: default; }
.rec-add.is-added svg { width: var(--icon); height: var(--icon); fill: none; stroke: var(--c-ink); stroke-width: var(--added-stroke); stroke-linecap: round; stroke-linejoin: round; }

/* the picks list: in the white sheet, the laptop panel and the flow's picks column */
.picks-list { display: grid; }
.pk-group { display: grid; padding-block: var(--s-2); border-bottom: var(--hair-w) solid var(--c-hair); }
.pk-group:last-child { border-bottom: 0; }
.pk-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--tap); align-items: center; min-height: var(--tap); column-gap: var(--s-2); }
.pk-mod { font-size: var(--fs-row); line-height: var(--lh-row); font-weight: var(--fw-row); }
.pk-whole { font-weight: var(--fw-body); color: var(--c-soft); font-size: var(--fs-label); margin-left: var(--s-2); }
.pk-feat { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-ink); }
.pk-sub { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-line); display: flex; gap: var(--s-2); }
.pk-x { display: grid; place-items: center; width: var(--tap); height: var(--tap); color: var(--c-ink); justify-self: end; margin-right: calc(-1 * var(--s-3)); border-radius: var(--r-round); }
.pk-x svg { width: var(--icon); height: var(--icon); fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; }
.pk-x:focus { outline: var(--focus-w) solid var(--c-blue-ink); outline-offset: calc(-1 * var(--focus-w)); }
.pk-empty, .pk-incl { padding-block: var(--s-3); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-soft); }
.pk-group .slot { margin-top: var(--s-1); }

/* ---- the request flow: the film's navy window */
.flow { position: fixed; inset: 0; width: 100%; height: 100dvh; margin: 0; overflow: hidden; background: var(--c-window); color: var(--c-on-window); }
.flow[open] { display: flex; flex-direction: column; animation: flow-in var(--d-flow-in) var(--ease); }
.flow.is-closing { animation: flow-out var(--d-flow-out) var(--ease-in) forwards; }
.flow::backdrop { background: var(--c-backdrop); animation: fade-in var(--d-backdrop) var(--ease); }
@keyframes flow-in { from { opacity: 0; transform: translateY(var(--move-in)); } to { opacity: 1; transform: none; } }
@keyframes flow-out { to { opacity: 0; transform: translateY(var(--move-out)); } }
@media (min-width: 768px) {
  .flow { width: var(--flow-w); height: fit-content; max-height: var(--flow-h); margin: auto; border-radius: var(--r-panel); box-shadow: var(--sh-panel); }
}
@media (min-width: 1024px) { .flow.is-wide { width: var(--flow-w-wide); } }
.flow :focus-visible { outline-color: var(--c-sky); }
.flow .icon-btn { color: var(--c-on-window); }
.flow-head { display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: center; min-height: var(--flow-head-h); padding: env(safe-area-inset-top, 0px) var(--s-1) 0; }
.flow-head [hidden] { display: grid; visibility: hidden; }
.flow-step { text-align: center; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--c-on-window-2); }
.flow-bar { height: var(--bar-h); background: var(--c-track-navy); flex: none; }
.flow-bar span { display: block; height: 100%; width: 0; background: var(--c-blue); transition: width var(--d-bar) var(--ease); }
/* position: relative keeps the visually hidden texts inside the scroller; placed by .flow instead, they made the
   window itself scrollable, and a screen reader's move to one could scroll the head and its Close out of view */
.flow-main { position: relative; flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: var(--flow-pad-top) var(--flow-pad) var(--s-6); scroll-padding-block: var(--s-4); }
.flow-foot { display: grid; gap: var(--s-3); padding: var(--s-4) var(--flow-pad) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); border-top: var(--hair-w) solid var(--c-rule-navy); background: var(--c-window); }
.flow-foot:empty { display: none; }
.flow-foot .btn { width: 100%; min-height: var(--foot-btn-h); }
.foot-row { display: flex; align-items: center; gap: var(--s-3); }
.foot-row .btn { flex: 1; }
.flow .btn-main { background: var(--c-on-window); color: var(--c-ink); }
.flow .btn-main:hover { background: var(--c-white); }
.flow .btn-main:active { background: var(--c-soft-card); }
.flow .btn[aria-disabled="true"] { background: var(--c-off-navy); color: var(--c-on-window-2); cursor: not-allowed; transform: none; }
.flow .btn-second { color: var(--c-on-window); border-color: var(--c-window-edge); }
.flow .btn-second:hover { border-color: var(--c-on-window); }
.flow .btn-second:active { background: var(--c-window-on); }
.btn-send { background: var(--c-green); color: var(--c-on-green); }
.flow .text-btn { color: var(--c-sky); }
.flow .text-btn:active { color: var(--c-on-window); }
.flow .text-btn-soft { color: var(--c-on-window-2); }
.flow .mark { color: var(--c-muted-navy); }
.flow .key { color: var(--c-on-window-2); margin-top: 0; }

/* screens and their motion: the old screen fades, the new one comes from the side of travel */
.step { display: grid; gap: var(--s-4); animation: step-in var(--d-step-in) var(--ease); }
.flow-main[data-dir="back"] .step { animation-name: step-in-back; }
.flow-main[data-dir="none"] .step { animation-name: fade-in; }
.step.is-leaving { animation: step-out var(--d-step-out) var(--ease) forwards; }
@keyframes step-in { from { opacity: 0; transform: translateX(var(--move-step)); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(calc(-1 * var(--move-step))); } to { opacity: 1; transform: none; } }
@keyframes step-out { to { opacity: 0; } }
.step h2 { font-size: var(--fs-question); line-height: var(--lh-question); }
.step h2:focus { outline: none; }
.step h2:focus-visible { outline: var(--focus-w) solid var(--c-sky); outline-offset: var(--focus-gap); }
.help { color: var(--c-on-window-2); }
.flow .help { font-size: var(--fs-body); line-height: var(--lh-body); }
.arrived { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-2); margin-bottom: calc(-1 * var(--s-1)); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-on-window-2); }
.arrived .text-btn { padding: 0 var(--s-1); }

/* step 1: two tiles */
.choices { display: grid; grid-auto-rows: 1fr; gap: var(--s-3); margin-top: var(--s-2); }
.choice { position: relative; width: 100%; text-align: left; color: var(--c-on-window); display: grid; grid-template-columns: 1fr auto; align-content: center; column-gap: var(--s-4); min-height: var(--choice-h); padding: var(--s-5) var(--s-5); background: var(--c-window-2); border: var(--edge-w) solid var(--c-window-edge); border-radius: var(--r-tile); cursor: pointer; transition: border-color var(--d-hover), background-color var(--d-hover); }
.choice-title { grid-column: 1; font-size: var(--fs-choice); line-height: var(--lh-choice); font-weight: var(--fw-button); }
.choice-hint { grid-column: 1; font-size: var(--fs-choice-line); line-height: var(--lh-choice-line); color: var(--c-on-window-2); }
.choice-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.choice-arrow svg { width: var(--icon-arrow); height: var(--icon-arrow); fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.choice:hover { border-color: var(--c-on-window-2); }
.choice[aria-pressed="true"] { border: var(--edge-strong) solid var(--c-blue); background: var(--c-window-on); }

/* chips: one column under 480, two from 480; the chosen one gets a check, so it has a shape in every mode */
.chips { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
@media (min-width: 480px) { .chips { grid-template-columns: 1fr 1fr; } }
.chip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--chip-h); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-5); border: var(--edge-w) solid var(--c-window-edge); border-radius: var(--r-button); font-size: var(--fs-body); line-height: var(--lh-row); font-weight: var(--fw-label); color: var(--c-on-window); cursor: pointer; transition: background-color var(--d-hover), color var(--d-hover); }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip svg { width: var(--mark); height: var(--mark); flex: none; visibility: hidden; }
.chip svg path { fill: none; stroke: var(--c-ink); stroke-width: var(--check-stroke); stroke-linecap: round; stroke-linejoin: round; }
.chip:has(input:checked) { background: var(--c-on-window); color: var(--c-ink); border-color: var(--c-on-window); }
.chip:has(input:checked) svg { visibility: visible; }
.chip:has(input:focus-visible) { outline: var(--focus-w) solid var(--c-sky); outline-offset: var(--focus-gap); }

/* step 2: the same list, compact, on navy, ticks at the right */
.step-pick { gap: var(--s-5); }
.pick-main { display: grid; gap: var(--s-4); min-width: 0; align-content: start; }
@media (min-width: 1024px) {
  .flow.is-wide .flow-main { padding-right: 0; }
  .flow.is-wide .step-pick { grid-template-columns: 1fr var(--picks-w); align-items: start; gap: 0; }
  .flow.is-wide .pick-main { padding-right: var(--flow-pad); }
}
.flow .all-tile { margin-top: 0; background: var(--c-window-2); border-color: var(--c-window-edge); color: var(--c-on-window); min-height: var(--all-h); grid-template-columns: minmax(0, 1fr) auto; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5); }
.flow .all-tile .all-line { grid-column: 1; grid-row: auto; color: var(--c-on-window-2); font-size: var(--fs-label); line-height: var(--lh-label); }
.flow .all-tile .tick-wrap { grid-column: 2; grid-row: 1 / span 2; justify-self: auto; }
@media (hover: hover) { .flow .all-tile:hover { border-color: var(--c-on-window-2); } }
.flow .all-tile:has(.tick:focus-visible) { outline-color: var(--c-sky); }
.fl-list { display: grid; }
.fl-heading { margin-top: var(--s-4); margin-bottom: var(--s-1); padding-top: var(--s-3); border-top: var(--hair-w) solid var(--c-window-edge); color: var(--c-on-window-2); }
.fl-mod { padding-bottom: var(--s-2); border-bottom: var(--hair-w) solid var(--c-rule-navy); }
.fl-mod:has(+ .fl-heading), .fl-mod:last-child { border-bottom: 0; }
.fl-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--tick-col); align-items: center; min-height: var(--chip-h); padding-block: var(--s-1); border-radius: var(--r-ring); }
.fl-row:has(.tick:focus-visible) { outline: var(--focus-w) solid var(--c-sky); outline-offset: var(--s-1); }
.fl-row > .tick-wrap, .fl-row > .incl-check { justify-self: end; }
.fl-name { font-size: var(--fs-row); line-height: var(--lh-row); font-weight: var(--fw-row); }
.fl-name label { display: block; }
.fl-feat { min-height: var(--tap); padding-left: var(--s-5); }
.fl-feat .fl-name { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-body); color: var(--c-on-window-2); }
.fl-sub { display: block; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-body); color: var(--c-on-window-2); }
/* the needs line starts below the focus ring's reach (offset 4 plus 3), so the ring never crosses it */
.flow .rel { margin-top: var(--s-2); margin-bottom: var(--s-2); color: var(--c-on-window-2); }
.flow .rel.is-met, .flow .rel.is-by, .flow .rel.is-locked { color: var(--c-on-window); }
.flow .incl-check { color: var(--c-muted-navy); }
.fl-included { margin-top: var(--s-4); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-on-window-2); }
.flow .tick-box { border-color: var(--c-window-edge); background: transparent; }
.flow .tick-wrap[data-state="all"] .tick-box, .flow .tick-wrap[data-state="some"] .tick-box { background: var(--c-green); border-color: var(--c-green); }
.flow .tick-check { stroke: var(--c-on-green); }
.flow .tick-some { background: var(--c-on-green); }
@media (hover: hover) { .flow .row:hover .tick-box, .flow .fl-row:hover .tick-box { border-color: var(--c-on-window); } }
.flow .rec { margin-left: var(--s-5); }
.flow .rec-inner { border-left-color: var(--c-sky); }
.flow .rec.is-note .rec-inner { border-left-color: var(--c-on-window); }
.flow .rec-title, .flow .rec-lead, .flow .note-text { color: var(--c-on-window); }
.flow .rec-why { color: var(--c-on-window-2); }
.flow .rec-where { color: var(--c-muted-navy); }
.flow .btn.rec-add.is-added { background: transparent; color: var(--c-on-window); border-color: var(--c-green); }
.flow .rec-add.is-added svg { stroke: var(--c-green); }

/* picked so far: a right column on a laptop, a sheet on a phone */
.picks { display: grid; gap: var(--s-3); align-content: start; }
.picks h3 { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--c-muted-navy); }
.picks h3:focus { outline: none; }
.picks h3:focus-visible, .sum-block h3:focus-visible { outline: var(--focus-w) solid var(--c-sky); outline-offset: var(--focus-gap); }
.flow .pk-group { border-bottom-color: var(--c-rule-navy); }
.flow .pk-mod { font-size: var(--fs-label); line-height: var(--lh-label); }
.flow .pk-feat, .flow .pk-x { color: var(--c-on-window); }
.flow .pk-whole, .flow .pk-empty, .flow .pk-incl, .flow .pk-sub { color: var(--c-on-window-2); }
.flow .pk-x:focus { outline-color: var(--c-sky); }
.picks-done { display: none; }
@media (max-width: 1023px) {
  .flow .picks { position: absolute; left: 0; right: 0; bottom: 0; max-height: var(--sheet-h); overflow-y: auto; padding: var(--s-5) var(--flow-pad) calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); background: var(--c-window-2); border-radius: var(--r-block) var(--r-block) 0 0; box-shadow: var(--sh-sheet); z-index: 3; animation: flow-in var(--d-sheet) var(--ease); }
  .flow .picks[hidden] { display: none; }
  .flow .picks-done { display: inline-flex; margin-top: var(--s-3); }
}
@media (min-width: 1024px) {
  .flow.is-wide .picks[hidden] { display: grid; }
  .flow.is-wide .picks { position: sticky; top: 0; padding: 0 var(--flow-pad) 0 var(--s-5); }
  .flow.is-wide .step-pick { background: linear-gradient(var(--c-rule-navy), var(--c-rule-navy)) no-repeat calc(100% - var(--picks-w)) 0 / var(--hair-w) 100%; }
  .flow.is-wide .picks-see { display: none; }
}
.picks-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--tap); }
.picks-count { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); }
.hint { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-on-window-2); }

/* step 6: fields */
.fields { display: grid; gap: var(--s-5); margin-top: var(--s-2); }
.field { display: grid; gap: var(--s-2); }
.field label, .field-label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); color: var(--c-on-window-2); }
.mark-optional { margin-left: var(--s-2); font-weight: var(--fw-body); color: var(--c-muted-navy); }
.field input { width: 100%; min-height: var(--field-h); padding: 0 var(--s-4); background: var(--c-window-2); color: var(--c-on-window); border: var(--edge-w) solid var(--c-window-edge); border-radius: var(--r-button); font-size: var(--fs-body); }
.field input:focus { border-color: var(--c-sky); }
.field input:focus-visible { outline: var(--focus-w) solid var(--c-sky); outline-offset: var(--focus-gap); }
.field-note { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-on-window-2); }
.needed { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-on-window-2); margin-top: calc(-1 * var(--s-2)); }
.foot-line { font-size: var(--fs-label); line-height: var(--lh-label); }
.err { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-error-navy); }

/* step 7: the summary */
.owner-banner { padding: var(--s-3) var(--s-4); border-radius: var(--r-button); background: var(--c-banner-navy); color: var(--c-on-window); font-size: var(--fs-label); line-height: var(--lh-label); }
.summary { display: grid; }
.sum-block { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s-3); padding: var(--s-5) 0; border-bottom: var(--hair-w) solid var(--c-rule-navy); }
.sum-block h3 { grid-column: 1; font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); color: var(--c-muted-navy); }
.sum-block h3:focus { outline: none; }
.sum-content { grid-column: 1; display: grid; min-width: 0; }
.sum-incl { margin-top: var(--s-2); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-on-window-2); }
.sum-block > .text-btn { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: calc(-1 * var(--s-3)); }
.ending { display: grid; gap: var(--s-3); padding-top: var(--s-5); }
.unsent-box { border: var(--edge-w) solid var(--c-window-edge); border-radius: var(--r-button); padding: var(--s-4); margin-top: var(--s-5); }
.unsent-box .btn { padding: 0 var(--s-4); min-height: var(--btn-h); }
.request-text { width: 100%; min-height: var(--text-area-h); padding: var(--s-3); background: var(--c-window-2); color: var(--c-on-window); border: var(--edge-w) solid var(--c-window-edge); border-radius: var(--r-button); font-size: var(--fs-label); line-height: var(--lh-label); resize: vertical; }
.copy-fallback { display: grid; gap: var(--s-2); }
.copy-fallback[hidden] { display: none; }

/* step 8: done */
.step-done { gap: var(--s-4); }
.done-mark { width: var(--done-mark); height: var(--done-mark); }
.done-mark circle { fill: none; stroke: var(--c-green); stroke-width: var(--check-stroke); }
.done-mark path { fill: none; stroke: var(--c-green); stroke-width: var(--check-stroke); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw var(--d-rec-in) var(--ease-out) var(--d-step-in) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.step-done h2 { font-size: var(--fs-done); line-height: var(--lh-done); }
.done-actions { display: grid; gap: var(--s-3); margin-top: var(--s-3); }

/* ---- forced colours (Windows high contrast): every chosen state keeps a shape, not only a fill */
@media (forced-colors: active) {
  .chip:has(input:checked), .choice:has(input:checked) { outline: var(--focus-w) solid Highlight; outline-offset: calc(-1 * var(--focus-w)); }
  .tick-wrap[data-state="all"] .tick-box, .tick-wrap[data-state="some"] .tick-box { background: Highlight; border-color: Highlight; forced-color-adjust: none; }
  .tick-some { background: HighlightText; forced-color-adjust: none; }
  .tick-check { stroke: HighlightText; }
  .tick-box { border-color: CanvasText; }
  .incl-check path, .mark path { stroke: CanvasText; }
  .row:has(.tick:focus-visible), .fl-row:has(.tick:focus-visible), .all-tile:has(.tick:focus-visible) { outline-color: Highlight; }
  .seg.is-current, .seg.is-passed { background: Highlight; }
  .jump[aria-current="true"] { border-bottom-color: Highlight; }
  .film-jumps button[aria-current="true"] { border-bottom-color: Highlight; }
  .rec-inner { border-left-color: CanvasText; }
  .loc-row[aria-current="true"] { box-shadow: inset var(--rule-w) 0 0 Highlight; }
}

/* ---- short screens (400% zoom, a phone on its side): the bars scroll with the page, the flow panel scrolls as one */
@media (max-height: 480px) {
  .top { position: static; }
  .thumb-bar { position: static; }
  html { scroll-padding: var(--s-2); }   /* room for a jumped heading's focus ring above it (recheck N3) */
  .flow { overflow-y: auto; }
  .flow[open] { display: block; }
  .flow-main { overflow: visible; }
  .flow-foot { position: static; }
  .flow .picks { position: fixed; }
}
