@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Layout: a kitset instruction sheet. An exploded parts diagram opens the page,
   then the finished article, numbered assembly panels, and the fine print. */
:root {
  --paper: #F5F6F9;
  --sheet: #FFFFFF;
  --ink: #151C2F;
  --ink-2: #47516B;
  --ink-3: #626C85;
  --rule: #DCE0EA;
  --orange: #E85F12;
  --link: #B5470B;
  --slate: #45527A;
  --btn: #F26A1B;
  --btn-ink: #151C2F;
  --band: #151C2F;
  --band-ink: #EDF0F7;
  --band-ink-2: #B3BCD2;
  --band-link: #FF9A55;
  --shadow: rgba(21, 28, 47, .28);

  /* The app icon, light appearance */
  --tile-1: #FF9533;
  --tile-2: #E85F12;
  --tile-edge: rgba(255, 255, 255, 0);
  --part: #FFFFFF;
  --mid: #FFE6D2;
  --tip: #45527A;
  --stamp-part: #E85F12;
  --stamp-mid: #B5470B;
  --stamp-tip: #FFFFFF;
  --arrow: rgba(255, 255, 255, .92);

  /* The browser frame */
  --win-bg: #FFFFFF;
  --win-bar: #F3F3F5;
  --win-rule: #E1E2E6;
  --win-edge: rgba(0, 0, 0, .12);
  --win-ink: #1D1D1F;
  --win-ink-2: #6E6E73;
  --light-r: #FF5F57;
  --light-y: #FEBC2E;
  --light-g: #28C840;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1322; --sheet: #151D31; --ink: #EDF0F7; --ink-2: #B3BCD2; --ink-3: #8F99B3;
    --rule: #263050; --orange: #FF7A0F; --link: #FF9A55; --slate: #9AA8D6;
    --btn: #FF7A0F; --btn-ink: #131B30; --band: #1A2340; --band-ink: #EDF0F7; --band-ink-2: #B3BCD2;
    --band-link: #FF9A55;
    --shadow: rgba(0, 0, 0, .55);
    --tile-1: #2C3858; --tile-2: #131B30; --tile-edge: rgba(255, 255, 255, .10);
    --part: #FFFFFF; --mid: #DCE3F2; --tip: #FF7A0F;
    --stamp-part: #2C3858; --stamp-mid: #2C3858; --stamp-tip: #131B30; --arrow: rgba(255, 255, 255, .75);
    --win-bg: #1F1F22; --win-bar: #2A2A2E; --win-rule: #3A3A3E; --win-edge: rgba(255, 255, 255, .12);
    --win-ink: #F2F2F4; --win-ink-2: #9A9AA1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1322; --sheet: #151D31; --ink: #EDF0F7; --ink-2: #B3BCD2; --ink-3: #8F99B3;
  --rule: #263050; --orange: #FF7A0F; --link: #FF9A55; --slate: #9AA8D6;
  --btn: #FF7A0F; --btn-ink: #131B30; --band: #1A2340; --band-ink: #EDF0F7; --band-ink-2: #B3BCD2;
  --band-link: #FF9A55;
  --shadow: rgba(0, 0, 0, .55);
  --tile-1: #2C3858; --tile-2: #131B30; --tile-edge: rgba(255, 255, 255, .10);
  --part: #FFFFFF; --mid: #DCE3F2; --tip: #FF7A0F;
  --stamp-part: #2C3858; --stamp-mid: #2C3858; --stamp-tip: #131B30; --arrow: rgba(255, 255, 255, .75);
  --win-bg: #1F1F22; --win-bar: #2A2A2E; --win-rule: #3A3A3E; --win-edge: rgba(255, 255, 255, .12);
  --win-ink: #F2F2F4; --win-ink-2: #9A9AA1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
main[id], section[id] { scroll-margin-top: 24px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
}
h2.display { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 760; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font: 650 1rem/1 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.button.primary { background: var(--btn); color: var(--btn-ink); }
.button.primary:hover { filter: brightness(1.06); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.button.secondary:hover { border-color: var(--ink-3); }
.button svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: .95rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--ink); }
.site-nav .button { padding: 10px 16px; font-size: .92rem; color: var(--btn-ink); }
@media (max-width: 720px) { .site-nav a:not(.button) { display: none; } }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px);
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); }
.hero h1 em { font-style: normal; color: var(--orange); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-link { color: var(--ink-2); }
.requirements { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }

.figure { display: grid; gap: 18px; min-width: 0; }
.kit { width: 100%; max-width: 540px; height: auto; justify-self: center; overflow: visible; }
.kit .tile { fill: url(#tile-gradient); stroke: var(--tile-edge); stroke-width: 3; }
.kit .t1 { stop-color: var(--tile-1); }
.kit .t2 { stop-color: var(--tile-2); }
.kit .part path, .kit .part polygon { stroke-width: 13.7; stroke-linejoin: round; }
.kit .part-top path, .kit .part-bottom path { fill: var(--part); stroke: var(--part); }
.kit .part-mid polygon { fill: var(--mid); stroke: var(--mid); }
.kit .part-tip path { fill: var(--tip); stroke: var(--tip); }
.kit .stamp { font: 600 62px var(--font-mono); text-anchor: middle; dominant-baseline: central; }
.kit .part-top .stamp, .kit .part-bottom .stamp { fill: var(--stamp-part); }
.kit .part-mid .stamp { fill: var(--stamp-mid); }
.kit .part-tip .stamp { fill: var(--stamp-tip); }
.kit .arrows line { stroke: var(--arrow); stroke-width: 7; stroke-dasharray: 14 12; stroke-linecap: round; }
.kit .arrow-head { fill: var(--arrow); }
/* The parts start together as the icon, come apart, and go back together, in a loop.
   Without motion, the parts stay apart, so the letters of the key stay visible. */
.kit .part { animation: kit-apart 7s cubic-bezier(.2, .9, .25, 1) infinite; }
.kit .stamp, .kit .arrows { opacity: 0; animation: kit-labels 7s ease infinite; }
.kit .part-tip { --dx: 110px; --dy: 0px; animation-delay: .18s; }
.kit .part-top { --dx: -40px; --dy: -80px; }
.kit .part-mid { --dx: -24px; --dy: 0px; animation-delay: .08s; }
.kit .part-bottom { --dx: -40px; --dy: 80px; }
@keyframes kit-apart {
  0%, 16% { transform: none; }
  30%, 70% { transform: translate(var(--dx), var(--dy)); }
  84%, 100% { transform: none; }
}
@keyframes kit-labels {
  0%, 28% { opacity: 0; }
  34%, 66% { opacity: 1; }
  72%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kit .part { animation: none; transform: translate(var(--dx), var(--dy)); }
  .kit .stamp, .kit .arrows { animation: none; opacity: 1; }
}

.fig-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.key li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; align-items: start; }
.key b { font-weight: 650; font-size: .98rem; line-height: 1.35; }
.key span.what { grid-column: 2; color: var(--ink-3); font-size: .9rem; line-height: 1.45; }
.chip {
  grid-row: span 2;
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
  font: 600 .9rem/1 var(--font-mono);
  border: 1.5px solid var(--rule);
}
.chip.tip { background: var(--tip); color: var(--stamp-tip); border-color: var(--tip); }
.chip.outer { background: var(--part); color: var(--stamp-part); }
.chip.mid { background: var(--mid); color: var(--stamp-mid); border-color: var(--mid); }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .key { grid-template-columns: minmax(0, 1fr); }
}

/* Frames from a real video, in the step figures */
.frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }

/* The browser frame around the screenshot of a player page */
.window {
  background: var(--win-bg);
  color: var(--win-ink);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mac);
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 0 0 1px var(--win-edge), 0 30px 70px -24px var(--shadow), 0 8px 20px -10px var(--shadow);
  min-width: 0;
}
.titlebar {
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 14px;
  background: var(--win-bar);
  border-bottom: 1px solid var(--win-rule);
}
.lights { display: flex; gap: 8px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: var(--light-r); }
.lights i:nth-child(2) { background: var(--light-y); }
.lights i:nth-child(3) { background: var(--light-g); }
.address { flex: 1; min-width: 0; max-width: 360px; margin: 0 auto; background: var(--win-bg); border-radius: 7px; padding: 5px 10px; text-align: center; color: var(--win-ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { display: block; width: 100%; height: auto; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .58fr); align-items: end; padding-bottom: 48px; }
.stage-library { grid-column: 1; grid-row: 1; margin: 0; }
.stage-library img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1px var(--win-edge)) drop-shadow(0 24px 40px var(--shadow)); }
.stage .browser { grid-column: 2; grid-row: 1; margin-left: -18%; margin-bottom: -48px; position: relative; z-index: 1; }
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 0; }
  .stage .browser { grid-column: 1; grid-row: 2; margin: 0; max-width: 520px; width: 100%; justify-self: end; }
}
.captions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: clamp(40px, 6vw, 72px); }
.captions div { display: grid; gap: 6px; border-top: 1.5px solid var(--rule); padding-top: 14px; }
.captions p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 640px) { .captions { grid-template-columns: minmax(0, 1fr); } }

/* Assembly */
.tools-required {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 16px 20px; margin-bottom: 28px;
  border: 1.5px dashed var(--rule); border-radius: 8px;
  font-size: .95rem; color: var(--ink-2);
}
.tools-required .label { color: var(--ink); }
.tools-required span { display: inline-flex; align-items: center; gap: 8px; }
.tools-required svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--sheet);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 22px;
  min-width: 0;
}
.step-head { display: flex; align-items: center; gap: 12px; }
.step-n {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font: 600 1.05rem/1 var(--font-mono);
}
.step.yours .step-n { background: var(--ink); color: var(--paper); }
.step h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.step .who { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.step p { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.fig {
  margin-top: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px;
  font: 12px/1.5 var(--font-mono);
  color: var(--ink-2);
  min-width: 0;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.checklist li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.checklist li::before { content: "✓"; color: var(--orange); font-weight: 600; }
.checklist b { font-weight: 500; color: var(--ink); }
.checklist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.drop { border: 1.5px dashed var(--ink-3); border-radius: 8px; padding: 16px 12px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.file-chip { display: flex; align-items: center; gap: 10px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; max-width: 100%; text-align: left; }
.file-chip .thumb { width: 44px; flex: none; }
.file-chip .thumb .frame { border-radius: 4px; }
.file-chip b { display: block; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip div { min-width: 0; }

.ladder { display: grid; gap: 6px; }
.rung { display: grid; grid-template-columns: 5.4em 3.4em minmax(0, 1fr) 3.6em; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.rung .bar { height: 9px; border-radius: 2px; background: var(--orange); width: calc(var(--w) * 1%); }
.rung.hevc .bar { background: var(--slate); }
.rung .kbps { text-align: right; color: var(--ink); }
.rung .codec { color: var(--ink-3); }
.rung.four-k { opacity: .5; }
.ladder-note { margin-top: 6px; color: var(--ink-3); font-size: 11px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--orange); margin-right: 5px; vertical-align: -1px; }
.swatch.hevc { background: var(--slate); }

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.strip .frame { border-radius: 4px; }
.strip .pick { position: relative; }
.strip .pick .frame { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--orange); }
.strip-note { margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.strip-note b { color: var(--ink); font-weight: 500; }

.uploads { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.uploads li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 4.4em; gap: 8px; align-items: center; }
.uploads .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.uploads .meter { height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.uploads .meter i { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--orange); }
.uploads .state { color: var(--ink-3); text-align: right; }
.uploads li.last .name { color: var(--ink-3); }

.share { display: grid; gap: 10px; }
.link-field { display: flex; align-items: center; gap: 8px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 6px 6px 12px; min-width: 0; }
.link-field span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.link-field .copy { flex: none; font: 600 11px var(--font-mono); padding: 6px 10px; border-radius: 6px; border: 0; background: var(--btn); color: var(--btn-ink); cursor: pointer; }
.share small { color: var(--ink-3); font-size: 11px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.feature { display: flex; flex-direction: column; gap: 8px; border-top: 1.5px solid var(--ink); padding-top: 16px; min-width: 0; }
.feature h3 { font-size: 1.08rem; font-weight: 700; }
.feature p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.feature .label { color: var(--link); }
/* The links of the features in a row line up at the bottom. */
.feature .docs-link { margin-top: auto; padding-top: 4px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* A link to the documentation: the label Docs, then the title of the page or
   the section. It follows the text that it gives more detail about. */
.docs-link a { font-size: .92rem; font-weight: 600; }
.docs-link .label { display: inline-block; margin-right: .7em; color: var(--ink-3); }
.steps-docs { margin-top: clamp(24px, 3vw, 32px); }
.band .docs-link a { color: var(--band-link); }
.band .docs-link .label { color: var(--band-ink-2); }

/* Costs */
.costs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.costs .section-head { margin-bottom: 0; }
.cost-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.cost-facts li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.cost-facts b { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: 1.25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cost-facts span { color: var(--ink-2); font-size: .95rem; }
.cost-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }
.worked { background: var(--sheet); border: 1.5px solid var(--rule); border-radius: 8px; padding: clamp(20px, 3vw, 28px); display: grid; gap: 18px; min-width: 0; }
.worked h3 { font-size: 1.15rem; font-weight: 700; }
.method { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: method; }
.method li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: .95rem; line-height: 1.5; counter-increment: method; }
.method li::before { content: counter(method); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 .74rem/1 var(--font-mono); color: var(--ink); }
.examples-wrap { overflow-x: auto; }
.examples { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.examples th, .examples td { text-align: right; padding: 9px 0 9px 14px; border-top: 1px solid var(--rule); white-space: nowrap; }
.examples th:first-child, .examples td:first-child { text-align: left; padding-left: 0; white-space: normal; }
.examples thead th { font: 500 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-top: 0; }
.examples td.money { font-weight: 650; }
.fine { font-size: .8rem; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 860px) { .costs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .cost-facts li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--sheet); border: 1.5px solid var(--rule); border-radius: 8px; padding: clamp(22px, 3vw, 30px); display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; min-width: 0; }
.plan h3 { font-size: 1.2rem; font-weight: 700; }
.price { display: grid; gap: 6px; }
.price b { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-3); font-size: .95rem; }
.plan p { color: var(--ink-2); font-size: .96rem; }
.plan .button { justify-self: start; }
.plan-notes { margin-top: 24px; display: grid; gap: 8px; max-width: 920px; }
.plan-notes .trust { color: var(--ink-2); }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* Ownership band */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.band h2 { color: var(--band-ink); }
.band p { color: var(--band-ink-2); font-size: 1.08rem; }
.band .points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.band .points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--band-ink); }
.band .points li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; background: var(--btn); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.band .points small { display: block; color: var(--band-ink-2); font-size: .92rem; }
@media (max-width: 820px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 64px); }
.faq-list { display: grid; }
.faq details { border-top: 1.5px solid var(--rule); }
.faq details:last-child { border-bottom: 1.5px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 650; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.3rem/1 var(--font-mono); color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; max-width: 40em; }
@media (max-width: 820px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Download */
.download .wrap { display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: clamp(64px, 9vw, 112px); }
.download svg.icon { width: 120px; height: 120px; filter: drop-shadow(0 18px 24px var(--shadow)); }
.download h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.download p { color: var(--ink-2); max-width: 34em; }

.site-footer { border-top: 1.5px solid var(--rule); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 28px 40px; font-size: .88rem; color: var(--ink-3); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { flex-basis: 100%; font-size: .8rem; }

/* Text pages: support, privacy, release notes */
.text-page { padding-block: clamp(32px, 6vw, 64px) clamp(64px, 9vw, 112px); display: grid; gap: clamp(24px, 4vw, 36px); }
.text-page h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); }
.prose { max-width: 40em; display: grid; gap: 16px; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin-top: 16px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose .updated { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.email { font-weight: 650; font-size: 1.15rem; }
.release { max-width: 40em; display: grid; gap: 14px; border-top: 1.5px solid var(--ink); padding-top: 20px; }
.release-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.release-head h2 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.02em; }
.release h3 { font-size: 1rem; font-weight: 700; margin: 10px 0 0; }
.release p, .release li { color: var(--ink-2); }
.release ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* The purchase: the problem line of the checkout, and the keys on the thank-you page. */
.buy-status { margin-top: 16px; color: var(--ink-2); }
.name-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: clamp(22px, 3vw, 30px);
  border: 1.5px solid var(--rule); border-radius: 8px;
  background: var(--sheet); color: var(--ink);
  box-shadow: 0 24px 60px var(--shadow);
}
.name-dialog::backdrop { background: rgba(21, 28, 47, .45); }
.name-dialog form { display: grid; gap: 12px; }
.name-dialog h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.name-dialog label { font-weight: 600; font-size: .96rem; }
.name-dialog input {
  font: inherit; color: var(--ink);
  padding: 10px 12px;
  border: 1.5px solid var(--rule); border-radius: 8px;
  background: var(--paper);
}
.name-dialog .hint { color: var(--ink-3); font-size: .9rem; }
.dialog-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.dialog-buttons .button { padding: 12px 18px; font-size: .95rem; }
.button:disabled { opacity: .45; cursor: default; filter: none; }
.licence-keys { display: grid; gap: 10px; }
.licence-key {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--rule); border-radius: 10px;
  background: var(--sheet);
}
.licence-key code {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.5;
  color: var(--ink); word-break: break-all;
}
.licence-key .button { padding: 10px 16px; font-size: .92rem; }
.waiting { display: flex; align-items: center; gap: 12px; }
.spinner {
  flex: none; width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--rule); border-top-color: var(--orange);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Documentation: a sidebar of pages, and an article. On a narrow screen the
   sidebar goes after the article, and a link at the top jumps to it. */
.docs {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(24px, 4vw, 48px) clamp(64px, 9vw, 112px);
}
.docs-nav { grid-column: 1; grid-row: 1; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; display: grid; gap: 22px; font-size: .92rem; padding-bottom: 8px; }
.docs-article { grid-column: 2; grid-row: 1; min-width: 0; max-width: 46em; }
.docs-home { font-weight: 700; color: var(--ink); text-decoration: none; }
.docs-group { display: grid; gap: 8px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.docs-nav a { color: var(--ink-2); text-decoration: none; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.docs-nav .docs-toc { margin: 6px 0 6px 2px; padding-left: 12px; border-left: 1.5px solid var(--rule); gap: 3px; font-size: .86rem; }
.docs-nav .docs-toc a { color: var(--ink-3); }
.docs-nav .docs-toc a:hover { color: var(--ink); }
.docs-jump { display: none; margin-bottom: 16px; font-size: .92rem; }
.docs-article h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-bottom: clamp(20px, 3vw, 28px); }

.docs-body { display: grid; gap: 16px; }
.docs-body > * { margin: 0; }
.docs-body h2, .docs-body h3 { scroll-margin-top: 24px; }
.docs-body h2 { font-size: 1.45rem; font-weight: 750; line-height: 1.25; margin-top: 28px; padding-top: 20px; border-top: 1.5px solid var(--rule); }
.docs-body h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-top: 12px; }
.docs-body p, .docs-body li, .docs-body td { color: var(--ink-2); }
.docs-body strong { color: var(--ink); font-weight: 650; }
.docs-body ul, .docs-body ol { padding-left: 1.3em; display: grid; gap: 6px; }
.docs-body li > ul, .docs-body li > ol { margin-top: 6px; }
.docs-body li > p { margin: 0; }
.docs-body code {
  font-family: var(--font-mono); font-size: .84em;
  padding: .1em .35em; border-radius: 5px;
  background: var(--sheet); border: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.docs-body pre {
  padding: 14px 16px; border-radius: 8px;
  background: var(--sheet); border: 1.5px solid var(--rule);
  overflow-x: auto; line-height: 1.5;
}
.docs-body pre code { padding: 0; border: 0; background: none; font-size: .82rem; overflow-wrap: normal; }
.docs-body kbd {
  font-family: var(--font-body); font-size: .85em; font-weight: 600;
  padding: .05em .4em; border-radius: 5px;
  border: 1px solid var(--rule); border-bottom-width: 2px; background: var(--sheet); color: var(--ink);
}
.docs-body blockquote {
  padding: 14px 18px; border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0;
  background: var(--sheet); display: grid; gap: 10px;
}
.docs-body blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; }
.docs-body table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.docs-body th, .docs-body td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1.5px solid var(--rule); }
.docs-body th { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink-3); }

.shot { margin: 12px 0; display: grid; gap: 10px; justify-items: center; }
.shot img { display: block; max-width: 100%; height: auto; }
.shot-app img { filter: drop-shadow(0 10px 24px var(--shadow)); }
.shot-browser img { border-radius: 10px; border: 1.5px solid var(--rule); box-shadow: 0 10px 28px var(--shadow); }
.shot figcaption { font-size: .88rem; color: var(--ink-3); text-align: center; max-width: 36em; }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 56px); }
.docs-pager a { display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 650; }
.docs-pager a:hover { border-color: var(--ink-3); }
.docs-pager a[rel="next"] { text-align: right; grid-column: 2; }

.docs-contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; margin-top: 16px; }
.docs-section { display: grid; gap: 12px; align-content: start; }
.docs-section h2.label { margin: 0; padding: 0; border: 0; font-size: .76rem; font-weight: 500; }
.docs-section ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.docs-section li { display: grid; gap: 2px; }
.docs-section a { font-weight: 650; text-decoration: none; }
.docs-section a:hover { text-decoration: underline; }
.docs-section span { font-size: .92rem; color: var(--ink-3); }

@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-article, .docs-nav { grid-column: 1; grid-row: auto; }
  .docs-nav { position: static; max-height: none; overflow: visible; border-top: 1.5px solid var(--rule); padding-top: 28px; }
  .docs-jump { display: block; }
}
@media (max-width: 560px) {
  .docs-contents { grid-template-columns: minmax(0, 1fr); }
  .docs-pager { grid-template-columns: minmax(0, 1fr); }
  .docs-pager a[rel="next"] { grid-column: 1; }
}
