/* Wall of love: hairline-bordered grid of logo cells and quote cells. */

.site-frame section.wl {
  --wl-line: #e5e7eb;
  margin: 0;
  padding: clamp(3rem, 6vw, 5rem) 24px 0;
}
.wl-head p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}
.wl-head h2 {
  max-width: 20ch;
  margin: 0.625rem 0 0;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.wl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem -24px 0;
  background: var(--wl-line);
  border-block: 1px solid var(--wl-line);
}
.wl-grid > * {
  background: #ffffff;
}

/* A logo cell */
.wl-logo {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 1.5rem;
}
.wl-logo img {
  display: block;
  width: auto;
  max-width: 62%;
  max-height: 2.75rem;
  object-fit: contain;
}

/* A quote cell: two columns wide */
.wl-q {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 20rem;
  margin: 0;
  padding: 2.5rem;
}
.wl-q__logo {
  display: block;
  align-self: flex-start;
  width: auto;
  max-width: 11rem;
  height: 1.75rem;
  object-fit: contain;
  object-position: left center;
}
.wl-q blockquote,
.wl-case blockquote {
  margin: 0;
}
.wl-q blockquote p,
.wl-case blockquote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #525252;
  text-wrap: pretty;
}
.wl-q strong,
.wl-case strong {
  font-weight: 600;
  color: #171717;
}
.wl-q figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}
.wl-tags {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wl-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: #525252;
}
.wl-tile {
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.375rem;
  background: var(--t);
  color: #ffffff;
}
.wl-tile svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* The person: name and role, then the avatar */
.wl-by {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.wl-by > span {
  display: grid;
  line-height: 1.3;
  text-align: right;
}
.wl-by b {
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
}
.wl-by small {
  font-size: 0.8125rem;
  color: #6b7280;
}
.wl-av {
  display: block;
  flex: none;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 0.625rem;
  object-fit: cover;
  object-position: top;
  background: #f3f4f6;
}

/* Case studies: a three-column wall of quotes */
.wl-grid--cases {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wl-case {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 14rem;
  padding: 2rem 2.25rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.wl-case:hover {
  background: #fafafa;
}
.wl-case:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: -2px;
}
.wl-case blockquote {
  flex: 1;
}
.wl-by--l {
  gap: 0.75rem;
}
.wl-by--l > span {
  text-align: left;
}
.wl-by--l .wl-av {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 22%;
}
.wl-go {
  margin-left: auto;
  font-style: normal;
  color: #9ca3af;
  transition: color 150ms ease, transform 150ms ease;
}
.wl-case:hover .wl-go {
  color: #171717;
  transform: translateX(2px);
}

@media (max-width: 960px) {
  .wl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wl-grid--cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .site-frame section.wl {
    padding-inline: 16px;
  }
  .wl-grid {
    margin-inline: -16px;
  }
  .wl-grid--cases {
    grid-template-columns: minmax(0, 1fr);
  }
  .wl-q {
    padding: 1.75rem 1.5rem;
  }
  .wl-logo {
    min-height: 8rem;
  }
  .wl-case {
    padding: 1.5rem;
  }
}

/* The logo files are white (made for a dark page): render them as black marks, as the old page did */
.wl-logo img,
.wl-q__logo {
  filter: brightness(0);
  opacity: 0.88;
}

/* A person with no app icon: their company's initial */
.wl-av--ph {
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
}

/* FAQ: full-width hairline rows that open in place, like the grid above */
.faq-list {
  margin: 2.5rem -24px 0;
  border-block: 1px solid var(--wl-line);
}
.faq-list details + details {
  border-top: 1px solid var(--wl-line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  padding: 1rem 24px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.25rem;
  border-right: 1.5px solid #6b7280;
  border-bottom: 1.5px solid #6b7280;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq-list summary:hover {
  background: #fafafa;
}
.faq-list summary:focus-visible {
  outline: 2px solid #171717;
  outline-offset: -2px;
}
.faq-list details p {
  max-width: 46rem;
  margin: -0.25rem 0 0;
  padding: 0 24px 1.5rem;
  color: #525252;
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.faq-list details p:not(:last-child) {
  padding-bottom: 0.75rem;
}
.faq-list details p + p {
  margin-top: 0;
}
.faq-list details p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .faq-list summary,
  .faq-list summary::after {
    transition: none;
  }
}
