/* CRM product walkthrough: shared presentation, with each site's brand palette. */
.crm-demo {
  --crm-text: #f8f8f3;
  --crm-subtle: #a9b8d0;
  --crm-accent: #8fb3ff;
  --crm-surface: #0c1529;
  --crm-edge: rgba(143, 179, 255, .22);
  --crm-button-ink: #071225;
  color: var(--crm-text);
  padding: clamp(32px, 4vw, 56px) 24px clamp(48px, 6vw, 88px);
  background: transparent;
  scroll-margin-top: 100px;
}
.crm-demo[data-brand="beauty"] {
  --crm-text: #18130f; --crm-subtle: #6a625a; --crm-accent: #8a5614;
  --crm-surface: #fffdf8; --crm-edge: #ded2c0; --crm-button-ink: #fffaf2;
  background: var(--paper, #fbf8f1);
}
.crm-demo[data-brand="med"] {
  --crm-text: #1b2a34; --crm-subtle: #54626e; --crm-accent: #0b776a;
  --crm-surface: #fff; --crm-edge: #d8e3e5; --crm-button-ink: #fff;
  background: var(--paper, #f4f6f8);
}
.crm-demo[data-brand="hospitality"] {
  --crm-text: #f7f1e6; --crm-subtle: #c9b797; --crm-accent: #e8c27a;
  --crm-surface: #100a05; --crm-edge: rgba(232, 194, 122, .24); --crm-button-ink: #201105;
  background: var(--bg, #030201);
}
.crm-demo[data-brand="gym"] {
  --crm-text: #f5f7ef; --crm-subtle: #bac2bd; --crm-accent: #c8ff3d;
  --crm-surface: #151918; --crm-edge: rgba(200, 255, 61, .22); --crm-button-ink: #0a0c0c;
  background: #0a0c0c;
}
.crm-demo[data-brand="hotel"] {
  --crm-surface: #0b192e; --crm-edge: rgba(143, 179, 255, .24);
}
.crm-demo, .crm-demo * { box-sizing: border-box; }
.crm-demo [hidden] { display: none !important; }
.crm-demo .crm-demo-inner { width: 100%; max-width: 1080px; margin: 0 auto; }
.crm-demo .crm-demo-copy {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 56px; margin: 0 0 28px;
}
.crm-demo .crm-demo-copy h2 {
  max-width: 15ch; margin: 0; color: var(--crm-text);
  font-family: var(--font-display, var(--hx26-display, Georgia, serif));
  font-size: clamp(32px, 3.7vw, 50px); line-height: 1.08; font-weight: 450;
  letter-spacing: -.035em; text-wrap: balance;
}
.crm-demo .crm-demo-copy p {
  max-width: 39ch; margin: 0 0 3px; color: var(--crm-subtle);
  font-size: 16px; line-height: 1.65;
}
.crm-demo .crm-demo-player {
  margin: 0; padding: 8px; min-width: 0; border: 1px solid var(--crm-edge);
  border-radius: 24px; background: var(--crm-surface);
  box-shadow: 0 20px 48px -28px rgba(0, 0, 0, .42);
}
.crm-demo .crm-demo-screen {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 17px; background: #060d13;
}
.crm-demo .crm-demo-screen video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 0; border-radius: 0; object-fit: contain; background: #060d13;
}
.crm-demo .crm-demo-launch {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(3, 9, 18, .04) 8%, rgba(3, 9, 18, .3) 55%, rgba(3, 9, 18, .7));
}
.crm-demo .crm-demo-play {
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  padding: 22px 30px; border: 0; border-radius: 18px;
  color: #fff; background: transparent; font: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.crm-demo .crm-demo-play-disc {
  display: grid; place-items: center; width: 88px; height: 88px;
  border-radius: 50%; color: var(--crm-button-ink); background: var(--crm-accent);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .1), 0 12px 36px rgba(0, 0, 0, .35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.crm-demo .crm-demo-play-disc svg { width: 29px; height: 29px; margin-left: 4px; fill: currentColor; }
.crm-demo .crm-demo-play-label { font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-shadow: 0 2px 12px #000; }
.crm-demo .crm-demo-play:hover .crm-demo-play-disc {
  transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 255, 255, .12), 0 12px 36px rgba(0, 0, 0, .35);
}
.crm-demo .crm-demo-play:disabled { cursor: progress; opacity: .75; }
.crm-demo .crm-demo-duration {
  position: absolute; bottom: 18px; right: 18px; display: flex; align-items: center; gap: 7px;
  padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 7px;
  color: #fff; background: rgba(4, 13, 23, .76); font-size: 12px; font-variant-numeric: tabular-nums;
}
.crm-demo .crm-demo-duration svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.crm-demo .crm-demo-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 2px 2px; }
.crm-demo .crm-demo-chapter {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px; min-height: 62px; padding: 12px 16px;
  text-align: left; border: 1px solid transparent; border-radius: 12px;
  color: var(--crm-text); background: transparent; font: inherit; cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.crm-demo .crm-demo-chapter + .crm-demo-chapter { border-left-color: var(--crm-edge); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.crm-demo .crm-demo-chapter:hover, .crm-demo .crm-demo-chapter[aria-current="true"] {
  border-color: var(--crm-edge); border-radius: 12px;
  background: color-mix(in srgb, var(--crm-accent) 9%, transparent);
}
.crm-demo .crm-demo-chapter time { color: var(--crm-accent); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.crm-demo .crm-demo-chapter span { font-size: 14px; font-weight: 500; line-height: 1.35; }
.crm-demo .crm-demo-chapter svg { width: 14px; height: 14px; fill: currentColor; color: var(--crm-subtle); }
.crm-demo .crm-demo-error { margin: 16px 4px 4px; color: var(--crm-text); font-size: 14px; }
.crm-demo .crm-demo-error a { color: var(--crm-accent); text-decoration: underline; text-underline-offset: 3px; }
.crm-demo button:focus-visible, .crm-demo video:focus-visible, .crm-demo a:focus-visible { outline: 3px solid var(--crm-accent); outline-offset: 4px; }
.crm-demo .crm-demo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .crm-demo { padding: 32px 20px 48px; }
  .crm-demo .crm-demo-copy { display: block; margin-bottom: 22px; }
  .crm-demo .crm-demo-copy h2 { max-width: 24ch; font-size: clamp(30px, 6vw, 40px); }
  .crm-demo .crm-demo-copy p { max-width: 56ch; margin-top: 12px; font-size: 15px; line-height: 1.55; }
  .crm-demo .crm-demo-player { padding: 5px; border-radius: 18px; }
  .crm-demo .crm-demo-screen { border-radius: 13px; }
  .crm-demo .crm-demo-play { gap: 10px; padding: 12px 18px; }
  .crm-demo .crm-demo-play-disc { width: 58px; height: 58px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 8px 22px rgba(0, 0, 0, .3); }
  .crm-demo .crm-demo-play-disc svg { width: 23px; height: 23px; }
  .crm-demo .crm-demo-play-label { font-size: 13px; }
  .crm-demo .crm-demo-duration { bottom: 10px; right: 10px; padding: 3px 6px; font-size: 10px; }
  .crm-demo .crm-demo-duration svg { display: none; }
  .crm-demo .crm-demo-chapters { gap: 3px; padding: 6px 0 0; }
  .crm-demo .crm-demo-chapter { grid-template-columns: 1fr; align-content: start; gap: 6px; padding: 10px 9px; min-height: 72px; }
  .crm-demo .crm-demo-chapter span { font-size: 12px; }
  .crm-demo .crm-demo-chapter time { font-size: 11px; }
  .crm-demo .crm-demo-chapter svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .crm-demo .crm-demo-play-disc, .crm-demo .crm-demo-chapter { transition: none; } }
