/* =========================================================
   RevenuivaAI — Retain & Grow sales/marketing page
   Requires the site's existing /styles.css first.
   ========================================================= */

.rg-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 84% 14%, rgba(62, 201, 197, .15), transparent 32%),
    radial-gradient(circle at 8% 78%, rgba(106, 165, 255, .09), transparent 30%),
    linear-gradient(180deg, #f8fcfd 0%, #ffffff 100%);
}

.rg-hero h1 {
  max-width: 1060px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 6vw, 5.15rem);
  line-height: .99;
  letter-spacing: -.055em;
}

.rg-hero h1 span { color: var(--teal-dark); }

.rg-hero .hero-lead {
  max-width: 930px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.rg-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 34px;
  color: #536f80;
  font-size: 13px;
  font-weight: 800;
}

.rg-hero-proof span {
  padding: 8px 11px;
  border: 1px solid #d7e7eb;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
}

.rg-hero-proof b { color: var(--teal); }

.rg-two-col {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 56px;
  align-items: center;
}

.rg-problem-section h2,
.rg-need-section h2,
.rg-solution-section h2,
.rg-flow-section h2,
.rg-intelligence-section h2,
.rg-value-section h2,
.rg-outcome-section h2 {
  max-width: 930px;
}

.rg-problem-card {
  padding: 30px;
  border: 1px solid #d5e5ea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 47, 74, .07);
}

.rg-problem-card h3 { margin: 0 0 20px; }

.rg-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rg-check-list li {
  position: relative;
  padding: 11px 0 11px 31px;
  border-bottom: 1px solid #edf3f5;
  color: #4c6577;
  line-height: 1.55;
}

.rg-check-list li:last-child { border-bottom: 0; }

.rg-check-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 10px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff2eb;
  color: #c85e33;
  font-size: 11px;
  font-weight: 900;
}

.rg-need-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.rg-need-card {
  padding: 24px 20px;
  border: 1px solid #d7e6eb;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
}

.rg-need-card > span {
  display: block;
  margin-bottom: 26px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rg-need-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rg-need-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.rg-section-heading {
  display: grid;
  grid-template-columns: 1.05fr .75fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 38px;
}

.rg-section-heading p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.rg-module-stack { border-top: 1px solid #d9e7eb; }

.rg-module-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 230px;
  gap: 26px;
  align-items: center;
  padding: 38px 4px;
  border-bottom: 1px solid #d9e7eb;
}

.rg-module-row:hover {
  background: linear-gradient(90deg, rgba(232,248,248,.45), rgba(255,255,255,0));
}

.rg-module-featured {
  margin: 16px 0;
  padding-left: 22px;
  padding-right: 22px;
  border: 1px solid #bfe3e2;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2fbfb, #fff);
}

.rg-module-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.rg-module-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.rg-module-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.rg-module-copy p {
  max-width: 780px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.rg-module-copy strong {
  color: #24495e;
  font-size: 14px;
}

.rg-module-link {
  justify-self: end;
  max-width: 220px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.rg-flow-section {
  background: linear-gradient(180deg, #f9fcfd, #ffffff);
}

.rg-retention-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 34px;
}

.rg-retention-flow > b {
  align-self: center;
  color: var(--teal);
  font-size: 24px;
}

.rg-flow-step {
  padding: 25px 21px;
  border: 1px solid #d7e6eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16,47,74,.05);
}

.rg-flow-step span {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-bottom: 24px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.rg-flow-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.rg-flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.rg-intelligence-section {
  background: linear-gradient(180deg, #102f4a 0%, #163b59 100%);
  color: #fff;
}

.rg-intelligence-section .section-kicker { color: #76ddd8; }
.rg-intelligence-section h2 { color: #fff; }
.rg-intelligence-section .section-lead { color: #d3e3eb; }

.rg-question-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.rg-question-grid div {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
}

.rg-question-grid div::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(98,222,215,.16);
  color: #7be4de;
  font-size: 12px;
}

.rg-intelligence-note {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid rgba(104,222,215,.25);
  border-radius: 16px;
  background: rgba(96,218,211,.08);
}

.rg-intelligence-note strong {
  color: #fff;
  flex: 0 0 auto;
}

.rg-intelligence-note span {
  color: #d0e2e9;
  line-height: 1.6;
}

.rg-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.rg-value-grid > div {
  padding: 24px;
  border: 1px solid #d7e6eb;
  border-radius: 16px;
  background: #fff;
}

.rg-value-grid strong,
.rg-value-grid span {
  display: block;
}

.rg-value-grid strong {
  margin-bottom: 8px;
  color: var(--navy);
}

.rg-value-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.rg-flow-box { margin-top: 28px; }
.rg-flow-box .is-active {
  background: var(--teal-dark);
  color: #fff;
}

.rg-final-section { padding-top: 52px; }

.rg-final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
  padding: 48px;
  border: 1px solid #cde6e5;
  border-radius: 24px;
  background: linear-gradient(135deg, #eefafa, #fff);
}

.rg-final-cta h2 {
  margin: 8px 0 12px;
  max-width: 780px;
}

.rg-final-cta p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.rg-final-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 190px;
}

@media (max-width: 1050px) {
  .rg-need-grid { grid-template-columns: repeat(2, 1fr); }
  .rg-module-row { grid-template-columns: 56px 1fr; }
  .rg-module-link {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
  .rg-retention-flow { grid-template-columns: 1fr; }
  .rg-retention-flow > b {
    justify-self: center;
    transform: rotate(90deg);
  }
  .rg-question-grid { grid-template-columns: repeat(2, 1fr); }
  .rg-value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .rg-hero { padding-top: 64px; }
  .rg-two-col,
  .rg-section-heading,
  .rg-final-cta {
    grid-template-columns: 1fr;
  }
  .rg-two-col,
  .rg-section-heading {
    gap: 30px;
  }
  .rg-need-grid,
  .rg-question-grid,
  .rg-value-grid {
    grid-template-columns: 1fr;
  }
  .rg-module-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }
  .rg-module-link { grid-column: 1; }
  .rg-module-featured { padding: 24px; }
  .rg-intelligence-note { flex-direction: column; }
  .rg-final-cta { padding: 30px 24px; }
  .rg-final-actions { min-width: 0; }
}
