/* ========================================
   Review page: bits not covered by features/style.css
   ======================================== */

/* "Tell us first" notice inside the hero, softens the funnel by
   offering a contact path to anyone who's hit a problem, before they
   click through to Capterra. Visible to every visitor (not gated). */
.review-prefer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 12px 20px;
  background: var(--white-alpha-10);
  border: 1px solid var(--white-alpha-20);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--white);
  line-height: 1.4;
  text-align: left;
}

.review-prefer-contact svg {
  color: var(--secondary-blue);
  flex-shrink: 0;
}

.review-prefer-contact a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.review-prefer-contact a:hover {
  color: var(--secondary-blue);
}

@media (max-width: 600px) {
  .review-prefer-contact {
    font-size: var(--text-xs);
    padding: 10px 16px;
    border-radius: var(--radius-lg);
  }
}

/* Inline informational callout used in the "What to expect" section */
.review-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  color: var(--gray-800);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.review-callout svg {
  color: var(--primary-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Note from Evan, paired with "What Capterra is" */
.review-note {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.review-note p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--gray-800);
  margin: 0 0 16px;
}

.review-note .review-note-sign {
  margin: 0;
  font-weight: 600;
  color: var(--gray-900);
}

/* ========================================
   Screenshot frame (paired with "What to expect")
   Renders the Capterra screenshot, with a graceful fallback
   when the image is missing.
   ======================================== */
.review-screenshot-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--elevation-xl);
  overflow: hidden;
}

.review-screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.review-screenshot-fallback {
  display: none;
  text-align: center;
  padding: 56px 32px;
}

.review-screenshot-fallback svg {
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.review-screenshot-fallback h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.review-screenshot-fallback p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

/* When image fails to load, hide the broken img and show fallback. */
.review-screenshot-frame-missing img {
  display: none;
}

.review-screenshot-frame-missing .review-screenshot-fallback {
  display: block;
}

/* ========================================
   Privacy grid: "Shown publicly" / "Kept private" cards
   ======================================== */
.review-privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.review-privacy-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.review-privacy-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--blue-50);
  color: var(--primary-blue);
}

.review-privacy-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 16px;
}

.review-privacy-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-privacy-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.5;
}

.review-privacy-card li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.review-privacy-card li svg {
  color: var(--primary-blue);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .review-privacy-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .review-note,
  .review-screenshot-frame {
    margin: 0 auto;
    max-width: 480px;
  }

  /* The sheet rising into the hero opens on its heading, not the note. */
  .rise-sheet .feature-detail-visual {
    order: 0;
  }
}

@media (max-width: 600px) {
  .review-note {
    padding: 22px;
  }

  .review-screenshot-frame {
    padding: 10px;
  }

  .review-privacy-card {
    padding: 24px;
  }

  .review-callout {
    font-size: var(--text-xs);
    padding: 12px 14px;
  }
}

/* The tips are three cards, so they sit in one row and none needs a divider. */
.benefits-grid--three {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  max-width: 1120px;
}

.benefits-grid--three .benefit-card {
  border-bottom: none;
}

@media (max-width: 900px) {
  .benefits-grid--three {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .benefits-grid--three .benefit-card {
    border-bottom: 1px solid var(--gray-200);
  }

  .benefits-grid--three .benefit-card:last-child {
    border-bottom: none;
  }
}
