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

:root {
  --black:   #111111;
  --white:   #FFFFFF;
  --bg:      #FAFAFA;
  --text:    #111111;
  --muted:   #5A5A57;
  --subtle:  #9B9A97;
  --border:  #E5E4E0;
  --blue:    #2383E2;
  --blue-h:  #1A6BC7;
  --green:   #059669;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── NAV (mirrors marketing/index.html) ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark span { color: #fff; font-weight: 700; font-size: 13px; }
.nav-logo-name { font-weight: 600; font-size: 15px; letter-spacing: -0.2px; }
.nav-logo-badge { font-weight: 500; font-size: 13px; color: var(--subtle); margin-left: 4px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px;
}
.lang-btn {
  font-size: 12px; font-weight: 500; padding: 3px 8px;
  border-radius: 4px; display: inline-block;
  color: var(--subtle); transition: all .15s;
}
.lang-btn.active { background: var(--white); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.lang-btn:not(.active):hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all .15s; line-height: 1;
}
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: #2a2a2a; }

/* ── PAGE HERO (homepage only) ── */
.help-hero { padding: 56px 0 36px; text-align: center; }
.help-hero h1 { font-size: clamp(28px, 4.5vw, 38px); font-weight: 700; letter-spacing: -1px; margin-bottom: 12px; }
.help-hero p { font-size: 16px; color: var(--muted); max-width: 560px; margin: 0 auto; }

.search-wrap { max-width: 480px; margin: 28px auto 0; position: relative; }
.search-input {
  width: 100%; padding: 11px 16px 11px 40px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text);
  font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--subtle); pointer-events: none;
}

/* ── LAYOUT: sidebar + content ── */
.help-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 32px 0 80px; align-items: start; }

.help-sidebar { position: sticky; top: 80px; }
.sidebar-category { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); margin: 0 0 8px; }
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-list a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted); padding: 7px 10px;
  border-radius: 6px; transition: all .15s;
}
.sidebar-list a:hover { background: var(--bg); color: var(--text); }
.sidebar-list a.active { background: rgba(35,131,226,.08); color: var(--blue); font-weight: 600; }
.sidebar-list .no-results { font-size: 13px; color: var(--subtle); padding: 7px 10px; }

.help-main { min-width: 0; }

/* ── HOMEPAGE CARD GRID ── */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card {
  display: block; border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; transition: border-color .15s, box-shadow .15s;
}
.article-card:hover { border-color: #ccc; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.article-card .icon { font-size: 22px; margin-bottom: 10px; }
.article-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.article-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.article-card .category-tag {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--blue);
  background: rgba(35,131,226,.08); padding: 2px 8px; border-radius: 4px; margin-bottom: 10px;
}
.article-card[hidden] { display: none; }
#no-results { font-size: 14px; color: var(--subtle); }

/* ── ARTICLE CONTENT ── */
.breadcrumb { font-size: 13px; color: var(--subtle); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--text); }

.article-header { margin-bottom: 28px; }
.article-header .eyebrow { font-size: 12.5px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.article-header h1 { font-size: clamp(26px, 4vw, 32px); font-weight: 700; letter-spacing: -0.6px; margin-bottom: 8px; }
.article-header .sub { font-size: 15.5px; color: var(--muted); }

.article-body h2 { font-size: 19px; font-weight: 700; margin: 36px 0 12px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 15.5px; font-weight: 700; margin: 20px 0 8px; }
.article-body p { margin-bottom: 14px; color: var(--text); }
.article-body p.lede { color: var(--muted); }
.article-body ul, .article-body ol { margin: 0 0 14px 20px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { font-weight: 600; }
.article-body code {
  font-family: 'SF Mono', Menlo, monospace; font-size: 12.5px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 6px;
}

.step-list { list-style: none; margin: 0 0 20px; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.step-list li {
  counter-increment: step;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.55;
}
.step-list li::before {
  content: counter(step);
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--black); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--blue);
  background: var(--bg); border-radius: 8px;
  padding: 14px 16px; margin: 0 0 16px; font-size: 14px;
}
.callout strong { display: block; margin-bottom: 2px; }
.callout.tip { border-left-color: var(--green); }

.help-footer-cta {
  margin-top: 40px; padding: 20px; border: 1px dashed var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.help-footer-cta p { margin: 0; font-size: 14px; color: var(--muted); }

/* ── CSS FORM MOCKUP (stands in for a real screenshot) ── */
.mockup-card {
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
  padding: 18px; margin: 16px 0 24px; max-width: 360px;
}
.mockup-card .mockup-label { font-size: 11px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.mockup-field { margin-bottom: 10px; }
.mockup-field .field-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.mockup-field .field-input {
  border: 1px solid var(--border); background: var(--white); border-radius: 6px;
  padding: 8px 10px; font-size: 13px; color: var(--subtle);
}
.mockup-button {
  display: inline-block; margin-top: 4px; background: var(--black); color: #fff;
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 6px;
}

/* ── SIMPLE FOOTER ── */
.help-page-footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px; }
.help-page-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.help-page-footer p { font-size: 13px; color: var(--subtle); }
.help-page-footer a { font-size: 13px; color: var(--muted); }
.help-page-footer a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .help-layout { grid-template-columns: 1fr; gap: 24px; }
  .help-sidebar { position: static; }
  .article-grid { grid-template-columns: 1fr; }
}
