.product-flow-showcase {
  --flow-ink: #161a22;
  --flow-muted: #646b78;
  --flow-line: #e4e7ee;
  --flow-surface: #f6f7fa;
  --flow-panel: #ffffff;
  --flow-accent: #5b6fd8;
  position: relative;
  padding: clamp(12px, 2vw, 24px) 0 0;
  color: var(--flow-ink);
  letter-spacing: 0;
  scroll-margin-top: 108px;
}

.product-flow-showcase * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.product-flow-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--flow-line);
}

.product-flow-kicker,
.product-flow-feature-kicker {
  margin: 0 0 14px;
  color: var(--flow-accent);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.product-flow-heading h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--flow-ink);
  font-size: clamp(2rem, 4.1vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.product-flow-heading > p {
  max-width: 62ch;
  margin: 0;
  color: var(--flow-muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.75;
}

.product-flow-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: clamp(26px, 4vw, 44px) 0 0;
}

.product-flow-rail-step {
  position: relative;
  min-width: 0;
  padding: 0 16px 0 24px;
}

.product-flow-rail-step:first-child {
  padding-left: 0;
}

.product-flow-rail-step:not(:first-child)::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 10px;
  height: 1px;
  background: #b9bfcb;
  content: "";
}

.product-flow-rail-step span {
  display: block;
  margin-bottom: 5px;
  color: #9aa1af;
  font-size: 0.72rem;
  font-weight: 800;
}

.product-flow-rail-step strong {
  display: block;
  overflow-wrap: anywhere;
  color: #303641;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  font-weight: 750;
  line-height: 1.4;
}

.product-flow-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  padding: clamp(54px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--flow-line);
}

.product-flow-feature.is-catalog {
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
}

.product-flow-feature.is-catalog .product-flow-feature-copy {
  order: 2;
}

.product-flow-feature-copy h3 {
  max-width: 15ch;
  margin: 0;
  color: var(--flow-ink);
  font-size: clamp(1.72rem, 3.1vw, 2.76rem);
  font-weight: 800;
  line-height: 1.16;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.product-flow-feature-copy > p:not(.product-flow-feature-kicker) {
  max-width: 54ch;
  margin: 20px 0 0;
  color: var(--flow-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.product-flow-feature-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--flow-line);
  color: #3d4450;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

.product-flow-feature-note::before {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--flow-accent);
  content: "";
}

.product-flow-demo {
  position: relative;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  background: var(--flow-surface);
  box-shadow: 0 24px 60px rgba(35, 42, 61, 0.1);
  isolation: isolate;
}

.product-flow-demo::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(91, 111, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 111, 216, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

.product-flow-demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid #e2e5ec;
  background: rgba(255, 255, 255, 0.94);
}

.product-flow-demo-brand,
.product-flow-demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #373d48;
  font-size: 0.76rem;
  font-weight: 800;
}

.product-flow-demo-brand i,
.product-flow-demo-status i {
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flow-accent);
}

.product-flow-demo-status {
  color: #747b88;
}

.product-flow-booking-body {
  position: relative;
  min-height: 466px;
  padding: 30px 28px;
}

.product-flow-chat-card {
  position: relative;
  z-index: 1;
  width: min(78%, 440px);
  padding: 20px;
  border: 1px solid #e0e4ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(33, 40, 58, 0.08);
}

.product-flow-chat-name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #272d37;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-flow-chat-name i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--flow-accent);
  font-size: 0.66rem;
  font-style: normal;
}

.product-flow-bubble {
  width: fit-content;
  max-width: 92%;
  margin: 0 0 10px;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 0.82rem;
  line-height: 1.48;
}

.product-flow-bubble.is-user {
  margin-left: auto;
  color: #fff;
  background: #303641;
}

.product-flow-bubble.is-ai {
  color: #303641;
  background: #f0f2f7;
}

.product-flow-open-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 5px;
  padding: 0 12px;
  border: 1px solid #d6daea;
  border-radius: 6px;
  color: #3f4c9f;
  background: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  pointer-events: none;
}

.product-flow-booking-drawer {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  width: min(62%, 390px);
  padding: 18px;
  border: 1px solid #dce0e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(29, 35, 52, 0.17);
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-flow-booking-drawer.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.product-flow-booking-drawer h4 {
  margin: 0;
  color: #252b35;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.product-flow-booking-drawer > p {
  margin: 5px 0 14px;
  color: #7a818d;
  font-size: 0.71rem;
  line-height: 1.45;
}

.product-flow-choice-label {
  display: block;
  margin: 12px 0 7px;
  color: #717886;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-flow-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.product-flow-choice {
  display: grid;
  min-height: 39px;
  padding: 6px;
  place-items: center;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  color: #4b5260;
  background: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.15;
  pointer-events: none;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.product-flow-choice.is-selected,
.product-flow-open-booking.is-selected {
  color: #fff;
  border-color: var(--flow-accent);
  background: var(--flow-accent);
  transform: translate3d(0, -1px, 0);
}

.product-flow-booking-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin-top: 13px;
  padding: 0 11px;
  border-radius: 6px;
  color: #343b46;
  background: #f1f3f8;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.45;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.product-flow-booking-result.is-ready {
  color: #38458f;
  background: #eceffa;
  opacity: 1;
}

.product-flow-booking-result b {
  font-size: 0.64rem;
}

.product-flow-ai-pointer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.24s ease,
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.product-flow-ai-pointer.is-visible {
  opacity: 1;
}

.product-flow-ai-pointer::before {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--flow-accent);
  box-shadow: 0 0 0 1px var(--flow-accent);
  content: "";
}

.product-flow-ai-pointer span {
  padding: 3px 7px;
  border-radius: 5px;
  background: #303641;
  font-size: 0.62rem;
  font-weight: 850;
}

.product-flow-catalog-body {
  position: relative;
  min-height: 466px;
  padding: 24px;
}

.product-flow-catalog-sync {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px;
  color: #4754a4;
  font-size: 0.7rem;
  font-weight: 800;
}

.product-flow-catalog-sync::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flow-accent);
  content: "";
  animation: product-flow-pulse 1.8s ease-in-out infinite;
}

.product-flow-catalog-window {
  position: relative;
  width: 78%;
  overflow: hidden;
  border: 1px solid #dde1e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 17px 38px rgba(35, 42, 61, 0.1);
}

.product-flow-catalog-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef1f4;
}

.product-flow-catalog-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-flow-catalog-focus {
  position: absolute;
  top: 18%;
  left: 34%;
  width: 31%;
  height: 68%;
  border: 2px solid var(--flow-accent);
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-flow-catalog-focus::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 4px;
  color: #fff;
  background: var(--flow-accent);
  content: attr(data-label);
  font-size: 0.58rem;
  font-weight: 850;
  white-space: nowrap;
}

.product-flow-catalog-focus.is-active {
  opacity: 1;
  transform: scale(1);
}

.product-flow-catalog-chat {
  position: absolute;
  right: 22px;
  bottom: 24px;
  z-index: 3;
  width: min(46%, 300px);
  min-height: 266px;
  padding: 15px;
  border: 1px solid #dce0e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(27, 34, 52, 0.18);
}

.product-flow-catalog-chat .product-flow-chat-name {
  margin-bottom: 13px;
}

.product-flow-catalog-message {
  opacity: 0;
  transform: translate3d(0, 9px, 0);
  transition:
    opacity 0.36s ease,
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-flow-catalog-message.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.product-flow-typing {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f0f2f7;
  opacity: 0;
}

.product-flow-typing.is-visible {
  opacity: 1;
}

.product-flow-typing i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #818897;
  animation: product-flow-typing 1s ease-in-out infinite;
}

.product-flow-typing i:nth-child(2) {
  animation-delay: 0.14s;
}

.product-flow-typing i:nth-child(3) {
  animation-delay: 0.28s;
}

.product-flow-answer-product {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid #dde1e9;
  border-radius: 6px;
  background: #fff;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-flow-answer-product.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.product-flow-answer-product-image {
  width: 54px;
  aspect-ratio: 1;
  border-radius: 5px;
  background-image: url("/catalog/manage/assets/theme-previews-v16/precision.webp");
  background-position: 50% 46%;
  background-size: 310% auto;
}

.product-flow-answer-product small,
.product-flow-answer-product strong,
.product-flow-answer-product span {
  display: block;
}

.product-flow-answer-product small {
  color: var(--flow-accent);
  font-size: 0.56rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-flow-answer-product strong {
  margin-top: 2px;
  color: #282e38;
  font-size: 0.7rem;
  line-height: 1.25;
}

.product-flow-answer-product span {
  margin-top: 2px;
  color: #686f7d;
  font-size: 0.62rem;
  font-weight: 700;
}

.product-flow-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(34px, 5vw, 54px);
}

.product-flow-cta-row p {
  max-width: 62ch;
  margin: 0;
  color: var(--flow-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.product-flow-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 7px;
  color: #fff;
  background: #272c35;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.product-flow-cta:hover {
  background: #3b4350;
}

.product-flow-cta:active {
  transform: translate3d(0, 1px, 0);
}

@keyframes product-flow-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes product-flow-typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translate3d(0, 0, 0);
  }
  30% {
    opacity: 1;
    transform: translate3d(0, -2px, 0);
  }
}

@media (max-width: 980px) {
  .product-flow-heading,
  .product-flow-feature,
  .product-flow-feature.is-catalog {
    grid-template-columns: 1fr;
  }

  .product-flow-heading {
    align-items: start;
    gap: 20px;
  }

  .product-flow-heading h2 {
    max-width: 15ch;
  }

  .product-flow-feature,
  .product-flow-feature.is-catalog {
    gap: 30px;
  }

  .product-flow-feature.is-catalog .product-flow-feature-copy {
    order: 0;
  }

  .product-flow-feature-copy h3 {
    max-width: 20ch;
  }

  .product-flow-demo {
    min-height: 500px;
  }
}

@media (max-width: 680px) {
  .product-flow-showcase {
    padding-top: 4px;
  }

  .product-flow-heading {
    padding-bottom: 26px;
  }

  .product-flow-heading h2 {
    font-size: clamp(1.9rem, 8.4vw, 2.35rem);
    line-height: 1.14;
  }

  .product-flow-rail {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .product-flow-rail-step {
    flex: 0 0 132px;
    min-height: 60px;
    padding: 9px 11px;
    border: 1px solid var(--flow-line);
    border-radius: 6px;
    background: #fff;
    scroll-snap-align: start;
  }

  .product-flow-rail-step:first-child {
    padding-left: 11px;
  }

  .product-flow-rail-step:not(:first-child)::before {
    display: none;
  }

  .product-flow-feature {
    padding: 50px 0;
  }

  .product-flow-feature-copy h3 {
    font-size: clamp(1.65rem, 7.35vw, 2.05rem);
  }

  .product-flow-demo {
    min-height: 488px;
  }

  .product-flow-demo-topbar {
    padding: 0 13px;
  }

  .product-flow-booking-body,
  .product-flow-catalog-body {
    min-height: 436px;
    padding: 18px 13px;
  }

  .product-flow-chat-card {
    width: 92%;
    padding: 14px;
  }

  .product-flow-booking-drawer {
    right: 13px;
    bottom: 16px;
    width: calc(100% - 26px);
    padding: 14px;
  }

  .product-flow-catalog-window {
    width: 100%;
  }

  .product-flow-catalog-chat {
    right: 13px;
    bottom: 16px;
    width: calc(100% - 26px);
    min-height: 234px;
    padding: 13px;
  }

  .product-flow-catalog-image-wrap {
    aspect-ratio: 16 / 9;
  }

  .product-flow-catalog-focus::after {
    right: 4px;
    bottom: 4px;
  }

  .product-flow-cta-row {
    display: grid;
    gap: 18px;
  }

  .product-flow-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-flow-showcase *,
  .product-flow-showcase *::before,
  .product-flow-showcase *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
