/*
 * NuGet LL product site.
 * Follows the OS colour scheme (no toggle): light tokens by default, dark tokens
 * under prefers-color-scheme. NuGet LL purple accent (.NET brand purple). Plain CSS, no build step.
 */

:root {
  color-scheme: light;

  /* Brand */
  --accent: #512bd4;
  --accent-hover: #4a22c4;
  --accent-ink: #ffffff;
  --accent-text: #512bd4;
  --accent-soft: rgba(81, 43, 212, 0.12);
  --accent-softer: rgba(81, 43, 212, 0.06);
  --accent-line: rgba(81, 43, 212, 0.32);

  /* Surfaces */
  --bg: #fafbfd;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --surface-3: #eef3f8;
  --code-bg: #f4f7fa;
  --topbar: rgba(250, 251, 253, 0.86);
  --dot: #d3dce5;

  /* Text */
  --ink: #0f1c28;
  --text: #253442;
  --muted: #627384;

  /* Lines */
  --border: #dde5ec;
  --border-strong: #c7d3de;

  /* Update severities (same palette as the extension) */
  --patch: #0e7a43;
  --minor: #a35f00;
  --major: #b42318;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 40, 0.05);
  --shadow: 0 1px 2px rgba(15, 28, 40, 0.04), 0 8px 24px -12px rgba(15, 28, 40, 0.14);
  --shadow-lg: 0 2px 4px rgba(15, 28, 40, 0.04), 0 24px 48px -20px rgba(15, 28, 40, 0.24);
  --hero-glow: rgba(81, 43, 212, 0.09);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --accent: #8b6cf6;
    --accent-hover: #b29cfb;
    --accent-ink: #140830;
    --accent-text: #b29cfb;
    --accent-soft: rgba(139, 108, 246, 0.14);
    --accent-softer: rgba(139, 108, 246, 0.07);
    --accent-line: rgba(139, 108, 246, 0.34);

    --bg: #0d1117;
    --surface: #121923;
    --surface-2: #0f1620;
    --surface-3: #16202d;
    --code-bg: #0b1119;
    --topbar: rgba(13, 17, 23, 0.82);
    --dot: #263347;

    --ink: #f6f8fb;
    --text: #d7dfea;
    --muted: #96a3b3;

    --border: rgba(139, 108, 246, 0.16);
    --border-strong: rgba(139, 108, 246, 0.34);

    --patch: #62d39a;
    --minor: #e7bd57;
    --major: #f17a73;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 28px 56px -24px rgba(0, 0, 0, 0.75);
    --hero-glow: rgba(139, 108, 246, 0.14);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: rgba(139, 108, 246, 0.6) var(--bg);
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
b { color: var(--ink); font-weight: 600; }
code, pre, kbd { font-family: var(--mono); font-variant-ligatures: none; }
:not(pre) > code {
  font-size: 0.84em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-text);
  word-break: break-word;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.ic {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Top bar ---------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-softer); }
.nav .nav-gh { margin-left: 8px; border: 1px solid var(--border); background: var(--surface); }
.nav .nav-gh:hover { border-color: var(--border-strong); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .ic { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.topbar.open .nav-toggle .i-menu { display: none; }
.topbar.open .nav-toggle .i-close { display: block; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(139, 108, 246, 0.25), 0 8px 24px -14px rgba(139, 108, 246, 0.6); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--border-strong); color: var(--ink); background: var(--surface-3); }
.btn .ic { width: 17px; height: 17px; }
.btn-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.15; }
.btn-stack small { color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.2; }
.btn-primary .btn-stack small { color: inherit; opacity: 0.75; }

/* ---- Type helpers ----------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-text); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sm);
}
.pill b { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 12px; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section.tint { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---- Hero ------------------------------------------------------------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, var(--hero-glow), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent-text); display: block; }
.hero .lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text); max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks .ic { width: 16px; height: 16px; color: var(--accent-text); stroke-width: 2.4; }

/* ---- Product mock ----------------------------------------------------- */
.mock {
  position: relative;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 13px; color: var(--text);
  min-width: 0;
}
.mock-chrome {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.mock-address {
  flex: 1; max-width: 300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg);
  color: var(--muted); font: 500 11.5px var(--mono);
  white-space: nowrap; overflow: hidden; min-width: 0;
}
.mock-address .ic { width: 12px; height: 12px; color: var(--accent-text); }
.mock-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); height: 452px; }

.mock-side { display: flex; flex-direction: column; padding: 12px 8px; border-right: 1px solid var(--border); background: var(--surface-2); min-width: 0; }
.mock-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 10px; color: var(--ink); font-weight: 700; font-size: 13px; }
.mock-brand img { width: 20px; height: 20px; }
.mock-label { padding: 10px 8px 5px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.side-nav { display: grid; gap: 2px; }
.side-nav button {
  display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px;
  border: 0; border-radius: 6px; background: none; color: var(--text);
  font-size: 13px; text-align: left; cursor: pointer; white-space: nowrap;
}
.side-nav button:hover { background: var(--surface-3); }
.side-nav .ic { width: 15px; height: 15px; color: var(--muted); }
.side-nav [aria-selected="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.side-nav [aria-selected="true"] .ic { color: var(--accent-text); }
.side-nav .count { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font: 600 10.5px/16px var(--mono); text-align: center; }
.side-nav [aria-selected="true"] .count { background: var(--surface); }
.mock-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 8px 2px; border-top: 1px solid var(--border); font-size: 11.5px; }
.mock-foot b { font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.dot.on { background: var(--patch); box-shadow: 0 0 0 3px color-mix(in srgb, var(--patch) 18%, transparent); }

.mock-main { position: relative; min-width: 0; padding: 14px; overflow: hidden; }
.pane { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.pane[hidden] { display: none; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.pane-head b { font-size: 14px; }
.pane-head span { color: var(--muted); font-size: 12px; }

.mock-search {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: 7px; background: var(--bg); color: var(--muted);
}
.mock-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mock-search .ic { width: 15px; height: 15px; }
.mock-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 500 13px var(--font); }

.pkg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.pkg-list > li > button[data-pkg],
.pkg-list.static > li {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0;
  padding: 7px 8px; border: 1px solid transparent; border-radius: 7px;
  background: none; color: inherit; text-align: left;
}
.pkg-list > li > button[data-pkg] { cursor: pointer; }
.pkg-list > li > button[data-pkg]:hover { background: var(--surface-3); }
.pkg-list > li > button[data-pkg].sel { background: var(--accent-softer); border-color: var(--accent-line); }
.pkg-list .pkg-empty { padding: 18px 8px; color: var(--muted); text-align: center; }
.pkg-ic { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent-text); }
.pkg-ic .ic { width: 15px; height: 15px; }
.pkg-ic.lg { width: 40px; height: 40px; border-radius: 9px; }
.pkg-ic.lg .ic { width: 20px; height: 20px; }
.pkg-meta { flex: 1; min-width: 0; display: grid; }
.pkg-meta b, .pkg-meta i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkg-meta b { font-size: 13px; }
.pkg-meta i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.pkg-meta strong { color: var(--accent-text); font-weight: 600; }
.pkg-ver { flex: 0 0 auto; color: var(--accent-text); font: 500 11.5px var(--mono); }
.badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; font: 700 10px/16px var(--font); letter-spacing: 0.03em; text-transform: uppercase; }
.badge.patch { color: var(--patch); background: color-mix(in srgb, var(--patch) 14%, transparent); }
.badge.minor { color: var(--minor); background: color-mix(in srgb, var(--minor) 14%, transparent); }
.badge.major { color: var(--major); background: color-mix(in srgb, var(--major) 14%, transparent); }

.row-btn {
  flex: 0 0 auto; height: 26px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.row-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.row-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.row-btn.primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.row-btn:disabled { opacity: 0.5; cursor: default; }

.install-card {
  margin-top: auto; display: grid; gap: 10px; padding: 12px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2);
}
.install-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.install-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-select { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; }
.mock-select select {
  appearance: none; -webkit-appearance: none;
  height: 28px; padding: 0 28px 0 10px; border-radius: 6px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  font: 500 12px var(--mono); cursor: pointer;
}
.mock-select .ic { position: absolute; right: 8px; width: 13px; height: 13px; color: var(--muted); pointer-events: none; }
.proj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-chips button {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer;
}
.proj-chips button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.proj-chips [aria-pressed="true"] { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-softer); }
.proj-chips [aria-pressed="true"]::before { background: currentColor; }
.mock-primary {
  height: 34px; border: 0; border-radius: 7px; background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.mock-primary:hover { background: var(--accent-hover); }
.mock-primary:disabled { opacity: 0.55; cursor: default; }
.mock-primary.done { background: var(--patch); color: #fff; }

.toast {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-lg); font-size: 12px; color: var(--text);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--patch); }
.toast.show { opacity: 1; transform: none; }

/* ---- Command blocks --------------------------------------------------- */
.cmd {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--code-bg); min-width: 0;
}
.cmd pre { flex: 1; min-width: 0; margin: 0; padding: 13px 0 13px 14px; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.cmd pre code { white-space: pre-wrap; overflow-wrap: break-word; }
.cmd .prompt { color: var(--accent-text); user-select: none; -webkit-user-select: none; }
.copy-btn {
  flex: 0 0 auto; margin: 7px 7px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: 600 12.5px var(--font); cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.copy-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.copy-btn .ic { width: 15px; height: 15px; }
.copy-btn .i-check { display: none; }
.copy-btn.done { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-softer); }
.copy-btn.done .i-copy { display: none; }
.copy-btn.done .i-check { display: block; stroke-width: 2.4; }

/* ---- Steps & notes ---------------------------------------------------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 18px;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  grid-row: span 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 700;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin-top: 4px; }
.step .cmd { margin-top: 14px; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.note { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.note h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.note h3 .ic { color: var(--accent-text); }
.note p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---- Features --------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.card .icon .ic { width: 20px; height: 20px; }
.card h3 { margin-top: 16px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---- Library Lens split ---------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split .section-head { margin-bottom: 0; }
.bullets { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets .ic { margin-top: 4px; color: var(--accent-text); stroke-width: 2.4; width: 16px; height: 16px; }

.lens { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.lens-head { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--border); }
.lens-head > div { flex: 1; min-width: 0; display: grid; }
.lens-head b { font-size: 17px; }
.lens-head small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lens-ver { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font: 600 12px var(--mono); }
.lens-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--border); }
.lens-stats div { padding: 14px 18px; }
.lens-stats div + div { border-left: 1px solid var(--border); }
.lens-stats dt { color: var(--muted); font-size: 12px; }
.lens-stats dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; font-size: 17px; }
.lens-block { padding: 14px 18px; }
.lens-block + .lens-block { border-top: 1px solid var(--border); }
.lens-block h4 { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lens-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.lens-rows li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; background: var(--surface-2); font-size: 14px; }
.lens-rows span { flex: 1; color: var(--ink); font-weight: 500; }
.lens-rows code { background: none; padding: 0; color: var(--text); }
.lens-rows em { font-style: normal; padding: 0 6px; border-radius: 4px; color: var(--minor); background: color-mix(in srgb, var(--minor) 14%, transparent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.lens-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lens-tags span { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); font: 500 12px var(--mono); }

/* ---- Privacy ---------------------------------------------------------- */
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---- CTA -------------------------------------------------------------- */
.section-cta { padding-top: clamp(48px, 6vw, 80px); }
.cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-softer) 70%), var(--surface);
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); }
.cta p { margin-top: 8px; color: var(--muted); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Footer ----------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 40px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer .brand { font-size: 16px; }
.footer .brand img { width: 26px; height: 26px; }
.footer p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 380px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.footer-links a:hover { color: var(--accent-text); }
.footer-links .ic { width: 15px; height: 15px; color: var(--muted); }

/* ---- Inner pages ------------------------------------------------------ */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.page-hero h1 { margin-top: 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 640px; }
.page-body { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.narrow { max-width: 820px; }
.prose-card { padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.prose-card + .prose-card { margin-top: 16px; }
.prose-card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.prose-card h2 .ic { color: var(--accent-text); width: 20px; height: 20px; }
.prose-card p { margin-top: 10px; color: var(--text); }
.prose-card.callout { border-color: var(--accent-line); background: linear-gradient(var(--accent-softer), var(--accent-softer)), var(--surface); }

.hidden, [hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- Reveal ----------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero .lede { max-width: 640px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .topbar.open .nav { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .nav-gh { margin: 6px 0 0; justify-content: center; }
  .notes, .privacy-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .hero .actions .btn, .cta .actions .btn { flex: 1 1 auto; }
  .step { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .step::before { grid-row: auto; }
  /* The side nav folds into a tab strip above the pane. */
  .mock-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 500px; }
  .mock-side { flex-direction: row; align-items: center; gap: 4px; padding: 6px; border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .mock-brand, .mock-label, .mock-foot { display: none; }
  .side-nav { display: flex; gap: 4px; }
  .side-nav [aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .mock-main { padding: 12px; }
  .pkg-meta i { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .lens-stats div { padding: 12px; }
  .copy-btn span { display: none; }
  .copy-btn { padding: 0 8px; }
  .prose-card { padding: 20px 18px; }
}
