/* Canonical interaction styles shared by production Workhint components. */
@keyframes workhint-rotate { to { transform: rotate(1turn); } }
.rainbow::before { content:""; position:absolute; z-index:-2; left:-50%; top:-50%; width:200%; height:200%; background-position:100% 50%; background-repeat:no-repeat; background-size:50% 30%; filter:blur(6px); background-image:linear-gradient(#fff); animation:workhint-rotate 4s linear infinite; }
@keyframes hero-helper-caret { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }
.hero-helper-text::after { content:""; display:inline-block; width:1px; height:1.1em; margin-left:2px; vertical-align:-0.15em; background:currentColor; animation:hero-helper-caret 1s steps(1) infinite; }
.mega-menu-panel { transform-origin:top center; transform:translateX(-50%) translateY(18px) rotateX(-14deg) scale(.98); transition:opacity 180ms ease,transform 220ms cubic-bezier(.22,1,.36,1),visibility 180ms ease; will-change:transform,opacity; perspective:1200px; }
.mega-menu-panel[data-state="open"] { visibility:visible; opacity:1; pointer-events:auto; transform:translateX(-50%) translateY(0) rotateX(0) scale(1); }
.mega-menu-arrow { box-shadow:-3px -3px 12px rgba(148,163,184,.15); }
.mobile-products-accordion[data-state="open"] .mobile-products-icon,.mobile-accordion-trigger[aria-expanded="true"] .mobile-accordion-icon { transform:rotate(180deg); }
.mobile-accordion-panel { display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows 220ms cubic-bezier(.22,1,.36,1),opacity 180ms ease; }
.mobile-accordion-panel[data-state="open"] { grid-template-rows:1fr; opacity:1; }
.mobile-accordion-panel>div { overflow:hidden; }
.mobile-nav-overlay { transition:opacity 180ms ease,visibility 180ms ease; }
.mobile-nav-overlay[data-state="open"] { opacity:1; visibility:visible; pointer-events:auto; }
.mobile-nav-sheet { transform:translateY(-12px) scale(.98); transform-origin:top center; transition:transform 220ms cubic-bezier(.22,1,.36,1),opacity 180ms ease; opacity:0; }
.mobile-nav-overlay[data-state="open"] .mobile-nav-sheet { transform:translateY(0) scale(1); opacity:1; }
.lead-modal-overlay { transition:opacity 220ms ease,visibility 220ms ease; }
.lead-modal-overlay[data-state="open"] { opacity:1; visibility:visible; pointer-events:auto; }
.lead-modal-shell { transform:translateY(20px) scale(.98); opacity:0; transition:transform 240ms cubic-bezier(.22,1,.36,1),opacity 180ms ease; }
.lead-modal-overlay[data-state="open"] .lead-modal-shell { transform:translateY(0) scale(1); opacity:1; }

/* AI Orchestration Flow production styles. */
.wh-orch-flow-shell {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.wh-orch-flow-stage {
  position: relative;
  min-width: 980px;
  height: 332px;
}

.wh-orch-flow-card {
  position: absolute;
  width: 176px;
  min-height: 88px;
  border: 1px solid rgb(64 64 64 / 0.75);
  border-radius: 0;
  background: rgb(250 250 250 / 0.95);
  padding: 0.68rem 0.72rem 0.64rem;
  color: rgb(17 24 39);
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.04);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}

.wh-orch-flow-card--prompt {
  width: 206px;
  min-height: 88px;
  border-color: rgb(23 23 23 / 0.95);
  background: rgb(10 10 10 / 0.98);
  color: rgb(245 245 245);
  padding: 0.52rem 0.56rem 0.56rem;
  transition: opacity 220ms ease, transform 220ms ease, width 500ms cubic-bezier(0.22, 1, 0.36, 1), min-height 500ms cubic-bezier(0.22, 1, 0.36, 1), padding 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wh-orch-flow-card--prompt.is-expanded {
  width: 314px;
  min-height: 126px;
  padding: 0.72rem 0.72rem 0.72rem;
  transform: translateY(0);
  transform-origin: left center;
  z-index: 2;
}

.wh-orch-flow-card--prompt.is-shrinking {
  transition: opacity 220ms ease, transform 220ms ease, width 500ms cubic-bezier(0.22, 1, 0.36, 1), min-height 500ms cubic-bezier(0.22, 1, 0.36, 1), padding 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wh-orch-flow-prompt-label {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: rgb(163 163 163);
  margin-bottom: 0.38rem;
}

.wh-orch-flow-mini-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.36rem;
  border: 1px solid rgb(64 64 64);
  background: rgb(15 15 15);
  min-height: 34px;
  padding: 0.26rem 0.28rem 0.26rem 0.44rem;
  overflow: hidden;
}

.wh-orch-flow-mini-input-text {
  flex: 1 1 auto;
  min-width: 0;
  color: rgb(212 212 212);
  font-size: 9.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-orch-flow-mini-start-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(120deg, rgb(139 92 246), rgb(59 130 246), rgb(16 185 129));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset;
  overflow: hidden;
}

.wh-orch-flow-mini-start-shell.rainbow::before {
  filter: blur(3px);
  background-image: linear-gradient(90deg, rgb(168 85 247), rgb(59 130 246), rgb(16 185 129), rgb(168 85 247));
  background-size: 50% 55%;
}

.wh-orch-flow-mini-start {
  flex: 0 0 auto;
  border: 0;
  background: rgb(24 24 27);
  color: rgb(255 255 255);
  border-radius: 9999px;
  font-size: 8.8px;
  line-height: 1;
  padding: 0.34rem 0.56rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: transform 130ms ease, filter 130ms ease;
}

.wh-orch-flow-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wh-orch-flow-card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wh-orch-flow-card-head--with-ai {
  padding-right: 1.05rem;
}

.wh-orch-flow-icon {
  width: 14px;
  height: 14px;
  color: rgb(38 38 38);
  flex: 0 0 auto;
}

.wh-orch-flow-card-title {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
  color: rgb(10 10 10);
}

.wh-orch-flow-card-copy {
  margin-top: 0.34rem;
  color: rgb(82 82 82);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wh-orch-flow-copy-typing {
  min-height: 2.8em;
}

.wh-orch-flow-copy-typing.wh-orch-flow-mini-input-text {
  min-height: 0;
  margin-top: 0;
}

.wh-orch-flow-typing-text {
  display: inline;
}

.wh-orch-flow-ai-badge {
  position: absolute;
  right: 0.48rem;
  top: 0.48rem;
  width: 13px;
  height: 13px;
  color: rgb(168 85 247);
}

.wh-orch-flow-line {
  position: absolute;
  background: rgb(82 82 82 / 0.7);
  transform-origin: left center;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 200ms linear, transform 200ms linear;
  will-change: opacity, transform;
}

.wh-orch-flow-line-v {
  transform-origin: center top;
  transform: scaleY(0);
}

.wh-orch-flow-line.is-visible {
  opacity: 0.88;
  transform: scaleX(1);
}

.wh-orch-flow-line-v.is-visible {
  transform: scaleY(1);
}

@media (max-width: 767px) {
  .solution-hero-description {
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .wh-orch-flow-shell {
    max-width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .wh-orch-flow-stage {
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.125rem;
  }

  .wh-orch-flow-line {
    display: none;
  }

  .wh-orch-flow-card {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: min(100%, 320px);
    font-size: 10.5px;
  }

  .wh-orch-flow-card--prompt {
    width: min(100%, 320px);
  }

  .wh-orch-flow-mini-input-text {
    font-size: 8.6px;
  }

  .wh-orch-flow-card--prompt.is-expanded {
    width: min(100%, 342px);
    min-height: 112px;
    padding: 0.62rem 0.58rem 0.58rem;
    transform: translateY(0);
    transform-origin: center center;
  }

  .wh-orch-flow-card:not(:last-child) {
    margin-bottom: 1.2rem;
  }

  .wh-orch-flow-card:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 1px);
    width: 1px;
    height: 1.15rem;
    background: rgb(82 82 82 / 0.7);
    transform: translateX(-50%) scaleY(var(--mobile-line-scale, 0));
    transform-origin: center top;
    opacity: calc(0.88 * var(--mobile-line-scale, 0));
    transition: opacity 200ms linear, transform 200ms linear;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wh-orch-flow-card,
  .wh-orch-flow-line {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .wh-orch-flow-card::after {
    transition: none;
    opacity: 0.88;
    transform: translateX(-50%) scaleY(1);
  }

  .wh-orch-flow-card--prompt {
    transition: none;
  }
}
