/* "Questions financial services teams ask first." (Figma: home / FAQ).
   Single-open accordion; every row starts closed. */

.fl-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 40px;
  font-family: var(--fl-font-sans);
}

.fl-faq__title {
  margin: 0;
  color: var(--fl-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 61.2px;
  text-align: center;
}

.fl-faq__script {
  color: var(--fl-green);
  font-family: var(--fl-font-script);
  font-weight: 700;
}

.fl-faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 768px;
}

.fl-faq__item {
  box-sizing: border-box;
  overflow: hidden;
  border: 2px solid rgba(21, 26, 38, 0.8);
  border-radius: 16px;
  background: var(--fl-white);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hovering a row lifts it off the page: the border goes to full strength and
   the hard shadow appears, matching the buttons and cards elsewhere. The row
   shifts up-left by the shadow's offset so it reads as lifting rather than
   the shadow simply growing out of nothing. */
.fl-faq__item:hover,
.fl-faq__item:has(.fl-faq__question:focus-visible) {
  transform: translate(-2px, -2px);
  border-color: var(--fl-ink);
  box-shadow: var(--fl-shadow-lg);
}

.fl-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 23px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 20px 24px;
  border: 0;
  background: none;
  color: var(--fl-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-align: left;
  cursor: pointer;
}

.fl-faq__toggle {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(21, 26, 38, 0.14);
  border-radius: 999px;
  background: var(--fl-surface);
  color: #414650;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fl-faq__toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.fl-faq__question[aria-expanded="true"] .fl-faq__toggle {
  border-color: var(--fl-green);
  background: var(--fl-green);
  color: var(--fl-white);
}

.fl-faq__question[aria-expanded="true"] .fl-faq__toggle svg {
  transform: rotate(180deg);
}

.fl-faq__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.fl-faq__answer {
  max-width: 649px;
  margin: 0;
  padding: 0 24px 24px;
  color: var(--fl-text-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

/* Section reveal — heading first, then each row rises in order. */
.fl-faq--armed .fl-faq__title,
.fl-faq--armed .fl-faq__item {
  opacity: 0;
}

.fl-faq--play .fl-faq__title,
.fl-faq--play .fl-faq__item {
  animation: fl-faq-rise 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fl-faq--play .fl-faq__item {
  animation-delay: calc(80ms + var(--i, 0) * 50ms);
}

@keyframes fl-faq-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-faq--armed .fl-faq__title,
  .fl-faq--armed .fl-faq__item,
  .fl-faq--play .fl-faq__title,
  .fl-faq--play .fl-faq__item {
    opacity: 1;
    animation: none;
  }

  .fl-faq__item,
  .fl-faq__panel,
  .fl-faq__toggle svg {
    transition: none;
  }

  /* Keep the border and shadow cue, drop the movement. */
  .fl-faq__item:hover,
  .fl-faq__item:has(.fl-faq__question:focus-visible) {
    transform: none;
  }
}

@media (max-width: 600px) {
  .fl-faq {
    gap: 32px;
    padding: 0;
  }

  .fl-faq__title {
    font-size: 40px;
    line-height: 44px;
  }

  .fl-faq__question {
    gap: 16px;
    padding: 16px 20px;
    font-size: 16px;
    line-height: 24px;
  }

  .fl-faq__answer {
    padding: 0 20px 16px;
    font-size: 15px;
  }
}
