.hp-agentflow {
  --tw-blue: #3E5EE2;
  --tw-violet-3: #7526C5;
  --tw-text: #190750;
  --tw-text-muted: #6B6480;
  --tw-border: rgba(25, 7, 80, 0.08);
  --tw-border-blue: rgba(62, 94, 226, 0.35);
  --tw-grad-main-violet: linear-gradient(95deg, #3E5EE2 0%, #3E5EE2 40%, #7526C5 100%);
  --tw-shadow-md: 0 18px 40px -16px rgba(25, 7, 80, 0.18);
  background: #fff;
  padding: 96px 0;
  border-top: 1px solid var(--tw-border);
  font-family: "Poppins", sans-serif;
  color: var(--tw-text);
}
.hp-agentflow *, .hp-agentflow *::before, .hp-agentflow *::after {
  box-sizing: border-box;
}
.hp-agentflow .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.hp-agentflow .section-head {
  margin: 0 auto 28px;
  max-width: 800px;
  text-align: center;
}
.hp-agentflow .section-head .eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--tw-blue);
  font: 700 12px/1 "Poppins", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hp-agentflow .section-head h2 {
  font-family: "Poppins", sans-serif;
  font-size: 43px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 14px 0 0;
  color: var(--tw-text);
}
.hp-agentflow .section-head h2 em {
  font-style: normal;
  font-weight: 600;
  background: var(--tw-grad-main-violet);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hp-agentflow .afc-tabs,
.hp-agentflow .jtbd-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  border-bottom: 1px solid var(--tw-border);
  padding: 0;
  margin: 0 0 28px;
}
.hp-agentflow .jtbd-tab {
  background: transparent;
  border: none;
  padding: 10px 4px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--tw-text-muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.hp-agentflow .jtbd-tab:hover {
  color: var(--tw-text);
}
.hp-agentflow .jtbd-tab.active {
  background: var(--tw-grad-main-violet);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  border-bottom-color: var(--tw-violet-3);
}
.hp-agentflow .afc-stage {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  background: linear-gradient(180deg, #FBF9FF 0%, #F4EEFF 100%);
  border: 1px solid var(--tw-border);
  border-radius: 24px;
  padding: 40px;
  overflow: hidden;
}
.hp-agentflow .afc-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(25, 7, 80, 0.07) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: 0.65;
}
.hp-agentflow .afc-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}
.hp-agentflow .afc-line {
  display: none;
}
.hp-agentflow .afc-node {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--tw-border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.hp-agentflow .afc-node:hover {
  transform: translateY(-3px);
  box-shadow: var(--tw-shadow-md);
  border-color: var(--tw-border-blue);
}
.hp-agentflow .afc-node.active {
  border-color: var(--tw-blue);
  box-shadow: 0 12px 28px -10px rgba(62, 94, 226, 0.35);
}
.hp-agentflow .afc-node .dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #EEF1FC 0%, #F2EAFC 100%);
  color: var(--tw-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hp-agentflow .afc-node.active .dot {
  background: var(--tw-grad-main-violet);
  color: #fff;
}
.hp-agentflow .afc-node[data-id^=custom]:not(.active) .dot {
  background: #fff;
  border: 1px dashed rgba(25, 7, 80, 0.18);
}
.hp-agentflow .afc-node h5 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tw-text);
  line-height: 1.2;
}
.hp-agentflow .afc-detail {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--tw-border);
  border-radius: 18px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  transition: opacity 0.25s ease;
}
.hp-agentflow .afc-detail--custom {
  grid-template-columns: 1fr !important;
}
.hp-agentflow .afc-detail-l h4 {
  margin: 0 0 6px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--tw-text);
}
.hp-agentflow .afc-detail-l .afc-tagline {
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--tw-text-muted);
}
.hp-agentflow .afc-detail-l .chat-msg {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: flex-start;
}
.hp-agentflow .afc-detail-l .chat-msg .avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hp-agentflow .afc-detail-l .chat-msg.user .avatar {
  background: #D9C9FB;
  color: var(--tw-text);
}
.hp-agentflow .afc-detail-l .chat-msg.bot .avatar {
  background: linear-gradient(135deg, #3E5EE2, #7526C5);
  color: #fff;
}
.hp-agentflow .afc-detail-l .chat-msg .bubble {
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
}
.hp-agentflow .afc-detail-l .chat-msg.user .bubble {
  background: #D9C9FB;
  color: var(--tw-text);
  font-weight: 500;
}
.hp-agentflow .afc-detail-l .chat-msg.bot .bubble {
  background: #F5F1FB;
  color: var(--tw-text);
}
.hp-agentflow .afc-detail-l .afc-desc-line {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--tw-text-muted);
  line-height: 1.5;
}
.hp-agentflow .afc-detail-l .afc-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hp-agentflow .afc-detail-l .afc-timeline li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tw-text);
}
.hp-agentflow .afc-detail-l .afc-timeline .tk {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E8F0E8;
  color: #2A8A4A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hp-agentflow .afc-detail-l .afc-timeline .tm {
  color: var(--tw-text-muted);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.hp-agentflow .afc-output {
  background: #FAF6FF;
  border: 1px solid #E8DDF7;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-agentflow .afc-output .label {
  font-family: "Poppins", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tw-violet-3);
}
.hp-agentflow .afc-output .out {
  font-size: 13px;
  color: var(--tw-text);
  line-height: 1.5;
  margin: 0;
}
.hp-agentflow .afc-output mark {
  background: rgba(232, 184, 255, 0.55);
  color: var(--tw-text);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}
.hp-agentflow .afc-output .stat {
  color: var(--tw-blue);
  font-weight: 700;
}
.hp-agentflow .afc-output .chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.hp-agentflow .afc-output .chips span {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: none;
  color: #5C2E9E;
  background: #fff;
}
.hp-agentflow .afc-learn {
  grid-column: 1/-1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tw-blue);
  text-decoration: none;
  white-space: nowrap;
}
.hp-agentflow .afc-custom-l .afc-custom-copy {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tw-text);
  max-width: 760px;
}
.hp-agentflow .afc-custom-l .afc-custom-note {
  margin: 12px 0 18px;
  font-size: 14px;
  color: var(--tw-text-muted);
}
.hp-agentflow .afc-custom-l .afc-custom-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--tw-blue);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.18s ease;
}
.hp-agentflow .afc-custom-l .afc-custom-cta:hover {
  background: #3452CC;
  box-shadow: 0 10px 24px rgba(62, 94, 226, 0.22);
}
.hp-agentflow .afc-detail.afc-detail--animatable .chat-msg.bot {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.hp-agentflow .afc-detail.afc-detail--animatable .chat-msg.bot.is-on {
  opacity: 1;
  transform: none;
}
.hp-agentflow .afc-detail.afc-detail--animatable .chat-msg.user .bubble.is-typing .typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  margin-left: 1px;
  vertical-align: -2px;
  animation: hp-afc-caret 0.9s steps(2) infinite;
}
.hp-agentflow .afc-detail.afc-detail--animatable .afc-timeline li {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hp-agentflow .afc-detail.afc-detail--animatable .afc-timeline li.is-on {
  opacity: 1;
  transform: none;
}
.hp-agentflow .afc-detail.afc-detail--animatable .afc-timeline li .tk {
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hp-agentflow .afc-detail.afc-detail--animatable .afc-timeline li.is-done .tk {
  transform: scale(1);
}
.hp-agentflow .afc-detail.afc-detail--animatable .afc-output {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.hp-agentflow .afc-detail.afc-detail--animatable .afc-output.is-on {
  opacity: 1;
  transform: none;
}

@keyframes hp-afc-caret {
  50% {
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .hp-agentflow {
    padding: 64px 0;
  }
  .hp-agentflow .section-head h2 {
    font-size: 32px;
  }
  .hp-agentflow .jtbd-tabs {
    gap: 6px 16px;
  }
  .hp-agentflow .jtbd-tab {
    padding: 10px 12px;
    font-size: 13.5px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
  }
  .hp-agentflow .afc-stage {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .hp-agentflow .afc-detail {
    grid-template-columns: 1fr;
  }
}
