/* nekodot site — the Windows client's black and white, where only the bots have color. */
@font-face {
  font-family: 'Nunito';
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/nunito-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/nunito-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/nunito-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/nunito-800.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --side: #f7f7f7;
  --ink: #000000;
  --ink2: #5c5c5c;
  --ink3: #767676;
  --line: #e6e6e6;
  --bubble: #f2f2f2;
  --raised: #eaeaea;
  --hover: #f0f0f0;
  --sans:
    'Nunito', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC',
    'Noto Sans SC', sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav: 56px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #000000;
    --side: #101010;
    --ink: #ffffff;
    --ink2: #b0b0b0;
    --ink3: #8c8c8c;
    --line: #2a2a2a;
    --bubble: #1c1c1c;
    --raised: #2a2a2a;
    --hover: #1e1e1e;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --side: #101010;
  --ink: #ffffff;
  --ink2: #b0b0b0;
  --ink3: #8c8c8c;
  --line: #2a2a2a;
  --bubble: #1c1c1c;
  --raised: #2a2a2a;
  --hover: #1e1e1e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 16px);
  scrollbar-color: var(--raised) transparent;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--ink);
}
::selection {
  background: var(--ink);
  color: var(--bg);
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 6.6vw, 5.5rem);
  line-height: 1.06;
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  line-height: 1.12;
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.section {
  padding-block: clamp(72px, 11vw, 144px);
}
.section-lead,
.lead {
  color: var(--ink2);
  max-width: 34em;
}
.fine {
  font-size: 13.5px;
  color: var(--ink3);
  line-height: 1.55;
}

/* controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.btn-ink:hover {
  background: var(--ink2);
}
.btn-line {
  border-color: var(--line);
}
.btn-line:hover {
  background: var(--hover);
}
.icon-btn,
.text-btn {
  display: inline-grid;
  place-items: center;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  transition: background-color 0.15s;
}
.icon-btn:hover,
.text-btn:hover {
  background: var(--hover);
}
.text-btn {
  padding-inline: 8px;
  font-size: 14px;
  font-weight: 600;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn .i-gh {
  fill: currentColor;
  stroke: none;
}
.i-moon {
  display: none;
}
:root[data-theme='dark'] .i-sun {
  display: none;
}
:root[data-theme='dark'] .i-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .i-sun {
    display: none;
  }
  :root:not([data-theme='light']) .i-moon {
    display: block;
  }
}

/* avatars: geometry mirrors the client's painter */
.avatar {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.avatar .ear {
  transform-box: view-box;
  transform-origin: var(--px) var(--py);
}
.avatar .petals,
.avatar .lid {
  transform-box: view-box;
}
.avatar .petals {
  transform-origin: 20px 20px;
}
.avatar .lid {
  transform-origin: 20px var(--ey);
}
.avatar.working .ear {
  animation: lean 1.2s ease-in-out infinite;
}
.avatar.working .lid {
  animation: scan 3.2s ease-in-out infinite;
}
.avatar.working .petals {
  animation: spin 9.6s linear infinite;
}
.avatar.working .ghost {
  animation: bob 1.2s ease-in-out infinite;
}
@keyframes lean {
  50% {
    transform: rotate(8deg);
  }
}
@keyframes scan {
  25% {
    transform: translateX(1.5px);
  }
  75% {
    transform: translateX(-1.5px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes bob {
  50% {
    transform: translateY(-1.2px);
  }
}
@keyframes flick {
  40% {
    transform: rotate(-12deg);
  }
}
@keyframes blink {
  0%,
  96%,
  100% {
    transform: scaleY(1);
  }
  98% {
    transform: scaleY(0.1);
  }
}
[data-avatar] {
  display: block;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  height: var(--nav);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand [data-avatar] {
  width: 24px;
  height: 24px;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}
.nav-links a {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink2);
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.nav-links a:hover {
  background: var(--hover);
  color: var(--ink);
}
.nav-links a.is-active {
  color: var(--ink);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* hero */
.hero {
  padding-top: clamp(36px, 6vw, 72px);
}
.hero-row {
  margin-top: clamp(20px, 2.6vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.downloads[data-primary='android'] [data-platform='android'] {
  order: -1;
}
.hero-stage {
  position: relative;
  margin-top: clamp(32px, 5vw, 56px);
}
/* The team sits on the window's top edge, half hidden behind it. */
.crew {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: space-between;
  padding-inline: clamp(4px, 3vw, 40px);
  margin-bottom: calc(clamp(38px, 7.4vw, 88px) * -0.24);
}
.crew > span {
  width: clamp(38px, 7.4vw, 88px);
  height: clamp(38px, 7.4vw, 88px);
  animation: arrive 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
}
@keyframes arrive {
  from {
    transform: translateY(46%);
  }
}
.crew .lid {
  animation: blink 7s linear infinite;
  animation-delay: calc(var(--i) * -0.9s);
}
.crew > span:hover .ear {
  animation: flick 0.45s var(--ease);
}
.crew > span:hover .avatar {
  transform: translateY(-5%);
}
.crew .avatar {
  transition: transform 0.3s var(--ease);
}
.window {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.shot {
  width: 100%;
}
.only-narrow {
  display: none;
}

/* live replay: a small working copy of the Windows client */
#demo h2 {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 620px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.app-side {
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  text-align: left;
  transition: background-color 0.15s;
}
.app-row:hover {
  background: var(--hover);
}
.app-row[aria-selected='true'] {
  background: var(--raised);
}
.app-face {
  flex: none;
  width: 30px;
  height: 30px;
}
.app-faces {
  position: relative;
}
.app-faces > span {
  position: absolute;
  width: 19px;
  height: 19px;
}
.app-faces > span:first-child {
  left: 0;
  top: 0;
}
.app-faces > span:last-child {
  right: 0;
  bottom: 0;
}
.app-row-copy {
  min-width: 0;
  display: grid;
  line-height: 1.3;
}
.app-row-copy strong {
  font-size: 14.5px;
  font-weight: 700;
}
.app-row-copy small {
  font-size: 13px;
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-top {
  position: relative;
  flex: none;
  height: 52px;
  display: grid;
  place-items: center;
}
.app-replay {
  position: absolute;
  right: 10px;
  top: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding-inline: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  max-width: calc(100% - 96px);
  white-space: nowrap;
}
.pill-face {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}
.pill-face .app-faces > span {
  width: 13px;
  height: 13px;
}
.pill strong {
  font-size: 14px;
  font-weight: 700;
}
.pill small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink3);
  min-width: 0;
}
.chain {
  display: inline-flex;
  gap: 2.5px;
}
.chain i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--ink3);
}
.chain i.on {
  background: var(--ink);
  border-color: var(--ink);
}
.app-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 clamp(14px, 4vw, 56px) 12px;
  font-size: 15px;
  line-height: 1.5;
}
.m {
  animation: rise 0.35s var(--ease) both;
  flex: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.m-user {
  align-self: flex-end;
  max-width: 78%;
  padding: 7px 13px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
}
.m-bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 7px 13px;
  background: var(--bubble);
  border-radius: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.m-bubble .at {
  font-weight: 700;
}
.caret {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: 2px;
  animation: pulse 0.9s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.m-block {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 10px;
}
.m-block .m-face {
  width: 26px;
  height: 26px;
}
.m-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.m-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  line-height: 1.2;
}
.m-tool {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-inline: 4px;
  max-width: 88%;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink3);
  white-space: nowrap;
}
.m-tool::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink3);
  transform: translateY(-1px);
}
.m-tool.running::before {
  background: var(--ink);
  animation: pulse 0.9s ease-in-out infinite;
}
.m-tool b {
  font-weight: 400;
  color: var(--ink);
}
.m-tool span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-tool em {
  margin-left: auto;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.m-card {
  align-self: flex-start;
  width: min(100%, 560px);
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.m-card code {
  display: block;
  padding: 6px 9px;
  background: var(--bubble);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.m-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.m-actions span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding-inline: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.2s var(--ease),
    background-color 0.15s;
}
.m-actions .ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.m-actions .pressed {
  transform: scale(0.95);
}
.m-result {
  font-size: 13px;
  color: var(--ink3);
}
.thinking {
  display: inline-flex;
  gap: 3px;
  padding: 11px 13px;
  background: var(--bubble);
  border-radius: 14px;
  align-self: flex-start;
}
.thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink3);
  animation: hop 1s ease-in-out infinite;
}
.thinking i:nth-child(2) {
  animation-delay: 0.14s;
}
.thinking i:nth-child(3) {
  animation-delay: 0.28s;
}
@keyframes hop {
  30% {
    transform: translateY(-3px);
  }
}
.app-composer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin: 0 clamp(14px, 4vw, 56px) 14px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink3);
  font-size: 15px;
}
.app-send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--raised);
  transition: background-color 0.15s;
}
.app-send::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--ink3);
}
.app-send.running {
  background: var(--ink);
}
.app-send.running::after {
  background: var(--bg);
}

/* one half white, one half black, whatever the theme */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.duo-half {
  position: relative;
  height: clamp(560px, 56vw, 760px);
  overflow: hidden;
  padding: clamp(32px, 4.5vw, 64px) 0 0 clamp(16px, 4.5vw, 64px);
}
.duo-light {
  background: #fff;
  color: #000;
}
.duo-dark {
  background: #000;
  color: #fff;
}
.duo-copy p {
  margin-top: 6px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #5c5c5c;
}
.duo-dark .duo-copy p {
  color: #b0b0b0;
}
.duo-window {
  position: absolute;
  left: clamp(16px, 4.5vw, 64px);
  top: clamp(150px, 15vw, 200px);
  width: 1040px;
  max-width: none;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
}
.duo-phone {
  position: absolute;
  left: clamp(16px, 4.5vw, 64px);
  top: clamp(150px, 15vw, 200px);
  width: min(320px, 70%);
  border: 1px solid #2a2a2a;
  border-radius: 28px;
  overflow: hidden;
}

/* avatar maker */
.maker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px clamp(32px, 6vw, 88px);
}
.maker-copy h2 {
  margin-bottom: 16px;
}
.maker-tool {
  display: grid;
  gap: 20px;
  justify-items: center;
}
.maker-face {
  display: block;
  width: clamp(160px, 24vw, 280px);
  height: clamp(160px, 24vw, 280px);
  margin-bottom: 8px;
  border-radius: 12px;
}
.maker-shapes,
.maker-colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.maker-shapes {
  gap: 4px;
}
.maker-shapes button {
  width: 48px;
  height: 48px;
  padding: 6px;
  border-radius: 8px;
  transition: background-color 0.15s;
}
.maker-shapes button:hover {
  background: var(--hover);
}
.maker-shapes button[aria-pressed='true'] {
  background: var(--raised);
}
.maker-colors {
  gap: 8px;
  max-width: 256px;
}
.maker-colors button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c);
  transition: transform 0.2s var(--ease);
}
.maker-colors button:hover {
  transform: scale(1.15);
}
.maker-colors button[aria-pressed='true'] {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--ink);
}

/* features: text scrolls, one window stays */
.features {
  padding-block-start: 0;
}
.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
}
.step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  color: var(--ink3);
  transition: color 0.3s;
}
.step p {
  color: inherit;
  max-width: 28em;
}
.step.is-active {
  color: var(--ink);
}
.step.is-active p {
  color: var(--ink2);
}
.step-media {
  display: none;
}
.stage-sticky {
  position: sticky;
  top: calc(50vh - min(22vw, 250px));
  aspect-ratio: 16 / 10;
}
.stage-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.6s var(--ease);
}
.stage-item.is-active {
  opacity: 1;
  transform: none;
  z-index: 2;
}

/* illustration of the screen viewer */
.screen-mock {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.step-media .screen-mock {
  aspect-ratio: 16 / 10;
}
.sm-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 12px;
}
.sm-face {
  width: 22px;
  height: 22px;
}
.sm-strip {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding-inline: 12px;
  background: var(--side);
  color: var(--ink2);
}
.sm-strip b {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
}
.sm-view {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #000;
}
.sm-page {
  width: min(62%, 280px);
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  color: #000;
}
.sm-field {
  display: block;
  height: 30px;
  padding-inline: 9px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  font-size: 13px;
  line-height: 28px;
  color: #5c5c5c;
}
.sm-focus {
  border-color: #000;
}
.sm-submit {
  display: block;
  height: 30px;
  border-radius: 6px;
  background: #000;
}
.sm-cursor {
  position: absolute;
  left: 58%;
  top: 56%;
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: #000;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.sm-caption {
  flex: none;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--ink3);
}

/* the rest */
#more {
  padding-block-start: clamp(24px, 4vw, 48px);
}
.more {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.more > div {
  display: grid;
  grid-template-columns: minmax(7em, 0.42fr) minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.more dt {
  font-weight: 700;
}
.more dd {
  color: var(--ink2);
}

/* the route: a dot makes the trip */
.how {
  background: var(--side);
}
.route {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
}
.route::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background: var(--ink3);
}
.route::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  animation: travel 7s var(--ease) infinite alternate;
}
@keyframes travel {
  0%,
  8% {
    left: 0;
  }
  28%,
  36% {
    left: 25%;
  }
  56%,
  64% {
    left: 50%;
  }
  92%,
  100% {
    left: 75%;
  }
}
.route li {
  display: grid;
  align-content: start;
  gap: 4px;
}
.route strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.route span {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.45;
  max-width: 17em;
}
.facts {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  gap: 8px;
  color: var(--ink2);
  max-width: 44em;
}

/* the last section inverts the page */
.start {
  --muted: color-mix(in srgb, var(--bg) 62%, var(--ink));
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(72px, 10vw, 136px);
}
.start ::selection {
  background: var(--bg);
  color: var(--ink);
}
.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 88px);
}
.start .downloads {
  margin-top: 28px;
}
.btn-paper {
  background: var(--bg);
  color: var(--ink);
}
.btn-paper:hover {
  background: var(--raised);
}
.btn-ghost {
  border-color: var(--ink2);
  color: var(--bg);
}
.btn-ghost:hover {
  border-color: var(--bg);
}
.start .fine {
  margin-top: 14px;
  color: var(--muted);
  max-width: 30em;
}
.start-steps {
  counter-reset: step;
  display: grid;
}
.start-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 0 18px 44px;
  border-top: 1px solid var(--ink2);
}
.start-steps li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.start-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.5;
}
.start-steps strong {
  font-size: 1.15rem;
  font-weight: 700;
}
.start-steps p {
  margin-top: 2px;
  font-size: 15.5px;
  color: var(--muted);
}

.footer {
  padding-block: 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14.5px;
  color: var(--ink2);
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer .fine {
  flex-basis: 100%;
}

@media (max-width: 1000px) {
  .features-layout {
    display: block;
  }
  .stage {
    display: none;
  }
  .step {
    min-height: 0;
    padding-block: 28px;
    color: var(--ink);
  }
  .step p {
    color: var(--ink2);
  }
  .step-media {
    display: block;
    margin-top: 8px;
  }
  .step-media .stage-item {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
  }
  .more {
    grid-template-columns: minmax(0, 1fr);
  }
  .maker-layout,
  .start-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }
  .duo-half {
    height: 620px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .nav-links {
    display: none;
  }
  .only-wide {
    display: none;
  }
  .only-narrow {
    display: block;
  }
  .hero-stage .window {
    height: 520px;
  }
  .maker-shapes button {
    width: 40px;
    height: 40px;
    padding: 5px;
  }
  .downloads {
    width: 100%;
  }
  .downloads .btn {
    flex: 1 1 150px;
  }
  .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 600px;
  }
  .app-side {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 6px;
  }
  .app-row {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 6px;
    gap: 6px;
  }
  .app-row .app-face {
    width: 24px;
    height: 24px;
  }
  .app-row .app-faces > span {
    width: 15px;
    height: 15px;
  }
  .app-row-copy small {
    display: none;
  }
  .app-row-copy strong {
    font-size: 13.5px;
    white-space: nowrap;
  }
  .pill {
    max-width: calc(100% - 52px);
    margin-right: 32px;
  }
  .m-user,
  .m-bubble,
  .m-tool {
    max-width: 100%;
  }
  .duo-window {
    width: 720px;
  }
  .duo-half {
    height: 560px;
  }
  .route {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 0 0 28px;
    gap: 22px;
  }
  .route::before {
    left: 5px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .route::after {
    animation-name: travel-down;
  }
  .more > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
@keyframes travel-down {
  0%,
  8% {
    top: 0;
  }
  28%,
  36% {
    top: 26%;
  }
  56%,
  64% {
    top: 52%;
  }
  92%,
  100% {
    top: 78%;
  }
}

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