/* help.css: Zeploy Help site styling. Brand tokens mirror apps/web/src/app/globals.css (dark default). */
:root {
  --lime: #C6F24D;
  --background: #14131F;
  --foreground: #F8F6F1;
  --card: #1E1D2C;
  --muted: #1E1D2C;
  --muted-foreground: #9A9DA8;
  --forest: #4FAE8E;
  --accent: #33324A;
  --border: #33324A;
  --amber: #E0B24F;
  --card-2: #232235;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --background: #F8F6F1; --foreground: #14131F; --card: #FFFFFF; --muted: #EFEBE0;
    --muted-foreground: #4B5163; --forest: #1F5C4B; --accent: #EFEBE0; --border: #E4E1D8;
    --amber: #9A6A16; --card-2: #F3F0E7; --shadow: 0 8px 28px rgba(20, 19, 31, 0.12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --background: #F8F6F1; --foreground: #14131F; --card: #FFFFFF; --muted: #EFEBE0;
  --muted-foreground: #4B5163; --forest: #1F5C4B; --accent: #EFEBE0; --border: #E4E1D8;
  --amber: #9A6A16; --card-2: #F3F0E7; --shadow: 0 8px 28px rgba(20, 19, 31, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: Manrope, system-ui, sans-serif; color: var(--forest); line-height: 1.25; }

/* Header */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 56px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--foreground); }
.brand-mark { display: block; }
.wordmark { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.5px; line-height: 1; }
.wordmark-y { color: var(--forest); }
.brand-help { font-family: Manrope, sans-serif; font-weight: 500; font-size: 13px; color: var(--muted-foreground); padding-left: 10px; border-left: 1px solid var(--border); text-decoration: none; }
.brand-help:hover { color: var(--foreground); }
/* The way back to the marketing site: outlined so a visitor spots it at a glance. */
.home-link {
  margin-left: auto; font-family: Manrope, sans-serif; font-weight: 700; font-size: 14px;
  color: var(--foreground); text-decoration: none; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--border); white-space: nowrap;
}
.home-link:hover { background: var(--accent); }
.theme-btn, .menu-btn {
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--foreground); cursor: pointer;
}
.app-link {
  font-family: Manrope, sans-serif; font-weight: 500; font-size: 14px;
  color: var(--muted-foreground); text-decoration: none; padding: 6px 10px; border-radius: 8px;
}
.app-link:hover { background: var(--accent); color: var(--foreground); }
.theme-btn:hover, .menu-btn:hover { background: var(--accent); }
.menu-btn { display: none; }

/* Sidebar */
.sidebar {
  position: fixed; top: 56px; bottom: 0; left: 0; width: 260px; overflow-y: auto;
  padding: 20px 12px 32px; background: var(--card); border-right: 1px solid var(--border); z-index: 20;
}
.nav-group { margin-bottom: 18px; }
.nav-label { padding: 0 8px 4px; font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-foreground); }
.nav-item {
  display: block; padding: 6px 8px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
  color: var(--muted-foreground); text-decoration: none; font-size: 14px; line-height: 1.4;
}
.nav-item:hover { background: var(--accent); color: var(--foreground); }
.nav-item.active { background: var(--accent); color: var(--forest); font-weight: 500; border-left-color: var(--forest); }
.scrim { display: none; }

/* Content */
.content { margin-left: 260px; padding: 88px 16px 48px; }
.content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.content h1 { font-size: 34px; margin-top: 0; margin-bottom: 16px; font-weight: 700; }
.content h2 { font-size: 22px; margin-top: 40px; margin-bottom: 8px; }
.content h3 { font-size: 17px; margin-top: 28px; margin-bottom: 4px; }
.content p, .content ul, .content ol { margin-top: 0; margin-bottom: 16px; }
.content .lead { font-size: 18px; color: var(--muted-foreground); }
.content code { font-size: 0.9em; padding: 1px 6px; border-radius: 5px; background: var(--muted); border: 1px solid var(--border); }
.content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.content th, .content td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.content th { color: var(--muted-foreground); font-weight: 500; }

/* Numbered steps */
.content ol { list-style: none; counter-reset: step; padding-left: 0; }
.content ol > li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px; }
.content ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 500; line-height: 1;
  background: var(--forest); color: var(--background); font-family: Manrope, sans-serif;
}

/* Screenshots */
figure.shot { margin: 24px auto; }
figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
figcaption { margin-top: 8px; font-size: 13px; color: var(--muted-foreground); text-align: center; }

/* Callout */
.callout { margin-top: 20px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--forest); border-radius: 8px; background: var(--card); }
.callout > :last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--forest); }

/* Prev / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--foreground); text-decoration: none; font-weight: 500; }
.pager a:hover { border-color: var(--forest); }
.pager a span { display: block; font-size: 12px; color: var(--muted-foreground); font-weight: 400; }
.pager-next { text-align: right; grid-column: 2; }
.pager-prev { grid-column: 1; }

/* Home */
.home-group ul { list-style: none; padding: 0; }
.home-group li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.home-group li a { font-weight: 500; text-decoration: none; }
.home-group li span { display: block; font-size: 14px; color: var(--muted-foreground); }

.site-footer { margin-left: 260px; padding: 20px 16px 32px; border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--muted-foreground); }

/* Phones: off-canvas sidebar */
@media (max-width: 899px) {
  .menu-btn { display: grid; }
  .sidebar { transform: translateX(-100%); transition: transform 0.2s ease; width: 280px; box-shadow: var(--shadow); }
  .nav-open .sidebar { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 56px 0 0 0; background: rgba(0, 0, 0, 0.5); z-index: 15; }
  .content, .site-footer { margin-left: 0; }
  .content h1 { font-size: 28px; }
}
@media (max-width: 599px) {
  .app-link, .brand-help { display: none; }
  .home-link { font-size: 13px; padding: 5px 10px; }
}
