:root {
  --navy: #121d42;
  --blue: #4468FF;
  --link: #294bc9;
  --muted: #516078;
  --line: #d9e2ff;
  --surface: #f3f6ff;
  --paper: #fff;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color: var(--navy);
  font: 16px/1.6 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--blue); }
.page-surface { background: var(--paper); }
a { color: var(--link); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, select, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.045em;
}
.wrap { width: min(1120px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; top: -5rem; left: 1rem; background: var(--paper); padding: .75rem; z-index: 1; }
.skip:focus { top: .5rem; }

.site-header { border-bottom: 1px solid #ffffff55; }
:is(.site-header, .footer, .hero-copy) a:focus-visible { outline-color: var(--paper); }
.mast, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.5rem;
}
.mast { padding-block: 1.2rem; }
.mark { display: block; width: 7.3rem; height: auto; }
.mast nav, .footer nav, .source-links, .setup-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem clamp(.85rem, 2.6vw, 1.85rem);
}
.mast nav a, .footer nav a {
  color: var(--paper);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.mast nav a:hover, .footer nav a:hover, .mast [aria-current="page"] { text-decoration: underline; }
.footer { padding-block: 1.3rem; }
.footer .mark { width: 5.6rem; }

.hero {
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 5.9vw, 5rem);
  line-height: 1;
  text-wrap: balance;
}
.hero-numbers, .hero-description { margin-top: 1.1rem; }
.hero-numbers { font-variant-numeric: tabular-nums; }
.hero-description { max-width: 41ch; font-size: 1.2rem; font-weight: 700; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.2rem; margin-top: 1.5rem; }
.actions > a:not(.button) { color: var(--paper); font-weight: 650; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .95rem;
  border-radius: .2rem;
  background: var(--paper);
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--surface); }

.comparison { min-width: 0; padding: clamp(1rem, 2.7vw, 1.75rem); background: var(--paper); color: var(--navy); }
.comparison table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.comparison caption {
  text-align: left;
  color: var(--blue);
  font: 500 clamp(1.65rem, 3vw, 2.3rem)/1.12 Georgia, serif;
  letter-spacing: -.035em;
  margin-bottom: 1rem;
}
.comparison th, .comparison td {
  padding: .7rem .6rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  line-height: 1.35;
}
.comparison th:first-child { text-align: left; }
.comparison thead th { background: var(--surface); color: var(--muted); font-size: .875rem; font-weight: 650; vertical-align: bottom; }
.comparison tbody th { font-size: .9rem; font-weight: 650; }
.comparison tbody td { white-space: nowrap; }
.comparison tbody tr:first-child td { color: var(--link); font-weight: 700; }
.comparison p { margin-top: .9rem; max-width: 50ch; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.comparison a { white-space: nowrap; }

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 6vw, 5.5rem);
  padding-block: clamp(2rem, 4vw, 3.6rem);
}
.editorial h2 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); }
.editorial p { max-width: 61ch; margin-top: .75rem; }
.editorial a + a { margin-left: .75rem; }
.install, .demo { padding-block: clamp(2.2rem, 4.7vw, 4rem); }
#install { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 1.65rem; }
.section-heading h1, .section-heading h2 { font-size: clamp(2.65rem, 5vw, 4rem); margin-bottom: .55rem; }
.section-heading p { color: var(--muted); max-width: 68ch; }
.section-heading p + p { margin-top: .4rem; }

.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(1.4rem, 5vw, 3rem); }
.install-grid article { min-width: 0; border-top: 1px solid var(--line); padding-top: .9rem; }
.install-grid h3 { font-size: 1.15rem; }
.install-grid p { margin: .2rem 0 .75rem; color: var(--muted); max-width: 56ch; }
.install-grid article > a { display: inline-block; margin-top: .55rem; }
.command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .45rem .65rem .45rem .8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .2rem;
}
code { font: .9em/1.45 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.command button {
  flex-shrink: 0;
  min-height: 2.25rem;
  padding: .3rem .5rem;
  border: 1px solid var(--line);
  border-radius: .2rem;
  background: white;
  color: var(--link);
  font: 650 .875rem system-ui, sans-serif;
  cursor: pointer;
}
.command button:hover { background: #eaf0ff; }
.note { margin-top: 1.2rem; color: var(--muted); font-size: .93rem; }

.source-links { margin-top: .7rem; }
.filing { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); border: 1px solid var(--line); }
.outline-panel { background: var(--surface); border-right: 1px solid var(--line); padding: .9rem; }
.outline-panel label { display: block; font-weight: 700; margin-bottom: .45rem; }
.outline-panel select {
  display: none;
  width: 100%;
  min-height: 44px;
  font: inherit;
  padding: .4rem .6rem;
  color: var(--navy);
  background: white;
  border: 1px solid #adbde9;
  border-radius: .2rem;
}
.item-outline { display: grid; max-height: 38rem; overflow-y: auto; }
.item-outline a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: .3rem;
  padding: .45rem .5rem;
  line-height: 1.35;
  color: var(--navy);
  text-decoration: none;
  font-size: .875rem;
}
.item-outline a[aria-current] { background: #e3ebff; color: #173aa3; font-weight: 700; }
.item-outline a:hover { background: #edf2ff; }
.item-outline span { font: 700 .875rem/1.35 ui-monospace, monospace; color: var(--link); }
.reader { min-width: 0; padding: clamp(1rem, 3vw, 1.8rem); }
.reader h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: .2rem 0 .8rem; }
.reader-label { color: var(--muted); font-weight: 650; font-size: .875rem; }
.item-text { white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; max-height: 34rem; margin-top: 1rem; color: #263552; tab-size: 3; }
.table-wrap { overflow: auto; margin-top: 1.1rem; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .92rem; white-space: nowrap; }
.table-wrap caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--line); padding: .35rem .5rem; text-align: right; }
.table-wrap th:first-child { text-align: left; white-space: normal; min-width: 8rem; }
.table-wrap thead { background: var(--surface); }
#demo-status { margin-top: 1rem; }

.setup { max-width: 54rem; }
.setup-nav { margin-block: 1.25rem 0; }
.setup-section { margin-top: 1.65rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.setup-section h2 { font-size: clamp(1.8rem, 4vw, 2.45rem); margin-bottom: .6rem; }
.setup-section p { max-width: 68ch; }
.setup-command { align-items: flex-start; margin: .8rem 0; gap: .85rem; }
.setup-command pre { margin: 0; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .comparison { max-width: 36rem; }
}
@media (max-width: 680px) {
  .mast, .footer { flex-wrap: wrap; }
  .mast { padding-block: .9rem; }
  .mast .mark { width: 6.2rem; }
  .mast nav, .footer nav { gap: .45rem .85rem; }
  .hero { padding-block: 2.25rem; }
  .hero h1 { max-width: 13ch; }
  .editorial, .install-grid, .filing { grid-template-columns: 1fr; }
  .outline-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .outline-panel select { display: block; }
  .item-outline { display: none; }
  .item-text { max-height: 30rem; }
}
