:root {
  --bg: var(--color-background,#F7F9F6);
  --panel: #FFFFFF;
  --sunk: #EFF2EE;
  --line: #E0E5DF;
  --line2: #C7CEC6;
  --ink: var(--color-ink,#131714);
  --ink2: #5C635C;
  --ink3: #676E67;
  --accent: var(--color-primary,#0A7A74);
  --chrome: var(--color-chrome,#161D19);
  --on: #EAEFE9;
  --on2: #9BA79F;
  --on3: #6E7A72;
  --accent2: var(--color-accent-on-dark,#5FBDB4);
  --dark-panel: #1B2320;
  --dark-line: #2C3630;
  --mono: ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  --sans: var(--font-body-faces, var(--font-body, Inter), system-ui), sans-serif;
  --display: var(--font-display-faces, var(--font-display, Inter), system-ui), sans-serif;
  --t0: 12px;
  --t1: 13.5px;
  --t2: 15px;
  --t3: 16px;
  --t4: 19px;
  --r1: 8px;
  --r2: clamp(8px, 1.5vw, 14px);
  --gutter: max(24px,(100% - 1120px) / 2);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t3);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

p {
  margin: 0 0 .8em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
}

h1 {
  font-size: clamp(34px,4.6vw,56px);
  font-weight: 650;
  text-wrap: balance;
}

h2 {
  font-size: clamp(24px,3vw,34px);
  font-weight: 640;
  text-wrap: balance;
}

h3 {
  font-size: var(--t3);
  font-weight: 640;
  margin-bottom: 6px;
}

code {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: .87em;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .36em;
}

img {
  max-width: 100%;
}

main > section > p.actions > a,
main article > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t2);
  line-height: 20px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--r1);
  border: 1px solid transparent;
  white-space: nowrap;
}

main article > a {
  background: transparent;
  color: var(--ink);
  border-color: var(--line2);
}

main article > a:hover {
  background: var(--sunk);
}

main > section > p.actions > a {
  background: var(--on);
  color: var(--chrome);
}

main > section > p.actions > a:hover {
  background: #fff;
}

main > section > p.actions > a:nth-child(2) {
  background: transparent;
  color: var(--on);
  border-color: #3B4841;
}

main > section > p.actions > a:nth-child(2):hover {
  background: var(--dark-panel);
}

main > section.hero > p.actions > a:nth-child(3) {
  flex-basis: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 400;
  font-size: var(--t1);
  color: var(--on2);
  text-decoration: underline;
  white-space: normal;
}

main > section.hero > p.actions > a:nth-child(3):hover {
  background: none;
  color: var(--on);
}

main > section:is(.hero, .closing) > p.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 10px;
  max-width: none;
  margin: 30px 0 0;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  min-height: 60px;
  padding: 8px var(--gutter);
  color: var(--on);
  background: var(--chrome);
  border-bottom: 1px solid rgba(234,239,233,.12);
}

body > header > a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--on);
}

body > header > a img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

body > header > a b {
  font-size: var(--t2);
  letter-spacing: -.01em;
}

body > header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  display: none;
}

body > header nav a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: var(--t1);
  font-weight: 500;
  color: var(--on2);
  text-decoration: none;
  white-space: nowrap;
}

body > header nav a:hover {
  color: var(--on);
  background: rgba(234,239,233,.09);
}

body > header nav a[aria-current] {
  color: var(--on);
}

body > header > p {
  display: flex;
  gap: 8px;
  margin: 0 0 0 auto;
}

body > header > p > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: var(--r1);
  border: 1px solid transparent;
  background: var(--on);
  color: var(--chrome);
  font-size: var(--t1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

body > header > p > a:hover {
  background: #fff;
}

body > header > p > a:first-child {
  background: transparent;
  color: var(--on);
  border-color: #3B4841;
}

body > header > p > a:first-child:hover {
  background: var(--dark-panel);
}

body > header > button {
  display: none;
}

@media (max-width: 959px) {
  body > header {
    flex-wrap: nowrap;
    gap: 10px;
  }

  body > header > p > a:nth-child(n+2) {
    display: none;
  }

  body > header > p > a {
    min-height: 32px;
    padding: 4px 10px;
  }

  body > header > button {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0 -8px 0 0;
    padding: 0;
    border: 0;
    border-radius: var(--r1);
    background: none;
    color: var(--on);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: none;
  }

  body > header > button:hover,
  body > header > button[aria-expanded="true"] {
    background: rgba(234,239,233,.09);
  }

  body > header > button:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 2px;
  }

  body > header > button > span,
  body > header > button > span::before,
  body > header > button > span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s cubic-bezier(.2,.7,.2,1),background-color .18s ease;
  }

  body > header > button > span {
    position: relative;
  }

  body > header > button > span::before,
  body > header > button > span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  body > header > button > span::before {
    top: -6px;
  }

  body > header > button > span::after {
    top: 6px;
  }

  body > header > button[aria-expanded="true"] > span {
    background: transparent;
  }

  body > header > button[aria-expanded="true"] > span::before {
    transform: translateY(6px) rotate(45deg);
  }

  body > header > button[aria-expanded="true"] > span::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  body > header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    padding: 6px var(--gutter) 14px;
    background: var(--chrome);
    border-bottom: 1px solid rgba(234,239,233,.12);
    box-shadow: 0 24px 48px rgba(0,0,0,.35);
  }

  body > header:has(> button[aria-expanded="true"]) nav {
    display: flex;
    animation: rise .25s cubic-bezier(.2,.7,.2,1) backwards;
  }

  body > header nav a {
    height: 44px;
    padding: 0 12px;
    border-radius: var(--r1);
    font-size: var(--t2);
  }

  body > header nav a[aria-current] {
    background: rgba(234,239,233,.06);
  }
}

main > section {
  padding: 88px var(--gutter);
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 14px;
}

main > section:is(.hero, .source, .closing) {
  --panel: var(--dark-panel);
  --sunk: var(--dark-panel);
  --line: var(--dark-line);
  --ink: var(--on);
  --ink2: var(--on2);
  --accent: var(--accent2);
  background: var(--chrome);
  color: var(--on);
}

main > section:is(.hero, .source, .closing) > :is(h1, h2) {
  color: #fff;
}

/* Offers and use cases stand on a sunk ground, and so does what a section shows, its screenshots, types or picture,
   after a plain white section: by the section before, not by a count, so a section added or moved in the feed keeps
   light and sunk taking turns. The hero has a picture too and keeps its own ground. */
main > section:has(> .offer),
main > section:has(> .cases),
main > section:has(> :is(.shot, .terms, figure)):not(.hero, :is(.hero, .source, .closing, :has(> :is(.offer, .cases, .shot, .terms, figure))) + section) {
  background: var(--sunk);
}

main > section:is(:has(> .offer), :has(> .cases), :has(> :is(.shot, .terms, figure)):not(.hero, :is(.hero, .source, .closing, :has(> :is(.offer, .cases, .shot, .terms, figure))) + section)) > p code {
  background: color-mix(in srgb, var(--panel) 55%, var(--sunk));
  font-size: calc(.87em - .5px);
}

main > section > p:first-child {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

main > section > h2,
main > section > h3 {
  grid-column: 1 / -1;
  max-width: 810px;
  font-size: clamp(28px,3.6vw,44px);
  font-weight: 660;
  line-height: 1.12;
  letter-spacing: -.022em;
}

main > section > h3 {
  margin-bottom: 0;
  font-family: var(--display);
  text-wrap: balance;
}

main > section > :is(h2, h3) ~ p {
  grid-column: 1 / -1;
  max-width: 810px;
  margin: 0 0 26px;
  font-size: var(--t4);
  color: var(--ink2);
  text-wrap: pretty;
}

main > section > :is(h2, h3) ~ p:has(+ p) {
  margin-bottom: 12px;
}

main > section > footer {
  grid-column: 1 / -1;
  max-width: 60em;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--ink2);
  text-wrap: pretty;
}

main > section > article {
  grid-column: span 4;
}

/* Four offers share a row, each about 270px: wide enough for a 40px price and short bullets. Three keep a third each.
   Each width keeps to its own range, since the four-offer selector outweighs any narrower rule. */
@media (min-width: 1100px) {
  main > section:has(> .offer:nth-of-type(4)) > .offer {
    grid-column: span 3;
  }
}

main > section > figure {
  grid-column: span 6;
}

main > section > :is(p, ul) + figure {
  grid-column: 1 / -1;
}

main > section > article ~ p {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  font-size: var(--t2);
  color: var(--ink2);
}

main > section > article ~ p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

main > section > article ~ p a:hover {
  text-decoration: underline;
}

@media (min-width: 860px) and (max-width: 1099px) {
  main > section:has(> .offer:nth-of-type(4)) > .offer {
    grid-column: span 6;
  }
}

@media (max-width: 959px) {
  main > section > article {
    grid-column: span 6;
  }
}

/* Below a tablet's width two offers side by side squeeze their prices and lists, so each takes the row. */
@media (max-width: 859px) {
  main > section > .offer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  main > section > :is(article, figure) {
    grid-column: 1 / -1;
  }
}

main > section.hero {
  display: block;
  padding-bottom: 0;
  text-align: center;
  overflow: hidden;
}

main > section.hero > p:first-child {
  margin-bottom: 20px;
}

main > section.hero > h1 {
  max-width: 14em;
  margin-inline: auto;
  font-size: clamp(38px,6vw,72px);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -.022em;
}

main > section.hero > h1 > span {
  display: block;
}

main > section.hero > h1 ~ p:not(.actions) {
  max-width: 58ch;
  margin: 22px auto 0;
  font-size: var(--t4);
  line-height: 1.5;
  color: var(--on2);
  text-wrap: pretty;
}

main > section.hero > figure {
  max-width: 1120px;
  margin: 56px auto 0;
  position: relative;
  border-radius: var(--r2) var(--r2) 0 0;
}

main > section.hero > figure :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--r2) var(--r2) 0 0;
  border: 1px solid rgba(234,239,233,.16);
  border-bottom: 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,.35);
}

main > section.hero > figure > button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(234,239,233,.4);
  border-radius: 50%;
  background: rgba(10,14,12,.72);
  color: #fff;
  cursor: pointer;
}

main > section.hero > figure > button::before {
  content: "";
  width: 14px;
  height: 16px;
  background: currentColor;
}

main > section.hero > figure > button.pause::before {
  width: 12px;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%);
}

main > section.hero > figure > button.play::before {
  margin-left: 3px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

main > section.hero > figure > button:hover {
  background: rgba(10,14,12,.9);
}

main > section.hero > figure > button:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

/* While the video plays, its pause button shows only once the keyboard reaches it; a click on the video pauses it. */
main > section.hero > figure > button.pause:not(:focus-visible) {
  opacity: 0;
  pointer-events: none;
}

main > section.hero > dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 44px;
  margin: 40px 0 0;
  font-size: var(--t2);
  color: var(--on2);
}

main > section.hero > dl > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

main > section.hero > dl dt {
  font-size: 30px;
  font-weight: 680;
  letter-spacing: -.03em;
  color: #fff;
}

main > section.hero > dl dd {
  margin: 0;
}

main > section.closing {
  display: block;
  text-align: center;
}

main > section.closing > h2 {
  margin-inline: auto;
}

main > section.closing > p {
  max-width: 58ch;
  margin: 22px auto 0;
  font-size: var(--t4);
  line-height: 1.5;
  color: var(--on2);
  text-wrap: pretty;
}

main > section > details {
  grid-column: 1 / -1;
  max-width: 810px;
  margin-top: 14px;
}

main > section > details > summary {
  cursor: pointer;
  font-size: var(--t2);
  color: var(--ink2);
}

main > section > details > article {
  margin-top: 14px;
}

main > section > details > p {
  margin-top: 14px;
  font-size: var(--t1);
  color: var(--ink3);
}

main > section {
  counter-reset: step;
}

main > section > .article:not(.shot) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 18px;
  padding: 28px 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  counter-increment: step;
}

main > section > .article:not(.shot)::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 9;
  padding-top: 7px;
  font-family: var(--mono);
  font-size: var(--t1);
  color: var(--ink3);
}

/* A step with a picture of its own shows that where its number stood, drawn as a background so it keeps its
   own colours; decoration beside the heading that names the step, so it needs no text of its own. */
main > section > .article:not(.shot)[style]::before {
  content: "";
  align-self: start;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--symbol) center / contain no-repeat;
}

main > section > .article:not(.shot) > * {
  grid-column: 2;
  max-width: 46em;
}

main > section > .article:not(.shot) > h3 {
  font-size: 22px;
}

main > section > .article:not(.shot) > p {
  font-size: var(--t3);
}

main > section > .article:not(.shot) > pre {
  max-width: 46em;
  margin: 14px 0 0;
  padding: 18px 20px;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  overflow-x: auto;
  scrollbar-color: var(--dark-line) transparent;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
}

main > section > .article:not(.shot) > pre > code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

main > section > .article:not(.shot) > pre > code::before {
  content: "$ ";
  color: var(--ink3);
}

main > section > .article:not(.shot) ~ .question {
  grid-column: 1 / -1;
  max-width: 46em;
  margin: -12px 0 14px 90px;
}

main > section > .article:not(.shot) ~ .question + .question {
  margin-top: -14px;
}

main > section > .article:not(.shot) ~ .question > h3 {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 639px) {
  main > section > .article:not(.shot) {
    grid-template-columns: 1fr;
  }
  main > section > .article:not(.shot)::before {
    grid-row: auto;
    padding: 0 0 6px;
  }
  /* A picture is narrow enough to keep its column on a phone, where a number above the heading read better. */
  main > section > .article:not(.shot)[style] {
    grid-template-columns: 44px 1fr;
    gap: 0 14px;
  }
  main > section > .article:not(.shot)[style]::before {
    grid-row: 1 / span 9;
  }
  main > section > .article:not(.shot)[style] > * {
    grid-column: 2;
  }
  main > section > .article:not(.shot) > * {
    grid-column: 1;
  }
  main > section > .article:not(.shot) ~ .question {
    margin-left: 0;
  }
}

main > section > article:first-of-type:nth-last-of-type(2),
main > section > article:first-of-type:nth-last-of-type(2) ~ article {
  grid-column: span 6;
}

/* Use cases slide sideways in one row with no scrollbar, a card about a third wide on a desktop, so most rows of
   types fit one line, and the next card peeks in at the edge and says there is more. The row runs out to the window's edges and a card snaps to the
   column's: the gutter is `--gutter` again, measured against `main`, since a percentage here would be the section's. */
main {
  container-type: inline-size;
}

main > section > .cases {
  --bleed: max(24px, (100cqw - 1120px) / 2);
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  margin-inline: calc(-1 * var(--bleed));
  padding: 4px var(--bleed);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bleed);
  scrollbar-width: none;
}

main > section > .cases::-webkit-scrollbar {
  display: none;
}

main > section > .cases:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* A use case is a tile, its types at its foot, so the types of the row line up whatever its text. */
main > section > .cases > .case {
  flex: none;
  width: clamp(min(280px, 82%), 34%, 380px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

main > section > .cases > .case > h3 {
  font-size: var(--t4);
}

main > section > .cases > .case > ul {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

main > section > .cases > .case > ul > li {
  font-size: var(--t0);
  line-height: 1.4;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--ink2);
}

main > section > :is(.json, .preview) {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--dark-panel);
  border-color: var(--dark-line);
}

main > section > :is(.json, .preview) > p:first-child {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--mono);
  font-size: var(--t0);
  color: var(--on2);
  overflow-wrap: anywhere;
}

main > section > :is(.json, .preview) > p:first-child a {
  text-decoration: none;
}

main > section > :is(.json, .preview) > p:first-child a:hover {
  color: var(--on);
}

main > section > :is(.json, .preview) > p:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent2);
}

main > section > .json > pre {
  flex: 1;
  scrollbar-color: var(--dark-line) transparent;
  margin: 0;
  padding: 18px;
  max-height: 130px;
  overflow: auto;
  font-family: var(--mono);
  font-size: var(--t0);
  line-height: 1.55;
  color: var(--on);
  white-space: pre-wrap;
  word-break: break-word;
}

main > section > .json > pre:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: -2px;
}

main > section > .json > pre > code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  white-space: inherit;
}

main > section > .json > pre b {
  font-weight: inherit;
  color: var(--accent2);
}

main > section > .json > pre i {
  font-style: inherit;
  color: #D9E6DC;
}

main > section > .json > pre [class^="depth-"] {
  display: block;
  padding-left: calc((var(--depth, 0) + 1) * 2ch);
  text-indent: calc((var(--depth, 0) + 1) * -2ch);
}

main > section > .json > pre .depth-1 {
  --depth: 1;
}

main > section > .json > pre .depth-2 {
  --depth: 2;
}

main > section > .json > pre .depth-3 {
  --depth: 3;
}

main > section > .json > pre .depth-4 {
  --depth: 4;
}

main > section > .json > pre .depth-5 {
  --depth: 5;
}

main > section > .json > pre .depth-6 {
  --depth: 6;
}

main > section > .preview > h3 {
  padding: 22px 22px 0;
  font-size: 22px;
  color: #fff;
}

main > section > .preview > p:not(:first-child) {
  padding: 0 22px 22px;
  color: var(--on2);
}

main > section > .preview > ul {
  margin: -8px 0 0;
  padding: 0 22px 22px;
  list-style: none;
  font-size: var(--t2);
  color: var(--on2);
}

main > section > .preview > ul > li {
  padding: 7px 0;
  border-top: 1px solid var(--dark-line);
}

main > section > .shot:only-of-type {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 1fr repeat(8, auto) 1fr;
  gap: 0 48px;
  margin-top: 34px;
  padding: 56px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

main > section > .shot:only-of-type > h3 {
  grid-column: 1;
  font-family: var(--display);
  font-size: clamp(24px,2.8vw,34px);
  letter-spacing: -.02em;
  text-wrap: balance;
}

main > section > .shot:only-of-type > p {
  grid-column: 1;
  font-size: var(--t3);
}

main > section > .article > p:first-child:has(+ h3) {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

main > section > .shot:only-of-type > :nth-child(1):not(figure) {
  grid-row: 2;
}

main > section > .shot:only-of-type > :nth-child(2):not(figure) {
  grid-row: 3;
}

main > section > .shot:only-of-type > :nth-child(3):not(figure) {
  grid-row: 4;
}

main > section > .shot:only-of-type > :nth-child(4):not(figure) {
  grid-row: 5;
}

main > section > .shot:only-of-type > :nth-child(5):not(figure) {
  grid-row: 6;
}

main > section > .shot:only-of-type > :nth-child(6):not(figure) {
  grid-row: 7;
}

main > section > .shot:only-of-type > :nth-child(7):not(figure) {
  grid-row: 8;
}

main > section > .shot:only-of-type > figure {
  order: 0;
  border-bottom: 0;
  grid-column: 2;
  grid-row: 1 / -1;
  justify-self: end;
  width: 100%;
  max-width: 380px;
  margin: 0;
  padding: 0;
  border-radius: var(--r2);
  overflow: hidden;
}

main > section > .shot:only-of-type > figure > div {
  max-height: none;
  border: 1px solid var(--line);
  border-radius: var(--r2);
}

@media (max-width: 819px) {
  main > section > .shot:only-of-type {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0;
  }
  main > section > .shot:only-of-type > :nth-child(n):not(figure) {
    grid-row: auto;
  }
  main > section > .shot:only-of-type > figure {
    grid-column: 1;
    grid-row: auto;
    margin-top: 24px;
    justify-self: start;
  }
}

@media (max-width: 639px) {
  main > section > article:first-of-type:nth-last-of-type(2),
  main > section > article:first-of-type:nth-last-of-type(2) ~ article,
  main > section > :is(.json, .preview) {
    grid-column: 1 / -1;
  }
  main > section > .json > pre {
    max-height: 170px;
  }
}

main > section > .terms {
  grid-column: 1 / -1;
  list-style: none;
  max-width: 810px;
  margin: -4px 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

main > section > .terms li {
  font-size: var(--t1);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--ink2);
}

main > section > article ~ .terms {
  margin: 14px 0 0;
}

main > section > .terms li a {
  color: inherit;
  text-decoration: none;
}

main > section > .terms li a:hover {
  color: var(--ink);
  text-decoration: none;
}

main > section > :is(.terms, .cases) [style]::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 6px;
  vertical-align: -0.15em;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  forced-color-adjust: none;
}

main article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 22px;
}

main article p {
  font-size: var(--t2);
  color: var(--ink2);
  line-height: 1.5;
}

main > section > .offer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

main > section.hero:has(+ article) {
  padding-bottom: 88px;
}

main > section.hero:has(+ article) > h1 {
  max-width: 15em;
  font-size: clamp(30px,4.2vw,52px);
}

main > article {
  padding: 88px var(--gutter);
  background: none;
  border: 0;
  border-radius: 0;
}

main > article > * {
  max-width: 680px;
}

main > article:only-child {
  min-height: calc(100vh - 400px);
}

main > article > h1 {
  margin-bottom: 32px;
}

main > article h2 {
  margin: 48px 0 14px;
  font-size: clamp(22px,2.6vw,30px);
}

main > article > h2:first-child {
  margin-top: 0;
}

main > article h3 {
  margin: 40px 0 12px;
  font-size: var(--t4);
}

main > article p,
main > article li {
  font-size: var(--t3);
  line-height: 1.6;
}

main > article :is(ul, ol) {
  margin: 0 0 .8em;
  padding: 0;
  list-style: none;
}

main > article li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
}

main > article li:last-child {
  border-bottom: 1px solid var(--line);
}

main > article li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
}

main > article ul > li::before {
  content: "";
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

main > article ol {
  counter-reset: item;
}

main > article ol > li {
  counter-increment: item;
}

main > article ol > li::before {
  content: counter(item);
  top: 11px;
  font-size: var(--t1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

main > article li > strong {
  color: var(--ink);
}

main > article > section {
  margin-top: 56px;
}

main > article dl {
  margin: 0;
}

main > article dl dt {
  margin-top: 24px;
  font-weight: 600;
}

main > article dl dd {
  margin: 0;
  color: var(--ink2);
}

main > article pre {
  margin: 0 0 1em;
  padding: 18px;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  overflow-x: auto;
  scrollbar-color: var(--line2) transparent;
  font-family: var(--mono);
  font-size: var(--t0);
  color: var(--ink);
}

main > article pre:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main > article pre > code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
}

main > section > .offer:nth-of-type(2) {
  border-color: var(--ink);
}

/* In a row of four a tile has about 220px for its text, so the padding and the list give a little, and a line
   of the list holds about 27 characters. */
@media (min-width: 1100px) {
  main > section:has(> .offer:nth-of-type(4)) > .offer {
    padding: 20px;
  }

  main > section:has(> .offer:nth-of-type(4)) > .offer > ul {
    font-size: 14px;
  }
}

main > section > .offer h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink2);
  margin: 0;
}

main > section > .offer > h3 + p > b {
  font-size: 40px;
  font-weight: 680;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
}

main > section > .offer > h3 + p > small {
  font-size: var(--t3);
  font-weight: 500;
  color: var(--ink2);
}

main > section > .offer > :is(p, ul):last-of-type {
  flex: 1;
}

main > section > .offer > ul {
  margin: 6px 0 12px;
  padding: 0;
  list-style: none;
  font-size: var(--t2);
  color: var(--ink2);
}

main > section > .offer > ul > li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

main article > a {
  margin-top: 8px;
}

main > article > a {
  margin: 40px 10px 0 0;
}

main > article > nav {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

main > article > nav > h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink3);
}

main > article > nav > a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 14px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  font-size: var(--t2);
  color: var(--ink2);
  text-decoration: none;
}

main > article > nav > a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

main > section > .offer:nth-of-type(2) > a {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

main > section > .offer:nth-of-type(2) > a:hover {
  background: #000;
}

main > section > .offer:nth-of-type(n+5) {
  grid-column: 1 / -1;
  display: block;
  max-width: 810px;
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

main > section > .offer:nth-of-type(n+5) > h3,
main > section > .offer:nth-of-type(n+5) > h3 + p {
  display: inline-block;
  margin: 0 8px 6px 0;
  font-size: var(--t2);
}

main > section > .offer:nth-of-type(n+5) > h3 + p > b {
  font-size: var(--t2);
  color: var(--ink2);
}

main > section > .offer:nth-of-type(n+5) > p {
  font-size: var(--t1);
}

main > section > .offer:nth-of-type(n+5) > a {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--t1);
  color: var(--accent);
  white-space: normal;
}

main > section > .offer:nth-of-type(n+5) > a:hover {
  background: none;
  text-decoration: underline;
}

main > section > article > blockquote {
  margin: 0;
  font-family: var(--mono);
  font-size: calc(var(--t1) - 1px);
  line-height: 1.6;
}

main > section > article > blockquote p {
  color: var(--ink);
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: anywhere;
}

main > section article > blockquote:has(+ button) {
  cursor: copy;
}

main > section article > blockquote + button {
  display: block;
  margin: 14px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: calc(var(--t0) - 1px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
  cursor: copy;
}

main > section article > blockquote:hover + button,
main > section article > blockquote + button:hover {
  text-decoration: underline;
}

main > section article > blockquote + button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

main > section article > blockquote ~ [role="status"] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

main > section > article > blockquote ~ p {
  margin-top: 12px;
  font-size: var(--t1);
}

main > section > figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

main > section > figure > div {
  height: 300px;
  padding: 28px 28px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  background: var(--sunk);
}

main > section > figure > div > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: var(--r1) var(--r1) 0 0;
  box-shadow: 0 8px 24px rgba(19,23,20,.12);
}

main > section > figure > figcaption {
  padding: 20px 22px;
  font-size: var(--t2);
  color: var(--ink2);
  line-height: 1.5;
}

main > section > figure > figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

main > section > :is(p, ul) + figure {
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 26px;
}

main > section > :is(p, ul) + figure > div {
  height: auto;
  padding: 0;
  display: block;
  overflow: visible;
  background: none;
}

main > section > :is(p, ul) + figure > div > img {
  width: 100%;
  max-height: none;
  border-radius: var(--r2) var(--r2) 0 0;
  border: 1px solid var(--line);
  box-shadow: none;
}

/* Without a caption under it the picture ends in its own corners. */
main > section > :is(p, ul) + figure > div:last-child > img {
  border-radius: var(--r2);
}

/* Where its types or its picture are the last a section shows, the section's own padding ends it. */
main > section > :is(.terms, figure):last-child {
  margin-bottom: 0;
}

main > section > :is(p, ul) + figure > figcaption {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r2) var(--r2);
}

main > section > :is(p, ul) + figure > figcaption b {
  display: inline;
  margin: 0;
}

main > section > .shot {
  display: flex;
  flex-direction: column;
}

main > section > .shot > figure {
  order: -1;
  margin: -22px -22px 18px;
  border-radius: calc(var(--r2) - 1px) calc(var(--r2) - 1px) 0 0;
  overflow: hidden;
}

main > section > .shot > figure > div {
  max-height: 250px;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--sunk);
}

main > section > .shot > figure > div > img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(19,23,20,.12);
}

body > footer {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  column-gap: 28px;
  row-gap: 0;
  padding: 48px var(--gutter) 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink2);
}

/* In two columns the fourth, the prices, is left out: its links lead to the home page's own section, which the
   menu reaches, and four columns fill two rows evenly. */
@media (max-width: 859px) {
  body > footer {
    grid-template-columns: 1fr 1fr;
  }

  body > footer > div:nth-of-type(4) {
    display: none;
  }
}

/* A column per list the site's footer holds, three today, more as lists are added: a count the stylesheet
   cannot read from the feed, so it counts the columns, as the offers' row does. */
@media (min-width: 860px) {
  body > footer:has(> div:nth-of-type(4)) {
    grid-template-columns: repeat(4,1fr);
  }

  body > footer:has(> div:nth-of-type(5)) {
    grid-template-columns: repeat(5,1fr);
  }

  body > footer:has(> div:nth-of-type(6)) {
    grid-template-columns: repeat(6,1fr);
  }
}

body > footer > div {
  margin-bottom: 36px;
}

body > footer > div > b {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink3);
}

body > footer > div > b a {
  color: inherit;
  text-decoration: none;
}

body > footer > div > a {
  display: block;
  padding: 3px 0;
  color: var(--ink2);
  text-decoration: none;
}

body > footer > div > a:hover,
body > footer > div > a[aria-current] {
  color: var(--ink);
}

body > footer > nav,
body > footer > div + p:last-child {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

body > footer > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--ink3);
}

body > footer > nav a {
  color: var(--ink3);
  text-decoration: none;
}

body > footer > nav a:hover,
body > footer > nav [aria-current] {
  color: var(--ink);
}

body > footer > p:last-child {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink3);
}

/* On a wide screen the languages take the right half of the last line and the trademark its left */
@media (min-width: 860px) {
  body > footer {
    grid-auto-flow: row dense;
  }

  body > footer > nav {
    grid-column: -3 / -1;
    justify-content: flex-end;
    margin-left: -28px;
  }

  body > footer > nav + p:last-child {
    grid-column: 1 / -3;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

a {
  transition: color .18s ease,background-color .18s ease,border-color .18s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main > section.hero > * {
  animation: rise .6s cubic-bezier(.2,.7,.2,1) backwards;
}

main > section.hero > h1 {
  animation-delay: .05s;
}

main > section.hero > h1 + p {
  animation-delay: .1s;
}

main > section.hero > p.actions {
  animation-delay: .15s;
}

main > section.hero > figure {
  animation: rise .7s cubic-bezier(.2,.7,.2,1) .15s backwards;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  max-width: 600px;
  margin: 40px 0 0;
  text-align: left;
}

form > * {
  grid-column: 1 / -1;
}

form > :is(.name, .email) {
  grid-column: auto;
}

form fieldset {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Four offers to choose from sit in rows as their tiles do, four or two to a row, so none stands alone under the
   others. Each width keeps to its own range, since this selector outweighs the one column on a phone. */
@media (min-width: 860px) {
  form fieldset:has(label:nth-of-type(4)) {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}

@media (min-width: 640px) and (max-width: 859px) {
  form fieldset:has(label:nth-of-type(4)) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

form fieldset label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--r1);
  font-size: var(--t2);
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .15s ease,border-color .15s ease,color .15s ease;
}

form fieldset label:hover {
  background: var(--sunk);
}

form fieldset input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

form fieldset label > b {
  font-weight: 600;
}

form fieldset label > span {
  font-size: var(--t1);
  color: var(--ink2);
}

form fieldset label > span b {
  font-weight: 600;
}

form fieldset label:has(:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

form fieldset label:has(:checked) > span {
  color: rgb(255 255 255 / .9);
}

form fieldset label:has(:focus-visible),
form > button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

form > label {
  display: grid;
  gap: 6px;
  font-size: var(--t1);
  font-weight: 600;
}

form input:not([type="radio"],[type="checkbox"]),
form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--r1);
  color: var(--ink);
  font: inherit;
  font-size: var(--t2);
  font-weight: 400;
}

form :is(input,textarea)::placeholder {
  color: var(--ink2);
  opacity: 1;
}

@media (pointer: coarse) {
  form input:not([type="radio"],[type="checkbox"]),
  form textarea {
    font-size: 16px;
  }
}

form:has([data-free]:checked) > .message {
  display: none;
}

form textarea {
  height: 64px;
  min-height: 64px;
  max-height: 122px;
  resize: vertical;
}

form :is(input,textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

form > .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink2);
  cursor: pointer;
}

form [type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

form > label a {
  color: var(--ink);
}

form > label [aria-hidden="true"] {
  color: var(--accent);
}

form > p[aria-hidden] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The second trap stands where the form has it, at a field's size, and is cut away to nothing, so a machine
   that asks whether a field is on the page and has a size is told yes. It takes no click and no room. */
form > p.subject {
  left: auto;
  width: 200px;
  height: 40px;
  margin: 0;
  clip-path: inset(50%);
  pointer-events: none;
}

form > p[role="alert"] {
  margin: 0;
  font-size: var(--t2);
  font-weight: 600;
  color: #B3261E;
}

form > button {
  justify-self: start;
  min-height: 44px;
  padding: 11px 22px;
  background: var(--accent);
  border: 0;
  border-radius: var(--r1);
  color: #fff;
  font: inherit;
  font-size: var(--t2);
  font-weight: 600;
  cursor: pointer;
}

form > button:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
}

form > button:disabled {
  opacity: .6;
  cursor: progress;
}

main > article > p[role="status"] {
  max-width: 600px;
  margin: 0;
}

article > p[role="status"] + a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 24px 0 0;
  padding: 11px 22px;
  background: var(--accent);
  border: 0;
  border-radius: var(--r1);
  color: #fff;
  font-size: var(--t2);
  font-weight: 600;
  text-decoration: none;
}

article > p[role="status"] + a:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
}

body > dialog {
  width: min(640px,calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  background: var(--bg);
  border: 0;
  border-radius: var(--r2);
  color: var(--ink);
  box-shadow: 0 24px 64px rgb(0 0 0 / .28);
}

body > dialog::backdrop {
  background: rgb(19 23 20 / .6);
}

body > dialog > button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--ink2);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

body > dialog > button:hover {
  background: var(--sunk);
  color: var(--ink);
}

body > dialog article {
  padding: 32px 28px 28px;
}

body > dialog h1 {
  margin: 0 40px 12px 0;
  font-size: clamp(26px,3.4vw,34px);
}

body > dialog article > p {
  font-size: var(--t2);
  color: var(--ink2);
}

body > dialog form {
  max-width: none;
  margin-top: 24px;
}

@media (max-width: 639px) {
  form fieldset {
    grid-template-columns: 1fr;
  }
  form fieldset label {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
  }
  form > :is(.name, .email) {
    grid-column: 1 / -1;
  }
  body > dialog article {
    padding: 28px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none!important;
    transition: none!important;
  }
}
