/* Shared styles for AI landing pages (reuses erp-* class names from erpLandingMixins) */

.erp-module-card ul { margin-bottom: 0; }
.erp-module-card li { margin-bottom: 0.35rem; line-height: 1.45; }
.erp-module-card:hover ul,
.erp-module-card:hover li,
.erp-audience-card:hover p { color: white; }

.erp-section {
  position: relative;
  overflow: visible;
}
.erp-section:not(.erp-section--alt) { z-index: 2; }
.erp-section--alt {
  position: relative;
  z-index: 1;
  background-color: transparent;
}
.erp-section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #f5f5f7;
  z-index: 0;
}
html[data-theme="dark"] .erp-section--alt::before {
  background-color: rgba(255, 255, 255, 0.06);
}

/* Dark mode: shadow-box is hardcoded #fff -> white text becomes invisible */
html[data-theme="dark"] .erp-section .shadow-box,
html[data-theme="dark"] .erp-section .card,
html[data-theme="dark"] .erp-section .card-feature,
html[data-theme="dark"] .erp-statement-card {
  background: #3a3939 !important;
  background-color: #3a3939 !important;
  color: #fff !important;
}
html[data-theme="dark"] .erp-section .card-feature p,
html[data-theme="dark"] .erp-section .card-feature h6,
html[data-theme="dark"] .erp-section .card-feature li,
html[data-theme="dark"] .erp-statement-card p,
html[data-theme="dark"] .erp-section .text-dark,
html[data-theme="dark"] .erp-section .text-secondary,
html[data-theme="dark"] .erp-timeline .text-secondary,
html[data-theme="dark"] .erp-faq-wrap .text-secondary,
html[data-theme="dark"] .erp-faq-btn,
html[data-theme="dark"] .erp-faq-btn span {
  color: rgba(255, 255, 255, 0.92) !important;
}
html[data-theme="dark"] .erp-section .text-secondary,
html[data-theme="dark"] .erp-timeline .text-secondary,
html[data-theme="dark"] .erp-faq-wrap .text-secondary {
  color: rgba(255, 255, 255, 0.72) !important;
}
html[data-theme="dark"] .erp-faq-item {
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.erp-hero-lead,
.erp-section-lead { color: inherit; }
.erp-hero-sub { opacity: 0.78; }
html[data-theme="dark"] .erp-hero-lead,
html[data-theme="dark"] .erp-hero-sub,
html[data-theme="dark"] .erp-section-lead {
  color: rgba(255, 255, 255, 0.92) !important;
}
html[data-theme="dark"] .erp-hero-sub {
  color: rgba(255, 255, 255, 0.72) !important;
  opacity: 1;
}
html[data-theme="dark"] .erp-section .card-feature:hover,
html[data-theme="dark"] .erp-section .card-feature:hover h6,
html[data-theme="dark"] .erp-section .card-feature:hover p,
html[data-theme="dark"] .erp-section .card-feature:hover li {
  color: #fff !important;
}
.erp-section .container-fluid.pt-2,
.erp-section .container-fluid.position-relative {
  position: relative;
  z-index: 2;
  overflow: visible;
}
.erp-section .bg-side {
  z-index: 1 !important;
  pointer-events: none;
}
.erp-blob-side--right {
  left: auto !important;
  right: 0 !important;
  float: none !important;
}
.erp-blob-side--left {
  left: 0 !important;
  right: auto !important;
}
.erp-blob-cover-end {
  left: auto !important;
  right: -300px !important;
  width: 90% !important;
}
.erp-section .cardhold,
.erp-section .card-feature {
  position: relative;
  z-index: 3;
}
.erp-section .container-fluid.my-5 {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}
.erp-section .card { max-height: none !important; }

/* 4-corner hover rotation for card holds */
.erp-section-hold > :nth-child(4n + 1) .card-feature:hover .bg-circle {
  top: -34% !important;
  right: -34% !important;
  bottom: auto !important;
  left: auto !important;
  animation: erp-spin-tr 0.5s !important;
}
.erp-section-hold > :nth-child(4n + 2) .card-feature:hover .bg-circle {
  top: auto !important;
  right: -34% !important;
  bottom: -34% !important;
  left: auto !important;
  animation: erp-spin-br 0.5s !important;
}
.erp-section-hold > :nth-child(4n + 3) .card-feature:hover .bg-circle {
  top: auto !important;
  right: auto !important;
  bottom: -34% !important;
  left: -34% !important;
  animation: erp-spin-bl 0.5s !important;
}
.erp-section-hold > :nth-child(4n + 4) .card-feature:hover .bg-circle {
  top: -34% !important;
  right: auto !important;
  bottom: auto !important;
  left: -34% !important;
  animation: erp-spin-tl 0.5s !important;
}

@keyframes erp-spin-tr {
  from { top: -100%; right: -100%; bottom: auto; left: auto; }
}
@keyframes erp-spin-br {
  from { top: auto; right: -100%; bottom: -100%; left: auto; }
}
@keyframes erp-spin-bl {
  from { top: auto; right: auto; bottom: -100%; left: -100%; }
}
@keyframes erp-spin-tl {
  from { top: -100%; right: auto; bottom: auto; left: -100%; }
}

.erp-timeline {
  position: relative;
  z-index: 3;
}
.erp-timeline-step {
  text-align: center;
  padding: 1rem 0.75rem;
}
.erp-timeline-num {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--primary-switch);
  color: #fff;
  font-weight: 700;
  line-height: 2.5rem;
  font-size: 1.05rem;
}
@media (min-width: 768px) {
  .erp-timeline {
    display: flex;
    gap: 0.5rem;
  }
  .erp-timeline::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgba(229, 25, 55, 0.25);
    z-index: 0;
  }
  .erp-timeline-step {
    position: relative;
    z-index: 1;
    flex: 1;
  }
}

.erp-faq-wrap {
  position: relative;
  z-index: 3;
}
.erp-faq-btn { color: inherit; }
.erp-faq-btn:focus {
  outline: none;
  box-shadow: none;
}
.erp-faq-btn:not(.collapsed) .erp-faq-icon {
  transform: rotate(180deg);
}
.erp-faq-icon {
  transition: transform 0.2s ease;
}

/* Related links pills */
.ai-related-links {
  position: relative;
  z-index: 3;
}
.ai-related-links a {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 50rem;
  background: #fff;
  color: #e51937;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}
.ai-related-links a:hover {
  background: #e51937;
  color: #fff;
}
html[data-theme="dark"] .ai-related-links a {
  background: #3a3939;
  color: #fff;
}
html[data-theme="dark"] .ai-related-links a:hover {
  background: #e51937;
}

/* AI hub cards */
.ai-hub-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.ai-hub-card .card {
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-hub-card:hover .card {
  transform: translateY(-4px);
}
html[data-theme="dark"] .ai-hub-section .card {
  background: #3a3939 !important;
  color: #fff !important;
}
html[data-theme="dark"] .ai-hub-section .card p,
html[data-theme="dark"] .ai-hub-section .card h6,
html[data-theme="dark"] .ai-hub-section .card h5 {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Tools (ROI calculator / readiness) */
.ai-tool-wrap {
  position: relative;
  z-index: 3;
}
.ai-tool-wrap .form-label { font-weight: 600; }
.ai-tool-result {
  border-left: 4px solid #e51937;
}
html[data-theme="dark"] .ai-tool-wrap .card,
html[data-theme="dark"] .ai-tool-wrap .form-control,
html[data-theme="dark"] .ai-tool-wrap .form-select {
  background: #3a3939 !important;
  color: #fff !important;
}
