/* Product-specific visual languages for the shared flow engine. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 15px 0 20px;
  padding: 12px 14px;
  border: 1px solid #d4dae3;
  background: #fff;
}

.product-switcher-copy {
  display: flex;
  flex-direction: column;
}

.product-switcher-copy span {
  color: var(--blue);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .1em;
}

.product-switcher-copy strong {
  font-size: 12px;
}

.product-switcher-controls {
  display: grid;
  grid-template-columns: 34px minmax(150px, 200px) 34px;
  gap: 5px;
}

.product-switcher-controls label,
.product-switcher-controls select {
  width: 100%;
}

.product-switcher-controls select,
.product-arrow {
  height: 34px;
  border: 1px solid #c9d1dc;
  border-radius: 0;
  background: #f7f8fa;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.product-switcher-controls select {
  padding: 0 32px 0 11px;
  cursor: pointer;
}

.product-arrow {
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.product-arrow:hover {
  border-color: var(--blue);
  background: var(--navy);
  color: #fff;
}

@media (min-width: 901px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 68px;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    column-gap: 90px;
    align-items: end;
  }

  .hero-copy .eyebrow {
    grid-column: 1 / -1;
  }

  .hero-copy h1 {
    grid-column: 1;
    grid-row: 2 / 5;
    margin-bottom: 0;
  }

  .hero-copy .hero-lead {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 22px;
  }

  .hero-copy .button-row {
    grid-column: 2;
    grid-row: 3;
  }

  .hero-copy .hero-proof {
    grid-column: 2;
    grid-row: 4;
    margin-top: 30px;
  }

  .flow-showcase {
    width: 100%;
    min-height: 710px;
    padding: 28px;
  }

  .flow-showcase .showcase-heading {
    grid-template-columns: 1fr 1fr;
  }

  .flow-showcase.flow-layout-frevone .module-map {
    height: 390px;
  }

  .flow-showcase.flow-layout-frevdesk .module-map {
    grid-template-columns: repeat(4, 1fr);
  }
}

.showcase-chapters button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-chapters button small {
  color: #8792a4;
  font-size: 7px;
  letter-spacing: .08em;
}

.showcase-chapters button span {
  font-size: 10px;
}

.showcase-chapters button[aria-selected="true"] small {
  color: #2449bd;
}

.page-module-explorer.is-playing .packet-lane i b {
  animation: packetMove 1.2s ease-in-out both;
}

/* FrevOne: a circular workforce lifecycle. */
.flow-layout-frevone .module-map {
  position: relative;
  display: block;
  height: 330px;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #d6deea;
  background: #f8fafc;
}

.flow-layout-frevone .module-map::before,
.flow-layout-frevone .module-map::after {
  position: absolute;
  left: 50%;
  top: 50%;
  content: "";
  transform: translate(-50%, -50%);
  border: 1px solid #d8e0ec;
  border-radius: 50%;
}

.flow-layout-frevone .module-map::before {
  width: 72%;
  height: 76%;
}

.flow-layout-frevone .module-map::after {
  width: 43%;
  height: 48%;
  border-style: dashed;
}

.flow-layout-frevone .module-card {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  width: clamp(125px, 20%, 176px);
  min-height: 76px;
  padding: 10px;
  transform: translate(-50%, -50%);
  box-shadow: 0 7px 18px rgba(16, 24, 40, .06);
}

.flow-layout-frevone .module-card::after {
  display: none;
}

.flow-layout-frevone .module-card span {
  font-size: 8px;
}

.flow-layout-frevone .module-card:hover {
  transform: translate(-50%, -54%);
}

.flow-layout-frevone .orbit-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 9px #dfe7f6;
}

.flow-layout-frevone .orbit-core small {
  color: #6ed3d0;
  font-size: 7px;
  letter-spacing: .1em;
}

.flow-layout-frevone .orbit-core strong {
  margin: 3px 0;
  font-size: 15px;
}

.flow-layout-frevone .orbit-core span {
  color: #bec8e2;
  font-size: 8px;
}

.module-links {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.module-links g line {
  stroke: #a8b6cb;
  stroke-width: 1.2;
  stroke-dasharray: 6 7;
}

.active-module-link {
  stroke: var(--blue);
  stroke-width: 3;
  stroke-dasharray: 12 9;
}

.is-playing.flow-layout-frevone .active-module-link {
  animation: orbit-route 1.4s linear infinite;
}

.flow-layout-frevone .orbit-line-caption {
  position: absolute;
  z-index: 4;
  width: min(190px, 25%);
  padding: 8px 10px;
  transform: translate(-50%, -50%);
  border: 1px solid #b8c5d9;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(16, 24, 40, .12);
  pointer-events: none;
}

.flow-layout-frevone .orbit-line-caption small,
.flow-layout-frevone .orbit-line-caption strong,
.flow-layout-frevone .orbit-line-caption span {
  display: block;
}

.flow-layout-frevone .orbit-line-caption small {
  color: #66758b;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .1em;
}

.flow-layout-frevone .orbit-line-caption strong {
  margin: 3px 0 2px;
  color: var(--blue);
  font-size: 10px;
  line-height: 1.2;
}

.flow-layout-frevone .orbit-line-caption span {
  color: #344054;
  font-size: 8px;
  line-height: 1.3;
}

.flow-layout-frevone .orbit-line-caption.is-updating {
  animation: orbit-caption-in .7s ease both;
}

.flow-layout-frevone > .flow-controls,
.flow-layout-frevone .flow-controls,
.flow-layout-frevone > .packet-lane,
.flow-layout-frevone > .flow-result {
  display: none;
}

.flow-layout-frevone .showcase-footer {
  grid-template-columns: 1fr auto;
}

.page-module-explorer.flow-layout-frevone .module-map {
  height: 390px;
}

/* FrevDesk and FrevGuard: module-owned swimlanes with a shared handoff corridor. */
.flow-layout-frevdesk .module-map,
.flow-layout-frevguard .module-map {
  position: relative;
  display: block;
  height: 360px;
  min-height: 360px;
  overflow: hidden;
}

.flow-layout-frevdesk .module-map {
  height: 500px;
  min-height: 500px;
  border: 1px solid #cbd6e5;
  border-left: 4px solid var(--blue);
  background: #edf2f8;
}

.flow-layout-frevguard .module-map {
  border: 1px solid #2d424e;
  background: #101b25;
}

.swimlane-grid {
  position: absolute;
  z-index: 2;
  inset: 12px 12px 105px;
  display: grid;
  grid-template-columns: repeat(var(--lane-count), minmax(0, 1fr));
  gap: 7px;
}

.swimlane-grid .module-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 12px 9px 10px;
  overflow: hidden;
}

.swimlane-grid .module-card::after {
  display: none;
}

.swimlane-grid .module-card:not(.process-lane) > strong {
  min-height: 29px;
}

.swimlane-grid .module-card:not(.process-lane) > span {
  min-height: 31px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lane-process {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #d8e0eb;
  text-align: left;
}

.lane-process em {
  color: #738096;
  font-size: 6px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .09em;
}

.lane-process b {
  display: -webkit-box;
  overflow: hidden;
  color: #344054;
  font-size: 7px;
  font-weight: 650;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flow-layout-frevdesk .process-lane-grid {
  inset: 12px 12px 108px;
  gap: 10px;
}

.flow-layout-frevdesk .process-lane {
  display: block;
  padding: 0;
  overflow: visible;
  border: 1px solid #b9c7da;
  background: rgba(255, 255, 255, .5);
}

.flow-layout-frevdesk .process-lane.is-source {
  border-color: var(--amber);
  box-shadow: inset 0 3px var(--amber);
}

.flow-layout-frevdesk .process-lane.is-destination,
.flow-layout-frevdesk .process-lane.is-changed {
  border-color: var(--cyan);
  background: rgba(232, 247, 245, .72);
  box-shadow: inset 0 3px var(--cyan);
}

.group-heading {
  position: relative;
  z-index: 4;
  display: block;
  min-height: 88px;
  padding: 12px;
  overflow: hidden;
  border-bottom: 1px solid #c8d3e1;
  background: #e5ebf4;
  text-align: left;
}

.group-heading small,
.group-heading strong,
.group-heading > span {
  display: block;
}

.group-heading small {
  color: var(--blue);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .09em;
}

.group-heading strong {
  margin: 4px 0;
  color: #101828;
  font-size: 13px;
  line-height: 1.2;
}

.group-heading > span {
  color: #5f6c80;
  font-size: 8px;
  line-height: 1.3;
}

.process-lane:nth-child(1) .group-heading { background: #ece8f7; }
.process-lane:nth-child(2) .group-heading { background: #e4eef5; }
.process-lane:nth-child(3) .group-heading { background: #f5edcf; }
.process-lane:nth-child(4) .group-heading { background: #dff1ed; }

.process-lane > .lane-subprocesses {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 216px;
  padding: 10px 12px 8px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.lane-subprocesses em,
.lane-automation em {
  display: block;
  color: #6d7c91;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .09em;
}

.process-lane .process-box {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(152px, 88%);
  min-height: 40px;
  padding: 7px 9px;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
  border: 1px solid #b9c7da;
  background: #fff;
  box-shadow: 0 3px 8px rgba(16, 24, 40, .06);
  color: #344054;
  text-align: left;
}

.process-box i {
  color: var(--blue);
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
}

.process-box b {
  font-size: 9px;
  line-height: 1.2;
}

.process-box:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -19px;
  width: 1px;
  height: 18px;
  content: "";
  background: #8293aa;
}

.process-box:not(:last-child)::before {
  position: absolute;
  z-index: 2;
  left: calc(50% - 3px);
  bottom: -20px;
  width: 0;
  height: 0;
  content: "";
  border-top: 5px solid #8293aa;
  border-right: 3px solid transparent;
  border-left: 3px solid transparent;
}

.lane-automation {
  position: relative;
  z-index: 4;
  display: block;
  margin: 0 auto;
  width: calc(100% - 24px);
  min-height: 58px;
  padding: 8px 9px;
  border: 1px solid #74c9c5;
  border-left: 4px solid var(--cyan);
  background: #e7f5f3;
  text-align: left;
}

.lane-automation em {
  color: #16716f;
}

.lane-automation b {
  display: block;
  margin-top: 3px;
  color: #173b40;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.3;
}

.swimlane-links g line,
.swimlane-links g path {
  stroke: #9babbe;
  stroke-width: 1;
  stroke-dasharray: 4 7;
  fill: none;
}

.flow-layout-frevdesk .active-module-link {
  stroke: var(--blue);
  fill: none;
}

.process-links {
  z-index: 3;
  pointer-events: none;
}

.route-dot {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 3;
}

.flow-layout-frevdesk:not(.is-playing) .route-dot {
  display: none;
}

.is-playing.flow-layout-frevdesk .process-lane.is-source .process-box,
.is-playing.flow-layout-frevdesk .process-lane.is-source .lane-automation,
.is-playing.flow-layout-frevdesk .process-lane.is-destination .process-box:first-of-type {
  animation: process-node-pulse 3.8s ease-in-out infinite;
}

.is-playing.flow-layout-frevdesk .process-lane.is-source .process-box:nth-of-type(2) {
  animation-delay: .65s;
}

.is-playing.flow-layout-frevdesk .process-lane.is-source .process-box:nth-of-type(3) {
  animation-delay: 1.3s;
}

.is-playing.flow-layout-frevdesk .process-lane.is-source .lane-automation {
  animation-delay: 1.95s;
}

.route-line-caption {
  position: absolute;
  z-index: 4;
  width: min(224px, 25%);
  padding: 8px 10px;
  transform: translate(-50%, -50%);
  border: 1px solid #aabbd3;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 22px rgba(16, 24, 40, .13);
  pointer-events: none;
}

.route-line-caption small,
.route-line-caption strong,
.route-line-caption span {
  display: block;
}

.route-line-caption small {
  color: #68778d;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .1em;
}

.route-line-caption strong {
  margin: 3px 0 2px;
  color: var(--blue);
  font-size: 10px;
  line-height: 1.2;
}

.route-line-caption span {
  color: #344054;
  font-size: 8px;
  line-height: 1.3;
}

.route-line-caption.is-updating {
  animation: route-caption-in .7s ease both;
}

.flow-layout-frevdesk .module-card small {
  color: var(--blue);
}

.flow-layout-frevdesk .module-card.is-source {
  border-color: var(--amber);
  box-shadow: inset 0 3px var(--amber);
}

.flow-layout-frevdesk .module-card.is-destination,
.flow-layout-frevdesk .module-card.is-changed {
  border-color: var(--cyan);
  background: #e8f7f5;
  box-shadow: inset 0 3px var(--cyan);
}

.flow-layout-frevguard .swimlane-grid .module-card {
  border: 1px solid #344b57;
  background: #182a34;
  color: #fff;
  box-shadow: none;
}

.flow-layout-frevguard .module-card small {
  color: var(--amber);
}

.flow-layout-frevguard .module-card > span,
.flow-layout-frevguard .lane-process b {
  color: #b8c6ce;
}

.flow-layout-frevguard .lane-process {
  border-color: #344b57;
}

.flow-layout-frevguard .lane-process em {
  color: #7f96a2;
}

.flow-layout-frevguard .swimlane-links g line {
  stroke: #526b77;
}

.flow-layout-frevguard .active-module-link {
  stroke: #50c9c4;
}

.flow-layout-frevguard .route-line-caption {
  border-color: #50c9c4;
  background: #173b40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.flow-layout-frevguard .route-line-caption small,
.flow-layout-frevguard .route-line-caption strong {
  color: #65d8d3;
}

.flow-layout-frevguard .route-line-caption span {
  color: #e3eeee;
}

.flow-layout-frevguard .module-card.is-source {
  border-color: var(--amber);
  box-shadow: inset 0 3px var(--amber);
}

.flow-layout-frevguard .module-card.is-destination,
.flow-layout-frevguard .module-card.is-changed {
  border-color: #50c9c4;
  background: #173b40;
  box-shadow: inset 0 3px #50c9c4;
}

.flow-layout-frevdesk .flow-controls,
.flow-layout-frevguard .flow-controls,
.flow-layout-frevdesk > .packet-lane,
.flow-layout-frevdesk > .flow-result,
.flow-layout-frevguard > .packet-lane,
.flow-layout-frevguard > .flow-result {
  display: none;
}

.flow-layout-frevdesk .showcase-footer,
.flow-layout-frevguard .showcase-footer {
  grid-template-columns: 1fr auto;
}

.is-playing.flow-layout-frevdesk .active-module-link,
.is-playing.flow-layout-frevguard .active-module-link {
  animation: orbit-route 1.8s linear infinite;
}

@keyframes orbit-route {
  to { stroke-dashoffset: -42; }
}

@keyframes orbit-caption-in {
  from { opacity: .35; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes route-caption-in {
  from { opacity: .3; transform: translate(-50%, -42%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes process-node-pulse {
  0%, 18%, 100% { border-color: #b9c7da; box-shadow: 0 3px 8px rgba(16, 24, 40, .06); }
  9% { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(53, 91, 219, .12); }
}

@keyframes gate-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(80, 201, 196, .45); }
  50% { box-shadow: 0 0 0 7px rgba(80, 201, 196, 0); }
}

@media (max-width: 600px) {
  .product-switcher {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .product-switcher-controls {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .product-switcher-controls select,
  .product-arrow {
    height: 40px;
  }

  .showcase-chapters button {
    justify-content: space-between;
  }

  .flow-layout-frevone .module-map,
  .page-module-explorer.flow-layout-frevone .module-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: auto;
    min-height: 0;
    padding: 12px;
    overflow: visible;
  }

  .flow-layout-frevone .module-map::before,
  .flow-layout-frevone .module-map::after,
  .flow-layout-frevone .module-links,
  .flow-layout-frevone .orbit-core,
  .flow-layout-frevone .orbit-line-caption {
    display: none;
  }

  .flow-layout-frevone > .packet-lane,
  .flow-layout-frevone > .flow-result {
    display: grid;
  }

  .flow-layout-frevone > .flow-result {
    display: flex;
  }

  .flow-layout-frevone .module-card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 108px;
    transform: none;
  }

  .flow-layout-frevone .module-card:hover {
    transform: translateY(-2px);
  }

  .flow-layout-frevdesk .module-map,
  .flow-layout-frevguard .module-map {
    height: auto;
    min-height: 0;
    padding: 12px;
    overflow: visible;
  }

  .swimlane-grid {
    position: relative;
    inset: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swimlane-links,
  .route-line-caption {
    display: none;
  }

  .flow-layout-frevdesk .module-card,
  .flow-layout-frevguard .module-card {
    min-height: 210px;
  }

  .flow-layout-frevdesk .module-card {
    min-height: 270px;
  }

  .flow-layout-frevdesk > .packet-lane,
  .flow-layout-frevdesk > .flow-result,
  .flow-layout-frevguard > .packet-lane,
  .flow-layout-frevguard > .flow-result {
    display: grid;
  }

  .flow-layout-frevdesk > .flow-result,
  .flow-layout-frevguard > .flow-result {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-layout-frevone .flow-controls,
  .flow-layout-frevdesk .flow-controls,
  .flow-layout-frevguard .flow-controls {
    display: flex;
  }

  .flow-layout-frevone [data-flow-pause],
  .flow-layout-frevone [data-flow-replay],
  .flow-layout-frevdesk [data-flow-pause],
  .flow-layout-frevdesk [data-flow-replay],
  .flow-layout-frevguard [data-flow-pause],
  .flow-layout-frevguard [data-flow-replay] {
    display: none;
  }

  .active-module-link,
  .route-dot,
  .process-box,
  .lane-automation,
  .flow-layout-frevguard .module-card::before {
    animation: none !important;
  }
}
