/* ================================================================
   PayStubCheck — Customer Reviews
   Public review discovery, filtering, and review-request UI.
   ================================================================ */

:root {
  --reviews-forest: #102c0b;
  --reviews-forest-2: #1f4a0f;
  --reviews-lime: #9eea35;
  --reviews-cream: #f7faef;
  --reviews-ink: #14200f;
  --reviews-muted: #617057;
  --reviews-line: #d9e5cb;
  --reviews-orange: #f06c00;
  --reviews-star: #f3a000;
}

.reviews-page {
  background: var(--reviews-cream);
}

.reviews-page main {
  overflow: clip;
}

.reviews-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--reviews-ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.reviews-skip:focus {
  transform: translateY(0);
}

.reviews-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.reviews-hero {
  position: relative;
  min-height: 650px;
  padding: 150px 0 88px;
  color: #fff;
  background:
    radial-gradient(circle at 87% 20%, rgba(158, 234, 53, 0.18), transparent 27%),
    radial-gradient(circle at 15% 85%, rgba(240, 108, 0, 0.13), transparent 32%),
    linear-gradient(135deg, #0b2307 0%, var(--reviews-forest) 48%, #183b0e 100%);
}

.reviews-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.reviews-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: clamp(46px, 7vw, 96px);
  align-items: center;
}

.reviews-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--reviews-lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

.reviews-eyebrow::before {
  width: 30px;
  height: 2px;
  content: "";
  background: currentColor;
}

.reviews-title {
  max-width: 760px;
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(50px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -4.2px;
  line-height: 0.97;
}

.reviews-title em {
  color: var(--reviews-lime);
  font-style: normal;
}

.reviews-lead {
  max-width: 680px;
  margin-top: 28px;
  color: rgba(239, 248, 230, 0.76);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.66;
}

.reviews-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.reviews-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid var(--reviews-line);
  border-radius: 999px;
  background: #fff;
  color: var(--reviews-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.reviews-button:hover {
  transform: translateY(-2px);
  border-color: #b8d397;
  box-shadow: 0 12px 30px rgba(25, 55, 10, 0.12);
}

.reviews-button-primary {
  border-color: var(--reviews-orange);
  background: var(--reviews-orange);
  color: #fff;
  box-shadow: 0 12px 32px rgba(240, 108, 0, 0.25);
}

.reviews-button-primary:hover {
  border-color: #d85f00;
}

.reviews-button-dark {
  border-color: var(--reviews-forest);
  background: var(--reviews-forest);
  color: #fff;
}

.reviews-button-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.reviews-button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.reviews-scorecard {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.reviews-score-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.reviews-score-number {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(64px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -5px;
  line-height: 0.8;
}

.reviews-score-number small {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.56);
}

.reviews-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--reviews-star);
  font-size: 19px;
  letter-spacing: 1px;
  line-height: 1;
}

.reviews-score-meta {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.reviews-breakdown {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.reviews-breakdown-row {
  display: grid;
  grid-template-columns: 34px 1fr 32px;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.reviews-breakdown-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.reviews-breakdown-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--reviews-lime), #e0ff83);
}

.reviews-score-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 14px 15px;
  border-radius: 15px;
  background: rgba(158, 234, 53, 0.1);
  color: rgba(245, 255, 236, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.reviews-score-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--reviews-lime);
}

.reviews-intro {
  padding: 74px 0 30px;
}

.reviews-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 58px;
  align-items: end;
}

.reviews-section-kicker {
  margin-bottom: 12px;
  color: var(--green-xdark);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.reviews-section-title {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 800;
  letter-spacing: -2.8px;
  line-height: 1;
}

.reviews-section-copy {
  color: var(--reviews-muted);
  font-size: 16px;
  line-height: 1.75;
}

.reviews-integrity-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--reviews-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(34, 65, 17, 0.06);
}

.reviews-integrity-item {
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid var(--reviews-line);
}

.reviews-integrity-item:last-child {
  border-right: 0;
}

.reviews-integrity-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--reviews-ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.reviews-integrity-item span {
  color: var(--reviews-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.reviews-browser {
  padding: 48px 0 96px;
}

.reviews-filter-panel {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 0.7fr)) minmax(150px, 0.72fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--reviews-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 55px rgba(29, 58, 12, 0.1);
}

.reviews-field {
  display: grid;
  gap: 6px;
}

.reviews-field label {
  color: var(--reviews-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.reviews-field input,
.reviews-field select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfdcc0;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--reviews-ink);
  font: 600 13px "DM Sans", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reviews-field input:focus,
.reviews-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(92, 184, 0, 0.13);
}

.reviews-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  margin: 24px 0 18px;
}

.reviews-results-copy {
  color: var(--reviews-muted);
  font-size: 14px;
}

.reviews-results-copy strong {
  color: var(--reviews-ink);
}

.reviews-clear {
  border: 0;
  background: transparent;
  color: var(--green-xdark);
  cursor: pointer;
  font: 800 13px "DM Sans", sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--reviews-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(32, 58, 17, 0.05);
}

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

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

.review-card .reviews-stars {
  font-size: 16px;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef9df;
  color: #3f7407;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.review-verified svg {
  width: 11px;
  height: 11px;
}

.review-text {
  flex: 1;
  margin: 0;
  color: #293321;
  font-size: 14.5px;
  line-height: 1.72;
}

.review-card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e4ecda;
}

.review-author {
  color: var(--reviews-ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.review-meta {
  margin-top: 3px;
  color: #7a8871;
  font-size: 11.5px;
}

.review-product {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--green-xdark);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  text-decoration: none;
}

.review-product:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reviews-empty {
  grid-column: 1 / -1;
  padding: 54px 24px;
  border: 1px dashed #bed1a8;
  border-radius: 20px;
  color: var(--reviews-muted);
  text-align: center;
}

.reviews-load-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

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

.reviews-products {
  padding: 92px 0;
  background: #fff;
}

.reviews-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.reviews-products-head .reviews-section-copy {
  max-width: 500px;
}

.reviews-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--reviews-line);
  border-radius: 24px;
}

.reviews-product-card {
  min-width: 0;
  display: grid;
  min-height: 160px;
  padding: 24px;
  border-right: 1px solid var(--reviews-line);
  border-bottom: 1px solid var(--reviews-line);
  color: var(--reviews-ink);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.reviews-product-card:nth-child(3n) {
  border-right: 0;
}

.reviews-product-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.reviews-product-card:hover {
  background: var(--reviews-forest);
  color: #fff;
}

.reviews-product-card small {
  align-self: start;
  color: #758469;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.reviews-product-card:hover small {
  color: var(--reviews-lime);
}

.reviews-product-card strong {
  align-self: end;
  margin-top: 20px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.1;
}

.reviews-product-card span {
  margin-top: 6px;
  color: var(--green-xdark);
  font-size: 12px;
  font-weight: 800;
}

.reviews-product-card:hover span {
  color: var(--reviews-lime);
}

.reviews-method {
  padding: 92px 0;
}

.reviews-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 72px;
  align-items: start;
}

.reviews-method-list {
  display: grid;
  gap: 14px;
}

.reviews-method-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--reviews-line);
  border-radius: 18px;
  background: #fff;
}

.reviews-method-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eef8e2;
  color: var(--green-xdark);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.reviews-method-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--reviews-ink);
  font-size: 14px;
}

.reviews-method-item p {
  color: var(--reviews-muted);
  font-size: 13px;
  line-height: 1.6;
}

.reviews-share {
  padding: clamp(34px, 5vw, 58px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 95% 10%, rgba(158, 234, 53, 0.18), transparent 34%),
    var(--reviews-forest);
  color: #fff;
}

.reviews-share .reviews-section-kicker {
  color: var(--reviews-lime);
}

.reviews-share h2 {
  max-width: 760px;
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -2.4px;
  line-height: 1;
}

.reviews-share p {
  max-width: 700px;
  margin-top: 18px;
  color: rgba(239, 248, 230, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.reviews-share .reviews-hero-actions {
  margin-top: 26px;
}

.reviews-disclaimer {
  margin-top: 18px;
  color: rgba(239, 248, 230, 0.5);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1040px) {
  .reviews-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 42px;
  }

  .reviews-title {
    font-size: clamp(48px, 6.4vw, 68px);
  }

  .reviews-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reviews-field:first-child {
    grid-column: span 2;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .reviews-shell {
    width: min(100% - 30px, 680px);
  }

  .reviews-hero {
    min-height: 0;
    padding: 122px 0 70px;
  }

  .reviews-hero-grid,
  .reviews-intro-grid,
  .reviews-method-grid {
    grid-template-columns: 1fr;
  }

  .reviews-title {
    max-width: 640px;
    font-size: clamp(46px, 10vw, 68px);
    letter-spacing: -3px;
  }

  .reviews-scorecard {
    max-width: 620px;
  }

  .reviews-intro-grid,
  .reviews-method-grid {
    gap: 28px;
  }

  .reviews-integrity-note {
    grid-template-columns: 1fr;
  }

  .reviews-integrity-item {
    border-right: 0;
    border-bottom: 1px solid var(--reviews-line);
  }

  .reviews-integrity-item:last-child {
    border-bottom: 0;
  }

  .reviews-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-field:first-child {
    grid-column: 1 / -1;
  }

  .reviews-products-head {
    display: grid;
  }

  .reviews-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-product-card,
  .reviews-product-card:nth-child(3n),
  .reviews-product-card:nth-last-child(-n + 3) {
    border-right: 1px solid var(--reviews-line);
    border-bottom: 1px solid var(--reviews-line);
  }

  .reviews-product-card:nth-child(2n) {
    border-right: 0;
  }

  .reviews-product-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .reviews-shell {
    width: min(100% - 24px, 520px);
  }

  .reviews-hero {
    padding-top: 106px;
  }

  .reviews-title {
    font-size: clamp(44px, 13vw, 60px);
    letter-spacing: -2.8px;
  }

  .reviews-lead {
    font-size: 16px;
  }

  .reviews-hero-actions,
  .reviews-button {
    width: 100%;
  }

  .reviews-score-top {
    display: grid;
  }

  .reviews-intro {
    padding-top: 58px;
  }

  .reviews-section-title {
    font-size: clamp(35px, 11vw, 48px);
    letter-spacing: -2px;
  }

  .reviews-browser,
  .reviews-products,
  .reviews-method {
    padding-top: 64px;
    padding-bottom: 70px;
  }

  .reviews-filter-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .reviews-field:first-child {
    grid-column: auto;
  }

  .reviews-results-bar {
    align-items: flex-start;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 20px;
  }

  .review-card-footer {
    grid-template-columns: 1fr;
  }

  .review-product {
    justify-content: flex-start;
    text-align: left;
  }

  .reviews-product-grid {
    grid-template-columns: 1fr;
  }

  .reviews-product-card,
  .reviews-product-card:nth-child(2n),
  .reviews-product-card:nth-child(3n),
  .reviews-product-card:nth-last-child(-n + 2),
  .reviews-product-card:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--reviews-line);
  }

  .reviews-product-card:last-child {
    border-bottom: 0;
  }

  .reviews-method-item {
    grid-template-columns: 36px 1fr;
    padding: 16px;
  }

  .reviews-method-icon {
    width: 36px;
    height: 36px;
  }

  .reviews-share {
    padding: 32px 24px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-button,
  .reviews-product-card {
    transition: none;
  }
}
