/* Custom UI-UX. One sample screen told two ways: dragged from cluttered to clean in the
   hero, then taken apart on scroll in the dark band. Everything inside a screen is sized from --u, one design unit of a canvas
   1040 wide (420 on phones), so the screens stay crisp and identical at every window. Motion is set by page-custom-ui-ux.js;
   with no script or reduced motion the band shows its finished picture and all its words. */

.cui-canvas { --dw: 1040; --u: calc(100cqw / var(--dw)); position: relative; container-type: inline-size; aspect-ratio: 1040 / 500; overflow: hidden; background: #fff; }
.cui-frame { --ink: #1d1d1f; --ink-2: #6e6e73; color: var(--ink); }
@media (max-width: 767px) { .cui-canvas { --dw: 420; aspect-ratio: 420 / 580; } }

/* ---------------------------------------------------------------- hero */
.cui-hero { padding-top: 72px; padding-bottom: 72px; }
.cui-hero .kit-lead { margin-top: 30px; }
.cui-hero .kit-hero-stage { margin-top: 52px; }
.cui-hero-rise { position: relative; }
@media (max-width: 767px) { .cui-hero { padding-top: 48px; padding-bottom: 40px; } .cui-hero .kit-hero-stage { margin-top: 36px; } }

/* ---------------------------------------------------------------- the screen built for the report */
.cl { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; color: #5c6068;
  font: 400 calc(11 * var(--u))/1.25 var(--font-text); --bg: 1; }
.cl-band { position: relative; }
.cl-band::before { content: ""; position: absolute; inset: 0; opacity: var(--bg); background: #f3f4f6; box-shadow: inset 0 -1px #dfe1e6; pointer-events: none; }
.cl-band > * { position: relative; }
.cl-menu { display: flex; gap: calc(16 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); white-space: nowrap; overflow: hidden; flex: none; }
.cl-tools { display: flex; gap: calc(6 * var(--u)); padding: calc(7 * var(--u)) calc(12 * var(--u)); flex: none; overflow: hidden; }
.cl-tool { flex: none; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: calc(4 * var(--u)); background: #fff; box-shadow: inset 0 0 0 1px #d4d7dc; }
.cl-tool:nth-child(3n)::after, .cl-tool:nth-child(3n + 1)::after, .cl-tool:nth-child(3n + 2)::after { content: ""; display: block; margin: 28%; height: 44%; border-radius: 2px; background: #b2b6be; }
.cl-tool:nth-child(3n + 1)::after { border-radius: 50%; background: #9fa4ad; }
.cl-tool:nth-child(4n)::after { background: #c8ccd2; height: 12%; margin-top: 44%; }
.cl-body { flex: 1; min-height: 0; display: grid; grid-template-columns: calc(128 * var(--u)) minmax(0, 1fr) calc(196 * var(--u)); }
.cl-rail { display: flex; flex-direction: column; gap: calc(9 * var(--u)); padding: calc(12 * var(--u)); overflow: hidden; }
.cl-rail::before { box-shadow: inset -1px 0 #dfe1e6; }
.cl-rail .on { color: #1d1d1f; font-weight: 500; }
.cl-rail span:nth-child(5)::after, .cl-rail span:nth-child(7)::after, .cl-rail span:nth-child(11)::after { content: "3"; display: inline-block; margin-left: calc(6 * var(--u)); padding: 0 calc(5 * var(--u)); border-radius: 99px; background: #e5484d; color: #fff; font-size: calc(9 * var(--u)); line-height: calc(14 * var(--u)); }
.cl-rail span:nth-child(7)::after { content: "12"; }
.cl-rail span:nth-child(11)::after { content: "!"; background: #f0a020; }
.cl-main { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.cl-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(6 * var(--u)); padding: calc(8 * var(--u)); flex: none; }
.cl-kpi { padding: calc(7 * var(--u)) calc(8 * var(--u)); border-radius: calc(5 * var(--u)); box-shadow: inset 0 0 0 1px #e1e3e8; min-width: 0; background: #fff; }
.cl-kpi small { display: block; font-size: calc(9.5 * var(--u)); color: #8a8e96; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.cl-kpi b { display: block; font: 500 calc(17 * var(--u))/1.15 var(--font-text); color: #3a3d43; }
.cl-tabs { display: flex; gap: calc(14 * var(--u)); padding: calc(6 * var(--u)) calc(10 * var(--u)); flex: none; white-space: nowrap; overflow: hidden; }
.cl-tabs .on { color: #1d1d1f; font-weight: 500; }
.cl-filters { display: flex; gap: calc(6 * var(--u)); padding: calc(6 * var(--u)) calc(8 * var(--u)); flex: none; overflow: hidden; }
.cl-filter { padding: calc(4 * var(--u)) calc(16 * var(--u)) calc(4 * var(--u)) calc(7 * var(--u)); border-radius: calc(4 * var(--u)); box-shadow: inset 0 0 0 1px #d4d7dc; white-space: nowrap; background: #fff; }
.cl-table { flex: 1; min-height: 0; font-size: calc(10.5 * var(--u)); overflow: hidden; }
.cl-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.25fr .9fr 1fr .7fr .7fr .7fr .8fr; gap: calc(6 * var(--u)); padding: calc(5.5 * var(--u)) calc(10 * var(--u)); white-space: nowrap; }
.cl-row:not(.cl-head) > span:first-child { color: #4a72b8; }
.cl-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #eceef1; opacity: var(--bg); }
.cl-row > span { overflow: hidden; }
.cl-head { font-weight: 500; color: #3a3d43; }
.cl-head::before { content: ""; position: absolute; inset: 0; background: #f7f8f9; opacity: var(--bg); z-index: -1; }
.cl-row .k { color: #1d1d1f; }
.cl-form { display: flex; flex-direction: column; gap: calc(5 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); overflow: hidden; }
.cl-form::before { box-shadow: inset 1px 0 #dfe1e6; background: #fafafb; }
.cl-form strong { font-weight: 500; color: #3a3d43; }
.cl-field i { display: block; height: calc(17 * var(--u)); margin-top: calc(3 * var(--u)); border-radius: calc(3 * var(--u)); background: #fff; box-shadow: inset 0 0 0 1px #d9dce1; }
.cl-btns { display: flex; flex-wrap: wrap; gap: calc(4 * var(--u)); margin-top: calc(2 * var(--u)); }
.cl-btns u { text-decoration: none; padding: calc(4 * var(--u)) calc(7 * var(--u)); border-radius: calc(4 * var(--u)); background: #e9ebee; font-size: calc(10 * var(--u)); }
.cl-sheet { position: absolute; left: calc(146 * var(--u)); top: calc(232 * var(--u)); width: calc(214 * var(--u)); border-radius: calc(6 * var(--u)); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #cfd2d8, 0 calc(10 * var(--u)) calc(26 * var(--u)) rgb(16 24 40 / 18%); transform: rotate(-1.4deg); }
.cl-sheet-bar { padding: calc(5 * var(--u)) calc(8 * var(--u)); background: #e6efe9; color: #3f6b4f; font-size: calc(10 * var(--u)); }
.cl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #dfe1e6; }
.cl-grid i { height: calc(15 * var(--u)); background: #fff; }
.cl-grid i:nth-child(1), .cl-grid i:nth-child(2), .cl-grid i:nth-child(3), .cl-grid i:nth-child(4), .cl-grid i:nth-child(5) { background: #f3f4f6; }
.cl-toast { position: absolute; left: calc(232 * var(--u)); top: calc(5 * var(--u)); padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: calc(6 * var(--u)); background: #fff7e6; color: #8a5a00; box-shadow: 0 0 0 1px #f0dcae, 0 calc(4 * var(--u)) calc(12 * var(--u)) rgb(16 24 40 / 12%); white-space: nowrap; }
.cl-toast b { font-weight: 600; }

/* ---------------------------------------------------------------- the same screen built for the work */
.cn { position: absolute; inset: 0; display: grid; grid-template-columns: 38% minmax(0, 1fr); background: #fff; color: #1d1d1f; }
.cn-after { padding: calc(40 * var(--u)) calc(30 * var(--u)); background: #f7f7f9; font: 400 calc(16 * var(--u))/1.3 var(--font-text); }
.cn-after small { display: block; font-size: calc(14 * var(--u)); color: #6e6e73; margin-bottom: calc(16 * var(--u)); }
.cn-after p { display: flex; justify-content: space-between; gap: calc(10 * var(--u)); margin: 0; padding: calc(14 * var(--u)) 0; box-shadow: 0 -1px #e8e8ec; }
.cn-after b { font-weight: 500; }
.cn-after span { color: #6e6e73; white-space: nowrap; }
.cn-next { position: relative; margin: calc(26 * var(--u)); border-radius: calc(22 * var(--u)); background: color-mix(in srgb, var(--kit-accent) 7%, #fff); }
.cn-text { padding: calc(38 * var(--u)) calc(40 * var(--u)); }
.cn-extra { position: absolute; left: calc(40 * var(--u)); right: calc(40 * var(--u)); bottom: calc(26 * var(--u)); display: flex; gap: calc(26 * var(--u)); padding-top: calc(18 * var(--u)); box-shadow: 0 -1px color-mix(in srgb, var(--kit-accent) 14%, #fff); font: 500 calc(15 * var(--u))/1 var(--font-text); color: color-mix(in srgb, var(--kit-accent) 85%, #1d1d1f); }
.cn-text .kit-pill { font-size: calc(14 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); }
.cn-name { display: inline-block; transform-origin: 0 0; }
.cn-who { margin: calc(22 * var(--u)) 0 0; font: 400 calc(58 * var(--u))/1.06 var(--font-display); letter-spacing: -.008em; color: #1d1d1f; }
.cn-what { margin: calc(14 * var(--u)) 0 0; font: 400 calc(19 * var(--u))/1.4 var(--font-text); color: #6e6e73; }
.cn-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: calc(34 * var(--u)); min-width: calc(240 * var(--u)); padding: calc(19 * var(--u)) calc(34 * var(--u)); border-radius: calc(99 * var(--u)); background: var(--kit-accent); color: #fff; font: 500 calc(19 * var(--u))/1 var(--font-text); }
@media (max-width: 767px) {
  .cn-after { padding: calc(24 * var(--u)) calc(14 * var(--u)); font-size: calc(13 * var(--u)); }
  .cn-after small { font-size: calc(12 * var(--u)); margin-bottom: calc(10 * var(--u)); }
  .cn-after p { flex-direction: column; gap: calc(2 * var(--u)); padding: calc(10 * var(--u)) 0; }
  .cn-after span { font-size: calc(12 * var(--u)); }
  .cn-next { margin: calc(12 * var(--u)); border-radius: calc(16 * var(--u)); }
  .cn-extra { display: none; }
  .cn-text { padding: calc(20 * var(--u)) calc(16 * var(--u)); }
  .cn-who { font-size: calc(36 * var(--u)); margin-top: calc(16 * var(--u)); }
  .cn-what { font-size: calc(14 * var(--u)); }
  .cn-text .kit-pill { font-size: calc(12 * var(--u)); }
  .cn-btn { min-width: 0; width: 100%; margin-top: calc(24 * var(--u)); padding: calc(15 * var(--u)) calc(10 * var(--u)); font-size: calc(15 * var(--u)); }

  /* a phone keeps only what it can show: three columns, the top rows, no side rail */
  .cl { font-size: calc(11.5 * var(--u)); }
  .cl-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .cl-rail { display: none; }
  .cl-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-kpi:nth-child(n + 4) { display: none; }
  .cl-row { grid-template-columns: 1fr 1.2fr .8fr; }
  .cl-row > span:nth-child(n + 3):not(:nth-child(6)) { display: none; }
  .cl-row:nth-child(n + 8) { display: none; }
  .cl-form { flex-direction: row; flex-wrap: wrap; gap: calc(6 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); }
  .cl-form::before { box-shadow: inset 0 1px #dfe1e6; }
  .cl-form strong { width: 100%; }
  .cl-form .cl-field { width: calc(50% - 3 * var(--u)); }
  .cl-form strong.cl-field { width: 100%; }
  .cl-form .cl-field:nth-of-type(n + 5), .cl-btns { display: none; }
  .cl-sheet { left: auto; top: auto; right: calc(10 * var(--u)); bottom: calc(112 * var(--u)); width: calc(150 * var(--u)); }
  .cl-grid i { height: calc(12 * var(--u)); }
  .cl-toast { left: auto; top: calc(4 * var(--u)); right: calc(8 * var(--u)); }
}

/* ---------------------------------------------------------------- the divider */
.cui-wipe { --x: 38%; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cui-wipe .cn { clip-path: inset(0 0 0 var(--x)); }
.cui-tag { position: absolute; top: calc(4 * var(--u)); padding: calc(7 * var(--u)) calc(13 * var(--u)); border-radius: 99px; font: 500 max(12px, calc(13 * var(--u)))/1 var(--font-text); white-space: nowrap;
  background: rgb(255 255 255 / 72%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--kit-line), 0 6px 18px -8px rgb(16 24 40 / 22%); color: #3a3d43; }
.cui-tag-l { left: calc(18 * var(--u)); }
.cui-tag-r { top: calc(42 * var(--u)); right: calc(44 * var(--u)); color: color-mix(in srgb, var(--kit-accent) 85%, #1d1d1f); }
.cui-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--kit-accent); box-shadow: 0 0 0 1px rgb(255 255 255 / 60%), 0 0 24px color-mix(in srgb, var(--kit-accent) 40%, transparent); pointer-events: none; }
.cui-knob { position: absolute; left: 50%; top: 40%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--kit-accent);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 75%), 0 10px 26px -6px rgb(16 24 40 / 40%); transition: transform .35s var(--kit-ease); }
.cui-knob svg { width: 24px; height: 24px; }
.cui-wipe:hover .cui-knob, .cui-wipe.is-drag .cui-knob { transform: scale(1.08); }
.cui-range:focus-visible ~ .cui-handle .cui-knob, .cui-wipe:has(.cui-range:focus-visible) .cui-knob { outline: 2px solid var(--ring); outline-offset: 5px; }
.cui-range { position: absolute; width: 1px; height: 1px; opacity: 0; left: 50%; top: 40%; margin: 0; pointer-events: none; }
.cui-hint { position: absolute; right: 42px; top: 40%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 10px 7px 14px; border-radius: 99px; font: italic 400 20px/1 var(--font-display); color: var(--kit-accent); white-space: nowrap; pointer-events: none;
  background: rgb(255 255 255 / 82%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--kit-line), 0 8px 18px -10px rgb(16 24 40 / 30%); transition: opacity .4s ease; }
.cui-hint svg { width: 22px; height: 13px; overflow: visible; }
.cui-wipe.is-touched .cui-hint { opacity: 0; }
@media (max-width: 767px) {
  .cui-tag, .cui-tag-r { top: auto; bottom: calc(14 * var(--u)); }
  .cui-tag-l { left: calc(12 * var(--u)); }
  .cui-tag-r { right: calc(20 * var(--u)); }
  .cui-knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .cui-hint { right: 30px; font-size: 16px; padding: 4px 8px 5px 10px; }
  .cui-hint svg { width: 16px; height: 10px; }
}

/* ---------------------------------------------------------------- the quiet failure */
.cui-quiet-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.cui-quiet-words .kit-p { font-size: 19px; line-height: 28px; max-width: 26em; margin-top: 16px; }
.cui-drawn { margin: 0; padding: 32px; border-radius: 24px; background: rgb(245 245 247 / 80%); }
.cui-drawn svg { display: block; width: 100%; height: auto; overflow: visible; }
.cui-drawn text { font: italic 400 21px var(--font-display); fill: var(--ink-2); stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .cui-drawn.kit-armed text { opacity: 0; transition: opacity .6s ease 2.2s; }
  .cui-drawn.kit-armed.is-in text { opacity: 1; }
}
@media (max-width: 1023px) { .cui-quiet-in { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 767px) { .cui-drawn { padding: 16px; border-radius: 20px; } .cui-drawn text { font-size: 26px; } }

/* ---------------------------------------------------------------- the dark band */
.cui-band { position: relative; background: #000; color: #f5f5f7; overflow: clip; --ink: #f5f5f7; --ink-2: #a1a1a6; padding-bottom: 72px; }
.cui-band-glow { position: absolute; inset: -38% -16%; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 44% at 50% 56%, color-mix(in srgb, var(--blue) 92%, #6f83ff), color-mix(in srgb, var(--blue) 34%, transparent) 58%, transparent 76%); }
.cui-band-head { position: relative; padding-top: 112px; padding-bottom: 48px; }
.cui-dim { color: #86868b; }
.cui-stage { position: relative; width: min(100% - 2 * var(--gx), 1360px); margin-inline: auto; display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: 44px; align-items: center; }
.cui-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.cui-cap { font: 400 34px/1.12 var(--font-display); margin: 0; color: var(--ink); text-wrap: balance; }
.cui-step .kit-p { color: var(--ink-2); margin-top: 12px; }
.cui-notes { list-style: none; margin: 16px 0 0; padding: 0; color: var(--ink-2); font: 400 15px/24px var(--font-text); }
.cui-show { position: relative; min-width: 0; isolation: isolate; }
.cui-show-in { position: relative; }
.cui-app { transform-origin: 0 50%; transform: scale(.82) translateX(-2%); transition: none; }
.cui-app .kit-screen-bar .kit-sample { margin-left: 2px; }             /* beside the title, so the phone never covers it */
.cui-scene { background: #fff; }
.cui-dots { display: none; }

/* the owner's screen, the picture this sequence ends on */
.ow { position: absolute; inset: 0; padding: calc(44 * var(--u)) calc(48 * var(--u)); background: #fff; color: #1d1d1f; }
.ow small { display: block; font: 400 calc(16 * var(--u))/1 var(--font-text); color: #6e6e73; }
.ow-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(20 * var(--u)); margin-top: calc(24 * var(--u)); padding-right: 16%; }
.ow-nums b { display: block; font: 400 calc(84 * var(--u))/1 var(--font-display); color: #1d1d1f; }
.ow-nums span { display: block; margin-top: calc(8 * var(--u)); font: 400 calc(16 * var(--u))/1.2 var(--font-text); color: #6e6e73; }
.ow-nums .is-late b { color: #c8402c; }
.ow-list { margin-top: calc(44 * var(--u)); padding-right: 16%; }
.ow-list p { display: grid; grid-template-columns: 22% minmax(0, 1fr) auto; gap: calc(12 * var(--u)); margin: 0; padding: calc(17 * var(--u)) 0; box-shadow: 0 -1px #ececf0; font: 400 calc(17 * var(--u))/1.25 var(--font-text); color: #6e6e73; }
.ow-list b { font-weight: 500; color: #1d1d1f; }
.ow-list em { font-style: normal; white-space: nowrap; }
.ow-list .is-late em { color: #c8402c; font-weight: 500; }

/* the worker's phone */
.cui-phone { position: absolute; right: 0; bottom: -2%; width: 25.5%; min-width: 150px; max-height: 96%; border-radius: 34px; padding: 7px; }
.cui-phone .kit-phone-screen { display: flex; flex-direction: column; border-radius: 27px; color: #1d1d1f; container-type: inline-size; }
.ph-top { display: flex; justify-content: flex-end; padding: 9cqw 8cqw 0; }
.ph-top .kit-sample { font-size: 11px; padding: 4px 8px; color: #6e6e73; }
.ph-in { flex: 1; padding: 10cqw 8cqw 0; }
.ph-in .kit-pill { font-size: max(10px, 5.4cqw); padding: 2.6cqw 4.6cqw; }
.ph-who { margin: 7cqw 0 0; font: 400 15cqw/1.08 var(--font-display); color: #1d1d1f; }
.ph-what { margin: 6cqw 0 0; font: 400 6.6cqw/1.45 var(--font-text); color: #6e6e73; }
.ph-btn { display: block; margin: 0 6cqw 8cqw; padding: 6.5cqw 0; text-align: center; border-radius: 99px; background: var(--kit-accent); color: #fff; font: 500 7.4cqw/1 var(--font-text); }

@media (max-width: 1023px) {
  .cui-stage { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cui-steps { gap: 28px; }
  .cui-cap { font-size: 30px; }
  .cui-show-in { max-width: 820px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .cui-band { padding-bottom: 48px; }
  .cui-band-head { padding-top: 72px; padding-bottom: 28px; }
  .cui-cap { font-size: 26px; }
  .cui-step .kit-p { font-size: 15px; line-height: 22px; margin-top: 6px; }
  .cui-app { transform: scale(.9); transform-origin: 0 0; }
  .ow { padding: calc(22 * var(--u)) calc(20 * var(--u)); }
  .ow small { font-size: calc(13 * var(--u)); }
  .ow-nums { padding-right: 0; gap: calc(8 * var(--u)); margin-top: calc(12 * var(--u)); }
  .ow-nums b { font-size: calc(54 * var(--u)); }
  .ow-nums span { font-size: calc(12 * var(--u)); }
  .ow-list { padding-right: 0; margin-top: calc(22 * var(--u)); }
  .ow-list p { grid-template-columns: minmax(0, 1fr) auto; font-size: calc(13 * var(--u)); padding: calc(11 * var(--u)) 0; gap: calc(2 * var(--u)) calc(8 * var(--u)); }
  .ow-list span { grid-row: 2; grid-column: 1; }
  .ow-list em { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .cui-pin:not(.is-live) .cui-show { margin-bottom: 72px; }
  .cui-phone { width: 38%; min-width: 0; right: -1%; bottom: -12%; max-height: none; border-radius: 26px; padding: 5px; }
  .cui-phone .kit-phone-screen { border-radius: 21px; }
}

/* live: the script pins the stage and drives every part; nothing below applies with motion off */
.cui-pin.is-live { height: 400vh; }
.cui-pin.is-live .cui-stage { position: sticky; top: var(--kit-nav); z-index: 41; height: calc(100vh - var(--kit-nav)); align-content: center; }   /* above the top blur, which would smear the words */
.cui-pin.is-live .cui-show-in { max-width: min(100%, calc((100vh - var(--kit-nav) - 72px) * 1040 / 540)); margin-left: auto; }
.cui-pin.is-live .cui-steps { display: block; position: relative; height: 230px; }
.cui-pin.is-live .cui-step { position: absolute; inset: 50% 0 auto; opacity: 0; filter: blur(8px); transform: translateY(calc(-50% + 18px)); transition: opacity .5s var(--kit-ease-soft), filter .5s var(--kit-ease-soft), transform .7s var(--kit-ease); pointer-events: none; }
.cui-pin.is-live .cui-step.is-on { opacity: 1; filter: none; transform: translateY(-50%); }
.cui-pin.is-live .cui-notes { display: none; }
.cui-pin.is-live .cui-dots { position: absolute; left: 0; bottom: 36px; display: flex; gap: 8px; }
.cui-pin.is-live .cui-dots i { width: 20px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 22%); transition: background .4s ease; }
.cui-pin.is-live .cui-dots i.is-on { background: #fff; }
.cui-pin.is-live .ow > *, .cui-pin.is-live .cn > * { will-change: opacity, transform; }
.cui-pin.is-live .cui-app { transform: none; will-change: transform; }
.cui-pin.is-live .cui-phone { will-change: transform, opacity; }
.cui-pin.is-live .cl-tool, .cui-pin.is-live .cl-kpi, .cui-pin.is-live .cl-sheet, .cui-pin.is-live .cl-toast { will-change: transform, opacity; }
.cui-pin.is-live .cui-tag { display: none; }
.cui-pin.is-live .cn { background: transparent; pointer-events: none; }
.cui-pin.is-live .cn-next { background: transparent; }
.cui-pin.is-live .cn-after { background: transparent; }
.cui-grow { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: color-mix(in srgb, var(--kit-accent) 7%, #fff); will-change: transform; }
.cui-col { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: #f7f7f9; }
.cl-row.is-next.is-lit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--kit-accent) 12%, #fff); }
.cui-mark { position: absolute; pointer-events: none; z-index: 6; }
.cui-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cui-mark path { fill: none; stroke: var(--kit-accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cui-mark span { position: absolute; padding: 5px 11px 6px; border-radius: 99px; background: #fff; color: var(--kit-accent); font: italic 400 17px/1.1 var(--font-display); white-space: nowrap; box-shadow: 0 0 0 1px color-mix(in srgb, var(--kit-accent) 30%, #fff), 0 8px 18px -8px rgb(16 24 40 / 30%); opacity: 0; }
@media (max-width: 1023px) {
  .cui-pin.is-live .cui-steps { height: 128px; }
  .cui-pin.is-live .cui-step { inset: 0 0 auto; transform: translateY(18px); }
  .cui-pin.is-live .cui-step.is-on { transform: none; }
  .cui-pin.is-live .cui-dots { display: none; }
  .cui-pin.is-live .cui-show-in { max-width: min(100%, calc((100vh - var(--kit-nav) - 200px) * 1040 / 540)); margin-inline: auto; }
  .cui-mark span { font-size: 15px; }
}
@media (max-width: 767px) {
  .cui-pin.is-live { height: 400svh; }
  .cui-pin.is-live .cui-stage { height: calc(100svh - var(--kit-nav)); gap: 12px; }
  .cui-pin.is-live .cui-steps { height: 92px; }
  .cui-pin.is-live .cui-show-in { max-width: min(100%, calc((100svh - var(--kit-nav) - 136px) * 420 / 620)); }
  .cui-mark span { font-size: 13px; padding: 3px 8px 4px; }
  .cui-mark path { stroke-width: 1.75; }
}

/* ---------------------------------------------------------------- three screens */
.cui-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.cui-tile { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 36px 36px 0; border-radius: 28px; overflow: hidden; background: #f5f5f7; isolation: isolate; }
.cui-tile::before { content: ""; position: absolute; inset: auto -10% -24% -10%; height: 66%; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 50% 70%, var(--tile-glow), transparent 74%); }
.cui-t-reach { grid-column: span 7; --tile-glow: color-mix(in srgb, var(--mk-mkt) 30%, transparent); }
.cui-t-post { grid-column: span 5; --tile-glow: color-mix(in srgb, var(--mk-mkt-2) 28%, transparent); }
.cui-t-score { grid-column: span 12; --tile-glow: color-mix(in srgb, var(--mk-ops) 26%, transparent); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; padding-top: 44px; }
.cui-t-score .cui-mini { display: block; }
.cui-tile .kit-h3 { font-size: 30px; line-height: 36px; }
.cui-tile .kit-h3 a { text-decoration: none; }
.cui-tile .kit-h3 a:hover .app-word { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cui-tile header .kit-p { margin-top: 6px; }
.cui-mini { flex: 1; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; --ink: #1d1d1f; --ink-2: #6e6e73; color: var(--ink); font-family: var(--font-text); }
.cui-mini:hover { --ty: -4px; }
.cui-sample-note { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font: 400 14px/20px var(--font-text); color: var(--ink-2); }

/* Reachly */
.re { flex: 1; display: flex; flex-direction: column; padding: 24px 26px 28px; min-height: 336px; }
.re-count { margin: 0; font: 400 19px/1.1 var(--font-text); color: #6e6e73; display: flex; align-items: baseline; gap: 10px; }
.re-n { position: relative; display: inline-block; width: 1.02em; font: 400 58px/1 var(--font-display); color: #1d1d1f; }
.re-n b { font-weight: 400; font-style: normal; }
.re-n .b { position: absolute; left: 0; top: 0; opacity: 0; }
.re-cards { flex: 1; display: grid; position: relative; margin-top: 18px; }
.re-card { display: flex; flex-direction: column; padding: 18px 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--kit-line); background: #fff; }
.re-card small { display: block; font-size: 13px; line-height: 18px; color: #6e6e73; }
.re-card p { margin: 6px 0 16px; font-size: 17px; line-height: 24px; color: #1d1d1f; }
.re-card > div { display: flex; gap: 8px; margin-top: auto; }
.re-card span { padding: 9px 18px; border-radius: 99px; font: 500 14px/1 var(--font-text); }
.re-ok { background: var(--mk-mkt); color: #fff; }
.re-edit { box-shadow: inset 0 0 0 1px #d2d2d7; color: #1d1d1f; }
.re-card.b { position: absolute; inset: 0; opacity: 0; }

/* Postwise */
.po { list-style: none; margin: 0; padding: 8px 22px 14px; }
.po li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; box-shadow: 0 1px #f0f0f3; }
.po li:last-child { box-shadow: none; }
.po-pic { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #f4dfc4, #d99a63); }
.po li:nth-child(2) .po-pic { background: linear-gradient(135deg, #f3e6ae, #cf9a3e); }
.po li:nth-child(3) .po-pic { background: linear-gradient(135deg, #e0d3c6, #8c6f58); }
.po li:nth-child(4) .po-pic { background: linear-gradient(135deg, #cfe0e6, #5d8797); }
.po li:nth-child(5) .po-pic { background: linear-gradient(135deg, #f0c9bf, #c8654b); }
.po span { font: 500 15px/20px var(--font-text); color: #1d1d1f; white-space: nowrap; overflow: hidden; }
.po small { display: block; font: 400 13px/18px var(--font-text); color: #6e6e73; }
.po-sw { position: relative; display: block; width: 42px; height: 25px; border-radius: 99px; background: #dcdce0; isolation: isolate; }
.po-sw::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--mk-mkt-2); opacity: 0; }
.po-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 28%); }
.po-sw.on::before { opacity: 1; }
.po-sw.on::after { transform: translateX(17px); }

/* Score */
.sc { padding: 14px 28px 26px; }
.sc-l { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 13px 0; box-shadow: 0 1px #f0f0f3; font: 400 16px/22px var(--font-text); color: #6e6e73; }
.sc-l b { font: 500 16px/22px var(--mono); color: #1d1d1f; font-variant-numeric: tabular-nums; }
.sc-total { box-shadow: none; color: #1d1d1f; }
.sc-total b { font-size: 20px; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.sc-foot small { font-size: 13px; line-height: 18px; color: #6e6e73; }
.sc-send { flex: none; padding: 11px 26px; border-radius: 99px; background: var(--mk-ops); color: #fff; font: 500 15px/1 var(--font-text); }

@media (max-width: 1023px) {
  .cui-t-reach, .cui-t-post { grid-column: span 12; }
  .cui-t-score { grid-template-columns: 1fr; gap: 24px; }
  .re { min-height: 0; }
}
@media (max-width: 767px) {
  .cui-tiles { gap: 16px; }
  .cui-tile, .cui-t-score { padding: 24px 16px 0; border-radius: 22px; gap: 20px; }
  .cui-tile .kit-h3 { font-size: 26px; line-height: 32px; }
  .re { padding: 18px 16px 20px; }
  .re-n { font-size: 46px; }
  .re-card { padding: 14px; }
  .re-card p { font-size: 15px; line-height: 21px; }
  .po { padding: 4px 14px 10px; }
  .sc { padding: 8px 16px 18px; }
  .sc-l { font-size: 14px; }
  .sc-l b { font-size: 14px; }
  .sc-foot small { font-size: 12px; }
}

/* the loops run only while on screen, and rest on the finished picture */
@media (prefers-reduced-motion: no-preference) {
  .is-looping .re-n .a { animation: cui-re-out 9s infinite both; }
  .is-looping .re-n .b { animation: cui-re-in 9s infinite both; }
  .is-looping .re-card.a { animation: cui-card-out 9s infinite both; }
  .is-looping .re-card.b { animation: cui-card-in 9s infinite both; }
  .is-looping .re-card.a .re-ok { animation: cui-press 9s infinite both; }
  @keyframes cui-re-out { 0%, 36% { opacity: 1; transform: none; } 42%, 92% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: none; } }
  @keyframes cui-re-in { 0%, 38% { opacity: 0; transform: translateY(10px); } 46%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(10px); } }
  @keyframes cui-card-out { 0%, 34% { opacity: 1; transform: none; } 44%, 92% { opacity: 0; transform: translateY(-18px) scale(.98); } 100% { opacity: 1; transform: none; } }
  @keyframes cui-card-in { 0%, 38% { opacity: 0; transform: translateY(-20px) rotate(-.6deg); } 50%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
  @keyframes cui-press { 0%, 26% { transform: none; } 30% { transform: scale(.93); } 34%, 100% { transform: none; } }

  .is-looping .po-sw.s1::before { animation: cui-sw-a 8s infinite both; }
  .is-looping .po-sw.s1::after { animation: cui-sw-kn-a 8s infinite both; }
  .is-looping .po-sw.s2::before { animation: cui-sw-b 8s infinite both; }
  .is-looping .po-sw.s2::after { animation: cui-sw-kn-b 8s infinite both; }
  @keyframes cui-sw-a { 0%, 26% { opacity: 0; } 30%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
  @keyframes cui-sw-kn-a { 0%, 26% { transform: none; } 30%, 90% { transform: translateX(17px); } 96%, 100% { transform: none; } }
  @keyframes cui-sw-b { 0%, 52% { opacity: 0; } 56%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
  @keyframes cui-sw-kn-b { 0%, 52% { transform: none; } 56%, 90% { transform: translateX(17px); } 96%, 100% { transform: none; } }

  .is-looping .sc-l { animation: cui-line 9s infinite both; }
  .is-looping .sc-l:nth-child(2) { animation-delay: .5s; }
  .is-looping .sc-l:nth-child(3) { animation-delay: 1s; }
  .is-looping .sc-l:nth-child(4) { animation-delay: 1.5s; }
  .is-looping .sc-send { animation: cui-send 9s infinite both; }
  @keyframes cui-line { 0% { opacity: 0; transform: translateY(8px); } 8%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-4px); } }
  @keyframes cui-send { 0%, 42% { transform: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--mk-ops) 0%, transparent); } 54% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--mk-ops) 22%, transparent); } 68%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mk-ops) 0%, transparent); } }
}

/* ---------------------------------------------------------------- next and close */
.cui-next { padding-top: 16px; }
.cui-close-wrap { padding-top: 72px; }
.cui-close-wrap .spine-close { align-items: flex-start; text-align: left; }
.cui-close-wrap .spine-close .cluster { justify-content: flex-start; }
.cui-close-wrap .spine-close .kit-lead { margin: 0; max-width: 34em; }
.cui-close-wrap .spine-close > .small { margin: 0; }
@media (max-width: 767px) { .cui-close-wrap { padding-top: 48px; } }

/* the bar stays solid white above the black band on this light page */
.nav::before { background: #fff; }
