.help-hero {
  position: relative;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-line);
  padding-top: 86px;
  padding-bottom: 82px;
}

.help-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  opacity: 0.24;
  pointer-events: none;
}

.help-hero::after {
  position: absolute;
  top: 8%;
  right: 9%;
  width: 330px;
  height: 330px;
  border: 1px solid var(--color-accent-ring);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-beacon);
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

.help-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 74px;
}

.help-hero-copy {
  max-width: 700px;
}

.help-hero-copy h1 {
  margin-top: 24px;
}

.help-lead {
  max-width: 650px;
  color: var(--color-text-soft);
  font-size: 19px;
  line-height: 1.8;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.help-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.help-facts .fact-chip {
  font-family: var(--font-mono);
}

.help-index-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-page);
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.help-index-card::before {
  position: absolute;
  top: 76px;
  bottom: 34px;
  left: 36px;
  width: 2px;
  background: var(--gradient-warm);
  content: "";
  opacity: 0.72;
}

.help-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--color-line);
  padding: 4px 8px 16px;
}

.help-index-head span {
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.help-index-head strong {
  font-size: 15px;
}

.help-index-card > a {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 18px 12px 18px 8px;
  transition: background var(--motion-fast), transform var(--motion-fast);
}

.help-index-card > a:last-child {
  border-bottom: 0;
}

.help-index-card > a:hover {
  background: var(--color-panel);
  transform: translateX(2px);
}

.help-index-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  justify-self: center;
  border: 2px solid var(--color-page);
  border-radius: var(--radius-pill);
  background: var(--gradient-warm);
  box-shadow: var(--shadow-beacon);
}

.help-index-card a strong,
.help-index-card a small {
  display: block;
}

.help-index-card a strong {
  margin-bottom: 2px;
  font-size: 15px;
}

.help-index-card a small {
  color: var(--color-text-soft);
  font-size: 12px;
}

.help-toc {
  top: 0;
  z-index: 70;
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 8px 20px var(--color-shadow-soft);
}

.help-category {
  position: relative;
}

.help-category-muted {
  background: var(--color-panel);
}

.help-category-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 72px;
}

.help-category-head {
  position: sticky;
  top: var(--toc-offset);
}

.help-category-head h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.help-category-head p:last-child {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.help-category .faq-list {
  border-top-color: var(--color-line);
}

.help-category .faq-item {
  background: transparent;
}

.help-category .faq-item summary {
  font-size: 17px;
  line-height: 1.55;
}

.help-category .faq-answer {
  max-width: none;
}

.help-category .faq-answer p {
  margin-bottom: 0;
  line-height: 1.9;
}

.help-ticket-note {
  grid-column: 2;
  margin-bottom: 0;
}

.help-ticket-note a {
  display: inline-flex;
  margin-left: 8px;
  color: var(--color-accent-deep);
  font-weight: 750;
}

@media (max-width: 980px) {
  .help-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .help-index-card {
    max-width: 680px;
  }

  .help-category-grid {
    grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .help-hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .help-hero::after {
    display: none;
  }

  .help-lead {
    font-size: 17px;
  }

  .help-category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .help-category-head {
    position: static;
  }

  .help-ticket-note {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .help-hero {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .help-hero::before {
    background-size: 38px 38px;
  }

  .help-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .help-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .help-facts .fact-chip {
    justify-content: center;
  }

  .help-index-card {
    border-radius: var(--radius-lg);
    padding: 14px;
  }

  .help-index-card::before {
    left: 31px;
  }

  .help-index-head {
    padding-inline: 6px;
  }

  .help-index-card > a {
    padding-right: 8px;
    padding-left: 6px;
  }

  .help-toc {
    padding-inline: var(--gutter);
  }

  .help-category .faq-item summary {
    font-size: 16px;
    padding-right: 38px;
  }

  .help-category .faq-answer {
    padding-right: 0;
  }

  .help-ticket-note a {
    display: flex;
    margin-top: 12px;
    margin-left: 0;
  }
}