.ap-how {
  --how-rule: color-mix(in srgb, currentColor 19%, transparent);
  --how-space: clamp(1.25rem, 3vw, 2.5rem);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  max-width: 76rem;
  margin-inline: auto;
  padding: .5rem clamp(1rem, 4vw, 3.5rem) 2rem;
  text-align: start;
  line-height: 1.6;
}

.ap-how-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: .5rem 1.25rem;
}

.ap-how h1, .ap-how h2 {
  font-family: inherit;
  letter-spacing: -.035em;
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

.ap-how h1 { font-size: clamp(2.45rem, 4.8vw, 4.25rem); }
.ap-how h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
.ap-how h2, .ap-how-products { scroll-margin-top: 8rem; }
.ap-how-brand { font-weight: 700; margin-bottom: .65rem; }
.ap-how-intro h1 + p, .ap-how-sections section > p {
  margin-top: 1rem;
  max-width: 66ch;
  font-size: 1.15rem;
}

.ap-how figure { margin: 0; }
.ap-how figure img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.ap-how figcaption { margin-top: .65rem; font-size: .875rem; }
.ap-how a { color: inherit; text-decoration: none; }
.ap-how a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.ap-how-links { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; font-weight: 650; }
.ap-how a.ap-how-primary {
  background: #a52329;
  color: #fff;
  padding: .65rem 1rem;
  border-radius: .3rem;
  text-decoration: none;
}
.ap-how a.ap-how-primary:hover { background: #85181d; }
.ap-how a.ap-how-primary:focus-visible { outline-color: #ba3339; }

.ap-how-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0 var(--how-space);
  padding-block: 1rem 2rem;
}

.ap-how-products a {
  display: grid;
  align-content: start;
  gap: .4rem;
  border-top: 1px solid var(--how-rule);
  padding-block: 1rem;
  text-decoration: none;
}

.ap-how-products strong { font-size: 1.15rem; }
.ap-how-products a > i { grid-row: 1 / 3; font-size: 1.35rem; }
.ap-how-products a { grid-template-columns: 1.65rem 1fr; column-gap: .75rem; }
.ap-how-products a > span { grid-column: 2; }
.ap-how-links a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid var(--how-rule);
  border-radius: .4rem;
}
.ap-how-links a:hover, .ap-how-products a:hover { border-color: currentColor; }
.ap-how-arrow { display: inline-block; font-weight: 500; }
.ap-how-sections section {
  /* Match Why’s open narrative rows and horizontal chapter dividers. */
  padding-block: clamp(42px, 7vw, 92px);
  border-top: 1px solid var(--ap-border, #d9dee7);
}

.ap-how-sections dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.4rem 2rem;
  margin: 1.5rem 0 0;
}
.ap-how dt { font-weight: 700; }
.ap-how dd { margin: .35rem 0 0; }

@media (max-width: 48rem) {
  .ap-how-intro { grid-template-columns: 1fr; }
}

@media (min-width: 60rem) {
  .ap-how-sections section {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    grid-template-rows: auto auto 1fr;
    align-content: start;
    column-gap: clamp(36px, 7vw, 124px);
  }
  .ap-how-sections section > h2,
  .ap-how-sections section > p,
  .ap-how-sections .ap-how-links { grid-column: 1; }
  .ap-how-sections .ap-how-links { align-self: start; }
  .ap-how-sections dl {
    grid-column: 2;
    grid-row: 1 / 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    margin: 0;
  }
}

.ap-how-sections h2 {
  font-size: clamp(2.5rem, 4.2vw, 5.2rem);
  font-weight: 760;
  letter-spacing: -.067em;
  line-height: .96;
}
@media (max-width: 760px) {
  .ap-how-sections section { padding-block: 56px 44px; }
  .ap-how-sections dl { grid-template-columns: 1fr; }
}
