/* Net Universe Employee Provisioning & Deployment page.
   Built from Figma "Employee Provisioning" (79:1572). Shared pieces come from styles.css and home.css;
   everything here is prefixed ep-. */

.ep {
  --ep-ink: #0d162b;
  --ep-ink-soft: #172544;
  --ep-snow: #f1f2f2;
  --ep-rule: #dde2ea;
  --ep-navy-blue: #1d3d71;
}

/* ---------- Shared bits ---------- */

.ep-section {
  padding: 120px 0;
}

.ep .eyebrow {
  margin-bottom: 0;
  letter-spacing: 4.8px;
}

.ep .h2 {
  line-height: 1.15;
}

.ep .dark .h2 {
  color: var(--ep-snow);
}

.ep .btn img {
  width: 14px;
  height: 14px;
}

.ep-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.ep-intro-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 878px;
  margin: -2px auto 0;
}

.ep-intro-text .sub {
  margin-top: 0;
  font-size: 18px;
}

.ep-intro-text.is-tight {
  gap: 0;
  max-width: none;
}

.ep-intro-text.is-wide {
  gap: 12px;
  max-width: 892px;
}

.ep-intro-text.is-wide .sub {
  font-size: clamp(17px, 1.5vw, 20px);
}

.ep-intro-text.is-narrow {
  gap: 16px;
  max-width: 820px;
}

/* ---------- Hero (79:1574) ---------- */

.ep-hero {
  padding: 96px 0 120px;
  overflow: hidden;
}

.ep-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 622px) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.ep-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ep-hero .hero-title {
  margin-top: 16px;
  /* Capped at 54px: at 59px "Get the right equipment" overflowed the 622px column and broke into four lines. */
  font-size: clamp(40px, 4.1vw, 54px);
  letter-spacing: 0;
}

.ep-hero-lead {
  margin-top: 32px;
}

.ep-hero-lead .lead {
  margin-top: 0;
}

.ep-hero-lead .lead + .lead {
  margin-top: 16px;
}

/* Photo pair: the warehouse shot fades out through the blurred rounded mask from the design,
   the employee photo sits on its top-left corner. Coordinates are Figma's, as % of the 540×506 frame. */
.ep-hero-art {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 540 / 506;
  justify-self: start;
}

.ep-hero-warehouse {
  position: absolute;
  left: -13.15%;
  top: -7.51%;
  width: 117.04%;
  height: 119.76%;
  -webkit-mask: url("/assets/employee-provisioning/hero-mask.svg") 0 0 / 100% 100% no-repeat;
  mask: url("/assets/employee-provisioning/hero-mask.svg") 0 0 / 100% 100% no-repeat;
}

.ep-hero-warehouse img {
  position: absolute;
  left: 3.32%;
  top: 4.95%;
  width: 95.73%;
  height: 99.83%;
  object-fit: cover;
  object-position: right center;
}

.ep-hero-laptop {
  position: absolute;
  left: -12.78%;
  top: -0.3%;
  width: 51.85%;
  height: 53.36%;
  border: 1px solid var(--cyan);
  border-radius: 24px;
  object-fit: cover;
  object-position: left center;
}

/* ---------- Cards (needs 79:1601, your-way 79:1654) ---------- */

.ep-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.ep-cards.is-models {
  margin-top: 56px;
}

.ep-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 457px;
  padding: 32px;
  border: 1px solid var(--ep-rule);
  border-radius: 20px;
  background: #fff;
}

.ep-card.is-pale {
  min-height: 347px;
  background: var(--pale);
}

.ep-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.ep-card-icon {
  height: 90px;
  margin-bottom: -2px;
}

.ep-card-icon.is-onboarding { width: 100px; }
.ep-card-icon.is-device { width: 90px; }
.ep-card-icon.is-global { width: 121px; }

.ep-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ep-ink);
}

.ep-card-icon + h3 {
  margin-top: 0;
}

.ep-card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
}

.ep-card-body .ep-card-lead {
  margin-top: -6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #0077ab; /* brand blue darkened for AA (4.5:1) at small text sizes */
}

.ep-card.is-pale .ep-card-body {
  gap: 10px;
}

.ep-card.is-pale .ep-card-lead {
  margin-top: 0;
}

.ep-card-tag {
  padding-top: 16px;
  border-top: 1px solid var(--ep-rule);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.24px;
  color: #37802d; /* brand green darkened for AA (4.5:1) at 12px */
}

.ep-card-tag.is-flow {
  letter-spacing: 0.72px;
  color: #0077ab; /* brand blue darkened for AA (4.5:1) at small text sizes */
}

/* Inline arrow for the flow tags: drawn as SVG because "→" is not in the Inter subset we load. */
.ep-tag-arrow {
  display: inline-block;
  width: 13px;
  height: 12px;
  margin: 0 1px;
  vertical-align: -2px;
}

/* ---------- Convergence diagram (79:1687) ----------
   Desktop keeps Figma's 1136×204 layout; horizontal positions are % of 1136 so it shrinks with the column. */

.ep-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
  margin-top: 56px;
}

.ep-conv {
  position: relative;
  width: 100%;
  max-width: 1136px;
  height: 204px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.3px;
  color: var(--navy);
}

.ep-conv-sources {
  position: absolute;
  left: 2.82%;
  top: 8px;
  width: 34.33%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-conv-source {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 88px;
  padding-left: 12px;
}

.ep-conv-icon {
  position: relative;
  flex: 0 0 82px;
  width: 82px;
  height: 63px;
}

.ep-conv-icon.is-procurement img:first-child {
  width: 82px;
  height: 64px;
  object-fit: cover;
}

.ep-conv-tint {
  position: absolute;
  left: 20px;
  top: 6px;
  width: 49.5px;
  height: 54px;
  mix-blend-mode: color;
}

.ep-conv-line,
.ep-conv-point {
  position: absolute;
}

.ep-conv-line.is-inventory {
  left: 33.56%;
  top: 51.25px;
  width: 9.46%;
  height: 51.5px;
}

.ep-conv-line.is-procurement {
  left: 33.56%;
  top: 101.25px;
  width: 9.46%;
  height: 51.5px;
}

.ep-conv-line.is-to-warehouse {
  left: 42.89%;
  top: 95.25px;
  width: 5.59%;
  height: 13.5px;
}

.ep-conv-line.is-to-employee {
  left: 74.93%;
  top: 95.25px;
  width: 8.23%;
  height: 13.5px;
}

.ep-conv-point {
  left: calc(42.96% - 4px);
  top: 98px;
  width: 8px;
  height: 8px;
}

.ep-conv-warehouse {
  position: absolute;
  left: 50.7%;
  top: 22px;
  width: 25.09%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  text-align: center;
}

.ep-conv-warehouse img {
  width: 118px;
  height: 90px;
}

.ep-conv-employee {
  position: absolute;
  left: 84.51%;
  top: 22px;
  width: 16.9%;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
  padding-top: 14px;
  text-align: center;
}

.ep-conv-person {
  position: relative;
  width: 110px;
  height: 84px;
}

.ep-conv-person-img {
  position: absolute;
  left: -2.54px;
  top: -12.94px;
  width: 115px;
  height: 115px;
}

.ep-conv-shade {
  position: absolute;
  left: 39.76px;
  top: 7.6px;
  width: 30.57px;
  height: 20.56px;
  mix-blend-mode: multiply;
}

.ep-conv-dot {
  position: absolute;
  left: 51.07px;
  top: 61.01px;
  width: 7.86px;
  height: 7.86px;
  mix-blend-mode: multiply;
}

.story-tagline.ep-flow-note {
  margin-top: 0;
  line-height: 1.3;
  text-align: center;
}

/* ---------- Timeline (79:1717) ---------- */

.ep-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.ep-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 115px;
  height: 1px;
  background: linear-gradient(90deg, rgba(84, 170, 71, 0) 0%, #54aa47 8%, #3294c9 92%, rgba(50, 148, 201, 0) 100%);
}

.ep-timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 8px;
}

.ep-step-num {
  font-family: var(--font-head);
  font-size: 80px;
  font-weight: 800;
  line-height: 84px;
  color: var(--line);
}

.ep-step-node {
  width: 23px;
  height: 23px;
  margin: 12px 0 20px;
}

.ep-timeline h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.ep-timeline p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
}

.ep-timeline .ep-step-lead {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cyan);
}

.ep-divider {
  height: 1px;
  margin: 64px 0 40px;
  border: 0;
  background: linear-gradient(90deg, rgba(153, 165, 189, 0) 0%, #99a5bd 50%, rgba(153, 165, 189, 0) 100%);
}

.ep-closing {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.6;
  text-align: center;
  color: var(--text-muted);
}

.ep-closing strong {
  color: var(--ep-snow);
}

/* ---------- Visibility split (79:1784) ---------- */

.story-grid.ep-split {
  grid-template-columns: minmax(0, 529fr) minmax(0, 647fr);
  align-items: stretch;
}

.ep-visibility-text {
  gap: 24px;
}

.ep-visibility-text .eyebrow,
.ep-visibility-text .story-body {
  margin: 0;
}

.ep-visibility-text .story-body {
  gap: 24px;
}

.ep-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--ep-rule);
}

.ep-block h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ep-ink);
}

.ep-block > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
}

.ep-block > .ep-block-lead {
  font-weight: 600;
  line-height: normal;
  color: #0077ab; /* brand blue darkened for AA (4.5:1) at small text sizes */
}

.ep-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-checks li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ep-ink-soft);
}

.ep-checks li::before {
  content: "";
  flex: 0 0 42px;
  height: 32px;
  background: url("/assets/employee-provisioning/check.png") center / 42px 32px no-repeat;
}

.ep-visibility-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ep-visibility-media .story-img {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
}

/* ---------- Lifecycle (79:1860) ---------- */

.ep-h2-narrow {
  max-width: 900px;
}

.ep-cycle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 52px;
}

.ep-cycle-steps {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ep-cycle-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 147px;
}

/* 58px arrow between steps with 4px gaps (Figma Arrow 2/3). */
.ep-cycle-steps li + li {
  position: relative;
  margin-left: 62px;
}

.ep-cycle-steps li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 59px;
  height: 14.73px;
  margin: -7.36px 0 0 -62px;
  background: url("/assets/employee-provisioning/lc-arrow.svg") 0 0 / 100% 100% no-repeat;
}

.ep-cycle-icon {
  position: relative;
  display: block;
}

/* Soft blue glow behind each icon. */
.ep-cycle-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 184px;
  height: 173px;
  transform: translate(-50%, -50%);
  background: url("/assets/employee-provisioning/lc-glow.svg") 0 0 / 100% 100% no-repeat;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
}

.ep-cycle-icon img {
  position: relative;
  width: 100%;
  height: 100%;
}

.ep-cycle-icon.is-warehouse { width: 130px; height: 82px; }
.ep-cycle-icon.is-preparation { width: 94px; height: 94px; }
.ep-cycle-icon.is-deploy { width: 139px; height: 103px; }
.ep-cycle-icon.is-employee { width: 140px; height: 97px; }

.ep-cycle-icon.is-collection {
  width: 133px;
  height: 93px;
  margin-bottom: 6px;
}

.ep-cycle-icon.is-collection img {
  position: absolute;
  width: 88.5px;
  height: 88.5px;
}

.ep-cycle-icon.is-collection .is-left { left: 0; top: 25.5px; }
.ep-cycle-icon.is-collection .is-right { left: 44.4px; top: 25.5px; }
.ep-cycle-icon.is-collection .is-top { left: 22.2px; top: -18.1px; }

.ep-cycle-num {
  margin-top: 0;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.ep-cycle-label {
  margin-top: 2px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--ep-snow);
}

.ep-cycle-return {
  width: 848px;
  max-width: 100%;
  height: 24px;
  margin-top: 10px;
}

.ep-cycle-note {
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1.44px;
  text-align: center;
  color: var(--green);
}

.ep-lifecycle-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 52px;
  text-align: center;
}

.ep-lifecycle-end .ep-intro-text {
  max-width: none;
}

.ep-lifecycle-end .sub + .sub {
  max-width: 820px;
  margin-inline: auto;
}

/* ---------- Final CTA (79:1938) ---------- */

.ep-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 566px);
  align-items: stretch;
  gap: 64px;
}

.ep-final-img {
  height: 100%;
  min-height: 360px;
}

.ep-final-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.ep .ep-final-title {
  color: var(--ep-navy-blue);
}

.ep-final-copy .sub {
  margin: 0 0 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .ep-cycle-steps li {
    width: 128px;
  }

  .ep-cycle-steps li + li {
    margin-left: 40px;
  }

  .ep-cycle-steps li + li::before {
    width: 40px;
    margin-left: -42px;
  }

  .ep-cycle-return {
    width: 688px;
  }
}

@media (max-width: 1100px) {
  .ep-section {
    padding: 80px 0;
  }

  .ep-hero {
    padding: 48px 0 80px;
  }

  .ep-hero-grid,
  .ep-final,
  .story-grid.ep-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .ep-hero-art {
    justify-self: center;
    width: min(540px, 86%);
    left: 6.5%;
  }

  .ep-cards,
  .ep-cards.is-models {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ep-card,
  .ep-card.is-pale {
    min-height: 0;
  }

  /* Diagram becomes a vertical flow. */
  .ep-conv {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .ep-conv-sources,
  .ep-conv-warehouse,
  .ep-conv-employee {
    position: static;
    width: auto;
    min-width: 0;
  }

  .ep-conv-sources {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
  }

  .ep-conv-source {
    padding-left: 0;
  }

  .ep-conv-line.is-inventory,
  .ep-conv-line.is-procurement,
  .ep-conv-point {
    display: none;
  }

  .ep-conv-line.is-to-warehouse,
  .ep-conv-line.is-to-employee {
    position: static;
    width: 46px;
    height: 13.5px;
    transform: rotate(90deg);
  }

  .ep-conv-line.is-to-warehouse,
  .ep-conv-line.is-to-employee {
    margin: 16px 0;
  }

  .ep-conv-warehouse {
    padding: 0;
  }

  /* Lifecycle: steps stack vertically with the arrows pointing down. */
  .ep-cycle-steps {
    flex-direction: column;
    gap: 0;
  }

  .ep-cycle-steps li {
    width: auto;
  }

  .ep-cycle-steps li + li {
    margin: 72px 0 0;
  }

  .ep-cycle-steps li + li::before {
    left: 50%;
    top: -44px;
    width: 40px;
    margin: 0;
    transform: translateX(-50%) rotate(90deg);
  }

  .ep-cycle-return {
    display: none;
  }

  .ep-cycle-note {
    margin-top: 40px;
  }

  /* Timeline turns vertical: node and line on the left. */
  .ep-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 48px;
    padding-left: 48px;
  }

  .ep-timeline::before {
    left: 11px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(84, 170, 71, 0) 0%, #54aa47 8%, #3294c9 92%, rgba(50, 148, 201, 0) 100%);
  }

  .ep-step-num {
    font-size: 56px;
    line-height: 60px;
  }

  .ep-step-node {
    position: absolute;
    left: -48px;
    top: 18px;
    margin: 0;
  }

  .ep-divider {
    margin: 48px 0 32px;
  }

  .ep-visibility-media .story-img {
    flex: none;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .ep-final-img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .ep-final-title br {
    display: none;
  }
}

@media (max-width: 760px) {
  .ep-section {
    padding: 64px 0;
  }

  .ep-hero {
    padding: 40px 0 64px;
  }

  .ep-hero .hero-title br {
    display: none;
  }

  .ep-intro {
    gap: 16px;
  }

  .ep-intro-text .sub {
    font-size: 16px;
  }

  .ep-card {
    padding: 24px;
  }

  .ep-cycle-note {
    font-size: 20px;
    letter-spacing: 0.8px;
  }

  .ep-closing {
    font-size: 18px;
  }

  .ep-lifecycle-end .btn {
    white-space: normal;
    height: auto;
    min-height: 44px;
    padding: 10px 20px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .ep-conv-sources {
    flex-direction: column;
    align-items: center;
  }

  .story-tagline.ep-flow-note {
    font-size: 20px;
  }

  .ep-checks li {
    font-size: 15px;
  }
}

/* ---------- Polish pass: wrapping and tablet layout ---------- */

.ep-nowrap {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .ep-hero .hero-title,
  .ep-section .h2,
  .ep-closing,
  .ep-cycle-note,
  .story-tagline.ep-flow-note {
    text-wrap: balance;
  }
}

/* Tablet: the two visibility photos sit side by side instead of stacking full width. */
@media (min-width: 561px) and (max-width: 1100px) {
  .ep-visibility-media {
    flex-direction: row;
    gap: 16px;
  }

  .ep-visibility-media .story-img {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 760px) {
  /* Eyebrows that wrap: keep the dot beside the first line instead of floating at the left edge. */
  .ep-hero .eyebrow,
  .ep-section .eyebrow {
    display: block;
  }

  .ep-hero .eyebrow::before,
  .ep-section .eyebrow::before {
    display: inline-block;
    margin-right: 8px;
    vertical-align: 1px;
  }
}

/* Body gray on the pale background was 4.2:1; this tint reaches AA (4.66:1) and is visually the same gray. */
.ep-section.pale,
.ep-card.is-pale {
  --gray: #666f82;
}

/* The shared pale-blue focus ring is hard to see on white and pale sections. */
.ep-section.white-plain :focus-visible,
.ep-section.pale :focus-visible {
  outline-color: #0b5fa5;
}
