/* Shared page styles (models, docs, pricing) */

/* Divider: red-to-green brand line */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--red), var(--white-10) 50%, var(--green));
  margin: 0;
  opacity: 0.5;
}

.page {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-24);
  min-height: 100vh;
}

.page__header {
  margin-bottom: var(--space-16);
}

.page__header h1 {
  font-size: var(--text-5xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page__header p {
  font-size: var(--text-lg);
  color: var(--white-40);
  max-width: 560px;
}

.page__section {
  margin-bottom: var(--space-16);
}

.page__section h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.page__section-desc {
  font-size: var(--text-sm);
  color: var(--white-40);
  margin-bottom: var(--space-6);
}

/* Docs layout */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}

.docs-sidebar {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  padding: var(--space-8) var(--space-5);
  border-right: 1px solid var(--white-05);
}

.docs-sidebar h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-20);
  font-weight: 500;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.docs-sidebar h3:first-child { margin-top: 0; }

.docs-sidebar a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--white-40);
  border-radius: 4px;
  margin-bottom: 1px;
  transition: color 150ms, background 150ms;
}
.docs-sidebar a:hover { color: var(--white-70); background: var(--white-05); }
.docs-sidebar a.active { color: var(--white); background: var(--white-05); }

.docs-main {
  padding: var(--space-8) var(--space-12);
  max-width: 760px;
}

.docs-section {
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--white-05);
}
.docs-section:last-child { border-bottom: none; }

.docs-section h1 {
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.docs-section h2 {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--white);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.docs-lead {
  font-size: var(--text-lg);
  color: var(--white-40);
  margin-bottom: var(--space-8);
}

.docs-section p {
  color: var(--white-70);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.docs-section ul, .docs-section ol {
  color: var(--white-70);
  line-height: 1.7;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.docs-section li { margin-bottom: var(--space-2); }

.docs-section code {
  font-size: 0.88em;
  background: var(--white-05);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--white-90);
}
.docs-section pre code { background: none; padding: 0; }

.docs-section .code-block { margin: var(--space-4) 0 var(--space-6); }

/* Callout */
.docs-callout {
  padding: var(--space-4) var(--space-5);
  background: var(--void-card);
  border-left: 2px solid var(--green);
  font-size: var(--text-sm);
  color: var(--white-70);
  line-height: 1.7;
  margin: var(--space-6) 0;
}
.docs-callout strong { color: var(--white); }

/* Endpoint blocks */
.endpoint-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--white-05);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
}

.endpoint-method {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--red-trace);
  color: var(--red);
}
.endpoint-method--get {
  background: var(--green-trace);
  color: var(--green);
}

.endpoint-row code {
  font-size: 13px;
  color: var(--white-90);
  background: none;
  padding: 0;
}

.endpoint-row p {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--white-20);
  margin-bottom: 0;
}

/* Pricing */
.pricing-tier {
  max-width: 420px;
  padding: var(--space-8);
  border: 1px solid var(--white-05);
  border-radius: var(--radius-lg);
  background: var(--void-card);
  margin-bottom: var(--space-10);
}

.pricing-tier__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
}

.pricing-tier__header h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--white);
}

.pricing-tier__price {
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--green);
}

.pricing-tier__features {
  list-style: none;
  padding: 0;
}
.pricing-tier__features li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--white-40);
  border-bottom: 1px solid var(--white-05);
  padding-left: var(--space-5);
  position: relative;
}
.pricing-tier__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-50%);
}
.pricing-tier__features li:last-child { border-bottom: none; }

.discount-badge {
  color: var(--green);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* FAQ */
.faq-item {
  padding: var(--space-6);
  border: 1px solid var(--white-05);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}
.faq-item h3 {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.faq-item p {
  font-size: var(--text-sm);
  color: var(--white-40);
  line-height: 1.6;
}

/* Responsive docs */
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--white-05);
    padding: var(--space-4) var(--space-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .docs-sidebar h3 { flex-basis: 100%; margin-top: var(--space-3); }
  .docs-main { padding: var(--space-6); }
}
