/* Pricely Help Center — docs.pricely.me */
:root {
  --bg: #0f0e13;
  --bg-elevated: #16151d;
  --bg-sidebar: #121118;
  --text: #f4f4f8;
  --text-muted: #9ca3af;
  --primary: #7c5cfc;
  --primary-light: #a78bfa;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --font: "Inter", system-ui, sans-serif;
  --font-heading: "DM Sans", system-ui, sans-serif;
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

a {
  color: var(--primary-light);
}

a:hover {
  color: #c4b5fd;
}

.docs-shell {
  display: flex;
  min-height: 100vh;
}

.docs-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.docs-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.docs-sidebar-brand span {
  opacity: 0.7;
  font-weight: 500;
  font-size: 0.85rem;
}

.docs-nav-group {
  margin-bottom: 20px;
}

.docs-nav-label {
  padding: 0 20px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.docs-nav a {
  display: block;
  padding: 8px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 2px solid transparent;
}

.docs-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav a[aria-current="page"] {
  color: var(--primary-light);
  border-left-color: var(--primary);
  background: rgba(124, 92, 252, 0.08);
}

.docs-main {
  flex: 1;
  min-width: 0;
  padding: 32px 40px 64px;
  max-width: 780px;
}

.docs-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.docs-topbar-links {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
}

.docs-topbar-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.docs-topbar-links a:hover {
  color: var(--text);
}

h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.docs-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 28px;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
}

.docs-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.docs-steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 52px;
  margin-bottom: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.docs-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-callout {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(124, 92, 252, 0.35);
  background: rgba(124, 92, 252, 0.08);
  margin: 20px 0;
  font-size: 0.92rem;
}

.docs-callout strong {
  color: var(--primary-light);
}

ul, ol {
  color: var(--text-muted);
  padding-left: 1.25rem;
}

li {
  margin-bottom: 6px;
}

code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.docs-card {
  display: block;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.docs-card:hover {
  border-color: rgba(124, 92, 252, 0.5);
  color: inherit;
}

.docs-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.docs-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.docs-figure {
  margin: 28px 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.docs-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.docs-figure figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

.docs-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.docs-figure-grid .docs-figure {
  margin: 0;
}

.docs-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .docs-shell {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .docs-main {
    padding: 24px 20px 48px;
  }
}
