.faq,
.faq * {
  overflow-anchor: none;
}

.faq {
  position: relative;
  overflow: clip;
  padding: 64px 0 40px;
  background:
    radial-gradient(ellipse 62% 28% at 96% 6%, rgba(232, 214, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 70% 22% at 8% 98%, rgba(245, 206, 241, 0.42), transparent 72%),
    #fbfaff;
}

.faq__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.faq__sky,
.faq__ground {
  position: absolute;
  display: block;
  overflow: visible;
}

.faq__sky {
  top: -8px;
  right: 0;
  width: min(92%, 640px);
  height: 220px;
}

.faq__ground {
  right: 0;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 210px;
}

.faq__hill--top {
  fill: #e7d8ff;
  opacity: 0.62;
}

.faq__hill--blush {
  fill: #f6d8f4;
  opacity: 0.55;
}

.faq__hill--back {
  fill: #e7dcff;
  opacity: 0.55;
}

.faq__hill--front {
  fill: #f6ecff;
  opacity: 0.9;
}

.faq__contour {
  stroke: #c4b0ef;
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: 0.7;
}

.faq .shell {
  position: relative;
  z-index: 1;
}

.faq__eyebrow {
  margin-bottom: 14px;
  color: #c5b4f0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.faq h2 {
  max-width: 8.8em;
  color: #14121a;
  font-size: clamp(1.85rem, 8.15vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.faq__lead {
  max-width: 28em;
  margin-top: 14px;
  color: #6f6a7c;
  font-size: 1.05rem;
  line-height: 1.45;
}

.faq__list,
.faq__rest-inner {
  display: grid;
  gap: 10px;
}

.faq__list {
  margin-top: 26px;
}

.faq__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.faq__more-icon {
  width: 16px;
  height: 16px;
}

.faq__more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__rest {
  display: grid;
}

.faq__rest-inner {
  min-height: 0;
}

html.js .faq__rest {
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease), margin-top 260ms var(--ease);
}

html.js .faq__rest.is-open {
  grid-template-rows: 1fr;
  margin-top: 10px;
}

html.js .faq__rest-inner {
  overflow: hidden;
}

html.js .faq__more-icon {
  transition: transform 200ms var(--ease);
}

html.js .faq__more[aria-expanded="true"] .faq__more-icon {
  transform: rotate(180deg);
}

.faq__item {
  overflow: hidden;
  border: 1px solid #d3c6e6;
  border-radius: 18px;
  background: #ddd2ee;
  box-shadow: 0 10px 24px rgba(80, 50, 140, 0.08);
}

.faq__item.is-open {
  border-color: #d3c6e6;
  background: #ddd2ee;
}

.faq__heading {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
}

.faq__trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  column-gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 16px 14px;
  text-align: left;
}

.faq__trigger:focus-visible {
  box-shadow: none;
}

.faq__item:has(.faq__trigger:focus-visible) {
  box-shadow: var(--focus);
}

.faq__mark svg {
  width: 20px;
  height: 20px;
}

.faq__question {
  color: #241c30;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.faq__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #6d6286;
}

.faq__minus {
  display: none;
}

.faq__item.is-open .faq__plus {
  display: none;
}

.faq__item.is-open .faq__minus {
  display: block;
}

.faq__panel {
  display: grid;
  grid-template-rows: 1fr;
}

html.js .faq__panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease);
}

html.js .faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__answer {
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fffcff, #faf5ff);
}

.faq__answer p {
  margin: 0;
  padding: 4px 16px 16px;
  color: #6f6a7c;
  font-size: 0.92rem;
  line-height: 1.55;
}

.faq__cta {
  min-height: 62px;
  margin-top: 22px;
  border-radius: var(--radius-pill);
  background: #6b3fd4;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(107, 63, 212, 0.32);
}

@media (max-width: 359px) {
  .faq__trigger {
    column-gap: 10px;
    padding-right: 12px;
    padding-left: 14px;
  }

  .faq__question {
    font-size: 0.92rem;
  }

  .faq__answer p {
    padding-right: 14px;
  }
}

@media (min-width: 768px) {
  .faq {
    padding: 80px 0 56px;
  }

  .faq .shell {
    width: min(100% - (var(--gutter) * 2), 880px);
  }

  .faq h2 {
    max-width: 11em;
    font-size: 2.75rem;
  }

  .faq__lead {
    font-size: 1.15rem;
  }

  .faq__question {
    font-size: 1.05rem;
  }

  .faq__answer p {
    font-size: 1rem;
  }

  .faq__sky {
    height: 280px;
  }
}

[data-theme="dark"] .faq {
  background:
    radial-gradient(ellipse 60% 28% at 96% 6%, rgba(110, 70, 190, 0.28), transparent 70%),
    radial-gradient(ellipse 70% 24% at 8% 98%, rgba(150, 50, 130, 0.16), transparent 72%),
    var(--bg);
}

[data-theme="dark"] .faq__hill--top {
  fill: #3a2a58;
  opacity: 0.7;
}

[data-theme="dark"] .faq__hill--blush {
  fill: #5a3060;
  opacity: 0.35;
}

[data-theme="dark"] .faq__hill--back {
  fill: #2c2048;
  opacity: 0.8;
}

[data-theme="dark"] .faq__hill--front {
  fill: #241c38;
  opacity: 0.92;
}

[data-theme="dark"] .faq__contour {
  stroke: #a78bfa;
  opacity: 0.35;
}

[data-theme="dark"] .faq__eyebrow {
  color: #c5b4f0;
}

[data-theme="dark"] .faq h2,
[data-theme="dark"] .faq__question {
  color: var(--ink);
}

[data-theme="dark"] .faq__lead,
[data-theme="dark"] .faq__answer p {
  color: var(--ink-muted);
}

[data-theme="dark"] .faq__item,
[data-theme="dark"] .faq__item.is-open {
  border-color: rgba(232, 224, 244, 0.16);
  background: #322c42;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .faq__answer {
  background: linear-gradient(180deg, #fffcff, #faf5ff);
}

[data-theme="dark"] .faq__answer p {
  color: #6f6a7c;
}

[data-theme="dark"] .faq__mark {
  color: #d2b4ff;
}

[data-theme="dark"] .faq__cta {
  background: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(139, 92, 246, 0.32);
}
