/* Shared V2 identity. Page-specific styles follow this layer. */
:root {
  --paper: #f4f4f2;
  --white: #ffffff;
  --ink: #1d2734;
  --navy: #2b3b50;
  --navy-dark: #18212d;
  --muted: #626e7d;
  --line: #d9dfe5;
  --red: #bd5947;
  --green: #5274a7;
  --wash: #eaf0f6;
  --accent: #3568b8;
  --accent-dark: #28579e;
  --sans: Inter, 'Segoe UI Variable', 'Segoe UI', Arial, sans-serif;
  --serif: var(--sans);
  --radius: 8px;
}

body {
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  text-wrap: balance;
}

h1 {
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.055em;
}

h2 {
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -.042em;
}

h3 {
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -.024em;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid #4c76b7;
  outline-offset: 4px;
}

::selection {
  color: #182536;
  background: #dbe6f6;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  color: #687586;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 1px;
}

/* Brand and navigation */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom-color: var(--line);
  background: #f9f9f7;
}

.nav-row {
  min-height: 86px;
  gap: 24px;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.brand-name {
  display: block;
  line-height: 1.12;
}

.brand .brand-light {
  display: inline;
  font-weight: 500;
}

.brand-mark {
  flex: 0 0 24px;
}

.brand-mark i {
  border-color: #435266;
  background: #f9f9f7;
  border-radius: 1px;
}

.brand-mark i:nth-child(3)::before {
  border-top-color: var(--accent);
  box-shadow: 0 4px 0 var(--accent);
}

.brand-version,
.version-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 3px 6px;
  border: 1px solid #ccd6e3;
  border-radius: 5px;
  color: #48617f;
  background: #eaf0f7;
  font: 500 10px/1.2 var(--mono);
  letter-spacing: .02em;
}

.primary-nav {
  gap: 24px;
}

.primary-nav a {
  color: #435063;
  font-size: 13px;
  font-weight: 500;
  transition: color .16s ease, background .16s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--accent-dark);
  text-decoration: none;
}

.primary-nav a[aria-current="page"]:not(.nav-demo) {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 8px;
}

.primary-nav .nav-demo {
  min-height: 41px;
  gap: 14px;
  padding: 9px 14px;
  border-color: var(--ink);
  border-radius: 7px;
  color: #ffffff;
  background: var(--ink);
}

.primary-nav .nav-demo:hover {
  color: #ffffff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.menu-toggle {
  min-height: 39px;
  padding: 8px 11px;
  border-color: #ccd4de;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.2;
}

/* Reusable page and content surfaces */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: 46px;
  padding-bottom: 34px;
  background: linear-gradient(100deg, transparent 48%, rgba(53, 104, 184, .035));
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 55%;
  content: '';
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 62, 87, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 62, 87, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.page-hero h1 {
  max-width: 1020px;
  margin-bottom: 18px;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.page-hero .lede {
  max-width: 780px;
  font-size: 17px;
  line-height: 1.65;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.section-heading {
  gap: 30px;
}

.button {
  gap: 14px;
  border-radius: 7px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(24, 33, 45, .04);
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-dark {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.button-dark:hover {
  background: #344459;
  border-color: #344459;
}

.button-secondary {
  color: #35465c;
  background: #ffffff;
  border-color: #c7d0dc;
}

.button-secondary:hover {
  color: var(--accent-dark);
  background: #edf2f8;
  border-color: #aabbd2;
}

.tag, .badge {
  padding: 4px 8px;
  border-color: #d7dfe8;
  border-radius: 5px;
  color: #586b83;
  background: #f5f7fa;
  letter-spacing: .025em;
}

.card, .card-link {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(24, 33, 45, .025);
}

.card-link {
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.card-link:hover {
  border-color: #aabbd1;
  box-shadow: 0 8px 22px rgba(28, 47, 72, .06);
  transform: translateY(-2px);
}

.card h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.card p, .card-link p {
  color: var(--muted);
  font-size: 15px;
}

.callout {
  padding: 24px 27px;
  border-left-color: #6888b4;
  border-radius: 0 8px 8px 0;
  background: #eaf0f6;
}

.callout-warning {
  border-left-color: var(--red);
  background: #f6edeb;
}

.table-wrap {
  border-color: #d7dfe8;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(24, 33, 45, .025);
}

table {
  background: #ffffff;
  font-variant-numeric: tabular-nums;
}

th {
  color: #40536c;
  background: #eaf0f6;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

th, td {
  border-bottom-color: #e1e6ec;
}

tbody tr:nth-child(even) {
  background: #fafbfd;
}

caption {
  padding: 14px 20px;
  color: var(--muted);
  background: #ffffff;
  text-align: left;
}

p code, li code, td code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #354b68;
  background: #e8edf4;
}

pre, .code-block {
  border: 1px solid #324052;
  border-radius: 9px;
  color: #dfe7f2;
  background: #1b2532;
  box-shadow: 0 4px 12px rgba(24, 33, 45, .04);
}

pre code {
  color: inherit;
  font-size: 12.5px;
}

.copy-button {
  min-height: 27px;
  padding: 4px 10px;
  border-color: #4b5c72;
  border-radius: 5px;
  color: #dfe7f2;
  background: #29394d;
}

.copy-button:hover {
  background: #3b506c;
}

.prose p, .prose li {
  color: #4c5c6e;
}

.steps > li::before {
  color: var(--accent);
  font-weight: 600;
}

.document-preview {
  border-radius: 8px;
  background: #e7ecf1;
}

.faq summary, details.faq-item > summary {
  line-height: 1.5;
  font-weight: 600;
}

input[type="search"], input[type="text"], select {
  border-color: #bec9d6;
  border-radius: 7px;
  background: #ffffff;
}

input::placeholder {
  color: #738094;
}

.price-display {
  font-weight: 650;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}

/* Footer */
.site-footer {
  border-top: 1px solid #303c4d;
  color: #c3ccd9;
  background: #18212d;
}

.footer-grid h2 {
  color: #96a7bc;
  font-weight: 500;
  letter-spacing: .12em;
}

.footer-grid a {
  color: #dce4ee;
  line-height: 1.5;
}

.footer-grid a:hover {
  color: #ffffff;
  text-decoration-color: #8ea9ce;
}

.footer-grid .footer-brand {
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
}

.footer-brand .version-label,
.footer-brand .brand-version {
  color: #bbcce2;
  border-color: #435873;
  background: #26364b;
}

.footer-grid p {
  color: #edf1f7;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.45;
}

.footer-grid .small {
  color: #9cabbf;
}

.footer-bottom {
  border-top-color: #344154;
  color: #9cabbf;
  font-size: 11px;
  line-height: 1.5;
}

/* Packaged command examples: one complete command per platform. */
.cli-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 26px 0 6px;
  padding: 14px 18px;
  border: 1px solid #c7d0dc;
  border-radius: var(--radius);
  background: #ffffff;
}
.cli-picker label { margin: 0; font-size: 14px; }
.cli-picker select { width: auto; min-height: 40px; padding: 8px 12px; }
.cli-picker p { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.cli-command { margin: 16px 0 24px; }
.cli-variant + .cli-variant { margin-top: 16px; }
.cli-platform { margin: 0 0 6px; font: 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cli-variant pre { margin: 0; }
.cli-variant pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-cli-platform="windows"] .cli-variant:not([data-platform="windows"]),
html[data-cli-platform="appimage"] .cli-variant:not([data-platform="appimage"]),
html[data-cli-platform="flatpak"] .cli-variant:not([data-platform="flatpak"]) { display: none; }

@media (max-width: 1100px) {
  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .primary-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 16px 0 5px;
  }

  .nav-row {
    min-height: 76px;
    flex-wrap: wrap;
    gap: 20px;
    padding-block: 16px;
  }

  .has-js .primary-nav {
    display: none;
  }

  .has-js .primary-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .nav-row {
    min-height: 76px;
    padding-block: 16px;
  }

  .brand {
    font-size: 19px;
  }

  .primary-nav {
    gap: 16px 24px;
    padding-top: 18px;
  }
}

@media (max-width: 650px) {
  .page-hero {
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .page-hero h1 {
    font-size: clamp(36px, 8.8vw, 48px);
    letter-spacing: -.05em;
  }

  .page-hero .lede {
    font-size: 16px;
  }

  .page-hero::after {
    left: 35%;
    opacity: .7;
  }

  .card, .card-link {
    padding: 23px;
  }

  .callout {
    padding: 21px;
  }

  pre code {
    font-size: 11.5px;
  }

  .primary-nav .nav-demo {
    min-height: 44px;
    padding: 11px 13px;
  }

  .footer-grid .footer-brand {
    font-size: 19px;
  }
}

@media (max-width: 420px) {
  .nav-row {
    gap: 12px;
    padding-block: 14px;
  }

  .site-header .brand {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    flex: 1;
    min-width: 0;
    gap: 8px;
    font-size: 16px;
    white-space: normal;
  }

  .site-header .brand-name {
    min-width: 0;
    line-height: 1.12;
  }

  .site-header .brand .brand-light {
    display: block;
  }

  .site-header .brand-version {
    justify-self: start;
    min-height: 21px;
    padding: 3px 5px;
    font-size: 9px;
  }

  .menu-toggle {
    flex: 0 0 auto;
    padding-inline: 9px;
    font-size: 12px;
  }

  .menu-toggle span {
    margin-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover, .card-link:hover {
    transform: none;
  }
}

@media print {
  .page-hero {
    background: none;
  }

  .page-hero::after {
    display: none;
  }

  .card, .card-link, .table-wrap, pre, .code-block {
    box-shadow: none;
  }
}
