.faq {
  background: var(--color-neutral-white);
  padding: 96px 24px 120px;
  text-align: center;
}

.faq__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq__content {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.faq__badge {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand-blue);
  background: var(--color-brand-blue-lightest);
  padding: 8px 18px;
  border-radius: 999px;
}

.faq__title {
  font-family: var(--font-geist);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--color-neutral-900);
  margin: 0;
  letter-spacing: -1.5px;
  text-align: center;
}

.faq__title-accent {
  color: var(--color-brand-blue);
}

.faq__subtitle {
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  color: var(--color-neutral-600);
  max-width: 620px;
  margin: 0;
}

/* List */

.faq__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-neutral-100);
  border-radius: 24px;
  padding: 12px;
}

.faq__item {
  background: var(--color-neutral-white);
  border-radius: 16px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-neutral-900);
  background: transparent;
  border: none;
  text-align: left;
  padding: 24px 28px;
  cursor: pointer;
}

.faq__chevron {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--color-neutral-500);
  transition: transform 200ms ease;
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 28px;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-neutral-600);
  text-align: left;
}

.faq__item.is-open .faq__answer p {
  padding: 0 28px 24px;
}

/* CTA card */

.faq__cta {
  position: relative;
  background: var(--color-neutral-white);
  border-radius: 16px;
  min-height: 168px;
  padding: 24px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 24px;
  overflow: hidden;
  text-align: left;
}

.faq__cta::after {
  content: '';
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 124px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 260px 130px at 88% 100%, rgba(37, 99, 235, 0.34) 0%, rgba(37, 99, 235, 0.18) 44%, rgba(37, 99, 235, 0) 78%),
    radial-gradient(ellipse 300px 126px at 56% 100%, rgba(130, 204, 255, 0.45) 0%, rgba(130, 204, 255, 0.18) 52%, rgba(130, 204, 255, 0) 82%),
    radial-gradient(ellipse 260px 116px at 32% 100%, rgba(119, 238, 238, 0.38) 0%, rgba(119, 238, 238, 0.16) 54%, rgba(119, 238, 238, 0) 84%);
  filter: blur(18px);
  opacity: 0.95;
}

.faq__cta-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  max-width: 610px;
  padding: 0 0 24px;
}

.faq__cta-badge {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand-blue);
  background: var(--color-brand-blue-lightest);
  padding: 8px 18px;
  border-radius: 999px;
}

.faq__cta-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-neutral-900);
  margin: 0 0 10px;
}

.faq__cta-desc {
  font-size: 15px;
  line-height: 22px;
  color: var(--color-neutral-600);
  margin: 0 0 24px;
}

.faq__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-button);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-neutral-white);
  background: var(--color-brand-blue);
  padding: 14px 22px;
  border-radius: 12px;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.faq__cta-btn:hover {
  background: var(--color-brand-blue-hover);
  box-shadow: 0 12px 28px 0 rgba(43, 92, 246, 0.2);
}

.faq__cta-image {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 168px;
  align-self: stretch;
  overflow: visible;
}

.faq__cta-image img {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 190px;
  max-width: none;
  height: auto;
  object-fit: contain;
}

@media (max-width: 820px) {
  .faq__cta {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 24px 0;
    gap: 16px;
  }

  .faq__cta::after {
    left: 0;
    right: auto;
    width: 100%;
    height: 130px;
  }

  .faq__cta-text {
    max-width: none;
    padding: 0;
  }

  .faq__cta-image {
    width: 100%;
    min-height: 230px;
  }

  .faq__cta-image img {
    left: 50%;
    right: auto;
    width: min(76%, 280px);
    transform: translateX(-50%);
  }
}

@media (max-width: 720px) {
  .faq {
    padding: 64px 20px 80px;
  }

  .faq__title {
    font-size: 32px;
    letter-spacing: -0.02em;
  }

  .faq__question {
    font-size: 16px;
    padding: 20px;
  }

  .btn-cta {
    width: 100%;
  }

  .faq__cta-image {
    min-height: 250px;
  }

  .faq__cta-image img {
    width: min(76%, 250px);
  }
}
