/* /faq — vertical scroll-snap flip cards */

body[data-page="faq"] {
  background: #020617;
}

body[data-page="faq"] .ac-page-shell {
  background: #020617;
}

body[data-page="faq"] main.page,
body[data-page="faq"] main.container.page {
  max-width: none;
  padding-inline: 0;
  padding-block: 0;
  background: #020617;
}

body[data-page="faq"] footer.site-footer,
body[data-page="faq"] .site-footer {
  margin-top: 0;
  border-top-color: rgba(148, 163, 184, 0.1);
  background: #020617;
}

.faqPage {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 8vw, 120px) 0 clamp(32px, 4vw, 48px);
  background: #020617;
}

.faqPage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 18% 18%, rgba(236, 72, 153, 0.07), transparent 62%),
    radial-gradient(ellipse 45% 38% at 82% 72%, rgba(59, 130, 246, 0.08), transparent 65%),
    radial-gradient(ellipse 40% 28% at 50% 88%, rgba(236, 72, 153, 0.035), transparent 72%),
    linear-gradient(180deg, #050b1a 0%, #030a16 58%, #020617 82%, #020617 100%);
}

.faqPage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: clamp(140px, 22vw, 220px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0) 0%, #020617 88%);
}

.faqPage__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
}

.faqPage__glow--left {
  left: -8%;
  top: 12%;
  width: min(420px, 42vw);
  height: min(420px, 42vw);
  background: rgba(236, 72, 153, 0.09);
}

.faqPage__glow--right {
  right: -6%;
  bottom: 8%;
  width: min(360px, 38vw);
  height: min(360px, 38vw);
  background: rgba(59, 130, 246, 0.1);
}

.faqPage__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.faqPage__header {
  margin-bottom: clamp(48px, 5vw, 56px);
  text-align: center;
}

.faqPage__title {
  margin: 0 0 12px;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

.faqPage__subtitle {
  margin: 0 auto;
  max-width: 42ch;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.92);
}

.faqPage__layout {
  display: flex;
  justify-content: center;
  max-width: min(100%, 580px);
  margin-inline: auto;
}

.faqPage__carouselCol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  overflow: visible;
}

.faqPage__nav {
  flex-shrink: 0;
}

.faqPage__navIcon {
  display: block;
}

.faqPage__navIcon--up {
  transform: rotate(-90deg);
}

.faqPage__navIcon--down {
  transform: rotate(90deg);
}

.faqPage__carouselWrap {
  position: relative;
  width: min(100%, 580px);
  flex-shrink: 0;
  height: clamp(280px, 34vh, 360px);
  box-sizing: border-box;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.faqPage__carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: calc(100% + 88px);
  max-width: none;
  height: 100%;
  margin-inline: -44px;
  padding-inline: 44px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  outline: none;
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.faqPage__carousel::-webkit-scrollbar {
  display: none;
}

.faqPage__carouselPad {
  flex-shrink: 0;
  width: 100%;
  height: clamp(40px, 6vh, 56px);
}

.faqPage__card {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 0;
  perspective: 1200px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  overflow: visible;
  opacity: var(--faq-opacity, 0.38);
  transform: scale(var(--faq-scale, 0.94));
  transition:
    opacity 0.55s cubic-bezier(0.33, 1, 0.38, 1),
    transform 0.55s cubic-bezier(0.33, 1, 0.38, 1);
}

.faqPage__card.is-active::before,
.faqPage__card:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(100%, 520px);
  height: calc(100% - 4px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.38) 0%,
    rgba(59, 130, 246, 0.12) 42%,
    transparent 72%
  );
  filter: blur(10px);
  pointer-events: none;
}

.faqPage__cardFlip {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: center;
  border-radius: 999px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
  overflow: visible;
  transition: transform 1.25s cubic-bezier(0.34, 1.02, 0.44, 1);
}

.faqPage__cardFace {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 14, 34, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    border-color 0.55s cubic-bezier(0.33, 1, 0.38, 1),
    background 0.55s cubic-bezier(0.33, 1, 0.38, 1),
    box-shadow 0.55s cubic-bezier(0.33, 1, 0.38, 1),
    color 0.55s cubic-bezier(0.33, 1, 0.38, 1);
}

.faqPage__cardFace--front {
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 500;
  line-height: 1.35;
}

.faqPage__cardFace--back {
  transform: rotateX(180deg);
  color: rgba(203, 213, 225, 0.82);
  font-size: clamp(0.86rem, 1.05vw, 0.94rem);
  font-weight: 400;
  line-height: 1.55;
}

.faqPage__card:hover .faqPage__cardFace,
.faqPage__card.is-active .faqPage__cardFace {
  border-color: rgba(96, 165, 250, 0.22);
}

.faqPage__card.is-active .faqPage__cardFace--front {
  color: rgba(241, 245, 249, 0.92);
}

.faqPage__card.is-active .faqPage__cardFace {
  border-color: rgba(59, 130, 246, 0.48);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: none;
}

.faqPage__card.is-active .faqPage__cardFace--front {
  color: #ffffff;
  font-weight: 600;
}

.faqPage__card.is-flipped .faqPage__cardFlip,
.faqPage__card.is-active.is-flipped .faqPage__cardFlip {
  transform: rotateX(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .faqPage__card:hover .faqPage__cardFlip {
    transform: rotateX(180deg);
  }

  .faqPage__card:hover .faqPage__cardFace {
    border-color: rgba(59, 130, 246, 0.52);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: none;
  }

  .faqPage__card:hover .faqPage__cardFace--front {
    color: #ffffff;
    font-weight: 600;
  }
}

.faqPage__carousel:focus,
.faqPage__carousel:focus-visible {
  outline: none;
}

.faqPage__cardFlip:focus,
.faqPage__cardFlip:focus-visible {
  outline: none;
}

.faqPage__cardFlip:focus-visible .faqPage__cardFace--front {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: none;
}

.faqPage__pillText,
.faqPage__answerText {
  display: block;
  max-width: 100%;
}

.faqPage__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(40px, 4.5vw, 56px);
  padding-bottom: clamp(8px, 1.5vw, 16px);
  text-align: center;
}

.faqPage__footerText {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(203, 213, 225, 0.82);
}

.faqPage__cta {
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .faqPage__carousel {
    scroll-behavior: auto;
  }

  .faqPage__card,
  .faqPage__cardFlip,
  .faqPage__cardFace {
    transition: none;
  }
}
