/* /reviews/: the free review app's page. A normal scrolling page in the site's language (studio.css tokens, header, buttons);
   the hero runs station 01's scene (stations/reviews.js) behind the words, the rest is typography on ink. */

html.rv-page,
html.rv-page body {
  scroll-snap-type: none;
}

html.rv-page {
  scroll-padding-top: 112px;
}

.rv-root {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: clip;
  background: var(--c-ink);
}

/* The header keeps the home page's geometry; on a scrolling page it carries its own ink so copy never runs under it. */
.rv-page .topbar {
  padding-bottom: 28px;
}

.rv-page .topbar::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgb(16 26 27 / 0.96) 0,
    rgb(16 26 27 / 0.96) calc(100% - 28px),
    rgb(16 26 27 / 0) 100%);
  pointer-events: none;
}

.rv-page a.phone-counter {
  display: none;
  text-decoration: none;
}

/* ---------- hero: station 01's scene behind the words ---------- */

.rv-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, var(--panel-w)) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 136px max(var(--page-inset), calc((100vw - 1568px) / 2 + var(--page-inset))) 72px;
}

.rv-scene {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  background: var(--c-ink);
}

.rv-hero::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg,
    rgb(16 26 27 / var(--scrim-web)) 0%,
    rgb(16 26 27 / var(--scrim-web)) 46%,
    rgb(16 26 27 / 0) 64%);
}

/* the hero's lower edge melts into the page */
.rv-hero::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 96px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgb(16 26 27 / 0), var(--c-ink));
}

.rv-hero-panel {
  position: relative;
  z-index: 3;
  width: min(100%, var(--panel-w));
  min-width: 0;
}

.rv-hero h1 {
  max-width: 10ch;
}

.rv-plate {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 880 / 520;
  object-fit: cover;
  pointer-events: none;
  transition: opacity var(--dur-out) var(--ease);
}

.rv-hero[data-scene="on"] .rv-plate {
  opacity: 0;
}

.rv-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin: 28px 0 0;
}

.rv-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.rv-qr img {
  display: block;
  width: 88px;
  height: 88px;
  padding: 0;
  border-radius: var(--r-control);
  background: #ffffff;
}

.rv-qr figcaption {
  max-width: 13ch;
  color: var(--c-muted);
  font: 500 var(--fs-label)/1.5 var(--font-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.rv-note {
  margin: 20px 0 0;
  color: var(--c-muted);
  font: 500 var(--fs-label)/1.5 var(--font-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

/* ---------- bands below the hero ---------- */

.rv-band {
  position: relative;
  z-index: 2;
  width: 100%;
  border-top: 1px solid var(--c-line);
}

.rv-wrap {
  width: 100%;
  max-width: 1568px;
  margin: 0 auto;
  padding: 96px var(--page-inset);
}

.rv-narrow > * {
  max-width: 760px;
}

.rv-h2 {
  max-width: 18ch;
  margin: 0 0 40px;
  color: var(--c-paper);
  font: 400 var(--fs-name)/1.02 var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
}

/* How it works: steps on the left, one review card from the app on the right */
.rv-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: start;
  gap: 72px;
}

.rv-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--c-line);
}

.rv-steps li:last-child {
  border-bottom: 1px solid var(--c-line);
}

.rv-step-num {
  padding-top: 6px;
  color: var(--c-peach);
  font: 500 var(--fs-label)/1.4 var(--font-label);
  letter-spacing: var(--tr-label);
}

.rv-steps h3 {
  margin: 0 0 6px;
  color: var(--c-paper);
  font: 400 28px/1.15 var(--font-display);
  letter-spacing: -0.02em;
}

.rv-steps p {
  max-width: 52ch;
  margin: 0;
  color: var(--c-mist);
}

.rv-card-wrap {
  margin: 0;
}

.rv-card-wrap figcaption {
  margin-top: 12px;
  color: var(--c-muted);
  font: 500 var(--fs-label)/1.5 var(--font-label);
  letter-spacing: var(--tr-label);
}

.rv-card {
  padding: 24px;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-peach);
  border-radius: var(--r-control);
  background: var(--c-ink-raised);
}

.rv-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rv-stars {
  color: var(--c-peach);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.rv-when,
.rv-who,
.rv-reply-label {
  color: var(--c-muted);
  font: 500 var(--fs-label)/1.4 var(--font-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}

.rv-who {
  margin: 14px 0 6px;
  color: var(--c-paper);
}

.rv-review {
  margin: 0 0 20px;
  color: var(--c-mist);
  font-size: 16px;
  line-height: 1.6;
}

.rv-reply-label {
  margin: 0 0 8px;
}

.rv-reply {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-control);
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 16px;
  line-height: 1.55;
}

.rv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rv-btn {
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-control);
  color: var(--c-green);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.rv-btn-primary {
  border-color: var(--c-peach);
  background: var(--c-peach);
  color: var(--c-ink);
}

/* What it is not */
.rv-nots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-nots li {
  padding-top: 20px;
  border-top: 3px solid var(--c-peach);
  color: var(--c-mist);
}

/* Prices: the fact-gated table from the postcard (22 Oct 2026), words unchanged */
.rv-prices {
  width: 100%;
  border-collapse: collapse;
}

.rv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rv-prices th,
.rv-prices td {
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}

.rv-prices tr:first-child th,
.rv-prices tr:first-child td {
  border-top: 1px solid var(--c-line);
}

.rv-prices th {
  padding-right: 24px;
  color: var(--c-paper);
  font-weight: 600;
  text-align: left;
}

.rv-prices td {
  color: var(--c-paper);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.rv-prices small {
  display: block;
  margin-top: 2px;
  color: var(--c-muted);
  font: 500 13px/1.5 var(--font-body);
  white-space: normal;
}

.rv-prices .rv-mine th,
.rv-prices .rv-mine td {
  border-bottom: 3px solid var(--c-peach);
}

.rv-prices .rv-mine th {
  color: var(--c-peach);
  font: 400 28px/1.15 var(--font-display);
}

.rv-prices .rv-mine th small {
  color: var(--c-mist);
}

.rv-prices .rv-mine td {
  color: var(--c-peach);
  font: 400 32px/1.1 var(--font-display);
}

.rv-fine {
  margin: 16px 0 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Questions */
.rv-faq details {
  border-top: 1px solid var(--c-line);
}

.rv-faq details:last-child {
  border-bottom: 1px solid var(--c-line);
}

.rv-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  color: var(--c-paper);
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.rv-faq summary::-webkit-details-marker {
  display: none;
}

.rv-faq summary::after {
  flex: 0 0 auto;
  color: var(--c-peach);
  font: 500 18px/1 var(--font-label);
  content: "+";
}

.rv-faq details[open] summary::after {
  content: "\2212";
}

.rv-faq details p {
  max-width: 60ch;
  margin: 0 0 20px;
  color: var(--c-mist);
}

.rv-faq summary:focus-visible {
  outline: 2px solid var(--c-peach);
  outline-offset: 3px;
}

/* The close: the site's end-station language */
.rv-end .rv-h2 {
  margin-bottom: 8px;
}

.rv-talk {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  max-width: 480px;
}

.rv-talk .body-copy {
  margin: 0;
}

.rv-talk .link-list {
  margin-top: 16px;
}

.rv-page .site-footer {
  scroll-snap-align: none;
}

@media (max-width: 1024px) {
  .rv-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 32px;
  }

  .rv-how-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .rv-card-wrap {
    max-width: 480px;
  }
}

@media (max-width: 760px) {
  html.rv-page {
    scroll-padding-top: 84px;
  }

  .rv-page .topbar {
    padding-bottom: 20px;
  }

  .rv-page a.phone-counter {
    display: block;
  }

  /* Phone: the scene owns the top band (CONTRACT rule 3, panel from y 440 at 390x844), the words sit below it. */
  .rv-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: max(120px, calc(52svh - 116px)) auto;
    align-items: start;
    gap: 24px;
    padding: 92px var(--page-inset) 56px;
  }

  .rv-hero::before {
    background: linear-gradient(180deg,
      rgb(16 26 27 / var(--scrim-web)) 0,
      rgb(16 26 27 / var(--scrim-web)) 60px,
      rgb(16 26 27 / 0) 92px,
      rgb(16 26 27 / 0) 28%,
      rgb(16 26 27 / var(--scrim-web)) 44%,
      rgb(16 26 27 / var(--scrim-web)) 100%);
  }

  .rv-plate {
    grid-row: 1;
    align-self: center;
    max-height: 260px;
  }

  .rv-hero-panel {
    grid-row: 2;
    width: 100%;
  }

  .rv-hero h1 {
    max-width: 10ch;
  }

  /* No QR on a phone: you are already on it. */
  .rv-qr {
    display: none;
  }

  .rv-cta-row {
    margin-top: 20px;
  }

  .rv-wrap {
    padding: 72px var(--page-inset);
  }

  .rv-h2 {
    margin-bottom: 28px;
    font-size: 40px;
  }

  .rv-nots {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .rv-steps h3 {
    font-size: 24px;
  }

  .rv-prices .rv-mine th {
    font-size: 24px;
  }

  .rv-prices .rv-mine td {
    font-size: 28px;
  }
}

@media (max-width: 380px) {
  .rv-prices th {
    padding-right: 12px;
  }

  .rv-card {
    padding: 18px;
  }
}

.rv-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.rv-cta-note {
  color: var(--c-muted);
  font: 500 var(--fs-label)/1.5 var(--font-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}
