/* FAQ: clean white cards that open, each with its own glossy colour button. */

.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: 100px; margin-bottom: 0; }
.faq .key {
  display: inline-block; font: 600 15px/1 var(--font-display); padding: 5px 9px 6px; margin: 0 1px;
  background: var(--paper); border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -2px 0 var(--line);
}
.faq-list { display: grid; gap: 12px; }

.q {
  --c: var(--accent);
  background: var(--paper); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .18s ease, transform .18s var(--ease-spring);
}
.q:nth-child(6n+2) { --c: var(--pink); }
.q:nth-child(6n+3) { --c: var(--green); }
.q:nth-child(6n+4) { --c: var(--sky); }
.q:nth-child(6n+5) { --c: var(--gold); }
.q:nth-child(6n) { --c: var(--purple); --on-c: #fff; }
.q:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), var(--pop-sm); }
.q[open] { box-shadow: inset 0 0 0 1px var(--line), var(--pop); transform: none; }

.q summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; min-height: 56px; border-radius: var(--radius);
}
.q summary::-webkit-details-marker { display: none; }
.q summary h3 { font-size: clamp(20px, 2.1vw, 24px); margin: 0; flex: 1 1 auto; min-width: 0; }
.q summary::after {
  content: "+" / ""; flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  font: 600 26px/1 var(--font-display); color: var(--on-c, var(--ink));
  background: var(--sheen), var(--c); box-shadow: var(--sheen-edge), 0 8px 16px -10px color-mix(in srgb, var(--c) 80%, #000);
  border-radius: 50%;
  transition: transform .25s var(--ease-spring);
}
.q[open] summary::after { transform: rotate(45deg); }
.q .a { padding: 0 20px 20px; color: var(--ink-2); }
.q .a p { margin: 0; }
.q .a code { font-size: 15px; background: var(--soft); border-radius: 8px; padding: 2px 7px; white-space: nowrap; }
.q .a a { font-weight: 700; }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
}
