/* =========================================================
   MINDD2 — FAQ page (mobile-first)
   Builds on css/styles.css (tokens, header, footer, buttons, CTA panel).
   ========================================================= */

/* ---------- Introduction ---------- */
.faq-intro {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
  text-align: center;
}
.faq-intro::before {
  content: "";
  position: absolute;
  left: 50%; top: -220px;
  width: 560px; height: 560px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 46, 255, .07), transparent);
  pointer-events: none;
}
.faq-intro-inner { position: relative; max-width: 760px; margin: 0 auto; }

.faq-eyebrow {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--purple);
}
.faq-title {
  margin: 16px auto 16px;
  font-size: clamp(1.875rem, 8.4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .005em;
  text-wrap: balance;
}
.faq-lead {
  max-width: 26em;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ---------- Accordion ---------- */
.faq-section { padding: 16px 0 72px; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  border-radius: 12px;
  transition: color .2s var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--violet); }
.faq-q:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

.faq-q-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .03em;
}
details[open] > .faq-q .faq-q-text { color: var(--purple); }

/* Plus that turns into a minus */
.faq-icon {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #F4F2FF;
  transition: background-color .25s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.75px;
  border-radius: 2px;
  background: var(--violet);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > .faq-q .faq-icon { background: var(--lime); }
details[open] > .faq-q .faq-icon::before { background: var(--indigo); }
details[open] > .faq-q .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq-a { padding: 0 52px 22px 4px; }
.faq-a p {
  max-width: 40em;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}
details[open] > .faq-a { animation: faq-open .3s var(--ease); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
}

/* ---------- Final CTA (reuses .cta-panel) ---------- */
.faq-cta-title { margin: 0 0 14px; font-size: clamp(1.625rem, 7vw, 2.75rem); font-weight: 500; }
.faq-cta-text {
  position: relative;
  max-width: 26em;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.faq-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}
.btn-outline-light:hover { border-color: var(--lime); color: var(--lime); }
.btn-outline-light:focus-visible { outline-color: var(--lime); }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 640px) {
  .faq-intro { padding: 72px 0 40px; }
  .faq-section { padding: 24px 0 96px; }
  .faq-q { min-height: 76px; padding: 22px 8px; }
  .faq-q-text { font-size: 1.0625rem; }
  .faq-a { padding: 0 72px 26px 8px; }
  .faq-a p { font-size: 1.0625rem; }
  .faq-cta-actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 960px) {
  .faq-intro { padding: 96px 0 48px; }
  .faq-section { padding-bottom: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  details[open] > .faq-a { animation: none; }
  .faq-icon::before, .faq-icon::after { transition: none; }
}
