/* Help center (/help) — builds on site.css theme tokens; mobile-first. */

/* ---- Hero ---- */
.help-hero { padding-bottom: 36px; }
.help-hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.help-art-hero h1 { font-size: clamp(26px, 4.2vw, 42px); }

/* Search box in the hero */
.help-search {
  position: relative; display: flex; align-items: center;
  width: 100%; max-width: 560px; margin-top: 22px;
}
.help-search-ic {
  position: absolute; left: 16px; width: 20px; height: 20px;
  color: var(--muted); pointer-events: none;
}
.help-search input {
  width: 100%; box-sizing: border-box; padding: 15px 16px 15px 46px;
  font: 500 16px "Poppins", system-ui, sans-serif; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.14);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.help-search input::placeholder { color: var(--muted); }
.help-search input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.help-main { padding-top: 34px; }

/* ---- Search results ---- */
.help-results { max-width: 820px; margin: 0 auto; }
.help-rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.help-rlist a {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; transition: border-color .15s ease, transform .15s ease;
}
.help-rlist a:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.help-rg, .help-rt, .help-rs { display: block; }
.help-rg { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.help-rt { font-size: 16.5px; font-weight: 700; margin: 2px 0 3px; }
.help-rs { font-size: 14px; color: var(--muted); line-height: 1.5; }
.help-empty { text-align: center; color: var(--muted); font-size: 16px; padding: 30px 0; }

/* ---- Category cards ---- */
.help-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.help-cat { padding: 22px; }
.help-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.help-cat-ic {
  flex: none; width: 50px; height: 50px; display: grid; place-items: center;
  font-size: 26px; border-radius: 15px; background: var(--surface-2);
}
.help-cat h2 { margin: 0; font-size: 19px; line-height: 1.2; }
.help-cat-count { font-size: 13px; font-weight: 700; color: var(--accent); }
.help-cat-sum { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.help-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.help-cat-list li { position: relative; }
.help-cat-list a {
  display: block; text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500;
  padding: 9px 12px 9px 26px; border-radius: 10px; transition: background .12s ease, color .12s ease;
}
.help-cat-list a::before {
  content: "›"; position: absolute; left: 10px; color: var(--accent); font-weight: 800;
}
.help-cat-list a:hover { background: var(--surface-2); color: var(--accent); }

/* ---- Path & feedback cards ---- */
.help-paths { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
.help-path {
  display: flex; align-items: center; gap: 16px; padding: 20px; text-decoration: none; color: var(--text);
}
.help-path:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.help-path-ic, .help-path .more { flex: none; }
.help-path-ic { font-size: 30px; }
.help-path h3 { margin: 0 0 3px; font-size: 17px; }
.help-path p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.help-path .more { margin-left: auto; color: var(--accent); font-weight: 800; font-size: 20px; }

.help-feedback {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  justify-content: space-between; margin-top: 22px; padding: 22px;
}
.help-feedback h3 { margin: 0 0 3px; font-size: 18px; }
.help-feedback p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- Article page ---- */
.help-art { max-width: 820px; }

.help-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 8px;
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.help-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.help-video-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-decoration: none; text-align: center; padding: 20px;
  background: var(--surface-2); color: var(--muted);
}
.help-soon-ic {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 22px;
  border-radius: 999px; background: var(--grad); color: #fff; margin-bottom: 6px;
  box-shadow: var(--glow);
}
.help-video-soon b { color: var(--text); font-size: 17px; }
.help-video-soon small { font-size: 13.5px; }

.help-steps-h { font-size: 21px; margin: 28px 0 14px; }

/* Numbered steps with badges */
.help-steps { list-style: none; counter-reset: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.help-steps li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px;
}
.help-step-n {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 999px; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 14px; margin-top: 1px;
}
.help-step-t { font-size: 16px; line-height: 1.65; color: var(--text); }

/* Tips / warnings */
.help-tips { display: grid; gap: 12px; margin-top: 18px; }
.help-tip {
  display: flex; align-items: flex-start; gap: 12px;
  border-radius: 14px; padding: 13px 16px; font-size: 14.5px; line-height: 1.6;
  border: 1px solid var(--line);
}
.help-tip-ic { flex: none; font-size: 17px; line-height: 1.5; }
.help-tip.info { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.help-tip.warn { background: color-mix(in srgb, #f59e0b 16%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 40%, var(--line)); }

.help-helpful {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 26px; padding: 16px 20px; font-weight: 600;
}

.help-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.help-related a {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; transition: border-color .15s ease, transform .15s ease;
}
.help-related a:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.help-related .help-rt { font-size: 15.5px; margin: 0; }

/* Prev / next */
.help-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.help-nav-link {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px;
  transition: border-color .15s ease;
}
.help-nav-link:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.help-nav-link.next { text-align: right; }
.help-nav-dir { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.help-nav-t { font-size: 15px; font-weight: 600; }

.help-back { margin: 26px 0 0; }
.help-back a { color: var(--muted); text-decoration: none; font-weight: 600; }
.help-back a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (min-width: 720px) {
  .help-cards { grid-template-columns: 1fr 1fr; }
  .help-paths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .help-nav { grid-template-columns: 1fr; }
  .help-nav-link.next { text-align: left; }
  .help-feedback, .help-helpful { flex-direction: column; align-items: stretch; }
  .help-feedback .btn { text-align: center; }
}
