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

.help-hero {
  position: relative;
  padding: 180px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.help-hero .bg-photo {
  right: -10%;
  top: 0;
  width: 50%;
  height: 100%;
}
.help-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.help-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  margin-top: 22px;
  margin-bottom: 22px;
}
.help-hero .lead {
  font-size: clamp(16px, 1.4vw, 19px);
}

/* Search bar */
.help-search {
  margin-top: 36px;
  position: relative;
  max-width: 560px;
}
.help-search input {
  width: 100%;
  height: 56px;
  padding: 0 56px 0 56px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 200ms ease, background 200ms ease;
}
.help-search input::placeholder { color: var(--text-muted); }
.help-search input:focus {
  outline: none;
  border-color: rgba(197, 240, 44, 0.45);
  background: rgba(197, 240, 44, 0.04);
}
.help-search .search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.help-search kbd {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-2);
}

/* Category tiles */
.help-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 56px;
}
@media (max-width: 980px) { .help-cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .help-cats { grid-template-columns: repeat(2, 1fr); } }

.help-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  cursor: pointer;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), border-color 240ms ease, background 240ms ease;
  font-family: inherit;
  color: var(--text-dim);
}
.help-cat:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 240, 44, 0.25);
  background: linear-gradient(180deg, rgba(197,240,44,0.04), transparent);
  color: var(--text);
}
.help-cat.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 12px 32px -16px var(--accent-glow);
}
.help-cat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(197,240,44,0.18);
}
.help-cat.active .help-cat-icon {
  background: var(--accent);
  color: #0a0b0d;
  border-color: var(--accent);
}
.help-cat-label {
  font-size: 13px;
  font-weight: 600;
}
.help-cat-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* FAQ section */
.faq-section {
  padding: 100px 0;
}
.faq-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.faq-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 8px;
}
.faq-head .muted { font-size: 14px; }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  overflow: hidden;
  transition: border-color 240ms ease, background 240ms ease;
}
.faq-item:hover { border-color: rgba(255,255,255,0.12); }
.faq-item.open {
  border-color: rgba(197,240,44,0.3);
  background: linear-gradient(180deg, rgba(197,240,44,0.04), transparent);
}
.faq-item.hidden { display: none; }

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.faq-q-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.faq-item.open .faq-q-num { color: var(--accent); }
.faq-q-chev {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), background 200ms ease, color 200ms ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q-chev {
  transform: rotate(180deg);
  background: var(--accent);
  color: #0a0b0d;
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(.2,.8,.2,1);
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a-body {
  padding: 0 26px 24px 64px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}
.faq-a-body p + p { margin-top: 12px; }
.faq-a-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.faq-a-body a {
  color: var(--accent);
  border-bottom: 1px dashed rgba(197,240,44,0.4);
  padding-bottom: 1px;
}
.faq-a-body ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.faq-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
}
.faq-empty.hidden { display: none; }

/* Contact form */
.contact-section {
  padding: 60px 0 120px;
  position: relative;
}
.contact-card {
  position: relative;
  background:
    radial-gradient(600px 300px at 90% 110%, rgba(197,240,44,0.14), transparent 60%),
    linear-gradient(180deg, #14171c, #0f1115);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .contact-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; }
}

.contact-info h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 18px 0 16px;
}
.contact-info p { color: var(--text-dim); font-size: 15px; line-height: 1.6; max-width: 32ch; }

.contact-channels {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: border-color 200ms ease, background 200ms ease;
}
.contact-channel:hover {
  border-color: rgba(197,240,44,0.3);
  background: rgba(197,240,44,0.04);
}
.contact-channel-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-channel-text { display: grid; gap: 2px; }
.contact-channel-title { font-size: 14px; font-weight: 600; }
.contact-channel-sub { font-size: 12px; color: var(--text-muted); }

/* Form */
.contact-form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 200ms ease, background 200ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(197,240,44,0.5);
  background: rgba(197,240,44,0.03);
}
.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact-submit .privacy {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 280px;
}

.form-success {
  display: none;
  padding: 20px 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(197,240,44,0.3);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  align-items: center;
  gap: 12px;
}
.form-success .check-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0b0d;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-success.shown { display: flex; }
.contact-form.hidden { display: none; }