/* Extracted from public/docs.html during Eleventy migration. */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    [hidden] { display: none !important; }

    /* Design-system alignment — recovery-green palette to match the
       refreshed marketing site (tokens.css). Sidebar layout stays
       docs-specific because the IA is different from marketing pages. */
    :root {
      --bg: #0a0a0f; --surface: #14141c; --surface-2: #1a1a25;
      --border: #2a2a3a; --border-subtle: #1e1e2e;
      --text: #f5f5fa; --text-dim: #9a9ab0;
      --accent: #3FB872; --accent-hover: #5BD08C;
      --accent-soft: rgba(63, 184, 114, 0.12);
      --green: #3FB872; --red: #E5556C; --orange: #E6B546;
      --blue: #74a9ff; --sidebar-w: 260px;
      --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
    }
    html { scroll-behavior: smooth; }
    body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; }

    :focus { outline: none; }
    :focus-visible {
      outline: none;
      box-shadow: var(--focus-ring);
      border-radius: 6px;
      transition: box-shadow 120ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    input:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(63, 184, 114, 0.3); border-color: var(--accent); }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    }

    /* Search box (used in docs sub-bar) */
    .search-box { position: relative; }
    .search-box input { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px 8px 36px; color: var(--text); font-size: 13px; width: 220px; outline: none; }
    .search-box input:focus { border-color: var(--accent); }
    .search-box input::placeholder { color: var(--text-dim); }
    .search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }

    /* ── Docs sub-bar (search + sidebar toggle, sits under marketing nav) ── */
    .docs-subbar { background: var(--surface); border-bottom: 1px solid var(--border); }
    .docs-subbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
    .docs-sidebar-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; color: var(--text); cursor: pointer; font-size: 13px; }

    /* ── Layout ──────────────────────── */
    .docs-layout { display: flex; max-width: 1300px; margin: 0 auto; }

    /* ── Sidebar ─────────────────────── */
    .docs-sidebar { width: var(--sidebar-w); padding: 24px 16px; border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
    .docs-sidebar::-webkit-scrollbar { width: 4px; }
    .docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
    .sidebar-section { margin-bottom: 20px; }
    .sidebar-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 8px; font-weight: 600; }
    .sidebar-link { display: block; font-size: 13px; color: var(--text-dim); text-decoration: none; padding: 5px 10px; border-radius: 6px; margin-bottom: 1px; transition: all 0.15s; }
    .sidebar-link:hover { color: var(--text); background: var(--surface-2); }
    .sidebar-link.active { color: var(--accent); background: var(--accent-soft); }
    .sidebar-link.sub { padding-left: 22px; font-size: 12px; }

    /* ── Content ─────────────────────── */
    .docs-content { flex: 1; padding: 32px 48px; max-width: 880px; }

    /* Breadcrumb */
    .breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }
    .breadcrumb a { color: var(--accent); text-decoration: none; }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb span { margin: 0 6px; }

    /* Headings — Fraunces serif on h1/h2 to match the marketing site
       editorial voice; sans on h3/h4 for inline-content readability. */
    /* Docs page H1 — slightly smaller than the marketing-hero scale (it's
       body content, not a hero panel) but keeps Fraunces to match voice. */
    h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 16px; color: var(--fg-strong, var(--text)); }
    .page-desc { font-size: 16px; color: var(--text-dim); margin-bottom: 40px; line-height: 1.7; }
    h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(22px, 2.4vw, 26px); font-weight: 500; letter-spacing: -0.01em; margin-top: 56px; margin-bottom: 14px; padding-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: 90px; color: var(--text); }
    h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
    h3 { font-size: 17px; font-weight: 600; margin-top: 32px; margin-bottom: 8px; color: var(--text); scroll-margin-top: 90px; }
    h4 { font-size: 14px; font-weight: 600; margin-top: 20px; margin-bottom: 6px; }

    /* Text */
    p { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; line-height: 1.7; }
    a { color: var(--accent); }
    strong { color: var(--text); font-weight: 600; }
    ul, ol { margin-bottom: 14px; padding-left: 22px; }
    li { font-size: 14px; color: var(--text-dim); margin-bottom: 6px; line-height: 1.6; }
    li strong { color: var(--text); }

    /* Code */
    code { background: var(--surface-2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: var(--accent); font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace; }
    pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; overflow-x: auto; }
    pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 13px; line-height: 1.5; font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace; }

    /* Cards / callouts */
    .callout { border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; font-size: 13px; }
    .callout p { margin-bottom: 0; font-size: 13px; }
    .callout-info { background: var(--accent-soft); border: 1px solid rgba(63,184,114,.25); }
    .callout-warn { background: rgba(230,181,70,.08); border: 1px solid rgba(230,181,70,.25); }
    .callout-success { background: var(--accent-soft); border: 1px solid rgba(63,184,114,.25); }
    .callout-info strong { color: var(--accent); }
    .callout-warn strong { color: var(--orange); }
    .callout-success strong { color: var(--green); }

    /* Steps */
    .steps { counter-reset: step; margin-bottom: 20px; }
    .step { display: flex; gap: 16px; margin-bottom: 20px; position: relative; }
    .step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0; }
    .step-content { flex: 1; padding-top: 4px; }
    .step-content h4 { margin-top: 0; font-size: 15px; color: var(--text); }
    .step-content p { font-size: 14px; }

    /* Timeline */
    .timeline { display: flex; align-items: center; gap: 0; margin: 16px 0 20px; flex-wrap: wrap; }
    .timeline-node { display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .timeline-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); }
    .timeline-dot.active { border-color: var(--accent); background: var(--accent); }
    .timeline-dot.success { border-color: var(--green); background: var(--green); }
    .timeline-dot.fail { border-color: var(--red); background: var(--red); }
    .timeline-label { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
    .timeline-line { width: 40px; height: 2px; background: var(--border); margin-bottom: 20px; }
    .timeline-line.active { background: var(--accent); }

    /* Pricing comparison table */
    .plan-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
    .plan-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
    .plan-table td { font-size: 13px; padding: 10px 14px; border-bottom: 1px solid rgba(42,42,58,.4); color: var(--text-dim); }
    .plan-table td:first-child { color: var(--text); font-weight: 500; }
    .plan-table tr:hover td { background: var(--surface-2); }
    .check { color: var(--green); }
    .cross { color: var(--text-dim); opacity: 0.3; }

    /* FAQ accordion */
    .faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
    .faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text); border: none; width: 100%; text-align: left; }
    .faq-q:hover { background: var(--surface-2); }
    .faq-icon { font-size: 18px; color: var(--text-dim); transition: transform 0.2s; flex-shrink: 0; margin-left: 12px; }
    .faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
    .faq-item.open .faq-a { padding: 14px 18px; max-height: 600px; }
    .faq-item.open .faq-icon { transform: rotate(45deg); }

    /* ── Responsive ──────────────────── */
    @media (max-width: 900px) {
      .docs-sidebar { display: none; position: fixed; top: 0; left: 0; width: 280px; height: 100vh; background: var(--bg); z-index: 99; border-right: 1px solid var(--border); }
      .docs-sidebar.open { display: block; }
      .docs-sidebar-toggle { display: inline-flex; }
      .docs-content { padding: 24px 20px; }
      .search-box input { width: 160px; }
    }
    @media (max-width: 600px) {
      .search-box input { width: 140px; }
      h1 { font-size: 24px; }
      h2 { font-size: 19px; }
      .plan-table { font-size: 12px; }
      .plan-table td, .plan-table th { padding: 8px 8px; }
    }
