/* GrayCalc Marketing Styles */
:root {
  /* Brand Colors (GrayCalc) */
  --brand-purple: #9b59b6;
  --brand-blue: #3498db;
  --brand-green: #2ecc71;
  --brand-dark: #111111;

  /* UI Colors (FastSpring Inspired) */
  --bg-white: #ffffff;
  --bg-slate: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;

  /* Typography */
  --font-sans: 'Figtree', system-ui, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Shadows */
  --shadow-soft: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 12px 24px -12px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn.small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

.btn-primary:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-dark);
  border-color: #cbd5e1;
}

.btn-outline:hover {
  border-color: var(--brand-dark);
  background-color: #f1f5f9;
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 32px;
  height: 32px;
  background: var(--brand-dark);
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}

.logo-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li.nav-actions {
  margin-left: auto;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--brand-blue);
}

.login-link {
  font-weight: 600;
  font-size: 0.95rem;
}

#nav-toggle {
  display: none;
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 3.6vw + 1rem, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-width: 0;
  width: 100%;
}

/* Product Mockup */
.app-window {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  overflow: hidden;
  font-family: 'Inter', var(--font-sans);
  width: 100%;
}

.window-header {
  background: #f8fafc;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.window-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.window-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
  font-weight: 600;
}

.window-body {
  display: flex;
  height: 460px;
  background: #ffffff;
}

.preview-sidebar {
  width: 210px;
  background: #fafaf9;
  border-right: 1px solid #e7e5e4;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #78716c;
  font-size: 0.8rem;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0d0d0d;
}

.preview-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #111111;
  position: relative;
}

.preview-logo::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 2px solid #ffffff;
  border-radius: 4px;
}

.preview-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e7e5e4;
  background: #f5f5f4;
  color: #57534e;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 8px 10px;
}

.preview-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a8a29e;
  font-weight: 600;
}

.preview-sheet {
  padding: 6px 8px;
  border-radius: 8px;
  color: #57534e;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font: inherit;
}

.preview-sheet.active {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  color: #0d0d0d;
  font-weight: 600;
}

.preview-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preview-header {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #e7e5e4;
  background: #ffffff;
  min-width: 0;
}

.preview-sheet-name {
  font-weight: 600;
  color: #0d0d0d;
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a8a29e;
  font-size: 0.75rem;
}

.preview-share {
  background: #111111;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.preview-more {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e7e5e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a8a29e;
  font-weight: 700;
}

.preview-notepad {
  flex: 1;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', var(--font-mono);
  font-size: 0.85rem;
  color: #0d0d0d;
  overflow-y: auto;
  overflow-x: hidden;
}

.preview-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  min-width: 0;
}

.preview-line .preview-input.preview-comment {
  color: #a3a3a3;
  font-style: italic;
  opacity: 0.85;
}

.preview-input {
  color: #0d0d0d;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-output {
  color: #0078d4;
  font-weight: 600;
  text-align: right;
  flex: 0 1 40%;
  min-width: 0;
  max-width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Template Hub */
.template-hub {
  padding: 100px 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--brand-dark);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.template-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-blue);
}

.template-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-slate);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-dark);
}

.template-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.template-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.template-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.template-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.template-link-secondary {
  color: var(--text-muted);
}

.template-link-secondary:hover {
  color: var(--brand-dark);
}

/* Features (Bento) */
.features {
  padding: 100px 0;
  background: var(--bg-slate);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 24px;
}

.bento-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.bento-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.bento-card p {
  color: var(--text-muted);
}

.bento-large {
  grid-column: span 2;
}

.cas-preview {
  margin-top: auto;
  font-family: var(--font-mono);
  background: var(--bg-slate);
  padding: 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Pricing */
.pricing {
  padding: 100px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.28);
}

.pricing-card.highlight {
  border-color: var(--brand-blue);
  box-shadow: 0 16px 40px -18px rgba(52, 152, 219, 0.35);
  transform: translateY(-6px);
}

.pricing-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.pricing-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-list {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Docs */
.docs {
  padding: 100px 0;
  background: var(--bg-slate);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.docs-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.docs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-blue);
}

.docs-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.docs-card p {
  color: var(--text-muted);
}

.docs-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* CTA */
.cta {
  padding: 120px 0;
  text-align: center;
  background: #ffffff;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--brand-dark);
}

.cta p {
  margin-bottom: 32px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--bg-white);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--brand-dark);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 16px;
}

/* Shared cards and page shells */
.page-shell {
  padding: 80px 0 100px;
  background: var(--bg-slate);
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.page-header p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.info-row:last-child {
  border-bottom: none;
}

/* Legal pages */
.legal-shell {
  padding: 80px 0 100px;
  background: var(--bg-slate);
}

.legal-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.legal-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 1rem;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-top: 12px;
}

.legal-content a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Shared auth modal (matches app UI) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.modal-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-dark);
}

.modal-body {
  padding: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.modal-button {
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--brand-dark);
}

.modal-button.primary {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

.modal-button:hover {
  opacity: 0.9;
}

.modal-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 8px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
}

@media (max-width: 900px) {
  #nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    justify-content: space-between;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 24px;
    background: #ffffff;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    width: min(260px, 90vw);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    align-items: stretch;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li.nav-actions {
    margin-left: 0;
  }

  .nav-links a,
  .nav-links .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    text-align: left;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-large {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card.highlight {
    transform: none;
  }

  .legal-content {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 40px;
  }

  .window-header {
    padding: 8px 10px;
  }

  .window-title {
    font-size: 0.6rem;
  }

  .window-body {
    height: clamp(300px, 80vw, 360px);
  }

  .preview-sidebar {
    display: flex;
    width: 120px;
    padding: 12px;
    gap: 12px;
    font-size: 0.7rem;
  }

  .preview-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .preview-logo::after {
    inset: 5px;
    border-radius: 3px;
  }

  .preview-actions {
    gap: 6px;
  }

  .preview-btn {
    font-size: 0.65rem;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .preview-section-title {
    font-size: 0.55rem;
  }

  .preview-sheet {
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.68rem;
  }

  .preview-header {
    height: 44px;
    padding: 0 10px;
  }

  .preview-sheet-name {
    font-size: 0.8rem;
  }

  .preview-header-actions {
    display: flex;
    gap: 6px;
    font-size: 0.6rem;
  }

  .preview-share {
    padding: 4px 6px;
    font-size: 0.6rem;
    border-radius: 6px;
  }

  .preview-more {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }

  .preview-notepad {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .preview-line {
    gap: 8px;
    padding: 6px 0;
  }

  .preview-output {
    flex-basis: 45%;
    max-width: 45%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Documentation page */
.docs-page {
  background: var(--bg-white);
}

.docs-hero {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-light);
}

.docs-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.docs-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.docs-meta {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.docs-body {
  padding: 48px 0 90px;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
}

.docs-toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.docs-toc ul {
  list-style: none;
  display: grid;
  gap: 10px;
  padding-left: 0;
}

.docs-toc a {
  font-size: 0.9rem;
  color: var(--text-main);
}

.docs-toc a:hover {
  color: var(--brand-blue);
}

.docs-content h2 {
  font-size: 1.8rem;
  margin-top: 36px;
  margin-bottom: 16px;
}

.docs-content h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.docs-content p {
  margin-bottom: 12px;
  color: var(--text-main);
}

.docs-content ul,
.docs-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.docs-content ul {
  list-style: disc;
}

.docs-content ol {
  list-style: decimal;
}

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

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: #eef2f7;
  padding: 2px 6px;
  border-radius: 6px;
}

.docs-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 16px 0 20px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.docs-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.docs-callout,
.docs-note {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0 24px;
}

.docs-callout strong {
  display: block;
  margin-bottom: 8px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 32px;
  font-size: 0.95rem;
}

.docs-table th,
.docs-table td {
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: var(--bg-slate);
  font-weight: 700;
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
  }
}

@media (max-width: 700px) {
  .docs-hero h1 {
    font-size: 2.1rem;
  }

  .docs-table {
    display: block;
    overflow-x: auto;
  }
}
