/* Help Center page styles */

/* Hero banner */
.help-hero-banner {
  background: linear-gradient(135deg, #1f3d2a 0%, #24543a 55%, #1f3d2a 100%);
  color: #fdfbf6;
  padding: calc(var(--space-8) + var(--space-5)) 0 var(--space-8);
  text-align: center;
}

.help-hero-banner__content {
  max-width: 640px;
  margin: 0 auto;
}

.help-hero-banner__eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.help-hero-banner__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

.help-hero-banner__subtitle {
  margin: 0 0 var(--space-5);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.6;
}

.help-hero-banner__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.help-pill {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Table of contents nav */
.help-toc {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: var(--header-offset);
  z-index: 10;
}

.help-toc__inner {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-3) 0;
}

.help-toc__inner::-webkit-scrollbar {
  display: none;
}

.help-toc__link {
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.help-toc__link:hover {
  background: var(--accent-2);
  color: var(--accent);
}

/* Section headers with icons */
.help-section-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.help-section-header__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-2);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.help-section-title {
  margin: 0 0 var(--space-1);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  letter-spacing: -0.01em;
}

.help-section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ items */
.help-faq-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.help-faq {
  border-bottom: 1px solid var(--border);
}

.help-faq:last-child {
  border-bottom: 0;
}

.help-faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  transition: background 0.15s ease;
}

.help-faq summary:hover {
  background: var(--highlight);
}

.help-faq summary::-webkit-details-marker {
  display: none;
}

.help-faq summary::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent-2);
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.help-faq summary::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  width: 28px;
  height: 28px;
}

.help-faq[open] summary::after {
  content: "\2212";
  background: var(--accent);
  color: #fff;
  transform: rotate(0deg);
}

.help-faq[open] summary {
  background: var(--highlight);
}

.help-faq__content {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 720px;
}

.help-faq__content p {
  margin: 0;
}

.help-faq__content a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact banner */
.help-contact-banner {
  background: linear-gradient(135deg, #1f3d2a 0%, #24543a 55%, #1f3d2a 100%);
  color: #fdfbf6;
  padding: var(--space-7) 0;
}

.help-contact-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.help-contact-banner__title {
  margin: 0 0 var(--space-1);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.help-contact-banner__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.help-contact-banner__cta {
  background: #fff;
  color: var(--accent);
  white-space: nowrap;
}

.help-contact-banner__cta:hover {
  background: var(--accent-2);
}

/* Responsive */
@media (max-width: 700px) {
  .help-section-header {
    flex-direction: column;
    gap: var(--space-3);
  }

  .help-section-header__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .help-faq summary {
    padding: var(--space-3) var(--space-4);
    font-size: 0.9rem;
  }

  .help-faq__content {
    padding: 0 var(--space-4) var(--space-4);
  }

  .help-contact-banner__inner {
    flex-direction: column;
    text-align: center;
  }
}
