.help-page {
  min-height: 100vh;
  background:
    radial-gradient(50rem 32rem at 15% -5%, rgba(217, 30, 144, 0.15), transparent 65%),
    radial-gradient(44rem 30rem at 88% 8%, rgba(104, 40, 171, 0.18), transparent 65%),
    var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--font);
}

.help-page h1,
.help-page h2,
.help-page h3,
.help-page .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.help-page .shell {
  width: min(1100px, calc(100% - 2.5rem));
}

.help-page p {
  color: var(--muted);
}

.help-page a {
  color: var(--accent-soft);
  text-underline-offset: 0.2em;
}

.help-page [hidden] {
  display: none !important;
}

.help-page :focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

/* Header — Full-width edge-to-edge sticky glass bar */
.help-page .site-header.help-header {
  width: 100%;
  max-width: 100%;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  padding: 0.7rem max(1.25rem, calc((100% - 1100px) / 2));
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: rgba(11, 7, 17, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.help-header .wordmark {
  color: var(--ink);
  font-size: 1.25rem;
  gap: 0.65rem;
}

.help-header .wordmark img {
  width: 34px;
  height: 34px;
  border-radius: 0.55rem;
  box-shadow: 0 0 18px rgba(217, 30, 144, 0.35);
}

.help-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  min-height: 40px;
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.help-header nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--edge);
  color: var(--ink);
  text-decoration: none;
}

/* Main */
.help-main {
  padding-block: clamp(2rem, 5vw, 3.75rem);
}

/* Hero */
.help-hero {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
}

.help-hero .help-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 208, 0.3);
  background: rgba(244, 114, 208, 0.08);
  color: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.help-page h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  margin: 0 0 0.7rem;
  letter-spacing: -0.04em;
}

.help-hero > p {
  font-size: 1.1rem;
  margin: 0 0 1.65rem;
}

.help-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 34rem;
  margin-inline: auto;
}

.help-search svg {
  position: absolute;
  left: 1.05rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--accent-soft);
  pointer-events: none;
}

.help-search input,
.help-legal input,
.help-legal textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(23, 16, 36, 0.85);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.help-search input {
  padding-left: 2.9rem;
}

.help-search input:focus,
.help-legal input:focus,
.help-legal textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 114, 208, 0.2), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.help-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.help-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Topic Cards */
.help-topics {
  display: grid;
  gap: 1.15rem;
}

.help-topic {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: border-color 0.2s ease;
}

.help-topic:hover {
  border-color: var(--edge);
}

.help-topic h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.18rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.help-topic h2 svg {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.45rem;
  flex: none;
  border-radius: 0.65rem;
  background: rgba(244, 114, 208, 0.14);
  border: 1px solid rgba(244, 114, 208, 0.24);
  color: var(--accent-soft);
}

.help-topic details {
  border-top: 1px solid var(--rule);
}

.help-topic summary {
  min-height: 50px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding-block: 0.75rem;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--muted-strong);
  transition: color 0.15s ease;
}

.help-topic summary:hover,
.help-topic details[open] summary {
  color: var(--ink);
}

.help-topic summary svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  color: var(--accent-soft);
  transition: transform 0.2s ease;
}

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

.help-topic details[open] summary svg {
  transform: rotate(180deg);
}

.help-topic details p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Contact Support Card */
.help-contact {
  margin-top: 2.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid rgba(244, 114, 208, 0.26);
  border-radius: var(--radius-lg, 1.5rem);
  background:
    radial-gradient(60% 80% at 95% 0%, rgba(217, 30, 144, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(28, 18, 44, 0.85), rgba(15, 10, 24, 0.95));
  box-shadow: var(--shadow-card, 0 20px 50px rgba(4, 2, 10, 0.5));
  display: grid;
  align-items: center;
  gap: 1.5rem;
}

.help-contact h2,
.help-legal h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--ink);
}

.help-contact p {
  margin: 0 0 0.55rem;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.help-contact p:last-child {
  margin-bottom: 0;
}

.help-button,
.help-legal button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.85rem;
  background: var(--signature-gradient);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(217, 30, 144, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.help-button:hover,
.help-legal button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(217, 30, 144, 0.38);
}

.help-button svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* Footer */
.help-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.75rem;
}

.help-footer nav {
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.help-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted-strong);
  font-weight: 600;
  text-decoration: none;
}

.help-footer a:hover {
  color: var(--accent-soft);
}

/* Legal pages */
.help-legal {
  max-width: 780px;
}

.help-legal h2 {
  margin-top: 2rem;
}

.help-legal form,
.help-legal form label {
  display: grid;
  gap: 0.5rem;
}

.help-legal form {
  gap: 0.9rem;
}

.help-legal textarea {
  min-height: 7rem;
  resize: vertical;
}

.help-legal button {
  justify-self: start;
}

@media (min-width: 760px) {
  .help-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .help-contact {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 680px) {
  .help-page .shell {
    width: calc(100% - 1.25rem);
  }
  .site-header.help-header {
    top: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
}
