/* XLKeys. A white page, big light type, green pills and quiet tinted panels.
   Motion is orchestrated: the headline types itself, particles drift around
   it, and a few surfaces grow or move as the page scrolls. */

/* XLK Sans: Google Sans Flex, cut down by tools/make-text-font.py to the
   weights, optical sizes and roundness the site uses. */
@font-face {
  font-family: "XLK Sans";
  src: url("/fonts/xlk-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --white: #fff;
  --tint: #f4f8f5;
  --ground: #eef4f0;
  --ground-deep: #e2ece5;
  --ink: #0f1c13;
  --ink-soft: #3d4c42;
  --ink-faint: #5d6b61;
  --line: rgba(15, 28, 19, 0.12);
  --hairline: rgba(15, 28, 19, 0.07);
  --tonal: rgba(15, 28, 19, 0.04);
  --green: #107c41;
  --green-hover: #0b6634;
  --green-text: #005729;
  --tick: #aef1bb;
  --sequence: #34b064;
  --alarm: #8f1d14;
  --deep: #0f1c13;
  --on-deep: #eef4f0;
  --on-deep-soft: rgba(238, 244, 240, 0.7);
  --caret: linear-gradient(180deg, #aef1bb, #34b064 55%, #107c41);

  --margin: 1rem;
  --content: 81rem;
  --nav-h: 3.25rem;
  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2.25rem;

  --sans: "XLK Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-quart: cubic-bezier(0.165, 0.84, 0.44, 1);

  /* The type steps at 40rem and 64rem. */
  --t-body: 0.9375rem;
  --t-body-lh: 1.4667;
  --t-small: 0.875rem;
  --t-display: 2.35rem;
  --t-statement: 1.75rem;
  --t-title: 1.75rem;
  --t-card: 1.375rem;
}

@media (min-width: 40rem) {
  :root {
    --margin: 2.5rem;
    --t-body: 1rem;
    --t-display: 3.5rem;
    --t-statement: 2.5rem;
    --t-title: 2.25rem;
    --t-card: 1.5rem;
  }
}

@media (min-width: 64rem) {
  :root {
    --margin: 4.5rem;
    --t-body: 1.09375rem;
    --t-body-lh: 1.45;
    --t-small: 0.90625rem;
    --t-display: 5rem;
    --t-statement: 3.375rem;
    --t-title: 2.625rem;
    --t-card: 1.75rem;
  }
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 7rem;
  background: var(--white);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: var(--t-body-lh);
  letter-spacing: 0.01em;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--tick);
  color: var(--ink);
}

img,
svg,
video {
  max-width: 100%;
}

a {
  color: var(--green-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(0, 87, 41, 0.4);
  transition: text-decoration-color 0.2s var(--ease);
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 450;
  text-wrap: balance;
}

p {
  margin: 0;
}

p,
li,
dd {
  text-wrap: pretty;
}

p + p {
  margin-top: 0.85em;
}

b,
strong {
  font-weight: 550;
}

.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .fill {
  fill: currentColor;
  stroke: none;
}

.skip {
  position: absolute;
  left: var(--margin);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- buttons: pills ---- */

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9375rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: 450 var(--t-body) / 1.45 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease-out,
    border-color 0.15s ease-out,
    color 0.15s ease-out,
    transform 0.15s ease-out;
}

.action:hover {
  background: var(--green-hover);
  color: var(--white);
}

.action:active {
  transform: scale(0.98);
}

.action--quiet {
  border-color: var(--hairline);
  background: var(--tonal);
  color: var(--ink);
}

.action--quiet:hover {
  background: var(--ground);
  color: var(--ink);
}

.action--light {
  background: var(--white);
  color: var(--ink);
}

.action--light:hover {
  background: var(--ground);
  color: var(--ink);
}

.action--large {
  min-height: 3rem;
  padding: 0 1.5rem;
  font-size: 1.09375rem;
}

.action--small {
  min-height: 2.25rem;
  padding: 0 0.5rem 0 1rem;
  font-size: 0.90625rem;
}

.action:disabled,
.action[aria-disabled="true"] {
  border-color: transparent;
  background: var(--ground);
  color: var(--ink-faint);
  cursor: not-allowed;
  transform: none;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 1.5rem;
  margin: 0;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--ground);
  color: var(--green-text);
  font-size: 0.78125rem;
  font-weight: 500;
  line-height: 1;
}

/* A segmented switch: a tinted track with a white thumb under the choice. */
.switch {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.25rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--tint);
}

.switch[hidden] {
  display: none;
}

.switch button {
  min-height: 2.25rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 450 0.90625rem/1 var(--sans);
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

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

.switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline), 0 2px 8px rgba(15, 28, 19, 0.08);
}

/* Keys: rounded badges in the rounded cut of the face, as the app draws them over the ribbon. */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.875rem;
  height: 1.875rem;
  padding: 0 0.45rem;
  border-radius: 0.5625rem;
  background: var(--white);
  color: var(--ink);
  font: 600 0.9375rem/1 var(--sans);
  font-variation-settings: "ROND" 100;
  letter-spacing: 0;
  box-shadow: inset 0 -2px 0 rgba(15, 28, 19, 0.1), 0 0 0 1px rgba(15, 28, 19, 0.12), 0 1px 2px rgba(15, 28, 19, 0.1);
}

.keys {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* The typing caret: a bar in the green ramp that follows the letters as they appear. */
.caret {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.08em;
  min-width: 2px;
  height: 1em;
  border-radius: 1px;
  background: var(--caret);
  pointer-events: none;
  animation: blink 1s steps(1) infinite;
}

.caret.is-moving {
  animation: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---- the header: a bar that steps aside while you read down, and back when you scroll up ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition:
    transform 0.3s ease-in-out,
    background-color 0.3s;
}

.topbar.is-away {
  transform: translateY(-100%);
}

.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 var(--margin);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: block;
  width: 1.625rem;
  height: 1.625rem;
}

.brand__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__name {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav {
  flex: 1;
  margin-left: 1.75rem;
}

.nav__links {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.90625rem;
  font-weight: 450;
  text-decoration: none;
  transition:
    background-color 0.15s ease-out,
    color 0.15s ease-out;
}

.nav__links a:hover {
  background: var(--tonal);
  color: var(--ink);
}

.nav__links a[aria-current="page"] {
  background: var(--ground);
  color: var(--ink);
}

.topbar__end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.menu-button .icon--close,
body:has(.menu:popover-open) .menu-button .icon--menu {
  display: none;
}

body:has(.menu:popover-open) .menu-button .icon--close {
  display: block;
}

/* The full list of sections on a phone: a sheet below the bar. */
.menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0.5rem var(--margin) 2rem;
  border: 0;
  background: var(--white);
  color: var(--ink);
  overflow-y: auto;
}

.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--hairline);
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  color: var(--ink);
  font-size: 1.25rem;
  text-decoration: none;
}

.menu a[aria-current="page"] {
  color: var(--green-text);
}

@media (max-width: 63.99rem) {
  .nav,
  .topbar__end .action {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }
}

/* The notice under the bar: the current version and its notes. */
.bar {
  position: relative;
  border-top: 1px solid var(--hairline);
  background: var(--tint);
  box-shadow: 0 2px 8px rgba(15, 28, 19, 0.04);
}

.bar[hidden] {
  display: none;
}

.bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.375rem 3rem 0.375rem 1.25rem;
  color: var(--ink);
  font-size: 0.90625rem;
  line-height: 1.35;
  text-decoration: none;
}

.bar__chip {
  flex: none;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
}

.bar__more {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.15rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  font-weight: 500;
}

.bar__more .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s var(--ease);
}

.bar__link:hover .bar__more .icon {
  transform: translateX(3px);
}

.bar__close {
  position: absolute;
  top: 50%;
  right: max(0.5rem, calc(var(--margin) - 1rem));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transform: translateY(-50%);
}

.bar__close:hover {
  background: var(--tonal);
  color: var(--ink);
}

@media (max-width: 39.99rem) {
  .bar__link {
    justify-content: flex-start;
    padding-left: var(--margin);
    font-size: 0.8125rem;
  }

  .bar__more {
    padding-left: 0;
    border-left: 0;
    font-size: 0;
  }

  .bar__more .icon {
    width: 1.1rem;
    height: 1.1rem;
  }
}

/* ---- the particle fields ---- */

.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---- the front page: hero ---- */

.page--home {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--nav-h) - 2.5rem);
  padding: 2.5rem var(--margin) 8rem;
  overflow: hidden;
  text-align: center;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  font-size: 1.375rem;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.hero__brand .brand__mark {
  width: 1.75rem;
  height: 1.75rem;
}

.hero__title {
  position: relative;
  max-width: 13.75em;
  font-size: var(--t-display);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

@media (min-width: 64rem) {
  .hero__title {
    line-height: 0.9;
  }
}

.hero__act {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5rem;
}

.hero__note {
  max-width: 46ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

/* Each sentence on its own line, the trial on the second. */
.hero__note span {
  display: block;
}

/* On a phone the ring of dashes reaches down to the note; it sits below the
   ring there instead. Offset, so the headline and button keep their place. */
@media (max-width: 47.99rem) {
  .hero__note {
    position: relative;
    top: 3.5rem;
  }
}

@media (min-width: 64rem) {
  .hero__act {
    margin-top: 4rem;
  }
}

/* Typing: letters wait unseen until their turn, inside words that do not break. */
.typed-w {
  white-space: nowrap;
}

.typed-ch {
  opacity: 0;
}

.typed-ch.is-on {
  opacity: 1;
}

.typed-ch.is-next {
  opacity: 0.25;
}

/* ---- the illustration: an ink card that grows to the page's width ---- */

.demo-stage {
  padding: 0 0.375rem;
}

.demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  width: 100%;
  padding: 4.5rem 1rem 4.5rem;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--deep);
  color: var(--on-deep);
  transform-origin: 50% 50%;
}

/* On wider screens the window takes nearly all of the card, and the key strip
   floats over its foot, as the strip does inside the app videos. */
@media (min-width: 48rem) {
  .demo {
    min-height: 0;
    gap: 0;
    padding: 3.75rem clamp(1rem, 2.2vw, 2rem) 1.75rem;
  }

  .demo__strip {
    position: absolute;
    left: 50%;
    bottom: 3.25rem;
    z-index: 1;
    flex-wrap: nowrap;
    min-height: 0;
    margin: 0;
    padding: 0.55rem 1.4rem 0.55rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 28, 19, 0.9);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .demo__strip.is-empty {
    opacity: 0;
  }
}

/* Excel's window, as a video made in video/. The strip under it follows it.
   It takes the card's width, as far as the screen's height lets the card fit. */
.demo__screen {
  width: min(100%, calc((100svh - 5.5rem) * 1.6));
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(238, 244, 240, 0.14),
    0 40px 80px -32px rgba(0, 0, 0, 0.7);
}

.demo__screen,
.demo__strip {
  transition:
    opacity 0.6s var(--ease),
    transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- the intro, played once by home.js before the video: the mark forms
   from particles, joins its name, then lifts away as the window rises ---- */

.demo__intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition:
    opacity 0.55s var(--ease),
    transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s var(--ease);
}

.demo__lockup {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.demo__mark {
  display: block;
  width: clamp(3.25rem, 7vw, 6.25rem);
  aspect-ratio: 1;
  opacity: 0;
  transform-origin: 50% 50%;
}

.demo__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.demo__name {
  color: rgba(238, 244, 240, 0.32);
  font: 450 clamp(2.75rem, 6.75vw, 5.75rem) / 1 var(--sans);
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateX(-0.75rem);
}

.demo__intro.is-mark .demo__mark {
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}

.demo__intro.is-mark .demo__dust {
  opacity: 0;
}

/* The name comes in as the mark arrives beside it, grey brightening to white. */
.demo__intro.is-lockup .demo__name {
  color: var(--on-deep);
  opacity: 1;
  transform: none;
  transition:
    color 1s 0.65s var(--ease),
    opacity 0.6s 0.5s var(--ease),
    transform 0.9s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.demo__intro.is-leaving {
  opacity: 0;
  transform: translateY(-1.5rem) scale(0.97);
}

/* While the intro plays, the window waits small and the strip and button hidden. */
.demo.is-intro .demo__screen {
  opacity: 0;
  transform: scale(0.55);
}

.demo.is-intro .demo__strip,
.demo.is-intro .demo__pause {
  opacity: 0;
  pointer-events: none;
}

.demo__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 64rem) {
  .demo__keys kbd {
    min-width: 3.25rem;
    height: 3.25rem;
    font-size: 1.375rem;
  }
}

.demo__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  min-height: 3.5rem;
}

.demo__keys {
  display: inline-flex;
  gap: 0.5rem;
}

.demo__keys kbd {
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.7rem;
  border-radius: 0.7rem;
  background: rgba(238, 244, 240, 0.1);
  color: var(--white);
  font-size: 1.125rem;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(238, 244, 240, 0.12);
  animation: key-in 0.35s var(--ease);
}

.demo__keys kbd:last-child {
  background: var(--green);
}

@keyframes key-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem) scale(0.9);
  }
}

.demo__result {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tick);
  font-size: var(--t-body);
  transition: opacity 0.3s var(--ease);
}

.demo__result b {
  color: var(--white);
  font-weight: 450;
}

.demo__result.is-off {
  opacity: 0;
}

.demo__pause {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(238, 244, 240, 0.14);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.15s ease-out;
}

.demo__pause:hover {
  background: rgba(238, 244, 240, 0.24);
}

.demo__pause .icon--play,
.demo__pause[aria-pressed="true"] .icon--pause {
  display: none;
}

.demo__pause[aria-pressed="true"] .icon--play {
  display: block;
}

@media (max-width: 47.99rem) {
  .demo__pause {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .demo__strip {
    padding-right: 2.5rem;
  }
}

/* ---- the arc of keys and the statement under it ---- */

.intro {
  padding: 7.5rem 0 5.5rem;
  overflow-x: clip;
}

.arc {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 7.5rem;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.arc li {
  flex: none;
  will-change: transform;
}

.arc kbd {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--hairline);
}

.arc li:first-child kbd,
.arc li:nth-last-child(4) kbd {
  font-size: 0.875rem;
}

@media (min-width: 64rem) {
  .arc kbd {
    width: 6rem;
    height: 6rem;
    font-size: 1.75rem;
  }

  .arc li:first-child kbd,
  .arc li:nth-last-child(4) kbd {
    font-size: 1.125rem;
  }
}

.statement {
  position: relative;
  max-width: calc(19em + 2 * var(--margin));
  margin: 0;
  padding: 0 var(--margin);
  box-sizing: border-box;
  font-size: var(--t-statement);
  font-weight: 450;
  line-height: 1.07;
  letter-spacing: -0.015em;
}

@media (max-width: 63.99rem) {
  .statement {
    margin-inline: auto;
    text-align: center;
  }
}

@media (min-width: 64rem) {
  .statement {
    margin-left: max(0px, calc((100% - var(--content) - 2 * var(--margin)) / 2));
  }
}

/* ---- one row per app ---- */

.apps {
  display: grid;
  gap: 1.5rem;
  max-width: calc(var(--content) + 2 * var(--margin));
  margin: 0 auto;
  padding: 0 var(--margin) 7.5rem;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.app__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 30rem;
}

.app__name {
  font-size: var(--t-title);
  line-height: 1.04;
  letter-spacing: -0.017em;
}

.app__about {
  color: var(--ink-soft);
}

.seqs {
  align-self: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seqs li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.6rem 0;
  border-top: 1px solid var(--hairline);
}

.seqs li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.seq__title {
  display: block;
  line-height: 1.3;
}

.seq__where {
  display: block;
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.35;
}

.app__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 39rem;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #cdf3d6 0%, #e6f5ea 48%, #f4f8f5 100%);
}

.app:nth-child(2) .app__media {
  background: linear-gradient(180deg, #1d4a2d 0%, #13291b 50%, #0f1c13 100%);
}

.app__screen {
  position: absolute;
  top: 16%;
  left: 7.5%;
  right: 7.5%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--hairline), 0 30px 60px -24px rgba(15, 40, 24, 0.35);
}

.app__screen video,
.app__screen img,
.app__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The app videos have no player chrome: one round button pauses them, as on
   the illustration at the top of the page. */
.app__pause {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 28, 19, 0.62);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.15s ease-out;
}

.app__pause:hover {
  background: rgba(15, 28, 19, 0.82);
}

.app__pause .icon--play,
.app__pause[aria-pressed="true"] .icon--pause {
  display: none;
}

.app__pause[aria-pressed="true"] .icon--play {
  display: block;
}

.app__photo {
  position: absolute;
  left: 12%;
  bottom: 7%;
  width: 40%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--hairline), 0 18px 36px -12px rgba(15, 40, 24, 0.35);
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.4;
  text-align: center;
}

.placeholder svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.25rem;
  color: var(--ink-faint);
}

.placeholder b {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
}

.app__screen .placeholder {
  justify-content: flex-start;
  padding-top: 12%;
}

.app__screen .placeholder span {
  max-width: 30ch;
}

.app__photo .placeholder {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0.8rem 0.9rem;
  font-size: 0.8125rem;
  text-align: left;
}

.app__photo .placeholder svg {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 0 auto;
}

.app__photo .placeholder b {
  font-size: 0.875rem;
}

@media (max-width: 47.99rem) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .app + .app {
    margin-top: 3.5rem;
  }

  .app__copy {
    align-items: center;
    max-width: none;
    text-align: center;
  }

  .seqs {
    text-align: left;
  }

  .app__media {
    justify-self: stretch;
    max-width: none;
  }

  .app__screen .placeholder span,
  .app__photo .placeholder span {
    display: none;
  }

  .seqs li {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
}

/* ---- sections below the apps: a hairline across the page, then the content in its column ---- */

.section {
  padding: 4.5rem max(var(--margin), calc((100% - var(--content)) / 2)) 7.5rem;
  border-top: 1px solid var(--hairline);
}

.section-title {
  max-width: 18em;
  font-size: var(--t-title);
  line-height: 1.04;
  letter-spacing: -0.017em;
}

.section-lede {
  max-width: 25rem;
  color: var(--ink-soft);
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  gap: 1.5rem 4rem;
  align-items: end;
  align-items: first baseline;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

@media (max-width: 47.99rem) {
  .split-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

.small-print {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.5;
}

.aside-note {
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.unset {
  display: inline-block;
  padding: 0 0.5em;
  border-radius: 999px;
  background: rgba(143, 29, 20, 0.08);
  color: var(--alarm);
  font-size: 0.9375em;
  font-weight: 500;
}

/* ---- the lookup ---- */

.lookup__panel {
  position: relative;
  isolation: isolate;
  padding: 1.25rem;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--tint);
}

@media (min-width: 40rem) {
  .lookup__panel {
    padding: 2.5rem;
  }
}

@media (min-width: 64rem) {
  .lookup__panel {
    padding: 3rem;
  }
}

/* One sweep of light across the panel when a sequence resolves. */
.lookup__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.9) 48%, rgba(174, 241, 187, 0.55) 52%, transparent 65%);
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
}

.lookup.is-sweeping .lookup__panel::after {
  animation: sweep 1.1s var(--ease);
}

@keyframes sweep {
  0% {
    opacity: 1;
    background-position: 130% 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background-position: -30% 0;
  }
}

.lookup__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.lookup__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 5rem;
}

.sequence__lead {
  color: var(--ink-soft);
}

.sequence__keys {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sequence__keys span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45em;
  height: 1.45em;
  padding: 0 0.22em;
  border-radius: 0.3em;
  background: var(--white);
  font-size: 2.4rem;
  font-weight: 600;
  font-variation-settings: "ROND" 100;
  line-height: 1;
  box-shadow: inset 0 -0.06em 0 rgba(15, 28, 19, 0.1), 0 0 0 1px rgba(15, 28, 19, 0.1), 0 10px 22px -12px rgba(15, 40, 24, 0.4);
}

.sequence__keys .is-waiting {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 2px rgba(15, 28, 19, 0.16);
}

.result {
  max-width: 34ch;
  font-size: 1.375rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.result b {
  font-weight: 500;
}

.lookup__left .action-row {
  margin-top: 1.5rem;
}

.board {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--hairline);
}

.rows {
  max-height: 26rem;
  margin: 0;
  padding: 0.4rem 0.4rem 2.25rem;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 2.5rem), transparent);
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

.row {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 0.9rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.row:hover {
  background: var(--tint);
}

.row[aria-current="true"] {
  background: var(--ground);
}

.row__keys {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.row__keys kbd {
  min-width: 1.6rem;
  height: 1.6rem;
  font-size: 0.875rem;
}

.row__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
  white-space: nowrap;
}

.row[aria-current="true"] .row__more {
  color: var(--green-text);
  font-weight: 500;
}

.runs-mark {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-ticking {
  animation: tick 1.1s var(--ease);
}

@keyframes tick {
  from {
    background-color: var(--tick);
  }
}

@media (max-width: 59.99rem) {
  .lookup__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 33.99rem) {
  .row {
    grid-template-columns: 5.75rem minmax(0, 1fr);
    row-gap: 0.15rem;
  }

  .row__more {
    grid-column: 2;
  }

  .row__more:empty {
    display: none;
  }

  .sequence__keys span {
    font-size: 2rem;
  }
}

@media (min-width: 40rem) {
  .sequence__keys span {
    font-size: 3rem;
  }
}

/* ---- steps, notices, facts ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  padding: 0 1.5rem 0 0;
  counter-increment: step;
}

/* The dividers are inset shadows, so each sits with the padding that clears it. */
.steps > li + li {
  padding: 0 1.5rem;
  box-shadow: inset 1px 0 0 var(--hairline);
}

.steps > li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: var(--tint);
  font-size: 1.0625rem;
  font-weight: 500;
  font-variation-settings: "ROND" 100;
  box-shadow: 0 0 0 1px var(--hairline);
}

/* The download page's steps, one to a row, each with its pictures beside it. */
.steps--guide {
  grid-template-columns: minmax(0, 1fr);
}

.steps--guide > li,
.steps--guide > li + li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 17rem) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0.5rem 1.5rem;
  align-items: start;
  padding: 2rem 0;
  box-shadow: inset 0 1px 0 var(--hairline);
}

.steps--guide > li:first-child {
  padding-top: 0.5rem;
  box-shadow: none;
}

.steps--guide > li::before {
  margin-bottom: 0;
}

.steps--guide h3 {
  grid-column: 2;
  align-self: center;
}

.steps--guide h3 + p {
  grid-column: 2;
  margin-top: 0;
}

.steps--guide .shots {
  grid-column: 3;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 47.99rem) {
  .steps--guide > li,
  .steps--guide > li + li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .steps--guide .shots {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  }
}

/* Pictures of what macOS shows, numbered in order, each with what to press under it. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 1.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: shot;
}

.shots li {
  counter-increment: shot;
}

.shots li + li {
  margin-top: 0;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--hairline);
}

.shots figcaption {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.4;
}

.shots figcaption::before {
  content: counter(shot) ". ";
  color: var(--ink);
  font-weight: 500;
}

.prose li .shots {
  margin: 1rem 0 0.5rem;
  padding-left: 0;
}

.prose .shots li + li {
  margin-top: 0;
}

.first-run {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.first-run__title {
  margin-bottom: 1.25rem;
  font-size: var(--t-card);
  font-weight: 450;
  line-height: 1.1;
}

@media (min-width: 64rem) {
  .first-run .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps h3,
.qa h3,
.plan h3 {
  font-size: var(--t-card);
  line-height: 1.08;
  letter-spacing: -0.004em;
}

.steps h3 + p,
.qa h3 + p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.notice {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
}

.notice > div:first-child > * + * {
  margin-top: 1.25rem;
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
}

.facts div:last-child {
  border-bottom: 1px solid var(--hairline);
}

.facts dt {
  font-weight: 500;
}

.facts dd {
  margin: 0;
  color: var(--ink-soft);
}

.qa {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 4rem);
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.columns--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.column__count {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

@media (max-width: 59.99rem) {
  .notice,
  .qa,
  .columns,
  .columns--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .steps > li {
    padding: 0;
  }

  .steps > li + li {
    padding: 2rem 0 0;
    box-shadow: inset 0 1px 0 var(--hairline);
  }
}

@media (max-width: 33.99rem) {
  .facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
}

/* ---- the sequence cards: a row that scrolls sideways ---- */

.listings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.listings__head .section-lede {
  max-width: 34rem;
  margin-top: 1rem;
}

.track {
  display: flex;
  margin: 0 calc(-1 * max(var(--margin), calc((100vw - var(--content)) / 2))) 0 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  overscroll-behavior-x: contain;
}

.track::-webkit-scrollbar {
  display: none;
}

/* Relative so the visually hidden line in each card is placed inside the
   scrolling track. Left to the page, it sat thousands of pixels to the right
   and let phones zoom out to the whole row. */
.seq-card {
  position: relative;
  flex: 0 0 auto;
  width: 19.5rem;
  padding: 0 1.5rem 2.5rem 0;
  scroll-snap-align: start;
}

.seq-card + .seq-card {
  width: 21rem;
  padding: 0 1.5rem 2.5rem;
  border-left: 1px solid var(--hairline);
}

.seq-card__tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.5rem;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #34b064, #107c41 55%, #005729);
}

.seq-card:nth-child(3n + 2) .seq-card__tile {
  background: linear-gradient(0deg, #1d4a2d 0%, #13291b 45%, #0f1c13 100%);
}

.seq-card:nth-child(3n) .seq-card__tile {
  background: linear-gradient(180deg, #cdf3d6 0%, #eef4f0 70%);
}

.seq-card__tile .keys {
  gap: 0.6rem;
}

.seq-card__tile kbd {
  min-width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.9rem;
  font-size: 1.5rem;
  box-shadow: inset 0 -3px 0 rgba(15, 28, 19, 0.12), 0 12px 24px -10px rgba(0, 0, 0, 0.45);
}

.seq-card h3 {
  font-size: var(--t-card);
  line-height: 1.08;
  letter-spacing: -0.004em;
}

.seq-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.stepper {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0;
  border-radius: 999px;
  background: var(--tint);
}

.stepper[hidden] {
  display: none;
}

.stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.15s ease-out,
    color 0.15s ease-out;
}

.stepper button:hover {
  background: var(--ground);
}

.stepper button:disabled {
  color: rgba(15, 28, 19, 0.3);
  background: transparent;
  cursor: default;
}

@media (max-width: 39.99rem) {
  .seq-card {
    width: 16rem;
    padding: 0 1rem 2.5rem 0;
  }

  .seq-card + .seq-card {
    width: 17rem;
    padding: 0 1rem 2.5rem;
  }
}

/* ---- plans: three cards side by side ---- */

.plans__head .switch {
  justify-self: end;
}

@media (max-width: 47.99rem) {
  .plans__head .switch {
    justify-self: start;
  }
}

.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}

.plan h3 {
  margin-top: 1rem;
}

.plan__price {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.plan__price b {
  color: var(--ink);
  font-size: 2.25rem;
  font-weight: 450;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

#plan-team + .plan__price b {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.plan__price + .plan__alt {
  /* One line high even when empty, so every card's button sits at the same height. */
  min-height: 1.5em;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.plan .action {
  width: 100%;
  margin-top: 1.5rem;
}

.plan__facts {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--t-small);
}

.plan__facts div {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.3rem 0;
}

.plan__facts dt {
  color: var(--ink-soft);
}

.plan__facts dd {
  margin: 0;
}

[data-show-period][hidden] {
  display: none;
}

.plans__message:not(:empty) {
  margin-top: 1.25rem;
}

@media (max-width: 51.99rem) {
  .plans__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- the checks before downloading: a tinted panel, centred ---- */

.checks {
  padding: 3rem 1.25rem;
  border-radius: var(--r-xl);
  background: var(--tint);
  text-align: center;
}

@media (min-width: 40rem) {
  .checks {
    padding: 3.75rem 3rem;
  }
}

.checks .section-title,
.checks .section-lede {
  margin-inline: auto;
}

.checks .section-lede {
  max-width: 40rem;
  margin-top: 0.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  line-height: 1.3;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.checks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  max-width: 52rem;
  margin: 2.5rem auto 0;
  text-align: left;
}

.checks__grid div {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.checks__grid dt {
  font-weight: 500;
}

.checks__grid dd {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

@media (max-width: 39.99rem) {
  .checks__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- the closing card: ink, with the particles again ---- */

.closing {
  padding: 0 0.375rem;
}

.closing__card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(52rem, 92svh);
  padding: 5rem var(--margin);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--deep);
  color: var(--on-deep);
  transform-origin: 50% 0;
}

.closing__copy {
  position: relative;
  z-index: 1;
  max-width: 33rem;
}

.closing h2 {
  font-size: var(--t-statement);
  line-height: 1.04;
  letter-spacing: -0.017em;
}

.closing p {
  margin-top: 1.25rem;
  color: var(--on-deep-soft);
}

.closing .action {
  margin-top: 2rem;
}

@media (min-width: 64rem) {
  .closing__card {
    padding-left: 4.125rem;
  }
}

/* ---- footer: links, then the name set as large as the page allows ---- */

.footer {
  padding-top: 1.5rem;
  container-type: inline-size;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  max-width: calc(var(--content) + 2 * var(--margin));
  margin: 0 auto;
  padding: 0 var(--margin);
}

.footer__tag {
  max-width: 14em;
  font-size: 2rem;
  line-height: 1.06;
  letter-spacing: -0.005em;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer h2 {
  color: var(--ink-soft);
  font-size: var(--t-small);
  font-weight: 450;
}

.footer ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 0.5rem;
}

.footer ul a {
  color: var(--ink);
  font-size: var(--t-small);
  text-decoration: none;
}

.footer ul a:hover {
  text-decoration: underline;
}

/* The name spans the content column: set letter by letter, XLKeys is about 3.1 ems wide in this face. */
.footer__word {
  max-width: calc(var(--content) + 2 * var(--margin));
  margin: 3rem auto 0;
  padding: 0 var(--margin);
  font-size: calc(min(100cqi - 2 * var(--margin), var(--content)) / 3.12);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
  white-space: nowrap;
  user-select: none;
}

.footer__word span {
  display: inline-block;
  padding-bottom: 0.08em;
  transform-origin: 50% 100%;
  will-change: transform;
}

.footer__base {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  margin-top: 1.5rem;
  padding: 1.75rem max(var(--margin), calc((100% - var(--content)) / 2)) calc(env(safe-area-inset-bottom, 0px) + 2rem);
  border-top: 1px solid var(--hairline);
}

.footer__about {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__about p,
.footer__legal {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 0.78125rem;
  line-height: 1.5;
}

.brand--small .brand__mark {
  width: 1.375rem;
  height: 1.375rem;
}

.brand--small .brand__name {
  font-size: 1rem;
}

@media (max-width: 51.99rem) {
  .footer__top,
  .footer__base {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 33.99rem) {
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- inner pages: a centred title over a small ring of particles, then cards ---- */

.page--inner {
  position: relative;
  max-width: calc(var(--content) + 2 * var(--margin));
  margin: 0 auto;
  padding: 0 var(--margin) 7.5rem;
}

.particles--ring {
  inset: 0 0 auto;
  height: 30rem;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.page--inner > * {
  position: relative;
  z-index: 1;
}

.page--inner > .particles {
  position: absolute;
  z-index: 0;
}

.page--inner > * + * {
  margin-top: 1.5rem;
}

.page-title {
  max-width: 18em;
  margin: 0 auto;
  padding-top: clamp(4rem, 10vw, 7.5rem);
  font-size: var(--t-statement);
  line-height: 1.04;
  letter-spacing: -0.017em;
  text-align: center;
}

/* The trail back to the lists, above an inner page's headline. */
.crumbs {
  position: relative;
  padding-top: clamp(3rem, 8vw, 5.5rem);
  color: var(--ink-soft);
  font-size: 0.84375rem;
  text-align: center;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}

.crumbs a {
  color: var(--ink-soft);
}

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

.page--inner > .crumbs + .page-title {
  margin-top: 0;
  padding-top: 1rem;
}

.page--inner > .page-lede {
  max-width: 46ch;
  margin: 1.25rem auto 0;
  color: var(--ink-soft);
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 64rem) {
  .page--inner > .page-lede {
    font-size: 1.25rem;
    line-height: 1.5;
  }
}

.page--inner > .page-title + :not(.page-lede),
.page--inner > .page-lede + * {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}

@media (min-width: 40rem) {
  .card {
    padding: 2rem;
  }
}

@media (min-width: 64rem) {
  .card {
    padding: 2.5rem;
  }
}

.card__title {
  max-width: 24ch;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  line-height: 1.06;
  letter-spacing: -0.012em;
}

@media (min-width: 40rem) {
  .card__title {
    font-size: 1.75rem;
  }
}

@media (min-width: 64rem) {
  .card__title {
    font-size: 2.125rem;
  }
}

.card h3 {
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.25;
}

.card__foot {
  margin-top: 1.5rem;
}

.closing.card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.well {
  border-radius: var(--r-md);
  background: var(--tint);
}

/* ---- tables of shortcuts ---- */

.agate {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
}

.agate th {
  padding: 0 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 450;
  text-align: left;
}

.agate td {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.agate tbody tr:hover td {
  background: var(--tint);
}

.agate .k {
  width: 7.5rem;
  font-weight: 600;
  font-variation-settings: "ROND" 100;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.agate .k .keys {
  gap: 0.2rem;
  letter-spacing: 0;
}

.agate .k kbd {
  min-width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8125rem;
}

.agate .where {
  color: var(--ink-soft);
}

@media (max-width: 39.99rem) {
  .agate .where {
    display: none;
  }
}

/* A row's own label, in the answer tables, reads as body text. */
.agate tbody th {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: inherit;
  font-weight: 450;
  vertical-align: top;
}

.agate caption {
  padding-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  text-align: left;
}

/* Where a command sits, under its name in the per-app lists. */
.hub-where {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.prose > .table-scroll {
  max-width: none;
  margin-top: 1rem;
}

/* ---- the shortcut list's filter and the in-page contents ---- */

/* Each list in pages of 50: where it is, then the page buttons in the site's switch. */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.pager[hidden] {
  display: none;
}

.pager__status {
  color: var(--ink-soft);
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
}

.pager__pages {
  flex-wrap: wrap;
}

.pager__numbers {
  display: contents;
}

.pager__pages button {
  min-width: 2.25rem;
  padding: 0 0.75rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 30rem) {
  .pager__pages button {
    min-width: 2rem;
    padding: 0 0.5rem;
  }

  .pager__pages .pager__step {
    padding: 0 0.375rem;
  }
}

.pager__gap {
  display: inline-flex;
  align-items: center;
  padding: 0 0.25rem;
  color: var(--ink-faint);
}

.pager__pages .pager__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  color: var(--ink);
}

.pager__pages .pager__step:disabled {
  color: rgba(15, 28, 19, 0.3);
  cursor: default;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.5rem;
}

.filter .field {
  flex: 1 1 22rem;
}

.filter__count {
  padding-bottom: 0.65rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.contents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0.375rem;
  border: 1px solid var(--hairline);
  border-radius: 1.5rem;
  background: var(--tint);
  list-style: none;
}

.contents a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84375rem;
  text-decoration: none;
  transition: background-color 0.15s ease-out;
}

.contents a:hover {
  background: var(--ground);
}

/* ---- forms ---- */

.form {
  display: grid;
  gap: 1.1rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 39.99rem) {
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.field legend {
  font-size: var(--t-small);
  font-weight: 500;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 400 0.9375rem/1.4 var(--sans);
  caret-color: var(--green);
  transition: border-color 0.16s ease-out;
}

.field textarea {
  min-height: 7.5rem;
  border-radius: var(--r-md);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.field input:not([type="radio"]):not([type="checkbox"]):hover,
.field textarea:hover {
  border-color: rgba(15, 28, 19, 0.24);
}

.field input:not([type="radio"]):not([type="checkbox"]):focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--green);
  outline-offset: 1px;
}

.field fieldset,
fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  font-weight: 450;
}

.choices input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--green);
}

/* Left out of the visible form; a script that fills it in gives itself away. */
.trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message {
  min-height: 1.5em;
  font-size: var(--t-small);
  font-weight: 500;
}

.message:empty {
  min-height: 0;
}

.message[data-kind="error"] {
  color: var(--alarm);
}

.message[data-kind="ok"] {
  color: var(--green-text);
}

.macs {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.macs li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--hairline);
}

.key {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: var(--r-md);
  background: var(--tint);
  font: 500 1.25rem/1.3 var(--mono);
  letter-spacing: 0.03em;
  word-break: break-all;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---- reading pages ---- */

.prose {
  max-width: 50rem;
  margin-inline: auto;
}

.prose > * {
  max-width: 35em;
}

.prose h2 {
  margin-top: 3rem;
  font-size: 1.75rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
}

.prose h2 + p,
.prose h3 + p,
.prose h2 + ol,
.prose h2 + ul,
.prose h3 + ol {
  margin-top: 0.75rem;
}

.prose p + p,
.prose ul + p,
.prose ol + p,
.prose p + ul,
.prose p + ol,
.prose pre + p,
.prose p + pre {
  margin-top: 0.9rem;
}

.prose ul,
.prose ol {
  margin-bottom: 0;
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose li::marker {
  color: var(--green-text);
}

.prose kbd {
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.35em;
  font-size: 0.85em;
  vertical-align: 0.05em;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 0.4em;
  background: var(--ground);
  font: 0.9em/1.4 var(--mono);
}

/* Long paths and commands break rather than widen the page on a phone. */
:not(pre) > code {
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
  max-width: 100%;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

pre code {
  padding: 0;
  background: none;
}

/* ---- motion: entrances that wait for the headline, and a fallback if no script runs ---- */

.motion [data-typed] {
  visibility: hidden;
  animation: appear 0s 2.5s forwards;
}

.motion [data-typed].is-ready {
  visibility: visible;
  animation: none;
}

.motion .late {
  opacity: 0;
  transform: translateY(0.75rem);
  animation: settle 0.8s 3s var(--ease) forwards;
}

.motion .late.is-in {
  animation: settle 0.9s var(--ease) forwards;
}

.motion .hero__act.late.is-in {
  animation-delay: 0.12s;
}

.motion .particles {
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

.motion .particles.is-in {
  opacity: 1;
}

@keyframes appear {
  to {
    visibility: visible;
  }
}

@keyframes settle {
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .caret {
    display: none;
  }
}
