/* ============================================================
   SNMP Taskbar — Site Stylesheet
   No external dependencies. System fonts only.
   ============================================================ */

/* ── 1. Design Tokens ────────────────────────────────────── */
:root {
  color-scheme: light dark;

  /* Colours — light */
  --bg:               #ffffff;
  --bg-elevated:      #f5f5f7;
  --bg-subtle:        #f0f0f5;
  --bg-code:          #eef0f5;
  --text:             #1d1d1f;
  --text-secondary:   #6e6e73;
  --text-tertiary:    #aeaeb2;
  --accent:           #0066cc;
  --accent-hover:     #0055aa;
  --accent-subtle:    #e8f0fb;
  --border:           #d2d2d7;
  --border-subtle:    #e8e8ed;
  --success:          #248a3d;
  --warning:          #9d6c00;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 16px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-pop: 0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.10);

  /* Radii */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;

  /* Layout */
  --max-w:    1080px;
  --nav-h:    64px;
  --gap:      24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:               #000000;
    --bg-elevated:      #1c1c1e;
    --bg-subtle:        #2c2c2e;
    --bg-code:          #1c1c1e;
    --text:             #f5f5f7;
    --text-secondary:   #98989d;
    --text-tertiary:    #636366;
    --accent:           #2997ff;
    --accent-hover:     #5aafff;
    --accent-subtle:    #0a2040;
    --border:           #38383a;
    --border-subtle:    #2c2c2e;
    --success:          #30d158;
    --warning:          #ffd60a;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.40);
    --shadow-md:  0 4px 16px rgba(0,0,0,.50);
    --shadow-lg:  0 16px 40px rgba(0,0,0,.60);
    --shadow-pop: 0 20px 60px rgba(0,0,0,.70);
  }
}

/* ── 2. Reset ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }
hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}

/* ── 3. Skip Link ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--r-md);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── 4. Layout ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ── 5. Focus Styles ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── 6. Header / Nav ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background-color: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background-color: rgba(0,0,0,0.85);
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--text); text-decoration: none; }
.site-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 22%;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-md);
  transition: color 0.15s, background-color 0.15s;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--text);
  background-color: var(--bg-elevated);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background-color: var(--accent-subtle);
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--accent);
  color: #fff !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--r-xl) !important;
}
.nav-cta:hover {
  background-color: var(--accent-hover) !important;
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  border-radius: var(--r-md);
}
.nav-toggle:hover { background: var(--bg-elevated); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ── 7. Hero ─────────────────────────────────────────────── */
.hero {
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.hero-app-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 1.5rem;
  border-radius: 22%;
  box-shadow: var(--shadow-md);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 auto 2rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: background-color 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-elevated);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-xl);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background-color 0.15s, transform 0.1s;
}
.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ── 8. Hero Product Capture ─────────────────────────────── */
.hero-product {
  width: 100%;
  max-width: 800px;
  margin: 0;
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.hero-product figcaption {
  margin-top: 0.875rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
}

/* ── 9. Features Grid ────────────────────────────────────── */
.features {
  padding: 5rem 0;
  background-color: var(--bg-elevated);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-subtle);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── 10. Privacy Callout ─────────────────────────────────── */
.privacy-callout {
  padding: 5rem 0;
}

.privacy-callout-inner {
  background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.privacy-callout-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}

.privacy-callout-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.privacy-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.privacy-badge-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.875rem;
}

/* ── 11. Requirements Band ───────────────────────────────── */
.requirements {
  padding: 4rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.req-item {
  text-align: center;
  padding: 1.25rem;
}

.req-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}

.req-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ── 12. Content / Doc Pages ─────────────────────────────── */
.doc-page {
  padding: 4rem 0;
  flex: 1;
}

.doc-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.doc-header .section-label {
  margin-bottom: 0.5rem;
}

.doc-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.doc-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 620px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Table of Contents */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  max-height: calc(100vh - var(--nav-h) - 4rem);
  overflow-y: auto;
  padding: 0;
}

.toc-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.5rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
  line-height: 1.4;
}
.toc-list a:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  text-decoration: none;
}
.toc-list .toc-sub a {
  padding-left: 1.25rem;
  font-size: 0.75rem;
}

/* Doc content */
.doc-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.doc-content h2:first-child { margin-top: 0; }

.doc-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.doc-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.doc-content p strong {
  color: var(--text);
}

.doc-content ul,
.doc-content ol {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.doc-content li strong {
  color: var(--text);
}

/* ── 13. Tables ──────────────────────────────────────────── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--bg-subtle);
}

th {
  text-align: left;
  padding: 0.6875rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

td strong, td code {
  color: var(--text);
}

tr:last-child td { border-bottom: none; }

tbody tr:hover { background: var(--bg-subtle); }

/* ── 14. Code Blocks ─────────────────────────────────────── */
pre {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: "SF Mono", "Fira Mono", "Cascadia Code", Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text);
  margin: 1.25rem 0;
}

code {
  font-family: "SF Mono", "Fira Mono", "Cascadia Code", Menlo, monospace;
  font-size: 0.85em;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 0.1em 0.4em;
  color: var(--text);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* ── 15. Callout Boxes ───────────────────────────────────── */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-subtle);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.callout strong { color: var(--text); }

.callout-warning {
  border-left-color: var(--warning);
  background: rgba(253, 214, 10, 0.08);
}

/* ── 16. Support Contact Placeholder ────────────────────── */
.contact-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  text-align: center;
  background: var(--bg-elevated);
  margin: 2rem 0;
}
.contact-placeholder-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.contact-placeholder-token {
  font-family: "SF Mono", "Fira Mono", Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.4rem 0.8rem;
  display: inline-block;
  margin: 0.5rem 0;
}
.contact-placeholder-note {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

/* ── 17. Quick Start Steps ───────────────────────────────── */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}
.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  min-width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.steps li strong { color: var(--text); }

/* ── 18. Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}

.footer-brand-name .site-logo-icon {
  width: 22px;
  height: 22px;
}

.footer-brand-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  max-width: 260px;
}

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

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link-group-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.footer-link-group a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-link-group a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

/* ── 19. 404 Page ────────────────────────────────────────── */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 120px);
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.error-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 2rem;
}

.error-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 20. Screenshots / Gallery ───────────────────────────── */
.screenshots-section {
  padding: 4rem 0;
}

.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.screenshot-img {
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}

.screenshots-gallery figure {
  margin: 0;
}

.screenshots-gallery figcaption {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 720px) {
  .screenshots-gallery {
    grid-template-columns: 1fr;
  }
}

/* ── 21. Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { gap: 2.5rem; }
  .hero { padding: 3.5rem 0 3rem; }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    max-height: none;
    background: var(--bg-elevated);
    border-radius: var(--r-lg);
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-subtle);
  }

  .privacy-callout-inner {
    grid-template-columns: 1fr;
  }

  .req-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-toggle { display: flex; }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-title { font-size: 1.875rem; }

  .footer-top {
    flex-direction: column;
  }

  .privacy-callout-inner { padding: 2rem 1.5rem; }

  .req-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-app-icon {
    width: 88px;
    height: 88px;
  }
}

/* ── 22. Print ───────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .toc,
  .nav-toggle,
  .hero-product {
    display: none !important;
  }
  body { font-size: 12pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
