/* Diffline website. Tokens follow the product's review page (packages/review-ui/styles.css):
   light by default, dark when the system asks for it. Blue is for actions and links, violet for agents. */

:root {
  color-scheme: light;
  --ground: #F2F4F7;
  --sheet: #FFFFFF;
  --sheet-2: #F7F8FA;
  --sheet-3: #ECEFF3;
  --ink: #151922;
  --ink-2: #4A5263;
  --ink-3: #626B7E;
  --line: #E0E4EA;
  --line-2: #CBD1DB;
  --control-line: #8A93A5;
  --blue: #2A52D6;
  --blue-2: #1D3FB5;
  --on-blue: #FFFFFF;
  --blue-soft: #E9EEFD;
  --blue-line: #AFC0F4;
  --violet: #6A3BC2;
  --violet-bg: #F0EAFB;
  --violet-line: #CDBAF3;
  --add: #1A7A3A;
  --add-bg: #EAF6EE;
  --del: #B42318;
  --del-bg: #FDEEEC;
  --ok: #1A7A3A;
  --ok-bg: #E4F4E9;
  --t-k: #6A3BC2;
  --mark: #2A52D6;
  --shadow-1: 0 1px 2px rgb(20 26 40 / 0.06);
  --shadow-2: 0 1px 2px rgb(20 26 40 / 0.05), 0 18px 50px rgb(20 26 40 / 0.12);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-chip: 4px;
  --r-btn: 7px;
  --r-panel: 7px;
  --r-card: 12px;
  font-family: var(--sans);
  background: var(--ground);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0D0F13;
    --sheet: #14171D;
    --sheet-2: #191D24;
    --sheet-3: #21262F;
    --ink: #E7EAF0;
    --ink-2: #A9B0BE;
    --ink-3: #8A93A5;
    --line: #242A34;
    --line-2: #333B48;
    --control-line: #6B7488;
    --blue: #8AA3FF;
    --blue-2: #A9BBFF;
    --on-blue: #0B1022;
    --blue-soft: rgb(138 163 255 / 0.14);
    --blue-line: rgb(138 163 255 / 0.42);
    --violet: #C3A2FF;
    --violet-bg: rgb(195 162 255 / 0.12);
    --violet-line: rgb(195 162 255 / 0.4);
    --add: #6CCB85;
    --add-bg: rgb(70 180 105 / 0.11);
    --del: #FF8B82;
    --del-bg: rgb(240 90 80 / 0.11);
    --ok: #6CCB85;
    --ok-bg: rgb(70 180 105 / 0.14);
    --t-k: #C3A2FF;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 50px rgb(0 0 0 / 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
}

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

a:hover {
  color: var(--blue);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

p {
  color: var(--ink-2);
  line-height: 1.7;
}

strong {
  font-weight: 620;
  color: var(--ink);
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  color: var(--ink);
}

h2 {
  font-size: clamp(36px, 4.05vw, 56px);
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 620;
  letter-spacing: -0.01em;
}

code, pre {
  font-family: var(--mono);
}

.container {
  width: min(1360px, calc(100% - 80px));
  margin-inline: auto;
}

/* Header and brand */

.site-header {
  max-width: 1280px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 680;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.brand-mark rect {
  fill: var(--mark);
}

.brand-mark path, .brand-mark circle {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.site-header nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 520;
  color: var(--ink-2);
}

.site-header nav a:hover, .site-header nav a[aria-current=page] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The repository link: an icon button the height of the small button next to it. */
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  background: var(--sheet);
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
  transition: color .15s, border-color .15s;
}

.github-link:hover {
  color: var(--ink);
  border-color: var(--control-line);
}

.github-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  display: block;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--blue);
  color: var(--on-blue);
  border: 1px solid var(--blue);
  border-radius: var(--r-btn);
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 620;
  box-shadow: var(--shadow-1);
  transition: background-color .15s, border-color .15s, transform .15s;
}

.button:hover {
  background: var(--blue-2);
  border-color: var(--blue-2);
  color: var(--on-blue);
  transform: translateY(-1px);
}

.button.small {
  padding: 9px 16px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 560;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Hero */

.hero {
  text-align: center;
  padding-top: 24px;
}

.hero h1 {
  font-size: clamp(46px, 5.3vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero h1 span {
  color: var(--blue);
}

.hero-description {
  font-size: 19px;
  max-width: 1040px;
  margin: 26px auto 28px;
  line-height: 1.6;
  text-wrap: balance;
}

.explore {
  display: flex;
  width: max-content;
  margin: 18px auto 0;
  color: var(--blue);
}

.hero-meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: 22px 0 32px;
}

.hero-meta > span:not([data-editor]) {
  margin: 0 10px;
}

/* Editor picker: the page speaks to VS Code or Cursor users. Both versions of each editor-specific line are in the
   HTML (data-editor). A script in <head> sets html.js, and html.editor-cursor for Cursor, before the page renders, and
   the selected segment follows that class too, so nothing flashes. Without JavaScript the page shows VS Code and
   the pickers stay hidden. */

html:not(.editor-cursor) [data-editor=cursor],
html.editor-cursor [data-editor=vscode],
html:not(.js) .editor-picker {
  display: none;
}

.editor-picker {
  display: flex;
  width: max-content;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sheet-3);
}

.editor-picker label {
  position: relative;
  cursor: pointer;
}

.editor-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.editor-picker span {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 620;
  white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}

.editor-picker label:hover span {
  color: var(--ink);
}

html:not(.editor-cursor) .editor-picker input[value=vscode] + span,
html.editor-cursor .editor-picker input[value=cursor] + span {
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
}

.editor-picker input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hero .editor-picker {
  margin: 0 auto 28px;
}

.install .editor-picker {
  margin-bottom: 28px;
}

/* Illustrative editor in the hero */

.editor-preview {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--sheet);
  box-shadow: var(--shadow-2);
}

.window-bar {
  height: 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--sheet-2);
  color: var(--ink-3);
  font-size: 11px;
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6f68;
}

.traffic i:nth-child(2) {
  background: #f5c65b;
}

.traffic i:nth-child(3) {
  background: #69ce78;
}

.editor-body {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 480px;
}

.editor-sidebar {
  border-right: 1px solid var(--line);
  background: var(--sheet-2);
  padding: 24px 12px;
  position: relative;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  margin: 0 14px 24px;
  color: var(--ink);
}

.sidebar-caption {
  font-size: 10px;
  color: var(--ink-3);
  margin: 0 14px 12px;
  letter-spacing: .05em;
}

.pr-row {
  padding: 12px 10px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-left: 2px solid transparent;
  border-radius: var(--r-chip);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-2);
}

.pr-row.selected {
  background: var(--blue-soft);
  border-left-color: var(--blue);
  color: var(--ink);
}

.pr-symbol {
  font-size: 20px;
}

.pr-row small {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 3px;
}

.sidebar-note {
  font-size: 11px;
  color: var(--ink-3);
  position: absolute;
  bottom: 25px;
  left: 26px;
}

.review-preview {
  padding: 22px 18px 18px;
  min-width: 0;
}

.pr-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  flex-wrap: wrap;
}

.muted {
  color: var(--ink-3);
}

.open-state {
  font-size: 10px;
  font-weight: 650;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 2px 8px;
  border-radius: 12px;
}

.pr-detail {
  font-size: 10px;
  color: var(--ink-3);
  margin: 5px 0 16px;
}

.preview-tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-3);
  margin: 0 -18px;
  padding: 0 18px;
}

.preview-tabs span {
  padding: 0 3px 12px;
}

.preview-tabs .active {
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 620;
}

/* The guide's briefing is agent output: violet. */
.briefing {
  border: 1px solid var(--violet-line);
  background: var(--violet-bg);
  border-radius: var(--r-panel);
  padding: 13px 15px;
  margin: 15px 0 12px;
}

.mini-label {
  font-size: 10px;
  color: var(--ink-3);
}

.briefing .mini-label {
  color: var(--violet);
  font-weight: 650;
}

.briefing p {
  font-size: 13px;
  color: var(--ink);
  margin: 5px 0 2px;
}

.briefing small {
  font-size: 10px;
  color: var(--ink-2);
}

.preview-workspace {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px;
}

.preview-chapters {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 12px 8px;
}

.preview-chapters > .mini-label {
  margin: 0 6px;
}

.preview-chapters > div {
  padding: 10px 7px;
  font-size: 10px;
  color: var(--ink-3);
  border-radius: var(--r-chip);
}

.preview-chapters strong {
  font-size: 11px;
  color: var(--ink);
  padding-left: 5px;
}

.preview-chapters small {
  display: block;
  padding-left: 22px;
  margin-top: 5px;
  font-size: 9px;
}

.preview-chapters .selected {
  background: var(--blue-soft);
}

.preview-code {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  min-width: 0;
  overflow: hidden;
  background: var(--sheet);
}

.file-bar {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--sheet-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}

.code-lines {
  padding: 9px 0;
  overflow: auto;
  color: var(--ink);
}

.code-lines > div {
  display: flex;
  white-space: pre;
  line-height: 1.85;
  font-size: 11px;
}

.code-lines > div > span {
  width: 42px;
  text-align: right;
  padding-right: 13px;
  flex-shrink: 0;
  color: var(--ink-3);
  user-select: none;
}

.code-lines code {
  padding-right: 20px;
}

.code-lines b {
  color: var(--t-k);
  font-weight: 400;
}

.added {
  background: var(--add-bg);
}

.added code {
  color: var(--ink);
}

.added > span {
  color: var(--add) !important;
}

.removed {
  background: var(--del-bg);
}

.removed > span {
  color: var(--del) !important;
}

/* Agent findings: violet, as in the product. */
.preview-finding {
  margin: 5px 12px 12px;
  padding: 10px 12px;
  border: 1px solid var(--violet-line);
  background: var(--violet-bg);
  border-radius: var(--r-panel);
}

.finding-label {
  color: var(--violet);
  font: 650 10px var(--sans);
  letter-spacing: .03em;
  display: block;
  margin-bottom: 7px;
}

.preview-finding strong {
  display: block;
  font-size: 11px;
}

.preview-finding p {
  font-size: 10px;
  margin-top: 3px;
}

.editor-preview figcaption {
  font-size: 11px;
  text-align: center;
  padding: 9px;
  color: var(--ink-3);
  background: var(--sheet-2);
  border-top: 1px solid var(--line);
}

/* Examples */

.examples {
  padding-top: 140px;
}

.section-intro {
  padding: 0 35px;
}

.section-intro p {
  max-width: 680px;
  font-size: 19px;
  margin-top: 24px;
}

.example-frame {
  margin-top: 35px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--sheet);
  box-shadow: var(--shadow-1);
}

.example-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--sheet-2);
  gap: 10px;
  padding: 0 15px;
}

.example-toolbar [role=tablist] {
  display: flex;
  gap: 18px;
}

.example-toolbar button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 560;
  padding: 21px 9px 18px;
  white-space: nowrap;
}

.example-toolbar button[aria-selected=true] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.example-toolbar button:hover {
  color: var(--ink);
}

.example-caption {
  color: var(--ink-3);
  font: 11px var(--mono);
  white-space: nowrap;
}

.example-caption > span {
  font-family: var(--sans);
}

#example-panel {
  min-height: 390px;
}

.example-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 390px;
}

.example-side {
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}

.chapter-button {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 15px;
  border: 0;
  background: none;
  color: var(--ink-3);
  padding: 15px 10px;
  font-size: 14px;
  border-left: 2px solid var(--line);
}

.chapter-button.selected {
  border-left-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.chapter-button strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 620;
}

.chapter-button p {
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.55;
}

.chapter-button .number {
  font-family: var(--mono);
  font-size: 12px;
  padding-top: 3px;
}

.example-main {
  min-width: 0;
  padding-bottom: 20px;
}

.example-main .code-lines {
  padding-top: 15px;
}

.example-main .code-lines > div {
  font-size: 13px;
  line-height: 2;
}

.example-main .code-lines > div > span {
  width: 50px;
}

.example-explainer {
  font-size: 13px;
  margin: 22px 20px 0;
  max-width: 600px;
}

.feature-notes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin: 48px 35px 0;
}

.feature-notes article::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--blue);
  margin-bottom: 22px;
}

.feature-notes p {
  font-size: 15px;
  margin: 12px 0 15px;
}

.feature-notes a {
  font-size: 14px;
  font-weight: 560;
  color: var(--blue);
}

/* Trust */

.trust {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 90px;
  padding: 140px 35px 85px;
}

.trust p {
  font-size: 18px;
  margin-top: 26px;
}

.trust p a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust .small-print, .install .small-print {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 17px;
  line-height: 1.7;
}

.trust .text-link, .install .text-link {
  color: var(--blue);
  margin-top: 21px;
  font-size: 14px;
}

.data-flow {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--sheet);
  box-shadow: var(--shadow-1);
  padding: 20px;
  align-self: center;
}

.data-flow > div {
  display: grid;
  grid-template-columns: 1fr 20px 1.3fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--ink-3);
}

.data-flow > div > span {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--sheet-2);
  color: var(--ink);
  padding: 20px 13px;
  font-size: 14px;
  min-height: 76px;
  display: flex;
  align-items: center;
}

/* The agent CLIs are the agent-related node: violet. */
.data-flow > div:first-child > span:last-child {
  border-color: var(--violet-line);
  background: var(--violet-bg);
  color: var(--violet);
  font-weight: 620;
}

.data-flow p {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
  text-align: center;
}

/* Install */

.install {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 90px;
  padding: 80px 35px;
}

.install h2 {
  font-size: 46px;
}

.install > div > p {
  font-size: 18px;
  margin-top: 26px;
}

.install-steps {
  display: grid;
  gap: 26px;
}

.install-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 20px;
}

.step-number {
  border: 1px solid var(--control-line);
  color: var(--ink-2);
  background: var(--sheet);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 12px var(--mono);
}

.install-step h3, .install-alt h3 {
  font-size: 16px;
  margin-top: 6px;
}

.install-step p, .install-alt p {
  font-size: 14px;
  margin-top: 7px;
}

/* Step 01: the store listing for the chosen editor. */
.install .button.store {
  margin-top: 14px;
  font-size: 15px;
  padding: 11px 18px;
}

.install .button.store .icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.install-step .button.store + p {
  margin-top: 16px;
}

/* The alternative to the stores: the .vsix behind the download form. */
.install-alt {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--sheet-2);
  padding: 22px 24px 24px;
  scroll-margin-top: 24px;
}

.install-alt h3 {
  margin-top: 0;
}

.install-alt .download-meta + p {
  margin-top: 18px;
}

.install a:not(.text-link):not(.button) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-form {
  margin-top: 14px;
}

.download-row {
  display: flex;
  gap: 8px;
}

.download-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--control-line);
  border-radius: var(--r-btn);
  padding: 0 14px;
}

.download-row input::placeholder {
  color: var(--ink-3);
}

.download {
  font-size: 15px;
  flex: none;
}

.download[disabled] {
  opacity: .65;
  cursor: progress;
  transform: none;
}

.download-updates {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.download-updates input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

/* Off until an email is typed (app.js). */
.download-updates:has(input:disabled) {
  color: var(--ink-3);
}

.download-updates input:disabled {
  cursor: not-allowed;
}

/* A field people never see; bots that fill it are refused. */
.download-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.install .download-status:empty {
  display: none;
}

.install .download-status {
  margin-top: 10px;
  color: var(--ok);
}

.install .download-status.error {
  color: var(--del);
}

@media (max-width: 520px) {
  .download-row {
    flex-direction: column;
  }

  .install .button.store {
    width: 100%;
  }

  .install-alt {
    padding: 18px 16px 20px;
  }

  .download-row input {
    padding: 12px 14px;
  }
}

.download .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

.download-meta {
  display: block;
  font-size: 13px !important;
  color: var(--ink-3) !important;
  margin-top: 10px !important;
}

.install pre {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 12px 16px;
  background: var(--sheet);
  line-height: 1.7;
  margin: 10px 0 0;
}

.command {
  border: 1px solid var(--line-2);
  border-radius: var(--r-panel);
  display: flex;
  margin-top: 12px;
  align-items: center;
  background: var(--sheet);
  overflow: hidden;
}

.command code {
  font-size: 12px;
  color: var(--ink);
  padding: 13px;
  overflow-wrap: anywhere;
  min-width: 0;
  line-height: 1.6;
  flex: 1;
}

.command button, .demo-button {
  border: 1px solid var(--control-line);
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--r-btn);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 620;
}

.command button {
  border-width: 0 0 0 1px;
  border-color: var(--line-2);
  border-radius: 0;
  align-self: stretch;
  background: var(--sheet-2);
}

.command button:hover, .demo-button:hover {
  background: var(--sheet-3);
}

.install-steps > .requirements {
  font-size: 13px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin: 0;
}

.install-steps > .requirements code, .install-step p code, .install-alt p code {
  font-size: .92em;
  color: var(--ink);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  display: flex;
  align-items: center;
  gap: 27px;
  color: var(--ink-3);
  font-size: 13px;
}

.site-footer a:not(.brand) {
  color: var(--ink-2);
}

.site-footer a:not(.brand):hover {
  color: var(--blue);
}

.site-footer .brand {
  font-size: 18px;
}

.site-footer .brand-mark {
  width: 26px;
  height: 26px;
}

.footer-end {
  margin-left: auto;
}

/* Interactive example components (rendered by app.js) */

.finding-box {
  margin: 20px;
  border: 1px solid var(--violet-line);
  background: var(--violet-bg);
  border-radius: var(--r-card);
  padding: 18px;
}

.finding-box h3 {
  font-size: 16px;
}

.finding-box p {
  font-size: 13px;
  margin: 10px 0;
  color: var(--ink-2);
}

.finding-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.demo-button.primary {
  background: var(--blue);
  color: var(--on-blue);
  border-color: var(--blue);
}

.demo-button.primary:hover {
  background: var(--blue-2);
  border-color: var(--blue-2);
}

.finding-actions select {
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--control-line);
  padding: 8px;
  font-size: 13px;
  border-radius: var(--r-btn);
}

.decision-state {
  font-size: 13px;
  color: var(--blue);
  margin-top: 16px;
}

.draft-label {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.draft-input {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 100px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--control-line);
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: var(--r-panel);
}

.draft-box {
  margin: 20px;
}

.flow-node {
  display: block;
  text-align: left;
  width: 100%;
  background: var(--sheet);
  border: 1px solid var(--line-2);
  border-radius: var(--r-panel);
  color: var(--ink);
  padding: 14px;
  font-size: 13px;
}

.flow-node small {
  display: block;
  color: var(--ink-3);
  font: 11px var(--mono);
  margin-top: 5px;
}

.flow-node.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.flow-connector {
  height: 20px;
  display: flex;
  align-items: center;
  padding-left: 24px;
  color: var(--ink-3);
  font-size: 12px;
}

.flow-next {
  margin-top: 20px;
}

.hunk-header {
  font: 11px var(--mono);
  color: var(--ink-3);
  padding: 12px 20px;
  background: var(--sheet-2);
  display: flex;
  justify-content: space-between;
}

.fresh-note {
  padding: 20px 25px;
  font-size: 13px;
  line-height: 1.7;
}

.fresh-note h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.fresh-note label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  color: var(--ink);
  margin-top: 25px;
}

.fresh-note input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

.status-check {
  color: var(--ok);
}

.status-new {
  color: var(--blue);
}

.review-mark {
  margin: 15px 20px;
}

/* Accessibility helpers */

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--blue);
  color: var(--on-blue);
  border-radius: var(--r-btn);
  padding: 12px;
  z-index: 10;
}

.skip-link:focus {
  top: 10px;
  color: var(--on-blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Documentation uses the same tokens as the landing page. */

.docs-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 65px;
  padding-top: 56px;
  padding-bottom: 100px;
}

.docs-nav {
  align-self: start;
  position: sticky;
  top: 25px;
  display: grid;
  gap: 4px;
}

.docs-nav a {
  padding: 10px 13px;
  font-size: 14px;
  color: var(--ink-2);
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-chip) var(--r-chip) 0;
}

.docs-nav a:hover {
  color: var(--ink);
  background: var(--sheet-3);
}

.docs-nav a[aria-current=page] {
  border-left-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 620;
}

.docs-nav p {
  padding: 0 13px 15px;
  font: 600 11px var(--sans);
  letter-spacing: .08em;
  color: var(--ink-3);
}

.docs-article {
  max-width: 840px;
  min-width: 0;
}

.docs-article h1 {
  font-size: 46px;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 25px;
}

.docs-article h2 {
  font-size: 28px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 50px 0 20px;
}

.docs-article h3 {
  margin: 30px 0 14px;
}

.docs-article p {
  font-size: 16px;
  margin: 15px 0;
}

.docs-article a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-article a:hover {
  color: var(--blue-2);
}

.docs-article ul, .docs-article ol {
  padding-left: 23px;
  color: var(--ink-2);
  line-height: 1.75;
  font-size: 16px;
}

.docs-article li {
  margin: 8px 0;
}

.docs-article code {
  font-size: .86em;
  color: var(--ink);
  background: var(--sheet-3);
  padding: 2px 5px;
  border-radius: var(--r-chip);
}

.docs-article pre {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--sheet);
  overflow: auto;
  font-size: 13px;
  line-height: 1.8;
}

.docs-article pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.docs-article table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
  margin: 20px 0;
  color: var(--ink-2);
}

.docs-article th, .docs-article td {
  border: 1px solid var(--line-2);
  padding: 10px;
  text-align: left;
  background: var(--sheet);
}

.docs-article th {
  color: var(--ink);
  background: var(--sheet-2);
}

.docs-article blockquote {
  border-left: 2px solid var(--blue);
  padding-left: 20px;
  margin-left: 0;
}

.docs-source {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 50px !important;
  font-size: 13px !important;
  color: var(--ink-3) !important;
}

/* 404 page */

.not-found {
  padding-block: 90px 140px;
  max-width: 1280px;
}

.not-found h1 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.not-found p {
  font-size: 18px;
  max-width: 600px;
  margin: 20px 0 30px;
}

/* Responsive */

@media (min-width: 1500px) {
  .hero {
    padding-top: 65px;
  }
}

@media (max-width: 1280px) {
  .feature-notes { grid-template-columns: repeat(3, 1fr); row-gap: 45px; }
}

@media (max-width: 1100px) {
  .container { width: calc(100% - 48px); }
  .site-header nav { gap: 22px; }
  .editor-body { grid-template-columns: 185px 1fr; }
  .preview-workspace { grid-template-columns: 155px 1fr; }
  .pr-row { font-size: 10px; }
  .example-caption > span { display: none; }
  .example-toolbar [role=tablist] { gap: 3px; }
  .section-intro { padding: 0; }
  .feature-notes { margin-inline: 0; gap: 40px 30px; }
  .trust, .install { padding-inline: 0; gap: 40px; }
  .install h2 { font-size: 40px; }
  .data-flow { padding: 14px; }
  .data-flow > div { gap: 10px; }
  .data-flow > div > span { font-size: 12px; padding: 15px 10px; }
  .example-side { padding: 20px 15px; }
  .example-main .code-lines > div { font-size: 11px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .site-header { height: auto; padding-top: 16px; gap: 14px; flex-wrap: wrap; }
  .brand { font-size: 20px; }
  .brand-mark { width: 28px; height: 28px; }
  .site-header nav { order: 3; width: 100%; justify-content: center; gap: 24px; font-size: 13px; padding: 0 0 10px; }
  .button.small { font-size: 13px; padding: 8px 13px; }
  .header-actions { gap: 8px; }
  .github-link { width: 34px; height: 34px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(36px, 9vw, 52px); letter-spacing: -0.025em; }
  .hero-description { font-size: 16px; max-width: 540px; margin-top: 22px; }
  .button { font-size: 15px; padding: 12px 18px; }
  .hero-meta { font-size: 12px; }
  .hero-meta > span:not([data-editor]) { margin: 0 6px; }
  .hero .editor-picker { margin-bottom: 24px; }
  .install .editor-picker { margin-bottom: 22px; }
  .editor-body { grid-template-columns: 1fr; min-height: 0; }
  .editor-sidebar { display: none; }
  .review-preview { padding: 18px 12px 12px; }
  .pr-heading { font-size: 12px; gap: 6px; }
  .pr-detail { font-size: 9px; }
  .preview-tabs { margin-inline: -12px; padding-inline: 12px; }
  .preview-workspace { grid-template-columns: 1fr; }
  .preview-chapters { display: none; }
  .preview-code .code-lines > div { font-size: 10px; }
  .preview-finding { padding: 10px; }
  .briefing small { font-size: 9px; }
  .editor-preview figcaption { font-size: 10px; }
  .window-bar { font-size: 9px; }
  .examples { padding-top: 85px; }
  h2, .section-intro h2 { font-size: 34px; letter-spacing: -0.02em; }
  .section-intro p { font-size: 16px; margin-top: 20px; }
  .example-toolbar { display: block; padding: 0 5px; }
  .example-toolbar [role=tablist] { justify-content: space-between; gap: 0; }
  .example-toolbar button { font-size: 12px; padding: 16px 7px; }
  .example-caption { display: block; font-size: 10px; text-align: center; border-top: 1px solid var(--line); padding: 10px; }
  .example-caption > span { display: inline; }
  .example-layout { grid-template-columns: 1fr; }
  .example-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 15px; }
  .chapter-button { padding: 10px 8px; }
  .chapter-button strong { font-size: 14px; }
  .chapter-button p { font-size: 12px; margin-top: 3px; }
  .example-main .code-lines > div { font-size: 10px; }
  .example-main .code-lines > div > span { width: 32px; padding-right: 7px; }
  .file-bar { font-size: 10px; padding: 12px; }
  .example-explainer { font-size: 12px; margin-top: 15px; }
  .feature-notes { grid-template-columns: 1fr; gap: 30px; margin-top: 35px; }
  .feature-notes article::before { margin-bottom: 15px; }
  .feature-notes h3 { font-size: 18px; }
  .feature-notes p { margin-top: 8px; }
  .trust { grid-template-columns: 1fr; padding-top: 85px; padding-bottom: 55px; gap: 35px; }
  .trust p { font-size: 16px; margin-top: 20px; }
  .data-flow > div > span { min-height: 65px; font-size: 12px; }
  .install { grid-template-columns: 1fr; padding-top: 55px; padding-bottom: 55px; gap: 40px; }
  .install h2 { font-size: 34px; }
  .install > div > p { font-size: 16px; margin-top: 22px; }
  .command code { font-size: 11px; }
  .site-footer { flex-wrap: wrap; gap: 18px; font-size: 12px; padding-bottom: 25px; }
  .site-footer .brand { width: 100%; }
  .footer-end { margin: 0; width: 100%; }
  .finding-box { margin: 15px; }
  .finding-box h3 { font-size: 14px; }
  .finding-actions { gap: 8px; }
  .draft-box { margin: 15px; }
  .flow-node { padding: 11px; }
  .flow-connector { height: 16px; }
  .docs-layout { grid-template-columns: 1fr; padding-top: 40px; gap: 30px; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 5px; }
  .docs-nav p { width: 100%; padding-bottom: 5px; }
  .docs-nav a { font-size: 13px; padding: 8px 10px; }
  .docs-article h1 { font-size: 36px; }
  .docs-article h2 { font-size: 24px; }
  .docs-article pre { font-size: 12px; padding: 15px; }
  .not-found { padding-block: 50px 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .button:hover { transform: none; }
}
