/* faq b: "Categories". A centred column: topic chips filter an accordion of question cards; the list re-lays
   itself out smoothly when the topic changes. Without the script every answer is shown and the chips stay hidden. */
.faq-b { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.faq-b__head { display: grid; justify-items: center; text-align: center; max-width: 780px; margin: 0 auto clamp(34px, 4vw, 52px); }
.faq-b__head .h2 { margin-top: 18px; }
.faq-b__lead { max-width: 44ch; }
[data-faq-title] > div { padding-bottom: .12em; margin-bottom: -.12em; }
.faq-b__body { max-width: 880px; margin: 0 auto; }

/* topic chips */
.faq-b__chips {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  width: fit-content; max-width: 100%; margin: 0 auto 26px; padding: 5px;
  border-radius: var(--r-control); background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.faq-b__chips[hidden] { display: none; }
.faq-b__chip-sel { position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; border-radius: 8px; background: var(--brand); }
.faq-b__chip {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font: 500 var(--t-medium)/1 var(--font); color: var(--text-2); transition: color .35s;
}
.faq-b__chip b { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-grid; place-items: center; font: 500 11px/1 var(--font); color: var(--text-2); background: color-mix(in srgb, var(--text) 8%, transparent); transition: color .35s, background-color .35s; }
.faq-b__chip:hover { color: var(--text); }
.faq-b__chip[aria-pressed="true"] { color: var(--on-brand); }
.faq-b__chip[aria-pressed="true"] b { color: var(--on-brand); background: color-mix(in srgb, var(--on-brand) 16%, transparent); }
.faq-b__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* question cards */
.faq-b__list { display: grid; gap: 10px; }
.faq-b__item {
  border-radius: var(--r-card); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line);
  transition: border-color .35s, box-shadow .5s var(--ease-out), background-color .35s;
}
.faq-b__item[hidden] { display: none; }
.faq-b__item:hover { border-color: var(--line-2); }
.faq-b__item.is-open { border-color: var(--line-2); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow-card); }
.faq-b__h { font: inherit; }
.faq-b__q {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) 36px; align-items: center; gap: 16px;
  width: 100%; padding: 20px 20px 20px 22px; margin: 0; border: 0; border-radius: var(--r-card); background: none; cursor: pointer; text-align: left; color: var(--text);
}
.faq-b__q:focus-visible { outline-offset: -3px; border-radius: var(--r-card); }
.faq-b__cat { justify-self: start; padding: 6px 10px; border-radius: 6px; font: 500 10.5px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.faq-b__cat--payments { color: var(--accent); background: var(--accent-soft); }
.faq-b__cat--money { color: var(--ok-fg); background: var(--ok-bg); }
.faq-b__cat--integration { color: var(--link); background: color-mix(in srgb, var(--link) 14%, transparent); }
.faq-b__qt { font: 600 var(--t-h4)/1.35 var(--font); letter-spacing: -.005em; }
.faq-b__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); transition: background-color .35s, border-color .35s, color .35s; }
.faq-b__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .55s var(--ease-out); }
.faq-b__q:hover .faq-b__icon { border-color: var(--accent); }
.faq-b__q[aria-expanded="true"] .faq-b__icon { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.faq-b__q[aria-expanded="true"] .faq-b__icon svg { transform: rotate(180deg); }
.faq-b__a { overflow: hidden; }
.faq-b__in { display: grid; gap: 14px; padding: 0 72px 24px 150px; }
.faq-b__in p { font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 60ch; }
.faq-b__in a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* the closing line */
.faq-b__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 22px; padding: 18px 20px 18px 24px; border-radius: var(--r-card); border: 1px dashed var(--line-2); }
.faq-b__more p { font-size: var(--t-medium); color: var(--text-2); }
.faq-b__more b { font-weight: 600; color: var(--text); }
.faq-b__btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* initial states (motion only) */
.motion .faq-b [data-faq-fade], .motion .faq-b [data-faq-title] { visibility: hidden; }
/* Focusable content starts transparent rather than invisible, so the keyboard can still reach it before it is revealed. */
.motion .faq-b__item { opacity: 0; }
.motion .faq-b--static [data-faq-fade], .motion .faq-b--static [data-faq-title] { visibility: visible; }
.motion .faq-b--static .faq-b__item { opacity: 1; }

@media (max-width: 640px) {
  .faq-b__chips { border-radius: var(--r-control); }
  .faq-b__chip { height: 38px; padding: 0 12px; font-size: 14px; gap: 6px; }
  .faq-b__q { grid-template-columns: minmax(0, 1fr) 34px; grid-template-areas: "cat icon" "qt icon"; row-gap: 10px; column-gap: 12px; padding: 18px 16px 18px 18px; }
  .faq-b__cat { grid-area: cat; }
  .faq-b__qt { grid-area: qt; }
  .faq-b__icon { grid-area: icon; width: 34px; height: 34px; }
  .faq-b__in { padding: 0 18px 20px; }
  .faq-b__more { padding: 18px; }
}
