/* ==========================================================================
   Hero demos — 7s auto-playing loops behind the #top hero panel.
   Shared: .sd-host, .sd stage, .sd__veil, .sd__cursor, .sd__ripple, pause class.
   1. Scheduler demo (.sd__*)    2. Quote builder demo (.qd__*)
   3. Hero layout (.sd-split, .sd--window) — title and subtitle on top, demo window full width below
   4. Website generator demo (.wd__*) — form → dot → finished website
   5. Booking form demo (.bd__*) — customer fills the booking form, price builds
   6. Revenue recovery wall (.rw__*) — panels drifting diagonally in a frame
   7. Call route demo (.cd__*) — a call dot traces its route, then the call log (20s, zoomed)
   8. Recurring calendar crawl (.rc__*) — months recede, visits pop onto them
   9. Chat demo (.ch__*) — open Messages, pick a thread, send a message with an emoji
  10. Inventory demo (.iv__*) — parts into a work order, Complete, the explorer morphs in
  11. Notifications demo (.nt__*) — a phone receives a job alert and a quote acceptance with a photo
  12. Completion cascade demo (.cc__*) — Mark Complete on a phone, then a pan across five result panels
  13. Work order to invoice demo (.wo__*) — Mark Complete on a phone, the record flips from work order to invoice
  14. Payment demo (.pd__*) — card typed on the booking payment page, then saved on the customer profile
  15. QuickBooks sync demo (.qb__*) — records stream from the workspace to QuickBooks, a few flow back
  16. Financial reports demo (.fi__*) — switch to Forecasted Sales, tick Commercial, bars reload, click a bar for details
  17. Automation run demo (.au__*) — job rescheduled → push to the employee's phone, swing round to the customer's phone for a text
  18. Client portal quote approval demo (.cp__*) — open a pending quote, scroll to Quote Approval, approve, status flips to Approved
  19. Customer profile tour (.cm__*) — shortcut buttons drop in, then pan to contact info, map, card & properties, note
  20. Customer survey demo (.sv__*) — thank-you text, tap the link, five stars ×3 and a comment, then the review page
  21. Employee portal demo (.ep__*) — today's jobs swipe up, open one, send On My Way, swing to the customer's phone
  22. Payment terms demo (.pt__*) — pick a payment term on a work order, save, then the client pays early on the payment request
  23. Work order build demo (.wb__*) — a phone call fills in a work order line by line, state tax from the US job address, saved before the call ends
  24. Mobile app install demo (.pw__*) — add the app to the home screen from the browser menu, tap the new icon, the app opens full screen
   --------------------------------------------------------------------------
   1. Scheduler demo
   Sequence: pick a job → it lifts → click a tech's name → job copies to their
   lane + toast → click a customer name → appointment panel slides in → reset.
   Every animated piece shares one 7s clock, so keep --sd-loop in sync.
   Base styles = the idle board, so reduced-motion users get a still frame.
   ========================================================================== */ 

.sd-host {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sd-host > :not(.sd) {
  position: relative;
  z-index: 2;
}

/* ---- Stage ---- */
.sd {
  --sd-loop: 7s;
  --sd-job-pink: #D994B0;
  --sd-job-pink-hot: #CF6189;
  --sd-job-blue: #7A89B8;
  --sd-head: #9AA0AE;
  --sd-head-dark: #6E6E72;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  text-align: left;
}
.sd__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 44% 58% at 50% 48%, rgba(250,250,249,.96) 0%, rgba(250,250,249,.9) 45%, rgba(250,250,249,.55) 78%, rgba(250,250,249,.25) 100%),
    linear-gradient(to bottom, rgba(250,250,249,.35), rgba(250,250,249,0) 30%, rgba(250,250,249,0) 75%, rgba(250,250,249,.85));
}

/* ---- Board (fixed 1100px design, centred and cropped by the panel) ---- */
.sd__board {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 1100px;
  height: 560px;
  margin-left: -550px;
  font: var(--type-caption);
  color: var(--text-secondary);
  opacity: .6;
}

/* group row */
.sd__group {
  position: absolute;
  top: 0;
  height: 24px;
  background: var(--sd-head);
  color: #fff;
  font: 600 12px/24px var(--font-display);
  text-align: center;
}
.sd__group--a { left: 60px; width: 258px; }
.sd__group--b { left: 320px; width: 518px; }

/* lanes */
.sd__lane {
  position: absolute;
  top: 26px;
  bottom: 0;
  width: 128px;
  background: rgba(255,255,255,.55);
  border-left: 1px solid var(--border-hairline);
}
.sd__lane--0 { left: 60px; }
.sd__lane--1 { left: 190px; }
.sd__lane--2 { left: 320px; }
.sd__lane--3 { left: 450px; }
.sd__lane--4 { left: 580px; }
.sd__lane--5 { left: 710px; }
.sd__lane--6 { left: 840px; }
.sd__lane--7 { left: 970px; }

.sd__name {
  height: 32px;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font: 500 11.5px/32px var(--font-text);
  text-align: center;
  white-space: nowrap;
}
.sd__loc {
  height: 22px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface-sunken);
  font: 400 10px/20px var(--font-text);
  text-align: center;
  color: var(--text-muted);
}
/* shift shading, 8:00–4:30 */
.sd__shift {
  position: absolute;
  left: 0;
  right: 0;
  top: 104px;
  height: 391px;
  background: rgba(228,235,253,.45);
}

/* hour grid */
.sd__hours {
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(var(--border-hairline) 1px, transparent 1px);
  background-size: 100% 46px;
}
.sd__time {
  position: absolute;
  left: 0;
  width: 54px;
  text-align: right;
  font: 400 10.5px/1 var(--font-text);
  color: var(--text-muted);
}
.sd__time--7 { top: 80px; }
.sd__time--8 { top: 126px; }
.sd__time--9 { top: 172px; }
.sd__time--10 { top: 218px; }
.sd__time--11 { top: 264px; }
.sd__time--12 { top: 310px; }
.sd__time--1 { top: 356px; }
.sd__time--2 { top: 402px; }
.sd__time--3 { top: 448px; }
.sd__time--4 { top: 494px; }

/* jobs — top = 26 (lane offset) is already applied by the lane, so job tops are lane-relative */
.sd__job {
  position: absolute;
  left: 1px;
  right: 1px;
  padding: 4px 6px;
  border-radius: 2px;
  color: #fff;
  font: 500 10.5px/1.2 var(--font-text);
  white-space: nowrap;
  overflow: hidden;
}
.sd__job--pink { background: var(--sd-job-pink); }
.sd__job--blue { background: var(--sd-job-blue); }
.sd__job--am { top: 127px; height: 69px; }   /* 8:30–10:00 */
.sd__job--amlong { top: 127px; height: 92px; } /* 8:30–10:30 */
.sd__job--mid { top: 219px; height: 184px; }  /* 10:30–2:30 */
.sd__job--late { top: 242px; height: 92px; }  /* 11:00–1:00 */
.sd__job--pm { top: 403px; height: 92px; }    /* 2:30–4:30 */
.sd__job-name { text-decoration: underline; text-decoration-color: rgba(255,255,255,0); text-underline-offset: 2px; }

/* ---- Animated pieces ---- */
.sd__job--pick {
  z-index: 2;
  animation: sdPick var(--sd-loop) infinite;
}
.sd__job--copy {
  opacity: 0;
  animation: sdCopy var(--sd-loop) infinite;
}
.sd__name--target {
  animation: sdTarget var(--sd-loop) infinite;
}
.sd__job--open .sd__job-name {
  animation: sdLink var(--sd-loop) infinite;
}

.sd__cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform-origin: 2px 2px;
  filter: drop-shadow(0 2px 3px rgba(16,16,19,.3));
  animation: sdCursor var(--sd-loop) infinite;
}
.sd__ripple {
  position: absolute;
  z-index: 4;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid var(--pg-brand-500);
  opacity: 0;
}
.sd__ripple--1 { left: 872px; top: 166px; animation: sdRipple1 var(--sd-loop) infinite; }
.sd__ripple--2 { left: 1036px; top: 44px; animation: sdRipple2 var(--sd-loop) infinite; }
.sd__ripple--3 { left: 92px; top: 166px; animation: sdRipple3 var(--sd-loop) infinite; }

/* toast (anchored to the stage, top-right) */
.sd__toast {
  position: absolute;
  top: 74px;
  left: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 3px solid var(--status-success-fg);
  background: #9BE6A3;
  color: #0E3B1C;
  font: 500 12px/1.2 var(--font-text);
  opacity: 0;
  animation: sdToast var(--sd-loop) infinite;
}
.sd__toast-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--status-success-fg);
  flex: 0 0 auto;
}

/* appointment side panel (anchored to the stage, right edge) */
.sd__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 270px;
  background: var(--surface-card);
  box-shadow: -14px 0 34px -18px rgba(16,16,19,.35);
  transform: translateX(120%);
  animation: sdPanel var(--sd-loop) infinite;
  font: 400 11.5px/1.3 var(--font-text);
  color: var(--text-primary);
}
.sd__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  font: 400 17px/1 var(--font-display);
}
.sd__panel-band {
  position: relative;
  height: 64px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #171B2E 55%, #3D4356);
  color: #fff;
}
.sd__panel-band small {
  display: block;
  font: 500 9.5px/1.2 var(--font-text);
  opacity: .8;
}
.sd__panel-band strong {
  font: 600 13.5px/1.4 var(--font-display);
}
.sd__avatar {
  position: absolute;
  right: 16px;
  bottom: 0;
  width: 44px;
  height: 52px;
  border-radius: 22px 22px 0 0;
  background: #1C2A55;
}
.sd__panel-rows {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  color: var(--pg-brand-600);
}
.sd__panel-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sd__panel-row--plain { color: var(--text-primary); }
.sd__panel-row .ps-icon { color: var(--text-primary); }
.sd__panel-btns {
  display: grid;
  gap: 7px;
  padding: 2px 22px 14px;
}
.sd__panel-btn {
  padding: 7px;
  border-radius: 2px;
  background: #5A6270;
  color: #fff;
  text-align: center;
  font: 500 11px/1 var(--font-text);
}
.sd__map {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background:
    radial-gradient(circle at 30% 60%, #CFE7D3 0 18%, transparent 19%),
    radial-gradient(circle at 70% 30%, #D9EEDC 0 22%, transparent 23%),
    linear-gradient(135deg, #9FD3E3 0 38%, #BFE3C6 38%);
}
.sd__map-pin {
  position: absolute;
  left: 52%;
  top: 38%;
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  background: var(--status-danger-fg);
  transform: rotate(-45deg);
}

/* ---- Keyframes (percent of the 7s loop; 1% = 70ms) ---- */
@keyframes sdCursor {
  0%   { opacity: 0; transform: translate(640px, 470px) scale(1); }
  6%   { opacity: 1; transform: translate(640px, 470px) scale(1); }
  17%  { opacity: 1; transform: translate(870px, 164px) scale(1); }
  19%  { transform: translate(870px, 164px) scale(.82); }
  21%  { transform: translate(870px, 164px) scale(1); }
  33%  { transform: translate(1034px, 42px) scale(1); }
  35%  { transform: translate(1034px, 42px) scale(.82); }
  37%  { transform: translate(1034px, 42px) scale(1); }
  54%  { transform: translate(90px, 164px) scale(1); }
  56%  { transform: translate(90px, 164px) scale(.82); }
  58%  { opacity: 1; transform: translate(90px, 164px) scale(1); }
  86%  { opacity: 1; transform: translate(90px, 164px) scale(1); }
  94%  { opacity: 0; transform: translate(640px, 470px) scale(1); }
  100% { opacity: 0; transform: translate(640px, 470px) scale(1); }
}
@keyframes sdRipple1 {
  0%, 18% { opacity: 0; transform: scale(.4); }
  19%     { opacity: .9; transform: scale(.4); }
  25%     { opacity: 0; transform: scale(1.6); }
  100%    { opacity: 0; transform: scale(1.6); }
}
@keyframes sdRipple2 {
  0%, 34% { opacity: 0; transform: scale(.4); }
  35%     { opacity: .9; transform: scale(.4); }
  41%     { opacity: 0; transform: scale(1.6); }
  100%    { opacity: 0; transform: scale(1.6); }
}
@keyframes sdRipple3 {
  0%, 55% { opacity: 0; transform: scale(.4); }
  56%     { opacity: .9; transform: scale(.4); }
  62%     { opacity: 0; transform: scale(1.6); }
  100%    { opacity: 0; transform: scale(1.6); }
}
@keyframes sdPick {
  0%, 19%  { background: var(--sd-job-pink); transform: none; box-shadow: none; }
  22%, 35% { background: var(--sd-job-pink-hot); transform: translate(10px, -6px) scale(1.04); box-shadow: -6px 10px 18px rgba(16,16,19,.32); }
  39%, 100% { background: var(--sd-job-pink); transform: none; box-shadow: none; }
}
@keyframes sdTarget {
  0%, 35%  { background: var(--surface-sunken); color: var(--text-secondary); }
  37%, 86% { background: var(--sd-head-dark); color: #fff; }
  92%, 100% { background: var(--surface-sunken); color: var(--text-secondary); }
}
@keyframes sdCopy {
  0%, 36%  { opacity: 0; transform: translateY(-6px) scale(.96); }
  40%, 86% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
@keyframes sdToast {
  0%, 37%  { opacity: 0; transform: translateY(-8px); }
  40%, 54% { opacity: 1; transform: none; }
  58%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes sdLink {
  0%, 53%  { text-decoration-color: rgba(255,255,255,0); }
  55%, 62% { text-decoration-color: #fff; }
  66%, 100% { text-decoration-color: rgba(255,255,255,0); }
}
@keyframes sdPanel {
  0%, 57%  { transform: translateX(120%); }
  63%, 86% { transform: none; }
  93%, 100% { transform: translateX(120%); }
}

/* ---- Paused while scrolled out of view (class set by scheduler-demo.js).
   !important: a few demo rules are more specific than this one and set the
   animation shorthand, which put their play-state back to running. ---- */
.sd.is-paused,
.sd.is-paused *,
.sd.is-paused *::before,
.sd.is-paused *::after { animation-play-state: paused !important; }

/* ---- Restart from the top: scheduler-demo.js rewinds the animations
   directly; this class is only its fallback for browsers without
   getAnimations(). Keep the name specific to the demos: a generic one
   (.is-hidden) can be hidden by the page's own stylesheet. ---- */
.sd.sd-rewind,
.sd.sd-rewind *,
.sd.sd-rewind *::before,
.sd.sd-rewind *::after { animation: none !important; }

/* ---- Reduced motion: every demo shows its still base frame ---- */
@media (prefers-reduced-motion: reduce) {
  .sd,
  .sd * { animation: none !important; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .sd__board { transform: scale(.82); transform-origin: 50% 0; }
  .sd__panel { width: 230px; }
}
@media (max-width: 760px) {
  .sd__panel, .sd__toast { z-index: 2; }
}
@media (max-width: 620px) {
  .sd__board { top: 14px; transform: scale(.62); }
  .sd__panel { width: 190px; font-size: 10.5px; }
  .sd__panel-btns { display: none; }
  .sd__toast { top: 54px; left: 10px; padding: 8px 12px; font-size: 11px; }
  .sd__veil {
    background:
      radial-gradient(ellipse 70% 60% at 50% 50%, rgba(250,250,249,.96) 0%, rgba(250,250,249,.9) 55%, rgba(250,250,249,.6) 100%);
  }
}


/* ==========================================================================
   2. Quote builder demo — 11s loop (a plumbing quote)
   Sequence: open Primary Service → pick Water Heater Replacement (20%) →
   add Expansion Tank Install (30%) and Haul-Away & Disposal (38%) → open
   the Materials item picker (46%), the price book opens above it → pick
   3/4" Ball Valve (55%), its unit price fills in from the price book and the
   quantity sets to 1 → change the quantity to 2 (63–65%) → the summary
   totals tick up at each step → Save Quote (76%) clears the form +
   "Quote saved" pop-up → loop.
   Timeline is in % of 11s (1% = 110ms). Base styles = the empty quote.
   ========================================================================== */

.sd--quote {
  --qd-loop: 11s;
  --qd-accent: #10B8EC;
  --qd-accent-soft: #E8F7FD;
  --qd-line: #D3D3D3;
}

.qd__board {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 1100px;
  height: 560px;
  margin-left: -550px;
  font: 400 11.5px/1.3 var(--font-text);
  color: var(--text-primary);
  opacity: .6;
}

/* ---- Cards ---- */
.qd__card {
  position: absolute;
  background: var(--surface-card);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(16,16,19,.06), 0 6px 16px -10px rgba(16,16,19,.18);
}
.qd__card--primary { left: 0; top: 0; width: 440px; height: 92px; }
.qd__card--extras { left: 0; top: 102px; width: 440px; height: 216px; }
.qd__card--mat { left: 0; top: 328px; width: 440px; height: 130px; }
.qd__card--summary { left: 790px; top: 0; width: 310px; height: 292px; }

.qd__title {
  padding-top: 14px;
  font: 600 12px/1 var(--font-display);
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}
.qd__optional {
  display: block;
  margin-top: 4px;
  font: italic 400 9.5px/1 var(--font-text);
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ---- Primary service select + dropdown ---- */
.qd__select {
  position: absolute;
  left: 20px;
  top: 46px;
  width: 400px;
  height: 34px;
  border: 1px solid var(--qd-line);
  border-radius: 3px;
  background: var(--surface-card);
  animation: qdFocusSelect var(--qd-loop) infinite;
}
.qd__select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  transform: rotate(45deg);
}
.qd__select-text {
  position: absolute;
  left: 11px;
  top: 10px;
  white-space: nowrap;
}
.qd__select-text--empty { animation: qdShowFirst var(--qd-loop) infinite; }
.qd__select-text--picked {
  opacity: 0;
  font-weight: 600;
  animation: qdShowPicked var(--qd-loop) infinite;
}

.qd__menu {
  position: absolute;
  left: 20px;
  top: 80px;
  z-index: 3;
  width: 400px;
  padding: 4px 0;
  border: 1px solid var(--qd-line);
  background: var(--surface-card);
  box-shadow: 0 10px 24px -10px rgba(16,16,19,.3);
  opacity: 0;
  transform: translateY(-4px);
  animation: qdMenu var(--qd-loop) infinite;
}
.qd__option {
  display: flex;
  justify-content: space-between;
  padding: 6px 11px;
}
.qd__option span { color: var(--text-secondary); }
.qd__option--hot { animation: qdOptionHot var(--qd-loop) infinite; }

/* ---- Additional service tiles ---- */
.qd__tile {
  position: absolute;
  width: 198px;
  height: 52px;
  padding: 8px 10px 0 40px;
  border: 1px solid var(--qd-line);
  border-radius: 3px;
  background: var(--surface-card);
}
.qd__tile--c1 { left: 16px; }
.qd__tile--c2 { left: 226px; }
.qd__tile--r1 { top: 42px; }
.qd__tile--r2 { top: 100px; }
.qd__tile--r3 { top: 158px; }
.qd__tile-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qd__price {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: 10.5px;
}
.qd__mark {
  position: absolute;
  left: 13px;
  top: 17px;
  width: 16px;
  height: 16px;
}
/* plus drawn in CSS so it needs no icon download */
.qd__mark--plus::before,
.qd__mark--plus::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 4px;
  height: 16px;
  background: var(--text-primary);
}
.qd__mark--plus::after { transform: rotate(90deg); }
.qd__mark--check {
  opacity: 0;
  border-radius: 50%;
  background: var(--qd-accent);
}
.qd__mark--check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.qd__tile--pick1 { animation: qdTile1 var(--qd-loop) infinite; }
.qd__tile--pick2 { animation: qdTile2 var(--qd-loop) infinite; }
.qd__tile--pick1 .qd__mark--plus { animation: qdHide1 var(--qd-loop) infinite; }
.qd__tile--pick1 .qd__mark--check { animation: qdShow1 var(--qd-loop) infinite; }
.qd__tile--pick2 .qd__mark--plus { animation: qdHide2 var(--qd-loop) infinite; }
.qd__tile--pick2 .qd__mark--check { animation: qdShow2 var(--qd-loop) infinite; }
/* service icon in place of the + mark; when the add-on is picked the icon
   fills with the accent and the ✓ shows as a small badge on its corner */
.qd__tile:has(.qd__ico) { padding-left: 56px; }
.qd__tile:has(.qd__ico) .qd__mark--check {
  left: 32px;
  top: 6px;
  z-index: 1;
  box-shadow: 0 0 0 2px #fff;
}
.qd__ico {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #E8F7FD;
  color: #0B7FA6;
}
.qd__ico svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qd__tile--pick1 .qd__ico { animation: qdIco1 var(--qd-loop) infinite; }
.qd__tile--pick2 .qd__ico { animation: qdIco2 var(--qd-loop) infinite; }

/* ---- Materials, picked from the price book ---- */
.qd__mlabel {
  position: absolute;
  top: 40px;
  font-size: 10.5px;
  color: var(--text-secondary);
}
.qd__mlabel--item { left: 16px; }
.qd__mlabel--qty { left: 246px; }
.qd__mlabel--price { left: 316px; }
.qd__mfield {
  position: absolute;
  top: 56px;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid var(--qd-line);
  border-radius: 3px;
  background: var(--surface-card);
  white-space: nowrap;
  overflow: hidden;
}
.qd__mfield--item { left: 16px; width: 220px; animation: qdFocusMat var(--qd-loop) infinite; }
.qd__mfield--item::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  transform: rotate(45deg);
}
.qd__mfield--qty { left: 246px; width: 60px; animation: qdFocusQty var(--qd-loop) infinite; }
.qd__mfield--price { left: 316px; width: 84px; animation: qdPriceFill var(--qd-loop) infinite; }
/* each field's possible values are stacked; one shows per step */
.qd__mv { position: absolute; left: 10px; top: 9px; opacity: 0; }
.qd__mv--empty { color: var(--text-secondary); opacity: 1; animation: qdMatEmpty var(--qd-loop) infinite; }
.qd__mv--item { font-weight: 600; animation: qdMatSet var(--qd-loop) infinite; }
.qd__mv--q1 { animation: qdQty1 var(--qd-loop) infinite; }
.qd__mv--q2 { animation: qdQty2 var(--qd-loop) infinite; }
.qd__mv--price { animation: qdMatSet var(--qd-loop) infinite; }
.qd__mremove {
  position: absolute;
  left: 412px;
  top: 64px;
  width: 16px;
  height: 16px;
}
.qd__mremove::before,
.qd__mremove::after {
  content: "";
  position: absolute;
  left: 6px;
  top: -1px;
  width: 4px;
  height: 18px;
  border-radius: 1px;
  background: #E01B1B;
  transform: rotate(45deg);
}
.qd__mremove::after { transform: rotate(-45deg); }
.qd__addline {
  position: absolute;
  left: 50%;
  top: 98px;
  margin-left: -38px;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--qd-accent);
  color: #fff;
  font: 600 10px/1.2 var(--font-display);
  white-space: nowrap;
}
/* the price book list opens upward from the item field */
.qd__pb {
  position: absolute;
  left: 16px;
  top: 216px;
  z-index: 3;
  width: 300px;
  padding: 4px 0;
  border: 1px solid var(--qd-line);
  background: var(--surface-card);
  box-shadow: 0 -10px 24px -10px rgba(16,16,19,.3);
  opacity: 0;
  transform: translateY(4px);
  transform-origin: 0 100%;
  animation: qdPb var(--qd-loop) infinite;
}
.qd__pb-head {
  display: flex;
  justify-content: space-between;
  padding: 4px 11px 6px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font: 600 9.5px/1.2 var(--font-text);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.qd__pb-row {
  display: flex;
  justify-content: space-between;
  height: 26px;
  padding: 0 11px;
  line-height: 26px;
}
.qd__pb-row span { color: var(--text-secondary); }
.qd__pb-row--hot { animation: qdPbHot var(--qd-loop) infinite; }

/* ---- Quote summary ---- */
.qd__table {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50px;
  border: 1px solid var(--qd-line);
}
.qd__row {
  display: flex;
  height: 34px;
  border-top: 1px solid var(--qd-line);
}
.qd__row:first-child { border-top: 0; }
.qd__row--alt { background: var(--surface-sunken); }
.qd__row--total { background: var(--pg-paper-300); font-weight: 600; }
.qd__cell {
  flex: 1 1 auto;
  padding: 10px 8px 0;
}
.qd__cell--num {
  position: relative;
  flex: 0 0 104px;
  border-left: 1px solid var(--qd-line);
}
/* each figure is six stacked values; one shows per step of the quote */
.qd__v {
  position: absolute;
  right: 8px;
  top: 10px;
  opacity: 0;
}
.qd__v--0 { opacity: 1; animation: qdV0 var(--qd-loop) infinite; }
.qd__v--1 { animation: qdV1 var(--qd-loop) infinite; }
.qd__v--2 { animation: qdV2 var(--qd-loop) infinite; }
.qd__v--3 { animation: qdV3 var(--qd-loop) infinite; }
.qd__v--4 { animation: qdV4 var(--qd-loop) infinite; }
.qd__v--5 { animation: qdV5 var(--qd-loop) infinite; }

.qd__save {
  position: absolute;
  left: 50%;
  top: 172px;
  width: 150px;
  height: 38px;
  margin-left: -75px;
  border-radius: 3px;
  background: var(--qd-accent);
  color: #fff;
  font: 700 12px/38px var(--font-display);
  text-align: center;
  animation: qdSave var(--qd-loop) infinite;
}
.qd__popup {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 222px;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-left: 4px solid var(--status-success-fg);
  border-radius: 4px;
  background: var(--surface-card);
  box-shadow: 0 14px 30px -12px rgba(16,16,19,.35), 0 0 0 1px var(--border-hairline);
  font: 600 13px/1.2 var(--font-display);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  animation: qdPopup var(--qd-loop) infinite;
}
.qd__popup-check {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--status-success-fg);
  flex: 0 0 auto;
}
.qd__popup-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* ---- Cursor + clicks (reuse the shared cursor/ripple styles) ---- */
.qd__cursor { animation-name: qdCursor; animation-duration: var(--qd-loop); }
.qd__ripple--1 { left: 300px; top: 63px; animation: qdRip1 var(--qd-loop) infinite; } /* 10% open select */
.qd__ripple--2 { left: 200px; top: 119px; animation: qdRip2 var(--qd-loop) infinite; } /* 20% Water Heater Replacement */
.qd__ripple--3 { left: 60px; top: 166px; animation: qdRip3 var(--qd-loop) infinite; } /* 30% Expansion Tank */
.qd__ripple--4 { left: 60px; top: 224px; animation: qdRip4 var(--qd-loop) infinite; } /* 38% Haul-Away */
.qd__ripple--5 { left: 126px; top: 400px; animation: qdRip5 var(--qd-loop) infinite; } /* 46% material item field */
.qd__ripple--6 { left: 120px; top: 285px; animation: qdRip6 var(--qd-loop) infinite; } /* 55% 3/4" Ball Valve */
.qd__ripple--7 { left: 276px; top: 400px; animation: qdRip7 var(--qd-loop) infinite; } /* 63% quantity */
.qd__ripple--8 { left: 945px; top: 191px; animation: qdRip8 var(--qd-loop) infinite; } /* 76% Save Quote */

/* ---- Keyframes (% of 11s) ---- */
@keyframes qdCursor {
  0%   { opacity: 0; transform: translate(560px, 540px) scale(1); }
  4%   { opacity: 1; transform: translate(560px, 540px) scale(1); }
  9%  { transform: translate(300px, 61px) scale(1); }
  10%  { transform: translate(300px, 61px) scale(.82); }
  11%  { transform: translate(300px, 61px) scale(1); }
  19%  { transform: translate(200px, 117px) scale(1); }
  20%  { transform: translate(200px, 117px) scale(.82); }
  21%  { transform: translate(200px, 117px) scale(1); }
  29%  { transform: translate(60px, 164px) scale(1); }
  30%  { transform: translate(60px, 164px) scale(.82); }
  31%  { transform: translate(60px, 164px) scale(1); }
  37%  { transform: translate(60px, 222px) scale(1); }
  38%  { transform: translate(60px, 222px) scale(.82); }
  39%  { transform: translate(60px, 222px) scale(1); }
  45%  { transform: translate(126px, 398px) scale(1); }
  46%  { transform: translate(126px, 398px) scale(.82); }
  47%  { transform: translate(126px, 398px) scale(1); }
  54%  { transform: translate(120px, 283px) scale(1); }
  55%  { transform: translate(120px, 283px) scale(.82); }
  56%  { transform: translate(120px, 283px) scale(1); }
  62%  { transform: translate(276px, 398px) scale(1); }
  63%  { transform: translate(276px, 398px) scale(.82); }
  64%  { transform: translate(276px, 398px) scale(1); }
  75%  { transform: translate(945px, 189px) scale(1); }
  76%  { transform: translate(945px, 189px) scale(.82); }
  77%  { opacity: 1; transform: translate(945px, 189px) scale(1); }
  90%  { opacity: 1; transform: translate(945px, 189px) scale(1); }
  96%  { opacity: 0; transform: translate(560px, 540px) scale(1); }
  100% { opacity: 0; transform: translate(560px, 540px) scale(1); }
}
@keyframes qdRipple {
  0%   { opacity: .9; transform: scale(.4); }
  6%   { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes qdFocusSelect {
  0%, 9%    { border-color: var(--qd-line); box-shadow: none; }
  10%, 20%  { border-color: var(--qd-accent); box-shadow: 0 0 0 3px rgba(16,184,236,.2); }
  22%, 100% { border-color: var(--qd-line); box-shadow: none; }
}
@keyframes qdMenu {
  0%, 10%   { opacity: 0; transform: translateY(-4px); }
  12%, 20%  { opacity: 1; transform: none; }
  21%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes qdOptionHot {
  0%, 16%   { background: transparent; }
  17%, 20%  { background: var(--qd-accent-soft); }
  21%, 100% { background: transparent; }
}
@keyframes qdShowFirst {
  0%, 20%   { opacity: 1; }
  21%, 76%  { opacity: 0; }
  77%, 100% { opacity: 1; }
}
@keyframes qdShowPicked {
  0%, 20%   { opacity: 0; }
  21%, 76%  { opacity: 1; }
  77%, 100% { opacity: 0; }
}
@keyframes qdTile1 {
  0%, 30%   { border-color: var(--qd-line); background: var(--surface-card); }
  31%, 76%  { border-color: var(--qd-accent); background: var(--qd-accent-soft); }
  77%, 100% { border-color: var(--qd-line); background: var(--surface-card); }
}
@keyframes qdTile2 {
  0%, 38%   { border-color: var(--qd-line); background: var(--surface-card); }
  39%, 76%  { border-color: var(--qd-accent); background: var(--qd-accent-soft); }
  77%, 100% { border-color: var(--qd-line); background: var(--surface-card); }
}
@keyframes qdHide1 { 0%, 30% { opacity: 1; } 31%, 76% { opacity: 0; } 77%, 100% { opacity: 1; } }
@keyframes qdShow1 { 0%, 30% { opacity: 0; } 31%, 76% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes qdHide2 { 0%, 38% { opacity: 1; } 39%, 76% { opacity: 0; } 77%, 100% { opacity: 1; } }
@keyframes qdShow2 { 0%, 38% { opacity: 0; } 39%, 76% { opacity: 1; } 77%, 100% { opacity: 0; } }
/* a picked add-on's icon fills in with the accent colour */
@keyframes qdIco1 {
  0%, 30%   { background: #E8F7FD; color: #0B7FA6; }
  31%, 76%  { background: #10B8EC; color: #fff; }
  77%, 100% { background: #E8F7FD; color: #0B7FA6; }
}
@keyframes qdIco2 {
  0%, 38%   { background: #E8F7FD; color: #0B7FA6; }
  39%, 76%  { background: #10B8EC; color: #fff; }
  77%, 100% { background: #E8F7FD; color: #0B7FA6; }
}
@keyframes qdFocusMat {
  0%, 45.9% { border-color: var(--qd-line); box-shadow: none; }
  46%, 55%  { border-color: var(--qd-accent); box-shadow: 0 0 0 3px rgba(16,184,236,.2); }
  56%, 100% { border-color: var(--qd-line); box-shadow: none; }
}
@keyframes qdPb {
  0%, 46%   { opacity: 0; transform: translateY(4px); }
  47.5%, 55% { opacity: 1; transform: none; }
  56%, 100% { opacity: 0; transform: translateY(4px); }
}
@keyframes qdPbHot {
  0%, 51.9% { background: transparent; }
  52%, 55%  { background: var(--qd-accent-soft); }
  56%, 100% { background: transparent; }
}
/* the picked item, its price-book unit price and quantity 1 appear together */
@keyframes qdMatEmpty { 0%, 55.4% { opacity: 1; } 55.5%, 76% { opacity: 0; } 77%, 100% { opacity: 1; } }
@keyframes qdMatSet   { 0%, 55.4% { opacity: 0; } 55.5%, 76% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes qdQty1     { 0%, 55.4% { opacity: 0; } 55.5%, 64.9% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes qdQty2     { 0%, 64.9% { opacity: 0; } 65%, 76% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes qdPriceFill {
  0%, 55.4% { background: var(--surface-card); }
  55.5%, 59% { background: #E8F7FD; }
  62%, 100% { background: var(--surface-card); }
}
@keyframes qdFocusQty {
  0%, 62.9% { border-color: var(--qd-line); box-shadow: none; }
  63%, 67%  { border-color: var(--qd-accent); box-shadow: 0 0 0 3px rgba(16,184,236,.2); }
  68%, 100% { border-color: var(--qd-line); box-shadow: none; }
}
/* summary steps: $0 → service → +tank → +haul-away → +1 valve → +2nd valve */
@keyframes qdV0 { 0%, 20% { opacity: 1; } 21%, 76% { opacity: 0; } 77%, 100% { opacity: 1; } }
@keyframes qdV1 { 0%, 20% { opacity: 0; } 21%, 30% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes qdV2 { 0%, 30% { opacity: 0; } 31%, 38% { opacity: 1; } 39%, 100% { opacity: 0; } }
@keyframes qdV3 { 0%, 38% { opacity: 0; } 39%, 55.4% { opacity: 1; } 55.5%, 100% { opacity: 0; } }
@keyframes qdV4 { 0%, 55.4% { opacity: 0; } 55.5%, 64.9% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes qdV5 { 0%, 64.9% { opacity: 0; } 65%, 76% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes qdRip1 { 0%, 9.9% { opacity: 0; transform: scale(.4); } 10% { opacity: .9; transform: scale(.4); } 15%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes qdRip2 { 0%, 19.9% { opacity: 0; transform: scale(.4); } 20% { opacity: .9; transform: scale(.4); } 25%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes qdRip3 { 0%, 29.9% { opacity: 0; transform: scale(.4); } 30% { opacity: .9; transform: scale(.4); } 35%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes qdRip4 { 0%, 37.9% { opacity: 0; transform: scale(.4); } 38% { opacity: .9; transform: scale(.4); } 43%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes qdRip5 { 0%, 45.9% { opacity: 0; transform: scale(.4); } 46% { opacity: .9; transform: scale(.4); } 51%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes qdRip6 { 0%, 54.9% { opacity: 0; transform: scale(.4); } 55% { opacity: .9; transform: scale(.4); } 60%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes qdRip7 { 0%, 62.9% { opacity: 0; transform: scale(.4); } 63% { opacity: .9; transform: scale(.4); } 68%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes qdRip8 { 0%, 75.9% { opacity: 0; transform: scale(.4); } 76% { opacity: .9; transform: scale(.4); } 81%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes qdSave {
  0%, 75%   { background: var(--qd-accent); transform: none; }
  76%       { background: #0A97C4; transform: scale(.96); }
  78%, 100% { background: var(--qd-accent); transform: none; }
}
@keyframes qdPopup {
  0%, 77%   { opacity: 0; transform: translateY(8px) scale(.96); }
  80%, 93%  { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(8px) scale(.96); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .qd__board { transform: scale(.82); transform-origin: 50% 0; }
}
@media (max-width: 620px) {
  /* phones: pin the form column to the left edge so the clicks stay in view */
  .qd__board {
    top: 14px;
    left: 0;
    margin-left: 10px;
    transform: scale(.7);
    transform-origin: 0 0;
  }
}


/* ==========================================================================
   3. Hero layout — title and subtitle on top, the live demo window below at
   the full width of the panel.
   The window is in flow (not a background) and plays at full strength.
   The board inside is designed at a fixed width (--win-w) and scaled to fit:
   scheduler-demo.js measures the window and sets --win-s, so it tracks every
   screen width. (No container units: Safari resolved 100cqw as 0 here.)
   ========================================================================== */
.sd-split {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: stretch;
  gap: clamp(24px, 3.4vw, 40px);
}
.sd-split__copy {
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.sd-split__copy .ps-eyebrow { display: inline-flex; }
.sd-split__copy .ps-title { text-wrap: balance; }
/* the hero is title, subtitle, demo: no buttons or proof points */
.sd-split__copy .ps-actions,
.sd-split__proof { display: none; }
/* the demo window fills the width up to 700px, centred */
.sd-split > .sd--window {
  justify-self: center;
  width: 100%;
  max-width: 700px;
}

/* the hero panel itself is borderless and flat; the demo box beneath the
   title carries the same shadow as the page's other <section> panels */
.ps-panel.sd-split {
  /* set to the same value as .ps-panel's box-shadow */
  --sd-demo-shadow: var(--shadow-hairline), var(--shadow-float);
  border: 0;
  box-shadow: none;
}
.sd-split > .sd--window,
.sd-split > .sd--wall {
  box-shadow: var(--sd-demo-shadow);
}

/* ---- Window ---- */
.sd--window {
  --win-w: 770px;     /* design width of the board inside */
  --win-r: .5792;     /* visible board height ÷ design width */
  --win-pad: 14px;    /* gap between the window edge and the board, every side */
  position: relative;
  inset: auto;
  min-width: 0;
  container-type: inline-size;
  border-radius: var(--radius-xl);
  background: var(--surface-page);
  box-shadow: var(--shadow-hairline), var(--shadow-float);
  overflow: hidden;
  /* clip, not a scroll container: no scrollbar gutter can be reserved on the
     right, which would leave a wider gap on that side */
  overflow: clip;
  scrollbar-gutter: auto;
}
/* tablets and phones: the hero panel housing the demo has no white
   background or shadow, so the demo window sits straight on the page */
@media (max-width: 991.98px) {
  .ps-panel.sd-split {
    background: transparent;
    box-shadow: none;
  }
}

/* phones: no gap around the board, it fills the window edge to edge */
@media (max-width: 600px) {
  .sd--window { --win-pad: 0px; }

  /* the demo runs the full width of the panel, matching the .ps-panel blocks below */
  .ps-panel.sd-split {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
  .sd-split > .sd--window,
  .sd-split > .sd--wall {
    max-width: none;
  }
  /* keep the title and subtitle off the screen edges */
  .sd-split__copy {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.sd__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--surface-card);
}
.sd__chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pg-paper-500);
}
.sd__chrome-title {
  margin-left: 10px;
  font: 600 12px/18px var(--font-display);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Fixed height = 2 x --win-pad + board width x --win-r, made entirely from
     bottom padding (a % padding is measured against the window's width).
     - No container units: Safari resolved 100cqw as 0 here, which collapsed
       the box.
     - height: 0, so nothing inside the demo can ever change the box's height
       and move the page (anything in normal flow just spills into the
       padding, where it is still visible, starting at the top-left corner). */
  box-sizing: content-box;
  height: 0;
  padding: 0 0 calc(2 * var(--win-pad) + (100% - 2 * var(--win-pad)) * var(--win-r));
}

/* both boards: pinned top-left, full strength, scaled to the window */
.sd--window .sd__board,
.sd--window .qd__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  margin: 0;
  opacity: 1;
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));   /* --win-s is set by scheduler-demo.js */
}

/* ---- No jump on load ----
   Until scheduler-demo.js has measured the window and set --win-s, the board
   sits at the fallback scale (too small on desktop, too big and cropped on
   phones). Keep it invisible until then and fade it in at the right size.
   The viewport keeps its full height throughout, so nothing below moves.
   Failsafe: if the script never runs, the board shows itself after 3s. */
.sd--window .sd__viewport { transition: opacity .25s ease; }
.sd--window:not(.is-sized) .sd__viewport {
  opacity: 0;
  animation: sdWinFailsafe 0s 3s forwards;
}
@keyframes sdWinFailsafe { to { opacity: 1; } }
@media (scripting: none) {
  .sd--window:not(.is-sized) .sd__viewport { opacity: 1; animation: none; }
}

/* ---- Quote board in a window: summary moves beside the form ---- */
.sd--window .qd__board { width: 790px; height: 470px; }
.sd--window .qd__card--summary { left: 460px; }
.sd--window .qd__ripple--8 { left: 615px; }
.sd--window .qd__cursor { animation-name: qdCursorWin; }

/* ---- Scheduler board in a window: five lanes, panel + toast ride inside ---- */
.sd--window.sd--board {
  --win-w: 710px;
  --win-r: .7394;
}
.sd--window .sd__board { width: 710px; height: 560px; }
.sd--window .sd__group--b { width: 388px; }
.sd--window .sd__lane--6 { left: 450px; }
.sd--window .sd__lane--7 { left: 580px; }
.sd--window .sd__ripple--1 { left: 502px; }
.sd--window .sd__ripple--2 { left: 646px; }
.sd--board .sd__cursor { animation-name: sdCursorWin; }
.sd--window .sd__toast {
  top: 74px;
  left: 24px;
  z-index: 4;
  padding: 10px 16px;
  font-size: 12px;
}
.sd--window .sd__panel {
  width: 270px;
  z-index: 4;
  font-size: 11.5px;
}
.sd--window .sd__panel-btns { display: grid; }

@keyframes qdCursorWin {
  0%   { opacity: 0; transform: translate(560px, 460px) scale(1); }
  4%   { opacity: 1; transform: translate(560px, 460px) scale(1); }
  9%  { transform: translate(300px, 61px) scale(1); }
  10%  { transform: translate(300px, 61px) scale(.82); }
  11%  { transform: translate(300px, 61px) scale(1); }
  19%  { transform: translate(200px, 117px) scale(1); }
  20%  { transform: translate(200px, 117px) scale(.82); }
  21%  { transform: translate(200px, 117px) scale(1); }
  29%  { transform: translate(60px, 164px) scale(1); }
  30%  { transform: translate(60px, 164px) scale(.82); }
  31%  { transform: translate(60px, 164px) scale(1); }
  37%  { transform: translate(60px, 222px) scale(1); }
  38%  { transform: translate(60px, 222px) scale(.82); }
  39%  { transform: translate(60px, 222px) scale(1); }
  45%  { transform: translate(126px, 398px) scale(1); }
  46%  { transform: translate(126px, 398px) scale(.82); }
  47%  { transform: translate(126px, 398px) scale(1); }
  54%  { transform: translate(120px, 283px) scale(1); }
  55%  { transform: translate(120px, 283px) scale(.82); }
  56%  { transform: translate(120px, 283px) scale(1); }
  62%  { transform: translate(276px, 398px) scale(1); }
  63%  { transform: translate(276px, 398px) scale(.82); }
  64%  { transform: translate(276px, 398px) scale(1); }
  75%  { transform: translate(615px, 189px) scale(1); }
  76%  { transform: translate(615px, 189px) scale(.82); }
  77%  { opacity: 1; transform: translate(615px, 189px) scale(1); }
  90%  { opacity: 1; transform: translate(615px, 189px) scale(1); }
  96%  { opacity: 0; transform: translate(560px, 460px) scale(1); }
  100% { opacity: 0; transform: translate(560px, 460px) scale(1); }
}
@keyframes sdCursorWin {
  0%   { opacity: 0; transform: translate(400px, 470px) scale(1); }
  6%   { opacity: 1; transform: translate(400px, 470px) scale(1); }
  17%  { opacity: 1; transform: translate(500px, 164px) scale(1); }
  19%  { transform: translate(500px, 164px) scale(.82); }
  21%  { transform: translate(500px, 164px) scale(1); }
  33%  { transform: translate(644px, 42px) scale(1); }
  35%  { transform: translate(644px, 42px) scale(.82); }
  37%  { transform: translate(644px, 42px) scale(1); }
  54%  { transform: translate(90px, 164px) scale(1); }
  56%  { transform: translate(90px, 164px) scale(.82); }
  58%  { opacity: 1; transform: translate(90px, 164px) scale(1); }
  86%  { opacity: 1; transform: translate(90px, 164px) scale(1); }
  94%  { opacity: 0; transform: translate(400px, 470px) scale(1); }
  100% { opacity: 0; transform: translate(400px, 470px) scale(1); }
}



/* ==========================================================================
   4. Website generator demo — 7s loop, shown in the split-hero window
   Sequence: pick an industry → type a business name → Generate → a dot
   pulses on the button, swells into a wave and the finished website opens
   out of it to fill the window → hold → reset.
   Timeline is in % of 7s (1% = 70ms). Board is 790 × 470.
   Base styles = the empty form, so reduced motion shows a still frame.
   ========================================================================== */

.sd--site {
  --wd-loop: 7s;
  --wd-site-accent: #2FA0DA;
  --win-w: 790px;
  --win-r: .5949;
}

.wd__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-card);
  font: 400 12px/1.35 var(--font-text);
  color: var(--text-primary);
}
/* the window's shared board rule (scale + 14px inset) */
.sd--window .wd__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}

/* ---- Chrome title swaps from the generator URL to the new site's URL ---- */
.sd--site .sd__chrome-title,
.sd--book .sd__chrome-title { position: relative; flex: 1 1 auto; height: 18px; }
.wd__url {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.wd__url--form { animation: wdUrlForm var(--wd-loop) infinite; }
.wd__url--site { opacity: 0; color: var(--text-primary); animation: wdUrlSite var(--wd-loop) infinite; }
.wd__lock {
  width: 8px;
  height: 7px;
  margin-top: 3px;
  border-radius: 1px;
  background: var(--status-success-fg);
  position: relative;
}
.wd__lock::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -5px;
  width: 4px;
  height: 5px;
  border: 1.5px solid var(--status-success-fg);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

/* ---- The form ---- */
.wd__head {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  text-align: center;
}
.wd__head strong {
  display: block;
  font: 800 26px/1.1 var(--font-display);
  letter-spacing: var(--tracking-display);
}
.wd__head span {
  display: block;
  max-width: 470px;
  margin: 8px auto 0;
  color: var(--text-secondary);
  font-size: 12.5px;
}
.wd__form {
  position: absolute;
  left: 95px;
  top: 128px;
  width: 600px;
  height: 230px;
  border-radius: 20px;
  background: var(--surface-sunken);
}
.wd__label {
  position: absolute;
  font: 500 11px/1 var(--font-text);
}
.wd__label--industry { left: 25px; top: 20px; }
.wd__label--name { left: 25px; top: 94px; }
.wd__label--verify { left: 325px; top: 20px; }
.wd__field {
  position: absolute;
  left: 25px;
  width: 280px;
  height: 40px;
  padding: 12px 13px 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  white-space: nowrap;
  overflow: hidden;
}
.wd__field--industry { top: 36px; animation: wdFocusIndustry var(--wd-loop) infinite; }
.wd__field--name { top: 110px; color: var(--text-muted); animation: wdFocusName var(--wd-loop) infinite; }
.wd__field-text { position: absolute; left: 13px; top: 12px; }
.wd__field-text--empty { animation: wdIndustryEmpty var(--wd-loop) infinite; }
.wd__field-text--picked { opacity: 0; animation: wdIndustryPicked var(--wd-loop) infinite; }
.wd__field--name .wd__field-text--empty { animation: wdNameEmpty var(--wd-loop) infinite; }
.wd__typed {
  position: absolute;
  left: 13px;
  top: 12px;
  color: var(--text-primary);
  clip-path: inset(0 100% 0 0);
  animation: wdType var(--wd-loop) infinite;
}
.wd__menu {
  position: absolute;
  left: 120px;
  top: 204px;
  z-index: 3;
  width: 280px;
  padding: 4px 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  box-shadow: 0 12px 26px -12px rgba(16,16,19,.35);
  opacity: 0;
  transform: translateY(-4px);
  animation: wdMenu var(--wd-loop) infinite;
}
.wd__option { padding: 7px 13px; }
.wd__option--hot { animation: wdOptionHot var(--wd-loop) infinite; }
.wd__captcha {
  position: absolute;
  left: 325px;
  top: 36px;
  width: 220px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #D3D3D3;
  border-radius: 3px;
  background: #F9F9F9;
  font-size: 11.5px;
}
.wd__captcha-box {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.wd__captcha-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  width: 7px;
  height: 14px;
  border-right: 3px solid #109D58;
  border-bottom: 3px solid #109D58;
  transform: rotate(45deg);
}
.wd__btn {
  position: absolute;
  top: 178px;
  height: 36px;
  border-radius: var(--radius-md);
  font: 600 12px/36px var(--font-display);
  text-align: center;
}
.wd__btn--go {
  left: 25px;
  width: 150px;
  background: var(--surface-accent);
  color: #fff;
  animation: wdGo var(--wd-loop) infinite;
}
.wd__btn--clear {
  left: 187px;
  width: 92px;
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
}
.wd__note {
  position: absolute;
  left: 325px;
  top: 190px;
  color: var(--text-secondary);
  font-size: 10.5px;
}

/* ---- The dot that becomes the website ---- */
.wd__dot {
  position: absolute;
  left: 189px;   /* 195 − 6: centred on the Generate button */
  top: 318px;
  z-index: 4;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-accent);
  box-shadow: 0 0 0 6px rgba(44,91,240,.18);
  opacity: 0;
  transform: scale(0);
  animation: wdDot var(--wd-loop) infinite;
}
.wd__site {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--surface-card);
  clip-path: circle(0 at 195px 324px);
  animation: wdSite var(--wd-loop) infinite;
}

/* ---- The generated website (a home cleaning business) ---- */
.wd__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 52px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 11px;
  color: var(--text-secondary);
}
.wd__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  color: var(--text-primary);
  font: 600 12.5px/1 var(--font-display);
}
.wd__logo-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--wd-site-accent);
  box-shadow: 0 0 0 3px rgba(47,160,218,.22);
}
.wd__book {
  padding: 7px 11px;
  border-radius: 6px;
  background: var(--wd-site-accent);
  color: #fff;
  font-weight: 600;
}
.wd__hero {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 64px;
  height: 330px;
  border-radius: 22px;
  background: #EEF6FD;
  overflow: hidden;
}
.wd__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  transform: scale(1.12);
  animation: wdPhoto var(--wd-loop) infinite;
}
.wd__card {
  position: absolute;
  left: 34px;
  top: 64px;
  width: 400px;
  padding: 26px 28px;
  border-radius: 16px;
  background: rgba(250,253,255,.93);
  box-shadow: 0 18px 40px -26px rgba(16,16,19,.35);
  opacity: 0;
  transform: translateY(16px);
  animation: wdCard var(--wd-loop) infinite;
}
.wd__card strong {
  display: block;
  font: 700 29px/1.08 var(--font-display);
  letter-spacing: -.02em;
}
.wd__card span {
  display: block;
  margin-top: 10px;
  color: var(--text-secondary);
}
.wd__card em {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 7px;
  background: var(--wd-site-accent);
  color: #fff;
  font: 600 12px/1 var(--font-display);
  font-style: normal;
  box-shadow: 0 8px 16px -8px rgba(47,160,218,.7);
}
.wd__next {
  position: absolute;
  left: 0;
  right: 0;
  top: 414px;
  text-align: center;
  font: 700 22px/1 var(--font-display);
  letter-spacing: -.02em;
}
.wd__live {
  position: absolute;
  right: 26px;
  top: 78px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-card);
  box-shadow: 0 6px 14px -8px rgba(16,16,19,.4);
  font: 600 10.5px/1 var(--font-text);
  opacity: 0;
  transform: translateY(-6px);
  animation: wdLive var(--wd-loop) infinite;
}
.wd__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-success-fg);
}

/* ---- Cursor + clicks ---- */
.wd__cursor { animation-name: wdCursor; animation-duration: var(--wd-loop); }
.wd__ripple { z-index: 6; animation: qdRipple var(--wd-loop) infinite; }
.wd__ripple--1 { left: 300px; top: 184px; animation-delay: .63s; }   /*  9% open industry */
.wd__ripple--2 { left: 220px; top: 246px; animation-delay: 1.19s; }  /* 17% House Cleaning */
.wd__ripple--3 { left: 200px; top: 258px; animation-delay: 1.68s; }  /* 24% name field */
.wd__ripple--4 { left: 195px; top: 324px; animation-delay: 3.08s; }  /* 44% Generate */

/* ---- Keyframes (% of 7s) ---- */
@keyframes wdCursor {
  0%   { opacity: 0; transform: translate(560px, 440px) scale(1); }
  4%   { opacity: 1; transform: translate(560px, 440px) scale(1); }
  8%   { transform: translate(300px, 182px) scale(1); }
  9%   { transform: translate(300px, 182px) scale(.82); }
  10%  { transform: translate(300px, 182px) scale(1); }
  16%  { transform: translate(220px, 244px) scale(1); }
  17%  { transform: translate(220px, 244px) scale(.82); }
  18%  { transform: translate(220px, 244px) scale(1); }
  23%  { transform: translate(200px, 256px) scale(1); }
  24%  { transform: translate(200px, 256px) scale(.82); }
  25%  { transform: translate(200px, 256px) scale(1); }
  38%  { transform: translate(200px, 256px) scale(1); }
  43%  { transform: translate(195px, 322px) scale(1); }
  44%  { transform: translate(195px, 322px) scale(.82); }
  45%  { opacity: 1; transform: translate(195px, 322px) scale(1); }
  49%  { opacity: 0; transform: translate(205px, 334px) scale(1); }
  100% { opacity: 0; transform: translate(560px, 440px) scale(1); }
}
@keyframes wdFocusIndustry {
  0%, 8%    { border-color: var(--border-strong); box-shadow: none; }
  9%, 17%   { border-color: var(--pg-brand-500); box-shadow: var(--shadow-focus); }
  19%, 100% { border-color: var(--border-strong); box-shadow: none; }
}
@keyframes wdMenu {
  0%, 9%    { opacity: 0; transform: translateY(-4px); }
  11%, 17%  { opacity: 1; transform: none; }
  18%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes wdOptionHot {
  0%, 13%   { background: transparent; }
  14%, 17%  { background: var(--pg-brand-50); }
  18%, 100% { background: transparent; }
}
@keyframes wdIndustryEmpty  { 0%, 17% { opacity: 1; } 18%, 96% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes wdIndustryPicked { 0%, 17% { opacity: 0; } 18%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes wdNameEmpty      { 0%, 24% { opacity: 1; } 25%, 96% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes wdFocusName {
  0%, 23%   { border-color: var(--border-strong); box-shadow: none; }
  24%, 42%  { border-color: var(--pg-brand-500); box-shadow: var(--shadow-focus); }
  44%, 100% { border-color: var(--border-strong); box-shadow: none; }
}
/* typing: revealed left to right in keystroke-sized steps */
@keyframes wdType {
  0%, 25%   { clip-path: inset(0 100% 0 0); animation-timing-function: steps(22, end); }
  38%, 96%  { clip-path: inset(0 0 0 0); }
  98%, 100% { clip-path: inset(0 100% 0 0); }
}
@keyframes wdGo {
  0%, 43%   { background: var(--surface-accent); transform: none; }
  44%       { background: var(--pg-brand-700); transform: scale(.96); }
  46%, 100% { background: var(--surface-accent); transform: none; }
}
/* the dot: appears, pulses once, then swells into a wave of brand blue */
@keyframes wdDot {
  0%, 45%  { opacity: 0; transform: scale(0); }
  47%      { opacity: 1; transform: scale(1); animation-timing-function: ease-in-out; }
  49%      { transform: scale(1.6); }
  51%      { transform: scale(1); animation-timing-function: cubic-bezier(.7,0,.3,1); }
  61%      { opacity: 1; transform: scale(140); }
  66%, 100% { opacity: 0; transform: scale(140); }
}
/* the website opens out of the wave from the same point */
@keyframes wdSite {
  0%, 54%   { opacity: 1; clip-path: circle(0 at 195px 324px); animation-timing-function: cubic-bezier(.6,0,.2,1); }
  64%, 94%  { opacity: 1; clip-path: circle(740px at 195px 324px); }
  98%       { opacity: 0; clip-path: circle(740px at 195px 324px); }
  100%      { opacity: 0; clip-path: circle(0 at 195px 324px); }
}
@keyframes wdPhoto {
  0%, 56%   { transform: scale(1.12); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  74%, 100% { transform: scale(1); }
}
@keyframes wdCard {
  0%, 60%   { opacity: 0; transform: translateY(16px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  68%, 100% { opacity: 1; transform: none; }
}
@keyframes wdLive {
  0%, 68%   { opacity: 0; transform: translateY(-6px); }
  72%, 100% { opacity: 1; transform: none; }
}
@keyframes wdUrlForm { 0%, 61% { opacity: 1; } 63%, 96% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes wdUrlSite { 0%, 61% { opacity: 0; } 63%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }


/* ==========================================================================
   5. Booking form demo — 10s loop, shown in the split-hero window
   A customer books a home cleaning: Service (card expands to show its
   drivers + description) → bedrooms → bathrooms → add-on → date →
   time → frequency → agree → Next → "Loading payment page…" → reset.
   The summary price builds at each step. Board is 790 × 500.
   Timeline is in % of 10s (1% = 100ms). Base styles = the empty form.
   ========================================================================== */

.sd--book {
  --bd-loop: 10s;
  --bd-accent: #2FA0DA;
  --bd-btn: #1179A8;
  --bd-soft: #EAF6FC;
  --bd-line: #CFCFCF;
  --win-w: 790px;
  --win-r: .6329;
}
.bd__board {
  position: absolute;
  width: 790px;
  height: 500px;
  font: 400 11.5px/1.3 var(--font-text);
  color: var(--text-primary);
}
.sd--window .bd__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}

/* ---- Cards ---- */
.bd__card {
  position: absolute;
  left: 0;
  width: 470px;
  height: 84px;
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  background: var(--surface-card);
  overflow: hidden;
}
.bd__card--service { top: 0; animation: bdExpand var(--bd-loop) infinite; }
/* everything under the Service card slides down when it expands */
.bd__below {
  position: absolute;
  left: 0;
  top: 94px;
  width: 470px;
  animation: bdShift var(--bd-loop) infinite;
}
.bd__card--extras { top: 0; height: 92px; }
.bd__card--date { top: 102px; }
.bd__card--freq { top: 196px; }
.bd__title {
  padding-top: 11px;
  text-align: center;
  font: 600 11.5px/1 var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ---- Selects ---- */
.bd__select {
  position: absolute;
  top: 38px;
  height: 32px;
  padding: 9px 26px 0 10px;
  border: 1px solid var(--bd-line);
  border-radius: 3px;
  background: var(--surface-card);
  white-space: nowrap;
  overflow: hidden;
}
.bd__select::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  transform: rotate(45deg);
}
.bd__select--service,
.bd__select--freq { left: 115px; width: 240px; }
.bd__select--bed,
.bd__select--bath { left: 160px; width: 150px; height: 28px; padding-top: 7px; }
.bd__select--bed { top: 94px; }
.bd__select--bath { top: 130px; }
.bd__select--bed::after,
.bd__select--bath::after { top: 9px; }
.bd__select--date { left: 16px; width: 234px; }
.bd__select--date::after { display: none; }
.bd__select--time { left: 262px; width: 192px; }
.bd__val { position: absolute; left: 10px; top: 9px; }
.bd__select--bed .bd__val,
.bd__select--bath .bd__val { top: 7px; }
.bd__val--empty { color: var(--text-secondary); }
.bd__val--set { opacity: 0; font-weight: 600; }
.bd__cal {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 30px;
  border-left: 1px solid var(--bd-line);
  background: var(--surface-sunken);
}
.bd__cal::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 9px;
  width: 12px;
  height: 11px;
  border: 1.5px solid var(--text-secondary);
  border-top-width: 3px;
  border-radius: 2px;
}

/* the part of the Service card that appears once a service is chosen */
.bd__drivers {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: bdReveal var(--bd-loop) infinite;
}
.bd__rule {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 82px;
  border-top: 1px solid var(--border-hairline);
}
.bd__desc {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 168px;
}
.bd__desc strong { display: block; font-weight: 700; }
.bd__desc span { color: var(--text-secondary); }

.bd__select--service { animation: bdFocusService var(--bd-loop) infinite; }
.bd__select--bed { animation: bdFocusBed var(--bd-loop) infinite; }
.bd__select--bath { animation: bdFocusBath var(--bd-loop) infinite; }
.bd__select--date { animation: bdFocusDate var(--bd-loop) infinite; }
.bd__select--time { animation: bdFocusTime var(--bd-loop) infinite; }
.bd__select--freq { animation: bdFocusFreq var(--bd-loop) infinite; }
.bd__select--service .bd__val--empty { animation: bdOff13 var(--bd-loop) infinite; }
.bd__select--service .bd__val--set { animation: bdOn13 var(--bd-loop) infinite; }
.bd__select--bed .bd__val--empty { animation: bdOff21 var(--bd-loop) infinite; }
.bd__select--bed .bd__val--set { animation: bdOn21 var(--bd-loop) infinite; }
.bd__select--bath .bd__val--empty { animation: bdOff28 var(--bd-loop) infinite; }
.bd__select--bath .bd__val--set { animation: bdOn28 var(--bd-loop) infinite; }
.bd__select--date .bd__val--empty { animation: bdOff45 var(--bd-loop) infinite; }
.bd__select--date .bd__val--set { animation: bdOn45 var(--bd-loop) infinite; }
.bd__select--time .bd__val--empty { animation: bdOff52 var(--bd-loop) infinite; }
.bd__select--time .bd__val--set { animation: bdOn52 var(--bd-loop) infinite; }
.bd__select--freq .bd__val--empty { animation: bdOff60 var(--bd-loop) infinite; }
.bd__select--freq .bd__val--set { animation: bdOn60 var(--bd-loop) infinite; }

/* dropdown menus */
.bd__menu {
  position: absolute;
  z-index: 3;
  padding: 4px 0;
  border: 1px solid var(--bd-line);
  background: var(--surface-card);
  box-shadow: 0 10px 24px -10px rgba(16,16,19,.3);
  opacity: 0;
  transform: translateY(-4px);
}
.bd__menu--service { left: 115px; top: 72px; width: 240px; animation: bdMenuService var(--bd-loop) infinite; }
.bd__menu--bed { left: 160px; top: 124px; width: 150px; animation: bdMenuBed var(--bd-loop) infinite; }
.bd__menu--bath { left: 160px; top: 160px; width: 150px; animation: bdMenuBath var(--bd-loop) infinite; }
.bd__option {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
}
.bd__menu--bed .bd__option,
.bd__menu--bath .bd__option { padding: 6px 10px; }
.bd__option span { color: var(--text-secondary); }
.bd__menu--service .bd__option--hot { animation: bdHotService var(--bd-loop) infinite; }
.bd__menu--bed .bd__option--hot { animation: bdHotBed var(--bd-loop) infinite; }
.bd__menu--bath .bd__option--hot { animation: bdHotBath var(--bd-loop) infinite; }

/* ---- Add-on tiles ---- */
.bd__tile {
  position: absolute;
  top: 36px;
  width: 214px;
  height: 44px;
  padding: 6px 10px 0 40px;
  border: 1px solid var(--bd-line);
  border-radius: 3px;
  background: var(--surface-card);
}
.bd__tile--a { left: 16px; animation: bdTile var(--bd-loop) infinite; }
.bd__tile--b { left: 240px; }
.bd__tile small {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: 10px;
}
.bd__mark {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 16px;
  height: 16px;
}
.bd__mark--plus::before,
.bd__mark--plus::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 4px;
  height: 16px;
  background: var(--text-primary);
}
.bd__mark--plus::after { transform: rotate(90deg); }
.bd__mark--check {
  opacity: 0;
  border-radius: 50%;
  background: var(--bd-accent);
}
.bd__mark--check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.bd__tile--a .bd__mark--plus { animation: bdOff35 var(--bd-loop) infinite; }
/* service icon in place of the + mark; when the add-on is picked the tile
   and its icon fill with the accent (no ✓ badge) */
.bd__tile:has(.bd__ico) { padding-left: 56px; }
.bd__tile:has(.bd__ico) .bd__mark--check {
  left: 32px;
  top: 2px;
  z-index: 1;
  box-shadow: 0 0 0 2px #fff;
}
.bd__ico {
  position: absolute;
  left: 10px;
  top: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #EAF6FC;
  color: #1179A8;
}
.bd__ico svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bd__tile--a .bd__ico { animation: bdIco var(--bd-loop) infinite; }

/* ---- Booking summary ---- */
.bd__summary {
  position: absolute;
  left: 490px;
  top: 0;
  width: 300px;
  height: 300px;
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--bd-accent);
  border-radius: 3px;
  background: var(--surface-sunken);
}
.bd__summary .bd__title { padding-top: 18px; font-size: 13px; }
.bd__rows { margin: 16px 18px 0; }
.bd__row {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 30px;
  padding-top: 9px;
  border-bottom: 1px solid var(--border-strong);
}
.bd__row:last-child { border-bottom: 0; font-weight: 700; }
.bd__num { position: relative; width: 80px; }
.bd__v {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0;
}
.bd__v--0 { opacity: 1; animation: bdV0 var(--bd-loop) infinite; }
.bd__v--1 { animation: bdV1 var(--bd-loop) infinite; }
.bd__v--2 { animation: bdV2 var(--bd-loop) infinite; }
.bd__v--3 { animation: bdV3 var(--bd-loop) infinite; }
.bd__v--4 { animation: bdV4 var(--bd-loop) infinite; }
.bd__agree {
  position: absolute;
  left: 22px;
  right: 18px;
  top: 192px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
}
.bd__agree a { color: var(--bd-btn); }
.bd__box {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1.5px solid #767676;
  border-radius: 2px;
  background: var(--surface-card);
  animation: bdBox var(--bd-loop) infinite;
}
.bd__box::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 0;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  opacity: 0;
  animation: bdOn67 var(--bd-loop) infinite;
}
.bd__next {
  position: absolute;
  left: 80px;
  top: 236px;
  width: 140px;
  height: 36px;
  border-radius: 6px;
  background: var(--bd-btn);
  color: #fff;
  font: 700 12.5px/36px var(--font-display);
  text-align: center;
  animation: bdNext var(--bd-loop) infinite;
}

/* ---- Loading box after Next ---- */
.bd__scrim {
  position: absolute;
  inset: -14px;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(16,16,19,.32);
  opacity: 0;
  animation: bdLoading var(--bd-loop) infinite;
}
.bd__loading {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 26px 18px 20px;
  border-radius: 14px;
  background: var(--surface-card);
  box-shadow: var(--shadow-float);
  font: 700 15px/1.2 var(--font-display);
  transform: translateY(8px) scale(.96);
  animation: bdLoadingBox var(--bd-loop) infinite;
}
.bd__loading small {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font: 400 11.5px/1.2 var(--font-text);
}
.bd__spinner {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid var(--bd-soft);
  border-top-color: var(--bd-accent);
  animation: bdSpin 800ms linear infinite;
}

/* ---- Cursor + clicks ---- */
.sd--window .bd__cursor { animation-name: bdCursor; animation-duration: var(--bd-loop); }
.bd__ripple { z-index: 6; animation: qdRipple var(--bd-loop) infinite; }
.bd__ripple--1  { left: 235px; top: 56px;  animation-delay: .6s; }   /*  6% service */
.bd__ripple--2  { left: 200px; top: 92px;  animation-delay: 1.2s; }  /* 12% Standard Clean */
.bd__ripple--3  { left: 235px; top: 108px; animation-delay: 1.8s; }  /* 18% bedrooms */
.bd__ripple--4  { left: 220px; top: 193px; animation-delay: 2.1s; }  /* 21% 3 Bedrooms */
.bd__ripple--5  { left: 235px; top: 144px; animation-delay: 2.5s; }  /* 25% bathrooms */
.bd__ripple--6  { left: 220px; top: 203px; animation-delay: 2.8s; }  /* 28% 2 Bathrooms */
.bd__ripple--7  { left: 60px;  top: 270px; animation-delay: 3.5s; }  /* 35% Inside Oven */
.bd__ripple--8  { left: 130px; top: 368px; animation-delay: 4.4s; }  /* 44% date */
.bd__ripple--9  { left: 358px; top: 368px; animation-delay: 5.1s; }  /* 51% time */
.bd__ripple--10 { left: 235px; top: 462px; animation-delay: 5.9s; }  /* 59% frequency */
.bd__ripple--11 { left: 520px; top: 200px; animation-delay: 6.7s; }  /* 67% agree */
.bd__ripple--12 { left: 640px; top: 254px; animation-delay: 7.5s; }  /* 75% Next */

/* ---- Keyframes (% of 10s) ---- */
@keyframes bdCursor {
  0%   { opacity: 0; transform: translate(600px, 480px) scale(1); }
  3%   { opacity: 1; transform: translate(600px, 480px) scale(1); }
  5%   { transform: translate(235px, 54px) scale(1); }
  6%   { transform: translate(235px, 54px) scale(.82); }
  7%   { transform: translate(235px, 54px) scale(1); }
  11%  { transform: translate(200px, 90px) scale(1); }
  12%  { transform: translate(200px, 90px) scale(.82); }
  13%  { transform: translate(200px, 90px) scale(1); }
  17%  { transform: translate(235px, 106px) scale(1); }
  18%  { transform: translate(235px, 106px) scale(.82); }
  19%  { transform: translate(235px, 106px) scale(1); }
  20%  { transform: translate(220px, 191px) scale(1); }
  21%  { transform: translate(220px, 191px) scale(.82); }
  22%  { transform: translate(220px, 191px) scale(1); }
  24%  { transform: translate(235px, 142px) scale(1); }
  25%  { transform: translate(235px, 142px) scale(.82); }
  26%  { transform: translate(235px, 142px) scale(1); }
  27%  { transform: translate(220px, 201px) scale(1); }
  28%  { transform: translate(220px, 201px) scale(.82); }
  29%  { transform: translate(220px, 201px) scale(1); }
  34%  { transform: translate(60px, 268px) scale(1); }
  35%  { transform: translate(60px, 268px) scale(.82); }
  36%  { transform: translate(60px, 268px) scale(1); }
  43%  { transform: translate(130px, 366px) scale(1); }
  44%  { transform: translate(130px, 366px) scale(.82); }
  45%  { transform: translate(130px, 366px) scale(1); }
  50%  { transform: translate(358px, 366px) scale(1); }
  51%  { transform: translate(358px, 366px) scale(.82); }
  52%  { transform: translate(358px, 366px) scale(1); }
  58%  { transform: translate(235px, 460px) scale(1); }
  59%  { transform: translate(235px, 460px) scale(.82); }
  60%  { transform: translate(235px, 460px) scale(1); }
  66%  { transform: translate(518px, 198px) scale(1); }
  67%  { transform: translate(518px, 198px) scale(.82); }
  68%  { transform: translate(518px, 198px) scale(1); }
  74%  { transform: translate(640px, 252px) scale(1); }
  75%  { transform: translate(640px, 252px) scale(.82); }
  76%  { opacity: 1; transform: translate(640px, 252px) scale(1); }
  78%  { opacity: 0; transform: translate(640px, 252px) scale(1); }
  100% { opacity: 0; transform: translate(600px, 480px) scale(1); }
}

/* Service card grows to show its drivers; the cards below slide down with it */
@keyframes bdExpand {
  0%, 13%   { height: 84px; animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  16%, 95%  { height: 202px; }
  98%, 100% { height: 84px; }
}
@keyframes bdShift {
  0%, 13%   { transform: none; animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  16%, 95%  { transform: translateY(118px); }
  98%, 100% { transform: none; }
}
@keyframes bdReveal {
  0%, 14%   { opacity: 0; }
  17%, 95%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* on/off switches: a value appears at the given step and clears at 95% */
@keyframes bdOn13  { 0%, 12.9% { opacity: 0; } 13%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes bdOff13 { 0%, 12.9% { opacity: 1; } 13%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes bdOn21  { 0%, 20.9% { opacity: 0; } 21%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes bdOff21 { 0%, 20.9% { opacity: 1; } 21%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes bdOn28  { 0%, 27.9% { opacity: 0; } 28%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes bdOff28 { 0%, 27.9% { opacity: 1; } 28%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes bdOn35  { 0%, 34.9% { opacity: 0; } 35%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes bdOff35 { 0%, 34.9% { opacity: 1; } 35%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes bdOn45  { 0%, 44.9% { opacity: 0; } 45%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes bdOff45 { 0%, 44.9% { opacity: 1; } 45%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes bdOn52  { 0%, 51.9% { opacity: 0; } 52%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes bdOff52 { 0%, 51.9% { opacity: 1; } 52%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes bdOn60  { 0%, 59.9% { opacity: 0; } 60%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes bdOff60 { 0%, 59.9% { opacity: 1; } 60%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes bdOn67  { 0%, 66.9% { opacity: 0; } 67%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* price steps: $0 → $120 → $145 → $170 → $210 */
@keyframes bdV0 { 0%, 12.9% { opacity: 1; } 13%, 95% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes bdV1 { 0%, 12.9% { opacity: 0; } 13%, 20.9% { opacity: 1; } 21%, 100% { opacity: 0; } }
@keyframes bdV2 { 0%, 20.9% { opacity: 0; } 21%, 27.9% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes bdV3 { 0%, 27.9% { opacity: 0; } 28%, 34.9% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes bdV4 { 0%, 34.9% { opacity: 0; } 35%, 95% { opacity: 1; } 96%, 100% { opacity: 0; } }

@keyframes bdFocusService {
  0%, 5%    { border-color: var(--bd-line); box-shadow: none; }
  6%, 12%   { border-color: var(--bd-accent); box-shadow: 0 0 0 3px rgba(47,160,218,.22); }
  14%, 100% { border-color: var(--bd-line); box-shadow: none; }
}
@keyframes bdFocusBed {
  0%, 17%   { border-color: var(--bd-line); box-shadow: none; }
  18%, 21%  { border-color: var(--bd-accent); box-shadow: 0 0 0 3px rgba(47,160,218,.22); }
  22%, 100% { border-color: var(--bd-line); box-shadow: none; }
}
@keyframes bdFocusBath {
  0%, 24%   { border-color: var(--bd-line); box-shadow: none; }
  25%, 28%  { border-color: var(--bd-accent); box-shadow: 0 0 0 3px rgba(47,160,218,.22); }
  29%, 100% { border-color: var(--bd-line); box-shadow: none; }
}
@keyframes bdFocusDate {
  0%, 43%   { border-color: var(--bd-line); box-shadow: none; }
  44%, 47%  { border-color: var(--bd-accent); box-shadow: 0 0 0 3px rgba(47,160,218,.22); }
  49%, 100% { border-color: var(--bd-line); box-shadow: none; }
}
@keyframes bdFocusTime {
  0%, 50%   { border-color: var(--bd-line); box-shadow: none; }
  51%, 54%  { border-color: var(--bd-accent); box-shadow: 0 0 0 3px rgba(47,160,218,.22); }
  56%, 100% { border-color: var(--bd-line); box-shadow: none; }
}
@keyframes bdFocusFreq {
  0%, 58%   { border-color: var(--bd-line); box-shadow: none; }
  59%, 62%  { border-color: var(--bd-accent); box-shadow: 0 0 0 3px rgba(47,160,218,.22); }
  64%, 100% { border-color: var(--bd-line); box-shadow: none; }
}
@keyframes bdMenuService {
  0%, 6%    { opacity: 0; transform: translateY(-4px); }
  8%, 12%   { opacity: 1; transform: none; }
  13%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes bdMenuBed {
  0%, 18%   { opacity: 0; transform: translateY(-4px); }
  18.6%, 21% { opacity: 1; transform: none; }
  21.6%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes bdMenuBath {
  0%, 25%   { opacity: 0; transform: translateY(-4px); }
  25.6%, 28% { opacity: 1; transform: none; }
  28.6%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes bdHotService {
  0%, 10%   { background: transparent; }
  11%, 12%  { background: var(--bd-soft); }
  13%, 100% { background: transparent; }
}
@keyframes bdHotBed {
  0%, 19.8% { background: transparent; }
  20%, 21%  { background: var(--bd-soft); }
  21.6%, 100% { background: transparent; }
}
@keyframes bdHotBath {
  0%, 26.8% { background: transparent; }
  27%, 28%  { background: var(--bd-soft); }
  28.6%, 100% { background: transparent; }
}
@keyframes bdTile {
  0%, 34.9% { border-color: var(--bd-line); background: var(--surface-card); }
  35%, 95%  { border-color: var(--bd-accent); background: var(--bd-soft); }
  96%, 100% { border-color: var(--bd-line); background: var(--surface-card); }
}
/* the Inside Oven icon fills in when the add-on is picked */
@keyframes bdIco {
  0%, 34.9% { background: #EAF6FC; color: #1179A8; }
  35%, 95%  { background: #2FA0DA; color: #fff; }
  96%, 100% { background: #EAF6FC; color: #1179A8; }
}
@keyframes bdBox {
  0%, 66.9% { background: var(--surface-card); border-color: #767676; }
  67%, 95%  { background: var(--bd-btn); border-color: var(--bd-btn); }
  96%, 100% { background: var(--surface-card); border-color: #767676; }
}
@keyframes bdNext {
  0%, 74%   { background: var(--bd-btn); transform: none; }
  75%       { background: #0B5E85; transform: scale(.96); }
  77%, 100% { background: var(--bd-btn); transform: none; }
}
@keyframes bdLoading {
  0%, 76%   { opacity: 0; }
  78%, 93%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes bdLoadingBox {
  0%, 76%   { transform: translateY(8px) scale(.96); }
  79%, 100% { transform: none; }
}
@keyframes bdSpin { to { transform: rotate(360deg); } }


/* ==========================================================================
   6. Revenue recovery wall — a tilted wall of panels sliding upward along
   its columns. One tile (4 columns × 6 rows, 992 × 744) is stacked three
   high; the rotated stage slides exactly one tile, so the loop is seamless.
   Three panel styles: missed call (white), abandoned cart (warm),
   past-due invoice (ink). Tune the tilt with --rw-a and size with --rw-s.
   ========================================================================== */

.sd--wall {
  position: relative;
  inset: auto;
  min-width: 0;
  aspect-ratio: auto;
  height: 460px;
  border-radius: var(--radius-xl);
  background: var(--surface-sunken);
  box-shadow: var(--shadow-hairline), var(--shadow-float);
  overflow: hidden;
}
/* same footprint as the other hero demos: full width up to 700px, centred */
.sd-split > .sd--wall {
  justify-self: center;
  width: 100%;
  max-width: 700px;
}
@media (max-width: 620px) {
  .sd--wall { height: 380px; }
}
.rw__mask {
  position: absolute;
  inset: 0;
}
.rw__wall {
  --rw-a: -38deg;   /* tilt of the wall */
  --rw-s: .8;       /* panel scale */
  position: absolute;
  left: 50%;
  top: 50%;
  width: 992px;
  height: 2232px;
  transform: translate(-50%, -50%) rotate(var(--rw-a)) scale(var(--rw-s)) translateY(372px);
  animation: rwSlide 36s linear infinite;
}
@media (max-width: 620px) {
  .rw__wall { --rw-s: .66; }
}
.rw__tile {
  display: grid;
  grid-template-columns: repeat(4, 220px);
  column-gap: 28px;
  width: 992px;
  height: 744px;
  padding-right: 28px;
}
.rw__col {
  display: grid;
  grid-auto-rows: 96px;
  row-gap: 28px;
  align-content: start;
}
.rw__col:nth-child(2) { padding-top: 62px; }
.rw__col:nth-child(3) { padding-top: 31px; }
.rw__col:nth-child(4) { padding-top: 93px; }

/* ---- Panel ---- */
.rw__card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 9px;
  align-content: center;
  padding: 0 14px;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  background: var(--surface-card);
  box-shadow: 0 10px 24px -18px rgba(16,16,19,.35);
  font: 400 11.5px/1.25 var(--font-text);
  color: var(--text-secondary);
  text-align: left;
}
.rw__chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.rw__who { min-width: 0; align-self: center; }
.rw__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font: 700 13.5px/1.2 var(--font-display);
}
.rw__meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rw__tag {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font: 600 10.5px/1 var(--font-text);
  white-space: nowrap;
}

/* missed call — white panel, red accents */
.rw__card--call .rw__chip { background: var(--status-danger-bg); color: var(--status-danger-fg); }
.rw__card--call .rw__tag { background: var(--status-danger-bg); color: #A1262B; }

/* abandoned cart — warm panel, amber accents */
.rw__card--cart {
  border-color: #F3DDB0;
  background: #FFF8EB;
}
.rw__card--cart .rw__chip { background: var(--status-warning-bg); color: #B87400; }
.rw__card--cart .rw__tag { background: #FBE6BE; color: #7A4D00; }

/* past-due invoice — ink panel, solid red tag */
.rw__card--invoice {
  border-color: var(--pg-ink-700);
  background: var(--pg-ink-900);
  color: rgba(255,255,255,.72);
  box-shadow: 0 14px 28px -18px rgba(16,16,19,.7);
}
.rw__card--invoice .rw__name { color: #fff; }
.rw__card--invoice .rw__chip { background: rgba(255,255,255,.1); color: #fff; }
.rw__card--invoice .rw__tag { background: var(--status-danger-fg); color: #fff; }

.ps-icon--shopping-cart { --ps-icon-url: url("https://unpkg.com/lucide-static@0.544.0/icons/shopping-cart.svg"); }

@keyframes rwSlide {
  from { transform: translate(-50%, -50%) rotate(var(--rw-a)) scale(var(--rw-s)) translateY(372px); }
  to   { transform: translate(-50%, -50%) rotate(var(--rw-a)) scale(var(--rw-s)) translateY(-372px); }
}


/* ==========================================================================
   7. Call route demo — 20s loop, shown in the split-hero window
   The call is a fixed dot; the route map slides underneath it. The map is
   zoomed to 125% (.cd__zoom) so the cards read comfortably, and each step
   holds long enough to take in before the call moves on.
   Sequence: incoming call → main line rings, no answer → missed-call menu
   scans 1, 2, 3 → caller presses 3 → message recorded → "Message left" →
   the dot opens into the Inbound Call Log and the new entry slides in → reset.
   The dot is fixed at board (210, 215). .cd__zoom scales the map 1.25× about
   map-space (300, 235) and shifts that point onto the dot, so a map point
   (x, y) sits under the dot when the map is translated by (300 − x, 235 − y).
   Map points: incoming (300,500) · main line (700,500) · menu (1100,500) ·
   options (1320, 360 / 500 / 640) · message left (1720,640).
   Steps (seconds): incoming 0–2 · main line rings 3.2–6.4 · menu 7.6–11 ·
   message 12–13.6 · message left 14.6–16.4 · call log 16.4–20.
   Board is 790 × 470. Timeline is in % of 20s (1% = 200ms).
   Base styles = the incoming call, so reduced motion shows a still frame.
   ========================================================================== */

.sd--call {
  --cd-loop: 20s;
  --cd-accent: var(--pg-brand-500);
  --cd-soft: var(--pg-brand-50);
  --cd-log: #10B8EC;
  --cd-ease: cubic-bezier(.65,0,.35,1);
  --win-w: 790px;
  --win-r: .5949;
}

.cd__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-sunken);
  font: 400 11.5px/1.3 var(--font-text);
  color: var(--text-primary);
  text-align: left;
}
.sd--window .cd__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}

/* ---- Chrome title: live call → call log URL ---- */
.sd--call .sd__chrome-title { position: relative; flex: 1 1 auto; height: 18px; }
.cd__title {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cd__title--live { animation: cdTitleLive var(--cd-loop) infinite; }
.cd__title--log { opacity: 0; color: var(--text-primary); animation: cdTitleLog var(--cd-loop) infinite; }
.cd__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-success-fg);
  animation: cdBlink 1.2s ease-in-out infinite;
}

/* ---- Stage + moving map ---- */
.cd__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 91%, transparent);
}
.cd__zoom {
  position: absolute;
  inset: 0;
  transform-origin: 300px 235px;
  transform: translate(-90px, -20px) scale(1.25);
}
.cd__map {
  position: absolute;
  left: 0;
  top: 0;
  width: 2240px;
  height: 1000px;
  background-image: radial-gradient(circle, rgba(16,16,19,.14) 1.3px, transparent 1.8px);
  background-size: 28px 28px;
  transform: translate(0, -265px);
  animation: cdMap var(--cd-loop) infinite var(--cd-ease);
}
.cd__track {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}
.cd__path {
  fill: none;
  stroke: rgba(16,16,19,.16);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cd__path--off { animation: cdBranchOff var(--cd-loop) infinite; }
/* the route the call has travelled, drawn in step with the map */
.cd__path--live {
  stroke: var(--cd-accent);
  stroke-width: 4;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: cdTrace var(--cd-loop) infinite var(--cd-ease);
}

/* ---- Nodes (zero-size anchors on map points) ---- */
.cd__node { position: absolute; width: 0; height: 0; }
.cd__node--in   { left: 300px;  top: 500px; }
.cd__node--line { left: 700px;  top: 500px; }
.cd__node--menu { left: 1100px; top: 500px; }
.cd__node--opt1 { left: 1320px; top: 360px; }
.cd__node--opt2 { left: 1320px; top: 500px; }
.cd__node--opt3 { left: 1320px; top: 640px; }
.cd__node--done { left: 1720px; top: 640px; }

.cd__pin {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(16,16,19,.22);
  border-radius: 50%;
  background: var(--surface-card);
}
.cd__node--opt3 .cd__pin { animation: cdPin3 var(--cd-loop) infinite; }
.cd__node--done .cd__pin { animation: cdPinDone var(--cd-loop) infinite; }

/* ---- Cards ---- */
.cd__card {
  position: absolute;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 9px;
  align-items: center;
  width: 230px;
  padding: 11px 13px;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: 0 12px 26px -18px rgba(16,16,19,.4);
}
.cd__card--above { left: 0; bottom: 22px; transform: translateX(-50%); }
.cd__card--side {
  left: 22px;
  top: 0;
  width: 176px;
  grid-template-columns: 26px minmax(0, 1fr);
  padding: 9px 12px;
  transform: translateY(-50%);
}
.cd__chip {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--cd-soft);
  color: var(--cd-accent);
}
.cd__chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cd__chip--ok { background: var(--status-success-bg); color: var(--status-success-fg); }
.cd__who { min-width: 0; }
.cd__name {
  display: block;
  font: 700 13px/1.2 var(--font-display);
  white-space: nowrap;
}
.cd__card--side .cd__name { font-size: 12px; }
.cd__meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cd__tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--cd-soft);
  color: var(--cd-accent);
  font: 600 10.5px/1 var(--font-text);
  white-space: nowrap;
}
.cd__card > .cd__tag { grid-column: 1 / -1; justify-self: start; }
.cd__tag--muted { background: var(--surface-sunken); color: var(--text-secondary); }
.cd__tag--bad { background: var(--status-danger-bg); color: #A1262B; }
.cd__tag--ok { background: var(--status-success-bg); color: #13522F; }
.cd__ringing i {
  width: 3px;
  height: 3px;
  margin-left: 2px;
  border-radius: 50%;
  background: currentColor;
  animation: cdBlink 900ms ease-in-out infinite;
}
.cd__ringing i:nth-child(2) { animation-delay: 150ms; }
.cd__ringing i:nth-child(3) { animation-delay: 300ms; }

/* a line whose content changes: both versions stacked, one shows at a time */
.cd__swap { position: relative; grid-column: 1 / -1; height: 19px; }
/* inside a card's name block: the first line stays in flow and sets the height, so the text sits like its neighbours */
.cd__swap--meta { display: block; grid-column: auto; height: auto; margin-top: 2px; }
.cd__swap--meta > :first-child { position: relative; }
.cd__swap > * { position: absolute; left: 0; top: 0; margin: 0; }
.cd__swap > :last-child { opacity: 0; }
.cd__node--line .cd__swap > :first-child { animation: cdOff26 var(--cd-loop) infinite; }
.cd__node--line .cd__swap > :last-child { animation: cdOn26 var(--cd-loop) infinite; }
.cd__node--menu .cd__swap > :first-child { animation: cdOff46 var(--cd-loop) infinite; }
.cd__node--menu .cd__swap > :last-child { animation: cdOn46 var(--cd-loop) infinite; }
.cd__node--opt3 .cd__swap > :first-child { animation: cdOff55 var(--cd-loop) infinite; }
.cd__node--opt3 .cd__swap > :last-child { animation: cdOn55 var(--cd-loop) infinite; }

/* menu option keys */
.cd__key {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-card);
  font: 700 12px/1 var(--font-display);
}
.cd__node--opt1 .cd__card { animation: cdOpt1 var(--cd-loop) infinite; }
.cd__node--opt2 .cd__card { animation: cdOpt2 var(--cd-loop) infinite; }
.cd__node--opt3 .cd__card { animation: cdOpt3 var(--cd-loop) infinite; }
.cd__node--opt3 .cd__key { animation: cdKey3 var(--cd-loop) infinite; }

/* recording strip on option 3 */
.cd__rec {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
  color: var(--status-danger-fg);
  font: 600 10.5px/1 var(--font-text);
  white-space: nowrap;
}
.cd__rec::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: cdBlink 1s ease-in-out infinite;
}
.cd__bar {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--cd-accent);
  transform: scaleY(.3);
  animation: cdBar 520ms ease-in-out infinite alternate;
}
.cd__bar:nth-child(2n) { animation-delay: -200ms; }
.cd__bar:nth-child(3n) { animation-delay: -350ms; }
.cd__bar:nth-child(5n) { animation-delay: -90ms; }
.cd__rec b { margin-left: 6px; color: var(--text-secondary); font-weight: 600; }

/* "Message left" confirmation */
.cd__node--done .cd__card {
  opacity: 0;
  transform-origin: 50% 100%;
  animation: cdDone var(--cd-loop) infinite;
}

/* ---- Fixed pieces: step pills, the call dot, ring waves ---- */
.cd__steps {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.cd__step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  box-shadow: 0 0 0 1px var(--border-hairline);
  color: var(--text-secondary);
  font: 600 12px/1 var(--font-text);
  white-space: nowrap;
}
.cd__step b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16,16,19,.07);
  font-size: 10.5px;
}
.cd__step--1 { background: var(--cd-accent); color: #fff; animation: cdStep1 var(--cd-loop) infinite; }
.cd__step--2 { animation: cdStep2 var(--cd-loop) infinite; }
.cd__step--3 { animation: cdStep3 var(--cd-loop) infinite; }
.cd__step--4 { animation: cdStep4 var(--cd-loop) infinite; }

.cd__dot {
  position: absolute;
  left: 201px;
  top: 206px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cd-accent);
  box-shadow: 0 0 0 4px var(--surface-card), 0 0 0 10px rgba(44,91,240,.16), 0 6px 14px rgba(16,16,19,.25);
  animation: cdDot var(--cd-loop) infinite;
}
.cd__wave {
  position: absolute;
  left: 201px;
  top: 206px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cd-accent);
  border-radius: 50%;
  opacity: 0;
  animation: cdWave var(--cd-loop) infinite;
}
.cd__wave--2 { animation-delay: .24s; }

/* ---- Inbound Call Log (opens out of the dot) ---- */
.cd__log {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--surface-page);
  clip-path: circle(0 at 210px 215px);
  animation: cdLog var(--cd-loop) infinite;
}
.cd__log-inner {
  position: absolute;
  inset: 0;
  transform-origin: 210px 215px;
  transform: scale(.9);
  animation: cdLogZoom var(--cd-loop) infinite;
}
.cd__panel {
  position: absolute;
  left: 14px;
  right: 14px;
  border-radius: 4px;
  background: var(--surface-card);
  box-shadow: 0 1px 2px rgba(16,16,19,.06), 0 6px 16px -10px rgba(16,16,19,.18);
}
.cd__panel--head { top: 14px; height: 66px; padding: 15px 20px 0; }
.cd__panel--head strong {
  display: block;
  color: var(--cd-log);
  font: 600 20px/1 var(--font-display);
}
.cd__panel--head span {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 10.5px;
}
.cd__panel--filters {
  top: 90px;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 10px;
  padding: 12px 20px;
}
.cd__field {
  height: 26px;
  padding: 7px 9px 0;
  overflow: hidden;
  border: 1px solid #D3D3D3;
  border-radius: 3px;
  color: var(--text-secondary);
  font-size: 10.5px;
  white-space: nowrap;
}
.cd__panel--table { top: 150px; bottom: 14px; padding: 6px 16px 0; overflow: hidden; }
.cd__tr {
  display: grid;
  grid-template-columns: 138px 112px 100px 112px minmax(0, 1fr) 46px;
  align-items: center;
  height: 34px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 11px;
  white-space: nowrap;
}
.cd__tr > span { overflow: hidden; text-overflow: ellipsis; }
.cd__tr--head {
  height: 30px;
  border-bottom-color: var(--border-strong);
  font: 600 11px/1 var(--font-display);
}
.cd__body { position: relative; height: calc(100% - 30px); overflow: hidden; }
.cd__stack { transform: translateY(-34px); animation: cdRows var(--cd-loop) infinite; }
.cd__tr--new { opacity: 0; animation: cdNewRow var(--cd-loop) infinite; }
.cd__link { color: #4A6FA5; }
.cd__dur { text-align: right; }
.cd__badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 3px;
  color: #fff;
  font: 600 9.5px/1.1 var(--font-text);
  vertical-align: middle;
}
.cd__badge--vm   { background: #1BB8F0; }
.cd__badge--ans  { background: #178A2F; }
.cd__badge--req  { background: #8E24AA; }
.cd__badge--menu { background: #A9C8F5; color: #1F3B66; }
.cd__info,
.cd__play {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 5px;
  border-radius: 50%;
  background: #101013;
  vertical-align: middle;
}
.cd__info::after {
  content: "i";
  position: absolute;
  inset: 0;
  color: #fff;
  font: 700 9px/13px Georgia, serif;
  text-align: center;
}
.cd__play::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3.5px;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid #fff;
}

/* ---- Keyframes (% of 20s; 1s = 5%) ---- */
/* map stops: incoming · main line · menu · option 3 · message left · reset (hidden by the log) */
@keyframes cdMap {
  0%, 10%     { transform: translate(0, -265px); }
  16%, 32%    { transform: translate(-400px, -265px); }
  38%, 55%    { transform: translate(-800px, -265px); }
  60%, 68%    { transform: translate(-1020px, -405px); }
  73%, 90%    { transform: translate(-1420px, -405px); }
  90.1%, 100% { transform: translate(0, -265px); }
}
/* travelled share of the route at each stop, out of pathLength 1000 */
@keyframes cdTrace {
  0%, 10%     { stroke-dashoffset: 1000; }
  16%, 32%    { stroke-dashoffset: 726.2; }
  38%, 55%    { stroke-dashoffset: 452.4; }
  60%, 68%    { stroke-dashoffset: 273.8; }
  73%, 90%    { stroke-dashoffset: 0; }
  90.1%, 100% { stroke-dashoffset: 1000; }
}
@keyframes cdDot {
  0%          { transform: scale(0); }
  1.5%        { transform: scale(1.25); }
  3%, 75%     { transform: scale(1); }
  76.5%       { transform: scale(1.6); }
  78%, 90%    { transform: scale(1); }
  90.1%, 100% { transform: scale(0); }
}
/* three rings while the main line rings (3.4–5.2s) */
@keyframes cdWave {
  0%, 16.9%   { opacity: 0; transform: scale(1); }
  17%         { opacity: .8; transform: scale(1); }
  20%         { opacity: 0; transform: scale(3.4); }
  20.1%       { opacity: .8; transform: scale(1); }
  23%         { opacity: 0; transform: scale(3.4); }
  23.1%       { opacity: .8; transform: scale(1); }
  26%         { opacity: 0; transform: scale(3.4); }
  26.1%, 100% { opacity: 0; transform: scale(1); }
}
/* line swaps: No answer (5.4s) · Caller pressed 3 (9.8s) · recording (12s) */
@keyframes cdOn26  { 0%, 26.9% { opacity: 0; } 27%, 89.9% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes cdOff26 { 0%, 26.9% { opacity: 1; } 27%, 89.9% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes cdOn46  { 0%, 48.9% { opacity: 0; } 49%, 89.9% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes cdOff46 { 0%, 48.9% { opacity: 1; } 49%, 89.9% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes cdOn55  { 0%, 59.9% { opacity: 0; } 60%, 89.9% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes cdOff55 { 0%, 59.9% { opacity: 1; } 60%, 89.9% { opacity: 0; } 90%, 100% { opacity: 1; } }

/* menu scan: 1 (8s) → 2 (8.6s) → 3 (9.2s), caller presses 3 (9.8s), the other branches dim */
@keyframes cdOpt1 {
  0%, 39.9%   { opacity: 1; border-color: var(--border-hairline); background: var(--surface-card); }
  40%, 42.9%  { opacity: 1; border-color: var(--cd-accent); background: var(--cd-soft); }
  43%, 48.9%  { opacity: 1; border-color: var(--border-hairline); background: var(--surface-card); }
  49%, 89.9%  { opacity: .4; border-color: var(--border-hairline); background: var(--surface-card); }
  90%, 100%   { opacity: 1; border-color: var(--border-hairline); background: var(--surface-card); }
}
@keyframes cdOpt2 {
  0%, 42.9%   { opacity: 1; border-color: var(--border-hairline); background: var(--surface-card); }
  43%, 45.9%  { opacity: 1; border-color: var(--cd-accent); background: var(--cd-soft); }
  46%, 48.9%  { opacity: 1; border-color: var(--border-hairline); background: var(--surface-card); }
  49%, 89.9%  { opacity: .4; border-color: var(--border-hairline); background: var(--surface-card); }
  90%, 100%   { opacity: 1; border-color: var(--border-hairline); background: var(--surface-card); }
}
@keyframes cdOpt3 {
  0%, 45.9%   { border-color: var(--border-hairline); background: var(--surface-card); box-shadow: 0 12px 26px -18px rgba(16,16,19,.4); }
  46%, 89.9%  { border-color: var(--cd-accent); background: var(--cd-soft); box-shadow: 0 0 0 3px rgba(44,91,240,.16), 0 14px 28px -16px rgba(16,16,19,.4); }
  90%, 100%   { border-color: var(--border-hairline); background: var(--surface-card); box-shadow: 0 12px 26px -18px rgba(16,16,19,.4); }
}
@keyframes cdKey3 {
  0%, 48.9%   { background: var(--surface-card); color: var(--text-primary); border-color: var(--border-strong); transform: none; }
  49%         { background: var(--cd-accent); color: #fff; border-color: var(--cd-accent); transform: scale(.86); }
  50.5%, 89.9% { background: var(--cd-accent); color: #fff; border-color: var(--cd-accent); transform: none; }
  90%, 100%   { background: var(--surface-card); color: var(--text-primary); border-color: var(--border-strong); transform: none; }
}
@keyframes cdBranchOff {
  0%, 48.9%  { opacity: 1; }
  49%, 89.9% { opacity: .35; }
  90%, 100%  { opacity: 1; }
}
@keyframes cdPin3 {
  0%, 48.9%  { border-color: rgba(16,16,19,.22); }
  49%, 89.9% { border-color: var(--cd-accent); }
  90%, 100%  { border-color: rgba(16,16,19,.22); }
}
@keyframes cdPinDone {
  0%, 72.9%  { border-color: rgba(16,16,19,.22); }
  73%, 89.9% { border-color: var(--status-success-fg); }
  90%, 100%  { border-color: rgba(16,16,19,.22); }
}
@keyframes cdDone {
  0%, 73%   { opacity: 0; transform: translate(-50%, 10px) scale(.94); }
  75.5%, 89.9% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  90%, 100% { opacity: 0; transform: translate(-50%, 10px) scale(.94); }
}
/* each step pill lights as the call sets off for that stop */
@keyframes cdStep1 {
  0%, 9.9%   { background: var(--cd-accent); color: #fff; }
  10%, 100%  { background: var(--surface-card); color: var(--text-secondary); }
}
@keyframes cdStep2 {
  0%, 9.9%   { background: var(--surface-card); color: var(--text-secondary); }
  10%, 31.9% { background: var(--cd-accent); color: #fff; }
  32%, 100%  { background: var(--surface-card); color: var(--text-secondary); }
}
@keyframes cdStep3 {
  0%, 31.9%  { background: var(--surface-card); color: var(--text-secondary); }
  32%, 54.9% { background: var(--cd-accent); color: #fff; }
  55%, 100%  { background: var(--surface-card); color: var(--text-secondary); }
}
@keyframes cdStep4 {
  0%, 54.9%  { background: var(--surface-card); color: var(--text-secondary); }
  55%, 89.9% { background: var(--cd-accent); color: #fff; }
  90%, 100%  { background: var(--surface-card); color: var(--text-secondary); }
}
/* the call log opens out of the dot (16.4s), holds, then fades back to the start */
@keyframes cdLog {
  0%, 82%   { opacity: 1; clip-path: circle(0 at 210px 215px); animation-timing-function: cubic-bezier(.6,0,.2,1); }
  89%, 97%  { opacity: 1; clip-path: circle(660px at 210px 215px); }
  99%       { opacity: 0; clip-path: circle(660px at 210px 215px); }
  100%      { opacity: 0; clip-path: circle(0 at 210px 215px); }
}
@keyframes cdLogZoom {
  0%, 82%   { transform: scale(.9); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  90%, 100% { transform: scale(1); }
}
/* the new entry slides in at the top and the older rows move down */
@keyframes cdRows {
  0%, 90%     { transform: translateY(-34px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  92.5%, 100% { transform: none; }
}
@keyframes cdNewRow {
  0%, 90%   { opacity: 0; background: transparent; }
  92%, 95%  { opacity: 1; background: #D9F3FD; }
  97%, 100% { opacity: 1; background: #F0FAFE; }
}
@keyframes cdTitleLive { 0%, 84.9% { opacity: 1; } 85%, 98.9% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes cdTitleLog  { 0%, 84.9% { opacity: 0; } 85%, 98.9% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes cdBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes cdBar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }


/* ==========================================================================
   8. Recurring calendar crawl — 32.7s loop, shown in the split-hero window
   A strip of real months lies on a tilted plane and crawls away from the
   camera (Star Wars style): wide and clear up front, shrinking toward the
   horizon. As each recurring visit nears the foreground it pops onto its day,
   every 2–3 weeks per series at uneven intervals.
   One tile = six months (2356px tall); the strip holds the tile twice and
   slides exactly one tile per loop, so the crawl is seamless.
   Each visit pops at its own moment: --d (set per visit below) offsets the
   shared rcPop keyframes so the pop lands as that row comes into view.
   Generated from: months Nov 2026 – Apr 2027, plane height 1100px, strip
   offset -200px, 72px/s. Re-run the generator if the months or sizes change.
   Board is 790 × 470. Base styles = a still calendar with every visit shown.
   ========================================================================== */

.sd--recur {
  --rc-loop: 32.7s;
  --rc-a: var(--pg-brand-500);
  --rc-b: #0E9F9A;
  --rc-c: #E08A0B;
  --rc-d: #8B3FD9;
  --win-w: 790px;
  --win-r: .5949;
}

.rc__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(to bottom, #E7ECFA 0%, var(--surface-sunken) 38%);
  font: 400 11px/1.2 var(--font-text);
  color: var(--text-primary);
  text-align: left;
}
.sd--window .rc__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}

/* ---- The tilted plane ---- */
.rc__scene {
  position: absolute;
  inset: 0;
  perspective: 700px;
  perspective-origin: 50% 0;
}
.rc__plane {
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 700px;
  height: 1100px;
  margin-left: -350px;
  overflow: hidden;
  transform-origin: 50% 100%;
  transform: rotateX(62deg);
  -webkit-mask-image: linear-gradient(to top, #000 52%, transparent 96%);
  mask-image: linear-gradient(to top, #000 52%, transparent 96%);
}
.rc__strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(-200px);
  animation: rcCrawl var(--rc-loop) linear infinite;
}

/* ---- Months (heights are fixed: the pop timings depend on them) ---- */
.rc__month {
  height: auto;
  margin-bottom: 36px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: 0 0 0 1px var(--border-hairline), 0 24px 40px -28px rgba(16,16,19,.35);
}
.rc__mhead {
  box-sizing: border-box;
  height: 64px;
  padding: 20px 22px 0;
  color: var(--text-secondary);
  font: 500 22px/1 var(--font-display);
}
.rc__mhead strong { color: var(--text-primary); font-weight: 800; letter-spacing: -.02em; }
.rc__wk {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 24px;
  box-shadow: inset 0 -1px 0 var(--border-hairline);
  color: var(--text-muted);
  font: 600 10px/24px var(--font-text);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.rc__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 52px;
}
.rc__day {
  position: relative;
  box-shadow: inset -1px -1px 0 var(--border-hairline);
}
.rc__day--off { background: var(--surface-sunken); }
.rc__day i {
  position: absolute;
  left: 8px;
  top: 6px;
  color: var(--text-secondary);
  font: 600 11px/1 var(--font-text);
  font-style: normal;
}

/* ---- Visits ---- */
.rc__ev {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 22px;
  padding: 0 7px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--rc-a);
  color: #fff;
  font: 600 10px/22px var(--font-text);
  white-space: nowrap;
  text-overflow: ellipsis;
  transform-origin: 50% 100%;
  animation: rcPop var(--rc-loop) var(--d, 0s) infinite;
}
.rc__ev--2nd { bottom: 29px; left: 26px; }
.rc__ev--b { background: var(--rc-b); }
.rc__ev--c { background: var(--rc-c); }
.rc__ev--d { background: var(--rc-d); }
/* a ring flashes round each visit as it lands */
.rc__ev::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  animation: rcRing var(--rc-loop) var(--d, 0s) infinite;
}

/* ---- Fixed overlay: horizon haze + "auto-scheduling" card ---- */
.rc__haze {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 70px;
  z-index: 1;
  background: linear-gradient(to bottom, #E7ECFA, rgba(231,236,250,0));
}
.rc__hud {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: grid;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: 0 0 0 1px var(--border-hairline), 0 12px 26px -18px rgba(16,16,19,.4);
}
.rc__hud-top { display: flex; align-items: center; gap: 9px; }
.rc__hud-top strong { display: block; font: 700 12.5px/1.2 var(--font-display); }
.rc__hud-top small { display: block; color: var(--text-secondary); font-size: 10.5px; }
.rc__sync {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--pg-brand-50);
  color: var(--rc-a);
}
.rc__sync svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: rcSpin 2.4s linear infinite;
}
.rc__legend { display: flex; gap: 10px; color: var(--text-secondary); font-size: 10px; }
.rc__legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rc__legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--rc-a);
}
.rc__legend .rc__lg--b::before { background: var(--rc-b); }
.rc__legend .rc__lg--c::before { background: var(--rc-c); }
.rc__legend .rc__lg--d::before { background: var(--rc-d); }

/* ---- Keyframes ---- */
@keyframes rcCrawl {
  from { transform: translateY(-200px); }
  to   { transform: translateY(-2556px); }
}
/* 0% = the moment a visit lands; it stays until it has crawled off, then hides
   before its row comes round again (kept well inside the tile's 0.42–0.87 window) */
@keyframes rcPop {
  0%        { opacity: 0; transform: translateY(8px) scale(.4); }
  1%        { opacity: 1; transform: scale(1.14); }
  2%, 70%   { opacity: 1; transform: none; }
  70.1%, 100% { opacity: 0; transform: translateY(8px) scale(.4); }
}
@keyframes rcRing {
  0%, .9%   { opacity: 0; box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  1%        { opacity: 1; box-shadow: 0 0 0 0 rgba(44,91,240,.45); }
  4%, 100%  { opacity: 0; box-shadow: 0 0 0 12px rgba(44,91,240,0); }
}
@keyframes rcSpin { to { transform: rotate(360deg); } }

/* ---- Per-visit pop moments (generated) ---- */
.rc__ev--0 { --d: -13.74s; }
.rc__ev--1 { --d: -13.46s; }
.rc__ev--2 { --d: -11.78s; }
.rc__ev--3 { --d: -12.98s; }
.rc__ev--4 { --d: -12.15s; }
.rc__ev--5 { --d: -11.94s; }
.rc__ev--6 { --d: -11.56s; }
.rc__ev--7 { --d: -8.25s; }
.rc__ev--8 { --d: -7.94s; }
.rc__ev--9 { --d: -6.79s; }
.rc__ev--10 { --d: -7.91s; }
.rc__ev--11 { --d: -7.36s; }
.rc__ev--12 { --d: -7.20s; }
.rc__ev--13 { --d: -4.58s; }
.rc__ev--14 { --d: -4.89s; }
.rc__ev--15 { --d: -3.44s; }
.rc__ev--16 { --d: -0.96s; }
.rc__ev--17 { --d: -0.29s; }
.rc__ev--18 { --d: -0.39s; }
.rc__ev--19 { --d: -32.46s; }
.rc__ev--20 { --d: -0.97s; }
.rc__ev--21 { --d: -1.35s; }
.rc__ev--22 { --d: -29.53s; }
.rc__ev--23 { --d: -30.04s; }
.rc__ev--24 { --d: -29.70s; }
.rc__ev--25 { --d: -28.12s; }
.rc__ev--26 { --d: -28.68s; }
.rc__ev--27 { --d: -27.53s; }
.rc__ev--28 { --d: -24.43s; }
.rc__ev--29 { --d: -22.65s; }
.rc__ev--30 { --d: -22.78s; }
.rc__ev--31 { --d: -22.46s; }
.rc__ev--32 { --d: -22.11s; }
.rc__ev--33 { --d: -21.68s; }
.rc__ev--34 { --d: -21.50s; }
.rc__ev--35 { --d: -18.81s; }
.rc__ev--36 { --d: -16.91s; }
.rc__ev--37 { --d: -16.92s; }
.rc__ev--38 { --d: -15.88s; }
.rc__ev--39 { --d: -16.23s; }
.rc__ev--40 { --d: -16.55s; }
.rc__ev--41 { --d: -16.77s; }


/* ==========================================================================
   9. Chat demo — 14s loop, shown in the split-hero window
   Sequence: dashboard → click the chat tab on the right edge → Messages
   panel slides in → click Dana's conversation → type a message → 3-dot menu
   → Emojis → pick 👍 → send → message lands, Dana types and replies → the
   panel slides away → reset.
   Clicks: tab 8% · Dana 19% · input 31% · dots 46% · Emojis 51% ·
   👍 59% · send 69%. Timeline is in % of 14s (1% = 140ms).
   Board is 790 × 470; the drawer is the right-hand 300px.
   Base styles = the dashboard with the drawer closed.
   ========================================================================== */

.sd--chat {
  --ch-loop: 14s;
  --ch-cyan: #10B8EC;
  --ch-blue: #3C9CF5;
  --ch-in: #ECECEC;
  --win-w: 790px;
  --win-r: .5949;
}

.ch__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: #F7F7F7;
  font: 400 11.5px/1.3 var(--font-text);
  color: var(--text-primary);
  text-align: left;
}
.sd--window .ch__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}

/* ---- Dashboard behind the drawer ---- */
.ch__dash { position: absolute; inset: 0; }
.ch__dash-title {
  position: absolute;
  left: 30px;
  top: 22px;
  color: #4A4A4A;
  font: 400 30px/1 var(--font-display);
}
.ch__dash-sub {
  position: absolute;
  left: 31px;
  top: 58px;
  color: var(--ch-cyan);
  font-size: 13px;
}
.ch__tabs {
  position: absolute;
  left: 30px;
  right: 50px;
  top: 86px;
  display: flex;
  gap: 22px;
  height: 26px;
  border-bottom: 1px solid #C9C9C9;
  font-size: 11.5px;
}
.ch__tabs span:first-child {
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--ch-cyan);
}
.ch__stat {
  position: absolute;
  top: 128px;
  width: 164px;
  height: 66px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px -12px rgba(16,16,19,.25);
  color: #555;
  font: 400 10px/1.1 var(--font-text);
  text-transform: uppercase;
}
.ch__stat--1 { left: 30px; }
.ch__stat--2 { left: 204px; }
.ch__stat--3 { left: 378px; }
.ch__stat--4 { left: 552px; }
.ch__stat b {
  display: block;
  margin-top: 8px;
  color: var(--ch-cyan);
  font: 400 26px/1 var(--font-display);
}
.ch__chart {
  position: absolute;
  left: 30px;
  top: 206px;
  width: 686px;
  height: 246px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px -12px rgba(16,16,19,.25);
  background-image:
    linear-gradient(#ECECEC 1px, transparent 1px),
    linear-gradient(90deg, #ECECEC 1px, transparent 1px);
  background-size: 100% 40px, 52px 100%;
  background-position: 0 20px, 30px 0;
}
.ch__bar {
  position: absolute;
  bottom: 30px;
  width: 20px;
  border: 1px solid #3CC6EE;
  background: #8BE0F7;
}
.ch__bar--1 { left: 230px; height: 22px; }
.ch__bar--2 { left: 282px; height: 170px; }
.ch__bar--3 { left: 334px; height: 54px; }
.ch__bar--4 { left: 438px; height: 8px; }
.ch__bar--5 { left: 490px; height: 96px; }
.ch__bar--6 { left: 542px; height: 38px; }

/* chat tab on the right edge */
.ch__tab {
  position: absolute;
  right: 6px;
  top: 202px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px -8px rgba(16,16,19,.3);
  color: #B9B9B9;
  animation: chTab var(--ch-loop) infinite;
}
.ch__tab svg { width: 30px; height: 30px; fill: currentColor; }

.ch__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(16,16,19,.45);
  opacity: 0;
  animation: chScrim var(--ch-loop) infinite;
}

/* ---- Drawer: Messages list + conversation ---- */
.ch__drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 300px;
  overflow: hidden;
  background: #fff;
  box-shadow: -18px 0 40px -20px rgba(16,16,19,.5);
  transform: translateX(calc(100% + 48px));
  animation: chDrawer var(--ch-loop) infinite;
}
.ch__list { position: absolute; inset: 0; }
.ch__list-head { height: 100px; padding: 16px 16px 0; }
.ch__list-head strong {
  display: block;
  font: 400 19px/1 var(--font-display);
}
.ch__help { display: block; margin-top: 5px; color: var(--ch-blue); font-size: 10px; }
.ch__icons {
  position: absolute;
  top: 14px;
  right: 12px;
  display: flex;
  gap: 8px;
}
.ch__icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #8A8A8A;
}
.ch__icon--plus { background: none; box-shadow: inset 0 0 0 2px #8A8A8A; }
.ch__icon--close { background: #E5161B; }
.ch__fields { display: flex; gap: 8px; margin-top: 16px; }
.ch__fields span {
  flex: 1 1 0;
  height: 24px;
  padding: 6px 10px 0;
  border: 1px solid #CFCFCF;
  border-radius: 12px;
  color: #8A8A8A;
  font-size: 10px;
}
.ch__row {
  position: relative;
  height: 62px;
  padding: 11px 40px 0 34px;
  border-bottom: 1px solid rgba(16,16,19,.06);
}
.ch__row strong { display: block; font: 600 11.5px/1.2 var(--font-text); white-space: nowrap; }
.ch__row span { display: block; margin-top: 4px; color: #333; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch__row small { display: block; margin-top: 4px; color: #666; font-size: 9px; }
.ch__row::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px dotted #222;
  box-sizing: border-box;
}
.ch__star { position: absolute; left: 12px; top: 11px; color: #F5C400; font-size: 13px; line-height: 1; }
.ch__row--dana { animation: chRowHot var(--ch-loop) infinite; }
.ch__row--crew  { background: #CDB4EC; }
.ch__row--note  { background: #C9B3EA; }
.ch__row--marc  { background: #ADC8EB; }
.ch__row--priya { background: #F4A0AA; }
.ch__row--ben   { background: #F1B6EB; }

/* conversation */
.ch__convo {
  position: absolute;
  inset: 0;
  background: #F4F4F4;
  transform: translateX(100%);
  animation: chConvo var(--ch-loop) infinite;
}
/* conversation header in the app's own style: light cyan band, white
   avatar tile, name top-left, call / settings / close on the right */
.ch__band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 84px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 135%, rgba(255,255,255,.35) 0 34px, transparent 35px),
    #A6E8F5;
  box-shadow: 0 6px 12px -6px rgba(16,16,19,.25);
  color: #17171B;
}
/* soft rings for a little depth */
.ch__band::before,
.ch__band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ch__band::before { right: -36px; top: 30px; width: 120px; height: 120px; border: 8px solid rgba(255,255,255,.28); }
.ch__band::after { left: 118px; top: 46px; width: 70px; height: 70px; border: 2px solid rgba(255,255,255,.45); }
.ch__band-av {
  position: absolute;
  left: 12px;
  top: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 8px -2px rgba(16,16,19,.3);
  color: #000;
}
.ch__band-av svg { width: 24px; height: 24px; fill: currentColor; }
.ch__band-who {
  position: absolute;
  left: 60px;
  top: 16px;
  z-index: 1;
  font: 400 13px/1.2 var(--font-display);
  white-space: nowrap;
}
.ch__band-who small { display: block; margin-top: 3px; color: rgba(16,16,19,.6); font: 400 9.5px/1 var(--font-text); }
.ch__band-icons {
  position: absolute;
  right: 10px;
  top: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch__band-icons span { display: grid; place-items: center; width: 22px; height: 22px; }
.ch__band-icons svg { display: block; width: 22px; height: 22px; }
.ch__band-call { border-radius: 4px; background: #000; }
.ch__band-call svg { width: 13px; height: 13px; fill: #fff; }
.ch__band-gear svg { fill: #000; }
.ch__band-close { border-radius: 4px; background: #F21B1B; }
.ch__band-close svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; }
.ch__body {
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 52px;
  overflow: hidden;
}
.ch__thread {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  transform: translateY(122px);
  animation: chThread var(--ch-loop) infinite;
}
.ch__msg { height: 58px; padding: 0 12px; }
.ch__bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 236px;
  height: 34px;
  padding: 0 14px 0 4px;
  border-radius: 17px;
  font-size: 11px;
  white-space: nowrap;
}
.ch__msg--out { text-align: right; }
.ch__msg--out .ch__bubble { background: var(--ch-blue); color: #fff; }
.ch__msg--in .ch__bubble { background: var(--ch-in); padding-left: 12px; }
.ch__av {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ch-blue);
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  font: 600 9.5px/1 var(--font-text);
}
.ch__meta { display: block; margin-top: 3px; color: #333; font-size: 8.5px; }
.ch__msg--out .ch__meta { padding-right: 6px; }
.ch__msg--in .ch__meta { padding-left: 6px; }

/* Dana's reply: typing dots, then the message */
.ch__reply { position: relative; }
.ch__reply > * { position: absolute; left: 12px; top: 0; }
.ch__typing {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 13px;
  border-radius: 15px;
  background: var(--ch-in);
  opacity: 0;
  animation: chTyping var(--ch-loop) infinite;
}
.ch__typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8A8A8A;
  animation: chDots 900ms ease-in-out infinite;
}
.ch__typing i:nth-child(2) { animation-delay: 150ms; }
.ch__typing i:nth-child(3) { animation-delay: 300ms; }
.ch__reply-msg { opacity: 0; animation: chReplyMsg var(--ch-loop) infinite; }

/* input bar */
.ch__bar-in {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: #fff;
}
.ch__input {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 210px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #F1F1F1;
  animation: chFocus var(--ch-loop) infinite;
}
.ch__ph,
.ch__typed {
  position: absolute;
  left: 14px;
  top: 9px;
  font-size: 11px;
  white-space: nowrap;
}
.ch__ph { color: #8A8A8A; animation: chPlaceholder var(--ch-loop) infinite; }
.ch__typed { clip-path: inset(0 100% 0 0); animation: chType var(--ch-loop) infinite; }
.ch__typed em {
  display: inline-block;
  font-style: normal;
  opacity: 0;
  animation: chEmojiIn var(--ch-loop) infinite;
}
.ch__dots {
  position: absolute;
  left: 232px;
  top: 16px;
  display: grid;
  gap: 3px;
}
.ch__dots i { width: 4px; height: 4px; border-radius: 50%; background: #666; }
.ch__send {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ch-blue);
  animation: chSend var(--ch-loop) infinite;
}
.ch__send::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

/* 3-dot menu */
.ch__menu {
  position: absolute;
  right: 30px;
  bottom: 58px;
  z-index: 3;
  width: 150px;
  padding: 8px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px -12px rgba(16,16,19,.4), 0 0 0 1px var(--border-hairline);
  opacity: 0;
  transform: translateY(6px) scale(.96);
  transform-origin: 80% 100%;
  animation: chMenu var(--ch-loop) infinite;
}
.ch__menu span {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px;
  font-size: 11px;
}
.ch__menu span::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #777;
}
.ch__menu .ch__menu-emoji::before { border-radius: 50%; }
.ch__menu-emoji { animation: chMenuHot var(--ch-loop) infinite; }

/* emoji picker */
.ch__picker {
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(7, 39px);
  grid-auto-rows: 40px;
  align-content: start;
  padding: 18px 14px;
  background: #fff;
  opacity: 0;
  transform: translateY(14px);
  animation: chPicker var(--ch-loop) infinite;
}
.ch__picker span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
}
.ch__picker .ch__pick { animation: chPickHot var(--ch-loop) infinite; }

/* cursor + clicks */
.ch__cursor { z-index: 8; animation-name: chCursor; animation-duration: var(--ch-loop); }
.ch__ripple { z-index: 7; animation: qdRipple var(--ch-loop) infinite; }
.ch__ripple--1 { left: 756px; top: 232px; animation-delay: 1.12s; } /*  8% chat tab */
.ch__ripple--2 { left: 620px; top: 132px; animation-delay: 2.66s; } /* 19% Dana */
.ch__ripple--3 { left: 590px; top: 444px; animation-delay: 4.34s; } /* 31% input */
.ch__ripple--4 { left: 724px; top: 444px; animation-delay: 6.44s; } /* 46% dots */
.ch__ripple--5 { left: 650px; top: 386px; animation-delay: 7.14s; } /* 51% Emojis */
.ch__ripple--6 { left: 601px; top: 122px; animation-delay: 8.26s; } /* 59% 👍 */
.ch__ripple--7 { left: 758px; top: 444px; animation-delay: 9.66s; } /* 69% send */

/* ---- Keyframes (% of 14s) ---- */
@keyframes chCursor {
  0%   { opacity: 0; transform: translate(400px, 400px) scale(1); }
  3%   { opacity: 1; transform: translate(400px, 400px) scale(1); }
  7%   { transform: translate(756px, 230px) scale(1); }
  8%   { transform: translate(756px, 230px) scale(.82); }
  9%   { transform: translate(756px, 230px) scale(1); }
  13%  { transform: translate(756px, 230px) scale(1); }
  18%  { transform: translate(620px, 130px) scale(1); }
  19%  { transform: translate(620px, 130px) scale(.82); }
  20%  { transform: translate(620px, 130px) scale(1); }
  25%  { transform: translate(620px, 130px) scale(1); }
  30%  { transform: translate(590px, 442px) scale(1); }
  31%  { transform: translate(590px, 442px) scale(.82); }
  32%  { transform: translate(590px, 442px) scale(1); }
  41%  { transform: translate(590px, 442px) scale(1); }
  45%  { transform: translate(724px, 442px) scale(1); }
  46%  { transform: translate(724px, 442px) scale(.82); }
  47%  { transform: translate(724px, 442px) scale(1); }
  50%  { transform: translate(650px, 384px) scale(1); }
  51%  { transform: translate(650px, 384px) scale(.82); }
  52%  { transform: translate(650px, 384px) scale(1); }
  55%  { transform: translate(650px, 384px) scale(1); }
  58%  { transform: translate(601px, 120px) scale(1); }
  59%  { transform: translate(601px, 120px) scale(.82); }
  60%  { transform: translate(601px, 120px) scale(1); }
  64%  { transform: translate(601px, 120px) scale(1); }
  68%  { transform: translate(758px, 442px) scale(1); }
  69%  { transform: translate(758px, 442px) scale(.82); }
  70%  { transform: translate(758px, 442px) scale(1); }
  84%  { opacity: 1; transform: translate(758px, 442px) scale(1); }
  88%  { opacity: 0; transform: translate(720px, 420px) scale(1); }
  100% { opacity: 0; transform: translate(400px, 400px) scale(1); }
}
@keyframes chTab {
  0%, 6.9%  { color: #B9B9B9; background: #fff; }
  7%, 9%    { color: var(--ch-cyan); background: #E8F7FD; }
  11%, 100% { color: #B9B9B9; background: #fff; }
}
@keyframes chScrim {
  0%, 8.9%  { opacity: 0; }
  12%, 93%  { opacity: 1; }
  97%, 100% { opacity: 0; }
}
@keyframes chDrawer {
  0%, 8.9%  { transform: translateX(calc(100% + 48px)); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  13%, 93%  { transform: none; animation-timing-function: cubic-bezier(.6,0,.8,.3); }
  97%, 100% { transform: translateX(calc(100% + 48px)); }
}
@keyframes chRowHot {
  0%, 17.9% { background: #fff; }
  18%, 22%  { background: #EEF2FE; }
  23%, 100% { background: #fff; }
}
@keyframes chConvo {
  0%, 19.9% { transform: translateX(100%); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  24%, 98%  { transform: none; }
  98.5%, 100% { transform: translateX(100%); }
}
@keyframes chFocus {
  0%, 30.9% { border-color: transparent; box-shadow: none; }
  31%, 69.9% { border-color: var(--ch-blue); box-shadow: 0 0 0 3px rgba(60,156,245,.18); }
  70%, 100% { border-color: transparent; box-shadow: none; }
}
@keyframes chPlaceholder {
  0%, 31.9% { opacity: 1; }
  32%, 69.9% { opacity: 0; }
  70%, 100% { opacity: 1; }
}
/* typing: revealed left to right in keystroke steps; the emoji is added later */
@keyframes chType {
  0%, 32%   { opacity: 1; clip-path: inset(0 100% 0 0); animation-timing-function: steps(24, end); }
  42%, 69.9% { opacity: 1; clip-path: inset(0 0 0 0); }
  70%, 100% { opacity: 0; clip-path: inset(0 100% 0 0); }
}
@keyframes chEmojiIn {
  0%, 62.9% { opacity: 0; transform: scale(.4); }
  64%       { opacity: 1; transform: scale(1.3); }
  65.5%, 69.9% { opacity: 1; transform: none; }
  70%, 100% { opacity: 0; transform: scale(.4); }
}
@keyframes chMenu {
  0%, 46.9% { opacity: 0; transform: translateY(6px) scale(.96); }
  48%, 51.5% { opacity: 1; transform: none; }
  52.5%, 100% { opacity: 0; transform: translateY(6px) scale(.96); }
}
@keyframes chMenuHot {
  0%, 49.4% { background: transparent; }
  49.5%, 52% { background: #EEF2FE; }
  52.5%, 100% { background: transparent; }
}
@keyframes chPicker {
  0%, 52%   { opacity: 0; transform: translateY(14px); }
  54%, 60.4% { opacity: 1; transform: none; }
  62%, 100% { opacity: 0; transform: translateY(14px); }
}
@keyframes chPickHot {
  0%, 57.4% { background: transparent; transform: none; }
  57.5%, 58.9% { background: #EEF2FE; transform: none; }
  59%       { background: #DCE6FD; transform: scale(.85); }
  60%, 61%  { background: #EEF2FE; transform: none; }
  62%, 100% { background: transparent; transform: none; }
}
@keyframes chSend {
  0%, 68.9% { transform: none; background: var(--ch-blue); }
  69%       { transform: scale(.88); background: #1F7FD8; }
  70.5%, 100% { transform: none; background: var(--ch-blue); }
}
/* the thread rises to make room: first the sent message, then Dana's reply */
@keyframes chThread {
  0%, 69.9% { transform: translateY(122px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  73%, 75.9% { transform: translateY(64px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  79%, 98.9% { transform: none; }
  99%, 100% { transform: translateY(122px); }
}
@keyframes chTyping {
  0%, 75.9% { opacity: 0; }
  77%, 82.9% { opacity: 1; }
  83%, 100% { opacity: 0; }
}
@keyframes chReplyMsg {
  0%, 82.9% { opacity: 0; transform: translateY(4px); }
  84%, 98.9% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: translateY(4px); }
}
@keyframes chDots { 0%, 100% { transform: none; opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }


/* ==========================================================================
   10. Inventory demo — 11s loop, shown in the split-hero window
   Sequence: three parts fly into a work order and land as lines → the
   cursor presses Complete → the work order morphs into the Inventory
   Explorer → the three drawdowns drop in at the top → fade → reset.
   Click: Complete 36%. Timeline is in % of 11s (1% = 110ms).
   Board is 790 × 470. Base styles = parts beside an empty work order.
   ========================================================================== */

.sd--inv {
  --iv-loop: 11s;
  --iv-ease: cubic-bezier(.5,0,.3,1);
  --iv-blue: #1D5FD6;
  --iv-cyan: #19BEEB;
  --iv-ink: #1A1A1A;
  --iv-red: #E53935;
  --win-w: 790px;
  --win-r: .5949;
}

.iv__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-sunken);
  font: 400 11.5px/1.3 var(--font-text);
  color: var(--text-primary);
  text-align: left;
}
.sd--window .iv__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}

/* ---- Chrome title: work order → inventory explorer ---- */
.sd--inv .sd__chrome-title { position: relative; flex: 1 1 auto; height: 18px; }
.iv__title { position: absolute; left: 0; top: 0; white-space: nowrap; }
.iv__title--wo { animation: ivTitleWo var(--iv-loop) infinite; }
.iv__title--ex { opacity: 0; animation: ivTitleEx var(--iv-loop) infinite; }

/* ---- Parts ---- */
.iv__part {
  position: absolute;
  left: 70px;
  z-index: 3;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: 0 10px 22px -16px rgba(16,16,19,.45);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transform-origin: 0 0;
}
.iv__part svg,
.iv__slot svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.iv__part svg { width: 28px; height: 28px; }
.iv__part small {
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 10.5px;
  white-space: nowrap;
}
.iv__part--1 { top: 96px;  animation: ivPart1 var(--iv-loop) infinite; }
.iv__part--2 { top: 196px; animation: ivPart2 var(--iv-loop) infinite; }
.iv__part--3 { top: 296px; animation: ivPart3 var(--iv-loop) infinite; }

/* ---- Work order card (morphs into the explorer) ---- */
.iv__card {
  position: absolute;
  left: 300px;
  top: 70px;
  width: 230px;
  height: 330px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  background: var(--surface-card);
  box-shadow: 0 18px 36px -24px rgba(16,16,19,.45);
  animation: ivCard var(--iv-loop) infinite;
}
.iv__wo {
  position: absolute;
  inset: 0;
  padding: 16px;
  animation: ivWo var(--iv-loop) infinite;
}
.iv__wo strong { display: block; font: 700 13.5px/1.2 var(--font-display); }
.iv__wo-meta { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 10.5px; }
.iv__wo-label {
  display: block;
  margin: 16px 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font: 600 9.5px/1 var(--font-text);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.iv__slot {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  opacity: 0;
  transform: scale(.7);
  transform-origin: 0 50%;
}
.iv__slot svg { width: 16px; height: 16px; color: var(--text-secondary); }
.iv__slot b { margin-left: auto; font-weight: 600; }
.iv__slot--1 { animation: ivSlot1 var(--iv-loop) infinite; }
.iv__slot--2 { animation: ivSlot2 var(--iv-loop) infinite; }
.iv__slot--3 { animation: ivSlot3 var(--iv-loop) infinite; }
.iv__btn {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 34px;
  border-radius: 6px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text-secondary);
  font: 600 12px/34px var(--font-display);
  text-align: center;
  animation: ivBtn var(--iv-loop) infinite;
}
.iv__btn span { position: absolute; inset: 0; }
.iv__btn span:last-child { opacity: 0; color: #fff; }
.iv__btn span:first-child { animation: ivOff36 var(--iv-loop) infinite; }
.iv__btn span:last-child { animation: ivOn36 var(--iv-loop) infinite; }

/* ---- Inventory Explorer ---- */
.iv__ex {
  position: absolute;
  left: 0;
  top: 0;
  width: 762px;
  height: 442px;
  padding: 16px 20px;
  opacity: 0;
  animation: ivEx var(--iv-loop) infinite;
}
.iv__filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}
.iv__field {
  height: 26px;
  padding: 7px 9px 0;
  overflow: hidden;
  border: 1px solid #D3D3D3;
  border-radius: 3px;
  color: var(--text-secondary);
  font-size: 10.5px;
  white-space: nowrap;
}
.iv__qis { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; font-size: 12px; }
.iv__qis b {
  width: 90px;
  padding: 3px 0;
  border-radius: 3px;
  background: #DCDCDC;
  font-size: 10.5px;
  font-weight: 500;
  text-align: center;
}
.iv__tr {
  display: grid;
  grid-template-columns: 100px 140px 80px 104px 110px minmax(0, 1fr);
  align-items: center;
  height: 40px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 11.5px;
  white-space: nowrap;
}
.iv__tr--head { height: 32px; border-bottom-color: var(--border-strong); font: 600 11.5px/1 var(--font-display); }
.iv__body { position: relative; height: 280px; overflow: hidden; }
.iv__stack { transform: translateY(-120px); animation: ivStack var(--iv-loop) infinite; }
.iv__tr--new-1 { animation: ivHot1 var(--iv-loop) infinite; }
.iv__tr--new-2 { animation: ivHot2 var(--iv-loop) infinite; }
.iv__tr--new-3 { animation: ivHot3 var(--iv-loop) infinite; }
.iv__pill {
  justify-self: start;
  min-width: 70px;
  max-width: 118px;
  padding: 3px 10px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--iv-ink);
  color: #fff;
  font-weight: 600;
  font-size: 10.5px;
  text-align: center;
  text-overflow: ellipsis;
}
.iv__neg { color: var(--iv-red); }
.iv__type { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-right: 4px; }
.iv__badge {
  width: 84px;
  padding: 3px 0;
  border-radius: 3px;
  color: #fff;
  font-weight: 600;
  font-size: 10.5px;
  text-align: center;
}
.iv__badge--inv { background: var(--iv-blue); }
.iv__badge--rec { background: var(--iv-cyan); }
.iv__info {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #8A8A8A;
}
.iv__info::after {
  content: "i";
  position: absolute;
  inset: 0;
  color: #fff;
  font: 700 9px/13px Georgia, serif;
  text-align: center;
}

/* ---- Cursor + click ---- */
.iv__cursor { z-index: 6; animation-name: ivCursor; animation-duration: var(--iv-loop); }
.iv__ripple { z-index: 5; left: 416px; top: 368px; animation: qdRipple var(--iv-loop) infinite; animation-delay: 3.96s; } /* 36% Complete */

/* ---- Keyframes (% of 11s) ---- */
/* parts fly to their slot in the card, shrink and fade as they land */
@keyframes ivPart1 {
  0%, 6%    { opacity: 1; transform: none; animation-timing-function: var(--iv-ease); }
  12%       { opacity: 1; transform: translate(242px, 70px) scale(.4); }
  13%       { opacity: 0; transform: translate(242px, 70px) scale(.4); }
  96.9%     { opacity: 0; transform: translate(242px, 70px) scale(.4); }
  97%       { opacity: 0; transform: none; }
  100%      { opacity: 1; transform: none; }
}
@keyframes ivPart2 {
  0%, 12%   { opacity: 1; transform: none; animation-timing-function: var(--iv-ease); }
  18%       { opacity: 1; transform: translate(242px, 6px) scale(.4); }
  19%       { opacity: 0; transform: translate(242px, 6px) scale(.4); }
  96.9%     { opacity: 0; transform: translate(242px, 6px) scale(.4); }
  97%       { opacity: 0; transform: none; }
  100%      { opacity: 1; transform: none; }
}
@keyframes ivPart3 {
  0%, 18%   { opacity: 1; transform: none; animation-timing-function: var(--iv-ease); }
  24%       { opacity: 1; transform: translate(242px, -58px) scale(.4); }
  25%       { opacity: 0; transform: translate(242px, -58px) scale(.4); }
  96.9%     { opacity: 0; transform: translate(242px, -58px) scale(.4); }
  97%       { opacity: 0; transform: none; }
  100%      { opacity: 1; transform: none; }
}
@keyframes ivSlot1 { 0%, 12% { opacity: 0; transform: scale(.7); } 13.5%, 96% { opacity: 1; transform: none; } 96.1%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes ivSlot2 { 0%, 18% { opacity: 0; transform: scale(.7); } 19.5%, 96% { opacity: 1; transform: none; } 96.1%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes ivSlot3 { 0%, 24% { opacity: 0; transform: scale(.7); } 25.5%, 96% { opacity: 1; transform: none; } 96.1%, 100% { opacity: 0; transform: scale(.7); } }

@keyframes ivBtn {
  0%, 35.9% { background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border-strong); transform: none; }
  36%       { background: #1E8E4E; box-shadow: inset 0 0 0 1px #1E8E4E; transform: scale(.94); }
  37.5%, 96% { background: #1E8E4E; box-shadow: inset 0 0 0 1px #1E8E4E; transform: none; }
  96.1%, 100% { background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border-strong); transform: none; }
}
@keyframes ivOn36  { 0%, 36.9% { opacity: 0; } 37%, 96% { opacity: 1; } 96.1%, 100% { opacity: 0; } }
@keyframes ivOff36 { 0%, 36.9% { opacity: 1; } 37%, 96% { opacity: 0; } 96.1%, 100% { opacity: 1; } }

/* the work order grows into the explorer, holds, fades, and returns small */
@keyframes ivCard {
  0%, 41%   { left: 300px; top: 70px; width: 230px; height: 330px; opacity: 1; animation-timing-function: cubic-bezier(.6,0,.2,1); }
  50%, 92%  { left: 14px; top: 14px; width: 762px; height: 442px; opacity: 1; }
  96%       { left: 14px; top: 14px; width: 762px; height: 442px; opacity: 0; }
  96.1%, 97% { left: 300px; top: 70px; width: 230px; height: 330px; opacity: 0; }
  100%      { left: 300px; top: 70px; width: 230px; height: 330px; opacity: 1; }
}
@keyframes ivWo { 0%, 41% { opacity: 1; } 44%, 96% { opacity: 0; } 96.1%, 100% { opacity: 1; } }
@keyframes ivEx { 0%, 49% { opacity: 0; } 53%, 96% { opacity: 1; } 96.1%, 100% { opacity: 0; } }

/* drawdowns drop in one at a time, newest on top */
@keyframes ivStack {
  0%, 54%   { transform: translateY(-120px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  56.5%, 57% { transform: translateY(-80px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  59.5%, 60% { transform: translateY(-40px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  62.5%, 96% { transform: none; }
  96.1%, 100% { transform: translateY(-120px); }
}
@keyframes ivHot1 { 0%, 54% { background: transparent; } 56.5%, 66% { background: #E3EDFC; } 76%, 100% { background: transparent; } }
@keyframes ivHot2 { 0%, 57% { background: transparent; } 59.5%, 68% { background: #E3EDFC; } 78%, 100% { background: transparent; } }
@keyframes ivHot3 { 0%, 60% { background: transparent; } 62.5%, 70% { background: #E3EDFC; } 80%, 100% { background: transparent; } }

@keyframes ivTitleWo { 0%, 45.9% { opacity: 1; } 46%, 96% { opacity: 0; } 96.1%, 100% { opacity: 1; } }
@keyframes ivTitleEx { 0%, 45.9% { opacity: 0; } 46%, 96% { opacity: 1; } 96.1%, 100% { opacity: 0; } }

@keyframes ivCursor {
  0%, 26%  { opacity: 0; transform: translate(620px, 440px) scale(1); }
  28%      { opacity: 1; transform: translate(620px, 440px) scale(1); }
  35%      { transform: translate(416px, 366px) scale(1); }
  36%      { transform: translate(416px, 366px) scale(.82); }
  37%      { opacity: 1; transform: translate(416px, 366px) scale(1); }
  41%      { opacity: 0; transform: translate(430px, 380px) scale(1); }
  100%     { opacity: 0; transform: translate(620px, 440px) scale(1); }
}


/* ==========================================================================
   11. Notifications demo — 10s loop, shown in the split-hero window
   An admin's phone, shown at 115% and cropped at the bottom so the
   lock screen reads large. Sequence: screen dark → "Invoice paid" trigger lights up →
   phone buzzes, screen wakes, "Customer paid" drops in →
   "Quote approved" trigger lights up → phone buzzes, the quote alert
   (with the job-site photo) drops in above and pushes the first one down → hold →
   screen dims, alerts clear → reset.
   Timeline is in % of 10s (1% = 100ms). Board is 790 × 470, no browser chrome.
   Base styles = the lock screen with both alerts showing.
   ========================================================================== */

.sd--notif {
  --nt-loop: 10s;
  --nt-brand: var(--pg-brand-500);
  --win-w: 790px;
  --win-r: .5949;
}

.nt__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 18%, rgba(44,91,240,.14), transparent 55%),
    var(--surface-sunken);
  font: 400 11.5px/1.3 var(--font-text);
  color: var(--text-primary);
  text-align: left;
}
.sd--window .nt__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}

/* ---- Phone ---- */
.nt__phone {
  position: absolute;
  left: 230px;
  top: 14px;
  width: 330px;
  height: 640px;
  padding: 12px;
  border-radius: 54px;
  background: #121214;
  box-shadow: 0 0 0 2px #2A2A2E, 0 40px 70px -30px rgba(16,16,19,.55);
  transform-origin: 50% 0;
  scale: 1.15; /* zoomed so the lock-screen text and alerts read comfortably */
  animation: ntBuzz var(--nt-loop) infinite;
}
.nt__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 43px;
  background:
    radial-gradient(circle at 20% 15%, #9DB7FF 0, transparent 45%),
    radial-gradient(circle at 85% 40%, #C8A6F5 0, transparent 50%),
    linear-gradient(160deg, #6F8DF0 0%, #8C79E6 55%, #B48AD8 100%);
  color: #fff;
}
.nt__island {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 13px;
  background: #121214;
}
.nt__status {
  position: absolute;
  left: 30px;
  right: 26px;
  top: 16px;
  display: flex;
  justify-content: space-between;
  font: 600 12px/1 var(--font-text);
}
.nt__status i {
  display: inline-block;
  width: 22px;
  height: 10px;
  border: 1.5px solid #fff;
  border-radius: 3px;
  box-shadow: inset -7px 0 0 #fff;
  opacity: .9;
}
.nt__date {
  position: absolute;
  left: 0;
  right: 0;
  top: 54px;
  font: 500 13px/1 var(--font-text);
  text-align: center;
}
.nt__time {
  position: absolute;
  left: 0;
  right: 0;
  top: 66px;
  font: 300 54px/1 var(--font-display);
  letter-spacing: -.02em;
  text-align: center;
}
/* the screen starts dark and wakes with the first buzz */
.nt__dim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #0B0B10;
  opacity: 0;
  animation: ntDim var(--nt-loop) infinite;
}

/* ---- Notifications ---- */
.nt__stack {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 128px;
  z-index: 2;
}
.nt__card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 11px 13px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 24px -14px rgba(16,16,19,.45);
  color: #1A1A1F;
}
.nt__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: #6B6B73;
  font: 600 10px/1 var(--font-text);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nt__app {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--nt-brand);
  color: #fff;
  font: 800 11px/1 var(--font-display);
  letter-spacing: 0;
}
.nt__head em { margin-left: auto; font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.nt__title { display: block; font: 700 13px/1.25 var(--font-display); }
.nt__ok { color: #1E8E4E; }
.nt__body { display: block; margin-top: 2px; color: #3A3A42; font-size: 11.5px; line-height: 1.35; }

.nt__card--job { animation: ntJob var(--nt-loop) infinite; }
.nt__card--review { animation: ntReview var(--nt-loop) infinite; }

/* job-site photo attached to the quote (a kitchen, drawn in CSS) */
.nt__photo {
  position: relative;
  height: 64px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(#F4ECE1 0 62%, #8D6A4F 62% 67%, #EDE6DC 67% 100%);
}
.nt__photo::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 12%;
  width: 34%;
  height: 40%;
  border: 4px solid #FFFFFF;
  border-radius: 3px;
  background: linear-gradient(#BFE1F7, #E2F2FC);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.nt__photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 33%;
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(0,0,0,.08) 32% 32.6%, transparent 32.6% 66%, rgba(0,0,0,.08) 66% 66.6%, transparent 66.6%),
    #F7F3EE;
}
.nt__plant {
  position: absolute;
  right: 16%;
  top: 34%;
  width: 18px;
  height: 22px;
  border-radius: 0 0 4px 4px;
  background: #E9DCCB;
}
.nt__plant::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -18px;
  width: 30px;
  height: 22px;
  border-radius: 50% 50% 40% 40%;
  background: #6FA36B;
}
.nt__sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: .95;
  animation: ntSparkle 1.6s ease-in-out infinite;
}
.nt__sparkle--1 { left: 62%; top: 52%; }
.nt__sparkle--2 { left: 12%; top: 58%; width: 10px; height: 10px; animation-delay: -.6s; }
.nt__sparkle--3 { left: 46%; top: 18%; width: 9px; height: 9px; animation-delay: -1.1s; }

/* ---- Trigger chips beside the phone ---- */
.nt__trigger {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 9px;
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: 0 0 0 1px var(--border-hairline), 0 14px 28px -18px rgba(16,16,19,.45);
  font: 600 11.5px/1.2 var(--font-display);
  white-space: nowrap;
  opacity: 0;
}
.nt__trigger small {
  display: block;
  color: var(--text-secondary);
  font: 500 9.5px/1.2 var(--font-text);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nt__bolt {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--pg-brand-50);
  color: var(--nt-brand);
}
.nt__bolt svg { width: 15px; height: 15px; fill: currentColor; }
.nt__trigger--job { left: 20px; top: 196px; animation: ntTrigJob var(--nt-loop) infinite; }
.nt__trigger--review { right: 20px; top: 136px; animation: ntTrigReview var(--nt-loop) infinite; }

/* ---- Keyframes (% of 10s) ---- */
@keyframes ntDim {
  0%, 9%    { opacity: .62; }
  11%, 88%  { opacity: 0; }
  94%, 100% { opacity: .62; }
}
@keyframes ntBuzz {
  0%, 9.9%   { transform: none; }
  10.5%      { transform: translateX(-3px) rotate(-.6deg); }
  11.1%      { transform: translateX(3px) rotate(.6deg); }
  11.7%      { transform: translateX(-2px) rotate(-.4deg); }
  12.3%, 39.9% { transform: none; }
  40.5%      { transform: translateX(-3px) rotate(-.6deg); }
  41.1%      { transform: translateX(3px) rotate(.6deg); }
  41.7%      { transform: translateX(-2px) rotate(-.4deg); }
  42.3%, 100% { transform: none; }
}
/* first alert: drops in, then slides down when the review arrives above it */
@keyframes ntJob {
  0%, 10%   { opacity: 0; transform: translateY(-26px) scale(.95); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  13%, 40%  { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  43.5%, 87% { opacity: 1; transform: translateY(168px); }
  91%, 100% { opacity: 0; transform: translateY(168px) scale(.97); }
}
@keyframes ntReview {
  0%, 40%   { opacity: 0; transform: translateY(-26px) scale(.95); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  43.5%, 87% { opacity: 1; transform: none; }
  91%, 100% { opacity: 0; transform: scale(.97); }
}
@keyframes ntTrigJob {
  0%, 6%    { opacity: 0; transform: translateX(-10px); }
  8%, 11%   { opacity: 1; transform: none; box-shadow: 0 0 0 1px var(--border-hairline), 0 0 0 6px rgba(44,91,240,.18); }
  15%, 86%  { opacity: 1; transform: none; box-shadow: 0 0 0 1px var(--border-hairline), 0 14px 28px -18px rgba(16,16,19,.45); }
  90%, 100% { opacity: 0; transform: translateX(-10px); }
}
@keyframes ntTrigReview {
  0%, 36%   { opacity: 0; transform: translateX(10px); }
  38%, 41%  { opacity: 1; transform: none; box-shadow: 0 0 0 1px var(--border-hairline), 0 0 0 6px rgba(44,91,240,.18); }
  45%, 86%  { opacity: 1; transform: none; box-shadow: 0 0 0 1px var(--border-hairline), 0 14px 28px -18px rgba(16,16,19,.45); }
  90%, 100% { opacity: 0; transform: translateX(10px); }
}
@keyframes ntSparkle {
  0%, 100% { transform: scale(.6) rotate(0); opacity: .5; }
  50%      { transform: scale(1) rotate(45deg); opacity: 1; }
}

/* ---- Base-frame fixes for reduced motion: show both alerts stacked ---- */
@media (prefers-reduced-motion: reduce) {
  .nt__card--job { transform: translateY(168px); }
  .nt__trigger { opacity: 1; }
}


/* ==========================================================================
   12. Completion cascade demo — 32s loop, shown in the split-hero window
   Starts close on the technician's phone (same handset as the notifications
   demo). The cursor taps Mark Complete, then the camera pans right along a
   rail, stopping on each thing the completion set off: invoice, stock,
   card charge, emailed receipt, QuickBooks, review request. Each panel fills in as the camera
   arrives and holds for 3s so it can be read. Last, the camera pulls
   back to show the whole chain with "1 tap · 6 tasks done", then a quick
   fade resets the loop.
   The world (.cc__world) is 3105px wide; panel n is centred at x = 395 + 420n,
   so the camera sits on panel n at translateX(-420n px).
   Times (s): tap 2.0 · panels 4.4 · 8.4 · 12.4 · 16.4 · 20.4 · 24.4 · pull back 27.4–28.8 · reset 31.6.
   Timeline is in % of 32s. Board is 790 × 470, no browser chrome.
   Base styles = the overview with every panel filled in, so reduced motion
   shows the finished chain.
   ========================================================================== */

.sd--cascade {
  --cc-loop: 32s;
  --cc-brand: #2C5BF0;
  --cc-soft: #EEF2FE;
  --cc-ok: #1E8E4E;
  --cc-ok-ink: #146C3A;
  --cc-ok-soft: #E5F4EA;
  --win-w: 790px;
  --win-r: .5949;
}

.cc__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 18%, rgba(44,91,240,.12), transparent 55%),
    var(--surface-sunken, #F1F0EC);
  font: 400 13px/1.35 var(--font-text, system-ui, sans-serif);
  color: #17171B;
  text-align: left;
}
.sd--window .cc__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.cc__ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- The world the camera moves over ---- */
.cc__world {
  position: absolute;
  left: 0;
  top: 0;
  width: 3105px;
  height: 700px;
  transform-origin: 0 0;
  transform: translate(-35px, 145px) scale(0.261);
  animation: ccCam var(--cc-loop) infinite;
}

/* rail from the phone to the last panel, lit as the camera travels */
.cc__rail,
.cc__lit {
  position: absolute;
  left: 560px;
  top: 233px;
  width: 2205px;
  height: 4px;
  border-radius: 2px;
}
.cc__rail { background: rgba(16,16,19,.12); }
.cc__lit {
  background: var(--cc-brand);
  transform-origin: 0 50%;
  animation: ccLit var(--cc-loop) infinite;
}
.cc__pulse {
  position: absolute;
  left: 552px;
  top: 227px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cc-brand);
  box-shadow: 0 0 0 5px rgba(44,91,240,.18);
  opacity: 0;
  animation: ccPulse var(--cc-loop) infinite;
}

/* ---- Phone (same handset as the notifications demo) ---- */
.cc__phone {
  position: absolute;
  left: 230px;
  top: 24px;
  width: 330px;
  height: 640px;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 54px;
  background: #121214;
  box-shadow: 0 0 0 2px #2A2A2E, 0 40px 70px -30px rgba(16,16,19,.55);
}
.cc__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 43px;
  background: #F6F6F8;
  color: #1A1A1F;
}
.cc__island {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 13px;
  background: #121214;
}
.cc__status {
  position: absolute;
  left: 30px;
  right: 26px;
  top: 16px;
  display: flex;
  justify-content: space-between;
  font: 600 12px/1 var(--font-text, system-ui, sans-serif);
}
.cc__status i {
  display: inline-block;
  box-sizing: border-box;
  width: 22px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-shadow: inset -7px 0 0 currentColor;
  opacity: .85;
}
.cc__nav {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 54px;
  display: flex;
  justify-content: space-between;
  color: #55555F;
  font-size: 13px;
}
.cc__nav b { color: var(--cc-brand); font-weight: 600; }
.cc__job { position: absolute; left: 20px; right: 20px; top: 82px; }
.cc__job strong {
  display: block;
  font: 800 23px/1.15 var(--font-display, system-ui, sans-serif);
  letter-spacing: -.02em;
}
.cc__job span { display: block; margin-top: 4px; color: #55555F; font-size: 14px; }
.cc__card {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 140px;
  display: grid;
  gap: 9px;
  padding: 13px 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.08);
  font-size: 13.5px;
}
.cc__row { display: flex; align-items: center; gap: 9px; height: 18px; color: #3A3A42; white-space: nowrap; }
.cc__row svg { width: 16px; height: 16px; flex: 0 0 auto; color: #17171B; }
.cc__pip { width: 8px; height: 8px; margin: 0 4px; flex: 0 0 auto; border-radius: 50%; background: var(--cc-ok); }
.cc__swap { position: relative; flex: 1 1 auto; height: 18px; }
.cc__swap span { position: absolute; left: 0; top: 0; }
.cc__swap span:first-child { opacity: 0; animation: ccShowBefore var(--cc-loop) infinite; }
.cc__swap span:last-child { color: var(--cc-ok-ink); font-weight: 600; animation: ccShowAfter var(--cc-loop) infinite; }
.cc__btn {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 262px;
  height: 56px;
  border-radius: 16px;
  background: var(--cc-ok-soft);
  font: 700 17px/1 var(--font-display, system-ui, sans-serif);
  animation: ccBtn var(--cc-loop) infinite;
}
.cc__btn span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cc__btn-out { color: #fff; opacity: 0; animation: ccShowBefore var(--cc-loop) infinite; }
.cc__btn-done { color: var(--cc-ok-ink); animation: ccShowAfter var(--cc-loop) infinite; }
.cc__btn svg { width: 19px; height: 19px; stroke-width: 2.8; }
/* toast under the island once the job is complete */
.cc__toast {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 46px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: #17171B;
  color: #fff;
  font: 600 13px/1.25 var(--font-text, system-ui, sans-serif);
  box-shadow: 0 14px 28px -14px rgba(16,16,19,.6);
  opacity: 0;
  animation: ccToast var(--cc-loop) infinite;
}
.cc__toast b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cc-ok);
}
.cc__toast b svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; }
.cc__toast small { display: block; color: rgba(255,255,255,.7); font-weight: 500; font-size: 12px; }

/* ---- Result panels ---- */
.cc__panel {
  position: absolute;
  top: 105px;
  width: 300px;
  height: 260px;
  box-sizing: border-box;
  border-radius: 20px;
}
.cc__panel--1 { left: 665px; }
.cc__panel--2 { left: 1085px; }
.cc__panel--3 { left: 1505px; }
.cc__panel--4 { left: 1925px; }
.cc__panel--5 { left: 2345px; }
.cc__panel--6 { left: 2765px; }

/* idle: a dashed placeholder waiting for the job to complete */
.cc__idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(16,16,19,.18);
  border-radius: 20px;
  color: #6B6B75;
  font: 600 15px/1.2 var(--font-display, system-ui, sans-serif);
  text-align: center;
  opacity: 0;
}
.cc__idle small { color: #8A8A94; font: 500 12px/1.3 var(--font-text, system-ui, sans-serif); }
.cc__idle .cc__chip { background: rgba(16,16,19,.06); color: #6B6B75; }

/* live: the result, filled in when the camera arrives */
.cc__live {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45);
}
.cc__head { display: flex; align-items: center; gap: 12px; }
.cc__chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--cc-soft);
  color: var(--cc-brand);
}
.cc__chip svg { width: 21px; height: 21px; }
.cc__chip--ok { background: var(--cc-ok-soft); color: var(--cc-ok); }
.cc__step {
  display: block;
  color: #6B6B75;
  font: 600 11px/1 var(--font-text, system-ui, sans-serif);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cc__name { display: block; margin-top: 4px; font: 800 18px/1.15 var(--font-display, system-ui, sans-serif); letter-spacing: -.01em; }
.cc__auto {
  margin-left: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cc-soft);
  color: #2340C4;
  font: 700 11px/1.2 var(--font-text, system-ui, sans-serif);
}
.cc__auto svg { width: 10px; height: 10px; fill: currentColor; }
.cc__big { font: 800 30px/1 var(--font-display, system-ui, sans-serif); letter-spacing: -.02em; }
.cc__lines { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(16,16,19,.08); font-size: 13.5px; }
.cc__line { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; }
.cc__line span:first-child { color: #55555F; }
.cc__line--total { padding-top: 6px; border-top: 1px solid rgba(16,16,19,.12); font-weight: 800; }
.cc__line--total span:first-child { color: #17171B; }
.cc__neg { color: #C62828; font-weight: 700; }
.cc__link { display: block; margin-top: 6px; color: #1A5FD6; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.cc__flow { display: grid; gap: 8px; }
.cc__send {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F4F5F7;
  font-size: 13.5px;
  white-space: nowrap;
}
.cc__send svg { width: 16px; height: 16px; flex: 0 0 auto; color: #2CA01C; }
.cc__send b { margin-left: auto; font-weight: 700; }
.cc__mail { display: grid; gap: 7px; padding: 12px 13px; border-radius: 12px; background: #F4F5F7; font-size: 13.5px; }
.cc__mail div { display: flex; gap: 8px; white-space: nowrap; }
.cc__mail div span:first-child { width: 52px; flex: 0 0 auto; color: #6B6B75; }
.cc__chip--qb { background: #fff; box-shadow: 0 0 0 1px rgba(16,16,19,.1); }
.cc__chip--qb img { display: block; width: 28px; height: 28px; object-fit: contain; }
.cc__sms {
  align-self: flex-start;
  max-width: 230px;
  padding: 10px 13px;
  border-radius: 16px 16px 16px 4px;
  background: #ECEDF1;
  font-size: 13.5px;
}
.cc__tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--cc-ok-soft);
  color: var(--cc-ok-ink);
  font: 700 12.5px/1 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
}
.cc__tag--warn { background: #FDF1DA; color: #7A4D00; }
.cc__tag--info { background: var(--cc-soft); color: #2340C4; }
.cc__panel--1 .cc__idle { animation: ccIdle1 var(--cc-loop) infinite; }
.cc__panel--1 .cc__live { animation: ccLive1 var(--cc-loop) infinite; }
.cc__panel--2 .cc__idle { animation: ccIdle2 var(--cc-loop) infinite; }
.cc__panel--2 .cc__live { animation: ccLive2 var(--cc-loop) infinite; }
.cc__panel--3 .cc__idle { animation: ccIdle3 var(--cc-loop) infinite; }
.cc__panel--3 .cc__live { animation: ccLive3 var(--cc-loop) infinite; }
.cc__panel--4 .cc__idle { animation: ccIdle4 var(--cc-loop) infinite; }
.cc__panel--4 .cc__live { animation: ccLive4 var(--cc-loop) infinite; }
.cc__panel--5 .cc__idle { animation: ccIdle5 var(--cc-loop) infinite; }
.cc__panel--5 .cc__live { animation: ccLive5 var(--cc-loop) infinite; }
.cc__panel--6 .cc__idle { animation: ccIdle6 var(--cc-loop) infinite; }
.cc__panel--6 .cc__live { animation: ccLive6 var(--cc-loop) infinite; }

/* ---- "1 tap · 6 tasks done" over the pulled-back view ---- */
.cc__done {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 3;
  display: flex;
  justify-content: center;
  animation: ccDone var(--cc-loop) infinite;
}
.cc__done-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 11px;
  border-radius: 999px;
  background: #17171B;
  color: #fff;
  font: 700 16px/1 var(--font-display, system-ui, sans-serif);
  box-shadow: 0 16px 30px -16px rgba(16,16,19,.6);
}
.cc__done-check {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cc-ok);
}
.cc__done-check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 5px;
  height: 10px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}
/* quick fade that hides the camera jumping back to the phone */
.cc__veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--surface-sunken, #F1F0EC);
  opacity: 0;
  pointer-events: none;
  animation: ccVeil var(--cc-loop) infinite;
}

/* ---- Cursor + tap (board coordinates; the camera is on the phone) ---- */
.cc__cursor { z-index: 6; animation-name: ccCursor; animation-duration: var(--cc-loop); }
.cc__ripple {
  left: 395px;
  top: 326px;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  z-index: 5;
  border-color: var(--cc-ok);
  animation: ccRipple var(--cc-loop) infinite;
}

/* ---- Keyframes (% of 32s) ---- */
/* close on the phone → each panel in turn → pull back → reset under the veil */
@keyframes ccCam {
  0%, 10.63% { transform: translate(0, 0) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  13.75%, 23.12% { transform: translate(-420px, 0) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  26.25%, 35.62% { transform: translate(-840px, 0) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  38.75%, 48.12% { transform: translate(-1260px, 0) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  51.25%, 60.62% { transform: translate(-1680px, 0) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  63.75%, 73.12% { transform: translate(-2100px, 0) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  76.25%, 85.62% { transform: translate(-2520px, 0) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  90%, 98.72% { transform: translate(-35px, 145px) scale(0.261); }
  98.75%, 100% { transform: translate(0, 0) scale(1); }
}
@keyframes ccLit {
  0%, 10.63% { transform: scaleX(0); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  13.75%, 23.12% { transform: scaleX(0.0476); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  26.25%, 35.62% { transform: scaleX(0.2381); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  38.75%, 48.12% { transform: scaleX(0.4286); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  51.25%, 60.62% { transform: scaleX(0.6190); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  63.75%, 73.12% { transform: scaleX(0.8095); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  76.25%, 98.72% { transform: scaleX(1.0000); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  98.75%, 100% { transform: scaleX(0); }
}
@keyframes ccPulse {
  0%, 9.69% { opacity: 0; transform: translateX(0); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  10.63% { opacity: 1; transform: translateX(0); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  13.75%, 23.12% { opacity: 1; transform: translateX(105px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  26.25%, 35.62% { opacity: 1; transform: translateX(525px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  38.75%, 48.12% { opacity: 1; transform: translateX(945px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  51.25%, 60.62% { opacity: 1; transform: translateX(1365px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  63.75%, 73.12% { opacity: 1; transform: translateX(1785px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  76.25%, 85.62% { opacity: 1; transform: translateX(2205px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  90%, 100% { opacity: 0; transform: translateX(2205px); }
}
@keyframes ccIdle1 {
  0%, 13.28% { opacity: 1; }
  14.22%, 98.72% { opacity: 0; }
  98.75%, 100% { opacity: 1; }
}
@keyframes ccLive1 {
  0%, 13.44% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  15.31%, 23.12% { opacity: 1; transform: none; box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 8px rgba(44,91,240,.14), 0 24px 44px -24px rgba(16,16,19,.45); }
  24.38%, 98.72% { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  98.75%, 100% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
}
@keyframes ccIdle2 {
  0%, 25.78% { opacity: 1; }
  26.72%, 98.72% { opacity: 0; }
  98.75%, 100% { opacity: 1; }
}
@keyframes ccLive2 {
  0%, 25.94% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  27.81%, 35.62% { opacity: 1; transform: none; box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 8px rgba(44,91,240,.14), 0 24px 44px -24px rgba(16,16,19,.45); }
  36.88%, 98.72% { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  98.75%, 100% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
}
@keyframes ccIdle3 {
  0%, 38.28% { opacity: 1; }
  39.22%, 98.72% { opacity: 0; }
  98.75%, 100% { opacity: 1; }
}
@keyframes ccLive3 {
  0%, 38.44% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  40.31%, 48.12% { opacity: 1; transform: none; box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 8px rgba(44,91,240,.14), 0 24px 44px -24px rgba(16,16,19,.45); }
  49.38%, 98.72% { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  98.75%, 100% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
}
@keyframes ccIdle4 {
  0%, 50.78% { opacity: 1; }
  51.72%, 98.72% { opacity: 0; }
  98.75%, 100% { opacity: 1; }
}
@keyframes ccLive4 {
  0%, 50.94% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  52.81%, 60.62% { opacity: 1; transform: none; box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 8px rgba(44,91,240,.14), 0 24px 44px -24px rgba(16,16,19,.45); }
  61.87%, 98.72% { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  98.75%, 100% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
}
@keyframes ccIdle5 {
  0%, 63.28% { opacity: 1; }
  64.22%, 98.72% { opacity: 0; }
  98.75%, 100% { opacity: 1; }
}
@keyframes ccLive5 {
  0%, 63.44% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  65.31%, 73.12% { opacity: 1; transform: none; box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 8px rgba(44,91,240,.14), 0 24px 44px -24px rgba(16,16,19,.45); }
  74.37%, 98.72% { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  98.75%, 100% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
}
@keyframes ccIdle6 {
  0%, 75.78% { opacity: 1; }
  76.72%, 98.72% { opacity: 0; }
  98.75%, 100% { opacity: 1; }
}
@keyframes ccLive6 {
  0%, 75.94% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  77.81%, 85.62% { opacity: 1; transform: none; box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 8px rgba(44,91,240,.14), 0 24px 44px -24px rgba(16,16,19,.45); }
  86.87%, 98.72% { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
  98.75%, 100% { opacity: 0; transform: translateY(12px) scale(.97); box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 24px 44px -26px rgba(16,16,19,.45); }
}
@keyframes ccCursor {
  0%    { opacity: 0; transform: translate(560px, 300px) scale(1); }
  1.25%  { opacity: 1; transform: translate(560px, 300px) scale(1); }
  5% { transform: translate(392px, 323px) scale(1); }
  6.25% { transform: translate(392px, 413px) scale(.82); }
  6.72% { transform: translate(392px, 413px) scale(1); }
  8.12% { opacity: 1; transform: translate(392px, 413px) scale(1); }
  9.38% { opacity: 0; transform: translate(420px, 350px) scale(1); }
  100%  { opacity: 0; transform: translate(560px, 300px) scale(1); }
}
@keyframes ccRipple {
  0%, 6.22% { opacity: 0; transform: scale(.4); }
  6.25%     { opacity: .9; transform: scale(.4); }
  7.81%     { opacity: 0; transform: scale(1.6); }
  100%       { opacity: 0; transform: scale(1.6); }
}
@keyframes ccBtn {
  0%, 6.09% { background: #1E8E4E; transform: none; }
  6.25%     { background: #176E3C; transform: scale(.95); }
  6.88%, 98.72% { background: #E5F4EA; transform: none; }
  98.75%, 100% { background: #1E8E4E; transform: none; }
}
@keyframes ccShowBefore { 0%, 6.72% { opacity: 1; } 6.88%, 98.72% { opacity: 0; } 98.75%, 100% { opacity: 1; } }
@keyframes ccShowAfter  { 0%, 6.72% { opacity: 0; } 6.88%, 98.72% { opacity: 1; } 98.75%, 100% { opacity: 0; } }
@keyframes ccToast {
  0%, 7.19% { opacity: 0; transform: translateY(-14px) scale(.96); }
  8.44%, 85.62% { opacity: 1; transform: none; }
  86.87%, 100% { opacity: 0; transform: translateY(-14px) scale(.96); }
}
@keyframes ccDone {
  0%, 89.38% { opacity: 0; transform: translateY(10px) scale(.96); }
  90.94%, 97.5% { opacity: 1; transform: none; }
  98.44%, 100% { opacity: 0; transform: translateY(10px) scale(.96); }
}
@keyframes ccVeil {
  0%, 97.5% { opacity: 0; }
  98.75%     { opacity: 1; }
  100%       { opacity: 0; }
}

/* ---- Reduced motion: the pulled-back view with every result filled in ---- */
@media (prefers-reduced-motion: reduce) {
  .cc__idle { opacity: 0; }
  .cc__btn { background: #E5F4EA; }
  .cc__btn-out, .cc__swap span:first-child { opacity: 0; }
  .cc__btn-done, .cc__swap span:last-child { opacity: 1; }
  .cc__lit { transform: none; }
  .cc__done { opacity: 1; }
}


/* ==========================================================================
   13. Work order to invoice demo — 10s loop, shown in the split-hero window
   Left: the technician's phone (same handset and job screen as the
   completion cascade). Right: the record itself, as a card.
   Sequence: the cursor taps Mark Complete on the phone (14%) → the button
   settles as Completed and a toast confirms (15–17%) → a pulse runs along
   the link to the record (18–24%) → the card flips over (26–36%): the
   Work Order face turns into the Invoice face, same ID → "same record"
   pops beside the ID (38%) and the Due Date row lights up (40–50%) →
   hold → veil, reset (88–100%).
   Timeline is in % of 10s (1% = 100ms). Board is 790 × 470, no chrome.
   Base styles = the completed phone and the Invoice face, so reduced
   motion shows the end result.
   ========================================================================== */

.sd--doc {
  --wo-loop: 10s;
  --wo-brand: #2C5BF0;
  --wo-soft: #EEF2FE;
  --wo-app: #13B5EA;
  --wo-ink: #17171B;
  --wo-ease: cubic-bezier(.65,0,.35,1);
  --win-w: 790px;
  --win-r: .5949;
}

.wo__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 18%, rgba(44,91,240,.12), transparent 55%),
    var(--surface-sunken, #F1F0EC);
  font: 400 12px/1.35 var(--font-text, system-ui, sans-serif);
  color: var(--wo-ink);
  text-align: left;
}
.sd--window .wo__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.wo__ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* a line whose content changes: both versions stacked in one grid cell */
.wo__stack { display: inline-grid; }
.wo__stack > * { grid-area: 1 / 1; }

/* ---- Phone (completion cascade handset, drawn at 330 × 640, shown at 68%) ---- */
.wo__phone {
  position: absolute;
  left: 40px;
  top: 18px;
  width: 330px;
  height: 640px;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 54px;
  background: #121214;
  box-shadow: 0 0 0 2px #2A2A2E, 0 40px 70px -30px rgba(16,16,19,.55);
  transform-origin: 0 0;
  transform: scale(.68);
}
.wo__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 43px;
  background: #F6F6F8;
  color: #1A1A1F;
}
.wo__island {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 13px;
  background: #121214;
}
.wo__status {
  position: absolute;
  left: 30px;
  right: 26px;
  top: 16px;
  display: flex;
  justify-content: space-between;
  font: 600 12px/1 var(--font-text, system-ui, sans-serif);
}
.wo__status i {
  display: inline-block;
  box-sizing: border-box;
  width: 22px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-shadow: inset -7px 0 0 currentColor;
  opacity: .85;
}
.wo__nav {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 54px;
  display: flex;
  justify-content: space-between;
  color: #55555F;
  font-size: 13px;
}
.wo__nav b { color: var(--wo-brand); font-weight: 600; }
.wo__job { position: absolute; left: 20px; right: 20px; top: 82px; }
.wo__job strong {
  display: block;
  font: 800 23px/1.15 var(--font-display, system-ui, sans-serif);
  letter-spacing: -.02em;
}
.wo__job span { display: block; margin-top: 4px; color: #55555F; font-size: 14px; }
.wo__pcard {
  position: absolute;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 9px;
  padding: 13px 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.08);
  font-size: 13.5px;
}
.wo__pcard--info { top: 140px; }
.wo__pcard--more { top: 344px; gap: 12px; }
.wo__row { display: flex; align-items: center; gap: 9px; height: 18px; color: #3A3A42; white-space: nowrap; }
.wo__row > .wo__ico { width: 16px; height: 16px; flex: 0 0 auto; color: #17171B; }
.wo__row b { margin-left: auto; font-weight: 700; color: #17171B; }
.wo__pip { width: 8px; height: 8px; margin: 0 4px; flex: 0 0 auto; border-radius: 50%; background: var(--wo-brand); }
.wo__row .wo__stack > :first-child { opacity: 0; animation: woBefore var(--wo-loop) infinite; }
.wo__row .wo__stack > :last-child { font-weight: 600; color: #17171B; animation: woAfter var(--wo-loop) infinite; }
.wo__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--wo-brand);
}
.wo__thumbs { display: flex; gap: 8px; }
.wo__thumbs i {
  flex: 1 1 0;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(#F4ECE1 0 58%, #C9B9A6 58% 62%, #EDE6DC 62%);
}
.wo__thumbs i:nth-child(2) { background: linear-gradient(160deg, #D7E6F2, #B9CDDF 60%, #E9EEF2 60%); }
.wo__thumbs i:nth-child(3) { background: linear-gradient(#EEF0F2 0 46%, #8D6A4F 46% 52%, #F7F3EE 52%); }
.wo__btn {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 262px;
  height: 56px;
  border-radius: 16px;
  background: #EEF2FE;
  font: 700 17px/1 var(--font-display, system-ui, sans-serif);
  animation: woBtn var(--wo-loop) infinite;
}
.wo__btn > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wo__btn-out { color: #fff; opacity: 0; animation: woBefore var(--wo-loop) infinite; }
.wo__btn-done { color: #1F3FB8; animation: woAfter var(--wo-loop) infinite; }
.wo__btn .wo__ico { width: 19px; height: 19px; stroke-width: 2.8; }
.wo__tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  height: 74px;
  padding-top: 12px;
  box-sizing: border-box;
  border-top: 1px solid rgba(16,16,19,.07);
  background: #fff;
  color: #9A9AA4;
  font: 600 10.5px/1 var(--font-text, system-ui, sans-serif);
}
.wo__tabs span { display: grid; justify-items: center; gap: 5px; }
.wo__tabs .wo__ico { width: 20px; height: 20px; }
.wo__tabs .is-on { color: var(--wo-brand); }
.wo__toast {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 46px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: #17171B;
  color: #fff;
  font: 600 13px/1.25 var(--font-text, system-ui, sans-serif);
  box-shadow: 0 14px 28px -14px rgba(16,16,19,.6);
  opacity: 0;
  animation: woToast var(--wo-loop) infinite;
}
.wo__toast b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wo-brand);
}
.wo__toast b .wo__ico { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; }
.wo__toast small { display: block; color: rgba(255,255,255,.7); font-weight: 500; font-size: 12px; }

/* ---- Link from the phone to the record ---- */
.wo__link,
.wo__lit {
  position: absolute;
  left: 268px;
  top: 222px;
  width: 64px;
  height: 3px;
  border-radius: 2px;
}
.wo__link { background: repeating-linear-gradient(90deg, rgba(16,16,19,.2) 0 6px, transparent 6px 11px); }
.wo__lit {
  background: var(--wo-brand);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: woLit var(--wo-loop) infinite;
}
.wo__pulse {
  position: absolute;
  left: 262px;
  top: 217px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--wo-brand);
  box-shadow: 0 0 0 5px rgba(44,91,240,.18);
  opacity: 0;
  animation: woPulse var(--wo-loop) infinite;
}

/* ---- The record: a card that flips from Work Order to Invoice ---- */
.wo__stage {
  position: absolute;
  left: 336px;
  top: 24px;
  width: 420px;
  height: 422px;
  perspective: 1400px;
}
.wo__flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  animation: woFlip var(--wo-loop) infinite;
}
.wo__face {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 22px 24px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 30px 50px -30px rgba(16,16,19,.5);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.wo__face::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--wo-app);
}
.wo__face--inv { transform: rotateY(180deg); }
.wo__face--inv::before { background: var(--wo-brand); }

.wo__head { display: flex; align-items: center; gap: 12px; }
.wo__chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #E3F6FD;
  color: #0B7FA6;
}
.wo__chip .wo__ico { width: 21px; height: 21px; }
.wo__face--inv .wo__chip { background: var(--wo-soft); color: var(--wo-brand); }
.wo__kind { display: block; color: #6B6B75; font: 600 10.5px/1 var(--font-text, system-ui, sans-serif); letter-spacing: .07em; text-transform: uppercase; }
.wo__title { display: block; margin-top: 4px; font: 800 22px/1 var(--font-display, system-ui, sans-serif); letter-spacing: -.02em; }
.wo__pill {
  margin-left: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 700 11px/1 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
}
.wo__pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wo__pill--wo { background: #E3F6FD; color: #0B6E90; animation: woPillWo var(--wo-loop) infinite; }
.wo__pill--inv { background: #FDF1DA; color: #7A4D00; }

.wo__meta {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  row-gap: 7px;
  margin: 16px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #F6F7F9;
  font-size: 12px;
}
.wo__meta dt { color: #6B6B75; }
.wo__meta dd { margin: 0; font-weight: 600; white-space: nowrap; }
.wo__id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; letter-spacing: .02em; }
.wo__same {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--wo-soft);
  color: #1F3FB8;
  font: 700 10px/1.3 var(--font-text, system-ui, sans-serif);
  vertical-align: 1px;
  animation: woSame var(--wo-loop) infinite;
}
.wo__due { margin: 0 -6px; padding: 0 6px; border-radius: 6px; animation: woDue var(--wo-loop) infinite; }

.wo__lines { display: grid; font-size: 12.5px; }
.wo__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  height: 23px;
  align-items: center;
  border-bottom: 1px solid rgba(16,16,19,.07);
  white-space: nowrap;
}
.wo__line small { margin-left: 6px; color: #8A8A94; font-size: 11px; }
.wo__line--head { height: 22px; color: #6B6B75; font: 600 10.5px/1 var(--font-text, system-ui, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.wo__line--sub { height: 19px; border-bottom: 0; color: #55555F; font-size: 12px; }
.wo__line--sub:first-of-type { margin-top: 4px; }
.wo__line--total { height: 32px; margin-top: 4px; border-top: 1px solid rgba(16,16,19,.14); border-bottom: 0; font: 800 15px/1 var(--font-display, system-ui, sans-serif); }

.wo__foot {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #55555F;
  font-size: 12px;
  white-space: nowrap;
}
.wo__av {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFD3A8, #F59E8C);
  color: #6A2E14;
  font: 700 10px/1 var(--font-display, system-ui, sans-serif);
}
.wo__foot b { color: #17171B; font-weight: 700; }
.wo__pay {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--wo-brand);
  color: #fff;
  font: 700 12px/1 var(--font-display, system-ui, sans-serif);
}
.wo__ghost {
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(16,16,19,.14);
  color: #3A3A42;
  font: 600 12px/1 var(--font-text, system-ui, sans-serif);
}

.wo__veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--surface-sunken, #F1F0EC);
  opacity: 0;
  pointer-events: none;
  animation: woVeil var(--wo-loop) infinite;
}

/* ---- Cursor + tap (board coordinates; the button centre is 152, 223) ---- */
.wo__cursor { z-index: 7; animation-name: woCursor; animation-duration: var(--wo-loop); }
.wo__ripple {
  left: 152px;
  top: 223px;
  z-index: 5;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-color: var(--wo-brand);
  animation: woRipple var(--wo-loop) infinite;
}

/* ---- Keyframes (% of 10s) ---- */
@keyframes woCursor {
  0%, 2%   { opacity: 0; transform: translate(560px, 420px) scale(1); }
  4%       { opacity: 1; transform: translate(560px, 420px) scale(1); animation-timing-function: var(--wo-ease); }
  12.5%    { transform: translate(149px, 220px) scale(1); }
  14%      { transform: translate(149px, 220px) scale(.82); }
  15.5%    { opacity: 1; transform: translate(149px, 220px) scale(1); }
  20%, 100% { opacity: 0; transform: translate(170px, 250px) scale(1); }
}
@keyframes woRipple {
  0%, 13.9% { opacity: 0; transform: scale(.4); }
  14%       { opacity: .9; transform: scale(.4); }
  18%, 100% { opacity: 0; transform: scale(1.6); }
}
/* Mark Complete: solid brand, pressed, settles as a soft Completed state */
@keyframes woBtn {
  0%, 13.9% { background: #2C5BF0; transform: none; }
  14%       { background: #1F45C9; transform: scale(.95); }
  15.5%, 91.9% { background: #EEF2FE; transform: none; }
  92%, 100% { background: #2C5BF0; transform: none; }
}
@keyframes woBefore { 0%, 15.4% { opacity: 1; } 15.5%, 91.9% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes woAfter  { 0%, 15.4% { opacity: 0; } 15.5%, 91.9% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes woToast {
  0%, 16%   { opacity: 0; transform: translateY(-14px) scale(.96); }
  18%, 84%  { opacity: 1; transform: none; }
  87%, 100% { opacity: 0; transform: translateY(-14px) scale(.96); }
}
@keyframes woLit {
  0%, 18%   { transform: scaleX(0); animation-timing-function: var(--wo-ease); }
  24%, 91.9% { transform: scaleX(1); }
  92%, 100% { transform: scaleX(0); }
}
@keyframes woPulse {
  0%, 17.9% { opacity: 0; transform: translateX(0); }
  18.5%     { opacity: 1; transform: translateX(0); animation-timing-function: var(--wo-ease); }
  24%       { opacity: 1; transform: translateX(66px); }
  26%, 100% { opacity: 0; transform: translateX(66px) scale(1.8); }
}
@keyframes woPillWo {
  0%, 23.9% { box-shadow: 0 0 0 0 rgba(19,181,234,0); }
  24.5%     { box-shadow: 0 0 0 0 rgba(19,181,234,.5); }
  27%, 100% { box-shadow: 0 0 0 10px rgba(19,181,234,0); }
}
/* the card lifts, turns over and settles on the Invoice face */
@keyframes woFlip {
  0%, 26%   { transform: none; animation-timing-function: cubic-bezier(.5,0,.3,1); }
  31%       { transform: translateZ(60px) rotateY(95deg); animation-timing-function: cubic-bezier(.2,.7,.3,1); }
  36%, 91.9% { transform: rotateY(180deg); }
  92%, 100% { transform: none; }
}
@keyframes woSame {
  0%, 37%   { opacity: 0; transform: scale(.5); }
  39%       { opacity: 1; transform: scale(1.18); }
  41%, 91.9% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: scale(.5); }
}
@keyframes woDue {
  0%, 40%   { background: rgba(44,91,240,0); }
  43%, 52%  { background: rgba(44,91,240,.12); }
  60%, 100% { background: rgba(44,91,240,0); }
}
@keyframes woVeil { 0%, 88% { opacity: 0; } 91.5%, 93% { opacity: 1; } 100% { opacity: 0; } }


/* ==========================================================================
   14. Payment demo — 18s loop, shown in the split-hero window
   Sequence: the whole booking payment page → the camera zooms onto "Pay with
   payment card" → card number (4242 4242 4242 4242), expiry and CVC type in
   → Submit → "Payment confirmed" pops up for about a second → a dot swells
   into a wave and the customer's profile opens out of it → the whole profile
   → the camera zooms onto the Payment Card row, where the same Visa ending
   in 4242 (exp 08/28) is now saved → fade and reset.
   Each page is a "world" (.pd__world) the camera moves over: payment page
   1300 × 940, customer page 1300 × 1000.
   Timeline is in % of 18s. Board is 790 × 470.
   Base styles = the customer page with the saved card, so reduced motion
   shows the end result.
   ========================================================================== */

.sd--pay {
  --pd-loop: 18s;
  --pd-site: #2FA0DA;
  --pd-site-dark: #1179A8;
  --pd-app: #13B5EA;
  --pd-ok: #1E8E4E;
  --win-w: 790px;
  --win-r: .5949;
}
.sd--pay .sd__chrome-title { position: relative; flex: 1 1 auto; height: 18px; }
.pd__url {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pd__url--pay { animation: pdUrlA var(--pd-loop) infinite; }
.pd__url--cust { opacity: 0; color: var(--text-primary, #17171B); animation: pdUrlB var(--pd-loop) infinite; }

.pd__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  font: 400 15px/1.35 var(--font-text, system-ui, sans-serif);
  color: #1D2433;
  text-align: left;
}
.sd--window .pd__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.pd__world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pd__ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Scene A: the booking payment page ---------------- */
.pd__a { width: 1300px; height: 940px; background: #fff; transform: translate(70px, 0px) scale(0.5); animation: pdCamA var(--pd-loop) infinite; }
.pd__nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 110px;
  border-bottom: 1px solid #E8EAEE;
  color: #4A5263;
  font-size: 15px;
}
.pd__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: #1D2433; font: 700 19px/1 var(--font-display, system-ui, sans-serif); }
.pd__logo i { width: 18px; height: 18px; border-radius: 50%; background: var(--pd-site); box-shadow: 0 0 0 4px rgba(47,160,218,.25); }
.pd__book { padding: 12px 18px; border-radius: 8px; background: var(--pd-site); color: #fff; font-weight: 600; }
.pd__portal { padding: 11px 16px; border: 1px solid #CBD2DC; border-radius: 8px; }
.pd__hero {
  position: absolute;
  left: 70px;
  right: 70px;
  top: 96px;
  height: 380px;
  overflow: hidden;
  border-radius: 30px;
  background: #EAF5FC;
}
.pd__hero::before {
  content: "";
  position: absolute;
  left: -90px;
  top: -90px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: #DDEFFA;
}
.pd__hero-icon {
  position: absolute;
  left: 50%;
  top: 68px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-left: -34px;
  border-radius: 50%;
  background: var(--pd-site);
  box-shadow: 0 0 0 8px rgba(47,160,218,.18);
  color: #fff;
}
.pd__hero-icon svg { width: 30px; height: 30px; }
.pd__h1 {
  position: absolute;
  left: 0;
  right: 0;
  top: 160px;
  text-align: center;
  font: 800 58px/1 var(--font-display, system-ui, sans-serif);
  letter-spacing: -.02em;
}
.pd__sheet {
  position: absolute;
  left: 180px;
  top: 350px;
  width: 940px;
  height: 550px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(29,36,51,.3), 0 0 0 1px #EEF0F3;
}
.pd__box {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid #D5DAE1;
  border-radius: 22px;
  background: #fff;
}
.pd__box--sum { left: 32px; top: 32px; width: 428px; height: 486px; padding: 40px 44px; }
.pd__box--card { left: 482px; top: 32px; width: 426px; height: 290px; }
.pd__box--later { left: 482px; top: 338px; width: 426px; height: 180px; text-align: center; }
.pd__kv { margin-bottom: 10px; font-size: 15px; }
.pd__kv b { font-weight: 600; }
.pd__grp { margin-top: 16px; font-size: 15px; }
.pd__grp > b { display: block; font-weight: 600; }
.pd__ln { display: flex; justify-content: space-between; padding: 2px 4px 2px 10px; }
.pd__sub { display: block; padding: 3px 4px 0; border-top: 1px solid #C9CED6; text-align: right; }
.pd__tot { display: flex; justify-content: space-between; margin-top: 18px; padding-right: 4px; font-weight: 700; }
.pd__back {
  display: table;
  margin: 26px auto 0;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--pd-site-dark);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.pd__box-title { margin-top: 30px; text-align: center; font: 600 16px/1 var(--font-display, system-ui, sans-serif); letter-spacing: .01em; }
.pd__field {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 68px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #D5DAE1, 0 2px 4px rgba(29,36,51,.06);
  font-size: 15px;
  animation: pdFocus var(--pd-loop) infinite;
}
.pd__field svg { width: 22px; height: 22px; flex: 0 0 auto; color: #8A93A3; }
.pd__in { position: relative; display: block; height: 20px; }
.pd__in--num { flex: 1 1 auto; }
.pd__in--exp { width: 66px; }
.pd__in--cvc { width: 38px; }
.pd__in > span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.pd__ph { color: #8A93A3; }
.pd__in--num .pd__ph { animation: pdPhNum var(--pd-loop) infinite; }
.pd__in--exp .pd__ph { animation: pdPhExp var(--pd-loop) infinite; }
.pd__in--cvc .pd__ph { animation: pdPhCvc var(--pd-loop) infinite; }
.pd__typed { opacity: 0; color: #1D2433; }
.pd__in--num .pd__typed { animation: pdTypeNum var(--pd-loop) infinite; }
.pd__in--exp .pd__typed { animation: pdTypeExp var(--pd-loop) infinite; }
.pd__in--cvc .pd__typed { animation: pdTypeCvc var(--pd-loop) infinite; }
.pd__secure {
  position: absolute;
  left: 0;
  right: 0;
  top: 136px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #5B6475;
  font-size: 13px;
}
.pd__secure svg { width: 14px; height: 14px; }
.pd__submit {
  position: absolute;
  left: 50%;
  top: 176px;
  width: 150px;
  height: 44px;
  margin-left: -75px;
  border-radius: 8px;
  background: var(--pd-site-dark);
  color: #fff;
  font: 600 15px/44px var(--font-text, system-ui, sans-serif);
  text-align: center;
  animation: pdSubmit var(--pd-loop) infinite;
}
.pd__submit span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pd__submit-go { animation: pdGo var(--pd-loop) infinite; }
.pd__submit-wait { opacity: 0; animation: pdWait var(--pd-loop) infinite; }
.pd__spin { width: 16px; height: 16px; box-sizing: border-box; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: pdSpin .7s linear infinite; }
.pd__fine { position: absolute; left: 44px; right: 44px; top: 234px; color: #5B6475; font-size: 11.5px; line-height: 1.45; text-align: center; }
.pd__later-sub { margin-top: 14px; color: #3A4252; font-size: 14px; }
.pd__radios { display: inline-flex; gap: 22px; margin-top: 14px; font-size: 14px; }
.pd__radios span { display: inline-flex; align-items: center; gap: 7px; }
.pd__radios i { width: 15px; height: 15px; box-sizing: border-box; border: 1.5px solid #6B7383; border-radius: 50%; }
.pd__later-btn { display: table; margin: 16px auto 0; padding: 10px 26px; border-radius: 8px; background: var(--pd-site-dark); color: #fff; font-weight: 600; font-size: 14px; }

/* payment confirmed (board space, about a second) */
.pd__pop {
  position: absolute;
  left: 220px;
  top: 150px;
  z-index: 3;
  width: 350px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(29,36,51,.08), 0 30px 60px -20px rgba(29,36,51,.45);
  text-align: center;
  opacity: 0;
  animation: pdPop var(--pd-loop) infinite;
}
.pd__pop-check { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--pd-ok); color: #fff; }
.pd__pop-check svg { width: 26px; height: 26px; stroke-width: 3; }
.pd__pop strong { font: 800 19px/1.2 var(--font-display, system-ui, sans-serif); }
.pd__pop-sub { color: #5B6475; font-size: 14px; white-space: nowrap; }
.pd__scrim { position: absolute; inset: 0; z-index: 2; background: rgba(29,36,51,.28); opacity: 0; animation: pdScrim var(--pd-loop) infinite; }

/* the dot that swells into the customer page */
.pd__dot {
  position: absolute;
  left: 389px;
  top: 229px;
  z-index: 4;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pd-app);
  box-shadow: 0 0 0 6px rgba(19,181,234,.2);
  opacity: 0;
  transform: scale(0);
  animation: pdDot var(--pd-loop) infinite;
}

/* ---------------- Scene B: the customer profile ---------------- */
.pd__b {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #F4F5F5;
  clip-path: circle(800px at 395px 235px);
  animation: pdOpen var(--pd-loop) infinite;
}
.pd__bw { width: 1300px; height: 1000px; transform: translate(89.5px, 0px) scale(0.47); animation: pdCamB var(--pd-loop) infinite; }
.pd__card {
  position: absolute;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 12px 28px -22px rgba(0,0,0,.35);
}
.pd__card--top { left: 130px; top: 30px; width: 1040px; height: 280px; padding: 30px 40px; }
.pd__card--info { left: 130px; top: 330px; width: 510px; height: 430px; padding: 26px 40px; }
.pd__card--map { left: 660px; top: 330px; width: 510px; height: 430px; overflow: hidden; background: #E9EEE6; }
.pd__card--pay { left: 130px; top: 780px; width: 510px; height: 200px; padding: 32px 40px; }
.pd__card--note { left: 660px; top: 780px; width: 510px; height: 200px; padding: 34px 40px; text-align: center; }
.pd__name { color: var(--pd-app); font: 600 32px/1 var(--font-display, system-ui, sans-serif); }
.pd__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pd__btns + .pd__btns { margin-top: 12px; }
.pd__b-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--pd-app); color: #fff; font: 700 15px/1 var(--font-display, system-ui, sans-serif); }
.pd__b-btn em { min-width: 18px; padding: 2px 4px; background: #fff; color: var(--pd-app); font-style: normal; font-size: 13px; text-align: center; }
.pd__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-bottom: 20px; border-bottom: 1px solid #ECEEF1; text-align: center; font-size: 14px; }
.pd__stats b { display: block; margin-bottom: 6px; padding: 4px 6px; border-radius: 999px; background: #7A7F88; color: #fff; font: 700 11px/1.2 var(--font-text, system-ui, sans-serif); white-space: nowrap; }
.pd__tag { display: inline-block; margin-top: 18px; padding: 5px 13px; border-radius: 999px; background: var(--pd-app); color: #fff; font-size: 12px; font-weight: 600; }
.pd__rows { display: grid; grid-template-columns: 190px minmax(0, 1fr); row-gap: 14px; margin-top: 22px; font-size: 15px; }
.pd__rows b { font-weight: 600; }
.pd__link { color: #3B6FD8; }
.pd__mini { display: inline-block; padding: 4px 8px; background: var(--pd-app); color: #fff; font: 700 11px/1 var(--font-text, system-ui, sans-serif); }
.pd__mini--dark { background: #6E737B; }

/* a simple drawn map (no map provider imagery) */
/* map drawn as one SVG: roads stop at or skirt the lake, never cross it */
.pd__map-svg,
.cm__map-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.mp__water { fill: #B9DDF0; }
.mp__shore { fill: none; stroke: #A3D0E8; stroke-width: 3; }
.mp__park { fill: #CFE3C2; }
.mp__block { fill: #E1E6DC; }
.mp__case { fill: none; stroke: #D3D9CE; stroke-linecap: round; stroke-linejoin: round; }
.mp__road { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.pd__map-pin { position: absolute; left: 204px; top: 104px; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: #E5484D; transform: rotate(-45deg); box-shadow: 0 6px 12px -4px rgba(0,0,0,.4); }
.pd__map-pin::after { content: ""; position: absolute; left: 10px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }

.pd__payrow { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; font-size: 15px; }
.pd__payrow > b { font-weight: 600; }
.pd__saved { position: relative; display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.pd__saved::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -9px;
  bottom: -9px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--pd-ok), 0 0 0 7px rgba(30,142,78,.15);
  opacity: 0;
  animation: pdRing var(--pd-loop) infinite;
}
.pd__saved small { color: #5B6475; font-size: 13px; }
.pd__new {
  position: absolute;
  left: 0;
  top: -30px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--pd-ok);
  color: #fff;
  font: 700 11.5px/1 var(--font-text, system-ui, sans-serif);
  opacity: 0;
  animation: pdNew var(--pd-loop) infinite;
}
.pd__props { margin-top: 26px; padding-top: 22px; border-top: 1px solid #ECEEF1; }
.pd__note { color: #3A4252; font-size: 15px; line-height: 1.5; }
.pd__note-btn { display: inline-block; margin-top: 18px; padding: 9px 12px; background: var(--pd-app); color: #fff; font: 700 15px/1 var(--font-display, system-ui, sans-serif); }

.pd__veil { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; animation: pdVeil var(--pd-loop) infinite; }

/* ---- Cursor + clicks (board coordinates) ---- */
.pd__cursor { z-index: 7; animation-name: pdCursor; animation-duration: var(--pd-loop); }
.pd__ripple { z-index: 7; border-color: var(--pd-site); }
.pd__ripple--1 { left: 294px; top: 157px; animation: pdRip1 var(--pd-loop) infinite; }
.pd__ripple--2 { left: 395px; top: 314px; animation: pdRip2 var(--pd-loop) infinite; }

/* ---- Keyframes (% of 18s) ---- */
@keyframes pdCamA {
  0%, 11.11% { transform: translate(70px, 0px) scale(0.5); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  17.78%, 96.61% { transform: translate(-917.5px, -555.5px) scale(1.5); }
  96.67%, 100% { transform: translate(70px, 0px) scale(0.5); }
}
@keyframes pdCamB {
  0%, 68.33% { transform: translate(89.5px, 0px) scale(0.47); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  75.56%, 96.61% { transform: translate(-209.5px, -1051.5px) scale(1.55); }
  96.67%, 100% { transform: translate(89.5px, 0px) scale(0.47); }
}
@keyframes pdOpen {
  0%, 52.78% { clip-path: circle(0 at 395px 235px); animation-timing-function: cubic-bezier(.6,0,.2,1); }
  57.22%, 96.61% { clip-path: circle(800px at 395px 235px); }
  96.67%, 100% { clip-path: circle(0 at 395px 235px); }
}
@keyframes pdDot {
  0%, 50% { opacity: 0; transform: scale(0); }
  50.83% { opacity: 1; transform: scale(1); animation-timing-function: ease-in-out; }
  51.67% { transform: scale(1.6); }
  52.5% { transform: scale(1); animation-timing-function: cubic-bezier(.7,0,.3,1); }
  55.56% { opacity: 1; transform: scale(140); }
  57.78%, 100% { opacity: 0; transform: scale(140); }
}
@keyframes pdUrlA {
  0%, 54.39% { opacity: 1; } 54.44%, 96.61% { opacity: 0; } 96.67%, 100% { opacity: 1; }
}
@keyframes pdUrlB {
  0%, 54.39% { opacity: 0; } 54.44%, 96.61% { opacity: 1; } 96.67%, 100% { opacity: 0; }
}
@keyframes pdFocus {
  0%, 19.39% { box-shadow: 0 0 0 1px #D5DAE1, 0 2px 4px rgba(29,36,51,.06); }
  19.44%, 38.33% { box-shadow: 0 0 0 2px #2FA0DA, 0 0 0 5px rgba(47,160,218,.18); }
  39.44%, 100% { box-shadow: 0 0 0 1px #D5DAE1, 0 2px 4px rgba(29,36,51,.06); }
}
@keyframes pdPhNum {
  0%, 19.94% { opacity: 1; } 20%, 96.61% { opacity: 0; } 96.67%, 100% { opacity: 1; }
}
@keyframes pdPhExp {
  0%, 28.28% { opacity: 1; } 28.33%, 96.61% { opacity: 0; } 96.67%, 100% { opacity: 1; }
}
@keyframes pdPhCvc {
  0%, 31.61% { opacity: 1; } 31.67%, 96.61% { opacity: 0; } 96.67%, 100% { opacity: 1; }
}
@keyframes pdTypeNum {
  0%, 19.94% { opacity: 0; clip-path: inset(0 100% 0 0); }
  20% { opacity: 1; clip-path: inset(0 100% 0 0); animation-timing-function: steps(19, end); }
  27.78%, 96.61% { opacity: 1; clip-path: inset(0 0 0 0); }
  96.67%, 100% { opacity: 0; clip-path: inset(0 100% 0 0); }
}
@keyframes pdTypeExp {
  0%, 28.28% { opacity: 0; clip-path: inset(0 100% 0 0); }
  28.33% { opacity: 1; clip-path: inset(0 100% 0 0); animation-timing-function: steps(7, end); }
  31.11%, 96.61% { opacity: 1; clip-path: inset(0 0 0 0); }
  96.67%, 100% { opacity: 0; clip-path: inset(0 100% 0 0); }
}
@keyframes pdTypeCvc {
  0%, 31.61% { opacity: 0; clip-path: inset(0 100% 0 0); }
  31.67% { opacity: 1; clip-path: inset(0 100% 0 0); animation-timing-function: steps(3, end); }
  33.33%, 96.61% { opacity: 1; clip-path: inset(0 0 0 0); }
  96.67%, 100% { opacity: 0; clip-path: inset(0 100% 0 0); }
}
@keyframes pdSubmit {
  0%, 39.17% { background: #1179A8; transform: none; }
  39.44% { background: #0D5F86; transform: scale(.95); }
  40.28%, 100% { background: #1179A8; transform: none; }
}
@keyframes pdGo {
  0%, 40% { opacity: 1; } 40.28%, 96.61% { opacity: 0; } 96.67%, 100% { opacity: 1; }
}
@keyframes pdWait {
  0%, 40% { opacity: 0; } 40.28%, 96.61% { opacity: 1; } 96.67%, 100% { opacity: 0; }
}
@keyframes pdPop {
  0%, 43.33% { opacity: 0; transform: translateY(10px) scale(.94); }
  44.44%, 49.44% { opacity: 1; transform: none; }
  50.56%, 100% { opacity: 0; transform: scale(.97); }
}
@keyframes pdScrim {
  0%, 43.33% { opacity: 0; } 44.44%, 49.44% { opacity: 1; } 51.11%, 100% { opacity: 0; }
}
@keyframes pdRing {
  0%, 76.61% { opacity: 0; transform: scale(1.06); }
  78.33% { opacity: 1; transform: none; }
  81.11% { opacity: .55; }
  83.89% { opacity: 1; }
  84.44%, 96.61% { opacity: 1; transform: none; }
  96.67%, 100% { opacity: 0; }
}
@keyframes pdNew {
  0%, 77.78% { opacity: 0; transform: translateY(6px); }
  79.44%, 96.61% { opacity: 1; transform: none; }
  96.67%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes pdVeil {
  0%, 94.44% { opacity: 0; } 96.67% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes pdCursor {
  0%, 14.44% { opacity: 0; transform: translate(620px, 420px) scale(1); }
  15% { opacity: 1; transform: translate(620px, 420px) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  18.89% { transform: translate(291px, 154px) scale(1); }
  19.44% { transform: translate(291px, 154px) scale(.82); }
  20.28%, 35% { transform: translate(291px, 154px) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  38.89% { transform: translate(392px, 311px) scale(1); }
  39.44% { transform: translate(392px, 311px) scale(.82); }
  41.67% { opacity: 1; transform: translate(392px, 311px) scale(1); }
  43.33%, 100% { opacity: 0; transform: translate(405px, 334px) scale(1); }
}
@keyframes pdRip1 {
  0%, 19.39% { opacity: 0; transform: scale(.4); } 19.44% { opacity: .9; transform: scale(.4); } 22.22%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes pdRip2 {
  0%, 39.39% { opacity: 0; transform: scale(.4); } 39.44% { opacity: .9; transform: scale(.4); } 42.22%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes pdSpin {
  to { transform: rotate(360deg); }
}

/* ---- Reduced motion: the customer page with the saved card ---- */
@media (prefers-reduced-motion: reduce) {
  .pd__saved::before, .pd__new { opacity: 1; }
}


/* ==========================================================================
   15. QuickBooks sync demo — 12s loop, shown in the split-hero window
   Two blocks: the workspace on the left, QuickBooks Online on the
   right. Along the top lane a steady stream of records leaves the workspace for
   QuickBooks (item, invoice, payment, customer, journal entry, expense), one
   every 2s; each row lights as its record leaves and the matching QuickBooks
   row ticks as it arrives. Along the bottom lane, less often, a new customer
   and a payment come back from QuickBooks.
   Every chip and row shares one set of keyframes per direction; the
   animation-delay sets when in the loop it fires. Chips slide out from under
   one block and in under the other (blocks sit above the lanes).
   Timeline is in % of 12s. Board is 790 × 470, no browser chrome.
   Base styles = both blocks at rest with the lanes drawn.
   ========================================================================== */

.sd--qbo {
  --qb-loop: 12s;
  --qb-brand: #2C5BF0;
  --qb-green: #2CA01C;
  --win-w: 790px;
  --win-r: .5949;
}

.qb__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 40%, rgba(44,91,240,.10), transparent 55%),
    var(--surface-sunken, #F1F0EC);
  font: 400 13.5px/1.3 var(--font-text, system-ui, sans-serif);
  color: #17171B;
  text-align: left;
}
.sd--window .qb__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.qb__ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- The two systems ---- */
.qb__block {
  position: absolute;
  top: 46px;
  z-index: 2;
  width: 236px;
  height: 378px;
  box-sizing: border-box;
  padding: 18px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 30px 50px -30px rgba(16,16,19,.45);
}
.qb__block--us { left: 36px; }
.qb__block--qb { right: 36px; }
.qb__head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(16,16,19,.08); }
.qb__logo { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; background: var(--qb-brand); color: #fff; }
.qb__logo svg { width: 20px; height: 20px; }
.qb__logo--qb { background: #fff; box-shadow: 0 0 0 1px rgba(16,16,19,.1); }
.qb__logo--qb img { display: block; width: 28px; height: 28px; object-fit: contain; }
.qb__name { font: 800 16px/1.15 var(--font-display, system-ui, sans-serif); }
.qb__name small { display: block; margin-top: 2px; color: #6B6B75; font: 500 11.5px/1 var(--font-text, system-ui, sans-serif); }
.qb__row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin: 0 -8px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 14px;
}
.qb__row .qb__ico { width: 18px; height: 18px; flex: 0 0 auto; color: #55555F; }
.qb__tick {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E5F4EA;
  color: var(--qb-green);
  opacity: 0;
}
.qb__tick svg { width: 12px; height: 12px; stroke-width: 3; }

/* ---- Lanes between the blocks ---- */
.qb__lane {
  position: absolute;
  left: 272px;
  width: 246px;
  height: 0;
  border-top: 2px dashed rgba(16,16,19,.18);
}
.qb__lane--out { top: 176px; }
.qb__lane--in { top: 318px; }
.qb__lane::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.qb__lane--out::after { right: -2px; border-left: 9px solid rgba(16,16,19,.3); }
.qb__lane--in::after { left: -2px; border-right: 9px solid rgba(16,16,19,.3); }

/* ---- Records on the move ---- */
.qb__chip {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.08), 0 10px 20px -12px rgba(16,16,19,.45);
  font: 600 13.5px/1 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
  opacity: 0;
}
.qb__chip i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #EEF2FE; color: var(--qb-brand); }
.qb__chip svg { width: 14px; height: 14px; }
.qb__chip--out { top: 158px; left: 110px; animation: qbOut var(--qb-loop) linear infinite; }
.qb__chip--in { top: 300px; left: 520px; animation: qbIn var(--qb-loop) linear infinite; }
.qb__chip--in i { background: #E5F4EA; color: var(--qb-green); }
.qb__chip--o-items { animation-delay: 0s; }
.qb__chip--o-invoices { animation-delay: 2s; }
.qb__chip--o-payments { animation-delay: 4s; }
.qb__chip--o-customers { animation-delay: 6s; }
.qb__chip--o-journals { animation-delay: 8s; }
.qb__chip--o-expenses { animation-delay: 10s; }
.qb__chip--i-customers { animation-delay: 3s; }
.qb__chip--i-payments { animation-delay: 9s; }

/* rows light as a record leaves, tick as it lands */
.qb__block--us .qb__row--items { animation: qbSend var(--qb-loop) 0s infinite; }
.qb__block--qb .qb__row--items .qb__tick { animation: qbLand var(--qb-loop) 0s infinite; }
.qb__block--us .qb__row--invoices { animation: qbSend var(--qb-loop) 2s infinite; }
.qb__block--qb .qb__row--invoices .qb__tick { animation: qbLand var(--qb-loop) 2s infinite; }
.qb__block--us .qb__row--payments { animation: qbSend var(--qb-loop) 4s infinite; }
.qb__block--qb .qb__row--payments .qb__tick { animation: qbLand var(--qb-loop) 4s infinite; }
.qb__block--us .qb__row--customers { animation: qbSend var(--qb-loop) 6s infinite; }
.qb__block--qb .qb__row--customers .qb__tick { animation: qbLand var(--qb-loop) 6s infinite; }
.qb__block--us .qb__row--journals { animation: qbSend var(--qb-loop) 8s infinite; }
.qb__block--qb .qb__row--journals .qb__tick { animation: qbLand var(--qb-loop) 8s infinite; }
.qb__block--us .qb__row--expenses { animation: qbSend var(--qb-loop) 10s infinite; }
.qb__block--qb .qb__row--expenses .qb__tick { animation: qbLand var(--qb-loop) 10s infinite; }
.qb__block--qb .qb__row--customers { animation: qbSend var(--qb-loop) 3s infinite; }
.qb__block--us .qb__row--customers .qb__tick { animation: qbLand var(--qb-loop) 3s infinite; }
.qb__block--qb .qb__row--payments { animation: qbSend var(--qb-loop) 9s infinite; }
.qb__block--us .qb__row--payments .qb__tick { animation: qbLand var(--qb-loop) 9s infinite; }

/* ---- Keyframes (% of 12s; each fires at its animation-delay) ---- */
@keyframes qbOut {
  0%       { opacity: 0; transform: translateX(0); }
  1.25%      { opacity: 1; }
  17.08%      { opacity: 1; }
  18.33%, 100% { opacity: 0; transform: translateX(410px); }
}
@keyframes qbIn {
  0%       { opacity: 0; transform: translateX(0); }
  1.25%      { opacity: 1; }
  17.08%      { opacity: 1; }
  18.33%, 100% { opacity: 0; transform: translateX(-410px); }
}
@keyframes qbSend {
  0%       { background: rgba(44,91,240,.10); }
  6.67%, 100% { background: transparent; }
}
@keyframes qbLand {
  0%, 16.67%  { opacity: 0; transform: scale(.5); }
  18.33%       { opacity: 1; transform: scale(1.15); }
  20%, 31.67%   { opacity: 1; transform: none; }
  34.17%, 100% { opacity: 0; transform: none; }
}

/* ---- Reduced motion: both blocks and the lanes, every row ticked ---- */
@media (prefers-reduced-motion: reduce) {
  .qb__tick { opacity: 1; }
}


/* ==========================================================================
   16. Financial reports demo — 18s loop, shown in the split-hero window
   The Reports screen: filters on the left, a Chart.js-style bar chart on the
   right. Sales bars grow in → the cursor opens Report Type and picks
   Forecasted Sales → the chart redraws and the orange bars grow from zero →
   the Commercial tag is ticked → the forecast reloads with lower bars →
   hover on November shows the tooltip → click → the details panel fades in
   with the work orders behind that bar → Close → hold → reset.
   Bars are drawn in board px (plot 300,52 464×348); each grows
   from the axis with scaleY.
   Timeline is in % of 18s. Board is 790 × 470.
   Base styles = the forecast chart, so reduced motion shows it still.
   ========================================================================== */

.sd--fin {
  --fi-loop: 18s;
  --fi-app: #13B5EA;
  --win-w: 790px;
  --win-r: .5949;
}
.fi__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: #F4F5F5;
  font: 400 11.5px/1.3 var(--font-text, system-ui, sans-serif);
  color: #222;
  text-align: left;
}
.sd--window .fi__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}

/* ---- Filters ---- */
.fi__side { position: absolute; left: 14px; top: 14px; width: 222px; height: 442px; box-sizing: border-box; padding: 0 14px; background: #fff; }
.fi__fld {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 28px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid #C9CDD3;
  border-radius: 3px;
  background: #fff;
  font-size: 12px;
  line-height: 26px;
  white-space: nowrap;
}
.fi__fld > b { position: absolute; left: 7px; top: -8px; padding: 0 3px; background: #fff; color: #444; font: 400 9.5px/1 var(--font-text, system-ui, sans-serif); }
.fi__fld::after { content: ""; position: absolute; right: 9px; top: 10px; width: 5px; height: 5px; border-right: 1.5px solid #444; border-bottom: 1.5px solid #444; transform: rotate(45deg); }
.fi__fld--cal::after { right: 0; top: 0; width: 28px; height: 26px; border: 0; border-left: 1px solid #C9CDD3; background: #F2F3F5; transform: none; }
.fi__fld--report { top: 22px; animation: fiSelFocus var(--fi-loop) infinite; }
.fi__swap { position: relative; display: block; height: 26px; }
.fi__swap span { position: absolute; left: 0; top: 0; }
.fi__swap span:first-child { opacity: 0; animation: fiBefore var(--fi-loop) infinite; }
.fi__swap span:last-child { animation: fiAfter var(--fi-loop) infinite; }
.fi__h { position: absolute; left: 14px; font: 700 12.5px/1 var(--font-display, system-ui, sans-serif); }
.fi__tags {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 282px;
  height: 116px;
  box-sizing: border-box;
  padding: 12px 8px 0;
  border: 1px solid #C9CDD3;
  border-radius: 3px;
}
.fi__tags > b { position: absolute; left: 7px; top: -8px; padding: 0 3px; background: #fff; font: 400 9.5px/1 var(--font-text, system-ui, sans-serif); white-space: nowrap; }
.fi__tags > b em { margin-left: 2px; font-style: normal; animation: fiAfterTag var(--fi-loop) infinite; }
.fi__tag { display: flex; align-items: center; gap: 7px; height: 25px; }
.fi__tag i { position: relative; width: 12px; height: 12px; box-sizing: border-box; border: 1px solid #555; border-radius: 2px; }
/* the Commercial box: base = ticked */
.fi__tag--on i { border-color: #1967D2; background: #1967D2; animation: fiTagBox var(--fi-loop) infinite; }
.fi__tag--on i::after { content: ""; position: absolute; left: 3px; top: 0; width: 3px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); animation: fiAfterTag var(--fi-loop) infinite; }
.fi__tag span { padding: 3px 9px; border-radius: 999px; color: #fff; font-size: 10px; }
.fi__reset { position: absolute; left: 50%; top: 412px; padding: 6px 10px; transform: translateX(-50%); background: var(--fi-app); color: #fff; font: 700 11.5px/1 var(--font-display, system-ui, sans-serif); white-space: nowrap; }

/* Report Type list (native select, opened) */
.fi__menu {
  position: absolute;
  left: 28px;
  top: 66px;
  z-index: 3;
  width: 194px;
  border: 1px solid #8C8F94;
  background: #fff;
  font-size: 12px;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.35);
  opacity: 0;
  animation: fiMenu var(--fi-loop) infinite;
}
.fi__menu span { display: block; height: 20px; padding: 0 10px; line-height: 20px; white-space: nowrap; }
.fi__menu .fi__opt-sales { animation: fiOptSales var(--fi-loop) infinite; }
.fi__menu .fi__opt-fc { animation: fiOptFc var(--fi-loop) infinite; }

/* ---- Chart (Chart.js look) ---- */
.fi__chart { position: absolute; left: 248px; top: 14px; width: 528px; height: 442px; background: #fff; }
.fi__plot { position: absolute; inset: 0; }
.fi__gh, .fi__gv { position: absolute; background: rgba(0,0,0,.1); }
.fi__gh { left: 300px; width: 464px; height: 1px; }
.fi__gv { top: 52px; width: 1px; height: 348px; }
.fi__axis { position: absolute; left: 300px; top: 400px; width: 464px; height: 1px; background: rgba(0,0,0,.25); }
.fi__yt { position: absolute; left: 248px; width: 46px; color: #666; font-size: 10.5px; text-align: right; }
/* x labels rotate like Chart.js does when the categories get tight */
.fi__xt { position: absolute; top: 405px; width: 60px; color: #666; font-size: 10px; text-align: right; white-space: nowrap; transform-origin: 100% 0; transform: rotate(-40deg); }
.fi__legend { position: absolute; left: 248px; width: 528px; top: 22px; height: 14px; }
.fi__legend span { position: absolute; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 6px; color: #666; font-size: 11px; }
.fi__legend i { width: 34px; height: 10px; }
.fi__legend span:first-child { opacity: 0; animation: fiBefore var(--fi-loop) infinite; }
.fi__legend span:first-child i { background: rgba(75,192,192,.6); }
.fi__legend span:last-child { animation: fiAfter var(--fi-loop) infinite; }
.fi__legend span:last-child i { background: rgba(255,159,64,.6); }
.fi__bar { position: absolute; transform-origin: 50% 100%; }
.fi__bar--s { background: rgba(75,192,192,.6); transform: scaleY(0); animation: fiGrowS var(--fi-loop) infinite; }
.fi__bar--f { background: rgba(255,159,64,.6); transform: scaleY(0); animation: fiGrowF var(--fi-loop) infinite; }
.fi__bar--o { background: rgba(255,159,64,.6); animation: fiGrowO var(--fi-loop) infinite; }
.fi__bar--hot { animation-name: fiGrowOHot; }

/* tooltip */
.fi__tip {
  position: absolute;
  left: 481px;
  top: 250px;
  z-index: 2;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  animation: fiTip var(--fi-loop) infinite;
}
.fi__tip b { display: block; margin-bottom: 4px; font-weight: 700; }
.fi__tip i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 1px solid #fff; background: rgba(255,159,64,.6); }

/* ---- Details panel ---- */
.fi__scrim { position: absolute; inset: 0; z-index: 4; background: rgba(0,0,0,.25); opacity: 0; animation: fiPanel var(--fi-loop) infinite; }
.fi__panel {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 5;
  width: 742px;
  height: 426px;
  box-sizing: border-box;
  padding: 16px 22px;
  background: #fff;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  opacity: 0;
  animation: fiPanel var(--fi-loop) infinite;
}
.fi__ptitle { font: 600 13.5px/1.2 var(--font-display, system-ui, sans-serif); }
.fi__psub { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #666; font-size: 10px; }
.fi__psub span { padding: 2px 8px; border-radius: 999px; background: #7B4FC9; color: #fff; font-size: 9.5px; }
.fi__table { margin-top: 12px; border-top: 1px solid #E3E5E8; }
.fi__tr { display: grid; grid-template-columns: 1.3fr 1fr 1.25fr .9fr .7fr; align-items: center; height: 31px; padding: 0 6px; border-bottom: 1px solid #E3E5E8; font-size: 12px; white-space: nowrap; }
.fi__tr--head { height: 30px; border-bottom: 2px solid #D5D8DC; font: 600 12.5px/1 var(--font-display, system-ui, sans-serif); }
.fi__tr span:last-child { text-align: right; }
.fi__lnk { display: inline-flex; align-items: center; gap: 6px; color: #2E6FC2; }
.fi__lnk svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fi__close { position: absolute; right: 22px; bottom: 14px; padding: 7px 12px; background: var(--fi-app); color: #fff; font: 700 12px/1 var(--font-display, system-ui, sans-serif); animation: fiCloseBtn var(--fi-loop) infinite; }

.fi__veil { position: absolute; inset: 0; z-index: 6; background: #F4F5F5; opacity: 0; animation: fiVeil var(--fi-loop) infinite; }
.fi__cursor { z-index: 7; animation-name: fiCursor; animation-duration: var(--fi-loop); }
.fi__ripple { z-index: 7; border-color: var(--fi-app); }
.fi__ripple--1 { left: 125px; top: 51px; animation: fiRip1 var(--fi-loop) infinite; }
.fi__ripple--2 { left: 112px; top: 96px; animation: fiRip2 var(--fi-loop) infinite; }
.fi__ripple--5 { left: 42px; top: 396px; animation: fiRip5 var(--fi-loop) infinite; }
.fi__ripple--3 { left: 551px; top: 350px; animation: fiRip3 var(--fi-loop) infinite; }
.fi__ripple--4 { left: 726px; top: 427px; animation: fiRip4 var(--fi-loop) infinite; }

/* ---- Keyframes (% of 18s) ---- */
@keyframes fiBefore {
  0%, 17.22% { opacity: 1; } 17.33%, 97.72% { opacity: 0; } 97.78%, 100% { opacity: 1; }
}
@keyframes fiAfter {
  0%, 17.22% { opacity: 0; } 17.33%, 97.72% { opacity: 1; } 97.78%, 100% { opacity: 0; }
}
@keyframes fiSelFocus {
  0%, 11.06% { border-color: #C9CDD3; box-shadow: none; }
  11.11%, 30.83% { border-color: #6FA8F5; box-shadow: 0 0 0 3px rgba(111,168,245,.25); }
  31.94%, 100% { border-color: #C9CDD3; box-shadow: none; }
}
@keyframes fiMenu {
  0%, 11.39% { opacity: 0; } 11.67%, 16.94% { opacity: 1; } 17.22%, 100% { opacity: 0; }
}
@keyframes fiOptSales {
  0%, 14.17% { background: #1967D2; color: #fff; } 14.44%, 100% { background: transparent; color: #222; }
}
@keyframes fiOptFc {
  0%, 14.17% { background: transparent; color: #222; } 14.44%, 100% { background: #1967D2; color: #fff; }
}
@keyframes fiGrowS {
  0%, 1.11% { transform: scaleY(0); animation-timing-function: cubic-bezier(.22,.61,.36,1); }
  6.67%, 17.22% { transform: scaleY(1); opacity: 1; }
  17.33%, 100% { transform: scaleY(0); opacity: 0; }
}
@keyframes fiTagBox {
  0%, 31.11% { border-color: #555; background: transparent; } 31.22%, 97.72% { border-color: #1967D2; background: #1967D2; } 97.78%, 100% { border-color: #555; background: transparent; }
}
@keyframes fiAfterTag {
  0%, 31.11% { opacity: 0; } 31.22%, 97.72% { opacity: 1; } 97.78%, 100% { opacity: 0; }
}
@keyframes fiGrowF {
  0%, 17.5% { transform: scaleY(0); animation-timing-function: cubic-bezier(.22,.61,.36,1); }
  23.06%, 31.67% { transform: scaleY(1); }
  31.78%, 100% { transform: scaleY(0); }
}
@keyframes fiGrowO {
  0%, 32.22% { transform: scaleY(0); opacity: 1; animation-timing-function: cubic-bezier(.22,.61,.36,1); }
  37.78% { transform: scaleY(1); opacity: 1; }
  97.72% { transform: scaleY(1); opacity: 1; }
  97.78%, 100% { transform: scaleY(0); opacity: 1; }
}
@keyframes fiGrowOHot {
  0%, 32.22% { transform: scaleY(0); opacity: 1; animation-timing-function: cubic-bezier(.22,.61,.36,1); }
  37.78% { transform: scaleY(1); opacity: 1; }
  44.72% { transform: scaleY(1); opacity: 1; background: rgba(255,159,64,.6); }
  45%, 51.11% { transform: scaleY(1); opacity: 1; background: rgba(255,159,64,.85); }
  52.22% { transform: scaleY(1); opacity: 1; background: rgba(255,159,64,.6); }
  97.72% { transform: scaleY(1); opacity: 1; }
  97.78%, 100% { transform: scaleY(0); opacity: 1; }
}
@keyframes fiTip {
  0%, 45% { opacity: 0; } 45.83%, 48.89% { opacity: 1; } 51.11%, 100% { opacity: 0; }
}
@keyframes fiPanel {
  0%, 48.89% { opacity: 0; }
  51.11%, 79.72% { opacity: 1; }
  81.67%, 100% { opacity: 0; }
}
@keyframes fiCloseBtn {
  0%, 78.61% { transform: none; } 78.89% { transform: scale(.92); } 79.72%, 100% { transform: none; }
}
@keyframes fiVeil {
  0%, 95.56% { opacity: 0; } 97.78% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes fiCursor {
  0%, 6.67% { opacity: 0; transform: translate(297px, 297px) scale(1); }
  7.22% { opacity: 1; transform: translate(297px, 297px) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  10.83% { transform: translate(122px, 48px) scale(1); }
  11.11% { transform: translate(122px, 48px) scale(0.82); }
  11.94% { transform: translate(122px, 48px) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  16.11% { transform: translate(109px, 93px) scale(1); }
  16.67% { transform: translate(109px, 93px) scale(0.82); }
  17.5%, 26.11% { transform: translate(109px, 93px) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  30.83% { transform: translate(39px, 393px) scale(1); }
  31.11% { transform: translate(39px, 393px) scale(0.82); }
  31.94%, 41.11% { transform: translate(39px, 393px) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  45% { transform: translate(548px, 347px) scale(1); }
  47.78% { transform: translate(548px, 347px) scale(0.82); }
  48.61%, 74.44% { transform: translate(548px, 347px) scale(1); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  78.61% { transform: translate(723px, 424px) scale(1); }
  78.89% { transform: translate(723px, 424px) scale(0.82); }
  81.11% { opacity: 1; transform: translate(723px, 424px) scale(1); }
  83.33%, 100% { opacity: 0; transform: translate(743px, 444px) scale(1); }
}
@keyframes fiRip1 {
  0%, 11.06% { opacity: 0; transform: scale(.4); } 11.11% { opacity: .9; transform: scale(.4); } 13.89%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes fiRip2 {
  0%, 16.61% { opacity: 0; transform: scale(.4); } 16.67% { opacity: .9; transform: scale(.4); } 19.44%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes fiRip5 {
  0%, 31.06% { opacity: 0; transform: scale(.4); } 31.11% { opacity: .9; transform: scale(.4); } 33.89%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes fiRip3 {
  0%, 47.72% { opacity: 0; transform: scale(.4); } 47.78% { opacity: .9; transform: scale(.4); } 50.56%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes fiRip4 {
  0%, 78.83% { opacity: 0; transform: scale(.4); } 78.89% { opacity: .9; transform: scale(.4); } 81.67%, 100% { opacity: 0; transform: scale(1.6); }
}

/* ---- Reduced motion: the filtered forecast, still ---- */
@media (prefers-reduced-motion: reduce) {
  .fi__bar--f { transform: scaleY(0); }
  .fi__bar--o { transform: none; }
}


/* ==========================================================================
   17. Automation run demo — 15s loop, shown in the split-hero window
   Left column: the automation feed. Right: two phones on one wheel.
   Sequence: "Awaiting action" with a flashing dot → "Job rescheduled" event
   pops in (8%) → Automation #1 lights up (15%) → the employee's phone pops
   into view (18%) and buzzes as the push alert drops in (25%) → the phones
   swing round a pivot far below the board (44–54%): the employee's phone
   arcs out to the right while the customer's arcs in from the left →
   Automation #2 lights up (49%) → the customer's phone buzzes as the text
   lands (57%) → hold → veil, reset (88–100%).
   Both phones sit on arms that rotate about the same point (50% 1500px from
   the arm's top); ±42deg clears the board on either side.
   Phone style follows the notifications demo (.nt__*).
   Timeline is in % of 15s (1% = 150ms). Board is 790 × 470, no chrome.
   Base styles = the finished run (customer text showing, both automations
   done), so reduced motion shows the end result.
   ========================================================================== */

.sd--auto {
  --au-loop: 15s;
  --au-brand: var(--pg-brand-500, #2C5BF0);
  --au-soft: var(--pg-brand-50, #EEF2FE);
  --au-ok: #1E8E4E;
  --au-ok-soft: #E5F4EA;
  --au-swing: cubic-bezier(.65,0,.35,1);
  --win-w: 790px;
  --win-r: .5949;
}

.au__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 72% 20%, rgba(44,91,240,.13), transparent 55%),
    var(--surface-sunken, #F1F0EC);
  font: 400 12px/1.3 var(--font-text, system-ui, sans-serif);
  color: #17171B;
  text-align: left;
}
.sd--window .au__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.au__ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* a line whose content changes: every version stacked in one grid cell */
.au__stack { display: inline-grid; }
.au__stack > * { grid-area: 1 / 1; }

/* ---- Status pill ---- */
.au__pill {
  position: absolute;
  left: 26px;
  top: 28px;
  z-index: 2;
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 10px 22px -16px rgba(16,16,19,.45);
  font: 600 12.5px/32px var(--font-display, system-ui, sans-serif);
  white-space: nowrap;
}
.au__state { display: inline-flex; align-items: center; gap: 8px; }
.au__state i {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}
.au__state--wait { color: #55555F; opacity: 0; animation: auOff9 var(--au-loop) infinite; }
.au__state--wait i { background: var(--au-brand); animation: auBlink 1s ease-in-out infinite; }
.au__state--wait i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--au-brand);
  border-radius: 50%;
  animation: auPing 1s ease-out infinite;
}
.au__state--run { animation: auOn9 var(--au-loop) infinite; }
.au__state--run i { background: var(--au-ok); box-shadow: 0 0 0 3px rgba(30,142,78,.18); }

/* ---- Event card ---- */
.au__event {
  position: absolute;
  left: 26px;
  top: 76px;
  z-index: 2;
  width: 300px;
  height: 108px;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 18px 32px -22px rgba(16,16,19,.45);
  transform-origin: 30% 50%;
  animation: auEvent var(--au-loop) infinite;
}
.au__event-head { display: flex; align-items: center; gap: 11px; }
.au__chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--au-soft);
  color: var(--au-brand);
}
.au__chip svg { width: 18px; height: 18px; }
.au__kicker {
  display: block;
  color: #6B6B75;
  font: 600 9.5px/1 var(--font-text, system-ui, sans-serif);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.au__name { display: block; margin-top: 4px; font: 800 15.5px/1.1 var(--font-display, system-ui, sans-serif); letter-spacing: -.01em; }
.au__when { margin-left: auto; align-self: flex-start; color: #8A8A94; font-size: 11px; }
.au__who-line { margin-top: 10px; color: #55555F; font-size: 12px; }
.au__times { display: grid; gap: 4px; margin-top: 7px; font-size: 12px; }
.au__new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: var(--au-soft);
  color: #1F3FB8;
  font-weight: 700;
}
.au__new svg { width: 12px; height: 12px; stroke-width: 2.6; }

/* ---- Wires + automation cards ---- */
.au__wire {
  position: absolute;
  left: 51px;
  z-index: 1;
  width: 2px;
  border-radius: 1px;
  background: var(--au-brand);
  transform-origin: 50% 0;
}
.au__wire--1 { top: 184px; height: 18px; animation: auWire1 var(--au-loop) infinite; }
.au__wire--2 { top: 268px; height: 14px; animation: auWire2 var(--au-loop) infinite; }

.au__run {
  position: absolute;
  left: 26px;
  z-index: 2;
  display: flex;
  gap: 11px;
  width: 300px;
  height: 66px;
  box-sizing: border-box;
  padding: 10px 14px 10px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45);
}
.au__run--1 { top: 202px; animation: auRun1 var(--au-loop) infinite; }
.au__run--2 { top: 282px; animation: auRun2 var(--au-loop) infinite; }
.au__run .au__chip { width: 30px; height: 30px; margin-top: 2px; border-radius: 9px; }
.au__run .au__chip svg { width: 16px; height: 16px; }
.au__run-text { flex: 1 1 auto; min-width: 0; }
.au__run-top { display: flex; align-items: center; justify-content: space-between; height: 14px; }
.au__run-title { display: block; margin-top: 4px; font: 700 13px/1.15 var(--font-display, system-ui, sans-serif); white-space: nowrap; }
.au__run-meta { display: block; margin-top: 3px; color: #6B6B75; font-size: 11px; white-space: nowrap; }
.au__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
  padding: 2px 8px;
  border-radius: 999px;
  font: 700 10px/1.3 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
}
.au__tag--busy { background: var(--au-soft); color: #1F3FB8; }
.au__tag--done { background: var(--au-ok-soft); color: #146C3A; }
.au__tag svg { width: 10px; height: 10px; stroke-width: 3; }
.au__run--1 .au__tag--busy { opacity: 0; animation: auOff25 var(--au-loop) infinite; }
.au__run--1 .au__tag--done { animation: auOn25 var(--au-loop) infinite; }
.au__run--2 .au__tag--busy { opacity: 0; animation: auOff57 var(--au-loop) infinite; }
.au__run--2 .au__tag--done { animation: auOn57 var(--au-loop) infinite; }


/* ---- Phones on the wheel ---- */
.au__arm {
  position: absolute;
  left: 430px;
  top: 52px;
  z-index: 3;
  width: 300px;
  height: 600px;
  transform-origin: 50% 1500px;
}
.au__arm--emp { transform: rotate(42deg); animation: auArmEmp var(--au-loop) infinite; }
.au__arm--cust { animation: auArmCust var(--au-loop) infinite; }
.au__pop {
  position: absolute;
  inset: 0;
  transform-origin: 50% 35%;
  animation: auPop var(--au-loop) infinite;
}
.au__label {
  position: absolute;
  left: 50%;
  top: -36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 8px 18px -12px rgba(16,16,19,.4);
  font: 700 11.5px/1 var(--font-display, system-ui, sans-serif);
  white-space: nowrap;
  transform: translateX(-50%);
}
.au__label small { color: #6B6B75; font: 500 11px/1 var(--font-text, system-ui, sans-serif); }
.au__avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--au-brand);
  color: #fff;
  font: 700 9px/1 var(--font-text, system-ui, sans-serif);
}
.au__arm--cust .au__avatar { background: #D9693A; }

.au__phone {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 11px;
  border-radius: 50px;
  background: #121214;
  box-shadow: 0 0 0 2px #2A2A2E, 0 40px 70px -30px rgba(16,16,19,.55);
}
.au__arm--emp .au__phone { animation: auBuzzEmp var(--au-loop) infinite; }
.au__arm--cust .au__phone { animation: auBuzzCust var(--au-loop) infinite; }
.au__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background:
    radial-gradient(circle at 20% 15%, #9DB7FF 0, transparent 45%),
    radial-gradient(circle at 85% 40%, #C8A6F5 0, transparent 50%),
    linear-gradient(160deg, #6F8DF0 0%, #8C79E6 55%, #B48AD8 100%);
  color: #fff;
}
.au__screen--warm {
  background:
    radial-gradient(circle at 18% 14%, #FFD9B0 0, transparent 45%),
    radial-gradient(circle at 85% 42%, #F7A6B5 0, transparent 50%),
    linear-gradient(160deg, #F2946C 0%, #E1708C 55%, #A473D6 100%);
}
.au__island {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 86px;
  height: 25px;
  margin-left: -43px;
  border-radius: 13px;
  background: #121214;
}
.au__status {
  position: absolute;
  left: 28px;
  right: 24px;
  top: 15px;
  display: flex;
  justify-content: space-between;
  font: 600 11.5px/1 var(--font-text, system-ui, sans-serif);
}
.au__status i {
  display: inline-block;
  box-sizing: border-box;
  width: 21px;
  height: 10px;
  border: 1.5px solid #fff;
  border-radius: 3px;
  box-shadow: inset -7px 0 0 #fff;
  opacity: .9;
}
.au__date {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  font: 500 12.5px/1 var(--font-text, system-ui, sans-serif);
  text-align: center;
}
.au__time {
  position: absolute;
  left: 0;
  right: 0;
  top: 62px;
  font: 300 50px/1 var(--font-display, system-ui, sans-serif);
  letter-spacing: -.02em;
  text-align: center;
}

/* ---- Lock-screen alerts ---- */
.au__note {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 124px;
  padding: 11px 13px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 24px -14px rgba(16,16,19,.45);
  color: #1A1A1F;
}
.au__note--push { animation: auPush var(--au-loop) infinite; }
.au__note--sms { animation: auSms var(--au-loop) infinite; }
.au__note-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: #6B6B73;
  font: 600 10px/1 var(--font-text, system-ui, sans-serif);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.au__note-head em { margin-left: auto; font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.au__app {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--au-brand);
  color: #fff;
  font: 800 11px/1 var(--font-display, system-ui, sans-serif);
  letter-spacing: 0;
}
.au__app--sms { background: #34C759; }
.au__app--sms svg { width: 12px; height: 12px; fill: #fff; }
.au__note-title { display: block; font: 700 13px/1.25 var(--font-display, system-ui, sans-serif); }
.au__note-body { display: block; margin-top: 2px; color: #3A3A42; font-size: 11.5px; line-height: 1.38; }
.au__shift {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(16,16,19,.06);
  font-size: 11px;
  white-space: nowrap;
}
.au__shift svg { width: 11px; height: 11px; flex: 0 0 auto; color: #55555F; stroke-width: 2.6; }
.au__shift b { font-weight: 700; }

/* ---- Reset veil ---- */
.au__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--surface-sunken, #F1F0EC);
  opacity: 0;
  animation: auVeil var(--au-loop) infinite;
}

/* ---- Keyframes (% of 15s) ---- */
@keyframes auBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes auPing {
  0%   { opacity: .7; transform: scale(.6); }
  80%, 100% { opacity: 0; transform: scale(1.8); }
}
/* pill: Awaiting action → Running automations at 9% */
@keyframes auOff9 { 0%, 8.9% { opacity: 1; } 9%, 91.9% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes auOn9  { 0%, 8.9% { opacity: 0; } 9%, 91.9% { opacity: 1; } 92%, 100% { opacity: 0; } }
/* the event pops in with a brief brand ring */
@keyframes auEvent {
  0%, 8%    { opacity: 0; transform: translateY(10px) scale(.92); box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 18px 32px -22px rgba(16,16,19,.45); }
  10%       { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 8px rgba(44,91,240,.14), 0 18px 32px -20px rgba(16,16,19,.45); }
  11.5%, 20% { opacity: 1; transform: none; box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 8px rgba(44,91,240,.14), 0 18px 32px -20px rgba(16,16,19,.45); }
  25%, 91.9% { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 18px 32px -22px rgba(16,16,19,.45); }
  92%, 100% { opacity: 0; transform: translateY(10px) scale(.92); box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 18px 32px -22px rgba(16,16,19,.45); }
}
@keyframes auWire1 { 0%, 13% { transform: scaleY(0); } 15%, 91.9% { transform: none; } 92%, 100% { transform: scaleY(0); } }
@keyframes auWire2 { 0%, 47% { transform: scaleY(0); } 49%, 91.9% { transform: none; } 92%, 100% { transform: scaleY(0); } }
/* automation #1: slides in lit (15%), settles when #2 takes over (48%) */
@keyframes auRun1 {
  0%, 14%   { opacity: 0; transform: translateX(-14px); box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); }
  16.5%, 46% { opacity: 1; transform: none; box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 7px rgba(44,91,240,.13), 0 14px 26px -18px rgba(16,16,19,.45); }
  49%, 91.9% { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); }
  92%, 100% { opacity: 0; transform: translateX(-14px); box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); }
}
/* automation #2: slides in lit (49%) and stays lit to the reset */
@keyframes auRun2 {
  0%, 48%   { opacity: 0; transform: translateX(-14px); box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); }
  50.5%, 91.9% { opacity: 1; transform: none; box-shadow: 0 0 0 2px #2C5BF0, 0 0 0 7px rgba(44,91,240,.13), 0 14px 26px -18px rgba(16,16,19,.45); }
  92%, 100% { opacity: 0; transform: translateX(-14px); box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); }
}
/* status tags: Sending… → Sent (25%) / Delivered (57%) */
@keyframes auOff25 { 0%, 24.9% { opacity: 1; } 25%, 91.9% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes auOn25  { 0%, 24.9% { opacity: 0; } 25%, 91.9% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes auOff57 { 0%, 56.9% { opacity: 1; } 57%, 91.9% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes auOn57  { 0%, 56.9% { opacity: 0; } 57%, 91.9% { opacity: 1; } 92%, 100% { opacity: 0; } }
/* the wheel: employee phone arcs out right, customer phone arcs in from the left */
@keyframes auArmEmp {
  0%, 44%   { transform: rotate(0); animation-timing-function: var(--au-swing); }
  54%, 100% { transform: rotate(42deg); }
}
@keyframes auArmCust {
  0%, 44%   { transform: rotate(-42deg); animation-timing-function: var(--au-swing); }
  54%, 91.9% { transform: none; }
  92%, 100% { transform: rotate(-42deg); }
}
/* the employee phone pops into view (18%) */
@keyframes auPop {
  0%, 18%   { opacity: 0; transform: scale(.55); animation-timing-function: cubic-bezier(.2,.8,.3,1.2); }
  20.5%     { opacity: 1; transform: scale(1.04); }
  22%, 100% { opacity: 1; transform: none; }
}
@keyframes auBuzzEmp {
  0%, 24.9%  { transform: none; }
  25.5%      { transform: translateX(-3px) rotate(-.6deg); }
  26.1%      { transform: translateX(3px) rotate(.6deg); }
  26.7%      { transform: translateX(-2px) rotate(-.4deg); }
  27.3%, 100% { transform: none; }
}
@keyframes auBuzzCust {
  0%, 56.9%  { transform: none; }
  57.5%      { transform: translateX(-3px) rotate(-.6deg); }
  58.1%      { transform: translateX(3px) rotate(.6deg); }
  58.7%      { transform: translateX(-2px) rotate(-.4deg); }
  59.3%, 100% { transform: none; }
}
@keyframes auPush {
  0%, 25%   { opacity: 0; transform: translateY(-26px) scale(.95); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  28%, 100% { opacity: 1; transform: none; }
}
@keyframes auSms {
  0%, 57%   { opacity: 0; transform: translateY(-26px) scale(.95); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  60%, 91.9% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-26px) scale(.95); }
}
@keyframes auVeil { 0%, 88% { opacity: 0; } 91.5%, 92.5% { opacity: 1; } 100% { opacity: 0; } }


/* ==========================================================================
   18. Client portal quote approval demo — 16s loop, shown in the split-hero window
   The customer's portal (sidebar, top bar, grey content area), in the
   portal's own layout. Sequence: the Quotes list with one Pending Approval
   row → cursor clicks its View (12%) → the quote opens over the list →
   the page scrolls to the totals (24–30%), then to Quote Approval (36–42%)
   → cursor clicks "Yes, I approve this quote" (47%) → button shows
   Approving… → the box turns into a "Quote approved" confirmation, a toast
   slides in and the bell count drops (51%) → the page scrolls back to the
   top (58–64%) where the status flips Pending Approval → Approved (64%) →
   hold → veil, reset (88–100%).
   The quote is a tall page (.cp__page) the content area scrolls over; its
   stops are translateY values measured from the rendered page.
   Timeline is in % of 16s (1% = 160ms). Board is 790 × 470.
   Base styles = the approved quote at the top of the page, so reduced
   motion shows the end result.
   ========================================================================== */

.sd--portal {
  --cp-loop: 16s;
  --cp-blue: #2FA0DA;
  --cp-blue-soft: #A9D8F0;
  --cp-btn: #1179A8;
  --cp-ok: #1E8E4E;
  --cp-ok-soft: #E5F4EA;
  --cp-ease: cubic-bezier(.65,0,.35,1);
  --win-w: 790px;
  --win-r: .5949;
}
.sd--portal .sd__chrome-title { position: relative; flex: 1 1 auto; height: 18px; }
.cp__url {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cp__url--list { opacity: 0; animation: cpUrlList var(--cp-loop) infinite; }
.cp__url--quote { color: var(--text-primary, #17171B); animation: cpUrlQuote var(--cp-loop) infinite; }

.cp__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: #F1F1F1;
  font: 400 11px/1.4 var(--font-text, system-ui, sans-serif);
  color: #222;
  text-align: left;
}
.sd--window .cp__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.cp__ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cp__stack { display: inline-grid; }
.cp__stack > * { grid-area: 1 / 1; }

/* ---- Sidebar + top bar ---- */
.cp__side {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 150px;
  background: #fff;
  box-shadow: 1px 0 0 #E6E6E6;
}
.cp__brand {
  height: 46px;
  border-bottom: 1px solid #ECECEC;
  font: 600 11.5px/46px var(--font-display, system-ui, sans-serif);
  color: #17171B;
  text-align: center;
  white-space: nowrap;
}
.cp__nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  padding-left: 16px;
  border-bottom: 1px solid #F0F0F0;
  color: #5C6470;
  font: 600 10.5px/1 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
}
.cp__nav-item .cp__ico { width: 17px; height: 17px; color: var(--cp-blue-soft); }
.cp__nav-item--on { color: #17171B; background: #F5FAFD; box-shadow: inset 3px 0 0 var(--cp-blue); }
.cp__nav-item--on .cp__ico { color: var(--cp-blue); }
.cp__top {
  position: absolute;
  left: 150px;
  right: 0;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  height: 46px;
  padding-right: 22px;
  background: #fff;
  box-shadow: 0 6px 18px -14px rgba(0,0,0,.3);
}
.cp__bell { position: relative; color: #6B7280; }
.cp__bell .cp__ico { display: block; width: 18px; height: 18px; }
.cp__badge {
  position: absolute;
  right: -8px;
  top: -6px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #D11F1F;
  color: #fff;
  font: 700 9px/15px var(--font-text, system-ui, sans-serif);
  text-align: center;
}
.cp__badge i { font-style: normal; }
.cp__badge i:first-child { opacity: 0; animation: cpOff51 var(--cp-loop) infinite; }
.cp__badge i:last-child { animation: cpOn51 var(--cp-loop) infinite; }
.cp__me { display: flex; align-items: center; gap: 8px; font: 600 10.5px/1.25 var(--font-text, system-ui, sans-serif); color: #5C6470; }
.cp__me small { display: block; font-weight: 500; color: #8A8F98; }
.cp__avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #6B7280;
  color: #fff;
  font: 700 10px/1 var(--font-text, system-ui, sans-serif);
}

/* ---- Content area ---- */
.cp__main {
  position: absolute;
  left: 150px;
  right: 0;
  top: 46px;
  bottom: 0;
  overflow: hidden;
}

/* quotes list */
.cp__list {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 22px;
  padding: 18px 22px 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px -24px rgba(0,0,0,.35);
}
.cp__list-head { display: flex; gap: 4px; }
.cp__filter {
  position: relative;
  width: 150px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid #CFCFCF;
  border-radius: 2px;
  color: #8A8F98;
  line-height: 20px;
}
.cp__filter::after { content: ""; position: absolute; right: 8px; top: 6px; width: 4px; height: 4px; border-right: 1.5px solid #555; border-bottom: 1.5px solid #555; transform: rotate(45deg); }
.cp__go { padding: 0 9px; border-radius: 2px; background: var(--cp-blue); color: #fff; line-height: 22px; }
.cp__h { margin: 14px 0 0; font: 300 21px/1 var(--font-display, system-ui, sans-serif); color: #555; }
.cp__sub { margin: 8px 0 14px; color: #555; font-size: 10.5px; }
.cp__table { border: 1px solid #E3E3E3; }
.cp__tr {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr .55fr;
  align-items: center;
  height: 31px;
  border-top: 1px solid #E8E8E8;
  text-align: center;
  white-space: nowrap;
}
.cp__tr--head { height: 26px; border-top: 0; background: #E9E9E9; font-weight: 600; color: #444; }
.cp__tr--hot { animation: cpRowHot var(--cp-loop) infinite; }
.cp__st { font-style: normal; }
.cp__st--wait {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FDF1DA;
  color: #7A4D00;
  font-weight: 600;
}
.cp__st--ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cp-ok-soft);
  color: #146C3A;
  font-weight: 700;
}
.cp__st--ok .cp__ico { width: 10px; height: 10px; stroke-width: 3; }
.cp__view {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--cp-blue);
  color: #fff;
  font-weight: 600;
}
.cp__tr--hot .cp__view { animation: cpViewPress var(--cp-loop) infinite; }

/* ---- Quote page ---- */
.cp__detail {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #F1F1F1;
  animation: cpDetail var(--cp-loop) infinite;
}
.cp__page { animation: cpScroll var(--cp-loop) infinite; }
.cp__doc {
  width: 480px;
  box-sizing: border-box;
  margin: 20px auto;
  padding: 24px 26px 26px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px -24px rgba(0,0,0,.35);
}
.cp__biz { display: block; font: 700 13px/1.2 var(--font-display, system-ui, sans-serif); color: #17171B; }
.cp__addr { display: flex; gap: 40px; margin-top: 8px; color: #444; font-size: 10.5px; }
.cp__meta { display: grid; gap: 2px; margin-top: 12px; font-size: 10.5px; }
.cp__meta b { font-weight: 700; }
.cp__status-line { display: flex; align-items: center; gap: 5px; height: 18px; }
.cp__status-line .cp__st--wait { opacity: 0; animation: cpOff64 var(--cp-loop) infinite; }
.cp__status-line .cp__st--ok { transform-origin: 0 50%; animation: cpStatusOk var(--cp-loop) infinite; }
.cp__bar {
  margin: 14px 0 10px;
  padding: 4px 0;
  border-radius: 2px;
  background: #EFEFEF;
  font: 600 10.5px/1.2 var(--font-text, system-ui, sans-serif);
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}
.cp__cust { display: flex; gap: 60px; color: #333; font-size: 10.5px; }
.cp__cust b { font-weight: 700; }
.cp__lines { display: grid; gap: 3px; font-size: 10.5px; }
.cp__lines > b { margin-top: 4px; font-weight: 700; }
.cp__ln { display: flex; justify-content: space-between; padding: 0 2px 0 8px; }
.cp__ln--sub { padding-bottom: 3px; border-bottom: 1px solid #DADADA; }
.cp__ln--total { margin-top: 8px; padding-left: 0; font-weight: 700; font-size: 11.5px; }
.cp__note { margin: 12px 0 0; color: #444; font-size: 10px; }
.cp__box {
  margin-top: 14px;
  padding: 18px 22px;
  border: 1px solid #DADADA;
  border-radius: 18px;
}
.cp__box-title {
  margin-bottom: 12px;
  font: 500 11.5px/1 var(--font-display, system-ui, sans-serif);
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}
.cp__terms {
  position: relative;
  height: 76px;
  overflow: hidden;
  padding-right: 14px;
  color: #444;
  font-size: 10px;
}
.cp__terms b { display: block; color: #17171B; font-weight: 700; }
.cp__terms i { position: absolute; right: 2px; top: 0; width: 4px; height: 26px; border-radius: 2px; background: #9A9A9A; }
.cp__box--approve { position: relative; }
.cp__ask { text-align: center; animation: cpAsk var(--cp-loop) infinite; }
.cp__ask p { margin: 0 0 9px; color: #333; font-size: 10.5px; }
.cp__btn {
  display: block;
  height: 26px;
  border-radius: 2px;
  background: var(--cp-btn);
  color: #fff;
  font-size: 10.5px;
  line-height: 26px;
  text-align: center;
}
.cp__btn--yes { animation: cpYes var(--cp-loop) infinite; }
.cp__btn--yes .cp__stack > :first-child { opacity: 0; animation: cpOff48 var(--cp-loop) infinite; }
.cp__btn--yes .cp__stack > :last-child { animation: cpOn48 var(--cp-loop) infinite; }
.cp__busy { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.cp__spin {
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pdSpin .7s linear infinite;
}
.cp__reason {
  display: block;
  height: 46px;
  margin: 10px 0;
  padding: 7px 9px;
  border: 1px solid #BDBDBD;
  color: #8A8F98;
  font-size: 10px;
  text-align: left;
}
/* confirmation that replaces the approval form */
.cp__done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 40px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  color: #555;
  font-size: 10.5px;
  animation: cpDone var(--cp-loop) infinite;
}
.cp__done strong { color: #17171B; font: 800 15px/1.2 var(--font-display, system-ui, sans-serif); }
.cp__done-check {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cp-ok);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(30,142,78,.14);
}
.cp__done-check .cp__ico { width: 22px; height: 22px; stroke-width: 3; }

/* ---- Toast ---- */
.cp__toast {
  position: absolute;
  right: 18px;
  top: 58px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 11px;
  border-left: 4px solid var(--cp-ok);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 16px 30px -14px rgba(0,0,0,.35);
  color: #555;
  font-size: 10.5px;
  white-space: nowrap;
  animation: cpToast var(--cp-loop) infinite;
}
.cp__toast strong { display: block; color: #17171B; font: 700 12px/1.3 var(--font-display, system-ui, sans-serif); }
.cp__toast-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cp-ok);
  color: #fff;
}
.cp__toast-check .cp__ico { width: 12px; height: 12px; stroke-width: 3; }

.cp__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #F1F1F1;
  opacity: 0;
  animation: cpVeil var(--cp-loop) infinite;
}
.cp__cursor { z-index: 7; animation-name: cpCursor; animation-duration: var(--cp-loop); }
.cp__ripple { z-index: 6; border-color: var(--cp-blue); }
.cp__ripple--1 { left: 703px; top: 224px; animation: cpRip1 var(--cp-loop) infinite; }  /* 12% View */
.cp__ripple--2 { left: 470px; top: 313px; animation: cpRip2 var(--cp-loop) infinite; }  /* 47% Yes, I approve */

/* ---- Keyframes (% of 16s) ---- */
@keyframes cpUrlList  { 0%, 13.9% { opacity: 1; } 14%, 91.9% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes cpUrlQuote { 0%, 13.9% { opacity: 0; } 14%, 91.9% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes cpRowHot {
  0%, 8.9%  { background: transparent; }
  9.5%, 14% { background: #F2F9FD; }
  16%, 100% { background: transparent; }
}
@keyframes cpViewPress {
  0%, 11.9% { background: #2FA0DA; transform: none; }
  12%       { background: #1179A8; transform: scale(.9); }
  13%, 100% { background: #2FA0DA; transform: none; }
}
/* the quote opens over the list */
@keyframes cpDetail {
  0%, 12.5%  { opacity: 0; transform: translateY(12px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  15.5%, 91.9% { opacity: 1; transform: none; }
  92%, 100%  { opacity: 0; transform: translateY(12px); }
}
/* scroll stops: top → totals → Quote Approval → back to top */
@keyframes cpScroll {
  0%, 24%   { transform: none; animation-timing-function: var(--cp-ease); }
  30%, 36%  { transform: translateY(-190px); animation-timing-function: var(--cp-ease); }
  42%, 58%  { transform: translateY(-490px); animation-timing-function: var(--cp-ease); }
  64%, 100% { transform: none; }
}
@keyframes cpYes {
  0%, 46.9% { background: #1179A8; transform: none; }
  47%       { background: #0B5E85; transform: scale(.97); }
  48%, 100% { background: #1179A8; transform: none; }
}
@keyframes cpOff48 { 0%, 47.9% { opacity: 1; } 48%, 91.9% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes cpOn48  { 0%, 47.9% { opacity: 0; } 48%, 91.9% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes cpAsk   { 0%, 51% { opacity: 1; } 53%, 91.9% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes cpDone {
  0%, 51%   { opacity: 0; transform: scale(.96); }
  53.5%, 91.9% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: scale(.96); }
}
/* bell count drops 2 → 1 as the approval goes through */
@keyframes cpOff51 { 0%, 50.9% { opacity: 1; } 51%, 91.9% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes cpOn51  { 0%, 50.9% { opacity: 0; } 51%, 91.9% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes cpToast {
  0%, 51.5% { opacity: 0; transform: translateX(24px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  54.5%, 86% { opacity: 1; transform: none; }
  89%, 100% { opacity: 0; transform: translateX(24px); }
}
/* status at the top of the quote: Pending Approval → Approved once it scrolls back into view */
@keyframes cpOff64 { 0%, 63.9% { opacity: 1; } 64%, 91.9% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes cpStatusOk {
  0%, 63.9% { opacity: 0; transform: scale(.6); box-shadow: 0 0 0 0 rgba(30,142,78,0); }
  65.5%     { opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(30,142,78,.22); }
  67%, 91.9% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(30,142,78,0); }
  92%, 100% { opacity: 0; transform: scale(.6); box-shadow: 0 0 0 0 rgba(30,142,78,0); }
}
@keyframes cpVeil { 0%, 88% { opacity: 0; } 91.5%, 92.5% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cpCursor {
  0%, 2%   { opacity: 0; transform: translate(560px, 440px) scale(1); }
  4%       { opacity: 1; transform: translate(560px, 440px) scale(1); animation-timing-function: var(--cp-ease); }
  11%      { transform: translate(700px, 221px) scale(1); }
  12%      { transform: translate(700px, 221px) scale(.82); }
  13%      { opacity: 1; transform: translate(700px, 221px) scale(1); }
  16%      { opacity: 0; transform: translate(712px, 236px) scale(1); }
  38.9%    { opacity: 0; transform: translate(720px, 455px) scale(1); }
  40%      { opacity: 1; transform: translate(720px, 455px) scale(1); animation-timing-function: var(--cp-ease); }
  46%      { transform: translate(467px, 310px) scale(1); }
  47%      { transform: translate(467px, 310px) scale(.82); }
  48%, 52% { opacity: 1; transform: translate(467px, 310px) scale(1); }
  55%, 100% { opacity: 0; transform: translate(480px, 326px) scale(1); }
}
@keyframes cpRip1 {
  0%, 11.9% { opacity: 0; transform: scale(.4); } 12% { opacity: .9; transform: scale(.4); } 15%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes cpRip2 {
  0%, 46.9% { opacity: 0; transform: scale(.4); } 47% { opacity: .9; transform: scale(.4); } 50%, 100% { opacity: 0; transform: scale(1.6); }
}



/* ==========================================================================
   19. Customer profile tour — 22s loop, shown in the split-hero window
   One customer profile laid out as a "world" (.cm__world, 1180 × 1116) that
   the camera moves over, with a numbered caption pinned at the top.
   Sequence: the profile header with no buttons → the twelve shortcut
   buttons drop into place row by row with a bounce, the count badges pop
   (caption 1: easy access to documents, photos & calls) → pan to contact
   info (20–25.5%) → pan to the map, the property pin drops (40–45.5%) →
   pan to card on file and properties (58–63.5%) → pan to the customer note,
   whose lines write themselves in (76–81.5%) → veil, reset (93–100%).
   Camera stops (transform-origin 0 0, screen = world × scale + translate):
   header (6, 76) .66 · contact (140, -228.6) .85 · map (-353, -228.6) .85 ·
   card/properties (80, -742.3) 1.05 · note (-529, -742.3) 1.05.
   Timeline is in % of 22s (1% = 220ms). Board is 790 × 470.
   Base styles = the whole profile in overview, every button and note in
   place, so reduced motion shows a still of the full profile.
   ========================================================================== */

.sd--cust {
  --cm-loop: 22s;
  --cm-cyan: #13B5EA;
  --cm-ease: cubic-bezier(.65,0,.35,1);
  --win-w: 790px;
  --win-r: .5949;
}

.cm__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: #F4F6F6;
  font: 400 15px/1.4 var(--font-text, system-ui, sans-serif);
  color: #1F2328;
  text-align: left;
}
.sd--window .cm__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.cm__ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- The world the camera moves over ---- */
.cm__world {
  position: absolute;
  left: 0;
  top: 0;
  width: 1180px;
  height: 1116px;
  transform-origin: 0 0;
  transform: translate(182px, 64px) scale(.36);
  animation: cmCam var(--cm-loop) infinite;
}
.cm__card {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 14px 30px -22px rgba(0,0,0,.3);
}
.cm__card--head { left: 20px; top: 20px; width: 1140px; height: 316px; padding: 30px 40px; }
.cm__card--info { left: 20px; top: 356px; width: 560px; height: 450px; padding: 30px 40px; }
.cm__card--map  { left: 600px; top: 356px; width: 560px; height: 450px; }
.cm__card--pay  { left: 20px; top: 826px; width: 560px; height: 270px; padding: 30px 40px; }
.cm__card--note { left: 600px; top: 826px; width: 560px; height: 270px; padding: 30px 40px; }

/* ---- Header + shortcut buttons ---- */
.cm__mark {
  position: absolute;
  right: -10px;
  bottom: -30px;
  width: 260px;
  height: 260px;
  color: #F0F2F4;
}
.cm__mark .cm__ico { width: 100%; height: 100%; stroke-width: 2.6; }
.cm__title { position: relative; margin: 0; color: var(--cm-cyan); font: 500 30px/1.1 var(--font-display, system-ui, sans-serif); letter-spacing: -.01em; }
.cm__btns { position: relative; display: grid; gap: 16px; margin-top: 24px; }
.cm__brow { position: relative; display: flex; gap: 5px; }
.cm__btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  background: var(--cm-cyan);
  color: #fff;
  font: 700 15.5px/1 var(--font-display, system-ui, sans-serif);
  letter-spacing: -.01em;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
  white-space: nowrap;
  transform-origin: 50% 100%;
}
.cm__btn em {
  display: inline-block;
  min-width: 20px;
  height: 22px;
  margin-left: 8px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 2px;
  background: #fff;
  color: var(--cm-cyan);
  font: 600 14px/22px var(--font-text, system-ui, sans-serif);
  font-style: normal;
  text-align: center;
  text-shadow: none;
  animation: cmBadge var(--cm-loop) infinite;
}

/* ---- Contact info ---- */
.cm__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid #E6E8EA;
  text-align: center;
  font-size: 14.5px;
}
.cm__stats b {
  display: block;
  margin-bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #7A7F88;
  color: #fff;
  font: 700 11.5px/1.3 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
}
.cm__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.cm__tag-btn, .cm__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #fff;
  font: 600 11.5px/1.2 var(--font-text, system-ui, sans-serif);
}
.cm__tag-btn { background: var(--cm-cyan); }
.cm__tag-btn .cm__ico,
.cm__tag .cm__ico { width: 12px; height: 12px; flex: 0 0 auto; }
.cm__rows {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  row-gap: 10px;
  margin: 22px 0 0;
}
.cm__rows dt { font-weight: 600; }
.cm__rows dd { margin: 0; }
.cm__rows small { color: #7A7F88; font-size: 12.5px; }
.cm__link { color: #3B6FD8; }
.cm__ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #E5F4EA;
  color: #146C3A;
  font: 700 12.5px/1.3 var(--font-text, system-ui, sans-serif);
}
.cm__ok .cm__ico { width: 12px; height: 12px; stroke-width: 3; }

/* ---- Map (drawn, no provider imagery) ---- */
.cm__map { position: absolute; inset: 0; overflow: hidden; background: #EAF0E6; }
.cm__place {
  position: absolute;
  color: #6F7A70;
  font: 700 11px/1 var(--font-text, system-ui, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cm__pin {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  background: #E5484D;
  box-shadow: -3px 6px 10px -4px rgba(0,0,0,.45);
  transform: rotate(-45deg);
}
.cm__pin::after { content: ""; position: absolute; left: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.cm__pin--1 { left: 141px; top: 172px; animation: cmPin1 var(--cm-loop) infinite; }
.cm__mapbox {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  gap: 2px;
  width: 250px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  font-size: 14px;
}
.cm__mapbox span { color: #6B7280; font-size: 12.5px; }
.cm__mapbox em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #1A73E8;
  color: #fff;
  font: 600 14px/1 var(--font-text, system-ui, sans-serif);
  font-style: normal;
}
.cm__mapbox .cm__ico { width: 15px; height: 15px; }

/* ---- Card on file + properties ---- */
.cm__sec { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; }
.cm__sec--props { align-items: start; margin-top: 22px; padding-top: 22px; border-top: 1px solid #E6E8EA; }
.cm__lbl { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.cm__lbl i {
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--cm-cyan);
  color: #fff;
  font: 700 11px/1.2 var(--font-text, system-ui, sans-serif);
  font-style: normal;
}
.cm__visa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 7px 12px 7px 8px;
  border: 1px solid #E3E6E8;
  border-radius: 8px;
  font-weight: 600;
  animation: cmVisa var(--cm-loop) infinite;
}
.cm__visa b {
  padding: 3px 7px;
  border-radius: 4px;
  background: #1A1F71;
  color: #fff;
  font: 800 italic 12px/1 var(--font-display, system-ui, sans-serif);
  letter-spacing: .04em;
}
.cm__visa small { color: #7A7F88; font-weight: 500; font-size: 12.5px; }
.cm__props { display: grid; gap: 14px; }
.cm__prop { display: grid; gap: 6px; font-size: 14.5px; line-height: 1.35; }
.cm__acts { display: flex; gap: 4px; }
.cm__acts b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--cm-cyan);
  color: #fff;
  font: 700 11px/1.2 var(--font-text, system-ui, sans-serif);
}
.cm__acts .cm__def { background: #6E737B; }
.cm__acts .cm__ico { width: 11px; height: 11px; }

/* ---- Customer note ---- */
.cm__note-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm__note-head strong { font: 700 17px/1.2 var(--font-display, system-ui, sans-serif); }
.cm__private {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F1F2F4;
  color: #55595F;
  font: 600 11.5px/1.2 var(--font-text, system-ui, sans-serif);
}
.cm__private .cm__ico { width: 12px; height: 12px; }
.cm__note {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid #F2C94C;
  border-radius: 4px;
  background: #FFF9E6;
  font-size: 15px;
}
.cm__line { display: block; white-space: nowrap; }
.cm__line--1 { animation: cmLine1 var(--cm-loop) infinite; }
.cm__line--2 { animation: cmLine2 var(--cm-loop) infinite; }
.cm__line--3 { animation: cmLine3 var(--cm-loop) infinite; }

/* ---- Caption pinned at the top ---- */
.cm__fade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 72px;
  background: linear-gradient(to bottom, #F4F6F6 45%, rgba(244,246,246,0));
}
.cm__caps { position: absolute; left: 0; right: 0; top: 14px; z-index: 3; height: 38px; }
.cm__cap {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 18px 0 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.06), 0 12px 24px -16px rgba(16,16,19,.45);
  font: 700 15px/1 var(--font-display, system-ui, sans-serif);
  letter-spacing: -.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
}
.cm__cap b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--cm-cyan);
  color: #fff;
  font-size: 12.5px;
}
.cm__cap--1 { opacity: 1; animation: cmCap1 var(--cm-loop) infinite; }
.cm__cap--2 { animation: cmCap2 var(--cm-loop) infinite; }
.cm__cap--3 { animation: cmCap3 var(--cm-loop) infinite; }
.cm__cap--4 { animation: cmCap4 var(--cm-loop) infinite; }
.cm__cap--5 { animation: cmCap5 var(--cm-loop) infinite; }

.cm__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #F4F6F6;
  opacity: 0;
  animation: cmVeil var(--cm-loop) infinite;
}

/* ---- Keyframes (% of 22s) ---- */
@keyframes cmCam {
  0%, 20%     { transform: translate(6px, 76px) scale(.66); animation-timing-function: var(--cm-ease); }
  25.5%, 40%  { transform: translate(140px, -228.6px) scale(.85); animation-timing-function: var(--cm-ease); }
  45.5%, 58%  { transform: translate(-353px, -228.6px) scale(.85); animation-timing-function: var(--cm-ease); }
  63.5%, 76%  { transform: translate(80px, -742.3px) scale(1.05); animation-timing-function: var(--cm-ease); }
  81.5%, 95%  { transform: translate(-529px, -742.3px) scale(1.05); }
  95.1%, 100% { transform: translate(6px, 76px) scale(.66); }
}
/* the shortcut buttons drop in, row by row, squash on landing and bounce */
.cm__btn--1 { animation: cmDrop1 var(--cm-loop) infinite; }
.cm__btn--2 { animation: cmDrop2 var(--cm-loop) infinite; }
.cm__btn--3 { animation: cmDrop3 var(--cm-loop) infinite; }
.cm__btn--4 { animation: cmDrop4 var(--cm-loop) infinite; }
.cm__btn--5 { animation: cmDrop5 var(--cm-loop) infinite; }
.cm__btn--6 { animation: cmDrop6 var(--cm-loop) infinite; }
.cm__btn--7 { animation: cmDrop7 var(--cm-loop) infinite; }
.cm__btn--8 { animation: cmDrop8 var(--cm-loop) infinite; }
.cm__btn--9 { animation: cmDrop9 var(--cm-loop) infinite; }
.cm__btn--10 { animation: cmDrop10 var(--cm-loop) infinite; }
.cm__btn--11 { animation: cmDrop11 var(--cm-loop) infinite; }
.cm__btn--12 { animation: cmDrop12 var(--cm-loop) infinite; }
@keyframes cmDrop1 {
  0%, 2.73% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  4.13% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  5.03% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  5.73% { transform: translateY(0) scaleY(.96); }
  6.33%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop2 {
  0%, 3.23% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  4.63% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  5.53% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  6.23% { transform: translateY(0) scaleY(.96); }
  6.83%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop3 {
  0%, 3.73% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  5.13% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  6.03% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  6.73% { transform: translateY(0) scaleY(.96); }
  7.33%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop4 {
  0%, 4.23% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  5.63% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  6.53% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  7.23% { transform: translateY(0) scaleY(.96); }
  7.83%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop5 {
  0%, 5.73% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  7.13% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  8.03% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  8.73% { transform: translateY(0) scaleY(.96); }
  9.33%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop6 {
  0%, 6.23% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  7.63% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  8.53% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  9.23% { transform: translateY(0) scaleY(.96); }
  9.83%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop7 {
  0%, 6.73% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  8.13% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  9.03% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  9.73% { transform: translateY(0) scaleY(.96); }
  10.33%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop8 {
  0%, 8.23% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  9.63% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  10.53% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  11.23% { transform: translateY(0) scaleY(.96); }
  11.83%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop9 {
  0%, 8.73% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  10.13% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  11.03% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  11.73% { transform: translateY(0) scaleY(.96); }
  12.33%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop10 {
  0%, 10.23% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  11.63% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  12.53% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  13.23% { transform: translateY(0) scaleY(.96); }
  13.83%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop11 {
  0%, 10.73% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  12.13% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  13.03% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  13.73% { transform: translateY(0) scaleY(.96); }
  14.33%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
@keyframes cmDrop12 {
  0%, 11.23% { opacity: 0; transform: translateY(-70px) scaleY(1); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  12.63% { opacity: 1; transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  13.53% { transform: translateY(-9px) scaleY(1.04); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  14.23% { transform: translateY(0) scaleY(.96); }
  14.83%, 95% { opacity: 1; transform: none; }
  95.1%, 100% { opacity: 0; transform: translateY(-70px) scaleY(1); }
}
/* count badges pop once the last row has landed */
@keyframes cmBadge {
  0%, 15%  { transform: none; }
  16%      { transform: scale(1.35); }
  17.5%, 100% { transform: none; }
}
/* captions swap as the camera arrives at each stop */
@keyframes cmCap1 {
  0%, 1%    { opacity: 0; transform: translate(-50%, -10px); }
  3%, 19%   { opacity: 1; transform: translate(-50%, 0); }
  21%, 100% { opacity: 0; transform: translate(-50%, -10px); }
}
@keyframes cmCap2 {
  0%, 24%   { opacity: 0; transform: translate(-50%, -10px); }
  26%, 39%  { opacity: 1; transform: translate(-50%, 0); }
  41%, 100% { opacity: 0; transform: translate(-50%, -10px); }
}
@keyframes cmCap3 {
  0%, 44%   { opacity: 0; transform: translate(-50%, -10px); }
  46%, 57%  { opacity: 1; transform: translate(-50%, 0); }
  59%, 100% { opacity: 0; transform: translate(-50%, -10px); }
}
@keyframes cmCap4 {
  0%, 62%   { opacity: 0; transform: translate(-50%, -10px); }
  64%, 75%  { opacity: 1; transform: translate(-50%, 0); }
  77%, 100% { opacity: 0; transform: translate(-50%, -10px); }
}
@keyframes cmCap5 {
  0%, 80%   { opacity: 0; transform: translate(-50%, -10px); }
  82%, 93%  { opacity: 1; transform: translate(-50%, 0); }
  95%, 100% { opacity: 0; transform: translate(-50%, -10px); }
}
/* the property pin drops onto the map */
@keyframes cmPin1 {
  0%, 46%   { opacity: 0; transform: translateY(-50px) rotate(-45deg); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  47.5%     { opacity: 1; transform: translateY(0) rotate(-45deg); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  48.3%     { transform: translateY(-10px) rotate(-45deg); }
  49%, 95%  { opacity: 1; transform: rotate(-45deg); }
  95.1%, 100% { opacity: 0; transform: translateY(-50px) rotate(-45deg); }
}
/* the card on file gets a brief ring as the camera settles */
@keyframes cmVisa {
  0%, 64%   { box-shadow: 0 0 0 0 rgba(19,181,234,0); }
  66%, 72%  { box-shadow: 0 0 0 3px rgba(19,181,234,.35); }
  76%, 100% { box-shadow: 0 0 0 0 rgba(19,181,234,0); }
}
/* the note writes itself in, line by line */
@keyframes cmLine1 { 0%, 82% { clip-path: inset(0 100% 0 0); } 84.5%, 95% { clip-path: inset(0 0 0 0); } 95.1%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes cmLine2 { 0%, 84.5% { clip-path: inset(0 100% 0 0); } 87%, 95% { clip-path: inset(0 0 0 0); } 95.1%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes cmLine3 { 0%, 87% { clip-path: inset(0 100% 0 0); } 89.5%, 95% { clip-path: inset(0 0 0 0); } 95.1%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes cmVeil { 0%, 93% { opacity: 0; } 94.5%, 97% { opacity: 1; } 100% { opacity: 0; } }


/* ==========================================================================
   20. Customer survey demo — 20s loop, shown in the split-hero window
   Left: three numbered steps that light up in turn. Right: the customer's
   phone, small enough to show the whole screen.
   Sequence: the phone pops up from below (2–5%) → in Messages, typing dots,
   then the thank-you text with the survey link arrives (9%) → tap the link
   (15%) → the survey slides in (16–19%) → five stars on each of the three
   questions (23 / 29 / 35%) → tap the comment box and type a note (40–48%)
   → tap Submit (52%) → the thank-you page slides in (54–57%) with the 5.0
   rating, Google and Facebook review buttons and the coupon note → the
   Google button pulses → the phone drops away and everything resets (90–100%).
   A touch dot (.sv__touch) marks each tap, in board coordinates.
   Timeline is in % of 20s (1% = 200ms). Board is 790 × 470, no chrome.
   Base styles = the thank-you page with the review buttons, so reduced
   motion shows the end result.
   ========================================================================== */

.sd--survey {
  --sv-loop: 20s;
  --sv-blue: #2FA0DA;
  --sv-btn: #1179A8;
  --sv-star: #F5B301;
  --sv-ok: #1E8E4E;
  --sv-ease: cubic-bezier(.65,0,.35,1);
  --win-w: 790px;
  --win-r: .5949;
}

.sv__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, rgba(47,160,218,.16), transparent 55%),
    var(--surface-sunken, #F1F0EC);
  font: 400 11px/1.35 var(--font-text, system-ui, sans-serif);
  color: #17171B;
  text-align: left;
}
.sd--window .sv__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.sv__ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Steps ---- */
.sv__steps {
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 300px;
}
.sv__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45);
  font: 700 13.5px/1.3 var(--font-display, system-ui, sans-serif);
}
.sv__step b {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sv-ok);
  color: #fff;
  font: 700 13px/1 var(--font-text, system-ui, sans-serif);
}
.sv__step b i { position: absolute; font-style: normal; opacity: 0; }
.sv__step b .sv__ico { width: 15px; height: 15px; stroke-width: 3; }
.sv__step--1 { animation: svStep1 var(--sv-loop) infinite; }
.sv__step--2 { animation: svStep2 var(--sv-loop) infinite; }
.sv__step--3 { animation: svStep3 var(--sv-loop) infinite; }
.sv__step--1 b { animation: svBadge1 var(--sv-loop) infinite; }
.sv__step--2 b { animation: svBadge2 var(--sv-loop) infinite; }
.sv__step--3 b { animation: svBadge3 var(--sv-loop) infinite; }
.sv__step--1 b i { animation: svNum1 var(--sv-loop) infinite; }
.sv__step--2 b i { animation: svNum2 var(--sv-loop) infinite; }
.sv__step--3 b i { animation: svNum3 var(--sv-loop) infinite; }
.sv__step--1 b .sv__ico { animation: svTick1 var(--sv-loop) infinite; }
.sv__step--2 b .sv__ico { animation: svTick2 var(--sv-loop) infinite; }
.sv__step--3 b .sv__ico { animation: svTick3 var(--sv-loop) infinite; }

/* ---- Phone ---- */
.sv__phone {
  position: absolute;
  left: 440px;
  top: 8px;
  width: 240px;
  height: 454px;
  box-sizing: border-box;
  padding: 9px;
  border-radius: 40px;
  background: #121214;
  box-shadow: 0 0 0 2px #2A2A2E, 0 40px 70px -30px rgba(16,16,19,.55);
  animation: svPhone var(--sv-loop) infinite;
}
.sv__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
}
.sv__island {
  position: absolute;
  left: 50%;
  top: 7px;
  z-index: 5;
  width: 70px;
  height: 20px;
  margin-left: -35px;
  border-radius: 10px;
  background: #121214;
}
.sv__status {
  position: absolute;
  left: 22px;
  right: 18px;
  top: 10px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  font: 600 10px/1 var(--font-text, system-ui, sans-serif);
}
.sv__status i {
  display: inline-block;
  box-sizing: border-box;
  width: 18px;
  height: 9px;
  border: 1.5px solid #17171B;
  border-radius: 3px;
  box-shadow: inset -6px 0 0 #17171B;
  opacity: .85;
}
.sv__app {
  position: absolute;
  inset: 0;
  padding-top: 30px;
  background: #fff;
}

/* Messages */
.sv__chat-head {
  display: grid;
  justify-items: center;
  gap: 3px;
  position: relative;
  padding: 4px 0 8px;
  border-bottom: 1px solid #EDEDF0;
  background: #F7F7F9;
  font: 500 9.5px/1 var(--font-text, system-ui, sans-serif);
}
.sv__back { position: absolute; left: 8px; top: 12px; width: 16px; height: 16px; color: #1A7CF5; }
.sv__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(#5DBBEA, #2FA0DA);
  color: #fff;
  font: 700 13px/1 var(--font-display, system-ui, sans-serif);
}
.sv__thread { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 0; }
.sv__stamp { align-self: center; margin-top: 2px; color: #8A8A94; font-size: 8.5px; }
.sv__bubble {
  align-self: flex-start;
  max-width: 168px;
  padding: 7px 10px;
  border-radius: 15px 15px 15px 4px;
  background: #E9E9EB;
  font-size: 10.5px;
  line-height: 1.35;
}
.sv__link { color: #1A7CF5; text-underline-offset: 2px; }
.sv__stamp--new { animation: svStamp var(--sv-loop) infinite; }
.sv__bubble--new { transform-origin: 0 100%; animation: svBubble var(--sv-loop) infinite; }
.sv__link { animation: svLink var(--sv-loop) infinite; }
.sv__typing {
  position: absolute;
  left: 10px;
  top: 183px;
  display: flex;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 15px;
  background: #E9E9EB;
  opacity: 0;
  animation: svTyping var(--sv-loop) infinite;
}
.sv__typing i { width: 5px; height: 5px; border-radius: 50%; background: #8A8A94; animation: chDots 900ms ease-in-out infinite; }
.sv__typing i:nth-child(2) { animation-delay: 150ms; }
.sv__typing i:nth-child(3) { animation-delay: 300ms; }
.sv__compose {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 4px 0 11px;
  border: 1px solid #DADADF;
  border-radius: 13px;
  color: #A0A0A8;
  font-size: 10px;
}
.sv__send { width: 18px; height: 18px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: #C9C9CF; color: #fff; stroke-width: 3; }

/* Survey + thanks pages */
.sv__app--survey { animation: svSurvey var(--sv-loop) infinite; }
.sv__app--thanks { animation: svThanks var(--sv-loop) infinite; }
.sv__url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 22px;
  margin: 2px 10px 0;
  border-radius: 8px;
  background: #F0F0F3;
  color: #45454D;
  font-size: 9.5px;
}
.sv__url .sv__ico { width: 9px; height: 9px; }
.sv__page { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 0; }
.sv__brand { display: inline-flex; align-items: center; gap: 5px; color: #45454D; font: 700 9.5px/1 var(--font-text, system-ui, sans-serif); }
.sv__brand i { width: 9px; height: 9px; border-radius: 50%; background: var(--sv-blue); box-shadow: 0 0 0 2px rgba(47,160,218,.25); }
.sv__h { margin-top: 6px; font: 800 16px/1.15 var(--font-display, system-ui, sans-serif); letter-spacing: -.01em; }
.sv__sub { color: #6B6B75; font-size: 9.5px; }
.sv__q { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 9px; font-weight: 600; font-size: 10.5px; line-height: 1.3; }
.sv__stars { display: flex; gap: 3px; }
.sv__star { display: block; width: 24px; height: 24px; color: var(--sv-star); }
.sv__star .sv__ico { display: block; width: 100%; height: 100%; fill: currentColor; stroke-width: 1.5; }
.sv__field {
  position: relative;
  height: 38px;
  padding: 6px 8px;
  box-sizing: border-box;
  border: 1px solid #D4D4DA;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 400;
  animation: svField var(--sv-loop) infinite;
}
.sv__ph { position: absolute; left: 8px; top: 6px; color: #A0A0A8; opacity: 0; animation: svPh var(--sv-loop) infinite; }
.sv__typed { display: inline-block; white-space: nowrap; animation: svType var(--sv-loop) infinite; }
.sv__submit {
  margin-top: 10px;
  height: 30px;
  border-radius: 8px;
  background: var(--sv-btn);
  color: #fff;
  font: 700 11.5px/30px var(--font-display, system-ui, sans-serif);
  text-align: center;
  animation: svSubmit var(--sv-loop) infinite;
}
.sv__page--thanks { align-items: center; gap: 6px; padding-top: 22px; text-align: center; }
.sv__done {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sv-ok);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(30,142,78,.14);
  animation: svDone var(--sv-loop) infinite;
}
.sv__done .sv__ico { width: 24px; height: 24px; stroke-width: 3; }
.sv__page--thanks .sv__h { margin-top: 8px; }
.sv__mini { display: inline-flex; align-items: center; gap: 2px; color: var(--sv-star); }
.sv__mini .sv__ico { width: 13px; height: 13px; fill: currentColor; stroke-width: 1.5; }
.sv__mini em { margin-left: 4px; color: #17171B; font: 700 11px/1 var(--font-text, system-ui, sans-serif); font-style: normal; }
.sv__ask { max-width: 180px; margin: 6px 0 4px; color: #45454D; font-size: 10.5px; }
.sv__rv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  border-radius: 8px;
  font: 700 11px/1 var(--font-display, system-ui, sans-serif);
}
.sv__rv .sv__ico { width: 14px; height: 14px; }
.sv__rv--g { border: 1px solid #D4D4DA; background: #fff; color: #17171B; animation: svRvG var(--sv-loop) infinite; }
.sv__rv--g .sv__ico { color: var(--sv-star); fill: currentColor; stroke-width: 1.5; }
.sv__rv--fb { background: #1877F2; color: #fff; animation: svRvF var(--sv-loop) infinite; }
.sv__coupon {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 6px;
  padding: 8px 9px;
  box-sizing: border-box;
  border: 1.5px dashed #9CCBE5;
  border-radius: 8px;
  background: #F2F9FD;
  color: #12577A;
  font-size: 9.5px;
  text-align: left;
  animation: svCoupon var(--sv-loop) infinite;
}
.sv__coupon .sv__ico { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---- Touch dot ---- */
.sv__touch {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(16,16,19,.22);
  box-shadow: 0 4px 10px rgba(16,16,19,.25);
  opacity: 0;
  animation: svTouch var(--sv-loop) infinite;
}
/* ---- Keyframes (% of 20s) ---- */
.sv__star--q1s1 { animation: svQ1S1 var(--sv-loop) infinite; }
.sv__star--q1s2 { animation: svQ1S2 var(--sv-loop) infinite; }
.sv__star--q1s3 { animation: svQ1S3 var(--sv-loop) infinite; }
.sv__star--q1s4 { animation: svQ1S4 var(--sv-loop) infinite; }
.sv__star--q1s5 { animation: svQ1S5 var(--sv-loop) infinite; }
.sv__star--q2s1 { animation: svQ2S1 var(--sv-loop) infinite; }
.sv__star--q2s2 { animation: svQ2S2 var(--sv-loop) infinite; }
.sv__star--q2s3 { animation: svQ2S3 var(--sv-loop) infinite; }
.sv__star--q2s4 { animation: svQ2S4 var(--sv-loop) infinite; }
.sv__star--q2s5 { animation: svQ2S5 var(--sv-loop) infinite; }
.sv__star--q3s1 { animation: svQ3S1 var(--sv-loop) infinite; }
.sv__star--q3s2 { animation: svQ3S2 var(--sv-loop) infinite; }
.sv__star--q3s3 { animation: svQ3S3 var(--sv-loop) infinite; }
.sv__star--q3s4 { animation: svQ3S4 var(--sv-loop) infinite; }
.sv__star--q3s5 { animation: svQ3S5 var(--sv-loop) infinite; }
@keyframes svQ1S1 {
  0%, 22.99% { color: #D4D4DA; transform: none; }
  23% { color: #F5B301; transform: scale(1.3); }
  23.80%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ1S2 {
  0%, 23.29% { color: #D4D4DA; transform: none; }
  23.30% { color: #F5B301; transform: scale(1.3); }
  24.10%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ1S3 {
  0%, 23.59% { color: #D4D4DA; transform: none; }
  23.60% { color: #F5B301; transform: scale(1.3); }
  24.40%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ1S4 {
  0%, 23.89% { color: #D4D4DA; transform: none; }
  23.90% { color: #F5B301; transform: scale(1.3); }
  24.70%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ1S5 {
  0%, 24.19% { color: #D4D4DA; transform: none; }
  24.20% { color: #F5B301; transform: scale(1.3); }
  25%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ2S1 {
  0%, 28.99% { color: #D4D4DA; transform: none; }
  29% { color: #F5B301; transform: scale(1.3); }
  29.80%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ2S2 {
  0%, 29.29% { color: #D4D4DA; transform: none; }
  29.30% { color: #F5B301; transform: scale(1.3); }
  30.10%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ2S3 {
  0%, 29.59% { color: #D4D4DA; transform: none; }
  29.60% { color: #F5B301; transform: scale(1.3); }
  30.40%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ2S4 {
  0%, 29.89% { color: #D4D4DA; transform: none; }
  29.90% { color: #F5B301; transform: scale(1.3); }
  30.70%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ2S5 {
  0%, 30.19% { color: #D4D4DA; transform: none; }
  30.20% { color: #F5B301; transform: scale(1.3); }
  31%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ3S1 {
  0%, 34.99% { color: #D4D4DA; transform: none; }
  35% { color: #F5B301; transform: scale(1.3); }
  35.80%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ3S2 {
  0%, 35.29% { color: #D4D4DA; transform: none; }
  35.30% { color: #F5B301; transform: scale(1.3); }
  36.10%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ3S3 {
  0%, 35.59% { color: #D4D4DA; transform: none; }
  35.60% { color: #F5B301; transform: scale(1.3); }
  36.40%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ3S4 {
  0%, 35.89% { color: #D4D4DA; transform: none; }
  35.90% { color: #F5B301; transform: scale(1.3); }
  36.70%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
@keyframes svQ3S5 {
  0%, 36.19% { color: #D4D4DA; transform: none; }
  36.20% { color: #F5B301; transform: scale(1.3); }
  37%, 93.9% { color: #F5B301; transform: none; }
  94%, 100% { color: #D4D4DA; transform: none; }
}
/* touch dot: link 15% · stars 23 / 29 / 35% · comment box 40% · Submit 52% */
@keyframes svTouch {
  0% { opacity: 0; transform: translate(536px, 270px) scale(1.3); }
  13.60% { opacity: 0; transform: translate(536px, 270px) scale(1.3); }
  14.50% { opacity: 1; transform: translate(536px, 270px) scale(1); }
  15% { opacity: 1; transform: translate(536px, 270px) scale(.78); }
  15.90% { opacity: 0; transform: translate(536px, 270px) scale(1.25); }
  21.60% { opacity: 0; transform: translate(583px, 189px) scale(1.3); }
  22.50% { opacity: 1; transform: translate(583px, 189px) scale(1); }
  23% { opacity: 1; transform: translate(583px, 189px) scale(.78); }
  23.90% { opacity: 0; transform: translate(583px, 189px) scale(1.25); }
  27.60% { opacity: 0; transform: translate(583px, 256px) scale(1.3); }
  28.50% { opacity: 1; transform: translate(583px, 256px) scale(1); }
  29% { opacity: 1; transform: translate(583px, 256px) scale(.78); }
  29.90% { opacity: 0; transform: translate(583px, 256px) scale(1.25); }
  33.60% { opacity: 0; transform: translate(583px, 310px) scale(1.3); }
  34.50% { opacity: 1; transform: translate(583px, 310px) scale(1); }
  35% { opacity: 1; transform: translate(583px, 310px) scale(.78); }
  35.90% { opacity: 0; transform: translate(583px, 310px) scale(1.25); }
  38.60% { opacity: 0; transform: translate(568px, 371px) scale(1.3); }
  39.50% { opacity: 1; transform: translate(568px, 371px) scale(1); }
  40% { opacity: 1; transform: translate(568px, 371px) scale(.78); }
  40.90% { opacity: 0; transform: translate(568px, 371px) scale(1.25); }
  50.60% { opacity: 0; transform: translate(560px, 418px) scale(1.3); }
  51.50% { opacity: 1; transform: translate(560px, 418px) scale(1); }
  52% { opacity: 1; transform: translate(560px, 418px) scale(.78); }
  52.90% { opacity: 0; transform: translate(560px, 418px) scale(1.25); }
  100% { opacity: 0; transform: translate(560px, 418px) scale(1.25); }
}
/* steps: pending (dim) → active (blue ring) → done (green tick) */
@keyframes svStep1 { 0%, 4.90% { opacity: .55; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); } 5%, 17.90% { opacity: 1; box-shadow: 0 0 0 2px #2FA0DA, 0 0 0 7px rgba(47,160,218,.14), 0 14px 26px -18px rgba(16,16,19,.45); } 18%, 93.9% { opacity: 1; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); } 94%, 100% { opacity: .55; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); } }
@keyframes svBadge1 { 0%, 4.90% { background: #C3C7CE; } 5%, 17.90% { background: #2FA0DA; } 18%, 93.9% { background: #1E8E4E; } 94%, 100% { background: #C3C7CE; } }
@keyframes svNum1 { 0%, 17.90% { opacity: 1; } 18%, 93.9% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes svTick1 { 0%, 17.90% { opacity: 0; transform: scale(.4); } 18% { opacity: 1; transform: scale(1.3); } 19%, 93.9% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes svStep2 { 0%, 17.90% { opacity: .55; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); } 18%, 54.90% { opacity: 1; box-shadow: 0 0 0 2px #2FA0DA, 0 0 0 7px rgba(47,160,218,.14), 0 14px 26px -18px rgba(16,16,19,.45); } 55%, 93.9% { opacity: 1; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); } 94%, 100% { opacity: .55; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); } }
@keyframes svBadge2 { 0%, 17.90% { background: #C3C7CE; } 18%, 54.90% { background: #2FA0DA; } 55%, 93.9% { background: #1E8E4E; } 94%, 100% { background: #C3C7CE; } }
@keyframes svNum2 { 0%, 54.90% { opacity: 1; } 55%, 93.9% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes svTick2 { 0%, 54.90% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; transform: scale(1.3); } 56%, 93.9% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes svStep3 { 0%, 54.90% { opacity: .55; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); } 55%, 93.9% { opacity: 1; box-shadow: 0 0 0 2px #2FA0DA, 0 0 0 7px rgba(47,160,218,.14), 0 14px 26px -18px rgba(16,16,19,.45); } 94%, 100% { opacity: .55; box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 12px 24px -20px rgba(16,16,19,.45); } }
@keyframes svBadge3 { 0%, 54.90% { background: #C3C7CE; } 55%, 93.9% { background: #2FA0DA; } 94%, 100% { background: #C3C7CE; } }
@keyframes svNum3 { 0%, 100% { opacity: 1; } }
@keyframes svTick3 { 0%, 100% { opacity: 0; } }
@keyframes svPhone {
  0%, 2%    { transform: translateY(500px); animation-timing-function: cubic-bezier(.2,.8,.3,1.15); }
  4.6%      { transform: translateY(-10px); }
  5.6%, 89% { transform: none; animation-timing-function: cubic-bezier(.6,0,.9,.4); }
  92.5%, 100% { transform: translateY(500px); }
}
@keyframes svStamp  { 0%, 5.4% { opacity: 0; } 6%, 93.9% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes svTyping { 0%, 5.9% { opacity: 0; } 6.5%, 8.6% { opacity: 1; } 8.7%, 100% { opacity: 0; } }
@keyframes svBubble {
  0%, 8.7% { opacity: 0; transform: scale(.7); }
  9.6%     { opacity: 1; transform: scale(1.04); }
  10.3%, 93.9% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: scale(.7); }
}
@keyframes svLink {
  0%, 14.4% { background: transparent; }
  14.5%, 16% { background: rgba(26,124,245,.18); }
  16.5%, 100% { background: transparent; }
}
@keyframes svSurvey {
  0%, 16%   { transform: translateX(100%); animation-timing-function: var(--sv-ease); }
  19%, 93.9% { transform: none; }
  94%, 100% { transform: translateX(100%); }
}
@keyframes svField {
  0%, 39.9% { border-color: #D4D4DA; box-shadow: none; }
  40%, 49%  { border-color: #2FA0DA; box-shadow: 0 0 0 3px rgba(47,160,218,.2); }
  50%, 100% { border-color: #D4D4DA; box-shadow: none; }
}
@keyframes svPh { 0%, 40.9% { opacity: 1; } 41%, 93.9% { opacity: 0; } 94%, 100% { opacity: 1; } }
/* typing: revealed left to right in keystroke-sized steps */
@keyframes svType {
  0%, 41%   { clip-path: inset(0 100% 0 0); animation-timing-function: steps(33, end); }
  48%, 93.9% { clip-path: inset(0 0 0 0); }
  94%, 100% { clip-path: inset(0 100% 0 0); }
}
@keyframes svSubmit {
  0%, 51.9% { background: #1179A8; transform: none; }
  52%       { background: #0B5E85; transform: scale(.96); }
  53%, 100% { background: #1179A8; transform: none; }
}
@keyframes svThanks {
  0%, 53.8% { transform: translateX(100%); animation-timing-function: var(--sv-ease); }
  56.8%, 93.9% { transform: none; }
  94%, 100% { transform: translateX(100%); }
}
@keyframes svDone {
  0%, 56.5% { transform: scale(0); }
  58.5%     { transform: scale(1.15); }
  59.5%, 93.9% { transform: none; }
  94%, 100% { transform: scale(0); }
}
/* review buttons rise in; the Google one pulses twice */
@keyframes svRvG {
  0%, 59.5% { opacity: 0; transform: translateY(8px); box-shadow: 0 0 0 0 rgba(245,179,1,0); }
  61.5%, 66% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(245,179,1,0); }
  70%       { opacity: 1; transform: none; box-shadow: 0 0 0 6px rgba(245,179,1,.3); }
  74%       { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(245,179,1,0); }
  78%       { opacity: 1; transform: none; box-shadow: 0 0 0 6px rgba(245,179,1,.3); }
  82%, 93.9% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(245,179,1,0); }
  94%, 100% { opacity: 0; transform: translateY(8px); box-shadow: 0 0 0 0 rgba(245,179,1,0); }
}
@keyframes svRvF {
  0%, 61%   { opacity: 0; transform: translateY(8px); }
  63%, 93.9% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes svCoupon {
  0%, 63%   { opacity: 0; transform: translateY(8px); }
  65.5%, 93.9% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(8px); }
}

/* ---- Reduced motion: the thank-you page, every step done ---- */
@media (prefers-reduced-motion: reduce) {
  .sv__step b i { opacity: 0; }
  .sv__ph { opacity: 0; }
}


/* ==========================================================================
   21. Employee portal demo — 18s loop, shown in the split-hero window
   Two phones on one wheel, as in the automations demo (17): the
   technician's, then the customer's.
   Sequence: today's jobs swipe up into the list one after another (2–10%)
   → tap the first job (16%) → the job slides in (17–20%) → tap On My Way
   (28%) → a sheet asks to send it → tap Send
   (40%) → Sending…, the sheet closes and "Text sent to Rita" shows (43–46%)
   → the phones swing round a pivot below the board (50–59%): the
   technician's arcs out left, the customer's arcs in from the right →
   typing dots, then the technician's photo and the On My Way text land
   (61–67%) → hold → veil, reset (90–100%).
   Arms rotate about 50% 1300px from their top; ±46deg clears the board,
   name labels included. The phones are zoomed to 135% so the screen text
   reads, and run off the bottom of the board; the Send prompt is a centred
   dialog and the "Text sent" toast sits at the top so both stay in view. A touch dot (.ep__touch) marks each tap.
   Timeline is in % of 18s (1% = 180ms). Board is 790 × 470, no chrome.
   Base styles = the customer's phone showing the photo and text, so
   reduced motion shows the end result.
   ========================================================================== */

.sd--emp {
  --ep-loop: 18s;
  --ep-blue: #1A7CF5;
  --ep-brand: #2FA0DA;
  --ep-ok: #1E8E4E;
  --ep-swing: cubic-bezier(.65,0,.35,1);
  --win-w: 790px;
  --win-r: .5949;
}

.ep__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 25%, rgba(47,160,218,.16), transparent 55%),
    var(--surface-sunken, #F1F0EC);
  font: 400 11px/1.35 var(--font-text, system-ui, sans-serif);
  color: #17171B;
  text-align: left;
}
.sd--window .ep__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.ep__ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ep__stack { display: inline-grid; }
.ep__stack > * { grid-area: 1 / 1; }

/* ---- Arms, labels, phones ---- */
.ep__arm {
  position: absolute;
  left: 275px;
  top: 8px;
  width: 240px;
  height: 454px;
  transform-origin: 50% 1300px;
}
.ep__arm--tech { transform: rotate(-46deg); animation: epArmTech var(--ep-loop) infinite; }
.ep__arm--cust { animation: epArmCust var(--ep-loop) infinite; }
.ep__label {
  position: absolute;
  right: calc(100% + 60px);
  top: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 8px;
  transform-origin: 100% 50%;
  scale: 1.15;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 10px 22px -16px rgba(16,16,19,.45);
  font: 700 12.5px/1.2 var(--font-display, system-ui, sans-serif);
  white-space: nowrap;
}
.ep__label > .ep__ico {
  width: 26px;
  height: 26px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #EAF6FC;
  color: var(--ep-brand);
}
.ep__arm--cust .ep__label > .ep__ico { background: #FDEEE7; color: #D9693A; }
.ep__label small { display: block; color: #6B6B75; font: 500 10.5px/1.2 var(--font-text, system-ui, sans-serif); }
.ep__phone {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 9px;
  border-radius: 40px;
  background: #121214;
  box-shadow: 0 0 0 2px #2A2A2E, 0 40px 70px -30px rgba(16,16,19,.55);
  /* zoomed so the screen text reads; the bottom of the phone runs off the board */
  transform-origin: 50% 0;
  scale: 1.35;
}
.ep__phone--cust { animation: epBuzz var(--ep-loop) infinite; }
.ep__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #F4F6F8;
}
.ep__island {
  position: absolute;
  left: 50%;
  top: 7px;
  z-index: 6;
  width: 70px;
  height: 20px;
  margin-left: -35px;
  border-radius: 10px;
  background: #121214;
}
.ep__status {
  position: absolute;
  left: 22px;
  right: 18px;
  top: 10px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  font: 600 10px/1 var(--font-text, system-ui, sans-serif);
}
.ep__status i {
  display: inline-block;
  box-sizing: border-box;
  width: 18px;
  height: 9px;
  border: 1.5px solid #17171B;
  border-radius: 3px;
  box-shadow: inset -6px 0 0 #17171B;
  opacity: .85;
}
.ep__app {
  position: absolute;
  inset: 0;
  padding-top: 30px;
  background: #F4F6F8;
}

/* ---- Today's jobs ---- */
.ep__top { padding: 6px 14px 8px; }
.ep__top strong { display: block; font: 800 20px/1.1 var(--font-display, system-ui, sans-serif); letter-spacing: -.01em; }
.ep__top span { color: #6B6B75; font-size: 9px; }
.ep__jobs { display: grid; gap: 8px; padding: 2px 10px; }
.ep__job {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 6px;
  padding: 9px 8px 9px 10px;
  border-left: 3px solid var(--ep-brand);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 14px -10px rgba(16,16,19,.35);
}
.ep__time { align-self: start; color: var(--ep-brand); font: 700 9.5px/1.2 var(--font-text, system-ui, sans-serif); }
.ep__job-text { display: grid; gap: 1px; min-width: 0; }
.ep__job-text strong { font: 700 11px/1.2 var(--font-display, system-ui, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep__job-text span { color: #45454D; font-size: 9.5px; }
.ep__job-text small { display: flex; align-items: center; gap: 3px; color: #8A8A94; font-size: 9px; }
.ep__job-text small .ep__ico { width: 9px; height: 9px; }
.ep__go { width: 12px; height: 12px; color: #B0B0B8; transform: scaleX(-1); }
.ep__job--1 { animation: epJob1 var(--ep-loop) infinite; }
.ep__job--2 { animation: epJob2 var(--ep-loop) infinite; }
.ep__job--3 { animation: epJob3 var(--ep-loop) infinite; }
.ep__job--4 { animation: epJob4 var(--ep-loop) infinite; }

/* ---- Job detail ---- */
.ep__app--job { animation: epJobOpen var(--ep-loop) infinite; }
.ep__nav { display: flex; align-items: center; gap: 2px; height: 22px; padding: 0 8px; color: var(--ep-blue); font-size: 11px; }
.ep__nav .ep__ico { width: 15px; height: 15px; }
.ep__detail { display: flex; flex-direction: column; gap: 4px; padding: 8px 14px 0; }
.ep__kicker { color: var(--ep-brand); font: 700 9px/1.2 var(--font-text, system-ui, sans-serif); letter-spacing: .05em; text-transform: uppercase; }
.ep__name { font: 800 18px/1.15 var(--font-display, system-ui, sans-serif); letter-spacing: -.01em; }
.ep__rows { display: grid; gap: 6px; margin: 6px 0 8px; padding: 10px; border-radius: 10px; background: #fff; font-size: 10px; }
.ep__rows > span { display: flex; align-items: center; gap: 6px; }
.ep__rows .ep__ico { width: 12px; height: 12px; flex: 0 0 auto; color: #6B6B75; }
.ep__addr b {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #EAF2FE;
  color: var(--ep-blue);
  font: 700 8.5px/1.3 var(--font-text, system-ui, sans-serif);
}
.ep__addr b .ep__ico { width: 8px; height: 8px; color: currentColor; }
.ep__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  border-radius: 10px;
  background: var(--ep-blue);
  color: #fff;
  font: 700 12px/1 var(--font-display, system-ui, sans-serif);
}
.ep__btn .ep__ico { width: 15px; height: 15px; }
.ep__btn--omw { animation: epOmw var(--ep-loop) infinite; }
.ep__btn--late { background: #fff; box-shadow: inset 0 0 0 1.5px #D4D4DA; color: #17171B; }
.ep__btn--in { background: var(--ep-ok); }
.ep__toast {
  position: absolute;
  left: 50%;
  top: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px 8px 9px;
  border-radius: 999px;
  background: #17171B;
  color: #fff;
  font: 600 10.5px/1 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
  transform: translateX(-50%);
  animation: epToast var(--ep-loop) infinite;
}
.ep__toast .ep__ico {
  width: 16px;
  height: 16px;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--ep-ok);
  stroke-width: 3.4;
}

/* ---- Send sheet ---- */
.ep__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(16,16,19,.38);
  opacity: 0;
  animation: epScrim var(--ep-loop) infinite;
}
.ep__sheet {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 118px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 36px -14px rgba(16,16,19,.5);
  opacity: 0;
  transform: translateY(14px) scale(.94);
  animation: epSheet var(--ep-loop) infinite;
}
.ep__grab { display: none; align-self: center; width: 34px; height: 4px; margin-bottom: 4px; border-radius: 2px; background: #D4D4DA; }
.ep__sheet strong { font: 800 14px/1.2 var(--font-display, system-ui, sans-serif); }
.ep__sheet-sub { color: #6B6B75; font-size: 9.5px; }
.ep__btn--send { animation: epSend var(--ep-loop) infinite; }
.ep__btn--send .ep__stack > :first-child { animation: epOn40 var(--ep-loop) infinite; }
.ep__btn--send .ep__stack > :last-child { opacity: 0; animation: epOff40 var(--ep-loop) infinite; }
.ep__busy { display: inline-flex; align-items: center; gap: 7px; }
.ep__spin {
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pdSpin .7s linear infinite;
}

/* ---- The technician's photo (drawn, not a real person) ---- */
.ep__face {
  position: relative;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(160deg, #D7ECFA, #9FCBEA);
}
.ep__face i { position: absolute; display: block; }
.ep__hair { left: 27%; top: 15%; width: 46%; height: 52%; border-radius: 50% 50% 38% 38%; background: #4A2F22; }
.ep__head { left: 33%; top: 22%; width: 34%; height: 36%; border-radius: 50% 50% 46% 46%; background: linear-gradient(170deg, #4A2F22 0 24%, #E3B48F 25%); }
.ep__body { left: 14%; right: 14%; bottom: -14%; height: 42%; border-radius: 50% 50% 12% 12%; background: var(--ep-brand); box-shadow: inset 0 9px 0 -5px rgba(255,255,255,.25); }
.ep__face--big { width: 96px; height: 96px; }

/* ---- Customer's Messages ---- */
.ep__app--sms { background: #fff; }
.ep__chat-head {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 4px 0 8px;
  border-bottom: 1px solid #EDEDF0;
  background: #F7F7F9;
  font: 500 9.5px/1 var(--font-text, system-ui, sans-serif);
}
.ep__back { position: absolute; left: 8px; top: 12px; width: 16px; height: 16px; color: var(--ep-blue); }
.ep__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(#5DBBEA, #2FA0DA);
  color: #fff;
  font: 700 13px/1 var(--font-display, system-ui, sans-serif);
}
.ep__thread { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 0; }
.ep__stamp { align-self: center; margin-top: 2px; color: #8A8A94; font-size: 8.5px; }
.ep__bubble {
  align-self: flex-start;
  max-width: 168px;
  padding: 7px 10px;
  border-radius: 15px 15px 15px 4px;
  background: #E9E9EB;
  font-size: 10.5px;
  line-height: 1.35;
}
.ep__mms {
  align-self: flex-start;
  overflow: hidden;
  border-radius: 16px;
  transform-origin: 0 100%;
  animation: epMms var(--ep-loop) infinite;
}
.ep__stamp--new { animation: epStamp var(--ep-loop) infinite; }
.ep__bubble--new { transform-origin: 0 100%; animation: epText var(--ep-loop) infinite; }
.ep__typing {
  position: absolute;
  left: 10px;
  top: 97px;
  display: flex;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 15px;
  background: #E9E9EB;
  opacity: 0;
  animation: epTyping var(--ep-loop) infinite;
}
.ep__typing i { width: 5px; height: 5px; border-radius: 50%; background: #8A8A94; animation: chDots 900ms ease-in-out infinite; }
.ep__typing i:nth-child(2) { animation-delay: 150ms; }
.ep__typing i:nth-child(3) { animation-delay: 300ms; }
.ep__compose {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 4px 0 11px;
  border: 1px solid #DADADF;
  border-radius: 13px;
  color: #A0A0A8;
  font-size: 10px;
}
.ep__send { width: 18px; height: 18px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: #C9C9CF; color: #fff; stroke-width: 3; }

/* ---- Touch dot + veil ---- */
.ep__touch {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(16,16,19,.22);
  box-shadow: 0 4px 10px rgba(16,16,19,.25);
  opacity: 0;
  animation: epTouch var(--ep-loop) infinite;
}
.ep__veil {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: var(--surface-sunken, #F1F0EC);
  opacity: 0;
  animation: epVeil var(--ep-loop) infinite;
}
/* ---- Keyframes (% of 18s) ---- */
@keyframes epJob1 {
  0%, 2% { opacity: 0; transform: translateY(60px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  3.8% { opacity: 1; transform: translateY(-5px); }
  4.6%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(60px); }
}
@keyframes epJob2 {
  0%, 3.6% { opacity: 0; transform: translateY(60px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  5.4% { opacity: 1; transform: translateY(-5px); }
  6.2%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(60px); }
}
@keyframes epJob3 {
  0%, 5.2% { opacity: 0; transform: translateY(60px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  7% { opacity: 1; transform: translateY(-5px); }
  7.8%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(60px); }
}
@keyframes epJob4 {
  0%, 6.8% { opacity: 0; transform: translateY(60px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  8.6% { opacity: 1; transform: translateY(-5px); }
  9.4%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(60px); }
}
/* touch dot: first job 16% · On My Way 28% · Send 40% */
@keyframes epTouch {
  0% { opacity: 0; transform: translate(395px, 168px) scale(1.3); }
  14.6% { opacity: 0; transform: translate(395px, 168px) scale(1.3); }
  15.5% { opacity: 1; transform: translate(395px, 168px) scale(1); }
  16% { opacity: 1; transform: translate(395px, 168px) scale(.78); }
  16.9% { opacity: 0; transform: translate(395px, 168px) scale(1.25); }
  26.6% { opacity: 0; transform: translate(395px, 318px) scale(1.3); }
  27.5% { opacity: 1; transform: translate(395px, 318px) scale(1); }
  28% { opacity: 1; transform: translate(395px, 318px) scale(.78); }
  28.9% { opacity: 0; transform: translate(395px, 318px) scale(1.25); }
  38.6% { opacity: 0; transform: translate(395px, 297px) scale(1.3); }
  39.5% { opacity: 1; transform: translate(395px, 297px) scale(1); }
  40% { opacity: 1; transform: translate(395px, 297px) scale(.78); }
  40.9% { opacity: 0; transform: translate(395px, 297px) scale(1.25); }
  100% { opacity: 0; transform: translate(395px, 297px) scale(1.25); }
}
@keyframes epJobOpen {
  0%, 16.6% { transform: translateX(100%); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  19.6%, 92.9% { transform: none; }
  93%, 100% { transform: translateX(100%); }
}
@keyframes epOmw {
  0%, 27.9% { background: #1A7CF5; transform: none; }
  28%       { background: #0F5FC4; transform: scale(.96); }
  29%, 100% { background: #1A7CF5; transform: none; }
}
@keyframes epScrim { 0%, 28.5% { opacity: 0; } 30.5%, 42.5% { opacity: 1; } 44.5%, 100% { opacity: 0; } }
@keyframes epSheet {
  0%, 28.5% { opacity: 0; transform: translateY(14px) scale(.94); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  31%, 42.5% { opacity: 1; transform: none; }
  44.5%, 100% { opacity: 0; transform: translateY(8px) scale(.96); }
}
@keyframes epSend {
  0%, 39.9% { background: #1A7CF5; transform: none; }
  40%       { background: #0F5FC4; transform: scale(.96); }
  41%, 100% { background: #1A7CF5; transform: none; }
}
/* Send → Sending… */
@keyframes epOn40  { 0%, 40.4% { opacity: 1; } 40.5%, 92.9% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes epOff40 { 0%, 40.4% { opacity: 0; } 40.5%, 92.9% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes epToast {
  0%, 44.5% { opacity: 0; transform: translate(-50%, -10px); }
  46%, 92.9% { opacity: 1; transform: translate(-50%, 0); }
  93%, 100% { opacity: 0; transform: translate(-50%, -10px); }
}
/* the wheel: the story reads left to right, so the technician's phone arcs
   out to the left and the customer's arcs in from the right */
@keyframes epArmTech {
  0%, 50%   { transform: none; animation-timing-function: var(--ep-swing); }
  59%, 92.9% { transform: rotate(-46deg); }
  93%, 100% { transform: none; }
}
@keyframes epArmCust {
  0%, 50%   { transform: rotate(46deg); animation-timing-function: var(--ep-swing); }
  59%, 92.9% { transform: none; }
  93%, 100% { transform: rotate(46deg); }
}
@keyframes epStamp  { 0%, 59.9% { opacity: 0; } 60.5%, 92.9% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes epTyping { 0%, 60.9% { opacity: 0; } 61.5%, 64% { opacity: 1; } 64.1%, 100% { opacity: 0; } }
@keyframes epMms {
  0%, 64%   { opacity: 0; transform: scale(.7); }
  65%       { opacity: 1; transform: scale(1.04); }
  66%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: scale(.7); }
}
@keyframes epText {
  0%, 66.5% { opacity: 0; transform: scale(.7); }
  67.5%     { opacity: 1; transform: scale(1.04); }
  68.5%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: scale(.7); }
}
@keyframes epBuzz {
  0%, 64.4%  { transform: none; }
  65%        { transform: translateX(-3px) rotate(-.6deg); }
  65.6%      { transform: translateX(3px) rotate(.6deg); }
  66.2%      { transform: translateX(-2px) rotate(-.4deg); }
  66.8%, 100% { transform: none; }
}
@keyframes epVeil { 0%, 90% { opacity: 0; } 92.5%, 96% { opacity: 1; } 100% { opacity: 0; } }


/* ==========================================================================
   22. Payment terms demo — 18s loop, shown in the split-hero window
   Two screens side by side on one strip: the New Work Order page, then the
   client's Payment page.
   Sequence: click the Payment Term select (10.5%) → the option list opens
   → pick "2% Discount within 10 Days" (16.5%) → Save Work Order (23.5%) →
   "payment request sent" toast (25–33%) → the strip slides to the client's
   Payment page (34–40%) → the green "Total if paid before Nov. 22" row
   slides in and glows (44–52%) → Autofill the card (62.5%) → Submit
   (68.5%) → Processing… → Payment received for the discounted total
   (72.5%) → hold → veil, reset (92–96%).
   Figures: $280.00 + SD sales tax 4.2% ($11.76) = $291.76 USD; 2% off the
   pre-tax subtotal is $274.40 + tax $11.52 = $285.92, a $5.84 saving.
   Timeline is in % of 18s (1% = 180ms). Board is 790 × 470.
   Base styles = the Payment page after paying, so reduced motion shows
   the end result.
   ========================================================================== */

.sd--terms {
  --pt-loop: 18s;
  --pt-app: #00B9F2;
  --pt-pick: #1E6FD9;
  --pt-navy: #1F2A3C;
  --pt-pay: #1479B8;
  --pt-green: #1E8E4E;
  --pt-line: #D5D9DE;
  --pt-muted: #6B7080;
  --pt-ease: cubic-bezier(.65,0,.35,1);
  --win-w: 790px;
  --win-r: .5949;
}
.sd--terms .sd__chrome-title { display: inline-grid; }
.sd--terms .sd__chrome-title > span { grid-area: 1 / 1; }
.pt__url-wo  { opacity: 0; animation: ptUrlA var(--pt-loop) infinite; }
.pt__url-pay { animation: ptUrlB var(--pt-loop) infinite; }

.pt__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: #F7F8F8;
  font: 400 11.5px/1.35 var(--font-text, system-ui, sans-serif);
  color: #17171B;
  text-align: left;
}
.sd--window .pt__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.pt__ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt__stack { display: inline-grid; }
.pt__stack > * { grid-area: 1 / 1; }
.pt__scene { position: absolute; inset: 0; }
.pt__scene--wo  { transform: translateX(-100%); animation: ptSceneWo var(--pt-loop) infinite; }
.pt__scene--pay { animation: ptScenePay var(--pt-loop) infinite; }

/* ---- Scene 1: New Work Order ---- */
.pt__card {
  position: absolute;
  box-sizing: border-box;
  border-radius: 4px;
  background: #FBFBFB;
  box-shadow: 0 1px 2px rgba(16,16,19,.06), 0 6px 16px -10px rgba(16,16,19,.25);
  text-align: center;
}
.pt__title {
  display: block;
  margin-top: 16px;
  font: 700 13px/1.2 var(--font-display, system-ui, sans-serif);
  letter-spacing: .01em;
}
.pt__opt-note { display: block; margin-top: 3px; color: var(--pt-muted); font-size: 9.5px; font-style: italic; }
.pt__desc { display: block; margin: 12px 12px 0; font-size: 10.5px; color: #26282E; }
.pt__select {
  position: absolute;
  box-sizing: border-box;
  height: 30px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--pt-line);
  border-radius: 3px;
  background: #fff;
  font-size: 12px;
  line-height: 28px;
  text-align: left;
  white-space: nowrap;
  color: #3A3D45;
}
.pt__select::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 10px;
  width: 5px;
  height: 5px;
  border: solid #333;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.pt__select--wide::after {
  top: 13px;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: #888;
  border-bottom: 0;
  transform: none;
}

.pt__term { left: 14px; top: 14px; width: 506px; height: 150px; }
.pt__term .pt__select { left: 135px; top: 98px; width: 236px; animation: ptFocus var(--pt-loop) infinite; }
.pt__sel-a { animation: ptSelA var(--pt-loop) infinite; }
.pt__sel-b { opacity: 0; animation: ptSelB var(--pt-loop) infinite; }
.pt__list {
  position: absolute;
  left: 149px;
  top: 141px;
  z-index: 3;
  width: 236px;
  padding: 3px 0;
  box-sizing: border-box;
  border: 1px solid #A9AEB6;
  background: #fff;
  box-shadow: 0 8px 18px -8px rgba(16,16,19,.35);
  font-size: 12px;
  opacity: 0;
  transform: translateY(-4px);
  animation: ptList var(--pt-loop) infinite;
}
.pt__list > span { display: block; height: 24px; padding: 0 10px; line-height: 24px; white-space: nowrap; }
.pt__list-none { animation: ptHiNone var(--pt-loop) infinite; }
.pt__list-pick { animation: ptHiPick var(--pt-loop) infinite; }

.pt__tabs {
  position: absolute;
  left: 14px;
  top: 176px;
  width: 506px;
  height: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,16,19,.06);
  font: 700 12px/34px var(--font-display, system-ui, sans-serif);
  text-align: center;
}
.pt__tabs > span:first-child { background: var(--pt-app); color: #fff; }
.pt__cust { left: 14px; top: 222px; width: 506px; height: 118px; }
.pt__cust .pt__select { left: 16px; width: 474px; color: #3A3D45; }

.pt__sum { left: 534px; top: 14px; width: 242px; height: 262px; }
.pt__table {
  position: absolute;
  left: 14px;
  top: 48px;
  width: 214px;
  border: 1px solid var(--pt-line);
  text-align: left;
}
.pt__table > div {
  display: grid;
  grid-template-columns: 1fr 74px;
  height: 30px;
  line-height: 30px;
  font-size: 12px;
}
.pt__table > div + div { border-top: 1px solid var(--pt-line); }
.pt__table > div > span { padding: 0 7px; }
.pt__table > div > span + span { border-left: 1px solid var(--pt-line); text-align: right; }
.pt__table > div:nth-child(2),
.pt__table > div:last-child { background: #EEEEEE; }
.pt__table > div:last-child { font-weight: 700; }
.pt__save {
  position: absolute;
  left: 56px;
  top: 210px;
  width: 130px;
  height: 36px;
  background: var(--pt-app);
  color: #fff;
  font: 700 12px/36px var(--font-display, system-ui, sans-serif);
  letter-spacing: -.02em;
  animation: ptPress1 var(--pt-loop) infinite;
}
.pt__toast {
  position: absolute;
  left: 534px;
  top: 290px;
  width: 242px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--pt-navy);
  color: #fff;
  font-size: 11.5px;
  box-shadow: 0 12px 24px -14px rgba(16,16,19,.6);
  opacity: 0;
  animation: ptToast var(--pt-loop) infinite;
}
.pt__toast svg { width: 18px; height: 18px; flex: none; color: #5BD68A; }
.pt__toast b { display: block; font-size: 12px; }

/* ---- Scene 2: the client's Payment page ---- */
.pt__scene--pay { background: #fff; color: #23262D; }
.pt__hero {
  position: absolute;
  left: 0;
  top: 0;
  width: 790px;
  height: 178px;
  overflow: hidden;
  background: #EDF6FC;
}
.pt__hero::before {
  content: "";
  position: absolute;
  left: -70px;
  top: -130px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: #DCEEF9;
}
.pt__hero::after {
  content: "";
  position: absolute;
  left: -80px;
  top: -150px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid #BFE0F3;
}
.pt__badge {
  position: absolute;
  left: 372px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2FA0DA;
  box-shadow: 0 0 0 5px #CDE8F6;
  color: #fff;
}
.pt__badge svg { width: 22px; height: 22px; }
.pt__pay-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  text-align: center;
  color: var(--pt-navy);
  font: 800 34px/1 var(--font-display, system-ui, sans-serif);
  letter-spacing: -.02em;
}
.pt__sheet {
  position: absolute;
  left: 50px;
  top: 118px;
  width: 690px;
  height: 340px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.04), 0 18px 40px -22px rgba(16,16,19,.4);
}
.pt__box {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  background: #fff;
}
.pt__order { left: 70px; top: 136px; width: 346px; height: 304px; padding: 14px 20px; font-size: 11.5px; }
.pt__order p { margin: 0; line-height: 1.45; }
.pt__order p + p { margin-top: 7px; }
.pt__order b { font-weight: 700; }
.pt__row {
  display: flex;
  justify-content: space-between;
  padding-left: 8px;
  line-height: 18px;
}
.pt__row--rule { border-bottom: 1px solid var(--pt-line); }
.pt__row--sub { justify-content: flex-end; }
.pt__grp { margin-top: 7px; font-weight: 700; line-height: 18px; }
.pt__row--total {
  margin-top: 10px;
  padding-left: 0;
  font-weight: 700;
  line-height: 20px;
}
.pt__row--total span:first-child { font-weight: 600; }
.pt__early {
  display: flex;
  justify-content: space-between;
  margin: 10px -10px 0;
  padding: 0 10px;
  border-radius: 2px;
  background: #C8F2D0;
  font-weight: 600;
  line-height: 26px;
  white-space: nowrap;
  animation: ptEarly var(--pt-loop) infinite, ptGlow var(--pt-loop) infinite;
}
.pt__early b { font-weight: 800; }

.pt__bill { left: 432px; top: 136px; width: 288px; height: 136px; padding-top: 14px; text-align: center; }
.pt__box-h { display: block; font: 700 11.5px/1.2 var(--font-display, system-ui, sans-serif); letter-spacing: .02em; margin-bottom: 8px; }
.pt__bill p { margin: 0; font-size: 11px; line-height: 1.45; }
.pt__btn {
  display: inline-block;
  border-radius: 5px;
  background: var(--pt-pay);
  color: #fff;
  font: 700 11.5px/26px var(--font-display, system-ui, sans-serif);
  text-align: center;
}
.pt__bill .pt__btn { width: 104px; margin-top: 8px; }

.pt__card-box { left: 432px; top: 284px; width: 288px; height: 156px; padding-top: 16px; text-align: center; overflow: hidden; }
.pt__cnum {
  position: absolute;
  left: 16px;
  top: 42px;
  width: 256px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 10px;
  box-sizing: border-box;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(16,16,19,.16);
  font-size: 11.5px;
  text-align: left;
}
.pt__cnum > i { width: 18px; height: 12px; border-radius: 2px; background: #D9DDE2; flex: none; }
.pt__cnum .pt__stack { flex: 1; }
.pt__cn-a { color: #8A8F99; opacity: 0; animation: ptCnA var(--pt-loop) infinite; }
.pt__cn-b { letter-spacing: .04em; animation: ptCnB var(--pt-loop) infinite; }
.pt__autofill {
  width: 62px;
  height: 22px;
  border-radius: 4px;
  background: #0E2A17;
  color: #fff;
  font: 700 10.5px/22px var(--font-display, system-ui, sans-serif);
  text-align: center;
  animation: ptPress2 var(--pt-loop) infinite;
}
.pt__brands {
  position: absolute;
  left: 64px;
  top: 82px;
  width: 160px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  font-size: 8.5px;
  color: var(--pt-muted);
}
.pt__brands b { width: 100%; font-weight: 600; }
.pt__submit {
  position: absolute;
  left: 84px;
  top: 106px;
  width: 120px;
  height: 30px;
  border-radius: 5px;
  background: var(--pt-pay);
  color: #fff;
  font: 700 12px/30px var(--font-display, system-ui, sans-serif);
  animation: ptPress3 var(--pt-loop) infinite;
}
.pt__sub-a { opacity: 0; animation: ptSubA var(--pt-loop) infinite; }
.pt__sub-b { opacity: 0; animation: ptSubB var(--pt-loop) infinite; }
.pt__paid {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  background: #fff;
  animation: ptPaid var(--pt-loop) infinite;
}
.pt__paid > svg { width: 34px; height: 34px; padding: 6px; box-sizing: border-box; margin-bottom: 4px; border-radius: 50%; background: var(--pt-green); color: #fff; stroke-width: 3; animation: ptPop var(--pt-loop) infinite; }
.pt__paid b { font: 800 13px/1.2 var(--font-display, system-ui, sans-serif); }
.pt__paid strong { color: var(--pt-navy); font: 800 22px/1.15 var(--font-display, system-ui, sans-serif); }
.pt__paid span { color: var(--pt-green); font-size: 11px; font-weight: 600; }

/* ---- Pointer, ripples, veil ---- */
.pt__veil { position: absolute; inset: 0; z-index: 6; background: #F7F8F8; opacity: 0; animation: ptVeil var(--pt-loop) infinite; }
.pt__cursor { z-index: 7; animation-name: ptCursor; animation-duration: var(--pt-loop); }
.pt__ripple { z-index: 7; border-color: var(--pt-app); }
.pt__ripple--1 { left: 267px; top: 127px; animation: ptRip1 var(--pt-loop) infinite; }
.pt__ripple--2 { left: 240px; top: 204px; animation: ptRip2 var(--pt-loop) infinite; }
.pt__ripple--3 { left: 655px; top: 242px; animation: ptRip3 var(--pt-loop) infinite; }
.pt__ripple--4 { left: 669px; top: 341px; animation: ptRip4 var(--pt-loop) infinite; border-color: var(--pt-pay); }
.pt__ripple--5 { left: 576px; top: 405px; animation: ptRip5 var(--pt-loop) infinite; border-color: var(--pt-pay); }

/* ---- Keyframes (everything resets under the veil at 94–95%) ---- */
@keyframes ptVeil { 0%, 92% { opacity: 0; } 93.5%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ptUrlA { 0%, 36.5% { opacity: 1; } 37.5%, 94% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes ptUrlB { 0%, 36.5% { opacity: 0; } 37.5%, 94% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes ptSceneWo {
  0%, 34% { transform: none; animation-timing-function: var(--pt-ease); }
  40%, 94% { transform: translateX(-100%); }
  95%, 100% { transform: none; }
}
@keyframes ptScenePay {
  0%, 34% { transform: translateX(100%); animation-timing-function: var(--pt-ease); }
  40%, 94% { transform: none; }
  95%, 100% { transform: translateX(100%); }
}
@keyframes ptCursor {
  0%, 5% { opacity: 0; transform: translate(420px, 330px) scale(1); }
  6% { opacity: 1; transform: translate(420px, 330px) scale(1); animation-timing-function: var(--pt-ease); }
  10% { transform: translate(264px, 125px) scale(1); }
  10.5% { transform: translate(264px, 125px) scale(.82); }
  11.5%, 12.5% { transform: translate(264px, 125px) scale(1); animation-timing-function: var(--pt-ease); }
  16% { transform: translate(237px, 202px) scale(1); }
  16.5% { transform: translate(237px, 202px) scale(.82); }
  17.5%, 18.5% { transform: translate(237px, 202px) scale(1); animation-timing-function: var(--pt-ease); }
  23% { transform: translate(652px, 240px) scale(1); }
  23.5% { transform: translate(652px, 240px) scale(.82); }
  24.5% { opacity: 1; transform: translate(652px, 240px) scale(1); }
  27% { opacity: 0; transform: translate(662px, 250px) scale(1); }
  56% { opacity: 0; transform: translate(560px, 250px) scale(1); }
  57% { opacity: 1; transform: translate(560px, 250px) scale(1); animation-timing-function: var(--pt-ease); }
  62% { transform: translate(666px, 339px) scale(1); }
  62.5% { transform: translate(666px, 339px) scale(.82); }
  63.5%, 64.5% { transform: translate(666px, 339px) scale(1); animation-timing-function: var(--pt-ease); }
  68% { transform: translate(573px, 403px) scale(1); }
  68.5% { transform: translate(573px, 403px) scale(.82); }
  69.5% { transform: translate(573px, 403px) scale(1); }
  74% { opacity: 1; transform: translate(590px, 420px) scale(1); }
  77%, 100% { opacity: 0; transform: translate(600px, 430px) scale(1); }
}
@keyframes ptRip1 { 0%, 10.45% { opacity: 0; transform: scale(.4); } 10.5% { opacity: .9; transform: scale(.4); } 13.3%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ptRip2 { 0%, 16.45% { opacity: 0; transform: scale(.4); } 16.5% { opacity: .9; transform: scale(.4); } 19.3%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ptRip3 { 0%, 23.45% { opacity: 0; transform: scale(.4); } 23.5% { opacity: .9; transform: scale(.4); } 26.3%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ptRip4 { 0%, 62.45% { opacity: 0; transform: scale(.4); } 62.5% { opacity: .9; transform: scale(.4); } 65.3%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ptRip5 { 0%, 68.45% { opacity: 0; transform: scale(.4); } 68.5% { opacity: .9; transform: scale(.4); } 71.3%, 100% { opacity: 0; transform: scale(1.6); } }

/* work order */
@keyframes ptFocus {
  0%, 10.4% { border-color: var(--pt-line); box-shadow: none; }
  10.5%, 17.4% { border-color: var(--pt-pick); box-shadow: 0 0 0 2px rgba(30,111,217,.2); }
  18.5%, 100% { border-color: var(--pt-line); box-shadow: none; }
}
@keyframes ptSelA { 0%, 17.2% { opacity: 1; } 17.5%, 94% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes ptSelB { 0%, 17.2% { opacity: 0; } 17.5%, 94% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes ptList {
  0%, 10.8% { opacity: 0; transform: translateY(-4px); }
  11.6%, 17.2% { opacity: 1; transform: none; }
  17.5%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes ptHiNone {
  0%, 13.4% { background: var(--pt-pick); color: #fff; }
  13.5%, 100% { background: transparent; color: inherit; }
}
@keyframes ptHiPick {
  0%, 15.2% { background: transparent; color: inherit; }
  15.3%, 17.5% { background: var(--pt-pick); color: #fff; }
  17.6%, 100% { background: transparent; color: inherit; }
}
@keyframes ptPress1 { 0%, 23.4% { transform: none; } 23.5% { transform: scale(.95); } 24.5%, 100% { transform: none; } }
@keyframes ptToast {
  0%, 25% { opacity: 0; transform: translateY(8px); }
  26.5%, 94% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateY(8px); }
}

/* payment page */
@keyframes ptEarly {
  0%, 43% { opacity: 0; transform: translateY(8px); }
  45.5%, 94% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes ptGlow {
  0%, 46% { box-shadow: 0 0 0 0 rgba(30,142,78,0); }
  48% { box-shadow: 0 0 0 4px rgba(30,142,78,.28); }
  50.5% { box-shadow: 0 0 0 0 rgba(30,142,78,0); }
  52.5% { box-shadow: 0 0 0 4px rgba(30,142,78,.28); }
  55%, 100% { box-shadow: 0 0 0 0 rgba(30,142,78,0); }
}
@keyframes ptPress2 { 0%, 62.4% { transform: none; } 62.5% { transform: scale(.92); } 63.5%, 100% { transform: none; } }
@keyframes ptCnA { 0%, 63.4% { opacity: 1; } 63.8%, 94% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes ptCnB { 0%, 63.4% { opacity: 0; } 63.8%, 94% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes ptPress3 { 0%, 68.4% { transform: none; } 68.5% { transform: scale(.95); } 69.5%, 100% { transform: none; } }
@keyframes ptSubA { 0%, 68.9% { opacity: 1; } 69% , 94% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes ptSubB { 0%, 68.9% { opacity: 0; } 69%, 72.4% { opacity: 1; } 72.5%, 100% { opacity: 0; } }
@keyframes ptPaid {
  0%, 72.4% { opacity: 0; }
  73.5%, 94% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
@keyframes ptPop {
  0%, 72.4% { transform: scale(.4); }
  74.5% { transform: scale(1.12); }
  75.5%, 100% { transform: none; }
}


/* ==========================================================================
   23. Work order build demo — 24s loop, shown in the split-hero window
   A phone call on the left, a work order on the right. The order follows
   the call the way the Create Work Order form does: each thing the caller
   says lands as a line in the transcript, tagged with the part of the
   order it fills, and that row of the work order fills in a moment later.
   Sequence: service (6%) → add-ons (15%) → a time from live availability,
   the open slots show and 9:00 is picked (24%) → recurring every 2 weeks,
   the frequency discount appears (33%) → customer, the caller's name shows
   in the call header (42%) → US job address, the state tax line appears (51%)
   → special instructions (60%) → payment term (69%) → the call ends and
   the order is saved, "Booked before the call ended" pops up (76–78%) →
   hold → veil, reset (90–95%).
   Totals: Standard Clean $210 + add-ons $45 = $255.00; Idaho state tax
   6% $15.30 = $270.30 USD. The tax line only appears once the address is in.
   Timeline is in % of 24s (1% = 240ms). Board is 790 × 470, no chrome.
   Base styles = the finished, saved order, so reduced motion shows it.
   ========================================================================== */

.sd--build {
  --wb-loop: 24s;
  --wb-brand: #2C5BF0;
  --wb-soft: #EEF2FE;
  --wb-ok: #1E8E4E;
  --win-w: 790px;
  --win-r: .5949;
}

.wb__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 12%, rgba(44,91,240,.12), transparent 50%),
    var(--surface-sunken, #F1F0EC);
  font: 400 12px/1.35 var(--font-text, system-ui, sans-serif);
  color: #17171B;
  text-align: left;
}
.sd--window .wb__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.wb__ico-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wb__stack { display: inline-grid; justify-items: start; }
.wb__stack > * { grid-area: 1 / 1; }

/* ---- The call ---- */
.wb__call {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 300px;
  height: 442px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 24px 44px -28px rgba(16,16,19,.45);
}
.wb__call-head {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 70px;
  padding: 0 16px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(16,16,19,.08);
}
.wb__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #5B82F5, #2C5BF0);
  color: #fff;
}
.wb__avatar svg { width: 17px; height: 17px; }
.wb__who { flex: 1 1 auto; min-width: 0; }
.wb__name { display: grid; justify-items: start; font: 700 13.5px/1.2 var(--font-display, system-ui, sans-serif); white-space: nowrap; }
.wb__name > :first-child { opacity: 0; animation: wbAnon var(--wb-loop) infinite; }
.wb__name > :last-child { animation: wbWho var(--wb-loop) infinite; }
.wb__state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #6B6B75;
  font-size: 11px;
  white-space: nowrap;
}
.wb__state .wb__stack > :first-child { opacity: 0; color: var(--wb-ok); font-weight: 600; animation: wbLive var(--wb-loop) infinite; }
.wb__state .wb__stack > :last-child { animation: wbEnded var(--wb-loop) infinite; }
.wb__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
  animation: wbPulse 1.2s ease-in-out infinite;
}
/* call timer: a strip of 0:00–0:48 stepped through one second at a time */
.wb__timer {
  display: inline-block;
  height: 16px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
}
.wb__timer span { display: block; transform: translateY(-768px); animation: wbTimer var(--wb-loop) infinite; }
.wb__timer i { display: block; height: 16px; font-style: normal; }
.wb__wave { display: flex; align-items: center; gap: 2px; height: 20px; }
.wb__wave i {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--wb-brand);
  opacity: .7;
  transform: scaleY(.3);
  animation: wbBar 520ms ease-in-out infinite alternate;
}
.wb__wave i:nth-child(2n) { animation-delay: -200ms; }
.wb__wave i:nth-child(3n) { animation-delay: -350ms; }

.wb__feed {
  position: absolute;
  left: 0;
  right: 0;
  top: 71px;
  bottom: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%);
  mask-image: linear-gradient(to bottom, transparent, #000 16%);
}
.wb__thread {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  animation: wbThread var(--wb-loop) infinite;
}
.wb__say {
  height: 56px;
  margin-top: 10px;
  transform-origin: 0 100%;
}
.wb__bubble {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 15px 15px 15px 4px;
  background: #ECEDF1;
  font-size: 12px;
  white-space: nowrap;
}
.wb__tag {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0 0 4px;
  color: var(--wb-brand);
  font: 700 10.5px/1 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
}
.wb__tag svg { width: 11px; height: 11px; stroke-width: 2.4; }

/* ---- The work order ---- */
.wb__card {
  position: absolute;
  left: 330px;
  top: 14px;
  width: 446px;
  height: 442px;
  box-sizing: border-box;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--wb-ok), 0 0 0 8px rgba(30,142,78,.14), 0 24px 44px -24px rgba(16,16,19,.45);
  animation: wbCard var(--wb-loop) infinite;
}
.wb__head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid rgba(16,16,19,.08); }
.wb__chip {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--wb-soft);
  color: var(--wb-brand);
}
.wb__chip svg { width: 19px; height: 19px; }
.wb__kicker { display: block; color: #6B6B75; font: 600 10px/1 var(--font-text, system-ui, sans-serif); letter-spacing: .07em; text-transform: uppercase; }
.wb__title { display: block; margin-top: 4px; font: 800 18px/1 var(--font-display, system-ui, sans-serif); letter-spacing: -.02em; }
.wb__status { margin-left: auto; align-self: flex-start; }
.wb__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 700 10.5px/1 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
}
.wb__pill--draft { background: #FDF1DA; color: #7A4D00; opacity: 0; animation: wbDraft var(--wb-loop) infinite; }
.wb__pill--draft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: wbPulse 1s ease-in-out infinite; }
.wb__pill--saved { justify-self: end; background: #E5F4EA; color: #146C3A; animation: wbSaved var(--wb-loop) infinite; }
.wb__pill--saved svg { width: 11px; height: 11px; stroke-width: 3; }

.wb__rows { margin-top: 6px; }
.wb__row {
  display: grid;
  grid-template-columns: 24px 82px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  height: 30px;
  margin: 0 -6px;
  padding: 0 6px;
  border-radius: 7px;
}
.wb__row + .wb__row { box-shadow: 0 -1px 0 rgba(16,16,19,.06); }
.wb__ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--wb-soft);
  color: var(--wb-brand);
}
.wb__ico svg { width: 13px; height: 13px; }
.wb__lbl { color: #6B6B75; font-size: 11px; white-space: nowrap; }
.wb__cell { position: relative; display: flex; align-items: center; min-width: 0; height: 30px; }
.wb__skel {
  position: absolute;
  left: 0;
  top: 11px;
  width: var(--w, 120px);
  height: 8px;
  border-radius: 4px;
  background: #ECEDF0;
  opacity: 0;
}
.wb__val {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
}
.wb__val small { color: #6B6B75; font-weight: 500; font-size: 11px; }
.wb__amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.wb__amt .wb__skel { left: auto; right: 0; }
.wb__amt .wb__val { justify-content: flex-end; }
.wb__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--wb-soft);
  color: #1F3FB8;
  font: 700 9.5px/1.3 var(--font-text, system-ui, sans-serif);
}
.wb__badge--ok { background: #E5F4EA; color: #146C3A; }

/* open slots from live availability, shown before the time is booked */
.wb__slots {
  position: absolute;
  left: 0;
  top: 5px;
  display: flex;
  gap: 5px;
  opacity: 0;
  animation: wbSlots var(--wb-loop) infinite;
}
.wb__slot {
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #D5D9DE;
  font: 600 10.5px/1.3 var(--font-text, system-ui, sans-serif);
  white-space: nowrap;
}
.wb__slot--off { color: #A0A0A8; text-decoration: line-through; background: #F4F5F7; box-shadow: none; }
.wb__slot--pick { animation: wbSlotPick var(--wb-loop) infinite; }

/* ---- Totals ---- */
.wb__totals { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(16,16,19,.12); }
.wb__trow {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 20px;
  color: #55555F;
  font-size: 11.5px;
}
.wb__trow .wb__n { font-variant-numeric: tabular-nums; justify-items: end; color: #17171B; font-weight: 600; }
.wb__n > * { opacity: 0; }
.wb__n > :last-child { opacity: 1; }
.wb__trow .wb__skel { left: auto; right: 0; top: 6px; width: 48px; }
.wb__taxl { animation: wbTax var(--wb-loop) infinite; }
.wb__tot {
  height: 30px;
  margin: 4px -6px 0;
  padding: 0 6px;
  border-radius: 7px;
  color: #17171B;
  font: 800 15px/1 var(--font-display, system-ui, sans-serif);
  animation: wbTotFlash var(--wb-loop) infinite;
}
.wb__tot .wb__n { font-weight: 800; }

/* ---- Wrap-up pill + reset veil ---- */
.wb__done {
  position: absolute;
  left: 164px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: #17171B;
  color: #fff;
  font: 700 13px/1 var(--font-display, system-ui, sans-serif);
  white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgba(16,16,19,.6);
  transform: translate(-50%, 0);
  animation: wbDone var(--wb-loop) infinite;
}
.wb__done b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wb-ok);
}
.wb__done svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; }
.wb__veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--surface-sunken, #F1F0EC);
  opacity: 0;
  animation: wbVeil var(--wb-loop) infinite;
}
.wb__amt .wb__skel { width: 44px; }
.wb__row--1 .wb__cell .wb__skel { width: 168px; }
.wb__row--2 .wb__cell .wb__skel { width: 140px; }
.wb__row--3 .wb__cell .wb__skel { width: 122px; }
.wb__row--4 .wb__cell .wb__skel { width: 92px; }
.wb__row--5 .wb__cell .wb__skel { width: 156px; }
.wb__row--6 .wb__cell .wb__skel { width: 132px; }
.wb__row--7 .wb__cell .wb__skel { width: 150px; }
.wb__row--8 .wb__cell .wb__skel { width: 118px; }
.wb__amt { position: relative; display: flex; align-items: center; justify-content: flex-end; min-width: 56px; height: 30px; }

/* ---- Per-step hooks (generated) ---- */
.wb__say--1 { animation: wbSay1 var(--wb-loop) infinite; }
.wb__say--1 .wb__tag { animation: wbTag1 var(--wb-loop) infinite; }
.wb__row--1 { animation: wbRow1 var(--wb-loop) infinite; }
.wb__row--1 .wb__ico { animation: wbIco1 var(--wb-loop) infinite; }
.wb__row--1 .wb__skel { animation: wbSkel1 var(--wb-loop) infinite; }
.wb__row--1 .wb__val { animation: wbVal1 var(--wb-loop) infinite; }
.wb__say--2 { animation: wbSay2 var(--wb-loop) infinite; }
.wb__say--2 .wb__tag { animation: wbTag2 var(--wb-loop) infinite; }
.wb__row--2 { animation: wbRow2 var(--wb-loop) infinite; }
.wb__row--2 .wb__ico { animation: wbIco2 var(--wb-loop) infinite; }
.wb__row--2 .wb__skel { animation: wbSkel2 var(--wb-loop) infinite; }
.wb__row--2 .wb__val { animation: wbVal2 var(--wb-loop) infinite; }
.wb__say--3 { animation: wbSay3 var(--wb-loop) infinite; }
.wb__say--3 .wb__tag { animation: wbTag3 var(--wb-loop) infinite; }
.wb__row--3 { animation: wbRow3 var(--wb-loop) infinite; }
.wb__row--3 .wb__ico { animation: wbIco3 var(--wb-loop) infinite; }
.wb__row--3 .wb__skel { animation: wbSkel3 var(--wb-loop) infinite; }
.wb__say--4 { animation: wbSay4 var(--wb-loop) infinite; }
.wb__say--4 .wb__tag { animation: wbTag4 var(--wb-loop) infinite; }
.wb__row--4 { animation: wbRow4 var(--wb-loop) infinite; }
.wb__row--4 .wb__ico { animation: wbIco4 var(--wb-loop) infinite; }
.wb__row--4 .wb__skel { animation: wbSkel4 var(--wb-loop) infinite; }
.wb__row--4 .wb__val { animation: wbVal4 var(--wb-loop) infinite; }
.wb__say--5 { animation: wbSay5 var(--wb-loop) infinite; }
.wb__say--5 .wb__tag { animation: wbTag5 var(--wb-loop) infinite; }
.wb__row--5 { animation: wbRow5 var(--wb-loop) infinite; }
.wb__row--5 .wb__ico { animation: wbIco5 var(--wb-loop) infinite; }
.wb__row--5 .wb__skel { animation: wbSkel5 var(--wb-loop) infinite; }
.wb__row--5 .wb__val { animation: wbVal5 var(--wb-loop) infinite; }
.wb__say--6 { animation: wbSay6 var(--wb-loop) infinite; }
.wb__say--6 .wb__tag { animation: wbTag6 var(--wb-loop) infinite; }
.wb__row--6 { animation: wbRow6 var(--wb-loop) infinite; }
.wb__row--6 .wb__ico { animation: wbIco6 var(--wb-loop) infinite; }
.wb__row--6 .wb__skel { animation: wbSkel6 var(--wb-loop) infinite; }
.wb__row--6 .wb__val { animation: wbVal6 var(--wb-loop) infinite; }
.wb__say--7 { animation: wbSay7 var(--wb-loop) infinite; }
.wb__say--7 .wb__tag { animation: wbTag7 var(--wb-loop) infinite; }
.wb__row--7 { animation: wbRow7 var(--wb-loop) infinite; }
.wb__row--7 .wb__ico { animation: wbIco7 var(--wb-loop) infinite; }
.wb__row--7 .wb__skel { animation: wbSkel7 var(--wb-loop) infinite; }
.wb__row--7 .wb__val { animation: wbVal7 var(--wb-loop) infinite; }
.wb__say--8 { animation: wbSay8 var(--wb-loop) infinite; }
.wb__say--8 .wb__tag { animation: wbTag8 var(--wb-loop) infinite; }
.wb__row--8 { animation: wbRow8 var(--wb-loop) infinite; }
.wb__row--8 .wb__ico { animation: wbIco8 var(--wb-loop) infinite; }
.wb__row--8 .wb__skel { animation: wbSkel8 var(--wb-loop) infinite; }
.wb__row--8 .wb__val { animation: wbVal8 var(--wb-loop) infinite; }
.wb__row--3 .wb__val { animation: wbVal3 var(--wb-loop) infinite; }
.wb__sub .wb__n > :nth-child(1) { animation: wbSub0 var(--wb-loop) infinite; }
.wb__sub .wb__n > :nth-child(2) { animation: wbSub1 var(--wb-loop) infinite; }
.wb__sub .wb__n > :nth-child(3) { animation: wbSub2 var(--wb-loop) infinite; }
.wb__tot .wb__n > :nth-child(1) { animation: wbTot0 var(--wb-loop) infinite; }
.wb__tot .wb__n > :nth-child(2) { animation: wbTot1 var(--wb-loop) infinite; }
.wb__tot .wb__n > :nth-child(3) { animation: wbTot2 var(--wb-loop) infinite; }
.wb__tot .wb__n > :nth-child(4) { animation: wbTot3 var(--wb-loop) infinite; }

/* ---- Keyframes (% of 24s; 1% = 240ms) ----
   Caller lines land at 6% · 15% · 24% · 33% · 42% · 51% · 60% · 69%;
   each work-order row fills 2.5% later. Reset under the veil at 93%. */
@keyframes wbThread {
  0%, 6% { transform: translateY(528px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  7.6%, 15% { transform: translateY(462px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  16.6%, 24% { transform: translateY(396px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  25.6%, 33% { transform: translateY(330px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  34.6%, 42% { transform: translateY(264px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  43.6%, 51% { transform: translateY(198px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  52.6%, 60% { transform: translateY(132px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  61.6%, 69% { transform: translateY(66px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  70.6%, 93% { transform: translateY(0px); animation-timing-function: cubic-bezier(.3,.7,.3,1); }
  93.1%, 100% { transform: translateY(528px); }
}
@keyframes wbSay1 {
  0%, 6% { opacity: 0; transform: scale(.85); }
  7.5%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes wbTag1 {
  0%, 7.2% { opacity: 0; transform: translateX(-6px); }
  8.7%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes wbSay2 {
  0%, 15% { opacity: 0; transform: scale(.85); }
  16.5%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes wbTag2 {
  0%, 16.2% { opacity: 0; transform: translateX(-6px); }
  17.7%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes wbSay3 {
  0%, 24% { opacity: 0; transform: scale(.85); }
  25.5%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes wbTag3 {
  0%, 25.2% { opacity: 0; transform: translateX(-6px); }
  26.7%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes wbSay4 {
  0%, 33% { opacity: 0; transform: scale(.85); }
  34.5%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes wbTag4 {
  0%, 34.2% { opacity: 0; transform: translateX(-6px); }
  35.7%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes wbSay5 {
  0%, 42% { opacity: 0; transform: scale(.85); }
  43.5%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes wbTag5 {
  0%, 43.2% { opacity: 0; transform: translateX(-6px); }
  44.7%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes wbSay6 {
  0%, 51% { opacity: 0; transform: scale(.85); }
  52.5%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes wbTag6 {
  0%, 52.2% { opacity: 0; transform: translateX(-6px); }
  53.7%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes wbSay7 {
  0%, 60% { opacity: 0; transform: scale(.85); }
  61.5%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes wbTag7 {
  0%, 61.2% { opacity: 0; transform: translateX(-6px); }
  62.7%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes wbSay8 {
  0%, 69% { opacity: 0; transform: scale(.85); }
  70.5%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes wbTag8 {
  0%, 70.2% { opacity: 0; transform: translateX(-6px); }
  71.7%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-6px); }
}
@keyframes wbVal1 {
  0%, 8.5% { opacity: 0; transform: translateX(-8px); }
  10%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes wbSkel1 {
  0%, 8.5% { opacity: 1; }
  9.1%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbIco1 {
  0%, 8.5% { background: #F1F2F4; color: #9A9AA4; }
  9.1%, 93% { background: var(--wb-soft); color: var(--wb-brand); }
  93.1%, 100% { background: #F1F2F4; color: #9A9AA4; }
}
@keyframes wbRow1 {
  0%, 8.5% { background: transparent; }
  9.1%, 11.5% { background: var(--wb-soft); }
  14.5%, 100% { background: transparent; }
}
@keyframes wbVal2 {
  0%, 17.5% { opacity: 0; transform: translateX(-8px); }
  19%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes wbSkel2 {
  0%, 17.5% { opacity: 1; }
  18.1%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbIco2 {
  0%, 17.5% { background: #F1F2F4; color: #9A9AA4; }
  18.1%, 93% { background: var(--wb-soft); color: var(--wb-brand); }
  93.1%, 100% { background: #F1F2F4; color: #9A9AA4; }
}
@keyframes wbRow2 {
  0%, 17.5% { background: transparent; }
  18.1%, 20.5% { background: var(--wb-soft); }
  23.5%, 100% { background: transparent; }
}
@keyframes wbVal3 {
  0%, 26.5% { opacity: 0; transform: translateX(-8px); }
  28%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes wbSkel3 {
  0%, 26.5% { opacity: 1; }
  27.1%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbIco3 {
  0%, 26.5% { background: #F1F2F4; color: #9A9AA4; }
  27.1%, 93% { background: var(--wb-soft); color: var(--wb-brand); }
  93.1%, 100% { background: #F1F2F4; color: #9A9AA4; }
}
@keyframes wbRow3 {
  0%, 26.5% { background: transparent; }
  27.1%, 29.5% { background: var(--wb-soft); }
  32.5%, 100% { background: transparent; }
}
@keyframes wbVal4 {
  0%, 35.5% { opacity: 0; transform: translateX(-8px); }
  37%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes wbSkel4 {
  0%, 35.5% { opacity: 1; }
  36.1%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbIco4 {
  0%, 35.5% { background: #F1F2F4; color: #9A9AA4; }
  36.1%, 93% { background: var(--wb-soft); color: var(--wb-brand); }
  93.1%, 100% { background: #F1F2F4; color: #9A9AA4; }
}
@keyframes wbRow4 {
  0%, 35.5% { background: transparent; }
  36.1%, 38.5% { background: var(--wb-soft); }
  41.5%, 100% { background: transparent; }
}
@keyframes wbVal5 {
  0%, 44.5% { opacity: 0; transform: translateX(-8px); }
  46%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes wbSkel5 {
  0%, 44.5% { opacity: 1; }
  45.1%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbIco5 {
  0%, 44.5% { background: #F1F2F4; color: #9A9AA4; }
  45.1%, 93% { background: var(--wb-soft); color: var(--wb-brand); }
  93.1%, 100% { background: #F1F2F4; color: #9A9AA4; }
}
@keyframes wbRow5 {
  0%, 44.5% { background: transparent; }
  45.1%, 47.5% { background: var(--wb-soft); }
  50.5%, 100% { background: transparent; }
}
@keyframes wbVal6 {
  0%, 53.5% { opacity: 0; transform: translateX(-8px); }
  55%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes wbSkel6 {
  0%, 53.5% { opacity: 1; }
  54.1%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbIco6 {
  0%, 53.5% { background: #F1F2F4; color: #9A9AA4; }
  54.1%, 93% { background: var(--wb-soft); color: var(--wb-brand); }
  93.1%, 100% { background: #F1F2F4; color: #9A9AA4; }
}
@keyframes wbRow6 {
  0%, 53.5% { background: transparent; }
  54.1%, 56.5% { background: var(--wb-soft); }
  59.5%, 100% { background: transparent; }
}
@keyframes wbVal7 {
  0%, 62.5% { opacity: 0; transform: translateX(-8px); }
  64%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes wbSkel7 {
  0%, 62.5% { opacity: 1; }
  63.1%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbIco7 {
  0%, 62.5% { background: #F1F2F4; color: #9A9AA4; }
  63.1%, 93% { background: var(--wb-soft); color: var(--wb-brand); }
  93.1%, 100% { background: #F1F2F4; color: #9A9AA4; }
}
@keyframes wbRow7 {
  0%, 62.5% { background: transparent; }
  63.1%, 65.5% { background: var(--wb-soft); }
  68.5%, 100% { background: transparent; }
}
@keyframes wbVal8 {
  0%, 71.5% { opacity: 0; transform: translateX(-8px); }
  73%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes wbSkel8 {
  0%, 71.5% { opacity: 1; }
  72.1%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbIco8 {
  0%, 71.5% { background: #F1F2F4; color: #9A9AA4; }
  72.1%, 93% { background: var(--wb-soft); color: var(--wb-brand); }
  93.1%, 100% { background: #F1F2F4; color: #9A9AA4; }
}
@keyframes wbRow8 {
  0%, 71.5% { background: transparent; }
  72.1%, 74.5% { background: var(--wb-soft); }
  77.5%, 100% { background: transparent; }
}
@keyframes wbSlots {
  0%, 26.5% { opacity: 0; }
  27.1%, 30.5% { opacity: 1; }
  31.1%, 100% { opacity: 0; }
}
@keyframes wbSlotPick {
  0%, 28.5% { background: #fff; color: #17171B; box-shadow: inset 0 0 0 1px #D5D9DE; transform: none; }
  28.9% { background: var(--wb-brand); color: #fff; box-shadow: inset 0 0 0 1px var(--wb-brand); transform: scale(.9); }
  29.5%, 100% { background: var(--wb-brand); color: #fff; box-shadow: inset 0 0 0 1px var(--wb-brand); transform: none; }
}
@keyframes wbVal3 {
  0%, 31.1% { opacity: 0; transform: translateX(-8px); }
  32.6%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateX(-8px); }
}
@keyframes wbSub0 { 0%, 8.49% { opacity: 1; } 8.5%, 93% { opacity: 0; } 93.1%, 100% { opacity: 1; } }
@keyframes wbSub1 { 0%, 8.49% { opacity: 0; } 8.5%, 17.49% { opacity: 1; } 17.5%, 100% { opacity: 0; } }
@keyframes wbSub2 { 0%, 17.49% { opacity: 0; } 17.5%, 93% { opacity: 1; } 93.1%, 100% { opacity: 0; } }
@keyframes wbTot0 { 0%, 8.49% { opacity: 1; } 8.5%, 93% { opacity: 0; } 93.1%, 100% { opacity: 1; } }
@keyframes wbTot1 { 0%, 8.49% { opacity: 0; } 8.5%, 17.49% { opacity: 1; } 17.5%, 100% { opacity: 0; } }
@keyframes wbTot2 { 0%, 17.49% { opacity: 0; } 17.5%, 53.49% { opacity: 1; } 53.5%, 100% { opacity: 0; } }
@keyframes wbTot3 { 0%, 53.49% { opacity: 0; } 53.5%, 93% { opacity: 1; } 93.1%, 100% { opacity: 0; } }
@keyframes wbTax {
  0%, 54.1% { opacity: 0; transform: translateY(-4px); }
  54.9%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes wbTotFlash {
  0%, 54% { background: transparent; }
  54.5%, 57% { background: var(--wb-soft); }
  59.5%, 100% { background: transparent; }
}
@keyframes wbWho {
  0%, 44.5% { opacity: 0; }
  45.3%, 93% { opacity: 1; }
  93.1%, 100% { opacity: 0; }
}
@keyframes wbAnon {
  0%, 44.5% { opacity: 1; }
  45.3%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbLive {
  0%, 76% { opacity: 1; }
  76.5%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbEnded {
  0%, 76% { opacity: 0; }
  76.5%, 93% { opacity: 1; }
  93.1%, 100% { opacity: 0; }
}
@keyframes wbDraft {
  0%, 77% { opacity: 1; }
  77.5%, 93% { opacity: 0; }
  93.1%, 100% { opacity: 1; }
}
@keyframes wbSaved {
  0%, 77% { opacity: 0; transform: scale(.6); }
  78%, 93% { opacity: 1; transform: none; }
  93.1%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes wbCard {
  0%, 77% { box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 24px 44px -28px rgba(16,16,19,.45); }
  78%, 93% { box-shadow: 0 0 0 2px var(--wb-ok), 0 0 0 8px rgba(30,142,78,.14), 0 24px 44px -24px rgba(16,16,19,.45); }
  93.1%, 100% { box-shadow: 0 0 0 1px rgba(16,16,19,.07), 0 24px 44px -28px rgba(16,16,19,.45); }
}
@keyframes wbDone {
  0%, 78% { opacity: 0; transform: translate(-50%, 12px) scale(.94); }
  79.4%, 93% { opacity: 1; transform: translate(-50%, 0); }
  93.1%, 100% { opacity: 0; transform: translate(-50%, 12px) scale(.94); }
}
@keyframes wbTimer {
  0%, 3% { transform: translateY(0); animation-timing-function: steps(48, end); }
  76%, 93% { transform: translateY(-768px); }
  93.1%, 100% { transform: translateY(0); }
}
@keyframes wbVeil { 0%, 89.5% { opacity: 0; } 92%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wbBar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes wbPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }



/* ==========================================================================
   24. Mobile app install demo — 14s loop, shown in the split-hero window
   One phone, zoomed to 120% and cropped at the bottom so the screen reads.
   Sequence: the dashboard is open in the phone's browser → tap the ⋮ menu
   (8%) → tap "Add to Home screen" (18%) → the Add dialog opens → tap Add
   (30%) → the browser closes to the home screen and the new app icon pops
   in, "No app store" chip lights up (33–42%) → tap the icon (50%) → the app
   opens out of the icon with its splash screen, full screen with no browser
   bar, "Opens full screen" chip lights up (51–60%) → today's jobs rise in
   (62–66%) → the phone buzzes and a "New job assigned" push drops in (74%)
   → hold → veil, reset (90–100%).
   Screen coordinates used by the touch dot (board = phone x 1.2 about
   395px, 14px): ⋮ (504, 78) · Add to Home screen (429, 207) ·
   Add (459, 331) · app icon (489, 271).
   Timeline is in % of 14s (1% = 140ms). Board is 790 × 470, no chrome.
   Base styles = the installed app open on today's jobs with the push
   showing, so reduced motion shows the end result.
   ========================================================================== */

.sd--pwa {
  --pw-loop: 14s;
  --pw-brand: var(--pg-brand-500, #2C5BF0);
  --pw-blue: #1A7CF5;
  --pw-ok: #1E8E4E;
  --win-w: 790px;
  --win-r: .5949;
}

.pw__board {
  position: absolute;
  width: 790px;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 22%, rgba(44,91,240,.14), transparent 55%),
    var(--surface-sunken, #F1F0EC);
  font: 400 11px/1.35 var(--font-text, system-ui, sans-serif);
  color: #17171B;
  text-align: left;
}
.sd--window .pw__board {
  top: var(--win-pad, 14px);
  left: var(--win-pad, 14px);
  transform-origin: 0 0;
  transform: scale(var(--win-s, .76));
}
.pw__ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Phone ---- */
.pw__phone {
  position: absolute;
  left: 275px;
  top: 14px;
  box-sizing: border-box;
  width: 240px;
  height: 500px;
  padding: 9px;
  border-radius: 40px;
  background: #121214;
  box-shadow: 0 0 0 2px #2A2A2E, 0 40px 70px -30px rgba(16,16,19,.55);
  /* zoomed so the screen text reads; the bottom of the phone runs off the board */
  transform-origin: 50% 0;
  scale: 1.2;
  animation: pwBuzz var(--pw-loop) infinite;
}
.pw__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #F4F6F8;
}
.pw__island {
  position: absolute;
  left: 50%;
  top: 7px;
  z-index: 8;
  width: 70px;
  height: 20px;
  margin-left: -35px;
  border-radius: 10px;
  background: #121214;
}
.pw__status {
  position: absolute;
  left: 22px;
  right: 18px;
  top: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font: 600 10px/1 var(--font-text, system-ui, sans-serif);
}
.pw__status i {
  display: inline-block;
  box-sizing: border-box;
  width: 18px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-shadow: inset -6px 0 0 currentColor;
  opacity: .85;
}
.pw__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ---- Home screen (under everything) ---- */
.pw__home {
  z-index: 1;
  background:
    radial-gradient(circle at 20% 15%, #9DB7FF 0, transparent 45%),
    radial-gradient(circle at 85% 40%, #C8A6F5 0, transparent 50%),
    linear-gradient(160deg, #6F8DF0 0%, #8C79E6 55%, #B48AD8 100%);
  color: #fff;
}
.pw__grid {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  grid-auto-rows: 56px;
  column-gap: 10px;
  row-gap: 12px;
  padding: 48px 12px 0;
}
.pw__tile {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.pw__tile--a { background: linear-gradient(160deg, #FFFFFF, #E4E8F2); }
.pw__tile--b { background: linear-gradient(160deg, #6ED38A, #2FA65A); }
.pw__tile--c { background: linear-gradient(160deg, #FFB86B, #F2873A); }
.pw__tile--d { background: linear-gradient(160deg, #5BB8F5, #2D7FE0); }
.pw__tile--e { background: linear-gradient(160deg, #3A3A44, #17171B); }
.pw__tile--f { background: linear-gradient(160deg, #FFE27A, #F5C437); }
.pw__name {
  display: block;
  margin: 4px -8px 0;
  overflow: hidden;
  color: #fff;
  font: 500 8px/10px var(--font-text, system-ui, sans-serif);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* the app icon: a generic glyph, named after white_label_account.busname */
.pw__appicon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--pw-brand);
  box-shadow: 0 6px 14px -6px rgba(16,16,19,.45);
  color: #fff;
}
/* generic app glyph: scales with the icon it sits in */
.pw__appicon .pw__ico {
  width: 54%;
  height: 54%;
}
.pw__new { animation: pwIcon var(--pw-loop) infinite; }

/* ---- Browser (the dashboard before it is installed) ---- */
.pw__browser {
  z-index: 2;
  background: #fff;
  transform-origin: 50% 40%;
  opacity: 0;
  animation: pwBrowser var(--pw-loop) infinite;
}
.pw__browser .pw__status { color: #17171B; }
.pw__bar {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}
.pw__url {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 26px;
  padding: 0 9px;
  border-radius: 13px;
  background: #EEF0F3;
  color: #45454D;
  font: 500 9.5px/1 var(--font-text, system-ui, sans-serif);
}
.pw__url .pw__ico { flex: 0 0 auto; width: 10px; height: 10px; color: #6B6B75; }
.pw__url span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pw__kebab {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #45454D;
  animation: pwKebab var(--pw-loop) infinite;
}
.pw__kebab .pw__ico { width: 15px; height: 15px; }
.pw__page {
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  bottom: 0;
  padding: 10px 12px;
  border-top: 1px solid #EDEDF0;
  background: #F7F7F9;
}
.pw__page-title { display: block; font: 800 16px/1.2 var(--font-display, system-ui, sans-serif); }
.pw__page-sub { display: block; margin-bottom: 10px; color: #6B6B75; font-size: 9px; }
.pw__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pw__stat {
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #EDEDF0;
  color: #6B6B75;
  font-size: 8.5px;
}
.pw__stat b { display: block; color: #17171B; font: 800 15px/1.2 var(--font-display, system-ui, sans-serif); }
.pw__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #EDEDF0;
}
.pw__chart i { flex: 1 1 0; border-radius: 3px 3px 0 0; background: #C9D6FB; }
.pw__chart i:nth-child(1) { height: 40%; }
.pw__chart i:nth-child(2) { height: 62%; }
.pw__chart i:nth-child(3) { height: 48%; }
.pw__chart i:nth-child(4) { height: 80%; background: var(--pw-brand); }
.pw__chart i:nth-child(5) { height: 66%; }
.pw__chart i:nth-child(6) { height: 90%; }

/* browser ⋮ menu */
.pw__menu {
  position: absolute;
  right: 8px;
  top: 56px;
  z-index: 5;
  box-sizing: border-box;
  width: 150px;
  padding: 5px 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.06), 0 14px 30px -10px rgba(16,16,19,.45);
  transform-origin: 100% 0;
  opacity: 0;
  animation: pwMenu var(--pw-loop) infinite;
}
.pw__item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  font-size: 10px;
}
.pw__item .pw__ico { width: 12px; height: 12px; color: #6B6B75; }
.pw__item--add { font-weight: 700; animation: pwHit var(--pw-loop) infinite; }
.pw__item--add .pw__ico { color: var(--pw-blue); }

/* Add to Home screen dialog */
.pw__scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(16,16,19,.38);
  opacity: 0;
  animation: pwScrim var(--pw-loop) infinite;
}
.pw__dialog {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 140px;
  z-index: 5;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 36px -14px rgba(16,16,19,.5);
  opacity: 0;
  animation: pwDialog var(--pw-loop) infinite;
}
.pw__dialog-title { display: block; font: 800 14px/18px var(--font-display, system-ui, sans-serif); }
.pw__dialog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin-top: 12px;
}
.pw__dialog-row .pw__appicon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; }
.pw__dialog-text { min-width: 0; }
.pw__dialog-row strong { display: block; overflow: hidden; max-width: 130px; font: 700 11.5px/1.2 var(--font-display, system-ui, sans-serif); white-space: nowrap; text-overflow: ellipsis; }
.pw__dialog-row small { display: block; overflow: hidden; max-width: 120px; color: #8A8A94; font-size: 8.5px; white-space: nowrap; text-overflow: ellipsis; }
.pw__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  height: 30px;
  margin-top: 14px;
}
.pw__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 30px;
  border-radius: 10px;
  background: var(--pw-blue);
  color: #fff;
  font: 700 11px/1 var(--font-display, system-ui, sans-serif);
}
.pw__btn--ghost { width: 62px; background: transparent; color: var(--pw-blue); }
.pw__btn--add { animation: pwAdd var(--pw-loop) infinite; }

/* ---- The installed app (opens out of its icon, full screen) ---- */
.pw__app {
  z-index: 3;
  background: #F4F6F8;
  /* the centre of the new icon on the home screen */
  transform-origin: 189px 205px;
  animation: pwApp var(--pw-loop) infinite;
}
.pw__app .pw__status { color: #17171B; }
.pw__top { padding: 34px 14px 8px; }
.pw__top small { display: block; color: var(--pw-brand); font: 700 9px/1.2 var(--font-text, system-ui, sans-serif); letter-spacing: .05em; text-transform: uppercase; }
.pw__top strong { display: block; font: 800 20px/1.15 var(--font-display, system-ui, sans-serif); letter-spacing: -.01em; }
.pw__top span { color: #6B6B75; font-size: 9px; }
.pw__jobs { display: grid; gap: 8px; padding: 2px 10px; }
.pw__job {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 6px;
  padding: 9px 8px 9px 10px;
  border-left: 3px solid var(--pw-brand);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 14px -10px rgba(16,16,19,.35);
}
.pw__time { color: var(--pw-brand); font: 700 9.5px/1.2 var(--font-text, system-ui, sans-serif); }
.pw__job-text { display: grid; gap: 1px; min-width: 0; }
.pw__job-text strong { overflow: hidden; font: 700 11px/1.2 var(--font-display, system-ui, sans-serif); white-space: nowrap; text-overflow: ellipsis; }
.pw__job-text span { color: #45454D; font-size: 9.5px; }
.pw__job-text small { color: #8A8A94; font-size: 9px; }
.pw__job--1 { animation: pwJob1 var(--pw-loop) infinite; }
.pw__job--2 { animation: pwJob2 var(--pw-loop) infinite; }
.pw__job--3 { animation: pwJob3 var(--pw-loop) infinite; }

/* splash screen while the app starts */
.pw__splash {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--pw-brand);
  color: #fff;
  font: 700 13px/1 var(--font-display, system-ui, sans-serif);
  opacity: 0;
  animation: pwSplash var(--pw-loop) infinite;
}
.pw__splash .pw__appicon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  color: var(--pw-brand);
}
.pw__splash-name {
  overflow: hidden;
  max-width: 180px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* push notification inside the open app */
.pw__push {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 32px;
  z-index: 4;
  padding: 9px 11px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16,16,19,.05), 0 12px 26px -12px rgba(16,16,19,.5);
  animation: pwPush var(--pw-loop) infinite;
}
.pw__push-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: #6B6B73;
  font: 600 8.5px/1 var(--font-text, system-ui, sans-serif);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pw__push-head .pw__appicon { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 5px; box-shadow: none; }
/* too small for an outline: the glyph is drawn as four solid squares */
.pw__push-head .pw__appicon .pw__ico { width: 64%; height: 64%; fill: currentColor; stroke: none; }
.pw__push-app { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pw__push-head em { flex: 0 0 auto; margin-left: auto; font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.pw__push strong { display: block; font: 700 11px/1.25 var(--font-display, system-ui, sans-serif); }
.pw__push span { display: block; color: #3A3A42; font-size: 9.5px; }

/* ---- Chips beside the phone ---- */
.pw__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 9px;
  border-radius: 12px;
  background: var(--surface-card, #fff);
  box-shadow: 0 0 0 1px var(--border-hairline, rgba(16,16,19,.08)), 0 14px 28px -18px rgba(16,16,19,.45);
  font: 600 11.5px/1.2 var(--font-display, system-ui, sans-serif);
  white-space: nowrap;
}
.pw__chip small {
  display: block;
  color: var(--text-secondary, #6B6B75);
  font: 500 9.5px/1.2 var(--font-text, system-ui, sans-serif);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pw__chip-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--pg-brand-50, #EEF2FE);
  color: var(--pw-brand);
}
.pw__chip-ico .pw__ico { width: 15px; height: 15px; }
.pw__chip--install { left: 34px; top: 222px; animation: pwChipInstall var(--pw-loop) infinite; }
.pw__chip--open { right: 34px; top: 132px; animation: pwChipOpen var(--pw-loop) infinite; }

/* ---- Touch dot + veil ---- */
.pw__touch {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(16,16,19,.22);
  box-shadow: 0 4px 10px rgba(16,16,19,.25);
  opacity: 0;
  animation: pwTouch var(--pw-loop) infinite;
}
.pw__veil {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: var(--surface-sunken, #F1F0EC);
  opacity: 0;
  animation: pwVeil var(--pw-loop) infinite;
}

/* ---- Keyframes (% of 14s) ---- */
/* touch dot: ⋮ 8% · Add to Home screen 18% · Add 30% · app icon 50% */
@keyframes pwTouch {
  0%     { opacity: 0; transform: translate(504px, 78px) scale(1.3); }
  6.6%   { opacity: 0; transform: translate(504px, 78px) scale(1.3); }
  7.5%   { opacity: 1; transform: translate(504px, 78px) scale(1); }
  8%     { opacity: 1; transform: translate(504px, 78px) scale(.78); }
  8.9%   { opacity: 0; transform: translate(504px, 78px) scale(1.25); }
  16.6%  { opacity: 0; transform: translate(429px, 207px) scale(1.3); }
  17.5%  { opacity: 1; transform: translate(429px, 207px) scale(1); }
  18%    { opacity: 1; transform: translate(429px, 207px) scale(.78); }
  18.9%  { opacity: 0; transform: translate(429px, 207px) scale(1.25); }
  28.6%  { opacity: 0; transform: translate(459px, 331px) scale(1.3); }
  29.5%  { opacity: 1; transform: translate(459px, 331px) scale(1); }
  30%    { opacity: 1; transform: translate(459px, 331px) scale(.78); }
  30.9%  { opacity: 0; transform: translate(459px, 331px) scale(1.25); }
  48.6%  { opacity: 0; transform: translate(489px, 271px) scale(1.3); }
  49.5%  { opacity: 1; transform: translate(489px, 271px) scale(1); }
  50%    { opacity: 1; transform: translate(489px, 271px) scale(.78); }
  50.9%  { opacity: 0; transform: translate(489px, 271px) scale(1.25); }
  100%   { opacity: 0; transform: translate(489px, 271px) scale(1.25); }
}
@keyframes pwKebab {
  0%, 7.9%  { background: transparent; }
  8%, 9.5%  { background: #E2E5EA; }
  10.5%, 100% { background: transparent; }
}
@keyframes pwMenu {
  0%, 8.4%   { opacity: 0; transform: scale(.9); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  9.8%, 18.4% { opacity: 1; transform: none; }
  19.4%, 100% { opacity: 0; transform: scale(.96); }
}
@keyframes pwHit {
  0%, 17.8%  { background: transparent; }
  18%, 19%   { background: #EAF2FE; }
  19.5%, 100% { background: transparent; }
}
@keyframes pwScrim { 0%, 19% { opacity: 0; } 20.5%, 30.5% { opacity: 1; } 32.5%, 100% { opacity: 0; } }
@keyframes pwDialog {
  0%, 19%    { opacity: 0; transform: translateY(14px) scale(.94); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  21.5%, 30.8% { opacity: 1; transform: none; }
  32.5%, 100% { opacity: 0; transform: translateY(8px) scale(.96); }
}
@keyframes pwAdd {
  0%, 29.9% { background: #1A7CF5; transform: none; }
  30%       { background: #0F5FC4; transform: scale(.95); }
  31%, 100% { background: #1A7CF5; transform: none; }
}
/* the browser closes back to the home screen */
@keyframes pwBrowser {
  0%, 33%    { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.4,0,.6,1); }
  36%, 92.9% { opacity: 0; transform: scale(.88); }
  93%, 100%  { opacity: 1; transform: none; }
}
/* the new icon pops in, then is tapped */
@keyframes pwIcon {
  0%, 37.9% { opacity: 0; transform: scale(0); }
  39.2%     { opacity: 1; transform: scale(1.14); }
  40.2%     { opacity: 1; transform: none; }
  49.8%     { transform: none; }
  50.2%     { transform: scale(.86); }
  51%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: scale(0); }
}
/* the app grows out of the icon */
@keyframes pwApp {
  0%, 50.4%  { opacity: 0; transform: scale(.2); border-radius: 60px; }
  50.5%      { opacity: 1; transform: scale(.2); border-radius: 60px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  54%, 92.9% { opacity: 1; transform: none; border-radius: 0; }
  93%, 100%  { opacity: 0; transform: scale(.2); border-radius: 60px; }
}
@keyframes pwSplash {
  0%, 59%     { opacity: 1; }
  61.5%, 92.9% { opacity: 0; }
  93%, 100%   { opacity: 1; }
}
@keyframes pwJob1 {
  0%, 61.5% { opacity: 0; transform: translateY(50px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  63.3%     { opacity: 1; transform: translateY(-4px); }
  64.1%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(50px); }
}
@keyframes pwJob2 {
  0%, 62.7% { opacity: 0; transform: translateY(50px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  64.5%     { opacity: 1; transform: translateY(-4px); }
  65.3%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(50px); }
}
@keyframes pwJob3 {
  0%, 63.9% { opacity: 0; transform: translateY(50px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  65.7%     { opacity: 1; transform: translateY(-4px); }
  66.5%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(50px); }
}
@keyframes pwPush {
  0%, 73.5% { opacity: 0; transform: translateY(-40px) scale(.95); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  76%, 92.9% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(-40px) scale(.95); }
}
@keyframes pwBuzz {
  0%, 73.9%  { transform: none; }
  74.5%      { transform: translateX(-3px) rotate(-.6deg); }
  75.1%      { transform: translateX(3px) rotate(.6deg); }
  75.7%      { transform: translateX(-2px) rotate(-.4deg); }
  76.3%, 100% { transform: none; }
}
@keyframes pwChipInstall {
  0%, 38%   { opacity: 0; transform: translateX(-10px); }
  40%, 43%  { opacity: 1; transform: none; box-shadow: 0 0 0 1px var(--border-hairline, rgba(16,16,19,.08)), 0 0 0 6px rgba(44,91,240,.18); }
  47%, 88%  { opacity: 1; transform: none; box-shadow: 0 0 0 1px var(--border-hairline, rgba(16,16,19,.08)), 0 14px 28px -18px rgba(16,16,19,.45); }
  91%, 100% { opacity: 0; transform: translateX(-10px); }
}
@keyframes pwChipOpen {
  0%, 55%   { opacity: 0; transform: translateX(10px); }
  57%, 60%  { opacity: 1; transform: none; box-shadow: 0 0 0 1px var(--border-hairline, rgba(16,16,19,.08)), 0 0 0 6px rgba(44,91,240,.18); }
  64%, 88%  { opacity: 1; transform: none; box-shadow: 0 0 0 1px var(--border-hairline, rgba(16,16,19,.08)), 0 14px 28px -18px rgba(16,16,19,.45); }
  91%, 100% { opacity: 0; transform: translateX(10px); }
}
@keyframes pwVeil { 0%, 90% { opacity: 0; } 92.5%, 96% { opacity: 1; } 100% { opacity: 0; } }
