.tool-demo {
  container-type: inline-size;
  color: #182538;
  font: 400 15px/1.4 var(--font-brand);
  --film-ease: cubic-bezier(.22,.75,.23,1);
  --silver: linear-gradient(145deg,#fff 4%,#e2e8f0 55%,#9cabc1);
}
.tool-demo *, .tool-demo *::before, .tool-demo *::after { box-sizing: border-box; }
.tool-demo-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.tool-demo svg { display: block; width: 1em; height: 1em; flex: 0 0 auto; }
.film-stage {
  position: relative;
  isolation: isolate;
  height: clamp(254px, 70cqi, 452px);
  overflow: hidden;
  background: #fff;
  perspective: 900px;
  opacity: 1;
  transition: opacity .28s ease;
}
.tool-demo[data-fading='true'] .film-stage { opacity: 0; }
.tool-scene [data-shown='false'] { visibility: hidden; opacity: 0; }
.tool-scene [data-shown='true'] { visibility: visible; opacity: 1; }
.stage-halo {
  position: absolute;
  inset: 8% 2% 0;
  background: radial-gradient(ellipse at 50% 72%, #e9f1ff 0%, #f3f7ff 31%, #fff0 68%);
  pointer-events: none;
}
.mini-label { color: #536582; font-weight: 650; font-size: clamp(7px, 1.8cqi, 11px); letter-spacing: .105em; }

/* The message bubbles themselves are the objects in this shot. */
.message-film { height: auto; min-height: 270px; padding: clamp(18px, 6cqi, 42px) 5%; display: grid; place-items: center; }
.message-stack { width: min(100%, 460px); display: grid; justify-items: start; gap: clamp(8px, 2.2cqi, 15px); perspective: 720px; }
.message-bubble {
  position: relative;
  max-width: 93%;
  margin: 0;
  padding: clamp(9px, 2.55cqi, 16px) clamp(11px, 3.4cqi, 21px);
  border-radius: 16px 16px 16px 5px;
  color: #233555;
  background: linear-gradient(155deg,#fcfdff 2%,#eaf0fa 100%);
  box-shadow: 0 3px 0 #dce5f2, 0 11px 16px -12px #243f6f70, inset 0 1px 1px #fff;
  font-size: clamp(12px, 3.3cqi, 17px);
  transform: translate3d(-10px,13px,-30px) rotateY(8deg) rotateZ(-2deg);
  transition: opacity .28s ease, transform .52s var(--film-ease);
}
.message-bubble[data-shown='true'] { transform: translate3d(0,0,0) rotateY(6deg) rotateZ(-1.6deg); }
.message-customer {
  justify-self: end;
  background: linear-gradient(155deg,#2e66d5,#1949ad);
  color: #fff;
  border-radius: 16px 16px 5px 16px;
  box-shadow: 0 3px 0 #123c95, 0 12px 18px -11px #1d56b99c, inset 0 1px 1px #ffffff45;
  transform: translate3d(11px,13px,-30px) rotateY(-8deg) rotateZ(2deg);
}
.message-customer[data-shown='true'] { transform: rotateY(-6deg) rotateZ(1.5deg); }
.quote-bubble { min-width: min(82%, 338px); }
.quote-bubble > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.quote-kicker { display: block; margin-bottom: 5px; color: #526486; font-size: .66em; font-weight: 700; letter-spacing: .1em; }
.quote-total { border-top: 1px solid #c4d3eb; padding-top: 5px; color: #173e8b; }

/* The hardware sits at different angles in a shared white studio. */
.display {
  position: absolute;
  top: 13%;
  left: 11%;
  width: 78%;
  height: 72%;
  filter: drop-shadow(9px 18px 16px #6880a52e);
  transform-origin: 50% 56%;
  transition: transform .8s var(--film-ease), opacity .42s ease;
}
.display-glass {
  height: 89%;
  overflow: hidden;
  border: clamp(3px,.85cqi,6px) solid #d4dfed;
  border-radius: clamp(8px,2.4cqi,17px);
  background: linear-gradient(150deg,#fff 28%,#f2f7ff);
  box-shadow: 4px 5px 0 #aebed3, 6px 8px 0 #dfebf7, inset 0 0 16px #c9dafa66, 0 0 23px #a9c9f546;
}
.display-neck {
  display: block;
  width: 12%;
  height: 11%;
  margin: auto;
  background: var(--silver);
  box-shadow: inset -3px 0 0 #b0bfd3;
}
.display-foot {
  display: block;
  height: 5%;
  width: 31%;
  margin: auto;
  background: var(--silver);
  border-radius: 60% 60% 25% 25%;
  box-shadow: 0 4px 0 #a8b7ce, 0 10px 16px #8195b142;
}
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: clamp(5px, 1.65cqi, 11px) 5%;
  background: #f2f6fe;
  border-bottom: 1px solid #d8e3f1;
  color: #536582;
  font-size: clamp(7px, 1.85cqi, 12px);
  white-space: nowrap;
}
.dashboard-brand { display: flex; align-items: center; gap: 5px; color: #234580; font-weight: 650; }
.dashboard-brand svg { color: #2454bb; }
.dashboard-content { padding: clamp(6px,1.8cqi,11px) 5%; font-size: clamp(8px,1.87cqi,12px); line-height: 1.22; }
.dashboard-inquiry { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px; margin-bottom: clamp(5px,1.3cqi,8px); }
.dashboard-inquiry .mini-label { grid-column: 1 / -1; }
.dashboard-inquiry b { font-size: clamp(12px,3.05cqi,20px); letter-spacing: -.035em; }
.dashboard-inquiry > span:last-child { color: #4e607d; }
.dashboard-activity { display: grid; gap: clamp(2px,.5cqi,4px); }
.dashboard-activity > div {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
  padding: clamp(2px,.55cqi,4px) 4%;
  border-radius: 4px;
  background: #e9f1ff;
  transform: translateX(-9px);
  transition: opacity .28s ease, transform .42s var(--film-ease);
}
.dashboard-activity > div[data-shown='true'] { transform: none; }
.dashboard-activity > div:nth-child(2) { transition-delay: 60ms; }
.dashboard-activity > div:nth-child(3) { transition-delay: 120ms; }
.dashboard-activity > div:nth-child(4) { transition-delay: 180ms; }
.dashboard-activity > div:nth-child(5) { transition-delay: 240ms; }
.dashboard-activity span:first-child { display: flex; align-items: center; gap: 3px; }
.dashboard-activity span:last-of-type { color: #465b7d; }
.dashboard-activity > div > svg { color: #2c66aa; }
.dashboard-ready { display: flex; gap: 4px; align-items: center; margin-top: clamp(5px,1.2cqi,8px); color: #234987; font-weight: 650; transition: opacity .32s ease; }
.workflow-display { top: 9%; height: 80%; transform: translate3d(0,5%,-120px) rotateY(-23deg) rotateX(8deg) scale(.92); opacity: .83; }
[data-step='1'] .workflow-display { transform: translate3d(-3%,3%,-80px) rotateY(12deg) rotateX(4deg) scale(.95); }
[data-step='2'] .workflow-display { transform: translate3d(0,1%,-20px) rotateY(-8deg) rotateX(4deg); opacity: 1; }
[data-step='3'] .workflow-display, [data-step='4'] .workflow-display { transform: translate3d(0,0,0) rotateY(-5deg) rotateX(3deg); opacity: 1; }
.orbit {
  --delay: calc(var(--i) * 38ms);
  position: absolute;
  left: 50%;
  top: 45%;
  width: clamp(32px,11cqi,69px);
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: 2;
  transform: translate3d(var(--x),var(--y),var(--z)) rotateY(var(--r)) rotateZ(var(--r));
  transition: transform .72s var(--film-ease) var(--delay), opacity .33s ease var(--delay);
}
.orbit-0 { --i: 0; --x: -30cqi; --y: -16cqi; --z: 64px; --r: -14deg; }
.orbit-1 { --i: 1; --x: -23cqi; --y: 16cqi; --z: 100px; --r: 11deg; }
.orbit-2 { --i: 2; --x: 1cqi; --y: -19cqi; --z: 115px; --r: 9deg; }
.orbit-3 { --i: 3; --x: 25cqi; --y: -7cqi; --z: 82px; --r: -12deg; }
.orbit-4 { --i: 4; --x: 29cqi; --y: 14cqi; --z: 128px; --r: 9deg; }
.logo-tile {
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 24%;
  background: linear-gradient(145deg,#fff 40%,#eaf2ff);
  box-shadow: 4px 4px 0 #c6d5ea, 6px 7px 0 #e8f1fd, 4px 17px 23px #375b9638, inset 0 1px 1px #fff;
  font-size: clamp(21px,6.1cqi,41px);
  animation: tile-drift 3.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -.48s);
}
@keyframes tile-drift { from { transform: translateY(3px); } to { transform: translateY(-5px); } }
[data-step='1'] .orbit { transform: translate3d(calc(var(--x) - 5cqi),calc(var(--y) + 2cqi),115px) rotateY(25deg) rotateZ(-9deg); }
[data-step='2'] .orbit { transform: translate3d(calc(var(--x) * .55),calc(var(--y) * .52),45px) rotateY(-13deg) scale(.78); }
[data-step='3'] .orbit, [data-step='4'] .orbit { transform: translate3d(3cqi,5cqi,-90px) rotateY(18deg) scale(.14); opacity: 0; }

.booking-display { left: 6%; width: 63%; height: 69%; transform: translate(8%,1%) rotateY(-15deg) rotateX(5deg); }
[data-step='1'] .booking-display { transform: translate(5%,1%) rotateY(-8deg) rotateX(3deg); }
[data-step='2'] .booking-display, [data-step='3'] .booking-display, [data-step='4'] .booking-display {
  transform: translate(-3%,3%) rotateY(-13deg) rotateX(4deg) scale(.94);
}
.calendar-content { display: grid; gap: 3%; padding: 4% 5%; }
.calendar-content > b { font-size: clamp(12px,3.1cqi,22px); letter-spacing: -.035em; margin-bottom: 2%; }
.calendar-days, .calendar-times { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.calendar-days > span, .calendar-times > span {
  position: relative;
  padding: clamp(3px,1.2cqi,9px) 1px;
  border-radius: 4px;
  background: #eaf1ff;
  color: #365478;
  text-align: center;
  font-size: clamp(7px,1.85cqi,12px);
  white-space: nowrap;
}
.calendar-days b { display: block; font-size: 1.32em; color: #1e3967; }
.calendar-times { grid-template-columns: repeat(3,1fr); margin-top: 2%; }
[data-step='1'] .calendar-choice, [data-step='2'] .calendar-choice, [data-step='3'] .calendar-choice, [data-step='4'] .calendar-choice,
[data-step='1'] .calendar-time, [data-step='2'] .calendar-time, [data-step='3'] .calendar-time, [data-step='4'] .calendar-time { background: #204dba; color: #fff; transition: background .26s ease; }
.calendar-choice b { color: inherit; }
.booking-packet {
  display: grid; place-items: center;
  position: absolute;
  left: 43%; top: 50%;
  width: clamp(23px,7.8cqi,50px); aspect-ratio: 1;
  border-radius: 23%;
  background: #2458d4; color: #fff;
  font-size: clamp(14px,4.1cqi,24px);
  box-shadow: 3px 4px 0 #153d9b, 0 10px 18px #396cd770;
  opacity: 0;
  transform: translate3d(-14%,8%,0) scale(.45);
  transition: transform .57s var(--film-ease), opacity .22s ease;
  z-index: 3;
}
[data-step='2'] .booking-packet { opacity: 1; transform: translate3d(19cqi,-11cqi,90px) rotateZ(-12deg); }
[data-step='3'] .booking-packet, [data-step='4'] .booking-packet { transform: translate3d(31cqi,0,5px) scale(.35); }

.client-phone {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 64%;
  top: 16%;
  width: 27%;
  height: 67%;
  padding: 5.6% 3.15% 3%;
  border: clamp(3px,.9cqi,6px) solid #d4dfeb;
  border-radius: clamp(13px,3.1cqi,23px);
  background: linear-gradient(135deg,#fff 40%,#e8f1ff);
  color: #213958;
  box-shadow: 4px 4px 0 #a0b3cc, 6px 7px 0 #d9e4f4, 9px 19px 25px #365c903e, inset 0 0 17px #e3eeff;
  font-size: clamp(8px,2.15cqi,14px);
  transform-origin: 50% 55%;
  opacity: 0;
  transform: translate3d(28%,13%,-65px) rotateY(29deg) rotateZ(7deg) scale(.89);
  transition: transform .72s var(--film-ease), opacity .42s ease;
}
.phone-camera { position: absolute; top: 4%; left: 37%; width: 26%; height: 3%; border-radius: 8px; background: #344863; }
.phone-context { margin-bottom: 7%; font-weight: 700; letter-spacing: .09em; color: #536582; font-size: .66em; white-space: nowrap; }
.booking-notice, .paid-notice, .phone-payment { display: grid; gap: 4px; }
.booking-phone { left: 67%; width: 25%; }
.booking-notice > b, .paid-notice > b { font-size: 1.18em; line-height: 1.12; }
.phone-success {
  display: grid; place-items: center;
  width: clamp(20px,5cqi,30px); aspect-ratio: 1;
  border-radius: 50%; background: #d5e5ff; color: #1e4dbe;
  margin-bottom: 5%;
}
.client-phone hr { border: 0; height: 1px; background: #bccce1; margin: 4% 0; }
[data-step='2'] .booking-phone { opacity: .83; transform: translate3d(5%,7%,-17px) rotateY(18deg) rotateZ(7deg) scale(.93); }
[data-step='3'] .booking-phone, [data-step='4'] .booking-phone { opacity: 1; transform: translate3d(0,3%,42px) rotateY(14deg) rotateZ(6deg); }
.booking-notice { transform: translateY(6px); transition: opacity .35s ease, transform .45s var(--film-ease); }
.booking-notice[data-shown='true'] { transform: none; }

/* Invoice: create, swipe, camera rush, phone landing, then payment. */
.sender-shot { position: absolute; inset: 0; transition: opacity .36s ease, transform .65s var(--film-ease); }
.operator-placeholder {
  position: absolute;
  left: 11%; top: 24%;
  width: 41%; height: 48%;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(ellipse,#e7efff 0%,#fff 72%);
  color: #2452a7;
  font-size: clamp(48px,17cqi,112px);
}
.operator-placeholder > span { position: absolute; left: 56%; top: 67%; width: 52%; height: 29%; border-radius: 8%; background: var(--silver); transform: skewX(-14deg); box-shadow: 2px 3px 0 #a5b8d0; }
.operator-video {
  position: absolute;
  inset: 0 auto 0 0;
  width: 67%; height: 100%;
  object-fit: cover;
  object-position: 34% center;
  mask-image: linear-gradient(to right,#000 78%,transparent), linear-gradient(to bottom,transparent,#000 10%,#000 91%,transparent);
  mask-composite: intersect;
}
.operator-video:not([data-ready='true']) { opacity: 0; }
.sender-shot:has(.operator-video[data-ready='true']) .operator-placeholder { visibility: hidden; }
.invoice-draft {
  position: absolute;
  z-index: 2;
  top: 20%; left: 52%; width: 39%;
  display: grid; gap: 4px;
  padding: 4%;
  border: 1px solid #dce6f3;
  border-radius: clamp(8px,2.2cqi,15px);
  background: linear-gradient(140deg,#fff,#edf4ff);
  box-shadow: 4px 5px 0 #c9d7ea, 8px 16px 24px #6689ba42;
  font-size: clamp(8px,2.1cqi,14px);
  transform: rotateY(-12deg) rotateZ(3deg);
  transition: transform .45s var(--film-ease);
}
.invoice-draft > b { font-size: clamp(12px,3.45cqi,24px); letter-spacing: -.04em; }
.draft-client { color: #465c7b; }
.create-invoice, .pay-button {
  position: relative;
  display: block;
  margin-top: 5%;
  padding: 6% 5%;
  border-radius: 5px;
  background: #204dbb;
  color: #fff;
  text-align: center;
  font-weight: 650;
  white-space: nowrap;
}
.draft-details { display: none; color: #465c7b; }
.draft-details > b { display: block; color: #1e3860; font-size: clamp(17px,5cqi,32px); letter-spacing: -.04em; }
.send-invoice { display: flex; align-items: center; gap: 3px; color: #224eb2; font-weight: 650; }
[data-step='1'] .invoice-draft { transform: translate3d(-4%,-1%,30px) rotateY(-6deg) rotateZ(1deg); }
[data-step='1'] .draft-details, [data-step='2'] .draft-details { display: grid; gap: 3px; }
[data-step='1'] .create-invoice, [data-step='2'] .create-invoice { background: #dce9ff; color: #23498b; }
[data-step='2'] .invoice-draft { transform: translate3d(-6%,-15%,50px) rotateY(-13deg) rotateZ(-7deg); }
[data-step='3'] .sender-shot, [data-step='4'] .sender-shot, [data-step='5'] .sender-shot, [data-step='6'] .sender-shot { opacity: 0; transform: translate3d(-13%,2%,-100px) scale(.91); }
.tap { position: absolute; width: 15px; aspect-ratio: 1; right: -3%; bottom: 12%; border: 2px solid #6795ff; border-radius: 50%; opacity: 0; pointer-events: none; }
[data-step='1'] .create-tap, [data-step='1'] .calendar-tap, [data-step='5'] .payment-tap { animation: film-tap .6s ease-out both; }
@keyframes film-tap { 0% { opacity: 1; transform: scale(.65); } 65% { opacity: .65; } 100% { opacity: 0; transform: scale(2.25); } }
.invoice-flight {
  position: absolute;
  z-index: 4;
  left: 49%; top: 42%;
  display: grid; place-items: center;
  width: 16%; aspect-ratio: .82;
  opacity: 0;
  transform: translate3d(17cqi,6cqi,-40px) rotateY(-23deg) scale(.5);
  transition: transform .7s var(--film-ease), opacity .25s ease;
  pointer-events: none;
}
.invoice-flight > i { position: absolute; right: 58%; width: 160%; height: 2px; top: 40%; background: linear-gradient(90deg,transparent,#79a6ff); transform: rotate(-11deg); }
.invoice-flight > i:nth-child(2) { top: 66%; width: 120%; opacity: .45; }
.flight-paper {
  display: grid; align-content: center; justify-items: center; gap: 4%;
  width: 100%; height: 100%;
  border-radius: 10%; border: 1px solid #d8e7ff;
  background: linear-gradient(145deg,#fff,#dceaff);
  box-shadow: 4px 4px 0 #b4caed, 6px 12px 22px #4381ec5c;
  color: #234991;
  font-size: clamp(8px,2.1cqi,13px);
  position: relative;
}
.flight-paper svg { font-size: 1.6em; }
[data-step='2'] .invoice-flight { opacity: 1; transform: translate3d(12cqi,-12cqi,100px) rotateY(-24deg) rotateZ(-16deg) scale(.84); }
[data-step='3'] .invoice-flight { opacity: 1; transform: translate3d(-11cqi,-10cqi,300px) rotateY(-15deg) rotateZ(-7deg) scale(1.23); transition-timing-function: cubic-bezier(.2,.82,.2,1); }
[data-step='4'] .invoice-flight, [data-step='5'] .invoice-flight, [data-step='6'] .invoice-flight { transform: translate3d(-6cqi,-1cqi,16px) rotateY(8deg) scale(.22); }
.payment-phone { left: 35%; top: 11%; width: 30%; height: 75%; padding: 5.6% 3.4% 3%; transform: translate3d(30%,7%,-45px) rotateY(23deg) rotateZ(10deg) scale(.9); }
[data-step='4'] .payment-phone, [data-step='5'] .payment-phone { opacity: 1; transform: translate3d(0,0,45px) rotateY(9deg) rotateZ(5deg); }
[data-step='6'] .payment-phone { opacity: 1; transform: translate3d(0,0,65px) rotateY(5deg) rotateZ(3deg); }
.phone-payment > span:first-child, .phone-payment > span:nth-child(3) { color: #465c7b; }
.phone-amount { font-size: clamp(15px,4.4cqi,31px); letter-spacing: -.055em; }
.paid-notice { display: none; }
[data-step='6'] .phone-payment { display: none; }
[data-step='6'] .paid-notice { display: grid; }
[data-step='5'] .pay-button { background: #15377e; transform: scale(.96); }

.tool-demo[data-running='false'] .logo-tile { animation-play-state: paused; }
.tool-demo[data-motion='off'] *, .tool-demo[data-motion='off'] *::before, .tool-demo[data-motion='off'] *::after { animation: none !important; transition: none !important; }
@container (max-width: 330px) {
  .display { width: 84%; left: 8%; }
  .booking-display { width: 63%; left: 3%; }
  .client-phone { top: 19%; height: 58%; width: 30%; left: 63%; }
  .booking-phone { left: 65%; width: 29%; }
  .payment-phone { left: 32%; width: 36%; height: 70%; top: 13%; }
  .dashboard-content { padding-top: 6px; }
}
