/* Sensrik docs site — minimal shared styles. Pages are mostly content-driven; styles
   here cover typography, the landing layout, and code blocks. */

:root {
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-bg: #ffffff;
  --brand-bg-alt: #f8fafc;
  --brand-text: #0f172a;
  --brand-text-muted: #64748b;
  --brand-border: #e2e8f0;
  --brand-code-bg: #f1f5f9;
  --brand-code-text: #1e293b;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--brand-text);
  background: var(--brand-bg);
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }

a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

code {
  background: var(--brand-code-bg);
  color: var(--brand-code-text);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875em;
}

pre {
  background: var(--brand-code-bg);
  color: var(--brand-code-text);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.docs-header {
  border-bottom: 1px solid var(--brand-border);
  background: var(--brand-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.docs-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-header .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--brand-text);
}

.docs-header nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9375rem;
}

.docs-header nav a {
  color: var(--brand-text-muted);
}

.docs-header nav a:hover,
.docs-header nav a.active {
  color: var(--brand-text);
  text-decoration: none;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

h1 { font-size: 2.25rem; font-weight: 700; margin: 0 0 0.5rem; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 600; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }

p { margin: 0 0 1rem; }

.hero-sub {
  font-size: 1.125rem;
  color: var(--brand-text-muted);
  margin: 0 0 2rem;
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-primary-hover);
  text-decoration: none;
}

.btn-light {
  background: var(--brand-bg-alt);
  color: var(--brand-text);
  border: 1px solid var(--brand-border);
}
.btn-light:hover { background: var(--brand-border); text-decoration: none; }

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.feature {
  padding: 1.25rem;
  background: var(--brand-bg-alt);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  color: var(--brand-text-muted);
  font-size: 0.9375rem;
}

ul.endpoints {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

ul.endpoints li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--brand-border);
  font-size: 0.9375rem;
}

ul.endpoints li:last-child { border-bottom: none; }

.method {
  display: inline-block;
  min-width: 50px;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}
.method-GET { background: #dbeafe; color: #1e40af; }
.method-POST { background: #dcfce7; color: #166534; }
.method-DELETE { background: #fee2e2; color: #991b1b; }
.method-PUT { background: #fef3c7; color: #854d0e; }

.note {
  background: #fef3c7;
  border-left: 3px solid #d97706;
  padding: 0.875rem 1.125rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  margin: 1.5rem 0;
}

.footer {
  border-top: 1px solid var(--brand-border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--brand-text-muted);
  font-size: 0.875rem;
}
