/* ─────────────────────────────────────────────────────────────────────────
   Section: Feature: Accounting and Digital Payments — Call-Out (Figma 2225:2577)

   Everything inside the group is sized from the ribbon font size (1em):
   x positions are % of the first ribbon's width (the group is exactly as
   wide as it), y offsets and sizes are em.
   Desktop base: ribbon type 62px, first ribbon w831. Values are Figma px / 62.
   Mobile base (Connections mobile spec): ribbon type 30px, group w324.
   ───────────────────────────────────────────────────────────────────────── */

.section-adp-callout__group {
  width: 20.25rem; /* 324 */
  max-width: 100%;
  font-size: 1.875rem; /* 30 */
  gap: 0.7333em; /* 22 */
}

.section-adp-callout__heading {
  font-size: 1em;
  line-height: 1.1em; /* 33 */
  gap: 0.5333em; /* 16 */
}

.section-adp-callout__ribbon {
  max-width: 100%;
  padding: 0.625rem 0.9375rem; /* 10 / 15 */
}

/* ── Strike over "recreated repeatedly" ─────────────────────────────────── */
.section-adp-callout__word {
  position: relative;
  display: inline-block;
}

.section-adp-callout__strike {
  position: absolute;
  height: 0.2529em; /* 15.68 / 62 */
  container-type: size;
  pointer-events: none;
}

/* Mobile (no mobile frame): one strike per word, so a wrapped line keeps
   its strike; the desktop strike sits on the ribbon as in Figma. */
.section-adp-callout__strike--word {
  left: 0;
  top: 0.38em;
  width: 100%;
}

.section-adp-callout__strike--last {
  width: calc(100% - 0.3em); /* stops before the full stop, as in Figma */
}

.section-adp-callout__strike--ribbon {
  display: none;
}

/* Figma: Blob 10 export (11.7 x 420.8) in a flex box, rotated -90.54deg and
   mirrored; its size is given as hypot() of the box's cqw / cqh. */
.section-adp-callout__strike img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: hypot(0.0263cqw, 74.5644cqh);
  height: hypot(99.9737cqw, 25.4356cqh);
  max-width: none;
  transform: translate(-50%, -50%) rotate(-90.54deg) scaleX(-1);
}

/* ── Note + underline (mobile: centred under the ribbons) ───────────────── */
.section-adp-callout__notes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
}

.section-adp-callout__note {
  margin: 0;
  font-size: 0.5437em; /* 16.31 — Connections mobile note size */
  line-height: 0.8069;
  text-align: center;
  transform: rotate(1.5deg);
}

.section-adp-callout__line {
  display: block;
  width: 35%;
  transform: rotate(1.5deg);
}

.section-adp-callout__line img {
  display: block;
  width: 100%;
  height: auto;
}

/* Arrow: shown with the desktop composition only (no mobile frame to place it) */
.section-adp-callout__arrow {
  display: none;
}

/* ── Desktop ────────────────────────────────────────────────────────────── */
@media (width >= 64rem) {
  /* Figma centres the ribbons 9.5 left of the frame's centre (x710.5) */
  .section-adp-callout__group {
    width: max-content;
    font-size: min(3.875rem, 4.3056vw); /* 62 at 1440 */
    gap: 0;
    transform: translateX(-0.1532em); /* -9.5 */
  }

  .section-adp-callout__heading {
    line-height: 1.2097em; /* 75 */
    gap: 0.2581em; /* 16 */
    white-space: nowrap;
  }

  /* Fixed-width ribbons, text centred: 831 and 676 wide, py-10 */
  .section-adp-callout__ribbon {
    max-width: none;
    padding: 0.1613em 0;
  }

  .section-adp-callout__ribbon--first {
    width: 13.4032em; /* 831 */
  }

  .section-adp-callout__ribbon--second {
    position: relative;
    width: 10.9032em; /* 676 */
  }

  /* Strike placed on the ribbon, as in Figma */
  .section-adp-callout__strike--word {
    display: none;
  }

  .section-adp-callout__strike--ribbon {
    display: block;
    left: 31.97%; /* 216.12 / 676 */
    top: 0.6452em; /* 40 */
    width: 62.26%; /* 420.85 / 676 */
  }

  /* Notes area: from the second ribbon's bottom (y1797) to the underline's
     bottom (y1968.1) = 171.1 */
  .section-adp-callout__notes {
    display: block;
    height: 2.7603em;
  }

  .section-adp-callout__note {
    position: absolute;
    left: 35.987%; /* centre 574 / 831, box w549.9 / 831 */
    top: 1.2484em; /* 56.2 / 45 (em of the note's own 45px type) */
    width: 66.169%;
    font-size: 0.7258em; /* 45 */
    line-height: 1.0222; /* 46 / 45 */
  }

  /* line-6: 156.7 x 16 rotated 1.5deg, centred in Figma's 157.1 x 20.1
     box at ribbon x513.1 / 153 below the second ribbon, drawn with Figma's
     export inset (-1.22% -0.13% -1.53% -0.15%) */
  .section-adp-callout__line {
    position: absolute;
    left: 61.748%; /* 513.1 / 831 */
    top: 2.4685em; /* 153.05 */
    width: 18.862%; /* 156.74 / 831 */
    height: 0.2587em; /* 16.04 */
  }

  .section-adp-callout__line img {
    position: absolute;
    top: -1.22%;
    left: -0.15%;
    width: 100.28%;
    height: 102.75%;
    max-width: none;
  }

  /* Icon-Arrow-Up: Figma box 67x63; placed where Figma's render draws it
     (ink x837-890 / y1785-1838, matched against our render). The export is
     the upright 22x70 arrow; rotated 48deg and mirrored its bounding box is
     exactly 67x63 (22cos48 + 70sin48 = 66.7, 22sin48 + 70cos48 = 63.2). */
  .section-adp-callout__arrow {
    position: absolute;
    display: block;
    left: 64.62%; /* 537 / 831 */
    top: -0.2177em; /* -13.5 */
    width: 1.0806em; /* 67 */
    height: 1.0161em; /* 63 */
  }

  .section-adp-callout__arrow img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.3548em; /* 22 */
    height: 1.129em; /* 70 */
    max-width: none;
    transform: translate(-50%, -50%) rotate(48deg) scaleY(-1);
  }
}
