/* ============================================================
   products/workforce — page accents.
   The bespoke how-it-works walk swaps the device for the Workforce
   DASHBOARD window on step 4 (Mike, 2026-08-07): .wfd is a browser
   window that takes the stage while the phone hides; solution-hero.js
   toggles .is-active on any [data-sol-screen], so the window rides the
   same step mechanics as the phone deck.
   ============================================================ */

.p-solution .wfd {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* smaller, with side padding from the container; no outline (Mike) */
  width: min(calc(100% - 64px), 560px);
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: none;
  overflow: hidden;
  /* crossfade with the phone (Mike: no hard cut between steps 3 → 4) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.p-solution .wfd.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease;
}
.p-solution .sol-how__stage { position: relative; }
.p-solution .sol-how__stage .sol-how__phone { transition: opacity 0.8s ease; }
.p-solution .sol-how__stage:has(.wfd.is-active) .sol-how__phone { opacity: 0; }
.p-solution .wfd__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--color-grey-100);
  background: var(--color-grey-50);
}
.p-solution .wfd__dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.p-solution .wfd__dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-grey-200);
}
.p-solution .wfd__url {
  flex: 1;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--color-grey-100);
  background: var(--color-white);
}
.p-solution .wfd img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- screen choreography remap ----------------------------------------
   solution.css keys the capture/selfie/success animations to customer-
   onboarding's step order; this page runs ID = 0 · selfie = 1 ·
   success = 2, so each choreography is re-pinned to our indexes
   (keyframes reused from solution.css — this file loads only here). */
/* ID capture (step 1) — the license rides up into the lit frame */
.p-solution svg[data-sol-screen="0"].is-active .idc-card,
.p-solution svg[data-sol-screen="0"].is-active .idc-card-lit {
  animation: co-card-in 1.5s cubic-bezier(0.85, 0, 0.25, 1) 0.25s both;
}
.p-solution svg[data-sol-screen="0"].is-active .idc-frame path {
  animation: co-frame-success 0.5s ease 1.75s both;
}
/* selfie capture (step 2) — scan ring orbits, caption crossfades */
.p-solution svg[data-sol-screen="1"] .s3-ring-scan {
  display: inline;
  transform-box: fill-box;
  transform-origin: center;
  animation: co-ring-scan 2.4s linear infinite;
}
.p-solution svg[data-sol-screen="1"].is-active .s3-caption {
  animation: co-cap-out 0.4s ease 1.6s both;
}
.p-solution svg[data-sol-screen="1"].is-active .s3-caption-ready {
  display: inline;
  animation: co-cap-ready 2.5s ease 1.9s both;
}
.p-solution svg[data-sol-screen="1"].is-active .s3-scan-stop {
  animation: co-scan-success 0.6s ease 3.9s both;
}
/* success (step 3) — badge pops, check draws on */
.p-solution svg[data-sol-screen="2"].is-active .s7-badge {
  transform-box: fill-box;
  transform-origin: center;
  animation: co-badge-in 0.6s cubic-bezier(0, 0.75, 0.25, 1) 0.5s both;
}
.p-solution svg[data-sol-screen="2"].is-active .s7-check { opacity: 0; }
.p-solution svg[data-sol-screen="2"].is-active .s7-check-draw {
  display: inline;
  stroke-dasharray: 1;
  animation: co-check-draw 0.3s ease-out 0.8s both;
}
@media (prefers-reduced-motion: reduce) {
  .p-solution svg[data-sol-screen="1"] .s3-ring-scan,
  .p-solution svg[data-sol-screen="1"].is-active .s3-caption,
  .p-solution svg[data-sol-screen="1"].is-active .s3-scan-stop,
  .p-solution svg[data-sol-screen="0"].is-active .idc-card,
  .p-solution svg[data-sol-screen="0"].is-active .idc-card-lit,
  .p-solution svg[data-sol-screen="0"].is-active .idc-frame path,
  .p-solution svg[data-sol-screen="2"].is-active .s7-badge {
    animation: none;
  }
  .p-solution svg[data-sol-screen="1"].is-active .s3-caption-ready,
  .p-solution svg[data-sol-screen="2"].is-active .s7-check-draw {
    display: none;
  }
  .p-solution svg[data-sol-screen="2"].is-active .s7-check { opacity: 1; }
}

/* ============================================================
   5b · identity integration (Sofia 2026-08-13) — the enterprise-tools
   grid after the Workforce-for-hiring spotlight: four hairline cells,
   category name up top, official partner marks on a bottom shelf
   (SuccessFactors = text chip, no official asset in the bank).
   ============================================================ */
.p-product .wfi {
  background: var(--color-white);
  border-top: 1px solid var(--color-border-light);
}
.p-product .wfi-intro {
  margin-top: 16px;
  max-width: 640px;
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: var(--color-grey-on-white);
}
.p-product .wfi-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border-light);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 640px) { .p-product .wfi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .p-product .wfi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-product .wfi-cell {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 28px 26px;
  background: var(--color-white);
}
.p-product .wfi-cell__name {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  font-size: 18px;
  line-height: 1.35;
  color: var(--color-black);
}
.p-product .wfi-cell__logos {
  margin: auto 0 0;
  padding: 32px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.p-product .wfi-cell__logos li { display: inline-flex; align-items: center; }
.p-product .wfi-logo {
  display: block;
  height: var(--logo-h, 18px);
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.p-product .wfi-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border-light);
  background: var(--color-background);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-grey-on-white);
}
