/* ─────────────────────────────────────────────────────────────────────────
   speakeasy.css — CANONICAL speakeasy design SYSTEM (tokens + components).

   Self-contained: @imports the token layer, then the robust, content-agnostic
   component library (relocated verbatim from pseo.css, so the pSEO corpus renders
   byte-identically). Consumed by:
     • site/css/pseo.css  →  @import url('speakeasy.css');   (301 pSEO pages, links unchanged)
     • Phase 2+ reskinned pages  →  <link rel="stylesheet" href="/css/speakeasy.css">
   The homepage links speakeasy-tokens.css instead (it owns its own components).
   Mirror Lesson #6: pseo/templates/partials.ts renderBaseCSS().  GHST-810 / Phase 1.
   ───────────────────────────────────────────────────────────────────────── */

@import url('speakeasy-tokens.css');

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

    html {
      background: var(--bg);
      color: var(--text-secondary);
      font-family: var(--font-body);
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      font-size: 16px;
    }

    body { overflow-x: hidden; background: var(--bg); }

    /* top rainbow hairline — pinned to the very top edge, above the fixed header */
    body::before {
      content: "";
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--rainbow);
      z-index: 200;
    }

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

    /* --- Header --- */
    .header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 0 2rem;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      text-decoration: none;
      color: var(--text);
    }

    .logo-mark {
      display: inline-grid;
      place-items: center;
      width: 26px;
      height: 26px;
      border: 1px solid var(--border);
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      line-height: 1;
    }

    .logo-text {
      font-family: var(--font-mono);
      font-weight: 500;
      font-size: 13px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text);
    }

    .header-nav {
      display: flex;
      align-items: center;
      gap: 1.6rem;
    }

    .header-nav a {
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 400;
      transition: color 0.18s;
    }

    .header-nav a:hover { color: var(--text); }

    .verified-indicator {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.22rem 0.6rem 0.22rem 1rem;
      font-family: var(--font-mono);
      font-size: 0.62rem;
      color: var(--text-muted);
      text-decoration: none;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      transition: color 0.2s;
      border-left: 1px solid var(--border);
      margin-left: 0.4rem;
    }
    .verified-indicator:hover { color: var(--text-secondary); }
    /* static dot (no pulsing glow — anti-slop) */
    .verified-dot { width: 6px; height: 6px; border-radius: 50%; background: #59824f; }

    /* header pill button (Dashboard) — outline ghost pill, NOT a solid white fill */
    .btn, .btn-sm {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      font-family: var(--font-mono);
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border-radius: 999px;
      text-decoration: none;
      cursor: pointer;
      white-space: nowrap;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text);
      transition: border-color 0.18s, color 0.18s, background 0.18s;
    }
    .btn { padding: 11px 20px; font-size: 12px; }
    .btn-sm { padding: 9px 18px; font-size: 12px; }
    .btn:hover, .btn-sm:hover { border-color: rgba(244,244,245,0.5); color: var(--text); }

    /* --- Breadcrumbs --- */
    .breadcrumbs {
      max-width: 900px;
      margin: 80px auto 0;
      padding: 1.4rem 2rem 0;
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .breadcrumbs a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.15s;
    }

    .breadcrumbs a:hover { color: var(--text-secondary); }

    .breadcrumb-sep { color: #3a3a3a; }

    /* --- Hero --- */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 3.5rem 2rem 3rem;
      max-width: 900px;
      margin: 0 auto;
    }

    .hero h1 {
      font-family: var(--font-display);
      font-variation-settings: 'opsz' 144, 'wght' 100, 'SOFT' 0, 'WONK' 0;
      font-weight: 100;
      font-size: clamp(2.5rem, 5.4vw, 4.2rem);
      line-height: 1.12;
      letter-spacing: -0.03em;
      margin-bottom: 1.4rem;
      color: var(--text);
      max-width: 800px;
    }

    .hero h1 em {
      font-style: italic;
      font-weight: 200;
    }

    .hero-sub {
      font-size: clamp(1.05rem, 1.7vw, 1.2rem);
      color: var(--text-secondary);
      max-width: 600px;
      line-height: 1.55;
      font-weight: 400;
      margin-bottom: 1.5rem;
    }

    /* --- Sections --- */
    section { padding: 4.5rem 2rem; }

    .section-inner {
      max-width: 900px;
      margin: 0 auto;
    }

    /* ghost-chip eyebrow (mono, hairline border) — not a colored label */
    .section-label {
      display: inline-flex;
      font-family: var(--font-mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      color: #dbdbdb;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 5px 11px;
      margin-bottom: 1.1rem;
      font-weight: 400;
    }

    .section-title {
      font-family: var(--font-display);
      font-variation-settings: 'opsz' 144, 'wght' 100, 'SOFT' 0, 'WONK' 0;
      font-weight: 100;
      font-size: clamp(1.9rem, 3.6vw, 2.85rem);
      line-height: 1.15;
      letter-spacing: -0.03em;
      margin-bottom: 0.6rem;
      color: var(--text);
      max-width: 700px;
    }

    .section-desc {
      font-size: 1.05rem;
      color: var(--text-secondary);
      max-width: 620px;
      line-height: 1.6;
    }

    .section-alt { background: var(--bg-warm); }

    /* --- Content prose --- */
    .prose {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .prose p {
      font-size: 1.05rem;
      line-height: 1.7;
      color: var(--text-secondary);
      margin-bottom: 1.4rem;
    }

    .prose h2 {
      font-family: var(--font-display);
      font-variation-settings: 'opsz' 144, 'wght' 100, 'SOFT' 0, 'WONK' 0;
      font-weight: 100;
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      line-height: 1.2;
      letter-spacing: -0.03em;
      margin: 3rem 0 1rem;
      color: var(--text);
    }

    .prose h3 {
      font-family: var(--font-body);
      font-size: 1.1rem;
      font-weight: 600;
      margin: 2rem 0 0.75rem;
      color: var(--text);
    }

    /* --- Cards grid --- */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1rem;
      margin-top: 2rem;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 1.5rem;
      transition: border-color 0.2s ease, transform 0.2s ease;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .card:hover { border-color: rgba(244,244,245,0.24); transform: translateY(-3px); }

    .card h3 {
      font-family: var(--font-display);
      font-variation-settings: 'opsz' 32, 'wght' 300, 'SOFT' 0, 'WONK' 0;
      font-weight: 300;
      font-size: 1.25rem;
      line-height: 1.25;
      margin-bottom: 0.5rem;
      color: var(--text);
    }

    .card p {
      font-size: 0.9rem;
      line-height: 1.55;
      color: var(--text-secondary);
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .card-link {
      display: flex;
      text-decoration: none;
      color: inherit;
    }

    .card-link .card-arrow {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-secondary);
      margin-top: 0.9rem;
      font-weight: 500;
      transition: transform 0.15s;
      display: inline-block;
    }

    .card-link:hover .card-arrow { transform: translateX(3px); }

    /* --- Code blocks --- */
    .code-block {
      background: var(--bg-code);
      border: 1px solid var(--border);
      border-radius: 6px;
      margin: 1.5rem 0;
      overflow: hidden;
    }

    .code-block-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.55rem 0.7rem 0.55rem 1rem;
      border-bottom: 1px solid var(--border);
      background: transparent;
    }

    .code-block-lang {
      font-family: var(--font-mono);
      font-size: 0.68rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .code-block pre {
      padding: 1.1rem 1.2rem;
      font-family: var(--font-mono);
      font-size: 0.8rem;
      line-height: 1.75;
      overflow-x: auto;
      color: #d6d6d6;
      margin: 0;
    }

    .code-block code {
      font-family: inherit;
      font-size: inherit;
      color: inherit;
      background: transparent;
      padding: 0;
    }

    .code-block .kw { color: #99c2ff; }
    .code-block .str { color: #d3dd92; }
    .code-block .fn { color: #fb8841; }
    .code-block .cm { color: #5e6068; font-style: italic; }
    .code-block .num { color: #fb8841; }

    /* Inline code */
    code {
      background: #1b1b1b;
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.1rem 0.35rem;
      font-family: var(--font-mono);
      font-size: 0.82rem;
      color: #cdd2da;
    }

    /* --- Buttons (manual pages) --- */
    .btn-primary {
      background: #fafafa;
      border: 1px solid #fafafa;
      color: #000;
    }

    .btn-primary:hover { opacity: 0.88; border-color: #fafafa; }

    .btn .arrow { transition: transform 0.15s; }
    .btn:hover .arrow { transform: translateX(3px); }

    /* --- CTA section --- */
    .cta-section {
      text-align: center;
      padding: 5.5rem 2rem;
      background: var(--bg-warm);
      border-top: 1px solid var(--border);
    }

    .cta-section .section-inner { text-align: center; }
    .cta-section .section-label { margin-left: auto; margin-right: auto; }

    .cta-section .section-title {
      max-width: 640px;
      margin: 0.6rem auto 0.8rem;
    }

    .cta-section .section-desc {
      max-width: 480px;
      margin: 0 auto;
    }

    .cta-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      justify-content: center;
      margin-top: 1.6rem;
    }

    .pill-solid {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #fafafa;
      color: #000;
      border: 1px solid #fafafa;
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 13px 24px;
      text-decoration: none;
      transition: opacity 0.18s;
    }
    .pill-solid:hover { opacity: 0.88; }

    .pill-outline {
      display: inline-flex;
      align-items: center;
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 13px 24px;
      text-decoration: none;
      transition: border-color 0.18s;
    }
    .pill-outline:hover { border-color: rgba(244,244,245,0.5); }

    /* --- Tables --- */
    .data-table, .tools-table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5rem 0;
      font-size: 0.88rem;
    }

    .data-table th, .tools-table th {
      font-family: var(--font-mono);
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      text-align: left;
      padding: 0.8rem 1rem;
      border-bottom: 1px solid var(--border);
      font-weight: 500;
    }

    .data-table td, .tools-table td {
      padding: 0.8rem 1rem;
      border-bottom: 1px solid var(--border-light);
      color: var(--text-secondary);
      line-height: 1.5;
    }

    .data-table tr:last-child td, .tools-table tr:last-child td { border-bottom: none; }
    .data-table strong, .tools-table strong { color: var(--text); font-weight: 600; }

    .tools-table td { vertical-align: top; }
    .tools-table .tool-name {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      color: var(--text);
      font-weight: 500;
      white-space: nowrap;
    }
    .tools-table .tool-prompt {
      font-style: italic;
      color: var(--text-muted);
      font-size: 0.82rem;
    }

    /* --- FAQ (dark cards) --- */
    .faq-item {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 6px;
      margin-top: 0.9rem;
      padding: 1.25rem 1.4rem;
    }

    .faq-question {
      font-family: var(--font-body);
      font-size: 1rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.5rem;
    }

    .faq-answer {
      font-size: 0.93rem;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* --- Severity / mode chips --- */
    .severity {
      display: inline-block;
      padding: 0.18rem 0.6rem;
      font-family: var(--font-mono);
      font-size: 0.66rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      border-radius: 4px;
      border: 1px solid var(--border);
    }

    .severity-high { background: #1b1414; color: #e3a08c; border-color: #3a2420; }
    .severity-medium { background: #141a12; color: #bcd0a0; border-color: #2a3320; }
    .severity-low { background: #141414; color: var(--text-muted); }

    /* --- Step flow (dark cards) --- */
    .step-flow {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin: 2rem 0;
    }

    .step-item {
      display: flex;
      align-items: flex-start;
      gap: 1.1rem;
      padding: 1.25rem 1.4rem;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 6px;
    }

    .step-number {
      flex-shrink: 0;
      width: 2.1rem;
      height: 2.1rem;
      display: grid;
      place-items: center;
      font-family: var(--font-mono);
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 999px;
      background: transparent;
    }

    .step-content h3 {
      font-family: var(--font-body);
      font-size: 1.05rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
      color: var(--text);
    }

    .step-content p {
      font-size: 0.92rem;
      line-height: 1.55;
      color: var(--text-secondary);
    }

    .step-content code {
      background: #1b1b1b;
      border: 1px solid var(--border);
      border-radius: 4px;
      color: #cdd2da;
      font-family: var(--font-mono);
      font-size: 0.84em;
      padding: 1px 5px;
    }

    /* --- Divider (full-width hairline) --- */
    .divider {
      max-width: 1180px;
      margin: 0 auto;
      border: none;
      border-top: 1px solid var(--border);
    }

    /* --- Footer --- */
    .footer {
      border-top: 1px solid var(--border);
      padding: 2rem 2.5rem;
    }

    .footer-inner {
      max-width: 1180px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      justify-content: space-between;
      align-items: center;
    }

    .footer-left {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .footer-copy {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      color: var(--text-muted);
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 1.1rem;
    }

    .footer-links a {
      font-size: 0.8rem;
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.15s;
    }

    .footer-links a:hover { color: var(--text-secondary); }

    /* --- Animations --- */
    .fade-up {
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .stagger-1 { transition-delay: 0.04s; }
    .stagger-2 { transition-delay: 0.08s; }
    .stagger-3 { transition-delay: 0.12s; }
    .stagger-4 { transition-delay: 0.16s; }
    .stagger-5 { transition-delay: 0.2s; }
    .stagger-6 { transition-delay: 0.24s; }

    /* no-JS / reduced-motion safety net so content never stays hidden */
    @media (prefers-reduced-motion: reduce) {
      .fade-up { opacity: 1; transform: none; }
    }

    /* --- Architecture flow (manual pages) --- */
    .arch-flow {
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 2rem 0;
    }

    .arch-step {
      display: flex;
      align-items: flex-start;
      gap: 1.2rem;
      padding: 1.2rem 1.4rem;
      border-left: 1px solid var(--border);
      position: relative;
    }

    .arch-step::before {
      content: '';
      position: absolute;
      left: -4px;
      top: 1.5rem;
      width: 7px;
      height: 7px;
      background: var(--accent);
      border-radius: 50%;
    }

    .arch-step-tool {
      flex-shrink: 0;
      font-family: var(--font-mono);
      font-size: 0.72rem;
      color: #99c2ff;
      background: #11161f;
      border: 1px solid #1e2735;
      border-radius: 4px;
      padding: 0.2rem 0.5rem;
      font-weight: 500;
    }

    .arch-step-label {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.2rem;
    }

    .arch-step-desc {
      font-size: 0.85rem;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    /* --- Email preview card (manual pages) --- */
    .email-card {
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--card);
      margin: 2rem 0;
      max-width: 560px;
      overflow: hidden;
    }

    .email-card-header {
      padding: 1rem 1.2rem;
      border-bottom: 1px solid var(--border);
      font-size: 0.82rem;
    }

    .email-card-field {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.3rem;
    }

    .email-card-field-label {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      flex-shrink: 0;
      width: 3.5rem;
    }

    .email-card-field-value {
      color: var(--text-secondary);
      font-size: 0.82rem;
    }

    .email-card-subject {
      font-weight: 600;
      color: var(--text);
    }

    .email-card-body {
      padding: 1.2rem;
      font-size: 0.88rem;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* --- Oversight mode card --- */
    .oversight-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 1.6rem;
      margin: 1.8rem 0;
      max-width: 560px;
      position: relative;
    }

    .oversight-mode-label {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--text-muted);
      margin-bottom: 0.4rem;
      font-weight: 500;
    }

    .oversight-mode-name {
      font-family: var(--font-display);
      font-variation-settings: 'opsz' 32, 'wght' 300, 'SOFT' 0, 'WONK' 0;
      font-weight: 300;
      font-size: 2rem;
      color: var(--text);
      margin: 0.2rem 0 0.7rem;
      text-transform: capitalize;
    }

    .oversight-mode-desc {
      font-size: 0.95rem;
      line-height: 1.55;
      color: var(--text-secondary);
    }

    /* --- Troubleshooting (manual pages) --- */
    .troubleshoot-item {
      padding: 1.2rem 0;
      border-bottom: 1px solid var(--border-light);
    }

    .troubleshoot-item:last-child { border-bottom: none; }

    .troubleshoot-problem {
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.4rem;
      font-size: 0.95rem;
    }

    .troubleshoot-solution {
      font-size: 0.88rem;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    /* --- Why grid (4 cards => 2x2, never ragged 3+1) --- */
    .why-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
      margin-top: 2rem;
    }

    .why-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 1.6rem 1.5rem;
      transition: border-color 0.2s ease, transform 0.2s ease;
    }

    .why-card:hover { border-color: rgba(244,244,245,0.24); transform: translateY(-3px); }

    .why-card h3 {
      font-family: var(--font-display);
      font-variation-settings: 'opsz' 32, 'wght' 300, 'SOFT' 0, 'WONK' 0;
      font-weight: 300;
      font-size: 1.3rem;
      line-height: 1.25;
      margin-bottom: 0.6rem;
      color: var(--text);
    }

    .why-card p {
      font-size: 0.9rem;
      line-height: 1.55;
      color: var(--text-secondary);
    }

    /* --- Code sample wrapper --- */
    .code-sample { margin: 2.5rem 0; }

    .code-sample-label {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text);
      margin-bottom: 0.7rem;
      font-weight: 500;
    }

    .code-sample-desc {
      font-size: 0.9rem;
      line-height: 1.6;
      color: var(--text-muted);
      margin-top: 0.9rem;
    }

    /* --- Related grid --- */
    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1rem;
      margin-top: 2rem;
      align-items: start;
    }

    /* --- Pain card (industry challenges) --- */
    .pain-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent);
      border-radius: 6px;
      padding: 1.5rem;
    }

    .pain-card h3 {
      font-family: var(--font-display);
      font-variation-settings: 'opsz' 32, 'wght' 300, 'SOFT' 0, 'WONK' 0;
      font-weight: 300;
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: var(--text);
    }

    .pain-card p {
      font-size: 0.9rem;
      line-height: 1.55;
      color: var(--text-secondary);
    }

    /* --- "Try it with your agent" prompt — a prose callout (NOT a code block) --- */
    .prompt-block {
      position: relative;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 8px;
      margin-top: 0;
      padding: 1.5rem 1.6rem;
    }
    .prompt-text {
      font-family: var(--font-body);        /* Inter — reads like prose, not code */
      font-size: 1rem;
      line-height: 1.72;
      color: #e6e8ec;
      white-space: pre-wrap;                /* preserve the step line breaks */
      margin: 0;
      padding-right: 5rem;                  /* clear the copy button on line 1 */
    }
    .copy-btn {
      position: absolute;
      top: 1.1rem;
      right: 1.1rem;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text-secondary);
      cursor: pointer;
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      padding: 6px 14px;
      text-transform: uppercase;
      transition: border-color 0.18s, color 0.18s;
    }
    .copy-btn:hover { border-color: rgba(244,244,245,0.4); color: var(--text); }
    .copy-btn.copied { border-color: var(--accent); color: var(--accent); }

    /* platform switcher for the agent quickstart */
    .quickstart { margin-top: 1.6rem; }
    .quickstart-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 0.9rem;
    }
    .qs-tab {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text-secondary);
      cursor: pointer;
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: 0.04em;
      padding: 7px 16px;
      text-transform: uppercase;
      transition: border-color 0.18s, color 0.18s, background 0.18s;
    }
    .qs-tab:hover { color: var(--text); border-color: rgba(244,244,245,0.4); }
    .qs-tab.active { background: #fafafa; color: #000; border-color: #fafafa; }
    .qs-panel { margin-top: 0; }

    /* --- Variants used by manual pages --- */
    .why-grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-balanced h1, .hero-balanced .hero-sub { text-wrap: balance; }

    /* --- Responsive --- */
    @media (max-width: 900px) {
      .why-grid, .why-grid-2x2 { grid-template-columns: 1fr; }
      .cards-grid { grid-template-columns: 1fr; }
      .header-nav { display: none; }
      .verified-indicator { display: none; }
      .footer-inner { flex-direction: column; gap: 1.2rem; text-align: center; }
      .footer-left { flex-direction: column; }
      .data-table, .tools-table { font-size: 0.8rem; }
      .data-table th, .data-table td, .tools-table th, .tools-table td { padding: 0.6rem 0.6rem; }
    }

    @media (max-width: 600px) {
      .hero h1 { font-size: 2.2rem; }
      section { padding: 3rem 1.25rem; }
      .breadcrumbs { padding: 1rem 1.25rem 0; margin-top: 70px; }
      .prose { padding: 0 1.25rem; }
      .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
      .step-item { flex-direction: column; }
      .arch-step { flex-direction: column; gap: 0.6rem; }
    }
