/* ==========================================================================
   ProspectPoint Marketing — services page only. Loaded after styles.css.
   ========================================================================== */

/* This page's opening paragraph is a long one, so it keeps to a measure of
   about 70 characters instead of running the full width of the header. */
.page-header .lead {
  max-width: 36em;
}

/* Two-line section intros break where the sentences do */
@media (min-width: 40em) {
  .section-head .lead {
    text-wrap: balance;
  }
}

/* ---------- What every campaign includes: nine numbered rows ---------- */
.part {
  padding-block: var(--space-5);
  border-top: 1px solid var(--slate-200);
}

.part:last-child {
  border-bottom: 1px solid var(--slate-200);
}

.part__head {
  display: flex;
  align-items: center;
}

/* The number column is as wide as the eyebrow rule plus its gap, so the
   icon tiles line up under the eyebrow text above. */
.part__num {
  flex: none;
  width: 2.375rem;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--teal-600);
}

.part__head .icon-tile {
  margin-right: var(--space-4);
}

.part__text {
  max-width: 34rem;
  margin-top: var(--space-3);
  color: var(--slate-600);
}

/* From tablets up the text starts under the name, clear of number and icon */
@media (min-width: 40em) {
  .part__text {
    margin-left: 6.125rem;
  }
}

/* On desktops each row is a ledger line: name on the left, text on the right */
@media (min-width: 62em) {
  .part {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: start;
  }

  .part__head .icon-tile {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 13px;
  }

  .part__head .icon-tile svg {
    width: 1.625rem;
    height: 1.625rem;
  }

  .part h3 {
    font-size: 1.5rem;
  }

  /* Puts the first line of text on the same baseline as the name */
  .part__text {
    margin: 0;
    padding-top: 1rem;
  }
}

/* ---------- How a campaign runs ---------- */
/* The steps sit on the navy band here, as they do on the about page */
.section--dark .step {
  border-top-color: var(--navy-600);
}

.section--dark .step::before {
  background: var(--teal-400);
}

.section--dark .step__num {
  color: var(--teal-400);
}

.section--dark .step p {
  color: inherit;
}

/* Four across is too tight below about 68em, so the steps run two-up first */
@media (min-width: 48em) and (max-width: 67.99em) {
  .steps--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-7) var(--space-6);
  }
}

/* Side by side, the steps share their rows, so numbers, headings and text
   line up even when one heading wraps and its neighbour does not. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 48em) {
    .steps--4 {
      row-gap: 0;
    }

    .steps--4 .step {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
    }
  }

  @media (min-width: 48em) and (max-width: 67.99em) {
    .steps--4 .step:nth-child(n + 3) {
      margin-top: var(--space-7);
    }
  }
}

/* ---------- More than email: five cards, the note fills the sixth cell ---------- */
/* The list makes no box of its own, so its five cards and the note that
   follows it are laid out by the same grid. */
.extras__list {
  display: contents;
}

/* The note keeps the card shape but reads as an aside: outline only */
.extras__note {
  border-style: dashed;
  border-color: var(--slate-300);
  background: none;
}

.extras__note .icon-tile {
  background: var(--white);
}

/* Side by side, the cards in a row share their rows (icon, heading, text),
   so the text lines up even when one heading wraps and its neighbor does
   not. The note has no heading: its text takes the heading and text rows. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 40em) {
    .extras .feature {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      row-gap: var(--space-3);
    }

    .extras__note > p {
      grid-row: span 2;
    }
  }
}

/* ---------- What we won't promise ---------- */
.promise h2 {
  font-size: 1.375rem;
}

.promise p {
  max-width: 34rem;
}

@media (min-width: 62em) {
  .promise {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: baseline;
    padding: var(--space-6);
  }

  .promise h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
  }
}

/* ---------- Closing band: two buttons sit side by side ---------- */
.cta-band__text {
  max-width: 40rem;
  text-wrap: balance;
}

.cta-band__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
