/* ==========================================================================
   Alkando — FAQ at the foot of the home page. After structured.app's: a
   centred list on a colour of its own, each question with a plus that turns
   into a cross, and a way on to the full help page.
   ========================================================================== */

.hfaq {
  /* No background of its own: it sits on the modes sheet, and the drifting
     glyphs carry on behind it. */
  position: relative;
  margin-top: clamp(90px, 14vh, 150px);
  font-family: var(--ak-font-ui);
  color: var(--ak-text);
}

.hfaq__title {
  margin: 0 0 clamp(28px, 4vh, 44px);
  text-align: center;
  font: 800 clamp(2.1rem, 5vw, 3.2rem)/1.08 var(--ak-font-rounded);
  letter-spacing: -0.02em;
}

.hfaq__title,
.hfaq__list,
.hfaq__more {
  position: relative;
  z-index: 1;
}

.hfaq__list {
  max-width: 820px;
  margin: 0 auto;
}

.hfaq__q {
  border-bottom: 1px solid rgba(30, 20, 54, 0.12);
}

.hfaq__q summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  font: 600 clamp(1.05rem, 1.8vw, 1.2rem)/1.35 var(--ak-font-ui);
  list-style: none;
  cursor: pointer;
}

.hfaq__q summary::-webkit-details-marker {
  display: none;
}

.hfaq__q summary span {
  flex: 1;
}

.hfaq__q summary svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  transition: transform 260ms var(--ak-ease-out);
}

.hfaq__q[open] summary svg {
  transform: rotate(45deg);
  color: #6b3fe8;
}

.hfaq__q p {
  margin: 0;
  padding: 0 44px 24px 4px;
  color: var(--ak-text-2);
  font: 400 16px/1.6 var(--ak-font-ui);
}

.hfaq__q summary:focus-visible {
  outline: 2px solid #6b3fe8;
  outline-offset: 2px;
  border-radius: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .hfaq__q summary:hover span {
    color: var(--ak-text);
    text-decoration: underline;
    text-decoration-color: rgba(30, 20, 54, 0.25);
    text-underline-offset: 5px;
  }
}

.hfaq__more {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 40px auto 0;
  padding: 14px 24px;
  border-radius: 999px;
  /* On the light background the white capsule would vanish: brand violet. */
  background: #6b3fe8;
  color: #fff;
  box-shadow: 0 12px 26px rgba(107, 63, 232, 0.3);
  font: 700 16px/1 var(--ak-font-ui);
  text-decoration: none;
  transition: transform var(--ak-dur-tap) var(--ak-ease-out);
}

.hfaq__more svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hfaq__more:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .hfaq__q summary svg,
  .hfaq__more {
    transition: none;
  }
}
