/* ==========================================================================
   CryptoBind FAQ — page composition
   Layout only. All colours, sizes and components come from tokens.css and
   components.css; nothing here redefines a component.
   ========================================================================== */

/* Hero --------------------------------------------------------------------
   An inverse navy band: the search layer is unmistakably separate from the
   white answer list below it, and the brand carries the top of the page.
   Text roles come from the inverse semantic tokens — no hard-coded colours. */
.hero {
  padding-block: var(--space-16);
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse-muted);
}
.hero .eyebrow { color: var(--color-text-accent-inverse); }
.hero__title { color: var(--color-text-inverse); }
.hero .lead { color: var(--color-text-inverse-muted); }
.hero .search-status { color: var(--color-text-inverse-muted); }
.hero .search-status strong { color: var(--color-text-inverse); }
.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-4);
}
.hero__lead { margin-bottom: var(--space-8); }
.hero__search { max-width: 680px; }
.hero__search .search { box-shadow: var(--elevation-2); }

@media (max-width: 640px) {
  .hero { padding-block: var(--space-10); }
  .hero__title { font-size: 1.875rem; }
}

/* Popular questions -------------------------------------------------------
   A shortcut layer, not a second list: each row carries its category so the
   reader knows where the answer lives. */
.popular { padding-block: var(--space-10) var(--space-4); }
.popular__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.popular__head h2 { font-size: var(--fs-h3); }
.popular__head p { margin: 0; font-size: var(--fs-caption); color: var(--color-text-subtle); }
.popular__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 680px) { .popular__list { grid-template-columns: 1fr; } }

.popular__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4);
}
.popular__q { display: block; font-size: var(--fs-body-sm); font-weight: var(--fw-medium); line-height: var(--lh-snug); color: var(--color-text-strong); }
.popular__cat { display: block; margin-top: var(--space-1); font-size: var(--fs-caption); color: var(--color-text-subtle); }
.popular__item .icon { flex: none; color: var(--color-text-subtle); transition: transform var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
a.popular__item:hover .icon { color: var(--color-text-accent); transform: translateX(2px); }

/* FAQ body ----------------------------------------------------------------
   Category headings hang their icon in the left margin on wide screens so the
   heading text starts on exactly the same rail as every question below it. */
.faq { padding-block: var(--space-10) var(--space-16); }

.faq-category { scroll-margin-top: calc(var(--header-height) + 88px); }
.faq-category + .faq-category { margin-top: var(--space-16); }
.faq-category__head {
  position: relative;
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  margin-bottom: var(--space-5);
}
/* Bulk control sits at the far end of the heading row, quiet by default. */
.faq-category__toggle { margin-left: auto; flex: none; color: var(--color-text-subtle); }
.faq-category__toggle:hover { color: var(--color-text-brand); }
@media (max-width: 560px) {
  .faq-category__toggle { min-height: var(--tap-target); margin-left: 0; }
}
.faq-category__head h2 { font-size: var(--fs-h2); }
.faq-category__head .icon-tile { flex: none; }

@media (min-width: 1120px) {
  .faq-category__head .icon-tile { position: absolute; left: calc(var(--space-16) * -1); top: 50%; transform: translateY(-50%); }
}

/* Still need help ---------------------------------------------------------- */
.help-cta { padding-bottom: var(--space-16); }
.help-cta__panel { padding: var(--space-10); }
.help-cta__title { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.help-cta__title h2 { font-size: var(--fs-h2); }
.help-cta__panel .icon-tile {
  width: 48px; height: 48px; flex: none;
  background: rgba(255, 255, 255, 0.10);
  color: var(--orange-400);
}
.help-cta__panel p { max-width: 60ch; }
.help-cta__actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.help-cta__actions .btn--secondary {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-border-inverse);
}
.help-cta__actions .btn--secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); color: var(--color-text-inverse); }
@media (max-width: 680px) {
  .help-cta__panel { padding: var(--space-6); }
  .help-cta__title h2 { font-size: var(--fs-h3); }
}

/* Footer ------------------------------------------------------------------- */
.site-footer__logo { height: 30px; width: auto; opacity: 0.85; }
.site-footer__brand { display: flex; align-items: center; gap: var(--space-4); }
