/*
  The hero's live channel demo (partials/landing/hero_demo.html, landing-demo.js), after
  landing-hero.css: the segmented channel tabs and the play/pause button, the stage (the
  phone, lit from behind, with a floating result card on each side on wide screens) and
  the four screens inside the phone, each the real app: the call screen, WhatsApp, the mail
  app and the business's website with its chat widget.

  Only the phone frame (lp.phone, landing-hero.css) is shared; every other class is the
  demo's own (lp-demo-*, lp-dm-*), so the channels gallery and this demo never restyle each
  other. The apps keep their own colours inside the phone (WhatsApp's greens, the call's
  dark screen); outside it, teal is the one accent.
  End states are the plain rules (reduced motion, no JS): every message shown, transient
  parts (typing dots, the draft's placeholder) hidden. Motion lives in the
  prefers-reduced-motion: no-preference block at the end.
*/

/* ------------------------------------------------------------------ the apps' colours */
.lp-demo {
  --dm-ink: #1d1d1f;
  --dm-sub: #6e6e73;
  --dm-line: #e5e5ea;
  --dm-link: #12665c;
  --dm-chrome: #f2f2f7;
  --dm-chrome-pill: #e3e3e8;
  --dm-page: #ffffff;
  --dm-draft: #f1f8f6;
  --dm-draft-edge: rgb(18 102 92 / 0.16);
  --dm-thread: #f5f5f7;
  --dm-bot: #ffffff;
  --dm-bot-ink: #1d1d1f;
  --dm-bot-edge: rgb(0 0 0 / 0.06);
  --dm-wa-bg: #efeae2;
  --dm-wa-dots: rgb(17 27 33 / 0.045);
  --dm-wa-bar: #f6f5f3;
  --dm-wa-in: #ffffff;
  --dm-wa-out: #d9fdd3;
  --dm-wa-ink: #111b21;
  --dm-wa-meta: #54656f;
  --dm-wa-meta-out: #4f6359;
  --dm-wa-day: #ffffff;
  --dm-wa-field: #ffffff;
  --dm-wa-line: rgb(0 0 0 / 0.1);
  --dm-wa-tick: #53bdeb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-demo {
    --dm-ink: #f5f5f7;
    --dm-sub: #a1a1a6;
    --dm-line: #2c2c2e;
    --dm-link: #7fd3c4;
    --dm-chrome: #1c1c1e;
    --dm-chrome-pill: #2c2c2e;
    --dm-page: #121214;
    --dm-draft: #0f2a26;
    --dm-draft-edge: rgb(127 211 196 / 0.16);
    --dm-thread: #0d0d0f;
    --dm-bot: #2c2c2e;
    --dm-bot-ink: #f5f5f7;
    --dm-bot-edge: rgb(255 255 255 / 0.06);
    --dm-wa-bg: #0b141a;
    --dm-wa-dots: rgb(255 255 255 / 0.03);
    --dm-wa-bar: #1f2c33;
    --dm-wa-in: #202c33;
    --dm-wa-out: #005c4b;
    --dm-wa-ink: #e9edef;
    --dm-wa-meta: #8696a0;
    --dm-wa-meta-out: rgb(255 255 255 / 0.72);
    --dm-wa-day: #182229;
    --dm-wa-field: #2a3942;
    --dm-wa-line: rgb(255 255 255 / 0.08);
  }
}
:root[data-theme="dark"] .lp-demo {
  --dm-ink: #f5f5f7;
  --dm-sub: #a1a1a6;
  --dm-line: #2c2c2e;
  --dm-link: #7fd3c4;
  --dm-chrome: #1c1c1e;
  --dm-chrome-pill: #2c2c2e;
  --dm-page: #121214;
  --dm-draft: #0f2a26;
  --dm-draft-edge: rgb(127 211 196 / 0.16);
  --dm-thread: #0d0d0f;
  --dm-bot: #2c2c2e;
  --dm-bot-ink: #f5f5f7;
  --dm-bot-edge: rgb(255 255 255 / 0.06);
  --dm-wa-bg: #0b141a;
  --dm-wa-dots: rgb(255 255 255 / 0.03);
  --dm-wa-bar: #1f2c33;
  --dm-wa-in: #202c33;
  --dm-wa-out: #005c4b;
  --dm-wa-ink: #e9edef;
  --dm-wa-meta: #8696a0;
  --dm-wa-meta-out: rgb(255 255 255 / 0.72);
  --dm-wa-day: #182229;
  --dm-wa-field: #2a3942;
  --dm-wa-line: rgb(255 255 255 / 0.08);
}

/* ------------------------------------------------------------------ the demo */
.lp-demo {
  display: grid;
  justify-items: center;
  gap: 28px;
  margin-block-start: clamp(40px, 1.5vw + 4vh, 80px);
}
/* the glyphs' symbols, drawn by <use> only */
.lp-dm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* the hero's copy and form are static: there at the first paint. The product shot rises
   in, CSS only, so nothing waits for the scripts. */
@media (prefers-reduced-motion: no-preference) {
  .lp-demo { animation: lp-rise 0.9s var(--lp-ease) 0.15s backwards; }
}
@keyframes lp-rise {
  from { opacity: 0; translate: 0 28px; }
}
.lp-demo-bar { display: flex; align-items: center; gap: 8px; }
/* Apple's segmented control; the white pill slides to the chosen channel and fills with
   the time left before the next one */
.lp-seg {
  position: relative;
  display: flex;
  padding: 4px;
  border-radius: var(--lp-r-pill);
  background: var(--lp-platter);
}
.lp-seg-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--lp-r-pill);
  background: transparent;
  color: var(--lp-seg-ink);
  font: 500 14px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s linear;
}
.lp-seg-btn:hover, .lp-seg-btn[aria-selected="true"] { color: var(--text); }
/* the target reaches the platter's edges: 44px tall */
.lp-seg-btn::after { content: ""; position: absolute; inset: -4px 0; }
.lp-seg-btn .icon { width: 17px; height: 17px; }
.lp-seg-pill {
  position: absolute;
  top: 4px;
  left: 0;
  width: var(--pill-w, 0);
  height: 36px;
  overflow: hidden;
  border-radius: var(--lp-r-pill);
  background: var(--lp-thumb);
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.12),
    0 0 0 0.5px rgb(0 0 0 / 0.04);
  transform: translateX(var(--pill-x, 0));
}
.lp-seg-pill i {
  position: absolute;
  inset-inline: 16px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: right;
}
/* without the script the chosen button draws its own pill */
.lp-seg:not(.is-ready) .lp-seg-pill { display: none; }
.lp-seg:not(.is-ready) .lp-seg-btn[aria-selected="true"] {
  background: var(--lp-thumb);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
.lp-demo-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--lp-platter);
  color: var(--text);
  cursor: pointer;
}
.lp-demo-play .icon { width: 18px; height: 18px; }
.lp-demo-play .lp-i-play, .lp-demo-play.is-paused .lp-i-pause { display: none; }
.lp-demo-play.is-paused .lp-i-play { display: block; }
/* forced colours drop the sliding pill: the chosen tab keeps a system outline */
@media (forced-colors: active) {
  .lp-seg-pill { display: none; }
  .lp-seg-btn[aria-selected="true"], .lp-dm-listen[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

/* the stage: the phone, lit from behind, with a result card on each side (wide screens) */
.lp-demo-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: var(--lp-w-wide);
}
.lp-demo-stage::before {
  content: "";
  position: absolute;
  inset: 4% 18% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--lp-glow), transparent);
  pointer-events: none;
}
.lp-demo-phone { grid-area: 1 / 2; --pw: 320px; }
.lp-demo-cards, .lp-demo-set { display: contents; }
.lp-float {
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 270px;
  height: fit-content;
  padding: 14px 22px 14px 16px;
  border-radius: var(--lp-r-panel);
  background: var(--surface);
  box-shadow: var(--lp-shadow-sm);
  text-align: start;
}
.lp-float-1 {
  grid-column: 1;
  align-self: start;
  justify-self: end;
  margin-block-start: 180px;
  margin-inline-end: 40px;
}
.lp-float-2 {
  grid-column: 3;
  align-self: end;
  justify-self: start;
  margin-block-end: 200px;
  margin-inline-start: 40px;
}
.lp-demo-set:not(.is-on) .lp-float { visibility: hidden; opacity: 0; }
.lp-float-icon {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.lp-float-icon .icon { width: 21px; height: 21px; }
/* the booking's done mark: the page's rare peach */
.lp-float-done {
  position: absolute;
  inset-block-end: -5px;
  inset-inline-end: -5px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--peach);
  color: #20342f;
  box-shadow: 0 0 0 2px var(--surface);
}
.lp-float-done .icon { width: 12px; height: 12px; }
.lp-float-text { display: grid; line-height: 1.3; }
.lp-float-text b { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.lp-float-text span { color: var(--text-2); font-size: 14px; }
@media (max-width: 1067px) {
  .lp-demo-cards { display: none; }
}

/* ------------------------------------------------------------------ the phone's screens */
/* one screen per channel, stacked in the same cell, one shown */
.lp-demo-phone .lp-phone-screen { display: grid; text-align: start; }
.lp-convo {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}
.lp-convo.is-on { visibility: visible; opacity: 1; }
.lp-dm-call, .lp-dm-wa, .lp-dm-mail, .lp-dm-site {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

/* the status bar (in Hebrew the clock sits on the right) */
.lp-dm-sbar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 6px 28px 0 24px;
  font: 600 14px/1 var(--font);
}
.lp-dm-sbar-icons { display: flex; align-items: center; gap: 6px; }
.lp-dm-signal { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.lp-dm-signal i { width: 3px; border-radius: 1px; background: currentColor; }
.lp-dm-signal i:nth-child(1) { height: 4px; }
.lp-dm-signal i:nth-child(2) { height: 6px; }
.lp-dm-signal i:nth-child(3) { height: 8px; }
.lp-dm-signal i:nth-child(4) { height: 10px; }
.lp-dm-batt {
  position: relative;
  width: 23px;
  height: 11px;
  border-radius: 3.5px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
}
.lp-dm-batt::after {
  content: "";
  position: absolute;
  inset: 2px 6px 2px 2px;
  border-radius: 1.5px;
  background: currentColor;
}

/* a thread anchored to the bottom of its screen: the newest message sits low, older ones
   rise and fade out under the bar above */
.lp-dm-scroll {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20px);
  mask-image: linear-gradient(to bottom, transparent, #000 20px);
}
.lp-dm-list {
  display: flex;
  flex: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-dm-result {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 6px;
  margin-block-start: 8px;
  padding: 6px 13px;
  border-radius: var(--lp-r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}
.lp-dm-result .icon { width: 15px; height: 15px; }

/* ---------------- the call: the business on the line, the live transcript, the keys */
.lp-dm-call {
  background:
    radial-gradient(120% 60% at 50% -8%, #2c675d 0%, #153f38 40%, transparent 78%),
    linear-gradient(180deg, #0c201c 0%, #070d0c 100%);
  color: #ffffff;
}
.lp-dm-call-head {
  display: grid;
  flex: none;
  justify-items: center;
  padding: 8px 20px 0;
  text-align: center;
}
.lp-dm-call-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.25; }
.lp-dm-call-time { color: rgb(255 255 255 / 0.72); font-size: 15px; line-height: 1.4; }
.lp-dm-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 32px;
  margin-block-start: 6px;
  color: #ffffff;
}
.lp-dm-wave .face { width: 30px; height: 30px; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.1); }
.lp-dm-bars { display: flex; align-items: center; gap: 3px; height: 28px; }
.lp-dm-bars i {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.4;
  transform: scaleY(0.12);
}
/* who speaks: the bot in the brand's mint, the customer in white */
.lp-dm-wave[data-who="bot"] { color: #8fe0d1; }
.lp-dm-wave.is-speaking i { opacity: 1; transform: scaleY(calc(var(--h) / 10)); }
.lp-dm-captions {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 6px 0 0;
  padding: 0 14px;
}
.lp-dm-captions-title {
  flex: none;
  margin-block-end: 2px;
  color: rgb(255 255 255 / 0.62);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.lp-dm-call .lp-dm-scroll {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px);
  mask-image: linear-gradient(to bottom, transparent, #000 14px);
}
.lp-dm-call .lp-dm-list { gap: 6px; padding-block: 16px 2px; }
.lp-dm-turn {
  width: fit-content;
  max-width: 88%;
  padding: 6px 11px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.36;
  text-wrap: pretty;
}
/* the bot answers on the right (the start), the customer's own words on the left */
.lp-dm-turn.is-bot {
  border-end-start-radius: 5px;
  background: rgb(143 224 209 / 0.17);
  color: #effaf7;
  box-shadow: inset 0 0 0 0.5px rgb(143 224 209 / 0.22);
}
.lp-dm-turn.is-caller {
  margin-inline-start: auto;
  border-end-end-radius: 5px;
  background: rgb(255 255 255 / 0.9);
  color: #0d1f1b;
}
.lp-dm-dots { display: none; gap: 4px; padding-block: 5px; }
.lp-dm-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.lp-dm-turn.is-typing .lp-dm-dots { display: inline-flex; }
.lp-dm-turn.is-typing .lp-dm-turn-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* the play control: the call's one action, its glass filling as the recording plays */
.lp-dm-listen {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: none;
  align-items: center;
  align-self: center;
  gap: 10px;
  height: 44px;
  margin-block: 8px 0;
  padding-block: 0;
  padding-inline: 6px 18px;
  overflow: hidden;
  border: 0;
  border-radius: var(--lp-r-pill);
  background: rgb(255 255 255 / 0.14);
  color: #ffffff;
  font: 600 15px/1 var(--font);
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.24);
  cursor: pointer;
}
.lp-dm-listen[hidden] { display: none; }
.lp-dm-listen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(143 224 209 / 0.26);
  transform: scaleX(var(--dm-p, 0));
  transform-origin: right;
}
.lp-dm-listen:hover { background: rgb(255 255 255 / 0.2); }
.lp-dm-listen:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #0c201c, 0 0 0 4px #8fe0d1;
}
.lp-dm-listen-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8fe0d1;
  color: #062b25;
}
.lp-dm-listen-icon .icon { width: 15px; height: 15px; }
.lp-dm-listen .lp-dm-i-pause, .lp-dm-listen[aria-pressed="true"] .lp-dm-i-play { display: none; }
.lp-dm-listen[aria-pressed="true"] .lp-dm-i-pause { display: block; }
.lp-dm-listen-len { color: rgb(255 255 255 / 0.72); font-size: 13px; font-weight: 500; }
.lp-dm-native { display: block; width: calc(100% - 28px); height: 40px; margin: 10px auto 0; color-scheme: dark; }
.lp-dm-keys {
  display: grid;
  flex: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px 12px 18px;
}
.lp-dm-key {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: rgb(255 255 255 / 0.86);
  font-size: 11px;
  line-height: 1.2;
}
.lp-dm-key b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  color: #ffffff;
}
.lp-dm-key .icon { width: 23px; height: 23px; }
/* hang up: the phone glyph turned down, on graphite (red stays out of the page) */
.lp-dm-key-end b { background: #48484a; box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.2); }
.lp-dm-key-end .icon { rotate: 135deg; }

/* ---------------- WhatsApp: yesterday's photo and answer, today's booking */
.lp-dm-wa { background: var(--dm-wa-bg); color: var(--dm-wa-ink); }
/* the wallpaper's doodles, reduced to a quiet dot pattern */
.lp-dm-wa > .lp-dm-scroll {
  padding-inline: 10px;
  background-image: radial-gradient(var(--dm-wa-dots) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
}
.lp-dm-wa-top {
  flex: none;
  background: var(--dm-wa-bar);
  box-shadow: 0 0.5px 0 var(--dm-wa-line);
}
.lp-dm-wa-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding-inline: 8px 14px;
}
.lp-dm-back { display: inline-flex; align-items: center; color: var(--dm-link); }
.lp-dm-back .icon { width: 22px; height: 22px; }
.lp-dm-wa .lp-dm-back { color: var(--dm-wa-ink); }
.lp-dm-wa-head .face { width: 34px; height: 34px; }
.lp-dm-wa-head p { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.lp-dm-wa-head b { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lp-dm-wa-head p span { color: var(--dm-wa-meta); font-size: 11.5px; }
.lp-dm-wa-actions { display: flex; gap: 18px; color: var(--dm-wa-ink); }
.lp-dm-wa-actions .icon { width: 21px; height: 21px; }
.lp-dm-wa .lp-dm-list { gap: 3px; padding-block: 8px 6px; }
.lp-dm-day {
  align-self: center;
  margin-block: 6px 4px;
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--dm-wa-day);
  color: var(--dm-wa-meta);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 1px 0.5px rgb(11 20 26 / 0.13);
}
.lp-dm-wa-msg {
  display: flow-root;
  width: fit-content;
  max-width: 82%;
  padding: 5px 8px 6px;
  border-radius: 9px;
  border-start-start-radius: 2px;
  background: var(--dm-wa-in);
  box-shadow: 0 1px 0.5px rgb(11 20 26 / 0.13);
  font-size: 13.5px;
  line-height: 1.36;
}
/* the customer's own messages: on the left in Hebrew, green */
.lp-dm-wa-msg.is-customer {
  margin-inline-start: auto;
  border-start-start-radius: 9px;
  border-start-end-radius: 2px;
  background: var(--dm-wa-out);
}
.lp-dm-wa-msg.is-customer + .is-bot,
.lp-dm-wa-msg.is-bot + .is-customer,
.lp-dm-typing + .is-bot { margin-block-start: 5px; }
.lp-dm-wa-meta {
  float: inline-end;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-block: 7px -4px;
  margin-inline-start: 10px;
  color: var(--dm-wa-meta);
  font-size: 10.5px;
  line-height: 1;
}
.is-customer .lp-dm-wa-meta { color: var(--dm-wa-meta-out); }
.lp-dm-ticks { width: 15px; height: 15px; color: var(--dm-wa-tick); }
/* the photo of the leak: a placeholder drawn in the tones of the cabinet under a sink,
   its drain trap and a drip under the bend (a picture: not mirrored text, but drawn with
   logical offsets like the rest of the page) */
.lp-dm-wa-msg.has-photo { padding: 3px 3px 6px; }
.has-photo .lp-dm-wa-text { display: block; padding: 5px 6px 0; }
.has-photo .lp-dm-wa-meta { margin-inline-end: 5px; }
.lp-dm-photo {
  --pipe: #e4e6e8;
  position: relative;
  display: block;
  width: 214px;
  max-width: 100%;
  height: 96px;
  overflow: hidden;
  border-radius: 7px;
  background:
    /* the basin's underside */
    linear-gradient(180deg, #8d867f, #6a645e) 50% 0 / 76% 13px no-repeat,
    /* the tailpiece from the drain down into the bend */
    linear-gradient(90deg, #b9bdc1, var(--pipe) 45%, #c4c8cc) 50% 12px / 9px 36px no-repeat,
    /* the puddle on the cabinet floor */
    radial-gradient(34% 16% at 50% 97%, rgb(158 214 240 / 0.55), transparent 75%),
    radial-gradient(80% 70% at 75% 0%, #5f5852, transparent 70%),
    linear-gradient(180deg, #4b4540, #2a2623 72%, #36312c);
  box-shadow: inset 0 0 18px rgb(0 0 0 / 0.35);
}
/* the U bend (its first leg under the tailpiece), then the arm into the wall */
.lp-dm-photo::before, .lp-dm-photo::after {
  content: "";
  position: absolute;
  box-shadow: 0 5px 10px rgb(0 0 0 / 0.35);
}
.lp-dm-photo::before {
  top: 44px;
  inset-inline-start: calc(50% - 4.5px);
  width: 36px;
  height: 30px;
  border: 9px solid var(--pipe);
  border-block-start: 0;
  border-radius: 0 0 18px 18px;
}
.lp-dm-photo::after {
  top: 38px;
  inset-inline: calc(50% + 22.5px) 0;
  height: 9px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--pipe), #b4b8bc);
}
.lp-dm-photo .icon {
  position: absolute;
  top: 74px;
  inset-inline-start: calc(50% + 4px);
  width: 13px;
  height: 13px;
  color: #b3e2f7;
}
/* typing: a bubble of three dots where the next answer will be */
.lp-dm-typing {
  display: none;
  gap: 4px;
  width: fit-content;
  padding: 11px 13px;
  border-radius: 9px;
  border-start-start-radius: 2px;
  background: var(--dm-wa-in);
  box-shadow: 0 1px 0.5px rgb(11 20 26 / 0.13);
  color: var(--dm-wa-meta);
}
.lp-dm-typing.is-now { display: flex; }
.lp-dm-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.lp-dm-wa-compose {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 7px 14px 22px 12px;
  background: var(--dm-wa-bar);
  box-shadow: 0 -0.5px 0 var(--dm-wa-line);
  color: var(--dm-wa-ink);
}
.lp-dm-wa-compose > .icon { width: 22px; height: 22px; }
.lp-dm-wa-input {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  height: 32px;
  padding-inline: 10px;
  border-radius: var(--lp-r-pill);
  background: var(--dm-wa-field);
  box-shadow: inset 0 0 0 0.5px var(--dm-wa-line);
}
.lp-dm-wa-input .icon { width: 19px; height: 19px; opacity: 0.7; }

/* ---------------- email: the owner's mail app, the customer's mail and BaliBot's draft */
.lp-dm-mail { background: var(--dm-page); color: var(--dm-ink); }
.lp-dm-mail-nav {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding-inline: 8px 16px;
  color: var(--dm-link);
  font-size: 16px;
}
.lp-dm-mail-nav .lp-dm-back { gap: 2px; }
.lp-dm-mail-arrows { display: flex; gap: 18px; }
.lp-dm-mail-arrows .icon { width: 21px; height: 21px; }
.lp-dm-mail-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 2px 16px 12px;
}
.lp-dm-mail-subject { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.25; }
.lp-dm-mail-from { display: flex; align-items: center; gap: 10px; }
.lp-dm-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #a5a5ab, #8a8a90);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}
.lp-dm-mail-from p { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.lp-dm-mail-from b { font-size: 14.5px; font-weight: 600; }
.lp-dm-mail-from p span, .lp-dm-mail-time { color: var(--dm-sub); font-size: 12.5px; }
.lp-dm-mail-time { align-self: flex-start; padding-block-start: 2px; }
.lp-dm-mail-text {
  display: grid;
  gap: 6px;
  padding-block-end: 14px;
  border-block-end: 1px solid var(--dm-line);
  font-size: 14px;
  line-height: 1.5;
}
.lp-dm-draft {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
  border-radius: var(--lp-r-panel);
  background: var(--dm-draft);
  box-shadow: inset 0 0 0 1px var(--dm-draft-edge);
}
.lp-dm-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 9px;
  border-radius: var(--lp-r-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.lp-dm-badge .icon { width: 13px; height: 13px; }
.lp-dm-draft-text { display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.lp-dm-draft-to { color: var(--dm-sub); font-size: 12.5px; }
.lp-dm-sign { display: grid; margin-block-start: 2px; color: var(--dm-sub); font-size: 12.5px; line-height: 1.4; }
.lp-dm-sign b { color: var(--dm-ink); font-size: 13.5px; font-weight: 600; }
.lp-dm-sign bdi { justify-self: start; }
.lp-dm-draft-actions { display: flex; justify-content: flex-end; gap: 8px; margin-block-start: 4px; }
.lp-dm-edit, .lp-dm-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding-inline: 14px;
  border-radius: var(--lp-r-pill);
  font-size: 13px;
  font-weight: 600;
}
.lp-dm-edit { color: var(--dm-link); box-shadow: inset 0 0 0 1px var(--dm-draft-edge); background: var(--dm-page); }
.lp-dm-send { background: var(--accent); color: #ffffff; }
.lp-dm-edit .icon, .lp-dm-send .icon { width: 15px; height: 15px; }
.lp-dm-send .icon { scale: -1 1; }
/* while the draft is written: a quiet placeholder */
.lp-dm-skeleton { display: none; gap: 8px; padding-block: 2px 4px; }
.lp-dm-skeleton.is-now { display: grid; }
.lp-dm-skeleton span { color: var(--dm-link); font-size: 12.5px; font-weight: 600; }
.lp-dm-skeleton i {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--dm-draft-edge), color-mix(in srgb, var(--dm-draft-edge) 40%, transparent), var(--dm-draft-edge));
  background-size: 200% 100%;
}
.lp-dm-skeleton i:nth-of-type(2) { width: 86%; }
.lp-dm-skeleton i:nth-of-type(3) { width: 58%; }
.lp-dm-mail-tools {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px 26px;
  box-shadow: 0 -0.5px 0 var(--dm-line);
  color: var(--dm-link);
}
.lp-dm-mail-tools .icon { width: 22px; height: 22px; }
.lp-dm-mail-tools .icon:nth-child(3) { scale: -1 1; }

/* ---------------- site chat: the business's site in the browser, the widget over it */
.lp-dm-site { background: var(--dm-page); color: var(--dm-ink); }
.lp-dm-chrome { flex: none; background: var(--dm-chrome); }
.lp-dm-url { display: flex; align-items: center; gap: 10px; padding: 0 12px 9px 14px; color: var(--dm-ink); }
.lp-dm-url > .icon { width: 18px; height: 18px; }
.lp-dm-url-pill {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  border-radius: 12px;
  background: var(--dm-chrome-pill);
  font-size: 14px;
}
.lp-dm-url-pill .icon { width: 12px; height: 12px; color: var(--dm-sub); }
.lp-dm-page { flex: 1; min-height: 0; }
.lp-dm-page-head {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding-inline: 16px;
  border-block-end: 1px solid var(--dm-line);
}
.lp-dm-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--dm-ink);
  color: var(--dm-page);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.lp-dm-page-head b { flex: 1; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.lp-dm-page-head .icon { width: 21px; height: 21px; }
.lp-dm-page-head .icon + .icon { margin-inline-start: 6px; }
.lp-dm-page-hero {
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 14px 16px;
  color: var(--dm-sub);
  font-size: 13.5px;
}
.lp-dm-page-title {
  color: var(--dm-ink);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
.lp-dm-widget {
  position: absolute;
  inset: 256px 8px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--dm-thread);
  box-shadow:
    0 -6px 40px -8px rgb(0 0 0 / 0.3),
    0 0 0 0.5px var(--dm-line);
}
.lp-dm-widget-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--accent);
  color: #ffffff;
}
.lp-dm-widget-head p { display: grid; flex: 1; line-height: 1.25; }
.lp-dm-widget-head b { font-size: 15px; font-weight: 600; }
.lp-dm-widget-head p span { font-size: 12px; opacity: 0.9; }
.lp-dm-widget-close { display: grid; place-items: center; }
.lp-dm-widget-close .icon { width: 18px; height: 18px; }
.lp-dm-widget .lp-dm-scroll { padding-inline: 10px; }
.lp-dm-widget .lp-dm-list { gap: 6px; padding-block: 10px 8px; }
.lp-dm-bubble {
  width: fit-content;
  max-width: 84%;
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
  text-wrap: pretty;
}
.lp-dm-bubble.is-bot {
  border-end-start-radius: 5px;
  background: var(--dm-bot);
  color: var(--dm-bot-ink);
  box-shadow: inset 0 0 0 1px var(--dm-bot-edge);
}
.lp-dm-bubble.is-customer {
  margin-inline-start: auto;
  border-end-end-radius: 5px;
  background: var(--accent);
  color: #ffffff;
}
.lp-dm-widget .lp-dm-typing {
  border-radius: 18px;
  border-end-start-radius: 5px;
  background: var(--dm-bot);
  box-shadow: inset 0 0 0 1px var(--dm-bot-edge);
  color: var(--dm-sub);
}
.lp-dm-widget-input {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  border-block-start: 1px solid var(--dm-line);
  background: var(--dm-page);
}
.lp-dm-widget-input span {
  display: flex;
  flex: 1;
  align-items: center;
  height: 36px;
  padding-inline: 14px;
  border: 1px solid var(--dm-line);
  border-radius: var(--lp-r-pill);
  color: var(--dm-sub);
  font-size: 13.5px;
}
.lp-dm-widget-input b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
}
.lp-dm-widget-input .icon { width: 16px; height: 16px; scale: -1 1; }

/* not yet arrived: out of the layout, still read by screen readers */
.lp-convo [data-dm-at].is-later,
.lp-convo [data-start].is-later {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 734px) {
  .lp-demo { gap: 22px; }
  .lp-seg-btn { padding: 0 12px; font-size: 13px; }
  .lp-seg-btn .icon { display: none; }
  .lp-demo-play { width: 40px; height: 40px; }
  .lp-demo-phone { zoom: 0.9; }
}
@media (max-width: 374px) {
  .lp-demo-phone { zoom: 0.8; }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .lp-seg-pill {
    transition:
      transform 0.45s var(--lp-ease-io),
      width 0.45s var(--lp-ease-io);
  }
  .lp-seg-pill i.is-running { animation: lp-progress var(--lp-step, 8000ms) linear forwards; }
  .lp-convo {
    transition:
      opacity 0.35s var(--lp-ease-io),
      visibility 0s linear 0.35s;
  }
  .lp-convo.is-on { transition: opacity 0.5s var(--lp-ease-io); }
  /* a message arrives */
  .lp-convo .is-new { animation: lp-dm-in 0.42s var(--lp-ease) both; }
  .lp-dm-result.is-new { animation: lp-dm-pop 0.55s var(--lp-spring) both; }
  .lp-dm-typing.is-now, .lp-dm-skeleton.is-now { animation: lp-dm-in 0.3s var(--lp-ease) both; }
  .lp-dm-typing.is-now i, .lp-dm-turn.is-typing .lp-dm-dots i { animation: lp-dm-dot 0.9s infinite; }
  .lp-dm-typing.is-now i:nth-child(2), .lp-dm-turn.is-typing .lp-dm-dots i:nth-child(2) { animation-delay: 0.15s; }
  .lp-dm-typing.is-now i:nth-child(3), .lp-dm-turn.is-typing .lp-dm-dots i:nth-child(3) { animation-delay: 0.3s; }
  .lp-dm-skeleton.is-now i { animation: lp-dm-shimmer 1.2s linear infinite; }
  /* the waveform moves only while a voice is heard */
  .lp-dm-bars i { transition: transform 0.25s var(--lp-ease), opacity 0.25s linear; }
  .lp-dm-call.is-playing .lp-dm-wave.is-speaking i {
    animation: lp-dm-level var(--d, 0.5s) ease-in-out infinite alternate;
  }
  .lp-dm-listen::before { transition: transform 0.2s linear; }
  .lp-dm-listen:active { scale: 0.97; }
  .lp-float {
    transition:
      opacity 0.5s var(--lp-ease),
      translate 0.6s var(--lp-ease),
      visibility 0s;
  }
  .lp-demo-set:not(.is-on) .lp-float {
    translate: 0 14px;
    transition:
      opacity 0.25s linear,
      translate 0s linear 0.25s,
      visibility 0s linear 0.25s;
  }
  html.js .lp-demo-set.is-on .lp-float-1 { transition-delay: 1.2s; }
  html.js .lp-demo-set.is-on .lp-float-2 { transition-delay: 1.5s; }
}
@keyframes lp-progress {
  to { transform: scaleX(1); }
}
@keyframes lp-dm-in {
  from { opacity: 0; translate: 0 8px; scale: 0.97; }
}
@keyframes lp-dm-pop {
  from { opacity: 0; scale: 0.8; }
}
@keyframes lp-dm-dot {
  0%, 60%, 100% { translate: 0 0; opacity: 0.45; }
  30% { translate: 0 -3px; opacity: 0.9; }
}
@keyframes lp-dm-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@keyframes lp-dm-level {
  from { transform: scaleY(0.18); }
  to { transform: scaleY(calc(var(--h) / 10)); }
}
