/* =========================================================
   RevenuivaAI — AI Front Desk sales/marketing page
   Requires the site's existing /styles.css first.
   ========================================================= */

.afd-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 66px;
  background:
    radial-gradient(circle at 84% 16%, rgba(62,201,197,.16), transparent 32%),
    radial-gradient(circle at 9% 82%, rgba(114,165,255,.08), transparent 30%),
    linear-gradient(180deg, #f8fcfd 0%, #ffffff 100%);
}

.afd-hero h1 {
  max-width: 1120px;
  margin: 16px 0 22px;
  font-size: clamp(2.8rem, 5.8vw, 5.15rem);
  line-height: .99;
  letter-spacing: -.055em;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.afd-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.afd-cap-grid article {
  padding: 26px 22px;
  border: 1px solid #d7e6eb;
  border-radius: 18px;
  background: #fff;
}

.afd-cap-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.afd-cap-grid h3 {
  margin: 0 0 9px;
  font-size: 19px;
}

.afd-cap-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

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

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

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

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

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

.afd-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.afd-case-grid > div {
  padding: 24px;
  border: 1px solid #d7e6eb;
  border-radius: 18px;
  background: #fff;
}

.afd-case-grid strong,
.afd-case-grid span {
  display: block;
}

.afd-case-grid strong {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.45;
}

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

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

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

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

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

.afd-governance-grid article > span {
  color: #77ded8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

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

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

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

.afd-principle-note strong {
  flex: 0 0 auto;
  color: #fff;
}

.afd-principle-note span {
  color: #d0e2e9;
  line-height: 1.6;
}

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

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

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

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

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

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

.afd-layer-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
}

.afd-layer-flow span {
  padding: 12px 16px;
  border: 1px solid #d7e6eb;
  border-radius: 999px;
  background: #fff;
  color: #496679;
  font-size: 14px;
  font-weight: 800;
}

.afd-layer-flow .is-active {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
}

.afd-layer-flow b {
  color: var(--teal);
  font-size: 18px;
}

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

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

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

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

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

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

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

@media (max-width: 1080px) {
  .afd-need-grid { grid-template-columns: repeat(2, 1fr); }
  .afd-cap-grid { grid-template-columns: repeat(2, 1fr); }

  .afd-action-flow { grid-template-columns: 1fr; }
  .afd-action-flow > b {
    justify-self: center;
    transform: rotate(90deg);
  }

  .afd-case-grid { grid-template-columns: repeat(2, 1fr); }

  .afd-governance-grid,
  .afd-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .afd-hero { padding-top: 64px; }

  .afd-two-col,
  .afd-section-heading,
  .afd-final-cta {
    grid-template-columns: 1fr;
  }

  .afd-two-col,
  .afd-section-heading { gap: 30px; }

  .afd-need-grid,
  .afd-cap-grid,
  .afd-case-grid,
  .afd-governance-grid,
  .afd-value-grid {
    grid-template-columns: 1fr;
  }

  .afd-principle-note {
    flex-direction: column;
  }

  .afd-layer-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .afd-layer-flow span {
    text-align: center;
  }

  .afd-layer-flow b {
    align-self: center;
  }

  .afd-final-cta { padding: 30px 24px; }
  .afd-final-actions { min-width: 0; }
}
