/* ==========================================================================
   GoodCap Capital — FAQ page (Phase 9)
   ========================================================================== */

/* ---------- Hero with search ---------- */
.fq-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
  background: radial-gradient(60% 90% at 50% 0%, #e3f1ff 0%, transparent 70%), linear-gradient(180deg, #f4f9ff, #fff);
  border-bottom: 1px solid var(--gc-line);
}
.fq-hero__inner { max-width: 820px; }
.fq-hero .breadcrumb ol { justify-content: center; }
.fq-hero h1 { font-size: var(--fs-h1); letter-spacing: -0.034em; margin: 16px 0 14px; }
.fq-hero .lead { max-width: 52ch; margin-inline: auto; }
.js .fq-in { opacity: 0; transform: translateY(16px); animation: fq-in .7s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fq-in { to { opacity: 1; transform: none; } }

.fq-search { position: relative; max-width: 640px; margin: 30px auto 0; }
.fq-search__input {
  width: 100%; height: 64px; padding: 0 60px 0 58px; border-radius: 20px;
  border: 1.5px solid var(--gc-line-blue); background: #fff; font-size: 1.0625rem; color: var(--gc-ink);
  box-shadow: 0 18px 50px -18px rgba(6, 50, 129, 0.25); transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.fq-search__input::-webkit-search-cancel-button { display: none; }
.fq-search__input::placeholder { color: #94a3b8; }
.fq-search__input:focus { outline: none; border-color: var(--gc-blue); box-shadow: 0 0 0 5px rgba(2, 128, 231, 0.14), 0 18px 50px -18px rgba(6, 50, 129, 0.25); }
.fq-search__icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--gc-blue); pointer-events: none; }
.fq-search__clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--gc-muted); }
.fq-search__clear:hover { background: var(--gc-mist); color: var(--gc-ink); }
.fq-search__clear[hidden] { display: none; }
.fq-hero__hint { margin-top: 16px; font-size: 0.875rem; color: var(--gc-muted); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; }
.fq-hero__hint button { min-height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--gc-line); font-weight: 700; color: var(--gc-navy); font-size: 0.8125rem; }
.fq-hero__hint button:hover { border-color: var(--gc-blue); color: var(--gc-blue); }

/* ---------- Body ---------- */
.fq-body { padding-top: clamp(32px, 5vw, 64px); }
.fq-body__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.fq-body__grid > * { min-width: 0; }
@media (min-width: 1024px) { .fq-body__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } }

.fq-nav__title { font-size: 0.875rem; font-weight: 700; color: var(--gc-muted); margin-bottom: 12px; }
.fq-chips { display: flex; gap: 8px; }
@media (max-width: 1023px) {
  .fq-nav { position: sticky; top: var(--header-h); z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gc-line); }
  .fq-nav__title { display: none; }
  .fq-chips { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .fq-chips::-webkit-scrollbar { display: none; }
  .fq-chip { flex-shrink: 0; scroll-snap-align: start; }
}
@media (min-width: 1024px) { .fq-nav { position: sticky; top: calc(var(--header-h) + 28px); } .fq-chips { flex-direction: column; } }
.fq-chip {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 0 12px 0 16px; border-radius: 12px; text-align: left;
  border: 1px solid var(--gc-line); background: #fff; font-size: 0.9375rem; font-weight: 700; color: var(--gc-ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
@media (min-width: 1024px) { .fq-chip { width: 100%; min-height: 48px; } }
.fq-chip:hover { border-color: var(--gc-line-blue); color: var(--gc-blue); }
.fq-chip__count { min-width: 26px; height: 24px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--gc-mist); color: var(--gc-muted); font-size: 0.75rem; font-weight: 800; }
.fq-chip[aria-pressed="true"] { background: var(--gc-navy); border-color: var(--gc-navy); color: #fff; }
.fq-chip[aria-pressed="true"] .fq-chip__count { background: rgba(255, 255, 255, 0.16); color: #fff; }

.fq-status { font-size: 0.875rem; font-weight: 700; color: var(--gc-muted); margin-bottom: 18px; }
.fq-group + .fq-group { margin-top: 40px; }
.fq-group[hidden] { display: none; }
.fq-group__title { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 16px; letter-spacing: -0.02em; }
.fq-list.is-searching .fq-group + .fq-group { margin-top: 12px; }
.fq-list.is-searching .fq-group__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fq-list .faq__item { scroll-margin-top: calc(var(--header-h) + 80px); }
.fq-list .faq__btn { font-size: 1.0625rem; min-height: 68px; }
.fq-q { flex: 1; }
.fq-tag { display: none; flex-shrink: 0; padding: 4px 10px; border-radius: 99px; background: var(--gc-mist); color: var(--gc-muted); font-size: 0.75rem; font-weight: 700; }
.fq-list.is-searching .fq-tag { display: inline-flex; }
@media (max-width: 599px) { .fq-list.is-searching .fq-tag { display: none; } }
.fq-mark { background: #fff1b8; color: inherit; border-radius: 4px; padding: 0 2px; }
.faq__panel p a { color: var(--gc-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.fq-link { padding-top: 0 !important; }
.fq-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; margin-left: -10px; border-radius: 10px; font-size: 0.8125rem; font-weight: 700; color: var(--gc-muted); }
.fq-copy:hover { background: var(--gc-mist); color: var(--gc-blue); }
.fq-copy.is-copied { color: var(--gc-success); }
.fq-copy .icon { width: 15px; height: 15px; }

.fq-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(32px, 6vw, 56px) 20px; border-radius: 24px; border: 1.5px dashed var(--gc-line-blue); background: #fff; }
.fq-empty[hidden] { display: none; }
.fq-empty__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gc-tint); color: var(--gc-blue); }
.fq-empty__icon .icon { width: 28px; height: 28px; }
.fq-empty h2 { font-size: 1.35rem; overflow-wrap: anywhere; }
.fq-empty p { color: var(--gc-muted); max-width: 46ch; }
.fq-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

.fq-cta { padding-bottom: var(--section-y); }

@media (prefers-reduced-motion: reduce) { .js .fq-in { opacity: 1; transform: none; animation: none; } }
