/* ============================================================
   FAQ (2026-10-17): the last white section before the footer.
   Native <details>, no JavaScript.
   ============================================================ */

.faq {
  --faq-ink: #16203a;
  --faq-ink-soft: #4b5672;
  --faq-line: #dde2ec;
  --faq-accent: #007aff;   /* Apple's systemBlue, the app's primary */
  --faq-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --faq-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  padding-block: clamp(64px, 9vw, 120px);
  color: var(--faq-ink);
  font-family: var(--faq-body);
}
.faq__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: start;
}
.faq__head { display: grid; gap: 12px; }
.faq__head h2 {
  margin: 0;
  font-family: var(--faq-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-optical-sizing: auto;
  font-variation-settings: normal;
}
.faq__head p { margin: 0; max-width: 32ch; color: var(--faq-ink-soft); font-size: 17px; line-height: 1.55; }
.faq__head a { color: var(--faq-ink); }

/* Rules sit between the questions only. No cap above the first or below
   the last, so the list reads as part of the white section rather than as
   a boxed-off table. */
.faq__item + .faq__item { border-top: 1px solid var(--faq-line); }
.faq__item summary {
  position: relative;
  display: block;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
/* A plus that turns into a minus. */
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--faq-ink);
  transition: transform 0.2s ease;
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--faq-accent); }
.faq__item p { margin: 0; padding: 0 44px 24px 0; max-width: 62ch; color: var(--faq-ink-soft); font-size: 16px; line-height: 1.6; }

@media (max-width: 760px) {
  .faq__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq__item summary { font-size: 17px; }
  .faq__head { justify-items: center; text-align: center; } /* the heading and its line; the questions stay left */
}
@media (prefers-reduced-motion: reduce) {
  .faq__item summary::before, .faq__item summary::after { transition: none; }
}
