/* Shared Leveo docs styles — reuses tokens from how-it-works/index.html */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-dark: #0f2942;
  --brand-mid: #059669;
  --brand-gradient: linear-gradient(135deg, #0f2942, #059669);
  --accent-highlight: #88ffcc;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b66;
  --text-tertiary: #9c9a92;
  --surface-secondary: #F5F5F0;
  --surface-tertiary: #EEEEE8;
  --border-light: rgba(0,0,0,0.08);
  --border-default: rgba(0,0,0,0.15);
  --bg-teal: #E1F5EE;
  --text-on-teal: #085041;
  --bg-amber: #FAEEDA;
  --text-on-amber: #633806;
  --bg-blue: #E6F1FB;
  --text-on-blue: #0C447C;
  --bg-red: #FCEBEB;
  --text-on-red: #791F1F;
  --bg-gray: #F1EFE8;
  --text-on-gray: #444441;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }

/* Nav lives in /nav.css — shared across every page. */

/* Hero */
.page-hero {
  background: var(--brand-gradient);
  padding: 72px 24px;
  text-align: center;
  color: #fff;
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-highlight);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Docs section switcher — sticky under nav on subpages */
.docs-tabs {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border-light);
  padding: 0 24px;
  overflow-x: auto;
}

.docs-tabs-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 10px 0;
}

.docs-tabs a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.docs-tabs a:hover { background: var(--surface-secondary); color: var(--brand-dark); }
.docs-tabs a.active {
  background: var(--surface-secondary);
  color: var(--brand-dark);
}

/* Docs index page — card grid */
.docs-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.docs-card {
  display: block;
  padding: 24px;
  border: 0.5px solid var(--border-default);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
}
.docs-card:hover {
  border-color: var(--brand-mid);
  transform: translateY(-1px);
}

.docs-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-teal);
  color: var(--text-on-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 16px;
}

.docs-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.docs-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Docs body — long-form content */
.docs-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.docs-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
  margin-top: 44px;
  margin-bottom: 12px;
  scroll-margin-top: 130px;
}
.docs-body h2:first-child { margin-top: 0; }

.docs-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-top: 28px;
  margin-bottom: 8px;
  scroll-margin-top: 130px;
}

.docs-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.docs-body a {
  color: var(--brand-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.docs-body a:hover { color: var(--brand-dark); }

.docs-body ul, .docs-body ol {
  margin: 0 0 18px 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.docs-body li { margin-bottom: 6px; }

.docs-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.docs-body kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 0.5px solid var(--border-default);
  border-bottom-width: 1.5px;
  border-radius: 4px;
  background: var(--surface-secondary);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1;
  vertical-align: baseline;
}

.docs-body code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--surface-secondary);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

/* Callouts */
.callout {
  border-left: 3px solid var(--brand-mid);
  background: var(--bg-teal);
  color: var(--text-on-teal);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 13.5px;
  line-height: 1.65;
}
.callout.tip { border-color: var(--brand-mid); background: var(--bg-teal); color: var(--text-on-teal); }
.callout.note { border-color: #378ADD; background: var(--bg-blue); color: var(--text-on-blue); }
.callout.warn { border-color: #EF9F27; background: var(--bg-amber); color: var(--text-on-amber); }
.callout strong { color: inherit; font-weight: 600; }

/* Step list */
ol.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 44px;
  margin: 0;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
ol.steps > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13.5px;
  top: 30px;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
}
ol.steps > li h3 {
  margin-top: 2px;
  margin-bottom: 6px;
}

/* Stage / feature cards inside body */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 22px 0;
}
.feature-row .item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 0.5px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
}
.feature-row .item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.feature-row .item .body { flex: 1; }
.feature-row .item .body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 2px;
}
.feature-row .item .body span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Table of contents at top of long pages */
.docs-toc {
  border: 0.5px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 18px;
  background: var(--surface-secondary);
  margin-bottom: 40px;
}
.docs-toc .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}
.docs-toc ul li {
  margin: 0 0 6px 0;
  break-inside: avoid;
}
.docs-toc ul li a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}
.docs-toc ul li a:hover { color: var(--brand-mid); }

@media (max-width: 540px) {
  .docs-toc ul { columns: 1; }
}

/* Next / previous nav */
.docs-pager {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.docs-pager a {
  flex: 1;
  padding: 16px 18px;
  border: 0.5px solid var(--border-default);
  border-radius: 10px;
  display: block;
  transition: border-color 0.2s;
}
.docs-pager a:hover { border-color: var(--brand-mid); }
.docs-pager .label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.docs-pager .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-dark);
}
.docs-pager .next { text-align: right; }

/* Bottom CTA */
.bottom-cta {
  background: var(--surface-secondary);
  border-top: 0.5px solid var(--border-light);
  padding: 48px 24px;
  text-align: center;
}
.bottom-cta h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.bottom-cta p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s ease;
}
.cta-btn:hover { transform: translateY(-1px); }

/* Footer — same as how-it-works */
footer.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { height: 40px; }
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  line-height: 1;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.footer-social a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-fine {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
