:root {
  --sidebar-w: 260px;
  --content-max: 780px;
  --bg: #fafbfc;
  --sidebar-bg: #104455;
  --sidebar-fg: #d6e4e9;
  --sidebar-active: #22ABA5;
  --text: #1f2328;
  --text-secondary: #656d76;
  --link: #007973;
  --code-bg: #f6f8fa;
  --border: #d0d7de;
  --heading: #1f2328;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  display: flex; min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w); min-height: 100vh; position: fixed; inset: 0 auto 0 0;
  background: var(--sidebar-bg); padding: 20px 0; overflow-y: auto; z-index: 1000;
}
.sidebar .logo {
  display: block; padding: 0 20px 16px;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 12px;
  line-height: 0;
}
.sidebar .nav-section {
  display: block; padding: 9px 20px; color: #98BCC7; text-decoration: none;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border-left: 3px solid transparent;
}
.sidebar .nav-section:hover, .sidebar .nav-section.active { color: #fff; background: rgba(255,255,255,0.05); }
.sidebar .nav-section.active { border-left-color: var(--sidebar-active); }
.section-pages { padding: 0 0 8px; }
.section-pages > a, .tutorial-steps a {
  display: block; padding: 5px 20px 5px 28px; color: var(--sidebar-fg); text-decoration: none;
  font-size: 13px; line-height: 1.35; border-left: 3px solid transparent;
}
.section-pages > a:hover, .tutorial-steps a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.section-pages > a.active { color: var(--sidebar-active); border-left-color: var(--sidebar-active); background: rgba(34,171,165,0.12); font-weight: 700; }
.tutorial-steps { margin: 4px 16px 0; border-top: 1px solid rgba(255,255,255,0.16); }
.tutorial-steps summary { color: #98BCC7; cursor: pointer; font-size: 12px; font-weight: 600; padding: 9px 4px 5px; }
.tutorial-steps a { color: #b7cbd2; font-size: 12px; padding: 4px 4px 4px 12px; }
.tutorial-steps a:last-child { margin-bottom: 4px; }
.content {
  margin-left: var(--sidebar-w); max-width: var(--content-max);
  padding: 40px 48px; flex: 1;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--heading); margin: 1.5em 0 0.5em; font-weight: 600;
}
h1 { font-size: 2em; margin-top: 0; padding-bottom: 0.3em; border-bottom: 2px solid #FC6652; }
h2 { font-size: 1.5em; padding-bottom: 0.2em; border-bottom: 2px solid #FC6652; }
h3 { font-size: 1.25em; }
p { margin: 0.8em 0; }
a { color: var(--link); }
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em; background: var(--code-bg); padding: 0.2em 0.4em;
  border-radius: 4px;
}
pre {
  background: #001A25; color: #e1e4e8; padding: 16px; border-radius: 8px;
  overflow-x: auto; margin: 1em 0; line-height: 1.45;
}
pre code { background: none; color: inherit; padding: 0; font-size: 0.85em; }
.hljs{color:#adbac7;background:transparent}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#f47067}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#dcbdfb}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#6cb6ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#96d0ff}.hljs-built_in,.hljs-symbol{color:#f69d50}.hljs-code,.hljs-comment,.hljs-formula{color:#8ddb8c;font-style:italic}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#8ddb8c}.hljs-subst{color:#adbac7}.hljs-section{color:#316dca;font-weight:700}.hljs-bullet{color:#eac55f}.hljs-emphasis{color:#adbac7;font-style:italic}.hljs-strong{color:#adbac7;font-weight:700}
.hljs-dbqc{color:#22ABA5;font-weight:600}
blockquote {
  border-left: 4px solid var(--border); padding: 0.5em 1em; margin: 1em 0;
  color: var(--text-secondary); background: #f6f8fa; border-radius: 0 4px 4px 0;
}
.page-summary {
  margin: 0 0 2em; padding: 16px 18px; border: 1px solid #9acfc9;
  border-left: 4px solid var(--sidebar-active); border-radius: 6px;
  background: #f0faf8;
}
.page-summary-label {
  margin: 0 0 0.25em; color: var(--link); font-size: 0.75em; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.page-summary p { margin: 0; }
.page-outline { margin-top: 0.75em; }
.page-outline summary { color: var(--link); cursor: pointer; font-weight: 600; }
.page-outline ul { margin: 0.5em 0 0; }
.page-outline li { margin: 0.2em 0; }
.content img {
  display: block; width: 100%; height: auto; margin: 1.25em 0;
  border: 1px solid var(--border); border-radius: 10px;
}
ul, ol { margin: 0.8em 0; padding-left: 2em; }
li { margin: 0.3em 0; }
hr { border: none; border-top: 2px solid #FC6652; margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
table { border-collapse: collapse; width: 100%; }
th, td {
  border: 1px solid var(--border); padding: 8px 12px; text-align: left;
}
th { background: var(--code-bg); font-weight: 600; }
/* WHY: pricing pairs share one compact column while preserving a clear visual
   distinction between the post-launch regular rate and the current launch rate. */
.regular-price {
  display: inline-block; padding: 0 4px; color: #b42318;
  background: linear-gradient(to top left, transparent 45%, #d92d20 45%, #d92d20 55%, transparent 55%);
}
/* Mobile header: fixed bar at top with hamburger + logo. Hidden on desktop
   where the full sidebar is always visible. Standard mobile docs pattern —
   bar stays visible on scroll so navigation is always one tap away. */
.mobile-header {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: 48px; background: var(--sidebar-bg); color: #fff;
  align-items: center; padding: 0 16px; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hamburger {
  background: none; color: #fff; border: none;
  font-size: 24px; cursor: pointer; padding: 4px;
  line-height: 1;
}
.mobile-logo {
  font-size: 18px; font-weight: 700; color: #fff;
  text-decoration: none;
}
/* Overlay: dim background behind the open sidebar drawer. */
.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  .mobile-header { display: flex; }
  .sidebar {
    top: 48px; width: min(100%, 300px); height: calc(100vh - 48px); min-height: auto;
    transform: translateX(-100%); transition: transform 0.2s ease;
  }
  .sidebar .logo { display: none; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .nav-overlay { display: block; }
  .content { margin-left: 0; padding: 20px 16px; padding-top: 64px; }
  body { flex-direction: column; }
}

/* ── Landing page ──────────────────────────────────────────────────
   WHY: The marketing landing page uses full-width sections with a
   sticky header instead of the sidebar layout. This CSS will move to
   volvwealth.com/dbqc when the sites split. */
.landing-body { display: block; }
.landing-body .mobile-header { display: none; }

/* WHY: Sticky header keeps the CTA ("Try free") always visible so
   visitors can act at any scroll position. */
.landing-header {
  display: flex; align-items: center; padding: 12px 2em;
  border-bottom: 1px solid var(--border); background: #fff;
  position: sticky; top: 0; z-index: 100;
}
.landing-logo-link { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.landing-nav { display: flex; gap: 1.5em; align-items: center; }
.landing-nav a { color: var(--text); text-decoration: none; font-size: 0.95em; font-weight: 500; }
.landing-nav a:hover { color: var(--link); }
/* WHY: Visually distinct CTA button in the nav drives conversion. */
.landing-nav .nav-cta {
  background: var(--sidebar-active); color: #fff; padding: 6px 16px;
  border-radius: 6px; font-weight: 600;
}
.landing-nav .nav-cta:hover { background: #1a9690; color: #fff; }
.landing-hamburger { display: none; }

.landing-footer {
  text-align: center; padding: 2em; border-top: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.85em;
}
.landing-footer a { color: var(--text-secondary); }

/* WHY: Full-width layout with centered content — the marketing page
   needs breathing room and visual weight that the 780px docs column
   cannot provide. */
.landing { max-width: 100%; }
.landing h1, .landing h2 { border-bottom: none; }
.landing h2 { text-align: center; font-size: 1.8em; }
.section { padding: 4em 2em; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-alt { background: #f0faf8; }

/* Hero */
.hero { text-align: center; padding: 5em 2em 4em; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 2.5em; line-height: 1.2; color: var(--heading); }
.hero-sub { font-size: 1.15em; color: var(--text-secondary); margin: 1em 0 2em; line-height: 1.6; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 0.85em; color: var(--text-secondary); margin-top: 1.5em; }

/* WHY: CTA buttons use the brand teal and navy so they stand out from
   body text and match the favicon and logo palette. */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-weight: 600; text-decoration: none; font-size: 1em;
  transition: background 0.15s;
}
.btn-primary { background: var(--sidebar-active); color: #fff; }
.btn-primary:hover { background: #1a9690; color: #fff; }
.btn-secondary { background: var(--sidebar-bg); color: #fff; }
.btn-secondary:hover { background: #0d3a48; color: #fff; }

/* How-it-works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2em; margin: 2em 0; }
.step { text-align: center; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sidebar-active); color: #fff;
  font-weight: 700; font-size: 1.1em;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1em;
}
.step h3 { font-size: 1.1em; margin: 0.5em 0; }

/* Benefit cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; margin: 2em 0; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.5em;
}
.card h3 { margin-top: 0; font-size: 1.15em; }
.card a { font-weight: 600; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em; margin: 2em 0; }
.feature {
  padding: 1em; border-left: 3px solid var(--sidebar-active);
  background: #f6f8fa; border-radius: 0 6px 6px 0;
}

/* WHY: Pricing cards use a grid with the "featured" card visually
   promoted so the most common purchase (Individual) draws the eye. */
.section-intro { text-align: center; color: var(--text-secondary); font-size: 1.1em; margin-bottom: 2em; }
.pricing-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; margin: 2em 0; }
.pricing-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.5em; text-align: center;
}
.pricing-card.featured { border-color: var(--sidebar-active); border-width: 2px; }
.pricing-card h3 { margin-top: 0; }
.pricing-card .price { font-size: 2em; font-weight: 700; color: var(--heading); margin: 0.3em 0; }
.pricing-card .from { font-size: 0.4em; color: var(--text-secondary); font-weight: 400; vertical-align: middle; }
.pricing-card .per { font-size: 0.4em; color: var(--text-secondary); font-weight: 400; }
.pricing-card ul { list-style: none; padding: 0; text-align: left; font-size: 0.9em; color: var(--text-secondary); }
.pricing-card li { padding: 0.2em 0; }
.pricing-card li::before { content: "✓ "; color: var(--sidebar-active); font-weight: 700; }
.pricing-link { text-align: center; margin-top: 1em; }

/* Final CTA */
.cta-section { text-align: center; }
.built-by { font-size: 0.85em; color: var(--text-secondary); margin-top: 2em; }

/* WHY: Landing page responsive breakpoints collapse grids to single
   columns on mobile so cards don't become unreadably narrow. */
@media (max-width: 768px) {
  .landing-nav { display: none; }
  .landing-hamburger { display: block; }
  .landing-header.open .landing-nav {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #fff; padding: 1em;
    border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .hero h1 { font-size: 1.8em; }
  .steps, .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pricing-cards { grid-template-columns: 1fr; }
}