/* FAQ overlay on top of km9sh website tokens */

.help-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.help-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.help-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(110px);
  opacity: 0.55;
}

.help-orb-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), transparent 70%);
}

.help-orb-b {
  width: 480px;
  height: 480px;
  top: 20%;
  right: -140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
}

.dark .help-orb-a {
  opacity: 0.35;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 70%);
}

.dark .help-orb-b {
  opacity: 0.3;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
}

.help-nav-wrap {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.help-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem 0.45rem 1rem;
  max-width: 720px;
  width: 100%;
}

.help-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  white-space: nowrap;
}

.help-brand span {
  color: var(--text-3);
  font-weight: 500;
  margin-left: 0.35rem;
}

.help-nav-spacer {
  flex: 1;
}

.help-login-btn {
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}

.theme-btn {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  color: var(--text-2);
  cursor: pointer;
  background: var(--surface-2);
  line-height: 1;
  flex-shrink: 0;
}

.theme-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.theme-btn .theme-icon {
  position: absolute;
  font-size: 0.85rem;
  line-height: 1;
  width: 1em;
  text-align: center;
}

.theme-btn .theme-icon-moon {
  display: inline-block;
}

.theme-btn .theme-icon-sun {
  display: none;
}

html.dark .theme-btn .theme-icon-moon {
  display: none;
}

html.dark .theme-btn .theme-icon-sun {
  display: inline-block;
}

.help-main {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 6.5rem 1.25rem 3rem;
}

.help-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: help-fade-up 0.55s ease both;
}

.help-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.help-hero p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 auto;
  line-height: 1.55;
}

.section-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .section-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s;
  animation: help-fade-up 0.55s ease both;
}

.section-card:nth-child(2) { animation-delay: 0.06s; }
.section-card:nth-child(3) { animation-delay: 0.12s; }

.section-card:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
}

.section-card .emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.section-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1;
}

.section-card .more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand-600);
}

.dark .section-card .more {
  color: var(--color-brand-400);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

.crumb a {
  color: var(--text-2);
}

.crumb a:hover {
  color: var(--text);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.section-lead {
  color: var(--text-2);
  margin-bottom: 1.75rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  overflow: hidden;
  animation: help-fade-up 0.45s ease both;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  user-select: none;
}

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

.faq-item summary .emoji {
  font-size: 1.15rem;
}

.faq-item summary .chev {
  margin-left: auto;
  color: var(--text-3);
  transition: transform 0.2s;
  font-size: 0.85rem;
}

.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: var(--surface-2);
}

.faq-body {
  padding: 0 1.15rem 1.2rem;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--hairline);
}

.faq-body p {
  margin: 0.85rem 0 0;
}

.faq-body p:first-child {
  margin-top: 0.95rem;
}

.faq-body a {
  color: var(--color-brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dark .faq-body a {
  color: var(--color-brand-400);
}

.faq-body b,
.faq-body strong {
  color: var(--text);
  font-weight: 650;
}

.faq-body code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--text);
}

.help-cta {
  margin-top: 3rem;
  padding: 1.5rem 1.35rem;
  text-align: center;
  animation: help-fade-up 0.5s ease both;
}

.help-cta h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.help-cta p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.help-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn-tg {
  background: #2AABEE;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.15s, transform 0.15s;
}

.btn-tg:hover {
  background: #229ED9;
}

.btn-tg:active {
  transform: scale(0.98);
}

.help-footer {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem 5.5rem;
}

.help-footer-inner {
  padding: 1.35rem 1.4rem 1.2rem;
  text-align: center;
}

.help-footer-brand {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.help-footer-text {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 auto 1rem;
}

.help-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  justify-content: center;
  margin-bottom: 0.95rem;
}

.help-footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.help-footer-links a:hover {
  color: var(--text);
  border-color: var(--hairline-strong);
  background: var(--surface-3);
}

.help-footer-copy {
  color: var(--text-4);
  font-size: 0.75rem;
}

@keyframes help-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-card,
  .faq-item,
  .help-hero,
  .help-cta {
    animation: none;
  }
}
