/* =========================================================
   Help page
   ========================================================= */

/* Hero + search */
.help-hero {
  padding: 96px var(--pad-x) 72px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center;
}
.help-hero__lead { max-width: 680px; }
.help-search {
  width: 640px; max-width: 100%;
  background: var(--background);
  border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.help-search:focus-within { border-color: var(--foreground); box-shadow: var(--shadow-md), 0 0 0 3px color-mix(in srgb, var(--foreground) 6%, transparent); }
.help-search__input {
  display: block; width: 100%; padding: 18px 24px;
  border: 0; outline: 0; background: transparent; border-radius: inherit;
  font: inherit; font-size: 14px; line-height: 20px; color: var(--foreground);
  -webkit-appearance: none; appearance: none;
}
.help-search__input::placeholder { color: var(--muted-foreground); opacity: 1; }
.help-search__input::-webkit-search-cancel-button { cursor: pointer; }
.help-search__label,
.help-search__status {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Contact cards */
.help-contact {
  padding: 112px var(--pad-x);
  display: flex; align-items: flex-start; gap: 20px;
}
.help-contact__card {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 28px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--card);
}
.help-contact__btn { border-color: var(--foreground); }

/* FAQ sections (shared .faq accordion from base.css) */
.help-faq { padding: 112px var(--pad-x); display: flex; align-items: flex-start; }
.help-faq__head { display: flex; flex-direction: column; gap: 14px; }
.faq__q { cursor: pointer; }

/* Live search filtering: matching rows stay, the rest fade out then collapse */
.faq__item, .help-faq, .help-empty { transition: opacity var(--dur-ui) var(--ease-out); }
.faq__item.is-filtered, .help-faq.is-filtered, .help-empty.is-filtered { opacity: 0; }
.faq__item[hidden], .help-faq[hidden], .help-empty[hidden] { display: none; }

.help-empty {
  padding: 0 var(--pad-x) 112px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}

/* CTA band (Help-specific) */
.help-cta { padding: 40px var(--pad-x) 96px; }
.help-cta__panel {
  background: var(--muted); border-radius: 28px;
  padding: 72px 80px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.help-cta__lead { max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  main { --pad-x: 20px; }
  .help-hero { padding: 32px var(--pad-x) 40px; align-items: flex-start; gap: 20px; text-align: left; }
  .help-hero__lead { font-size: 14px; line-height: 20px; letter-spacing: 0; font-weight: 400; }
  .help-search { width: 100%; }

  .help-contact { flex-direction: column; align-items: stretch; gap: 16px; padding: 64px var(--pad-x); }

  .help-faq { padding: 64px var(--pad-x); flex-direction: column; align-items: stretch; gap: 28px; }
  .help-faq__head { gap: 10px; }
  /* Figma mobile keeps the desktop FAQ row size */
  .help-faq .faq__q { font-size: 24px; line-height: 30px; padding: 24px 0; }
  .help-faq .faq__item.is-open .faq__q { padding-bottom: 12px; }
  .help-faq .faq__a p { font-size: 16px; line-height: 26px; }

  .help-empty { padding: 0 var(--pad-x) 64px; }

  .help-cta { padding: 16px var(--pad-x) 48px; }
  .help-cta__panel { padding: 40px 24px; gap: 16px; border-radius: 20px; }
  .help-cta__lead { font-size: 14px; line-height: 20px; letter-spacing: 0; font-weight: 400; }
}
