:root {
  --ink: #1a1f2b;
  --muted: #5b6473;
  --line: #d7dce5;
  --accent: #001196;
  --accent-dark: #000d73;
  --accent-light: #e6e9f8;
  --bg: #f5f7fa;
  --white: #ffffff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  font-size: 16px;
}

/* ── TOP NAV ───────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0 5%;
}
.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.nav-logo-text span { color: var(--accent); }
.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
}
.nav-link:hover { color: var(--accent); }

/* ── LAYOUT ────────────────────────────────────── */
.help-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 5%;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── SIDENAV ───────────────────────────────────── */
.help-sidenav {
  position: sticky;
  top: 96px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.sidenav-heading {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0 12px;
}
.sidenav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidenav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sidenav-link:hover {
  background: var(--bg);
  color: var(--accent);
}
.sidenav-link.is-active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  border-left-color: var(--accent);
}

/* ── CONTENT ───────────────────────────────────── */
.help-content {
  min-width: 0; /* prevent grid overflow */
  padding-bottom: 64px;
}
.help-section {
  padding: 24px 0 56px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.help-section:last-child {
  border-bottom: none;
}

.lede {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.intro {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 32px;
  color: var(--ink);
  font-size: 15px;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--ink);
}
h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--ink);
}
.help-content p,
.help-content ul {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 14px;
}
.help-content ul { padding-left: 22px; }
.help-content li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 700; }
.muted { color: var(--muted); }

a.contact-link { color: var(--accent); text-decoration: none; font-weight: 600; }
a.contact-link:hover { text-decoration: underline; }

/* ── STEPS (How it works) ──────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.steps-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.step-body { flex: 1; min-width: 0; }
.step-body h3 { margin-top: 0; margin-bottom: 4px; }
.step-body p { margin-bottom: 0; color: var(--ink); font-size: 14.5px; }

/* ── FAQ ───────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--accent);
}
.faq-item p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.65;
}

/* ── FOOTER ────────────────────────────────────── */
.page-footer {
  padding: 32px 5%;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.page-footer a { color: var(--muted); text-decoration: none; }
.page-footer a:hover { color: var(--accent); }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 800px) {
  .help-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 5%;
  }
  .help-sidenav {
    position: relative;
    top: auto;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }
  .sidenav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidenav-link {
    padding: 8px 12px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .sidenav-link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
  .steps-list li {
    flex-direction: column;
    gap: 10px;
  }
}
