/* 04 coverage (#solutions). Owner: six-steps / one-team / who / coverage builder.
   Warm tone: the warm-white page under the hero's Oatmeal pattern band, white rounded cards (the book's p. 21 "How We Help"),
   each icon in a round filled badge in a palette colour (p. 17's icon set), and the "Not sure yet?" card in Summit. */
.coverage { padding-block: clamp(72px, 8vw, 120px); }
.coverage__head { gap: 24px 56px; }
.coverage__title { flex: 1 1 520px; max-width: 680px; }
.coverage__h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.06; text-wrap: balance; }
.coverage__lede { flex: 1 1 360px; max-width: 440px; line-height: 1.65; }

/* eight cards: 4, 2 or 1 across, never a 3-across with an empty cell */
.coverage__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) { .coverage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .coverage__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.coverage__card {
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 28px 26px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-card);
}

/* the round badge: glyph white on Summit or Charcoal, Charcoal on Sandstone or Sage (white there is 2.25:1).
   --pen is the live pen point that leads each stroke while it draws (instruments/coverage.js). */
.coverage__badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--white);
  --pen: var(--sandstone);
}
.coverage__badge--summit { background: var(--summit); }
.coverage__badge--charcoal { background: var(--charcoal); }
.coverage__badge--sandstone { background: var(--sandstone); color: var(--charcoal-deep); --pen: var(--white); }
.coverage__badge--sage { background: var(--sage); color: var(--charcoal-deep); --pen: var(--white); }
.coverage__icon { display: block; overflow: visible; }
.coverage__pen { fill: var(--pen); }

.coverage__name {
  margin-top: 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
}
.coverage__text { margin-top: 8px; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }

/* "Not sure yet?": the one Summit card, so the ask reads as the end of the row */
.coverage__card--cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--summit);
  border-color: var(--summit);
  color: var(--white);
}
.coverage__cta-label { color: var(--sandstone-soft); }            /* 5.0:1 on Summit */
/* "Not sure yet?" glows last (instruments/coverage.js fades this layer up and away; hidden at rest) */
.coverage__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--sandstone) 90%, transparent),
    inset 0 0 60px color-mix(in srgb, var(--sandstone) 42%, transparent);
  opacity: 0;
  pointer-events: none;
}
/* the ring that opens on the link's arrow lives inside the arrow's svg, so it may draw outside it */
.coverage__arrow { overflow: visible; }
.coverage__ring { fill: none; stroke: var(--sandstone); }
.coverage__cta-text {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--white);
}
.coverage__cta-link { margin-top: auto; padding-top: 18px; color: var(--white); }
.coverage__cta-link:hover { color: var(--sandstone-soft); }
.coverage__cta-link:focus-visible { outline-color: var(--white); }

/* phones: the book's phone mock, a badge beside its words */
@media (max-width: 600px) {
  .coverage__card:not(.coverage__card--cta) {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    min-height: 0;
    padding: 22px 20px;
  }
  .coverage__card:not(.coverage__card--cta) .coverage__badge { grid-row: 1 / span 2; }
  .coverage__card:not(.coverage__card--cta) .coverage__name { margin-top: 2px; }
  .coverage__card--cta { min-height: 0; padding: 24px 22px; }
}
