/* WIMS-AMB-BUILD-0012: Care.com retirement and review migration */
:root {
  --rm-pink: #ef6f9f;
  --rm-pink-dark: #9b315d;
  --rm-pink-soft: #fff0f6;
  --rm-blue: #4f9ed8;
  --rm-blue-dark: #195f91;
  --rm-blue-soft: #edf7ff;
  --rm-cream: #fffaf0;
  --rm-ink: #283344;
  --rm-muted: #5d6878;
  --rm-border: rgba(40, 51, 68, 0.14);
  --rm-shadow: 0 18px 48px rgba(40, 51, 68, 0.12);
}

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

.rm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(239, 111, 159, 0.22) 0 110px, transparent 112px),
    radial-gradient(circle at 88% 14%, rgba(79, 158, 216, 0.22) 0 125px, transparent 127px),
    linear-gradient(135deg, var(--rm-pink-soft), var(--rm-blue-soft));
}

.rm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.rm-eyebrow,
.rm-section-kicker {
  margin: 0 0 10px;
  color: var(--rm-pink-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.rm-hero h1,
.rm-trust-band h2,
.rm-section-heading h2,
.rm-source-note h2,
.rm-home-reviews h2 {
  margin: 0;
  color: var(--rm-ink);
  line-height: 1.08;
  text-wrap: balance;
}

.rm-hero h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.75rem);
}

.rm-lead {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--rm-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.7;
}

.rm-actions,
.rm-home-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rm-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.rm-button:hover {
  transform: translateY(-2px);
}

.rm-button-primary {
  background: var(--rm-pink-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(155, 49, 93, 0.24);
}

.rm-button-secondary {
  border-color: rgba(25, 95, 145, 0.3);
  background: #fff;
  color: var(--rm-blue-dark);
  box-shadow: 0 8px 20px rgba(25, 95, 145, 0.12);
}

.rm-button:focus-visible,
.rm-text-link:focus-visible {
  outline: 4px solid rgba(79, 158, 216, 0.45);
  outline-offset: 4px;
}

.rm-trust-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--rm-shadow);
  text-align: center;
  backdrop-filter: blur(8px);
}

.rm-trust-stars,
.rm-stars {
  color: #c97800;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
}

.rm-trust-number {
  margin: 8px 0 0;
  color: var(--rm-pink-dark);
  font-size: clamp(3.3rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 1;
}

.rm-trust-label {
  margin: 8px 0 0;
  color: var(--rm-ink);
  font-size: 1.16rem;
  font-weight: 850;
}

.rm-trust-range {
  margin: 10px 0 0;
  color: var(--rm-muted);
  line-height: 1.5;
}

.rm-trust-band {
  padding: 42px 0;
  background: var(--rm-ink);
  color: #fff;
  text-align: center;
}

.rm-trust-band .rm-section-kicker {
  color: #ffc7dc;
}

.rm-trust-band h2 {
  max-width: 950px;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

.rm-trust-band p:last-child {
  max-width: 840px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.rm-reviews,
.rm-photo-privacy {
  padding: clamp(62px, 8vw, 108px) 0;
}

.rm-reviews {
  background: #fff;
}

.rm-photo-privacy {
  background: var(--rm-cream);
}

.rm-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.rm-section-heading h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
}

.rm-section-note {
  margin: 0;
  color: var(--rm-muted);
  line-height: 1.65;
}

.rm-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rm-review-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--rm-border);
  border-radius: 26px;
  background: linear-gradient(180deg, #fff 0%, #fffafd 100%);
  box-shadow: 0 12px 34px rgba(40, 51, 68, 0.08);
}

.rm-review-card:nth-child(4n + 2),
.rm-review-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.rm-source-badge {
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--rm-pink-soft);
  color: var(--rm-pink-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.rm-review-card blockquote {
  margin: 18px 0 26px;
  color: var(--rm-ink);
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  line-height: 1.72;
}

.rm-review-card footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rm-border);
  color: var(--rm-muted);
}

.rm-review-card footer strong {
  color: var(--rm-ink);
}

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

.rm-photo-card {
  padding: 28px;
  border: 1px solid rgba(79, 158, 216, 0.18);
  border-radius: 24px;
  background: #fff;
}

.rm-photo-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--rm-blue-soft);
  font-size: 1.65rem;
}

.rm-photo-card h3 {
  margin: 18px 0 8px;
  color: var(--rm-ink);
  font-size: 1.24rem;
}

.rm-photo-card p {
  margin: 0;
  color: var(--rm-muted);
  line-height: 1.65;
}

.rm-checklist {
  margin-top: 24px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--rm-blue-soft), var(--rm-pink-soft));
}

.rm-checklist h3 {
  margin: 0 0 18px;
  color: var(--rm-ink);
  font-size: 1.4rem;
}

.rm-checklist ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 0;
  padding-left: 22px;
  color: var(--rm-ink);
}

.rm-checklist li {
  padding-left: 4px;
  line-height: 1.55;
}

.rm-source-note {
  padding: 46px 0;
  border-top: 1px solid var(--rm-border);
  background: #fff;
}

.rm-source-note-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.rm-source-note h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.rm-source-note p:last-child {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--rm-muted);
  line-height: 1.65;
}

.rm-text-link {
  color: var(--rm-blue-dark);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.rm-home-reviews {
  padding: clamp(46px, 6vw, 78px) 0;
  background:
    linear-gradient(135deg, rgba(255, 240, 246, 0.92), rgba(237, 247, 255, 0.92));
}

.rm-home-reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.rm-home-reviews h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 3.5vw, 3.15rem);
}

.rm-home-reviews p:not(.rm-eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--rm-muted);
  line-height: 1.65;
}

.rm-home-review-actions {
  flex-direction: column;
  margin-top: 0;
}

.rm-home-review-actions .rm-button {
  width: 100%;
}

@media (max-width: 880px) {
  .rm-hero-grid,
  .rm-home-reviews-grid,
  .rm-section-heading,
  .rm-source-note-inner {
    grid-template-columns: 1fr;
  }

  .rm-trust-card {
    max-width: 520px;
  }

  .rm-section-heading {
    align-items: start;
  }

  .rm-photo-grid {
    grid-template-columns: 1fr;
  }

  .rm-source-note-inner {
    align-items: start;
  }

  .rm-text-link {
    white-space: normal;
  }

  .rm-home-review-actions {
    max-width: 520px;
  }
}

@media (max-width: 680px) {
  .rm-shell {
    width: min(100% - 28px, 1180px);
  }

  .rm-hero {
    padding: 48px 0 56px;
  }

  .rm-review-grid,
  .rm-checklist ul {
    grid-template-columns: 1fr;
  }

  .rm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rm-actions .rm-button {
    width: 100%;
  }

  .rm-review-card footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-button {
    transition: none;
  }
}
