/* =========================================================
   RevenuivaAI — Create Demand sales/marketing page
   Requires the site's existing /styles.css first.
   ========================================================= */

.cd-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 84% 18%, rgba(62, 201, 197, .16), transparent 33%),
    radial-gradient(circle at 12% 82%, rgba(121, 126, 255, .08), transparent 30%),
    linear-gradient(180deg, #f8fcfd 0%, #ffffff 100%);
}

.cd-hero h1 {
  max-width: 1040px;
  margin: 14px 0 22px;
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  line-height: .99;
  letter-spacing: -.055em;
}

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

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

.cd-price-pill {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 18px;
  padding: 9px 13px;
  border: 1px solid #cde6e5;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #536b7b;
  font-size: 13px;
}

.cd-price-pill strong { color: var(--navy); }

.cd-hero-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 34px;
  color: #526c7c;
  font-size: 13px;
  font-weight: 800;
}

.cd-hero-flow span {
  padding: 8px 11px;
  border: 1px solid #d6e7eb;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
}

.cd-hero-flow b { color: var(--teal); }

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

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

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

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

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

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

.cd-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;
}

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

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

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

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

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

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

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

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

.cd-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;
}

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

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

.cd-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;
}

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

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

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

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

.cd-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;
}

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

.cd-engine-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 34px;
}

.cd-engine-flow > b {
  align-self: center;
  color: var(--teal);
  font-size: 23px;
}

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

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

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

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

.cd-cap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.cd-cap-grid div {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid #d7e6eb;
  border-radius: 15px;
  background: #fff;
  color: #23485d;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.cd-cap-grid div::before {
  content: "✓";
  margin-right: 9px;
  color: var(--teal-dark);
  font-weight: 900;
}

.cd-usage-note {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid #cce9e5;
  border-radius: 16px;
  background: #f2fbf9;
}

.cd-usage-note strong {
  flex: 0 0 auto;
  color: var(--navy);
}

.cd-usage-note span {
  color: #536d7d;
  line-height: 1.6;
}

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

.cd-learning-section .section-kicker { color: #78ddd8; }
.cd-learning-section h2 { color: #fff; }
.cd-learning-section .section-lead { color: #d3e3eb; }

.cd-learning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.cd-learning-grid article {
  padding: 25px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.cd-learning-grid article > span {
  color: #77ded8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cd-learning-grid h3 {
  margin: 12px 0 9px;
  color: #fff;
  font-size: 20px;
}

.cd-learning-grid p {
  margin: 0;
  color: #d3e3eb;
  font-size: 14px;
  line-height: 1.6;
}

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

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

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

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

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

.cd-flow-box { margin-top: 28px; }

.cd-flow-box .is-active {
  background: var(--teal-dark);
  color: #fff;
}

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

.cd-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);
}

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

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

.cd-final-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 18px;
  align-items: baseline;
}

.cd-final-price strong {
  color: var(--navy);
  font-size: 21px;
}

.cd-final-price span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

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

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

@media (max-width: 760px) {
  .cd-hero { padding-top: 64px; }
  .cd-two-col,
  .cd-section-heading,
  .cd-final-cta {
    grid-template-columns: 1fr;
  }
  .cd-two-col,
  .cd-section-heading { gap: 30px; }

  .cd-need-grid,
  .cd-cap-grid,
  .cd-learning-grid,
  .cd-value-grid {
    grid-template-columns: 1fr;
  }

  .cd-module-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .cd-module-link { grid-column: 1; }
  .cd-module-featured { padding: 24px; }
  .cd-usage-note { flex-direction: column; }
  .cd-final-cta { padding: 30px 24px; }
  .cd-final-actions { min-width: 0; }
}
