/* =========================================================================
   Differentiators — module-specific styles
   Three alternating rows of (image | copy). Depends on tokens.css and
   primitives.css. Composes from cm-section-header, cm-mini-cta, cm-cta,
   cm-textlink, cm-cta-row primitives.
   ========================================================================= */

.cm-diff {
  background: var(--cm-surface-2);                   /* #FAFAFA — light grey */
  border-top: 1px solid var(--cm-hairline);
  border-bottom: 1px solid var(--cm-hairline);
  padding: 88px 32px;
  position: relative;
  overflow-x: clip; /* clip oversized row images at the section edge */
}

.cm-diff .cm-section__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.cm-diff__header {
  margin-bottom: 32px;
}

/* Override the cm-section-header primitive's 760px cap for this section —
   the differentiators heading is the main eye-catcher and benefits from
   the same wider visual presence as the hero headline. */
.cm-diff__header.cm-section-header {
  max-width: 920px;
}

/* =========================================================================
   Row layout
   ========================================================================= */
.cm-diff__rows {
  display: flex;
  flex-direction: column;
}

.cm-diffrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--cm-hairline);
}

.cm-diffrow--image-left {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

}
/* No top border on the first row — section header already separates it */
.cm-diffrow:first-child {
  border-top: none;
}

/* Alternating layout: image-right is the default. image-left swaps the
   visual and copy columns by using grid order. */
.cm-diffrow--image-right .cm-diffrow__copy { order: 1; }
.cm-diffrow--image-right .cm-diffrow__visual { order: 2; }
.cm-diffrow--image-left .cm-diffrow__copy { order: 2; }
.cm-diffrow--image-left .cm-diffrow__visual { order: 1; }

/* =========================================================================
   Copy column
   ========================================================================= */
.cm-diffrow__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cm-diffrow__eyebrow {
  font-family: var(--cm-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--cm-track-eyebrow);
  text-transform: uppercase;
  color: var(--cm-green-forest);
  margin: 0;
}

.cm-diffrow__heading {
  font-family: var(--cm-font-display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: var(--cm-track-display);
  color: var(--cm-ink-heading);
  margin: 0;
  text-wrap: balance;
}

.cm-diffrow__body {
  font-family: var(--cm-font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--cm-ink);
  margin: 0;
  text-wrap: pretty;
}

/* ---- Bullets with green check tick ---- */
.cm-diffrow__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cm-diffrow__bullet {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--cm-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cm-ink);
}

.cm-diffrow__check {
  margin-top: 6px;
  width: 14px;
  height: 14px;
  border-radius: var(--cm-radius-pill);
  background: var(--cm-green-bg);                    /* #6DE8AA */
  border: 1px solid var(--cm-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: var(--cm-ink-heading);
  line-height: 1;
  flex-shrink: 0;
}

.cm-diffrow__cta {
  margin-top: 4px;
  align-self: flex-start;
}

/* =========================================================================
   Visual column — image
   ========================================================================= */
.cm-diffrow__visual {
  position: relative;
  width: 100%;
/*   overflow: hidden; */

}

.cm-page .cm-diffrow__visual img {
  display: block;
  width: 140%;
  max-width: none;
  height: auto;
  aspect-ratio: 1660 / 850;
  border-radius: var(--cm-radius-lg);
  border: 1px solid var(--cm-ink);
  box-shadow: var(--cm-shadow);
}

.cm-diffrow--image-right .cm-diffrow__visual img {
  transform: translateX(0);
}

.cm-diffrow--image-left .cm-diffrow__visual img {
  transform: translateX(-29%);
}
/* =========================================================================
   Section CTAs — centered at the bottom
   ========================================================================= */
.cm-diff__ctas {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding-top: 8px;
}
.cm-diff__ctas .cm-cta-row {
  justify-content: center;
}

/* =========================================================================
   Responsive
   ========================================================================= */

/* Tablet: tighter gap, smaller padding */
@media (max-width: 980px) {
  .cm-diff { padding: 64px 24px; }
  .cm-diffrow {
    gap: 40px;
    padding: 44px 0;
  }
}

/* Mobile: stack columns. Visual goes ABOVE copy for both layouts. */
@media (max-width: 720px) {
  .cm-diff { padding: 48px 20px; }
  .cm-diff__header { margin-bottom: 24px; }

  .cm-diffrow {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0;
  }

  /* On mobile, image is always above the copy (regardless of desktop side) */
  .cm-diffrow--image-right .cm-diffrow__visual,
  .cm-diffrow--image-left .cm-diffrow__visual {
    order: 1;
  }
  .cm-diffrow--image-right .cm-diffrow__copy,
  .cm-diffrow--image-left .cm-diffrow__copy {
    order: 2;
  }

  .cm-diffrow__copy { gap: 18px; }
  .cm-diffrow__body { font-size: 16px; }
  .cm-diffrow__bullet { font-size: 15px; }

  .cm-diff__ctas { margin-top: 32px; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .cm-diff { padding: 40px 16px; }
  .cm-diffrow { padding: 28px 0; }
}
