/*=====================================================*/
/*  MEET YOUR DIGITAL WORKFORCE — page styles          */
/*  Depends on assets/css/ai/common.css                */
/*=====================================================*/

/*----------------------------*/
/* HERO — IDLE VS ON SHIFT    */
/* A prompt box that does     */
/* nothing, above a workforce */
/* that already is. The whole */
/* page argument, in the      */
/* first screen.              */
/*----------------------------*/
.dwf-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dwf-idle {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.dwf-idle__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  font-family: var(--ai-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Declared on the label itself rather than left to inherit from the bar. The
   live theme styles spans directly, and a direct declaration always beats an
   inherited one however specific the ancestor rule is — same reason
   .ai-console__bar sets its type on the span. */
.dwf-idle__bar span {
  font-family: var(--ai-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.dwf-idle__bar i,
.dwf-idle__bar svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.dwf-idle__bar em {
  margin-left: auto;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--ai-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.32);
}

.dwf-idle__prompt {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 15px 16px;
  font-family: var(--ai-mono);
  font-size: 12.5px;
  line-height: 1.4 !important;
  color: rgba(255, 255, 255, 0.35);
}

/* The cursor is the only thing this card ever does */
.dwf-idle__caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 5px;
  background: rgba(255, 255, 255, 0.4);
  animation: ai-caret-blink 1.1s steps(1) infinite;
}

.dwf-split__divide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ai-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ai-primary);
}

.dwf-split__divide i,
.dwf-split__divide svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
  animation: ai-bob 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

  .dwf-idle__caret,
  .dwf-split__divide i,
  .dwf-split__divide svg {
    animation: none;
  }
}

/*----------------------------*/
/* WHAT IS A DIGITAL WORKFORCE*/
/*----------------------------*/
.dwf-define {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 64px;
}

.dwf-define__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.dwf-define__copy h2 {
  margin: 0;
  font-family: var(--ai-heading);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ai-ink);
}

.dwf-define__copy p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7 !important;
  color: var(--ai-muted);
}

/* Closing line of the definition, lifted out of the body copy */
.dwf-define__pull {
  margin-top: 6px !important;
  padding-left: 20px;
  border-left: 3px solid var(--ai-primary);
  font-family: var(--ai-heading);
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  color: var(--ai-ink) !important;
}

.dwf-define__media {
  position: relative;
  margin: 0;
}

.dwf-define__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--ai-line);
  box-shadow: 0 30px 60px rgba(20, 20, 20, 0.12);
}

.dwf-define__media figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  font-family: var(--ai-heading);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ai-ink);
}

.dwf-define__media figcaption i,
.dwf-define__media figcaption svg {
  width: 20px;
  height: 20px;
  color: var(--ai-primary);
  stroke-width: 2.2;
  flex-shrink: 0;
}

/*----------------------------*/
/* PLATFORM STACK             */
/* Shared .ai-stack — only    */
/* the spacing is local.      */
/*----------------------------*/
.dwf-platform {
  margin-bottom: 44px;
}

/*----------------------------*/
/* WORKER ROSTER              */
/*----------------------------*/
.dwf-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dwf-worker {
  --ai-panel-rgb: var(--ai-primary-rgb);
  --ai-panel-rest: 0.28;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dwf-worker:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ai-primary-rgb), 0.5);
}

.dwf-worker__head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dwf-worker__head h3 {
  margin: 0 0 3px;
  font-family: var(--ai-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ai-ink);
  transition: color 0.2s ease;
}

.dwf-worker:hover .dwf-worker__head h3 {
  color: var(--ai-primary-deep);
}

.dwf-worker__role {
  font-family: var(--ai-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ai-muted);
}

/* Duties sit on a rail, so the card reads as a job description */
.dwf-worker__duties {
  display: grid;
  gap: 10px;
  padding-left: 18px !important;
  border-left: 2px solid var(--ai-line);
}

.dwf-worker__duties li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  translate: 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ai-ink-soft);
  transition: opacity 0.45s ease, translate 0.45s ease;
}

.dwf-worker__duties li.is-in {
  opacity: 1;
  translate: 0 0;
}

.dwf-worker__duties li i,
.dwf-worker__duties li svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--ai-primary);
  stroke-width: 2.8;
  flex-shrink: 0;
}

.dwf-quoteband {
  margin-top: 64px;
}

/*----------------------------*/
/* CHALLENGES (dark)          */
/*----------------------------*/
.ai-page .dwf-challenges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto !important;
}

.dwf-challenges li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ai-line-dark);
  border-radius: 14px;
  font-family: var(--ai-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #FFF;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.dwf-challenges li:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(var(--ai-primary-rgb), 0.5);
}

.dwf-challenges li i,
.dwf-challenges li svg {
  width: 21px;
  height: 21px;
  color: var(--ai-primary);
  stroke-width: 2;
  flex-shrink: 0;
}

.dwf-challenges__note {
  max-width: 720px;
  margin: 36px auto 0 !important;
  text-align: center;
  font-size: 17px;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.dwf-challenges__note strong {
  color: #FFF;
}

/*----------------------------*/
/* ONE PLATFORM, GROWTH       */
/*----------------------------*/
.dwf-growth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.dwf-growth__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.dwf-growth__copy h2 {
  margin: 0;
  font-family: var(--ai-heading);
  font-size: clamp(26px, 3.1vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ai-ink);
}

.dwf-growth__copy p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7 !important;
  color: var(--ai-muted);
}

/* Three steps, each carrying more dots than the last — the workforce
   visibly growing without a chart. */
.ai-page .dwf-scale {
  display: grid;
  gap: 16px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.dwf-scale__step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px 16px;
  padding: 24px 26px;
  background: #FFF;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dwf-scale__step:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--ai-primary-rgb), 0.45);
  box-shadow: 0 16px 34px rgba(20, 20, 20, 0.07);
}

.dwf-scale__step .ai-index {
  padding-top: 3px;
}

.dwf-scale__step h3 {
  margin: 0 0 4px;
  font-family: var(--ai-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ai-ink);
}

.dwf-scale__step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6 !important;
  color: var(--ai-muted);
}

.dwf-scale__dots {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  max-width: 148px;
}

.dwf-scale__dots b {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: rgba(var(--ai-primary-rgb), 0.22);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease, background 0.35s ease;
}

.dwf-scale__dots b.is-in {
  transform: scale(1);
  opacity: 1;
  background: var(--ai-primary);
}

/*----------------------------*/
/* KEY INSIGHT + ADVISOR      */
/*----------------------------*/
.dwf-insight {
  max-width: 920px;
  margin: 24px auto 0;
}

.dwf-insight p {
  margin: 0;
  font-family: var(--ai-heading);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.5 !important;
  color: #FFF !important;
}

.dwf-advisor {
  margin-top: 56px;
}

/*----------------------------*/
/* BENEFITS                   */
/*----------------------------*/
.dwf-benefits {
  max-width: 1000px;
}

/*----------------------------*/
/* RESPONSIVE                 */
/*----------------------------*/
@media (max-width: 1023px) {

  .dwf-define,
  .dwf-growth {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dwf-define__media {
    order: 2;
    max-width: 520px;
  }

  .dwf-define__media img {
    aspect-ratio: 16 / 10;
  }

  .ai-page .dwf-challenges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dwf-roster {
    grid-template-columns: 1fr;
  }

  .ai-page .dwf-challenges {
    grid-template-columns: 1fr;
  }

  .dwf-quoteband {
    margin-top: 44px;
  }

  .dwf-scale__step {
    padding: 22px 20px;
  }

  .dwf-worker__duties li {
    font-size: 14.5px;
  }
}
