/* =============================================================================
   Reviews page: the five-star score card in the hero, the draggable review
   wall (set piece) and the "why members join" rows.
   Default: the wall is a static grid (no JS, reduced motion, no Draggable).
   reviews-wall.js adds .is-live and turns it into a dragged strip.
   ========================================================================== */

/* ------------------------------------------------------ hero score card */
.rvh-wrap { position: relative; display: grid; justify-items: center; perspective: 1200px; }
.rvh-card {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(100%, 600px); padding: clamp(28px, 3.4vw, 50px);
  border-radius: 30px; color: var(--ink);
  background: radial-gradient(120% 100% at 88% 0%, rgba(220,238,226,.95) 0%, #fff 55%);
  box-shadow: 0 50px 90px -42px rgba(12,59,39,.55), 0 0 0 1px rgba(12,59,39,.06);
  transform-style: preserve-3d;
}
.rvh-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(12,59,39,.13) 1px, transparent 1.4px); background-size: 12px 12px; opacity: .5;
}
.rvh-card .card-glare { border-radius: inherit; }
.rvh-stars {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 3%;
  margin: 0 0 clamp(1.4rem, 2.8vw, 2.2rem); padding-bottom: 6%;
}
.rvh-s { flex: 1 1 0; display: block; }
.rvh-s:nth-child(1) { transform: translateY(26%) rotate(-12deg); }
.rvh-s:nth-child(2) { transform: translateY(8%) rotate(-6deg); }
.rvh-s:nth-child(4) { transform: translateY(8%) rotate(6deg); }
.rvh-s:nth-child(5) { transform: translateY(26%) rotate(12deg); }
.rvh-pop { display: block; }
.rvh-star { display: block; width: 100%; height: auto; overflow: visible; }
.rvh-star path {
  fill: var(--honey); stroke: #D99A1E; stroke-width: 1.1; stroke-linejoin: round;
  filter: drop-shadow(0 6px 10px rgba(217,154,30,.35));
}
.rvh-n {
  position: relative; z-index: 1; margin: 0 0 .3em;
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.035em; color: var(--pine);
}
.rvh-l { position: relative; z-index: 1; margin: 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.45; color: rgba(14,21,18,.72); }

/* -------------------------------------------------------------- the wall */
.rw { overflow: clip; }
.rw-head {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem 2rem;
  margin-bottom: clamp(1.8rem, 3.4vw, 2.8rem);
}
.rw-head .h2 { margin: 0; }
.rw-ctrls { display: none; gap: .7rem; }
.rw.is-live .rw-ctrls { display: flex; }
.rw-btn {
  width: 60px; height: 60px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.42); background: rgba(255,255,255,.06); color: #fff;
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.rw-btn svg { width: 24px; height: 24px; }
.rw-btn:hover { background: #fff; color: var(--pine); border-color: #fff; }
.rw-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.rw-btn[aria-disabled="true"]:hover { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.42); }

.rw-vp { position: relative; z-index: 1; }
.rw-track {
  width: min(100% - 2 * var(--gut), 1440px); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.rw-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.2vw, 32px); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 34px 60px -34px rgba(0,0,0,.55);
}
.rw-card::before {
  content: "\201C"; position: absolute; z-index: -1; right: 16px; top: -6px;
  font: 800 7rem/1 var(--display); color: var(--mint);
}
.rw .rw-stars { display: flex; gap: 4px; margin: 0 0 1rem; }
.rw-stars svg { width: 22px; height: 22px; fill: var(--honey); }
.rw-q { margin: 0 0 1.4rem; }
.rw .rw-q p { margin: 0; font-size: 1.125rem; line-height: 1.55; color: rgba(14,21,18,.82); }
.rw .rw-name {
  margin: auto 0 0; display: flex; align-items: center; gap: .75rem;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink);
}
.rw-av {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--mint); color: var(--tick-dark); font-size: 1.1rem;
}

.rw-foot { position: relative; z-index: 1; display: none; align-items: center; gap: 1rem 1.6rem; flex-wrap: wrap; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.rw-prog { flex: 1 1 240px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.rw-prog i { position: absolute; inset: 0; display: block; background: var(--mint-deep); transform-origin: left center; transform: scaleX(0); }
.rw .rw-hint { margin: 0; font-size: 1.0625rem; color: rgba(255,255,255,.74); }

/* live strip (JS with Draggable, full motion) */
.rw.is-live .rw-vp { overflow: clip; }
.rw.is-live .rw-vp:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 6px; border-radius: 8px; }
.rw.is-live .rw-track {
  display: flex; width: max-content; margin: 0;
  padding: 6px max(var(--gut), calc((100% - 1440px) / 2)) 10px;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.rw.is-live .rw-card { flex: 0 0 clamp(280px, 29vw, 420px); }
.rw.is-live .rw-foot { display: flex; }
@media (max-width: 639px) {
  .rw.is-live .rw-card { flex-basis: 82vw; }
  .rw-btn { width: 52px; height: 52px; }
}

/* ------------------------------------------------------- why members join */
.rj-grid { display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 980px) { .rj-grid { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); } }
.rj-intro > p { color: rgba(14,21,18,.78); }
.rj-fan { --fh: clamp(210px, 34vh, 330px); position: relative; height: var(--fh); margin-top: clamp(1.4rem, 3vw, 2.4rem); }
.rj-fan-i { position: absolute; top: 0; height: var(--fh); width: calc(var(--fh) * .8); display: block; }
.rj-fan-1 { left: 0; z-index: 1; }
.rj-fan-2 { left: calc(50% - var(--fh) * .4); z-index: 3; }
.rj-fan-3 { right: 0; z-index: 2; }
.rj-fan-in {
  display: block; width: 100%; height: 100%; overflow: hidden;
  border-radius: 22px; border: 5px solid #fff; background: var(--pine);
  box-shadow: 0 34px 60px -30px rgba(12,59,39,.65);
}
.rj-fan-1 .rj-fan-in { transform: rotate(-7deg) translateY(6%); }
.rj-fan-2 .rj-fan-in { transform: rotate(-1deg); }
.rj-fan-3 .rj-fan-in { transform: rotate(6deg) translateY(8%); }
.rj-fan-in img { width: 100%; height: 100%; object-fit: cover; }

.rj-list { display: grid; gap: 12px; margin: 0 0 1.4rem; }
.rj-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) 46px; align-items: center;
  gap: clamp(.9rem, 1.6vw, 1.4rem); padding: 12px 18px 12px 12px;
  border-radius: 22px; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.74); border: 1px solid rgba(12,59,39,.08);
  box-shadow: 0 22px 44px -36px rgba(12,59,39,.6);
  transition: background-color .3s, box-shadow .3s;
}
.rj-row:hover { background: #fff; box-shadow: 0 30px 56px -34px rgba(12,59,39,.7); }
.rj-thumb { display: block; width: 88px; height: 88px; border-radius: 16px; overflow: hidden; background: var(--pine); }
.rj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.rj-row:hover .rj-thumb img { transform: scale(1.1); }
.rj-t { display: block; margin-bottom: .25rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 1.5vw, 1.4rem); line-height: 1.15; letter-spacing: -.02em; }
.rj-l { display: block; font-size: 1.0625rem; line-height: 1.45; color: rgba(14,21,18,.72); }
.rj-go {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tick); color: #fff; transition: background-color .3s, transform .3s;
}
.rj-go svg { width: 20px; height: 20px; }
.rj-row:hover .rj-go { background: var(--pine); transform: translateX(4px); }
.rj-all { margin: 0; }
@media (max-width: 560px) {
  .rj-row { grid-template-columns: 64px minmax(0, 1fr); padding-right: 14px; }
  .rj-thumb { width: 64px; height: 64px; }
  .rj-go { display: none; }
}

/* QA: the score card sits at the start of its column, so no empty strip reads as space beside the intro */
@media (min-width: 1000px) { .rvh-wrap { justify-items: start; } }
/* QA: row arrows sit level with the title so no empty space reads as room beside the text */
.rj-row { align-items: start; }
.rj-txt { flex: 1 1 auto; min-width: 0; }
/* the arrow rides after the title, so the text column runs the full width of the row */
.rj-row { grid-template-columns: 88px minmax(0, 1fr); }
@media (max-width: 560px) { .rj-row { grid-template-columns: 64px minmax(0, 1fr); } }
.rj-go { display: none; }
.rj-t::after {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .45em; vertical-align: -.08em;
  background: currentColor; transition: transform .3s;
  -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.rj-row:hover .rj-t::after { transform: translateX(4px); }
