/* Testimonial section — Figma aps0Z2gYOHJLaALChIIwdt / 13080:1810 */
.sec-testimonial {
  padding-block: 106px 0;
  background: var(--color-surface);
}

.sec-testimonial__inner {
  /* the Figma frame is exactly 1044px wide with no outer gutter */
  width: min(var(--container-narrow), calc(100% - 48px));
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 104px;
}

/* ---------- title ---------- */

.sec-testimonial__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sec-testimonial__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -2px;
  color: var(--color-ink);
  text-align: center;
  white-space: nowrap;
}

.sec-testimonial__review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-inline: 30px;
}

.sec-testimonial__rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-testimonial__score {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-ink);
  white-space: nowrap;
}

.sec-testimonial__stars {
  display: flex;
  align-items: center;
  gap: 3.103px;
}

.sec-testimonial__star {
  width: 15.517px;
  height: 15.517px;
  flex: none;
}

.sec-testimonial__source {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sec-testimonial__source-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  white-space: nowrap;
}

/* ---------- grid ---------- */

.sec-testimonial__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 0;
  row-gap: 96px;
}

.sec-testimonial__card {
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: 24px;
  min-width: 0;
}

/* hairline dividers — drawn as overlays so every column keeps the same width */
.sec-testimonial__card::before,
.sec-testimonial__card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(59, 59, 59, 0.12);
}

.sec-testimonial__card::before {
  left: 0;
}

.sec-testimonial__card::after {
  right: 0;
}

/* only the first card of each row shows a left rule; the last shows no right rule */
.sec-testimonial__card:not(:nth-child(3n + 1))::before,
.sec-testimonial__card:nth-child(3n)::after {
  content: none;
}

.sec-testimonial__card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
}

.sec-testimonial__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
}

/* ---------- brand logos ---------- */

.sec-testimonial__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-testimonial__logo-mark {
  flex: none;
}

.sec-testimonial__logo-name {
  /* real company names are set in the page's own Inter, not a display webfont */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  color: #000000;
  white-space: nowrap;
}

/*
 * Mark sizes come straight from Figma and match each SVG's own aspect ratio,
 * so nothing is distorted. X and Amazon carry the company name inside the
 * artwork, so they have no wordmark text beside them.
 */

.sec-testimonial__logo--google .sec-testimonial__logo-mark {
  width: 22.51px;
  height: 23px;
}

.sec-testimonial__logo--openai .sec-testimonial__logo-mark {
  width: 22.64px;
  height: 23px;
}

.sec-testimonial__logo--x .sec-testimonial__logo-mark {
  width: 24px;
  height: 24px;
}

.sec-testimonial__logo--airbnb {
  gap: 11.32px;
}

.sec-testimonial__logo--airbnb .sec-testimonial__logo-mark {
  width: 21.38px;
  height: 23px;
}

/* full lockup — mark and wordmark in one file */
.sec-testimonial__logo--amazon .sec-testimonial__logo-mark {
  width: 79.55px;
  height: 24px;
}

.sec-testimonial__logo--meta {
  gap: 6px;
}

/* the Meta mark is wide and visually heavy, so it sits shorter than its siblings */
.sec-testimonial__logo--meta .sec-testimonial__logo-mark {
  width: 29.96px;
  height: 20px;
}

/* ---------- quote ---------- */

.sec-testimonial__quote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
  width: 100%;
}

/* ---------- profile ---------- */

.sec-testimonial__profile {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.sec-testimonial__avatar {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  overflow: hidden;
}

.sec-testimonial__avatar--tinted {
  background: #dad2c7;
}

.sec-testimonial__avatar-img {
  position: absolute;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

/* per-avatar crops carried over from the Figma frame */
.sec-testimonial__avatar-img--01 {
  left: -30.32%;
  top: -1.35%;
  width: 144.46%;
  height: 216.67%;
}

.sec-testimonial__avatar-img--02 {
  left: -33.4px;
  top: 4.06px;
  width: 120.051px;
  height: 90.39px;
  transform: rotate(-10.08deg);
}

.sec-testimonial__avatar-img--03 {
  left: -28.79%;
  top: -10.58%;
  width: 155.02%;
  height: 232.51%;
}

.sec-testimonial__avatar-img--04 {
  left: -33px;
  top: -2px;
  width: 114.035px;
  height: 78px;
}

.sec-testimonial__avatar-img--05 {
  left: -82.93%;
  top: 0.9%;
  width: 237.15%;
  height: 184.46%;
}

.sec-testimonial__avatar-img--06 {
  left: -121.21%;
  top: -32.37%;
  width: 377.44%;
  height: 258.29%;
}

.sec-testimonial__person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.sec-testimonial__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  margin-bottom: -2px;
  white-space: nowrap;
}

.sec-testimonial__role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .sec-testimonial {
    padding-block: 72px;
  }

  .sec-testimonial__inner {
    gap: 64px;
  }

  .sec-testimonial__title {
    font-size: 34px;
    letter-spacing: -1px;
    white-space: normal;
  }

  .sec-testimonial__review {
    flex-wrap: wrap;
    padding-inline: 0;
  }

  .sec-testimonial__grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .sec-testimonial__card {
    padding-inline: 0;
    padding-bottom: 48px;
  }

  .sec-testimonial__card::before {
    content: none;
  }

  .sec-testimonial__card:nth-child(n)::after {
    content: "";
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 1px;
  }

  .sec-testimonial__card:last-child {
    padding-bottom: 0;
  }

  .sec-testimonial__card:last-child::after {
    content: none;
  }
}
