/*!
 * MeTenk landing page — real review marquee
 * ---------------------------------------------------------------------------
 * A quiet, seamless wall of genuine store feedback. Cards carry only the
 * rating, the quote and the reviewer's nickname — no platform labels, no
 * dialogs. Visual language follows assets/landing.css: deep black surfaces,
 * hairline borders, blue accent (#4361ee / #4895ef), compact radii.
 */

/* ---------- Section shell ---------- */

.reviews {
  position: relative;
  padding: 88px 0 76px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(760px 300px at 50% 0%, rgba(67, 97, 238, 0.1), transparent 72%),
    #0a0a0a;
  overflow: hidden;
}

.reviews .section-header {
  padding: 0 20px;
  margin-bottom: 30px;
}

/* Social proof is a quieter band than the feature sections above it. */
.reviews .section-title {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 38px);
  text-wrap: balance;
}

.reviews .section-subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.65;
}

.reviews-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.reviews-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(103, 136, 255, 0.26);
  border-radius: 6px;
  background: rgba(67, 97, 238, 0.09);
  color: #a9c1ff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reviews-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fa1ff;
  box-shadow: 0 0 10px rgba(127, 161, 255, 0.9);
}

/* ---------- Combined rating pill ---------- */

.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #d8dbe2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.reviews-summary[hidden] {
  display: none;
}

.reviews-summary-star {
  color: #fbbf24;
  font-size: 12.5px;
  line-height: 1;
}

.reviews-summary strong {
  color: #ffffff;
  font-weight: 700;
}

/* ---------- Marquee ---------- */

.reviews-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.reviews-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  padding: 8px 0 6px;
  animation-name: reviews-scroll;
  animation-duration: 96s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reviews-marquee:hover .reviews-track,
.reviews-marquee:focus-within .reviews-track,
.reviews-marquee.is-paused .reviews-track {
  animation-play-state: paused;
}

/* ---------- Review card ---------- */

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 332px;
  height: 244px;
  margin-right: 14px;
  padding: 20px 20px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 58%, rgba(67, 97, 238, 0.04) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 136, 255, 0.3);
  background:
    linear-gradient(160deg, rgba(67, 97, 238, 0.11) 0%, rgba(255, 255, 255, 0.03) 58%, rgba(67, 97, 238, 0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.34);
}

/* A folded card keeps the wall even; expanding reveals the full quote. */
.review-card.is-expanded {
  height: auto;
  min-height: 244px;
}

.review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding-top: 2px;
  color: #fbbf24;
}

.review-stars svg {
  width: 12.5px;
  height: 12.5px;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(251, 191, 36, 0.18));
}

.review-stars svg.is-empty {
  opacity: 0.2;
  filter: none;
}

.review-quote-mark {
  margin-top: -9px;
  color: rgba(147, 197, 253, 0.15);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 44px;
  line-height: 1;
  user-select: none;
  transition: color 0.3s ease;
}

.review-card:hover .review-quote-mark {
  color: rgba(147, 197, 253, 0.26);
}

.review-body-wrap {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-height: 0;
}

.review-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  width: 100%;
  margin: 0;
  padding: 10px 0 0;
  overflow: hidden;
  color: #c7ccd4;
  font-size: 13.5px;
  line-height: 1.62;
  letter-spacing: 0.005em;
  word-break: break-word;
}

/* Fade the last line instead of cutting it with a hard edge. */
.review-body.has-more {
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}

.review-card.is-expanded .review-body {
  display: block;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.review-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #9db4ff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.review-more[hidden] {
  display: none;
}

.review-more:hover {
  color: #c9d7ff;
}

.review-more svg {
  width: 11px;
  height: 11px;
  transition: transform 0.2s ease;
}

.review-card.is-expanded .review-more svg {
  transform: rotate(180deg);
}

.review-card-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 11px;
  opacity: 0.82;
  transition: opacity 0.3s ease;
}

.review-card:hover .review-card-foot {
  opacity: 1;
}

.review-card-foot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
}

.review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
}

.review-avatar svg {
  width: 11px;
  height: 11px;
  display: block;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.review-avatar--photo {
  background: #151821;
}

.review-author {
  min-width: 0;
  overflow: hidden;
  color: #c3c8d1;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: rgba(107, 155, 255, 0.72);
}

.review-verified svg {
  width: 12px;
  height: 12px;
  display: block;
}

/* ---------- Clock Max page ---------- */

.reviews--clockmax {
  padding: 72px 0 40px;
}

.reviews--clockmax .section-header {
  text-align: center;
  margin-bottom: 26px;
}

.reviews--clockmax .section-title {
  margin-bottom: 10px;
  font-size: clamp(26px, 3.4vw, 34px);
  text-wrap: balance;
}

.reviews--clockmax .section-subtitle {
  max-width: 600px;
  margin: 8px auto 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .reviews {
    padding: 58px 0 50px;
  }

  .reviews .section-header {
    margin-bottom: 22px;
  }

  .reviews-eyebrow {
    margin-bottom: 12px;
  }

  .reviews-summary {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .review-card {
    width: 286px;
    height: 222px;
    margin-right: 12px;
    padding: 17px 17px 13px;
  }

  .review-card.is-expanded {
    height: auto;
    min-height: 222px;
  }

  .review-quote-mark {
    font-size: 36px;
    margin-top: -7px;
  }

  .review-body {
    padding: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
  }

  .review-avatar {
    width: 18px;
    height: 18px;
  }

  .review-author {
    font-size: 11px;
  }

  .reviews--clockmax {
    padding: 56px 0 36px;
  }
}

/* ---------- Reduced motion: static, manually scrollable row ---------- */

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation: none;
    transform: none;
  }

  .reviews-marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .review-card {
    scroll-snap-align: start;
  }

  .review-card[data-clone="true"] {
    display: none;
  }
}
