/* Manotes website. Every colour, size, radius and curve comes from tokens.css (generated from
   the brand tokens by `cargo xtask sync-brand`); this file only arranges them. */

@font-face {
  font-family: "Red Hat Display Variable";
  src: url("fonts/RedHatDisplay-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Display Variable";
  src: url("fonts/RedHatDisplay-Italic-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Tenor Sans";
  src: url("fonts/TenorSans-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  src: url("fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font: var(--type-body-m);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-md);
  z-index: 10;
}
.skip:focus {
  top: var(--space-4);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--layout-margin-compact);
}

/* Type */

.eyebrow {
  margin: 0 0 var(--space-4);
  font: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.display {
  margin: 0;
  font: var(--type-display-m);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display--small {
  font: var(--type-display-s);
}

.heading {
  margin: 0 0 var(--space-4);
  font: var(--type-heading-l);
  text-wrap: balance;
}

.lede {
  max-width: 560px;
  margin: var(--space-6) auto 0;
  font: var(--type-body-l);
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  font: var(--type-body-s);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform var(--duration-fast) var(--ease-actuate),
    background var(--duration-fast) var(--ease-actuate);
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
}
.button--ghost {
  background: transparent;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.button--ghost:hover {
  background: var(--surface-1);
}
.button--small {
  height: 34px;
  padding: 0 var(--space-4);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  max-width: 1120px;
  height: 60px;
  margin: 0 auto;
  padding: 0 var(--layout-margin-compact);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font: var(--type-heading-s);
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: var(--space-6);
  margin-right: auto;
}
.nav__links a {
  font: var(--type-body-s);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-actuate);
}
.nav__links a:hover {
  color: var(--text-primary);
}

/* Hero */

.hero {
  padding-top: var(--space-24);
  text-align: center;
}
.hero__copy {
  max-width: 820px;
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
  font: var(--type-body-s);
  color: var(--text-tertiary);
}
.platforms span {
  margin-left: var(--space-1);
  font: var(--type-caption);
  color: var(--text-disabled);
}
.platforms__now {
  color: var(--text-primary);
}

/* The app, drawn: a window with a sticky floating above it. */

.stage {
  position: relative;
  margin: var(--space-20) 0 0;
  padding: var(--space-12) var(--space-12) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--accent-wash), transparent 70%),
    var(--surface-1);
  overflow: hidden;
  text-align: left;
}

.window {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--canvas);
  box-shadow: var(--elevation-3);
  overflow: hidden;
}
.window__bar,
.sticky__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 var(--space-4);
}
.window__bar i,
.sticky__bar i {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
}
.window__body {
  display: grid;
  grid-template-columns: 180px 240px 1fr;
  min-height: 380px;
  font: var(--type-body-s);
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) var(--space-2) var(--space-6);
  background: var(--surface-1);
  border-right: 1px solid var(--hairline-subtle);
}
.mock-sidebar b {
  padding: var(--space-2) var(--space-3) var(--space-3);
  font: var(--type-heading-s);
}
.mock-sidebar span {
  display: flex;
  justify-content: space-between;
  padding: 6px var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.mock-sidebar span.is-selected {
  background: var(--surface-3);
  color: var(--text-primary);
  font-weight: 500;
}
.mock-sidebar em {
  font-style: normal;
  color: var(--text-tertiary);
}
.mock-sidebar small,
.mock-list small {
  padding: var(--space-4) var(--space-3) var(--space-1);
  font: var(--type-caption);
  font-weight: 600;
  color: var(--text-tertiary);
}

.mock-list {
  display: flex;
  flex-direction: column;
  padding: var(--space-2);
  border-right: 1px solid var(--hairline-subtle);
}
.mock-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border-radius: var(--radius-md);
}
.mock-row b {
  font-weight: 500;
}
.mock-row span {
  font: var(--type-caption);
  color: var(--text-tertiary);
}
.mock-row.is-selected {
  background: var(--accent);
  color: var(--on-accent);
}
.mock-row.is-selected span {
  color: color-mix(in srgb, var(--on-accent) 80%, transparent);
}

.mock-editor {
  padding: var(--space-8) var(--space-10);
  font: var(--type-body-m);
}
.mock-editor h3 {
  margin: 0 0 var(--space-4);
  font: var(--type-heading-m);
}
.mock-editor p {
  margin: 0 0 var(--space-4);
}
mark {
  padding: 0 2px;
  border-radius: var(--radius-xs);
  background: var(--accent-wash);
  color: inherit;
}

.mock-checks {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}
.mock-checks li {
  position: relative;
  padding: 3px 0 3px 28px;
}
.mock-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1.5px var(--text-tertiary);
}
.mock-checks li.done {
  color: var(--text-tertiary);
  text-decoration: line-through;
}
.mock-checks li.done::before {
  background: var(--accent);
  box-shadow: none;
}
.mock-checks li.done::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 6px;
  height: 3px;
  margin-top: -3px;
  border-left: 1.5px solid var(--on-accent);
  border-bottom: 1.5px solid var(--on-accent);
  transform: rotate(-45deg);
}

.mock-table {
  border-collapse: collapse;
  font: var(--type-body-s);
}
.mock-table th,
.mock-table td {
  min-width: 96px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--hairline);
  text-align: left;
}
.mock-table th {
  background: var(--surface-1);
  font-weight: 600;
}

.sticky {
  position: absolute;
  right: var(--space-8);
  bottom: var(--space-16);
  width: 260px;
  padding: 0 var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--elevation-3);
  font: var(--type-body-s);
}
.sticky__bar {
  margin: 0 calc(-1 * var(--space-5));
}
.sticky__bar span {
  margin: 0 auto;
  padding-right: 40px;
  font: var(--type-caption);
  color: var(--text-tertiary);
}
.sticky p {
  margin: var(--space-2) 0 var(--space-3);
}
.sticky__tools {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  width: max-content;
  margin: var(--space-3) auto 0;
  padding: 6px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--hairline-subtle);
}
.sticky__tools span {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-xs);
  background: var(--surface-3);
}
.sticky--large {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

/* Sections */

.statement {
  max-width: 860px;
  padding-top: var(--space-32);
  padding-bottom: var(--space-16);
  text-align: center;
}
.statement p {
  margin: 0;
  font: var(--type-heading-m);
  color: var(--text-secondary);
  text-wrap: balance;
}

.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-8);
}
.section__head {
  max-width: 640px;
  margin: 0 auto var(--space-12);
  text-align: center;
}
.section__head p,
.split__copy > p:not(.eyebrow) {
  margin: 0;
  font: var(--type-body-l);
  color: var(--text-secondary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--hairline-subtle);
}
.card h3 {
  margin: 0 0 var(--space-2);
  font: var(--type-heading-s);
}
.card p {
  margin: 0;
  font: var(--type-body-s);
  color: var(--text-secondary);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split--reverse .split__copy {
  order: 2;
}
.split__art {
  display: flex;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 80% at 50% 30%, var(--accent-wash), transparent 75%),
    var(--surface-1);
}

.keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.keys li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--hairline-subtle);
}
.keys span {
  margin-left: var(--space-2);
  font: var(--type-body-s);
  color: var(--text-secondary);
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 1px 0 var(--hairline);
  font: var(--type-mono-s);
  color: var(--text-primary);
}

.ticks {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding: 6px 0 6px 26px;
  font: var(--type-body-s);
  color: var(--text-secondary);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 9px;
  height: 5px;
  margin-top: -4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 280px;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--elevation-2);
  text-align: center;
}
.lock__icon {
  position: relative;
  width: 28px;
  height: 22px;
  margin: var(--space-4) 0 var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--accent);
}
.lock__icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -12px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--accent);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.lock span {
  font: var(--type-body-s);
  color: var(--text-tertiary);
}
.lock__field {
  width: 100%;
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font: var(--type-body-s);
  color: var(--text-disabled);
  text-align: left;
}

.collab {
  width: 100%;
  max-width: 340px;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--elevation-2);
}
.collab p {
  margin: 0;
  line-height: 2.75;
}
.caret {
  position: relative;
  border-radius: var(--radius-xs);
}
.caret::after {
  content: attr(data-name);
  position: absolute;
  left: 0;
  top: -20px;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font: var(--type-caption);
  color: var(--on-accent);
  white-space: nowrap;
}
.caret--a {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: inset -2px 0 0 var(--accent);
}
.caret--a::after {
  background: var(--accent);
}
.caret--b {
  background: color-mix(in srgb, var(--text-secondary) 18%, transparent);
  box-shadow: inset -2px 0 0 var(--text-secondary);
}
.caret--b::after {
  background: var(--text-secondary);
}

.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto;
}
.price {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.price h3 {
  margin: 0;
  font: var(--type-heading-s);
}
.price__amount {
  margin: var(--space-3) 0 0;
  font: var(--type-display-s);
}
.price__amount span {
  font: var(--type-body-m);
  color: var(--text-tertiary);
}
.price .ticks {
  flex: 1;
  margin-bottom: var(--space-8);
}
.price--featured {
  background: var(--surface-1);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-32);
  padding-bottom: var(--space-24);
  text-align: center;
}
.actions--center {
  margin-top: 0;
}

.footer {
  border-top: 1px solid var(--hairline-subtle);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  font: var(--type-body-s);
  color: var(--text-tertiary);
}
.footer nav {
  display: flex;
  gap: var(--space-5);
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--text-primary);
}

/* Logo, theme toggle and icons */

.logo {
  display: block;
  flex: none;
}
.logo__ink {
  fill: var(--text-primary);
}
.logo__core {
  fill: var(--accent);
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-actuate),
    color var(--duration-fast) var(--ease-actuate);
}
.theme-toggle:hover {
  background: var(--surface-1);
  color: var(--text-primary);
}
.theme-toggle svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform var(--duration-slow) var(--ease-detent),
    opacity var(--duration-base) var(--ease-actuate);
}
/* Light shows the moon (switch to dark); dark shows the sun. */
.theme-toggle__sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
:root[data-theme="dark"] .theme-toggle__sun {
  opacity: 1;
  transform: none;
}
:root[data-theme="dark"] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun {
    opacity: 1;
    transform: none;
  }
  :root:not([data-theme="light"]) .theme-toggle__moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
  }
}
.nav__inner .theme-toggle {
  margin-right: calc(-1 * var(--space-4));
}

/* Colours cross-fade while the theme switches (theme.js adds the class briefly). */
.theme-switching,
.theme-switching * {
  transition:
    background-color var(--duration-slow) var(--ease-actuate),
    color var(--duration-slow) var(--ease-actuate),
    fill var(--duration-slow) var(--ease-actuate),
    box-shadow var(--duration-slow) var(--ease-actuate) !important;
}

.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.platform-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.platform-icon .icon__cut {
  fill: var(--canvas);
}
.platform-icon .icon__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--accent-wash);
  color: var(--accent-text);
  transition:
    background var(--duration-base) var(--ease-glide),
    color var(--duration-base) var(--ease-glide),
    transform var(--duration-slow) var(--ease-detent);
}
.feature-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .card__icon {
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(-6deg) scale(1.06);
}

/* Legal pages */

.legal {
  max-width: 760px;
  padding-top: var(--space-20);
  padding-bottom: var(--space-24);
}
.legal .heading {
  font: var(--type-display-s);
}
.legal__meta {
  margin: 0 0 var(--space-10);
  font: var(--type-body-s);
  color: var(--text-tertiary);
}
.checkout__status {
  margin: var(--space-6) 0 var(--space-6);
  font: var(--type-body-m);
  color: var(--text-secondary);
}
.legal__summary {
  margin-bottom: var(--space-12);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, var(--accent-wash), transparent 70%),
    var(--surface-1);
  box-shadow: var(--elevation-1);
}
.legal__summary h2 {
  margin: 0;
  font: var(--type-heading-s);
}
.legal__summary .ticks {
  margin-top: var(--space-3);
}
.legal__summary .ticks li {
  font: var(--type-body-m);
  color: var(--text-primary);
}
.legal section {
  padding-top: var(--space-8);
  border-top: 1px solid var(--hairline-subtle);
  margin-top: var(--space-8);
}
.legal h2 {
  margin: 0 0 var(--space-3);
  font: var(--type-heading-s);
}
.legal section p,
.legal dd,
.legal section > .ticks li {
  font: var(--type-body-m);
  color: var(--text-secondary);
}
.legal section p {
  margin: 0 0 var(--space-3);
}
.legal a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}
.legal__list {
  margin: var(--space-4) 0 0;
}
.legal__list dt {
  margin-top: var(--space-4);
  font: var(--type-body-m);
  font-weight: 600;
  color: var(--text-primary);
}
.legal__list dd {
  margin: var(--space-1) 0 0;
}
/* Facts still to be filled in before launch; impossible to miss on purpose. */
.todo {
  padding: 0 var(--space-1);
  border-radius: var(--radius-xs);
  background: var(--accent-wash);
  color: var(--accent-text);
  font-weight: 600;
}
.footer a[aria-current="page"] {
  color: var(--text-primary);
}

/* Motion. CSS only, eased with the brand curves; all of it stops for reduced motion. */

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.4deg);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes sweep {
  from {
    background-size: 0% 100%;
  }
  to {
    background-size: 100% 100%;
  }
}

@keyframes tick-fill {
  to {
    background: var(--accent);
    box-shadow: none;
  }
}

@keyframes tick-mark {
  to {
    opacity: 1;
  }
}

@keyframes tick-text {
  to {
    color: var(--text-tertiary);
    text-decoration-color: currentColor;
  }
}

@keyframes type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

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

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes press {
  0%,
  86%,
  100% {
    transform: translateY(0);
    box-shadow:
      inset 0 0 0 1px var(--hairline),
      0 1px 0 var(--hairline);
  }
  90% {
    transform: translateY(1px);
    box-shadow: inset 0 0 0 1px var(--accent);
    background: var(--accent-wash);
  }
}

/* The hero arrives in order: label, title, copy, buttons, platforms, then the app. */
.hero__copy > * {
  animation: rise var(--duration-deliberate) var(--ease-glide) both;
}
.hero__copy > :nth-child(2) {
  animation-delay: 80ms;
}
.hero__copy > :nth-child(3) {
  animation-delay: 160ms;
}
.hero__copy > :nth-child(4) {
  animation-delay: 240ms;
}
.hero__copy > :nth-child(5) {
  animation-delay: 320ms;
}
.stage {
  animation: rise 900ms var(--ease-glide) 380ms both;
}
.stage::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 70%;
  background: radial-gradient(closest-side, var(--accent-wash), transparent);
  animation: glow 7s var(--ease-torque) infinite;
  pointer-events: none;
}
.window {
  position: relative;
}

/* The sticky drifts above the window. */
.stage .sticky {
  animation: float 6s var(--ease-torque) 1.4s infinite;
}
.sticky--large {
  animation: float 7s var(--ease-torque) infinite;
}

/* A highlight is drawn over the words, a checklist item gets ticked, a new item is typed. */
mark.sweep {
  background: linear-gradient(var(--accent-wash), var(--accent-wash)) no-repeat left / 0% 100%;
  animation: sweep 900ms var(--ease-glide) 1.6s forwards;
}
.mock-checks li.ticking {
  text-decoration: line-through;
  text-decoration-color: transparent;
  animation: tick-text var(--duration-base) var(--ease-actuate) 2.6s forwards;
}
.mock-checks li.ticking::before {
  animation: tick-fill var(--duration-base) var(--ease-actuate) 2.6s forwards;
}
.mock-checks li.ticking::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 6px;
  height: 3px;
  margin-top: -3px;
  border-left: 1.5px solid var(--on-accent);
  border-bottom: 1.5px solid var(--on-accent);
  transform: rotate(-45deg);
  opacity: 0;
  animation: tick-mark var(--duration-fast) var(--ease-actuate) 2.75s forwards;
}
.mock-checks li.typing span {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: type 1.4s steps(22, end) 3.2s forwards;
}
.mock-checks li.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

/* Collaborators' names bob above their cursors. */
.caret--a::after {
  animation: bob 2.4s var(--ease-torque) infinite;
}
.caret--b::after {
  animation: bob 2.4s var(--ease-torque) 1.2s infinite;
}

/* Keys press themselves one after another. */
.keys li kbd {
  animation: press 6s var(--ease-actuate) infinite;
}
.keys li:nth-child(2) kbd {
  animation-delay: 1s;
}
.keys li:nth-child(3) kbd {
  animation-delay: 2s;
}
.keys li:nth-child(4) kbd {
  animation-delay: 3s;
}
.keys li:nth-child(5) kbd {
  animation-delay: 4s;
}
.keys li:nth-child(6) kbd {
  animation-delay: 5s;
}

/* The lock breathes. */
.lock__icon {
  animation: bob 3s var(--ease-torque) infinite;
}

/* Cards and prices lift under the pointer. */
.card,
.price,
.keys li {
  transition:
    transform var(--duration-base) var(--ease-glide),
    box-shadow var(--duration-base) var(--ease-glide);
}
.card:hover,
.keys li:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    var(--elevation-2);
}
.price:hover {
  transform: translateY(-3px);
}

/* Sections rise in as they scroll into view, where the browser supports it. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

/* Narrower screens */

@media (max-width: 960px) {
  .window__body {
    grid-template-columns: 200px 1fr;
  }
  .mock-sidebar {
    display: none;
  }
  .grid,
  .keys {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .split--reverse .split__copy {
    order: 0;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }
  .nav__inner {
    justify-content: space-between;
  }
  .hero {
    padding-top: var(--space-16);
  }
  .display {
    font: var(--type-display-s);
  }
  .display--small {
    font: var(--type-heading-l);
  }
  .heading {
    font: var(--type-heading-m);
  }
  .statement {
    padding-top: var(--space-16);
    padding-bottom: var(--space-4);
  }
  .statement p {
    font: var(--type-heading-s);
  }
  .section {
    padding-top: var(--space-16);
  }
  .closing {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
  .stage {
    padding: var(--space-6) var(--space-4) 0;
  }
  .window__body {
    grid-template-columns: 1fr;
  }
  .mock-list {
    display: none;
  }
  .mock-editor {
    padding: var(--space-6);
  }
  .sticky {
    display: none;
  }
  .sticky--large {
    display: block;
  }
  .grid,
  .keys,
  .prices {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    height: auto;
    padding: var(--space-6) var(--layout-margin-compact);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  /* Show the end of each little story instead of its start. */
  .mock-checks li.typing span {
    clip-path: none;
  }
  mark.sweep {
    background-size: 100% 100%;
  }
}
