/* Clawtrate's site. Colours, type and shapes come from docs/design/visual-language.md.
   Dark is the default; light applies when a visitor chooses it (data-theme="light"). */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101112;
  --bg-rail: #0b0c0d;
  --bg-bubble: #1f2022;
  --bg-raised: #1c1d1f;
  --bg-code: rgba(255, 255, 255, 0.08);
  --bg-inverse: #f3f3f2;
  --text-inverse: #111213;
  --text: #f3f3f2;
  --text-muted: #b4b6b9;
  --text-faint: #9d9fa2;
  --accent: #3ee6c1;
  --accent-line: #3ee6c1;
  --accent-ink: #04261f;
  --accent-soft: rgba(62, 230, 193, 0.12);
  --bubble-user: #3ee6c1;
  --bubble-user-text: #04261f;
  --warn: #f0b45a;
  --warn-soft: rgba(240, 180, 90, 0.12);
  --danger: #ff8a80;
  --warn-line: rgba(240, 180, 90, 0.42);
  --border: rgba(255, 255, 255, 0.08);
  --shadow-raised: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-pop: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 16px 44px rgba(0, 0, 0, 0.6);

  /* The closing band: the brand's deep green, calm in both themes. */
  --close-bg: #0c2e27;
  --close-ink: #f3f3f2;
  --close-btn: #3ee6c1;
  --close-btn-ink: #04261f;

  /* Screens sit on a faint wash of a bot's colour over the rail's tone. */
  --wash: 10%;
  --stage-blue: #5b8dff;
  --stage-orange: #ff8552;
  --stage-green: #58c26f;
  --stage-yellow: #f6bd3b;
  --stage-sky: #45bdf5;

  --font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace; /* taste-skill-ignore: real code only */

  --t-s: 14px;
  --t-b: 17px;
  --t-m: clamp(22px, 1.8vw, 26px);
  --t-l: clamp(34px, 3.4vw, 48px);
  --t-xl: clamp(40px, 5vw, 76px);

  --edge: clamp(16px, 4vw, 56px);
  --max: 1328px;
  --gap-section: clamp(88px, 9vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-rail: #f6f6f5;
  --bg-bubble: #f0f0ee;
  --bg-raised: #ffffff;
  --bg-code: rgba(17, 18, 19, 0.06);
  --bg-inverse: #111213;
  --text-inverse: #ffffff;
  --text: #111213;
  --text-muted: #55575b;
  --text-faint: #606266;
  --accent: #0a6e5c;
  --accent-line: #0d8f77;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 110, 92, 0.1);
  --bubble-user: #0a6e5c;
  --bubble-user-text: #ffffff;
  --warn: #935600;
  --warn-soft: rgba(147, 86, 0, 0.1);
  --danger: #b3261e;
  --warn-line: rgba(147, 86, 0, 0.32);
  --border: rgba(17, 18, 19, 0.09);
  --shadow-raised: 0 0 0 1px rgba(17, 18, 19, 0.06), 0 2px 8px rgba(17, 18, 19, 0.08);
  --shadow-pop: 0 0 0 1px rgba(17, 18, 19, 0.06), 0 12px 36px rgba(17, 18, 19, 0.16);
  --close-bg: #0a6e5c;
  --close-ink: #ffffff;
  --close-btn: #ffffff;
  --close-btn-ink: #0a6e5c;
  --wash: 12%;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-b) / 1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ul,
ol,
figure,
pre {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
}
/* Without script, controls that could not respond are left out. */
html:not(.js) :is([data-theme-toggle], [data-copy]) {
  display: none;
}
/* Read aloud, not shown: the heading's one sentence. What is shown, the name and the slogan
   with its highlighted halves, is hidden from screen readers. */
.read {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: 999px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Buttons: pills, as in the app. Primary is the inverse fill. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--t-b);
  text-decoration: none;
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary,
.btn-small {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}
.btn-primary:hover,
.btn-small:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: var(--t-s);
}

/* The bar: full width, its contents on the page's margins. */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--edge));
  margin: 0 auto;
  padding: 14px var(--edge);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--t-b);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.bar nav {
  display: flex;
  gap: 28px;
  font-size: var(--t-s);
}
.bar nav a {
  text-decoration: none;
  color: var(--text-muted);
}
.bar nav a:hover {
  color: var(--text);
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms var(--ease);
}
.theme:hover {
  background: var(--bg-bubble);
}
.theme svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
/* The switch shows the theme it leads to. */
.theme .i-moon {
  display: none;
}
:root[data-theme="light"] .theme .i-sun {
  display: none;
}
:root[data-theme="light"] .theme .i-moon {
  display: block;
}

/* The first screen, centred: the name made of the slogan's two halves, one line, the
   download and the commands, and the film playing below. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: calc(var(--max) + 2 * var(--edge));
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) var(--edge) 0;
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
  font-weight: 600;
}
.name {
  display: inline-flex;
  align-items: center;
  gap: 0.16em;
  font-size: clamp(60px, 10.4vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.name-replay {
  flex: none;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0.21em;
  background: none;
}
.name-logo {
  display: block;
  width: 0.78em;
  height: 0.78em;
  border-radius: 0.21em;
}
.hero-title {
  position: relative;
}
.slogan {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
/* Claw and trate: the two halves of the name, in the accent, on a soft mark. */
.frag {
  position: relative;
  isolation: isolate;
  color: var(--accent);
}
.frag::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.02em;
  height: 0.42em;
  border-radius: 0.12em;
  background: var(--accent-soft);
  transform-origin: 0 50%;
}
.lede {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 36em;
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--text-muted);
}
.get {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 2.6vw, 32px);
}
.get-setup {
  margin-top: 16px;
  font-weight: 500;
}
.get-note {
  margin-top: 2px;
  font-size: var(--t-s);
  color: var(--text-muted);
}
.get-note a {
  color: var(--text);
  white-space: nowrap;
}
.film {
  width: min(100%, 1080px);
  margin-top: clamp(68px, 7vw, 92px);
}
.cmd {
  margin-top: 24px;
  max-width: 30em;
}
.cmd-label {
  font-size: var(--t-s);
  color: var(--text-muted);
  margin-bottom: 8px;
}
/* Homebrew or curl: one line each. Without script both show, each named.
   With it, the label and the tabs share a row above the command. */
.cmd-tabs {
  display: none;
}
.js .cmd,
.js .close-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
}
.js .cmd-switch {
  display: contents;
}
.js .cmd-box,
.js .close-side .oss {
  grid-column: 1 / -1;
}
.js .cmd-tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 8px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-bubble);
}
.cmd-tabs button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 140ms var(--ease),
    color 140ms var(--ease);
}
.cmd-tabs button:hover {
  color: var(--text);
}
/* The chosen tab is underlined too, so it shows by shape as well as fill. */
.cmd-tabs button[aria-selected="true"] {
  background: var(--bg-raised);
  color: var(--text);
  text-decoration: underline 2px;
  text-underline-offset: 0.22em;
  box-shadow: var(
    --shadow-raised
  ); /* taste-skill-ignore: the chosen tab, raised like the app's pills */
}
.cmd-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border-radius: 18px;
  background: var(--bg-bubble);
}
html:not(.js) .cmd-box + .cmd-box {
  margin-top: 8px;
}
.cmd-box[hidden] {
  display: none;
}
.cmd-tool {
  flex: none;
  font-size: 13px;
  color: var(--text-muted);
}
.js .cmd-tool {
  display: none;
}
.cmd-box pre {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
}
.cmd-box code {
  font-size: 13px;
  line-height: 1.55;
}
.copy {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 140ms var(--ease),
    background-color 140ms var(--ease),
    color 140ms var(--ease);
}
.copy:hover {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}
.copy:active {
  transform: scale(0.95);
}
/* In dark, the raised surface is darker than the track it sits on: lift the
   chosen tab and Copy with a light veil instead. */
:root:not([data-theme="light"]) .hero .cmd-tabs button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
:root:not([data-theme="light"]) .hero .copy:not(:hover) {
  background: rgba(255, 255, 255, 0.1);
}

/* The film in its window: a poster and a play button until it is pressed. */
.win {
  border-radius: 24px;
  background: var(--bg-rail);
  box-shadow: var(--shadow-pop); /* taste-skill-ignore: the app's own floating window */
  overflow: hidden;
}
.film-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.film-play {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}
.film-play[hidden] {
  display: none;
}
.film-play:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.film-play:active {
  transform: scale(0.97);
}
.film-play svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
  fill: currentColor;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Sections. */
section {
  max-width: calc(var(--max) + 2 * var(--edge));
  margin: 0 auto;
  padding: 0 var(--edge);
}
h2 {
  font-size: var(--t-l);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h3 {
  font-size: var(--t-m);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* The pause and play button on a clip: small, in the clip's corner, shown on hover and focus
   (always on touch screens, and whenever the clip is stopped). */
.loop-toggle {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 17, 18, 0.78);
  color: #f3f3f2;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 160ms var(--ease),
    transform 160ms var(--ease);
}
.loop-toggle[hidden] {
  display: none;
}
.loop-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.loop-toggle .i-pause {
  fill: none;
}
.loop-toggle[data-state="playing"] .i-play,
.loop-toggle:not([data-state="playing"]) .i-pause {
  display: none;
}
.loop-toggle:active {
  transform: scale(0.92);
}
/* A clip whose file did not load: its poster stays, and the button becomes a struck-through
   play mark that says so. */
.loop-toggle[data-state="broken"] {
  opacity: 1;
  cursor: default;
}
.loop-toggle[data-state="broken"] .i-play {
  display: block;
  opacity: 0.55;
}
.loop-toggle[data-state="broken"]::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-45deg);
}
.loop-toggle[data-state="broken"]:active {
  transform: none;
}
:hover > .loop-toggle,
.loop-toggle:focus-visible,
.loop-toggle:not([data-state="playing"]) {
  opacity: 1;
}
@media (hover: none) {
  .loop-toggle {
    opacity: 1;
  }
}

/* The app at work: six looping clips in a grid of four columns, a wide clip twice a small
   one's width plus the gap. Each tile is a dark window on a raised card. */
.tour {
  padding-top: var(--gap-section);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 8px;
  transition: transform 320ms var(--ease);
}
/* The card is drawn behind the tile, so a Claw can hide behind its edge. */
.tile::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 24px;
  background: var(--bg-bubble);
}
.tile-wide {
  grid-column: span 2;
}
.tile-media {
  position: relative;
  flex: 1 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #101112;
}
.tile-wide .tile-media {
  aspect-ratio: 16 / 10;
}
.tile-media img,
.tile-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform 600ms var(--ease);
}
.tile-media video {
  opacity: 0;
  transition:
    opacity 300ms var(--ease),
    transform 600ms var(--ease);
}
.tile-media video[data-ready] {
  opacity: 1;
}
.tile figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 8px 6px;
}
.pill {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.tile-title {
  min-width: 0;
  font-size: var(--t-b);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover {
    transform: translateY(-4px);
  }
  .tile:hover .tile-media :is(img, video) {
    transform: scale(1.025);
  }
}

/* A Claw peeks over a tile's top edge, its body behind the card. It comes up when a tile is
   hovered or focused (live.js), and watches the pointer. */
.peek {
  position: absolute;
  z-index: -2;
  top: 0;
  right: 32px;
  width: 64px;
  transform: translateY(-58%);
  transition: transform 460ms cubic-bezier(0.3, 1.5, 0.5, 1);
  -webkit-tap-highlight-color: transparent;
}
.peek[data-up] {
  transform: translateY(-82%);
}
.peek .claw-art {
  display: block;
}
/* The eyes of the Claws that watch the pointer, moved by live.js in grid units. */
:is(.peek, .claw-perch) [data-part="pupil"] {
  translate: var(--look-x, 0px) var(--look-y, 0px);
  transition: translate 260ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
:is(.peek, .claw-perch) .claw-art:not([data-state="idle"]) [data-part="pupil"] {
  translate: none;
}
/* Off screen, a Claw holds still. */
[data-offscreen] *,
[data-offscreen] {
  animation-play-state: paused !important;
}

/* Getting started: one band on a wash of the accent, the four steps beside the setup clip,
   and the two other situations as one quiet line each. */
.start {
  padding-top: var(--gap-section);
}
.start-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--accent) var(--wash), var(--bg-rail));
}
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  margin-top: 24px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 11px 16px 11px 50px;
  border-radius: 16px;
  background: var(--bg);
  counter-increment: step;
  line-height: 1.4;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
}
.paths {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
  margin-top: 20px;
  font-size: var(--t-s);
  color: var(--text-muted);
}
.paths strong {
  color: var(--text);
  font-weight: 600;
}
.start-tile {
  grid-column: auto;
  padding: 0;
}
.start-tile::before {
  display: none;
}
.start-tile .tile-media {
  border-radius: 18px;
}

/* What is in the beta and the questions, side by side. */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  max-width: calc(var(--max) + 2 * var(--edge));
  margin: 0 auto;
  padding: var(--gap-section) var(--edge) 0;
}
.pair > section {
  max-width: none;
  margin: 0;
  padding: 0;
}
.index {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--stage-green) var(--wash), var(--bg-rail));
}
.index h3 {
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.index ul {
  list-style: none;
  padding: 0;
}
.index-now,
.index-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: 6px;
}
.index-now li,
.index-next a {
  position: relative;
  padding: 7px 0 7px 20px;
  line-height: 1.3;
}
.index-now li::before,
.index-next a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.index-more {
  margin-top: 12px;
  font-size: var(--t-s);
  color: var(--text-muted);
}
.index-more a:hover {
  color: var(--accent);
}
.index-next-title {
  margin-top: 24px;
}
/* What is being built: open dots, and each row a link to its work. */
.index-next a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.index-next a::before {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--text-faint); /* taste-skill-ignore: an open dot for what is coming */
}
.index-ref {
  flex: none;
  font-size: var(--t-s);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.index-next a:hover,
.index-next a:hover .index-ref {
  color: var(--accent);
}

/* Before you install: the questions, one answer open at a time, under its question. */
.faq-grid {
  margin-top: 28px;
}
.faq-q {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}
.faq-q li {
  border-radius: 18px;
  transition: background-color 160ms var(--ease);
}
.faq-q li:has(> button[aria-expanded="true"]) {
  background: var(--bg-bubble);
}
.faq-q button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: none;
  text-align: left;
  font-size: var(--t-b);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 150ms var(--ease);
}
.faq-q button::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--text-faint);
  transition:
    background-color 150ms var(--ease),
    transform 150ms var(--ease);
}
.faq-q button:hover,
.faq-q button[aria-expanded="true"] {
  color: var(--text);
}
.faq-q button[aria-expanded="true"]::before {
  background: var(--accent);
  transform: scale(1.3);
}
.faq-a {
  padding: 0 22px 18px 41px;
}
.faq-a p {
  max-width: 34em;
}
[data-interactive] .faq-a:not([hidden]) p {
  animation: arrive 260ms var(--ease) both;
}
/* The static FAQ shows each answer under its heading. */
.faq-q h3 {
  margin: 12px 0 6px;
  padding: 0 18px;
  font-size: var(--t-b);
}
[data-faq]:not([data-interactive]) .faq-a {
  padding-left: 18px;
}

/* The close: the brand's deep green. */
.close {
  max-width: none;
  padding: clamp(64px, 8vw, 112px) var(--edge) clamp(56px, 7vw, 96px);
  background: var(--close-bg);
  color: var(--close-ink);
  overflow: hidden;
}
.close-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 88px);
  max-width: var(--max);
  margin: 0 auto;
  align-items: end;
}
.close h2 {
  font-size: var(--t-xl);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.close-text p {
  margin-top: 18px;
}
.close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.btn-close {
  background: var(--close-btn);
  color: var(--close-btn-ink);
}
.btn-close:hover {
  background: var(--close-ink);
  color: var(--close-bg);
}
.btn-ghost {
  background: color-mix(in srgb, var(--close-ink) 12%, transparent);
  color: var(--close-ink);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--close-ink) 20%, transparent);
  color: var(--close-ink);
}
.btn-ghost .star {
  fill: currentColor;
  stroke: none;
}
.close .cmd-label {
  color: inherit;
}
.cmd-close {
  background: color-mix(in srgb, var(--close-ink) 12%, transparent);
}
.close .cmd-tabs {
  background: color-mix(in srgb, var(--close-ink) 12%, transparent);
}
.close .cmd-tabs button {
  color: var(--close-ink);
}
.close .cmd-tabs button:hover {
  color: var(--close-ink);
}
.close .cmd-tabs button[aria-selected="true"] {
  background: var(--close-btn);
  color: var(--close-btn-ink);
  box-shadow: none; /* taste-skill-ignore: flat on the green band */
}
.close .cmd-tool {
  color: inherit;
}
.cmd-close .copy {
  background: var(--close-btn);
  color: var(--close-btn-ink);
}
.cmd-close .copy:hover {
  background: var(--close-ink);
  color: var(--close-bg);
}
.oss {
  margin-top: 18px;
}
.close a:not(.btn):hover {
  color: inherit;
}
/* The Claws' band: eight Claws from the avatar spec, big, on one line (two rows of four
   on a phone). parade.js brings them in, dresses them and sends a wave down the line as
   the band scrolls by. The band clips sideways, so a Claw coming in from the window's
   edge never widens the page. */
.claws {
  max-width: none;
  padding: var(--gap-section) 0 clamp(56px, 7vw, 104px);
  overflow-x: clip;
}
.claws h2 {
  text-align: center;
}
.cast-stage {
  max-width: calc(var(--max) + 2 * var(--edge));
  margin: clamp(28px, 4vw, 56px) auto 0;
  padding: 0 var(--edge);
}
.cast {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 24px);
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pc-press {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.pc-press:enabled {
  cursor: pointer;
}
.pc-press:focus-visible {
  outline-offset: 6px;
}
/* .pc-go carries the arrival, .pc-hop the wave and the hop that notices the pointer. */
.pc-go,
.pc-hop {
  position: relative;
  display: block;
  transform-origin: 50% 100%;
}
/* A soft shadow on the floor, which stays down while the Claw hops. */
.pc-go::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 18%;
  right: 18%;
  bottom: 4%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.32), transparent);
}
:root[data-theme="light"] .pc-go::after {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.14), transparent);
}
.pc .claw-art {
  display: block;
  /* Where a Claw squashes from when it scrambles. */
  transform-origin: 50% 88%;
}
/* The eyes: the pupils move toward the pointer, set by parade.js in grid units. */
.pc [data-part="pupil"] {
  translate: var(--look-x, 0px) var(--look-y, 0px);
  transition: translate 260ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.pc .claw-art:not([data-state="idle"]) [data-part="pupil"] {
  translate: none;
}
/* What a Claw wears pops on from where it sits; before its turn it is not there yet. */
.claw-art .wear {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.claw-art[data-bare] .wear {
  opacity: 0;
}
/* Off screen or in a hidden tab, nothing moves. */
.cast-stage[data-paused] *,
.cast-stage[data-paused] {
  animation-play-state: paused !important;
}
.cast-stage[data-paused] [data-part="pupil"] {
  transition: none;
}

/* The Claws beside two headings: a Lantern in glasses by the questions and a Shellfolk in a
   party hat by the download. Each comes up when its section scrolls in (claws.js). */
.faq-head,
.close-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.4vw, 18px);
}
.claw-side {
  flex: none;
  width: clamp(52px, 5vw, 72px);
  margin-bottom: -0.1em;
}
.claw-side .claw-art {
  display: block;
}
.close-head .claw-side {
  width: clamp(60px, 6vw, 88px);
}
/* Hidden only once claws.js has found it out of sight, so a late script never hides one
   already on screen. */
.js .claw-side[data-wake][data-asleep] {
  opacity: 0;
  transform: translateY(40%) scale(0.7);
  transform-origin: 50% 100%;
}
.js .claw-side[data-wake][data-woke] {
  opacity: 1;
  transform: none;
  transition:
    opacity 300ms var(--ease),
    transform 620ms cubic-bezier(0.3, 1.5, 0.5, 1);
}
:is(.claw-side, .claw-perch) [data-part="pupil"] {
  translate: var(--look-x, 0px) var(--look-y, 0px);
  transition: translate 260ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
:is(.claw-side, .claw-perch) .claw-art:not([data-state="idle"]) [data-part="pupil"] {
  translate: none;
}

/* The footer: one quiet line. */
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: baseline;
  max-width: calc(var(--max) + 2 * var(--edge));
  margin: 0 auto;
  padding: 36px var(--edge) 32px;
  font-size: var(--t-s);
  color: var(--text-muted);
}
.foot nav {
  display: flex;
  gap: 24px;
}
.foot nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--text);
  text-decoration: underline;
}
.foot p:last-child {
  text-align: right;
}

/* Entrances: the parts that arrive together rise in turn. Content shows without script. */
.js .rise {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .rise.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* The hero's command sits in one pill beside the download button: the tabs, the command and
   Copy. Its label stays for screen readers. */
.js .hero .cmd {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-bubble);
}
.js .hero .cmd-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.js .hero .cmd-tabs {
  flex: none;
  margin: 0;
  background: transparent;
}
.js .hero .cmd-box {
  min-width: 0;
  padding: 0 0 0 8px;
  background: transparent;
}
html:not(.js) .hero .cmd {
  width: min(100%, 30em);
  text-align: left;
}

/* The name's entrance (live.js). Until it starts, what it brings in is not shown; without
   live.js everything shows after a moment. The logo shows from the first frame. */
.intro .name-word,
.intro .slogan {
  opacity: 0;
  animation: intro-show 1ms 1800ms forwards;
}
/* The letters it moves: copies laid over the real text at the real text's places, removed
   when it ends. */
.intro-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.intro-layer > span {
  position: absolute;
  inset: 0;
}
.intro-layer .g {
  position: absolute;
  inset: auto;
  left: 0;
  top: 0;
  white-space: pre;
  letter-spacing: 0;
}
.intro-layer .lit {
  color: var(--accent);
}
.intro-plain .frag {
  color: inherit;
}
.name-replay {
  -webkit-tap-highlight-color: transparent;
}
@keyframes intro-show {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Narrower windows. */
@media (max-width: 1040px) {
  .bar nav {
    display: none;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .start-band,
  .pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    --t-b: 16px;
  }
  .close-inner,
  .index-now,
  .index-next {
    grid-template-columns: minmax(0, 1fr);
  }
  .film-play {
    width: 64px;
    height: 64px;
  }
  .film-play svg {
    width: 26px;
    height: 26px;
    margin-left: 3px;
  }
  .cast {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 28px;
  }
  /* A phone shows the clips in a row to swipe, the next one showing at the edge. The row's
     top padding is room for the peeking Claw. */
  .tiles {
    display: flex;
    gap: 12px;
    margin: 0 calc(-1 * var(--edge));
    padding: 52px var(--edge) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--edge);
    scrollbar-width: none;
  }
  .tiles::-webkit-scrollbar {
    display: none;
  }
  .tile {
    flex: 0 0 min(76vw, 300px);
    scroll-snap-align: start;
  }
  .tiles .tile-media {
    flex: none;
    aspect-ratio: auto;
    height: 340px;
  }
  /* A wide clip takes more of the row, and its crop keeps the part that shows the point:
     the action cards from their left edge, and the calendar from its hours. */
  .tiles .tile-wide {
    flex-basis: min(88vw, 400px);
  }
  .tiles .tile-wide .tile-media :is(img, video) {
    object-position: 50% 50%;
  }
  .tiles [data-loop="work"] .tile-media :is(img, video) {
    object-position: 12% 50%;
  }
  .tiles [data-loop="routines"] .tile-media :is(img, video) {
    object-position: 0 50%;
  }
  /* The setup clip keeps its middle, where the setup screen sits, so its words stay readable. */
  .start-tile .tile-media {
    aspect-ratio: 4 / 5;
  }
  .start-tile .tile-media :is(img, video) {
    object-position: 50% 50%;
  }
  .tile-title {
    font-size: 15px;
  }
  .close-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .foot {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .foot nav {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .foot p:last-child {
    text-align: left;
  }
  .faq-q button {
    padding: 0 14px;
  }
  .faq-a {
    padding: 0 18px 16px 37px;
  }
}
@media (max-width: 640px) {
  /* The command wraps under its tabs on a phone. */
  .js .hero .cmd {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    border-radius: 22px;
  }
  .js .hero .cmd-box {
    flex: 1 1 100%;
    padding: 0 0 0 12px;
    text-align: left;
  }
  .get .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 520px) {
  .bar .btn-small {
    padding: 0 14px;
  }
  /* A phone shows the whole command, wrapped at its spaces. */
  .cmd-box pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

/* The download page. The first screen is the deep sea, in both themes a field of its own: the
   Lantern, the page's name, both builds, the Terminal install and the facts. Then what happens
   after the download beside the setup clip, "What's new", and one quiet line on the Clawling's
   hill. download.js leads with this Mac's build when the browser reports its chip. */
.dl-hero {
  --text: #eef5f8;
  --text-muted: #b6c7d1;
  --bg-inverse: #f3f3f2;
  --text-inverse: #111213;
  --bg-bubble: rgba(255, 255, 255, 0.08);
  --bg-raised: rgba(255, 255, 255, 0.14);
  --accent: #3ee6c1;
  --accent-line: #3ee6c1;
  --accent-ink: #04261f;
  --accent-soft: rgba(62, 230, 193, 0.14);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(var(--max), 100% - 2 * var(--edge));
  max-width: none;
  margin: 8px auto 0;
  padding: clamp(28px, 3.4vw, 44px) clamp(16px, 4vw, 48px) clamp(36px, 4.4vw, 56px);
  border-radius: 32px;
  text-align: center;
  color: var(--text);
  background:
    radial-gradient(42% 46% at 50% 12%, rgba(69, 189, 245, 0.2), transparent 72%), #081723;
}
/* In light, the sea is shallow water: pale, with the same glow, and dark ink. */
:root[data-theme="light"] .dl-hero {
  --text: #111213;
  --text-muted: #45525c;
  --bg-inverse: #111213;
  --text-inverse: #ffffff;
  --bg-bubble: rgba(8, 23, 35, 0.07);
  --bg-raised: #ffffff;
  --accent: #0a6e5c;
  --accent-line: #0d8f77;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 110, 92, 0.1);
  background:
    radial-gradient(42% 46% at 50% 12%, rgba(69, 189, 245, 0.26), transparent 72%), #e6f0f6;
}
/* The Lantern rises out of the deep once, on load, then drifts. */
.dl-lantern-zone {
  position: relative;
  animation: dl-surface 1100ms var(--ease) 120ms both;
}
@keyframes dl-surface {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
}
.claw-lantern.dl-lantern {
  width: clamp(104px, 9.4vw, 140px);
  margin: 0;
}
.dl-title {
  margin-top: clamp(6px, 1vw, 14px);
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.dl-lede {
  margin-top: clamp(14px, 1.4vw, 20px);
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--text-muted);
  text-wrap: balance;
}
.dl-get {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 2.6vw, 34px);
}
/* When one build leads, the other is a quiet link beside it. */
.dl-get[data-lead] {
  gap: 12px 24px;
}
.dl-other {
  font-size: var(--t-s);
  color: var(--text-muted);
}
.dl-other svg {
  display: none;
}
.dl-chip {
  margin-top: 14px;
  max-width: 40em;
  font-size: var(--t-s);
  color: var(--text-muted);
}
/* The Terminal install: the home page's control, one pill of tabs, command and Copy. */
.dl-cmd {
  margin-top: clamp(22px, 2.4vw, 30px);
}
.js .dl-hero .cmd {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-bubble);
}
.js .dl-hero .cmd-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.js .dl-hero .cmd-tabs {
  flex: none;
  margin: 0;
  background: transparent;
}
.js .dl-hero .cmd-box {
  min-width: 0;
  padding: 0 0 0 8px;
  background: transparent;
}
html:not(.js) .dl-cmd {
  width: min(100%, 30em);
  text-align: left;
}
:root:not([data-theme="light"]) .dl-hero .cmd-tabs button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
:root:not([data-theme="light"]) .dl-hero .copy:not(:hover) {
  background: rgba(255, 255, 255, 0.12);
}
/* The facts: one row, each after a check in the accent. */
.dl-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-top: clamp(24px, 2.6vw, 32px);
  padding: 0;
  list-style: none;
  font-size: var(--t-s);
  color: var(--text-muted);
}
.dl-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.dl-facts li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.dl-facts a {
  color: var(--text);
}
/* Marine snow rises through the whole first screen. */
.dl-hero .snow i {
  z-index: -1;
  animation-name: dl-snow;
}
.dl-hero .snow i:nth-child(7) {
  left: 6%;
  animation-delay: -6s;
  animation-duration: 17s;
}
.dl-hero .snow i:nth-child(8) {
  left: 95%;
  animation-delay: -13s;
  width: 2px;
  height: 2px;
}
:root[data-theme="light"] .dl-hero .snow i {
  background: rgba(8, 60, 90, 0.22);
}
/* While the first screen is out of view, its snow and the Lantern wait (download.js). This
   outranks every rule that starts a motion there. */
.dl-hero.dl-away * {
  animation-play-state: paused !important;
}
@keyframes dl-snow {
  from {
    transform: translate(0, 0);
    opacity: 0;
  }
  15%,
  80% {
    opacity: 1;
  }
  to {
    transform: translate(18px, -640px);
    opacity: 0;
  }
}

/* After the download: one band on a wash of the accent, the steps beside the setup clip. */
.dl-next {
  padding-top: clamp(40px, 4.4vw, 64px);
}
.dl-band {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--accent) var(--wash), var(--bg-rail));
}
.dl-steps {
  margin-top: 24px;
}
.dl-paths {
  max-width: 60ch;
  margin-top: 18px;
  font-size: var(--t-s);
  color: var(--text-muted);
}
.dl-clip .tile-media {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
}
.dl-clip .tile-media :is(img, video) {
  object-position: 50% 50%;
}

/* What each beta added: the release pages' own lists, filled in at deploy. Each beta is one
   row, its version beside its changes; the newest is on the accent's wash. */
.dl-news {
  max-width: calc(var(--max) + 2 * var(--edge));
  margin: 0 auto;
  padding: clamp(64px, 7vw, 104px) var(--edge) 0;
}
/* With no beta's list, the deploy fills in nothing and the section takes no room. */
.dl-news:empty {
  display: none;
}
.whats-new summary {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  list-style: none;
  cursor: pointer;
  border-radius: 10px;
}
.whats-new summary::-webkit-details-marker {
  display: none;
}
/* The chevron turns when the list opens. */
.whats-new summary::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-right: 2.5px solid var(--text-muted);
  border-bottom: 2.5px solid var(--text-muted);
  transform: translateY(-4px) rotate(45deg);
  transition: transform 220ms var(--ease);
}
.whats-new[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.whats-new h2 {
  display: inline;
}
.whats-new-note {
  margin-top: 10px;
  color: var(--text-muted);
}
.whats-new-build {
  display: grid;
  grid-template-columns: minmax(0, 16em) minmax(0, 1fr);
  gap: 6px 24px;
  align-items: baseline;
  margin-top: 8px;
  padding: 16px clamp(18px, 2vw, 24px);
  border-radius: 18px;
  background: var(--bg-bubble);
}
.whats-new-note + .whats-new-build {
  margin-top: 24px;
}
.whats-new-build:has(.whats-new-current) {
  background: color-mix(in srgb, var(--accent) var(--wash), var(--bg-rail));
}
.whats-new-build h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.whats-new-current {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.whats-new-build ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.whats-new-build li {
  overflow-wrap: anywhere;
}
.whats-new-build li + li {
  margin-top: 6px;
}
.whats-new-build a {
  color: var(--text-muted);
}

/* Not yet: Stable, Windows and iPhone in one line, beside the Clawling on its hill at
   daybreak, the sun not quite up. */
.dl-later {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: clamp(180px, 22%, 280px) minmax(0, 1fr);
  align-items: center;
  width: min(var(--max), 100% - 2 * var(--edge));
  margin: clamp(56px, 6vw, 88px) auto 0;
  min-height: 168px;
  border-radius: 28px;
  background:
    radial-gradient(40% 70% at 14% 100%, rgba(246, 189, 59, 0.26), transparent 72%),
    linear-gradient(180deg, #101924 0%, #1c2630 56%, #392e24 100%);
  color: #eef5f8;
}
:root[data-theme="light"] .dl-later {
  background:
    radial-gradient(40% 70% at 14% 100%, rgba(246, 189, 59, 0.3), transparent 72%),
    linear-gradient(180deg, #dcecf7 0%, #f3efe4 68%, #fae3be 100%);
  color: var(--text);
}
.dl-later .shore {
  position: absolute;
  z-index: -1;
  left: -6%;
  width: clamp(260px, 32%, 420px);
  bottom: -58%;
  height: 100%;
  border-radius: 50%;
  background: #2b333b;
}
:root[data-theme="light"] .dl-later .shore {
  background: #d6d4ce;
}
.claw-clawling.dl-clawling {
  justify-self: center;
  width: clamp(104px, 9vw, 128px);
  margin: 18px 0 0;
}
/* The white ball, on the hill and raised against the sky, keeps a darker rim here. */
.dl-later .ball,
.dl-later [data-part="ball"] {
  stroke: #8c9199;
  stroke-width: 1;
}
.dl-later-text {
  padding: 24px clamp(20px, 4vw, 56px) 24px 0;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.45;
}
.dl-later-text a {
  color: inherit;
  white-space: nowrap;
}

/* Entrances: below the first screen, the parts rise in turn, once. Content shows without
   download.js. */
.dl-entrances .dl-rise {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.dl-entrances .dl-rise.in {
  opacity: 1;
  transform: none;
}
/* Anything that takes focus shows at once, risen or not. The Lantern's rise is over once it
   has ended or taken focus (download.js marks it), so it never plays a second time. */
.dl-lantern-zone:focus-within,
.dl-lantern-zone.dl-surfaced {
  animation: none;
}
.dl-entrances .dl-rise:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .dl-lantern-zone {
    animation: none;
  }
  .dl-entrances .dl-rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* The Lantern drifts inside its button, which stays put for the pointer. */
.js .claw-lantern > .claw-art {
  animation: drift 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
/* Marine snow, falling up past the Lantern. */
.snow i,
.fizz i {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.snow i {
  bottom: -8px;
  width: 3px;
  height: 3px;
  background: rgba(214, 238, 250, 0.4);
  animation: snow 12s linear infinite;
}
.snow i:nth-child(1) {
  left: 12%;
}
.snow i:nth-child(2) {
  left: 27%;
  animation-delay: -4s;
  animation-duration: 15s;
}
.snow i:nth-child(3) {
  left: 41%;
  animation-delay: -9s;
  width: 2px;
  height: 2px;
}
.snow i:nth-child(4) {
  left: 63%;
  animation-delay: -2s;
  animation-duration: 14s;
}
.snow i:nth-child(5) {
  left: 78%;
  animation-delay: -7s;
  width: 2px;
  height: 2px;
}
.snow i:nth-child(6) {
  left: 90%;
  animation-delay: -11s;
  animation-duration: 16s;
}
@keyframes snow {
  from {
    transform: translate(0, 0);
    opacity: 0;
  }
  15%,
  80% {
    opacity: 1;
  }
  to {
    transform: translate(14px, -320px);
    opacity: 0;
  }
}
/* A press sends up a few bubbles. */
.fizz i {
  left: calc(50% + var(--x));
  top: 46%;
  width: var(--d);
  height: var(--d);
  border: 1.5px solid rgba(191, 233, 255, 0.75);
  background: rgba(191, 233, 255, 0.16);
  opacity: 0;
}
:root[data-theme="light"] .dl-hero .fizz i {
  border-color: rgba(20, 110, 160, 0.6);
  background: rgba(69, 189, 245, 0.16);
}
.fizz i:nth-child(1) {
  --x: -38px;
  --d: 12px;
}
.fizz i:nth-child(2) {
  --x: 30px;
  --d: 9px;
  --fizz-delay: 120ms;
}
.fizz i:nth-child(3) {
  --x: -12px;
  --d: 8px;
  --fizz-delay: 240ms;
}
.fizz i:nth-child(4) {
  --x: 46px;
  --d: 15px;
  --fizz-delay: 360ms;
}
.fizz i:nth-child(5) {
  --x: -56px;
  --d: 8px;
  --fizz-delay: 480ms;
}
[data-burst] .fizz i {
  animation: fizz 1.6s cubic-bezier(0.2, 0.6, 0.3, 1) var(--fizz-delay, 0ms) both;
}
@keyframes fizz {
  from {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    transform: translateY(-150px) scale(1);
    opacity: 0;
  }
}
.claw-clawling {
  position: relative;
}

/* The download page on narrower windows. */
@media (max-width: 1040px) {
  .dl-band {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .dl-hero,
  .dl-later {
    border-radius: 24px;
  }
  .dl-clip .tile-media {
    aspect-ratio: 4 / 5;
  }
  .whats-new-build {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-later {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  /* The Clawling first, as in the page, on a hill wide enough to hold the line below it. */
  .dl-later .shore {
    left: 50%;
    width: 560px;
    bottom: auto;
    top: 116px;
    height: 560px;
    translate: -50% 0;
  }
  .dl-later-text {
    padding: 14px 24px 30px;
  }
  .claw-clawling.dl-clawling {
    margin-top: 22px;
  }
}
@media (max-width: 640px) {
  .js .dl-hero .cmd {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    border-radius: 22px;
  }
  .js .dl-hero .cmd-box {
    flex: 1 1 100%;
    padding: 0 0 0 12px;
    text-align: left;
  }
  .dl-get .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* The Claws: Clawtrate's creatures, from the app's avatar spec on the 40-unit
   grid. Each pose is a data-s group, shown while the drawing's data-state
   names it; each moving part carries its motion inline, as the app draws it. */
.claw-defs {
  position: absolute;
  overflow: hidden;
}
.claw {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  border-radius: 20px;
  -webkit-tap-highlight-color: transparent;
}
.claw:enabled {
  cursor: pointer;
}
.claw:focus-visible {
  outline-offset: 4px;
}
.claw-art {
  width: 100%;
  height: auto;
  overflow: visible;
}
.claw-art [data-s] {
  display: none;
}
.claw-art[data-state="idle"] [data-s~="idle"],
.claw-art[data-state="thinking"] [data-s~="thinking"],
.claw-art[data-state="working"] [data-s~="working"],
.claw-art[data-state="waiting"] [data-s~="waiting"],
.claw-art[data-state="blocked"] [data-s~="blocked"],
.claw-art[data-state="done"] [data-s~="done"] {
  display: inline;
}
/* Blocked: the creature loses its colour a little. */
.claw-art [data-muted] {
  filter: saturate(0.4) brightness(0.85);
}
/* The Lantern's light: low while it thinks, bright once it looks at you. */
.lantern .halo {
  opacity: 1;
}
.lantern [data-s="thinking"] .halo {
  animation: halo-low 2600ms cubic-bezier(0.42, 0, 0.58, 1) infinite;
  opacity: 0.35;
}
/* At rest the light stays low, so it visibly comes up when the Lantern wakes. */
@keyframes halo-low {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.16;
  }
}

/* The spec's motions (avatar.ts, AVATAR_MOTIONS), in grid units. */
@keyframes av-blink {
  0% {
    translate: 0px 0px;
  }
  91% {
    translate: 0px 0px;
  }
  93.5% {
    translate: 0px 6.7px;
  }
  96% {
    translate: 0px 0px;
  }
  100% {
    translate: 0px 0px;
  }
}
@keyframes av-blink-large {
  0% {
    translate: 0px 0px;
  }
  91% {
    translate: 0px 0px;
  }
  93.5% {
    translate: 0px 7.3px;
  }
  96% {
    translate: 0px 0px;
  }
  100% {
    translate: 0px 0px;
  }
}
@keyframes av-sway {
  0% {
    rotate: -4deg;
  }
  50% {
    rotate: 4deg;
  }
  100% {
    rotate: -4deg;
  }
}
@keyframes av-bob {
  0% {
    translate: 0px 0px;
  }
  50% {
    translate: 0px -1.4px;
  }
  100% {
    translate: 0px 0px;
  }
}
@keyframes av-lean {
  0% {
    scale: 1;
  }
  45% {
    scale: 1.07;
  }
  60% {
    scale: 1.07;
  }
  100% {
    scale: 1;
  }
}
@keyframes av-hop {
  0% {
    translate: 0px 0px;
  }
  4% {
    translate: 0px 0px;
  }
  10% {
    translate: 0px -2.8px;
  }
  16% {
    translate: 0px 0px;
  }
  20% {
    translate: 0px -0.9px;
  }
  24% {
    translate: 0px 0px;
  }
  100% {
    translate: 0px 0px;
  }
}
@keyframes av-snap {
  0% {
    stroke-dasharray: 78 22;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 97 3;
    stroke-dashoffset: 9.5;
  }
  100% {
    stroke-dasharray: 78 22;
    stroke-dashoffset: 0;
  }
}
@keyframes av-wave {
  0% {
    rotate: -30deg;
  }
  50% {
    rotate: -78deg;
  }
  100% {
    rotate: -30deg;
  }
}
@keyframes av-crawl {
  0% {
    translate: 0px 0px;
  }
  50% {
    translate: -1px -0.6px;
  }
  100% {
    translate: 0px 0px;
  }
}
@keyframes av-tilt {
  0% {
    rotate: -7deg;
  }
  50% {
    rotate: 5deg;
  }
  100% {
    rotate: -7deg;
  }
}
@keyframes av-lure-sway {
  0% {
    rotate: -9deg;
  }
  50% {
    rotate: 9deg;
  }
  100% {
    rotate: -9deg;
  }
}
@keyframes av-conduct {
  0% {
    rotate: -16deg;
  }
  50% {
    rotate: 14deg;
  }
  100% {
    rotate: -16deg;
  }
}
@keyframes av-ping {
  0% {
    scale: 1;
    opacity: 0.85;
  }
  60% {
    scale: 3;
    opacity: 0;
  }
  100% {
    scale: 3;
    opacity: 0;
  }
}
@keyframes av-glow {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    opacity: 1;
  }
}
@keyframes av-tip {
  0% {
    translate: 0px 0px;
    rotate: 0deg;
  }
  5% {
    translate: 0px 0px;
    rotate: 0deg;
  }
  11% {
    translate: 0px -1.6px;
    rotate: -12deg;
  }
  18% {
    translate: 0px 0px;
    rotate: 0deg;
  }
  100% {
    translate: 0px 0px;
    rotate: 0deg;
  }
}

/* The home page's Clawling sits on the film window's ledge. The window's top
   edge cuts it off: the button shows only the part above, in front of the
   window's shadow. The window lines up with the headline. */
.film {
  position: relative;
}
.film .win {
  position: relative;
  z-index: 1;
}
.claw-perch {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 8%, 64px);
  top: -58px;
  width: 80px;
  height: 58px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.claw-perch .claw-art {
  width: 80px;
  height: 80px;
}

/* Under reduced motion every Claw holds a still pose; a press still changes it. */
@media (prefers-reduced-motion: reduce) {
  .claw-art,
  .claw-art *,
  .snow i,
  .fizz i {
    animation: none !important;
  }
  /* A part whose motion is the point holds a still pose, such as a claw raised to wave. */
  .claw-art .av-still {
    rotate: var(--av-still) !important;
  }
  .pc [data-part="pupil"],
  .claw-side [data-part="pupil"] {
    translate: none !important;
  }
  .js .claw-side[data-wake][data-asleep] {
    opacity: 1;
    transform: none;
  }
  .lantern [data-part="ping"],
  .snow {
    display: none !important;
  }
}

/* Built by engineers from: the logos in one colour, each at its own height. */
.pedigree {
  --s: 1;
  padding-top: clamp(48px, 6vw, 72px);
}
.pedigree-title {
  color: var(--text-muted);
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pedigree-logos {
  list-style: none;
  padding: 0;
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.pedigree-logos li {
  display: flex;
  justify-content: center;
}
.pedigree-logos img {
  display: block;
  width: auto;
  height: calc(var(--h) * var(--s));
  filter: brightness(0) invert(1);
  opacity: 0.55;
}
:root[data-theme="light"] .pedigree-logos img {
  filter: brightness(0);
  opacity: 0.58;
}
/* Heights and nudges by eye: the AWS and Amazon smiles sit below their words. */
.logo-aws {
  --h: 40px;
  transform: translateY(3px);
}
.logo-amazon {
  --h: 35px;
  transform: translateY(4px);
}
.logo-sonos {
  --h: 21px;
}
.logo-mit-lincoln-laboratory {
  --h: 28px;
}
.logo-summit-partners {
  --h: 28px;
}
.logo-philips {
  --h: 23px;
}
/* The logos come in one after another, once. */
.js .pedigree[data-reveal] li {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms var(--ease),
    transform 700ms var(--ease);
}
.js .pedigree.in li {
  opacity: 1;
  transform: none;
}
.pedigree li:nth-child(2) {
  transition-delay: 70ms;
}
.pedigree li:nth-child(3) {
  transition-delay: 140ms;
}
.pedigree li:nth-child(4) {
  transition-delay: 210ms;
}
.pedigree li:nth-child(5) {
  transition-delay: 280ms;
}
.pedigree li:nth-child(6) {
  transition-delay: 350ms;
}
@media (prefers-reduced-motion: reduce) {
  .js .pedigree[data-reveal] li {
    opacity: 1;
    transform: none;
  }
}

/* Below 1160px the row no longer fits: two rows, AWS, Amazon and Sonos, then
   MIT Lincoln Laboratory, Summit Partners and Philips. The ::before is the
   line break (flex has none), its height the gap between rows. */
@media (max-width: 1160px) {
  .pedigree {
    --s: 0.9;
  }
  .pedigree-logos {
    flex-wrap: wrap;
    gap: 0 24px;
  }
  .pedigree-logos::before {
    content: "";
    order: 1;
    flex: 0 0 100%;
    height: 40px;
  }
  .pedigree-logos li:nth-child(n + 4) {
    order: 2;
  }
}
/* Phones and small tablets: three rows. AWS, Amazon and Sonos; MIT Lincoln
   Laboratory alone; Summit Partners and Philips. The ::before and ::after are
   the two line breaks. The logos keep their own heights at a smaller scale. */
@media (max-width: 720px) {
  .pedigree {
    --s: 0.72;
  }
  .pedigree-logos {
    gap: 0 16px;
  }
  .pedigree-logos::before,
  .pedigree-logos::after {
    content: "";
    flex: 0 0 100%;
    height: 32px;
  }
  .pedigree-logos::after {
    order: 3;
  }
  .pedigree-logos li:nth-child(n + 5) {
    order: 4;
  }
  .pedigree-logos li:nth-child(4) {
    flex: 0 0 100%;
    justify-content: flex-start;
  }
  .pedigree-logos .logo-mit-lincoln-laboratory {
    width: min(100%, 340px);
    height: auto;
  }
}
@media (max-width: 360px) {
  .pedigree {
    --s: 0.72;
  }
}
