/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Web Portal and Mobile Application — Hero (Figma 2225:3544 / 2225:3573)

   - Card fill: Figma draws the gradient image at w155.6% h154.12%, offset
     -55.6% / -0.04% inside the card, then rotates the whole fill 180deg.
     Below lg (no Web Portal mobile frame) the image simply covers the card.
   - Bullets: 9x9 green-light square at x11 / y10 (y11 on the third), text at x45 (Figma).
   - At lg the card's internals scale with the card: shares of the 1300px
     design width in cqw of the frame (which is exactly as wide as the card).
       89 / 1300   = 6.8462cqw   (padding-left: title at x159 = 70 + 89)
       860 / 1300  = 66.1538cqw  (content column)
       465 / 1300  = 35.7692cqw  (intro + bullets column: 45 + 420)
       792 / 1300  = 60.9231cqw  (mockup width, right edge on the card's)
       419 / 1300  = 32.2308cqw  (mockup left, from the intro's left edge)
       1500 / 1300 = 115.3846cqw (card min-height)
   ───────────────────────────────────────────────────────────────────────── */

.section-wpm-hero__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transform: rotate(180deg);
}

.section-wpm-hero__fill img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.section-wpm-hero__list li {
  padding-left: 2.1875rem; /* mobile: 9 + 26, as the Connections mobile frame */
}

.section-wpm-hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem; /* 10 */
  width: 0.5625rem; /* 9 */
  height: 0.5625rem;
  background-color: var(--color-green-light);
}

@media (width >= 64rem) {
  .section-wpm-hero__frame {
    container-type: inline-size;
  }

  .section-wpm-hero__card {
    min-height: 115.3846cqw;
    padding-left: 6.8462cqw;
  }

  .section-wpm-hero__fill img {
    inset: auto;
    top: -0.04%;
    left: -55.6%;
    width: 155.6%;
    height: 154.12%;
  }

  .section-wpm-hero__content {
    width: 66.1538cqw;
  }

  .section-wpm-hero__intro {
    width: 35.7692cqw;
  }

  /* Figma text boxes: title w605, lead w860, intro w460. Figma's text
     engine sets the lead's first line and the intro's third line a hair
     wider than Chrome does (Chrome: 858.9 / 459.2), so at the full box width
     Chrome keeps one more word on those lines. The two boxes are 1-2px
     narrower than Figma's so every line breaks where Figma breaks it. */
  .section-wpm-hero__title {
    max-width: 46.5385cqw; /* 605 */
  }

  .section-wpm-hero__leads {
    max-width: 66cqw; /* 858 (Figma box 860) */
  }

  .section-wpm-hero__lead {
    max-width: 35.3077cqw; /* 459 (Figma box 460) */
  }

  .section-wpm-hero__list li {
    padding-left: 2.8125rem; /* 45 */
  }

  .section-wpm-hero__list li::before {
    left: 0.6875rem; /* 11 */
    top: 0.625rem; /* 10 */
  }

  /* Placed from the intro column (Figma: mockup top y684 = intro top y706
     - 22), so it always sits 70 below the lead, whatever the lead's height.
     Left 508 - 89 = 419 of the card puts its right edge on the card's. */
  .section-wpm-hero__mockup {
    position: absolute;
    top: -1.375rem; /* -22 */
    left: 32.2308cqw;
    width: 60.9231cqw;
    max-width: none;
    height: auto;
    pointer-events: none;
  }
}
