/* Solvera site — shared stylesheet
 * Used across all pages of solverasolar.com
 */

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold-bright: #E8962A;
  --gold-mid: #C4751A;
  --gold-dark: #9A5610;
  --navy: #0C1A2E;
  --navy-soft: #1a2942;
  --white: #FFFFFF;
  --cream: #FDFBF7;
  --cream-bg: #F4EFE6;
  --gray-50: #F8F9FA;
  --gray-100: #E9ECEF;
  --gray-200: #DEE2E6;
  --gray-400: #ADB5BD;
  --gray-600: #495057;
  --gray-700: #343A40;
  --max-width: 1100px;
  --max-width-narrow: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--gold-mid); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-dark); text-decoration: underline; }

/* ---------- Top Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; color: var(--navy); }
.nav-brand-sol { color: var(--gold-bright); }
.nav-brand-vera { color: var(--navy); }
.nav-brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold-mid); text-decoration: none; }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy-soft); color: var(--white) !important; text-decoration: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: var(--gray-200);
  padding: 56px 24px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand-block { max-width: 320px; }
.footer-brand {
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--white);
}
.footer-brand img { height: 40px; width: auto; }
.footer-brand .sol { color: var(--gold-bright); }
.footer-brand .vera { color: var(--white); }
.footer-tagline { color: var(--gray-400); font-size: 14px; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--gray-200); font-size: 14px; }
.footer-col a:hover { color: var(--gold-bright); text-decoration: none; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Documentation / Legal Pages ---------- */
.doc-page {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 64px 24px 48px;
}
.doc-page .eyebrow {
  color: var(--gold-mid);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.doc-page h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.15;
}
.doc-page .meta {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}
.doc-page h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 48px 0 16px;
  letter-spacing: -0.2px;
}
.doc-page h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.doc-page p { margin-bottom: 16px; color: var(--gray-700); }
.doc-page ul, .doc-page ol { margin: 0 0 16px 24px; color: var(--gray-700); }
.doc-page li { margin-bottom: 8px; }
.doc-page strong { color: var(--navy); font-weight: 600; }
.doc-page hr { border: none; border-top: 1px solid var(--gray-100); margin: 40px 0; }
.doc-page .callout {
  background: var(--cream);
  border-left: 3px solid var(--gold-bright);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 15px;
}
.doc-page .callout strong { display: block; margin-bottom: 4px; color: var(--gold-dark); }
.doc-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.doc-page th, .doc-page td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.doc-page th {
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-50);
}

/* TOC */
.toc {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 40px;
}
.toc-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.toc ol { margin: 0 0 0 18px; }
.toc li { margin-bottom: 4px; font-size: 15px; }
.toc a { color: var(--navy); }
.toc a:hover { color: var(--gold-mid); text-decoration: none; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .doc-page { padding: 40px 20px 32px; }
  .doc-page h1 { font-size: 32px; }
  .doc-page h2 { font-size: 22px; margin-top: 36px; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand-block { grid-column: 1 / -1; }
}

/* ===================================================
   HOMEPAGE STYLES
   =================================================== */

/* ---------- Section base ---------- */
.section {
  padding: 96px 24px;
}
.section-light { background: var(--white); }
.section-cream { background: var(--cream); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header .eyebrow {
  color: var(--gold-mid);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- HERO ---------- */
.hero {
  background: var(--cream);
  padding: 80px 24px 48px;
  text-align: center;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.hero-eyebrow {
  color: var(--gold-mid);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--navy);
}
.hero-sub {
  font-size: 19px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-cta-pill {
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}
.hero-cta-note {
  font-size: 14px;
  color: var(--gray-600);
}

/* Hero image */
.hero-image-wrap {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 50%, var(--white) 50%, var(--white) 100%);
  padding: 0 24px 0;
}
.hero-image-frame {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(12, 26, 46, 0.25), 0 10px 30px -10px rgba(12, 26, 46, 0.15);
  border: 1px solid var(--gray-100);
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.feature {
  text-align: left;
}
.feature-num {
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--navy);
}
.feature p {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Video frame ---------- */
.video-frame {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(12, 26, 46, 0.25);
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: var(--navy);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- How it works steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 32px;
  position: relative;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--navy);
}
.step p {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Showcase (alternating screenshots) ---------- */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.showcase-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.showcase-item.reverse {
  grid-template-columns: 1fr 1.4fr;
}
.showcase-item.reverse img {
  order: 2;
}
.showcase-item.reverse .showcase-caption {
  order: 1;
}
.showcase-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 50px -15px rgba(12, 26, 46, 0.25);
  border: 1px solid var(--gray-100);
}
.showcase-caption h4 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.showcase-caption p {
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border: 2px solid var(--gold-bright);
  box-shadow: 0 12px 40px -10px rgba(232, 150, 42, 0.25);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-bright);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.plan-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 16px;
}
.plan-amount {
  font-size: 44px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
}
.plan-period {
  color: var(--gray-600);
  font-size: 16px;
  margin-left: 4px;
}
.plan-desc {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.5;
}
.pricing-note {
  text-align: center;
  color: var(--gray-600);
  font-size: 14px;
  margin-top: 32px;
}

/* Simplified pricing cards (no per-tier feature lists) */
.pricing-grid.pricing-simple .plan {
  text-align: center;
  padding: 40px 30px;
}
.pricing-grid.pricing-simple .plan-price {
  justify-content: center;
}
.pricing-cta-row {
  text-align: center;
  margin-top: 32px;
}
.pricing-compare-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-mid);
}
.pricing-compare-link:hover { color: var(--gold-bright); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--navy);
  text-align: center;
  padding: 80px 24px;
}
.final-cta h2 {
  font-size: 38px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.final-cta p {
  color: var(--gray-200);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-button {
  display: inline-block;
  background: var(--gold-bright);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.cta-button:hover {
  background: var(--gold-mid);
  text-decoration: none;
}

/* Reset margin on final section to flow into footer */
.final-cta + .footer { margin-top: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 20px; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 30px; }

  .hero { padding: 56px 20px 32px; }
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 17px; }

  .features-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }

  .showcase-item, .showcase-item.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-item.reverse img,
  .showcase-item.reverse .showcase-caption { order: unset; }
  .showcase-item img { order: -1; }

  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .plan.featured { transform: none; }

  .final-cta h2 { font-size: 28px; }
}

/* ===================================================
   PRICING PAGE STYLES
   =================================================== */

.pricing-page .pricing-header {
  padding-bottom: 32px;
}
.billing-toggle-note {
  color: var(--gray-600);
  font-size: 14px;
  margin-top: 16px;
}

/* Annual price under monthly */
.plan-annual {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 18px;
  margin-top: -8px;
}

/* "Includes X plus:" mini-banner */
.plan-includes {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-mid);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 16px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

/* Plan CTA pill (pre-launch state) */
.plan-cta {
  margin-top: 24px;
  text-align: center;
}
.plan-cta-pill {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* Pricing cards need a touch more height to fit annual price + includes banner */
.pricing-page .plan {
  padding: 36px 28px;
}
.pricing-page .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  flex-grow: 1;
}
.pricing-page .plan-features li {
  font-size: 14px;
  color: var(--gray-700);
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
  line-height: 1.4;
}
.pricing-page .plan-features li:last-child { border-bottom: none; }
.pricing-page .plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold-bright);
  font-weight: 700;
}

/* ---------- Comparison Table ---------- */
.comparison-table-wrap {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  overflow-x: auto;
  margin-top: 8px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 720px;
}
.comparison-table thead th {
  text-align: center;
  padding: 24px 16px 16px;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  background: var(--cream);
  border-bottom: 2px solid var(--gray-100);
  position: sticky;
  top: 0;
}
.comparison-table thead th.feature-col {
  text-align: left;
  background: var(--cream);
}
.comparison-table thead th.featured-col {
  background: var(--gold-bright);
  color: var(--white);
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  vertical-align: middle;
  color: var(--gray-700);
}
.comparison-table td:first-child {
  text-align: left;
  color: var(--navy);
  font-weight: 500;
}
.comparison-table tr.category-row td {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-600);
  padding: 14px 16px;
  text-align: left;
}
.comparison-table td.check {
  color: var(--gold-bright);
  font-size: 18px;
  font-weight: 700;
}
.comparison-table td.dash {
  color: var(--gray-400);
  font-size: 18px;
}
.comparison-table td.value {
  font-weight: 600;
  color: var(--navy);
}
.comparison-table td.featured-col {
  background: rgba(232, 150, 42, 0.06);
}

.comparison-note {
  text-align: center;
  color: var(--gray-600);
  font-size: 14px;
  margin-top: 24px;
  font-style: italic;
}

/* ---------- Pricing FAQ Grid ---------- */
.pricing-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.pricing-faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.pricing-faq-item p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.6;
}
.pricing-faq-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-600);
  font-size: 15px;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .pricing-page .pricing-header { padding-bottom: 16px; }
  .pricing-faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .comparison-table { font-size: 14px; }
  .comparison-table thead th { padding: 16px 12px 12px; font-size: 14px; }
  .comparison-table td { padding: 12px; }
}

/* ===================================================
   DOCS PAGES
   =================================================== */

/* ---------- Docs Landing ---------- */
.docs-landing .docs-hero {
  padding-bottom: 32px;
}

.docs-category-header {
  margin-bottom: 40px;
}
.docs-category-header .eyebrow {
  color: var(--gold-mid);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.docs-category-header h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--navy);
  margin-bottom: 0;
}

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

.doc-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}
.doc-card:hover {
  text-decoration: none;
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(12, 26, 46, 0.15);
}

.doc-card-num {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.doc-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.doc-card p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 0;
}

.doc-card-cta {
  color: var(--gold-mid);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  display: inline-block;
}

.doc-card-primary {
  background: var(--cream);
  border: 2px solid var(--gold-bright);
}
.doc-card-primary:hover {
  background: var(--white);
}

/* ---------- Per-doc Page Layout ---------- */
.doc-page-wrapper {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  align-items: start;
}

/* ---------- Docs sidebar (two-level nav + nested TOC) ---------- */
.docs-sidebar-v2 {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14px;
}

/* Mobile toggle, hidden on desktop */
.docs-sidebar-mobile-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  margin-bottom: 16px;
}
.docs-sidebar-mobile-toggle-icon {
  transition: transform 0.2s ease;
  color: var(--gold-mid);
}
.docs-sidebar-mobile-toggle[aria-expanded="true"] .docs-sidebar-mobile-toggle-icon {
  transform: rotate(180deg);
}

/* Section grouping */
.docs-sidebar-nav .docs-nav-section {
  margin-bottom: 28px;
}
.docs-sidebar-nav .docs-nav-section:last-child {
  margin-bottom: 0;
}
.docs-nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--gray-500, #94a3b8);
  margin: 0 0 10px 12px;
}

/* Page list */
.docs-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-nav-item {
  margin-bottom: 2px;
}
.docs-nav-item > a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  transition: all 0.15s ease;
}
.docs-nav-item > a:hover {
  background: var(--cream);
  color: var(--navy);
  text-decoration: none;
}
.docs-nav-item.active > a {
  background: var(--cream);
  color: var(--gold-dark);
  border-left-color: var(--gold-bright);
  font-weight: 600;
}

/* Inline TOC under the active page */
.docs-nav-toc {
  list-style: none;
  padding: 4px 0 8px;
  margin: 4px 0 8px 14px;
  border-left: 1px solid var(--gray-100);
}
.docs-nav-toc li {
  margin: 0;
}
.docs-nav-toc a {
  display: block;
  padding: 5px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: all 0.15s ease;
}
.docs-nav-toc a:hover {
  color: var(--navy);
  text-decoration: none;
}
.docs-nav-toc a.active {
  color: var(--gold-dark);
  border-left-color: var(--gold-bright);
  font-weight: 500;
}

/* Jump-out link (e.g. Pricing) set apart from the chapter list */
.docs-nav-external {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.docs-nav-external > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gray-600);
  font-size: 13px;
}
.docs-nav-external > a:hover {
  color: var(--gold-dark);
}
.docs-nav-external-icon {
  font-size: 12px;
  line-height: 1;
}

.doc-content {
  min-width: 0;
}
.doc-content .eyebrow {
  color: var(--gold-mid);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.doc-content h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--navy);
}
.doc-content .doc-meta {
  color: var(--gray-600);
  font-size: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
  line-height: 1.5;
}
.doc-content h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 48px 0 16px;
  letter-spacing: -0.2px;
  color: var(--navy);
  scroll-margin-top: 90px;
}
.doc-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--navy);
}
.doc-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--navy);
}
.doc-content p {
  margin-bottom: 16px;
  color: var(--gray-700);
  line-height: 1.7;
}
.doc-content ul,
.doc-content ol {
  margin: 0 0 16px 24px;
  color: var(--gray-700);
}
.doc-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.doc-content strong {
  color: var(--navy);
  font-weight: 600;
}
.doc-content code {
  background: var(--gray-50);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', Monaco, monospace;
  font-size: 13px;
  color: var(--navy);
}
.doc-content pre {
  background: var(--navy);
  color: var(--gray-200);
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: ui-monospace, 'SF Mono', Monaco, monospace;
  font-size: 13px;
  margin: 16px 0;
  line-height: 1.5;
}
.doc-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.doc-content hr {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 40px 0;
}

/* Callouts and tier flags */
.doc-content .callout {
  background: var(--cream);
  border-left: 3px solid var(--gold-bright);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 15px;
}
.doc-content .callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-dark);
}
.doc-content .tier-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-left: 8px;
  vertical-align: middle;
}
.doc-content .tier-badge.tier-growth {
  background: var(--gold-bright);
}
.doc-content .tier-badge.tier-professional {
  background: var(--gold-dark);
}

/* Screenshots */
.doc-screenshot {
  margin: 24px 0 32px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: 0 12px 30px -10px rgba(12, 26, 46, 0.18);
}
.doc-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
/* For tall, narrow screenshots (e.g. a sidebar capture) so they are not
   upscaled to the full content width. */
.doc-screenshot.doc-screenshot-narrow {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.doc-screenshot-caption {
  padding: 12px 16px;
  background: var(--gray-50);
  font-size: 13px;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-100);
  line-height: 1.5;
}

/* Tables in docs */
.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.doc-content th,
.doc-content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.doc-content th {
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-50);
  font-size: 13px;
}
.doc-content .doc-table thead th {
  border-top: 2px solid var(--gold-bright);
}

/* Doc page footer nav (prev/next) */
.doc-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}
.doc-footer-nav-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 16px 20px;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.doc-footer-nav-link:hover {
  border-color: var(--gold-bright);
  text-decoration: none;
}
.doc-footer-nav-link.next {
  text-align: right;
}
.doc-footer-nav-link .label {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  font-weight: 600;
}
.doc-footer-nav-link .title {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .docs-category-header h2 {
    font-size: 24px;
  }

  .doc-page-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px 48px;
  }
  .docs-sidebar-v2 {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
  }
  .docs-sidebar-mobile-toggle {
    display: flex;
  }
  .docs-sidebar-nav {
    display: none;
    padding: 12px 4px;
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    background: var(--white);
  }
  .docs-sidebar-nav.open {
    display: block;
  }
  .doc-content h1 {
    font-size: 30px;
  }
  .doc-content h2 {
    font-size: 22px;
    margin-top: 36px;
  }

  .doc-footer-nav {
    grid-template-columns: 1fr;
  }
  .doc-footer-nav-link.next {
    text-align: left;
  }
}
