/* Each complete review forms one received message, including its author and source. */
.customer-stories {
  padding: clamp(52px, 6vw, 84px) 0 48px;
  background: #fff;
  color: #1d1d1f;
}
.customer-stories > .reviews-wrap {
  max-width: 1380px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 72px);
}
.reviews-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 36px;
}
.reviews-intro { margin: 16px 0 0; color: #6e6e73; font-size: 14px; line-height: 1.6; }
.reviews-google-summary { display: grid; justify-items: end; gap: 14px; }
.reviews-google-score {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.reviews-google-rating { font-size: 38px; font-weight: 550; line-height: 1; letter-spacing: -.06em; }
.reviews-google-caption { display: grid; gap: 3px; color: #6e6e73; font-size: 12px; line-height: 1.4; }
.reviews-google-label { color: #1d1d1f; font-size: 14px; font-weight: 550; }
.review-link svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reviews-google-score:focus-visible { outline: 2px solid #0071e3; outline-offset: 4px; border-radius: 4px; }
.reviews-eyebrow {
  margin: 0 0 14px;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .065em;
}
.reviews-header h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.reviews-sample-note {
  margin: 15px 0 0;
  color: #66666c;
  font-size: 13px;
  line-height: 1.6;
}
.reviews-sample-note[hidden] { display: none; }
.reviews-track {
  --review-gap: 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--review-gap)) / 3);
  align-items: stretch;
  gap: var(--review-gap);
  padding-inline: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track.reviews-is-looping { scroll-snap-type: none; }
.reviews-track:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 6px;
  border-radius: 3px;
}
.review-card {
  --message-fill: #e9e9ed;
  --message-radius: 30px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  margin: 12px 0 14px;
  padding: 26px;
  border: 0;
  border-radius: var(--message-radius);
  background: var(--message-fill);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.review-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: -12px;
  width: 40px;
  height: 34px;
  background: var(--message-fill);
  -webkit-mask: url('/images/reviews/message-tail.svg') center / contain no-repeat;
  mask: url('/images/reviews/message-tail.svg') center / contain no-repeat;
  pointer-events: none;
}
.review-person-details { min-width: 0; }
.review-person {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin: 0 0 20px;
}
.review-avatar {
  position: relative;
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
}
.review-avatar img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  max-width: none;
  height: 80px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transform-origin: 50% 80%;
  transition: transform 550ms cubic-bezier(.22, 1, .36, 1);
}
.review-name {
  display: block;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.review-context {
  display: block;
  margin-top: 4px;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.review-quote {
  flex: 1 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.review-quote p {
  margin: 0;
  color: #1d1d1f;
  font-family: var(--font-sans);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.review-source { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 0; }
.review-stars { display: flex; gap: 2px; color: #9a6e27; }
.review-stars span { display: flex; }
.review-stars .is-empty { color: #d3d3d8; }
.review-stars svg { width: 13px; height: 13px; fill: currentColor; }
.review-link { display: inline-flex; align-items: center; gap: 4px; color: #0071e3; font-size: 12px; line-height: 1.6; white-space: nowrap; text-decoration: none; }
.review-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--message-radius); }
.review-link:focus-visible { outline: none; }
.review-link:focus-visible::after { outline: 2px solid #0071e3; outline-offset: -2px; }
.reviews-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}
.reviews-controls[hidden] { display: none; }
.reviews-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.reviews-navigation { display: flex; align-items: center; gap: 20px; }
.reviews-arrow {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #303034;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.reviews-arrow svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reviews-arrow:disabled { opacity: .28; cursor: default; }
.reviews-motion-toggle svg { width: 22px; height: 22px; stroke-width: 1.7; }
.reviews-motion-toggle[hidden] { display: none; }
.reviews-arrow:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .review-card:hover .review-avatar img { transform: translate(-50%, calc(-50% - 2px)) rotate(-3deg); }
  .reviews-arrow:hover:not(:disabled) { background: #e6e6eb; }
  .review-card:hover .review-link { color: #0071e3; }
}
@media (max-width: 1000px) {
  .reviews-header { grid-template-columns: 1fr; gap: 24px; }
  .reviews-google-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .reviews-track { --review-gap: 24px; grid-auto-columns: calc((100% - var(--review-gap)) / 2); }
  .review-quote p { font-size: 21px; }
}
@media (max-width: 640px) {
  .customer-stories { padding: 46px 0 34px; }
  .reviews-header { margin-bottom: 28px; }
  .reviews-header h2 { max-width: 16ch; font-size: 32px; }
  .reviews-eyebrow { margin-bottom: 12px; }
  .reviews-sample-note { max-width: 35ch; font-size: 12px; }
  .reviews-google-summary { align-items: flex-start; flex-direction: column; gap: 16px; }
  .reviews-google-rating { font-size: 32px; }
  .reviews-track { --review-gap: 18px; grid-auto-columns: calc(100% - 24px); }
  .review-card { margin-block: 10px 12px; padding: 24px 22px; }
  .review-person { gap: 12px; min-height: 56px; margin-bottom: 20px; }
  .review-avatar { flex-basis: 50px; width: 50px; height: 50px; }
  .review-avatar img { width: 72px; height: 72px; }
  .review-name { font-size: 14px; }
  .review-context { font-size: 11px; }
  .review-quote p { font-size: 20px; }
  .review-source { margin-top: 22px; }
  .reviews-controls { margin-top: 22px; }
  .reviews-navigation { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .review-avatar img, .reviews-arrow { transition: none; }
  .review-card:hover .review-avatar img { transform: translate(-50%, -50%); }
}
