/* 50 Reviews. A taupe band from the business card, the curl pattern faint at both edges.
   Centred: the Treatwell score, one large quote between previous and next arrows,
   and dots underneath (the current one drawn longer). Nothing moves on its own. */

.reviews { position: relative; isolation: isolate; overflow: hidden; background: var(--cocoa); color: var(--ivory); }
.reviews::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(../img/pattern-curl-light.png) center / 420px auto repeat;
  opacity: .07;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 14%, transparent 34%, transparent 66%, #000 86%, #000 100%);
          mask-image: linear-gradient(to right, #000 0, #000 14%, transparent 34%, transparent 66%, #000 86%, #000 100%);
}
.reviews-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.reviews :focus-visible { outline-color: var(--camel); }

/* Head: small title and the score */
.reviews-title { font: 600 13px/1.4 var(--f-body); letter-spacing: 0.01em; color: var(--camel); }
.reviews-score { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.reviews-score-num { font: 400 15px/1 var(--f-body); color: var(--ivory); font-variant-numeric: lining-nums; }
.reviews-stars { display: flex; gap: 3px; color: var(--camel); }
.reviews-stars svg { width: 13px; height: 13px; overflow: visible; fill: currentColor; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.reviews-stars .reviews-star-line { fill: none; }
.reviews-score-text { font-size: 14px; line-height: 1.4; color: var(--mute-dark); }

/* The quote between the arrows. Every slide shares one grid cell, so the band keeps its height. */
.reviews-body { width: 100%; margin-top: clamp(36px, 4vw, 56px); }
.reviews-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 48px); }
.reviews-stage { display: grid; align-items: center; min-height: 4.2em; font-size: calc(clamp(30px, 4vw, 58px) * var(--display-scale)); touch-action: pan-y; }
.reviews-slide { grid-area: 1 / 1; margin: 0; }
.js .reviews-slide { opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s linear .5s; }
.js .reviews-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .1s, transform .7s var(--ease) .05s, visibility 0s; }
html:not(.js) .reviews-slide:not(.is-active) { display: none; }
.reviews-quote { margin: 0; }
.reviews-quote p {
  max-width: 22ch; margin-inline: auto;
  font-family: var(--f-display); font-weight: var(--display-weight);
  line-height: calc(var(--display-lead) + 0.12); letter-spacing: var(--display-track);
  color: var(--ivory); text-wrap: balance;
}
.reviews-quote p::before { content: "\201C"; }
.reviews-quote p::after { content: "\201D"; }
.reviews-cite { margin-top: 0.7em; font: 500 15px/1.4 var(--f-body); color: var(--ivory); }
.reviews-cite-src { color: var(--mute-dark); font-weight: 400; }

.reviews-arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid #F7F5F059; color: var(--ivory);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.reviews-arrow:hover { background: var(--ivory); border-color: var(--ivory); color: var(--cocoa); }
.reviews-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Dots: the current one stretches into a short bar */
.reviews-dots { display: flex; justify-content: center; align-items: center; gap: 2px; margin-top: clamp(28px, 3vw, 40px); }
.reviews-dot { display: grid; place-items: center; width: 24px; height: 24px; }
.reviews-dot::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: #F7F5F066; transition: width .4s var(--ease), background-color .3s var(--ease); }
.reviews-dot:hover::before { background: var(--ivory); }
.reviews-dot[aria-current="true"] { width: 40px; }
.reviews-dot[aria-current="true"]::before { width: 28px; background: var(--camel); }
.reviews-dot { transition: width .4s var(--ease); }

.reviews-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: clamp(36px, 3.6vw, 52px); height: 46px; padding: 0 22px;
  border-radius: var(--r-pill); border: 1px solid #F7F5F059;
  font: 600 14px/1 var(--f-body); color: var(--ivory);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.reviews-link:hover { background: var(--ivory); border-color: var(--ivory); color: var(--cocoa); }
.reviews-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 640px) {
  .reviews::before { background-size: 300px auto; -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 30%, transparent 70%, #000 100%); mask-image: linear-gradient(to bottom, #000 0, transparent 30%, transparent 70%, #000 100%); }
  .reviews-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 28px; }
  .reviews-stage { grid-column: 1 / -1; grid-row: 1; min-height: 6.2em; font-size: calc(clamp(26px, 8vw, 34px) * var(--display-scale)); }
  .reviews-prev { grid-row: 2; justify-self: end; }
  .reviews-next { grid-row: 2; justify-self: start; }
  .reviews-arrow { width: 46px; height: 46px; }
  .reviews-dots { margin-top: 20px; }
}
