*, *::before, *::after { box-sizing: border-box; }
/* Shared site chrome: header, footer, help layout. Brand tokens match the existing homepage. */
:root {
  --bg: #09090b;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(255,255,255,.1);
  --card: rgba(255,255,255,.04);
  --emerald: #10b981;
  --emerald-dim: rgba(16,185,129,.16);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9,9,11,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap,
.site-footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px 0 8px;
}
.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.site-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; }
.site-nav a.is-active {
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--emerald);
}
.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald);
  color: #04210f !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  font-size: 14px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.site-cta:hover { filter: brightness(1.05); }

@media (min-width: 901px) {
  .site-header-inner { flex-direction: row; align-items: center; padding: 16px 0; gap: 16px; }
  .site-header-top { display: contents; }
  .site-brand { order: 1; }
  .site-nav { order: 2; flex: 1; justify-content: flex-end; margin-right: 4px; }
  .site-cta { order: 3; }
}

@media (max-width: 900px) {
  .site-header .wrap { padding: 0 16px; }
  .site-brand { font-size: 15px; gap: 8px; }
  .site-brand img { width: 28px; height: 28px; }
  .site-cta { padding: 8px 12px; font-size: 13px; }
  .site-nav {
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 4px -16px 0;
    padding: 0 8px 4px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .site-nav a.is-active { box-shadow: inset 0 -2px 0 var(--emerald); }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

#tour, #features, #pricing, #get, #in-review, #next-up, #coming-soon, #later, #exploring {
  scroll-margin-top: 120px;
}

/* Help pages */
.help-page { background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.6; margin: 0; }
.help-article a, .help-hub-main a, .doc-main a, .help-crumbs a, .help-pager a { color: var(--emerald); }
.help-crumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}
.help-crumbs a { color: var(--emerald); text-decoration: none; }
.help-crumbs a:hover { text-decoration: underline; }
.help-crumbs span { color: var(--ink); }
.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  align-items: start;
}
.help-hub-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}
.help-article h1, .help-hub-main h1 {
  letter-spacing: -.03em;
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
}
.help-article .tier {
  display: inline-block;
  background: var(--emerald-dim);
  color: var(--emerald);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}
.help-article li { margin: 4px 0; }
.help-article .muted, .help-hub-main .muted { color: var(--muted); }
.help-search {
  display: block;
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  margin: 0 0 18px;
}
.help-search:focus {
  outline: 2px solid var(--emerald);
  outline-offset: 1px;
  border-color: transparent;
}
.help-search::placeholder { color: var(--muted); }
.help-sidebar { position: sticky; top: 96px; }
.help-sidebar h2, .help-group h2 {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 8px;
  font-weight: 700;
}
.help-sidebar h2:first-of-type, .help-hub-main .help-group:first-of-type h2 { margin-top: 0; }
.help-sidebar ul, .help-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.help-sidebar li, .help-group li { margin: 0; }
.help-sidebar a, .help-group a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 5px 0;
  font-size: 14px;
}
.help-sidebar a:hover, .help-group a:hover { color: var(--emerald); }
.help-sidebar a.is-current { color: var(--emerald); font-weight: 600; }
.help-group p.desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.help-group li { margin: 0 0 12px; }
.help-empty { color: var(--muted); display: none; }
.help-empty.is-shown { display: block; }
.help-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.help-pager a { text-decoration: none; }
.help-pager a:hover { text-decoration: underline; }
.help-pager .dir { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.help-topics-toggle { display: block; margin: 0; border: 0; }
.help-topics-toggle > summary { display: none; }
.help-topics-toggle > summary::-webkit-details-marker { display: none; }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; gap: 8px; padding: 20px 24px 64px; }
  .help-sidebar { position: static; }
  .help-topics-toggle { border-bottom: 1px solid var(--line); margin: 0 0 20px; }
  .help-topics-toggle > summary {
    display: block;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    padding: 10px 0;
  }
  .help-topics-toggle > summary::after { content: " ▾"; color: var(--muted); }
  .help-article h1, .help-hub-main h1 { font-size: 28px; }
  .help-hub-main .help-group ul { padding-bottom: 8px; }
}

[hidden], .is-hidden { display: none !important; }
