/* ===========================
   AFI CUSTOM STYLES
=========================== */

/* ---- Taxa badge no hero ---- */
.afi-taxa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 128, 237, 0.1);
  border: 1px solid rgba(47, 128, 237, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  color: #2F80ED;
  font-weight: 500;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #27AE60;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ---- Hero heading override (h1 instead of h2) ---- */
.hero-content-wrapper h1 {
  font-family: "Fira Sans", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a2e;
  margin-bottom: 20px;
}

@media (max-width: 991px) {
  .hero-content-wrapper h1 { font-size: 32px; }
}

@media (max-width: 575px) {
  .hero-content-wrapper h1 { font-size: 26px; }
}

/* ---- Hero CTA group ---- */
.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.afi-link-secondary {
  color: #585978;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.afi-link-secondary:hover {
  color: #2F80ED;
}

/* ---- Metrics bar ---- */
.afi-metrics-section {
  padding: 30px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f5;
}

.afi-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f8faff;
  border: 1px solid #e4eeff;
  border-radius: 16px;
  padding: 28px 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.afi-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.afi-metric-value {
  font-family: "Fira Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #2F80ED;
  line-height: 1;
}

.afi-metric-unit {
  font-size: 18px;
  font-weight: 600;
}

.afi-metric-label {
  font-size: 12px;
  color: #585978;
  margin-top: 6px;
  font-weight: 500;
}

.afi-metric-divider {
  width: 1px;
  height: 50px;
  background: #dde6f5;
}

@media (max-width: 767px) {
  .afi-metrics-bar { padding: 20px; }
  .afi-metric-divider { display: none; }
  .afi-metric { min-width: 120px; }
}

/* ---- Section title h2/h3 harmonization ---- */
.section-title h2,
.section-title h3 {
  font-family: "Fira Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
}

@media (max-width: 767px) {
  .section-title h2,
  .section-title h3 { font-size: 26px; }
}

/* Feature cards h3 */
.single-feature .content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}

/* ---- Modalities section ---- */
.afi-modalities-section {
  padding: 100px 0;
  background: #f8faff;
}

.afi-modality-card {
  background: #fff;
  border: 1px solid #e4eeff;
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.afi-modality-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(47, 128, 237, 0.12);
}

.afi-modality-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.afi-modality-icon {
  width: 52px;
  height: 52px;
  background: #EBF4FF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #2F80ED;
}

.afi-status-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

.afi-badge-available {
  background: #e8f8ef;
  color: #27AE60;
  border: 1px solid #b7e5cb;
}

.afi-badge-soon {
  background: #fff8e8;
  color: #F39C12;
  border: 1px solid #fde8a0;
}

.afi-badge-beta {
  background: #EBF4FF;
  color: #2F80ED;
  border: 1px solid #b8d9fc;
}

.afi-modality-card h3 {
  font-family: "Fira Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.afi-modality-card p {
  font-size: 14px;
  color: #585978;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.afi-modality-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.afi-modality-features li {
  font-size: 13px;
  color: #585978;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.afi-modality-features li i {
  color: #27AE60;
  font-size: 14px;
  flex-shrink: 0;
}

.afi-modality-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2F80ED;
  cursor: pointer;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.afi-modality-cta:hover {
  gap: 12px;
  color: #1a6ed8;
}

.afi-cta-disabled {
  color: #aaa;
  cursor: default;
}

.afi-cta-disabled:hover {
  gap: 8px;
  color: #aaa;
}

/* ---- How it works stepper ---- */
.afi-how-section {
  padding: 100px 0;
  background: #fff;
}

.afi-stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.afi-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

.afi-step-number {
  width: 44px;
  height: 44px;
  background: #2F80ED;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fira Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.afi-step-connector {
  position: absolute;
  left: 21px;
  top: 44px;
  width: 2px;
  height: calc(100% + 8px);
  background: linear-gradient(to bottom, #2F80ED 0%, #e4eeff 100%);
  z-index: 1;
}

.afi-step:last-child .afi-step-connector {
  display: none;
}

.afi-step-content {
  background: #f8faff;
  border: 1px solid #e4eeff;
  border-radius: 14px;
  padding: 24px 28px;
  flex: 1;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.afi-step-icon {
  font-size: 24px;
  color: #2F80ED;
  margin-bottom: 12px;
}

.afi-step-content h4 {
  font-family: "Fira Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.afi-step-content p {
  font-size: 14px;
  color: #585978;
  line-height: 1.7;
  margin: 0;
}

/* ---- Taxa info box ---- */
.afi-taxa-info-box {
  background: #f8faff;
  border: 1px solid #e4eeff;
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
}

.afi-taxa-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.afi-taxa-label {
  font-size: 13px;
  color: #585978;
}

.afi-taxa-value {
  font-family: "Fira Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

.afi-taxa-highlight {
  color: #2F80ED;
  font-size: 18px;
}

.afi-taxa-bar-wrapper {
  margin-top: 16px;
}

.afi-taxa-bar-track {
  position: relative;
  height: 6px;
  background: #e4eeff;
  border-radius: 3px;
  margin-bottom: 8px;
}

.afi-taxa-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #2F80ED;
  border-radius: 3px;
}

.afi-taxa-bar-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #2F80ED;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #2F80ED;
}

.afi-taxa-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #aaa;
}

.afi-taxa-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---- Roadmap ---- */
.afi-roadmap-section {
  padding: 100px 0;
  background: #fff;
}

.afi-roadmap-timeline {
  position: relative;
  padding-left: 40px;
}

.afi-roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #27AE60, #2F80ED, #e4eeff);
}

.afi-roadmap-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.afi-roadmap-item:last-child { margin-bottom: 0; }

.afi-roadmap-dot {
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e4eeff;
  border: 2px solid #c5d8f8;
  z-index: 2;
}

.afi-roadmap-done .afi-roadmap-dot {
  background: #27AE60;
  border-color: #27AE60;
  box-shadow: 0 0 0 4px rgba(39,174,96,0.15);
}

.afi-roadmap-active .afi-roadmap-dot {
  background: #2F80ED;
  border-color: #2F80ED;
  box-shadow: 0 0 0 4px rgba(47,128,237,0.15);
  animation: pulse-roadmap 2s infinite;
}

@keyframes pulse-roadmap {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47,128,237,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(47,128,237,0.08); }
}

.afi-roadmap-content {
  background: #f8faff;
  border: 1px solid #e4eeff;
  border-radius: 12px;
  padding: 20px 24px;
}

.afi-roadmap-done .afi-roadmap-content {
  border-color: #b7e5cb;
  background: #f0fbf5;
}

.afi-roadmap-active .afi-roadmap-content {
  border-color: #b8d9fc;
  background: #f0f7ff;
}

.afi-roadmap-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  margin-bottom: 6px;
}

.afi-roadmap-done .afi-roadmap-tag { color: #27AE60; }
.afi-roadmap-active .afi-roadmap-tag { color: #2F80ED; }

.afi-roadmap-content h4 {
  font-family: "Fira Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.afi-roadmap-content p {
  font-size: 14px;
  color: #585978;
  line-height: 1.6;
  margin: 0;
}

/* ---- FAQ ---- */
.afi-faq-section {
  padding: 100px 0;
}

.afi-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.afi-faq-item {
  background: #fff;
  border: 1px solid #e4eeff;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.afi-faq-item:hover {
  box-shadow: 0 4px 20px rgba(47, 128, 237, 0.08);
}

.afi-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: "Fira Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  transition: color 0.2s ease;
}

.afi-faq-question:hover {
  color: #2F80ED;
}

.afi-faq-question i {
  font-size: 14px;
  color: #2F80ED;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.afi-faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.afi-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.afi-faq-answer.open {
  max-height: 300px;
  padding: 0 24px 20px;
}

.afi-faq-answer p {
  font-size: 14px;
  color: #585978;
  line-height: 1.7;
  margin: 0;
}

/* ---- Footer tag badges ---- */
.afi-footer-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background: #fff8e8;
  color: #F39C12;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ---- Mobile floating CTA ---- */
.afi-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid #e4eeff;
  backdrop-filter: blur(8px);
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.afi-mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #2F80ED;
  color: #fff;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.afi-mobile-cta-btn:hover {
  background: #1a6ed8;
  color: #fff;
}

/* Adjust scroll-top on mobile to stay above floating CTA */
@media (max-width: 991px) {
  .scroll-top { bottom: 80px; }
}

/* ---- Feature card hover improvement ---- */
.single-feature {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 12px;
  padding: 20px;
}

.single-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(47, 128, 237, 0.1);
}

/* ---- General section padding ---- */
.feature-section.feature-style-5 {
  padding: 100px 0;
}
