* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --card: #ffffff;
  --card-soft: #f1f5f9;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --blue2: #3b82f6;
  --green: #10b981;
  --purple: #7c3aed;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
  --radius: 16px;
  --radius-lg: 24px;
  --help-sidebar: 260px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12) 0%, transparent 32%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.1) 0%, transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.help-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.help-header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.help-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.help-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.help-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: 0.2s;
}

.help-nav a:hover,
.help-nav a.is-active {
  color: var(--text);
}

.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.22);
  transition: 0.25s;
}

.help-btn:hover {
  transform: translateY(-2px);
}

.help-btn-outline {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Hero (hub) */
.help-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.help-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.help-hero h1 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.help-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.help-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.help-search input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: 0.2s;
}

.help-search input:focus {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.help-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* Category grid */
.help-section {
  padding: 24px 0 80px;
}

.help-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.help-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.2);
}

.help-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.help-card-icon.blue { background: rgba(37, 99, 235, 0.1); }
.help-card-icon.green { background: rgba(16, 185, 129, 0.1); }
.help-card-icon.purple { background: rgba(124, 58, 237, 0.1); }
.help-card-icon.orange { background: rgba(249, 115, 22, 0.1); }
.help-card-icon.slate { background: rgba(100, 116, 139, 0.12); }

.help-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.help-card p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.help-card-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.help-card-links a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}

.help-card-links a:hover {
  text-decoration: underline;
}

.help-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
}

/* Quick start strip */
.help-quick {
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.help-quick h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.help-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.help-step {
  counter-increment: step;
  padding: 20px;
  background: var(--card-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  padding-top: 44px;
}

.help-step::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.help-step span {
  font-size: 13px;
  color: var(--muted);
}

.help-step a {
  color: var(--blue);
  font-weight: 600;
}

/* Article layout */
.help-article-wrap {
  padding: 40px 0 80px;
}

.help-article-layout {
  display: grid;
  grid-template-columns: var(--help-sidebar) 1fr;
  gap: 48px;
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: 108px;
}

.help-sidebar-nav {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.help-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.help-sidebar-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: 0.15s;
}

.help-sidebar-nav a:hover {
  background: var(--card-soft);
  color: var(--text);
}

.help-sidebar-nav a.is-active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-weight: 600;
}

.help-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* Article content */
.help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.help-breadcrumb a {
  color: var(--blue);
}

.help-breadcrumb a:hover {
  text-decoration: underline;
}

.help-article h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.help-article-lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 720px;
}

.help-article section {
  margin-bottom: 40px;
  scroll-margin-top: 120px;
}

.help-article h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.help-article h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}

.help-article p,
.help-article li {
  color: #334155;
  font-size: 16px;
}

.help-article p {
  margin-bottom: 14px;
}

.help-article ul,
.help-article ol {
  margin: 0 0 16px 20px;
}

.help-article li {
  margin-bottom: 8px;
}

.help-article a {
  color: var(--blue);
  font-weight: 500;
}

.help-article a:hover {
  text-decoration: underline;
}

/* Callouts */
.help-callout {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 15px;
  border: 1px solid;
}

.help-callout.tip {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.help-callout.warn {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400e;
}

.help-callout.info {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
  color: #1e40af;
}

.help-callout strong {
  display: block;
  margin-bottom: 4px;
}

/* Screenshot placeholder */
.help-screenshot {
  margin: 20px 0;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
}

.help-screenshot-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 24px;
}

.help-screenshot p {
  color: var(--muted);
  font-size: 14px;
  max-width: 400px;
  margin: 0;
}

.help-screenshot code {
  font-size: 12px;
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Steps list in articles */
.help-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: article-step;
}

.help-steps-list li {
  counter-increment: article-step;
  position: relative;
  padding: 0 0 24px 48px;
  margin: 0;
  border-left: 2px solid rgba(37, 99, 235, 0.15);
  margin-left: 14px;
}

.help-steps-list li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.help-steps-list li::before {
  content: counter(article-step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Article nav footer */
.help-article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.help-article-nav a {
  display: block;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  transition: 0.2s;
}

.help-article-nav a:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-sm);
}

.help-article-nav .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.help-article-nav .title {
  font-weight: 700;
  color: var(--text);
}

.help-article-nav .next {
  text-align: right;
}

/* Support CTA */
.help-support {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.15);
  text-align: center;
}

.help-support h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.help-support p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.help-support-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.help-footer {
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 48px 0 32px;
  margin-top: auto;
}

.help-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.help-footer-logo img {
  height: 48px;
  margin-bottom: 16px;
}

.help-footer-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.help-footer-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.help-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.help-footer-links a:hover {
  color: var(--blue);
}

.help-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--muted);
}

.help-footer-bottom a:hover {
  color: var(--blue);
}

/* Search hide */
.help-card.is-hidden,
.help-step.is-hidden {
  display: none;
}

.no-results {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

.no-results.is-visible {
  display: block;
}

/* Responsive */
@media (max-width: 1100px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-article-layout {
    grid-template-columns: 1fr;
  }

  .help-sidebar {
    position: static;
  }

  .help-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .help-hero h1 {
    font-size: 34px;
  }

  .help-grid,
  .help-steps {
    grid-template-columns: 1fr;
  }

  .help-article h1 {
    font-size: 30px;
  }

  .help-footer-grid {
    grid-template-columns: 1fr;
  }

  .help-article-nav {
    grid-template-columns: 1fr;
  }

  .help-article-nav .next {
    text-align: left;
  }
}
