/* Site Insight page only (site/snippets/pages/web-services--site-insight.php).
   Linked by the page snippet (peanut_page_css), once, right before the first
   part that needs it. Every selector names an si-offer or si-words class.
   Tokens only.

   The two outcomes beside the fee, inside the cost band (ink; bulk fixes B5,
   review fixes 7.1, 2026-11-29). Two small cards side by side from 40rem,
   one under the other on phones: mint (you hire us within 90 days, the fee
   is credited) and butter (either way, the plan is yours to keep). Ink text
   on both (the band is ink: mint and butter are backgrounds, never text).
   Same height, marks and titles on one line (A2); the pair centered in the
   band (A1).

   The clients' words (review fixes 7.2): one section, the shared centered
   head, then equal cards (the shared testimonial card, one per cell): one
   column up to 40rem wide and centered below 64rem, three across from 64rem
   with one height, the quote centered in the space above the byline, a
   short quote in larger type so it fills its card. */

@layer blocks {
  .si-offer {
    max-width: 52rem;
    margin: var(--space-5) auto 0;
  }

  .si-offer__label {
    margin: 0 0 var(--space-3);
    color: var(--color-on-ink-label);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
  }

  .si-offer__list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .si-offer__card {
    /* on a light card inside the ink band the focus ring is ink again */
    --focus-ring: var(--color-ink);
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    text-align: start;
  }

  .si-offer__card--us {
    background: var(--color-brand);
  }

  .si-offer__card--own {
    background: var(--color-butter);
  }

  .si-offer__mark {
    display: inline-grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 2rem;
    height: 2rem;
    background: var(--color-white);
    border: var(--border);
    border-radius: 50%;
  }

  .si-offer__title {
    align-self: center;
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--step-1);
    font-weight: var(--weight-heading);
    line-height: var(--leading-heading);
  }

  .si-offer__text {
    margin-block-start: var(--space-1);
    font-size: var(--text-body);
    line-height: var(--leading-body);
  }

  .si-offer__text > p {
    margin: 0;
  }

  .si-offer__buttons {
    justify-content: center;
    margin-block-start: var(--space-4);
  }

  @media (min-width: 40rem) {
    .si-offer__list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* ---------- The clients' words ---------- */

  .si-words__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
    max-width: 40rem;
    margin-inline: auto;
  }

  /* each cell holds the shared cards grid with one card: it fills the cell */
  .si-words__cell {
    display: grid;
    min-width: 0;
  }

  .si-words__cell > .testimonials {
    grid-template-columns: minmax(0, 1fr);
  }

  .si-words__cell .testimonial {
    height: 100%;
  }

  /* the quote fills the space above the byline, centered in it */
  .si-words__cell .testimonial__quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .si-words__cell--short .testimonials--cards .testimonial__quote {
    font-size: var(--step-1);
    line-height: 1.6;
  }

  .si-words__cell .testimonial__by {
    padding-block-start: var(--space-3);
    border-block-start: var(--border);
  }

  /* three across (more wrap onto a second row); one quote stays a single centered card */
  @media (min-width: 64rem) {
    .si-words__grid:not(.si-words__grid--n1) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      max-width: none;
    }

    .si-words__grid.si-words__grid--n2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}
