/* Walkcut sales page. Same identity as the app: paper, ink, one red pencil.
   Everything that moves is the red pencil doing its job: striking out what a
   viewer does not need. Motion is switched off for people who ask for less. */

/* the fonts live with the site (OFL), so the page asks nothing of anyone else */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e8;
  --sheet: #fbfaf6;
  --rule: #dad5c8;
  --graphite: #6b665c;
  --ink: #1a1814;
  --red: #d9432b;
  --text-2: #45413a;
  --text-3: #55514a;
  --pause: #a8770f;
  --restart: #2f6fcf;
  --ui: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --sec: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/25px var(--ui);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--red);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

.mono {
  font-family: var(--mono);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sec {
  padding-top: var(--sec);
  padding-bottom: var(--sec);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 52px);
}

.band {
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.dark {
  background: var(--ink);
  color: var(--paper);
}

/* ------------------------------------------------------------------- type */

.overline {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
}

.dark .overline {
  color: #b8b3a8;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2.xl {
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.06;
}

.h4,
h4 {
  font-family: var(--ui);
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 780px;
}

.head.wide {
  max-width: 860px;
}

.head p,
.sub {
  color: var(--text-2);
  text-wrap: pretty;
}

.sub {
  font-size: 18px;
  line-height: 28px;
}

.dark .sub {
  color: #d5d0c4;
}

/* the signature gesture: struck out in red (the line can draw itself in) */
.strike {
  --sw: 0.055em;
  color: var(--graphite);
  background: linear-gradient(var(--red), var(--red)) 0 56% / 100% var(--sw) no-repeat;
}

.strike.thin {
  --sw: 1.5px;
  padding: 0 3px;
  margin-left: -3px;
}

.strike.thin.keep {
  color: inherit;
  margin-left: 0;
  padding: 0;
}

.strike.thick {
  --sw: 2px;
  color: #b8b3a8;
  padding: 0 3px;
  margin-left: -3px;
}

/* struck stretches of a transcript, one colour per kind of cut */
.x {
  color: var(--graphite);
  padding: 2px 3px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.x.filler {
  background: linear-gradient(#d9432b, #d9432b) 0 56% / 100% 1.5px no-repeat, #f8dfd8;
}

.x.restart {
  background: linear-gradient(#2f6fcf, #2f6fcf) 0 56% / 100% 1.5px no-repeat, #dce6f6;
}

.x.pause {
  font-family: var(--mono);
  font-size: 12px;
  color: #5c4307;
  padding: 3px 6px;
  white-space: nowrap;
  background: linear-gradient(#a8770f, #a8770f) 0 56% / 100% 1.5px no-repeat, #f1e4c4;
}

kbd,
.k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #c9c3b4;
  border-bottom-width: 3px;
  background: var(--sheet);
  font: 600 13px/1 var(--ui);
  color: var(--ink);
}

.keys {
  display: inline-flex;
  gap: 4px;
  vertical-align: 3px;
}

.speed {
  display: inline-block;
  font: 600 13px/1 var(--mono);
  color: var(--sheet);
  background: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  vertical-align: 3px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn.small {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn.big {
  height: 56px;
  padding: 0 26px;
  font-size: 17px;
  font-weight: 700;
}

.btn.full {
  height: 52px;
  font-size: 16px;
  margin-top: auto;
}

.btn.ink {
  background: var(--ink);
  color: var(--sheet);
}

.btn.ink:hover {
  background: #33302a;
  color: var(--sheet);
}

.btn.red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(217, 67, 43, 0.7);
}

.btn.red:hover {
  background: #c23a24;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(217, 67, 43, 0.75);
}

.btn.outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn.outline:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.6);
}

.btn.ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* -------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 240, 232, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--rule);
}

.nav-in {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 12px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  padding: 10px 0;
}

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

.nav .btn {
  margin-left: auto;
}

.nav-links + .btn {
  margin-left: 0;
}

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

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

.mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.wordmark {
  font-weight: 800;
  font-size: 24px;
  line-height: 26px;
  letter-spacing: -0.045em;
}

.wordmark.small {
  font-size: 18px;
  color: var(--ink);
}

/* ------------------------------------------------------------------- hero */

.hero-band {
  position: relative;
  isolation: isolate;
}

.paper-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

.hero {
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 600px;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.cta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.cta-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-3);
}

@media (min-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(48px, 5vw, 74px);
  }
}

/* the take being struck out, in a little Walkcut window */
.take-demo {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(26, 24, 20, 0.04),
    0 30px 70px -30px rgba(26, 24, 20, 0.35);
}

.td-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}

.td-dots {
  display: flex;
  gap: 6px;
}

.td-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule);
}

.td-title {
  font-weight: 600;
  color: var(--text-2);
}

.td-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f8dfd8;
  color: #9b2a17;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.td-rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1s steps(2, start) infinite;
}

.td-state.cutting {
  background: var(--paper);
  color: var(--text-2);
}

.td-state.cutting .td-rec {
  animation: none;
  background: var(--graphite);
}

.td-state.done {
  background: var(--ink);
  color: var(--sheet);
}

.td-state.done .td-rec {
  animation: none;
  background: var(--red);
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.td-body {
  position: relative;
  padding: 22px 24px 24px;
}

.td-text {
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.95;
  text-wrap: pretty;
  transition: opacity 0.4s;
}

.td-text.fading {
  opacity: 0;
}

.c {
  --line: var(--red);
  padding: 1px 3px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(var(--line), var(--line));
  background-position: 0 56%;
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  transition:
    background-size 0.42s linear,
    background-color 0.3s,
    color 0.3s;
}

.c.restart {
  --line: var(--restart);
}

.c.pause {
  --line: var(--pause);
  font: 12px/1 var(--mono);
  padding: 3px 6px;
  white-space: nowrap;
  color: #8a8478;
  background-color: #eeeae0;
}

.c.cut {
  background-size: 100% 1.5px;
  color: var(--graphite);
}

.c.filler.cut {
  background-color: #f8dfd8;
}

.c.restart.cut {
  background-color: #dce6f6;
}

.c.pause.cut {
  background-color: #f1e4c4;
  color: #5c4307;
}

.pencil {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 4px 4px rgba(26, 24, 20, 0.18));
  transition:
    transform 0.32s var(--ease),
    opacity 0.3s;
}

.pencil.on {
  opacity: 1;
}

.pencil.drawing {
  transition:
    transform 0.42s linear,
    opacity 0.3s;
}

.td-foot {
  border-top: 1px solid var(--rule);
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f5ef;
}

.td-lane {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
}

.td-lane-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--graphite);
}

.td-track {
  height: 14px;
  border-radius: 3px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
}

.td-track > i {
  position: absolute;
  top: 0;
  bottom: 0;
}

.td-track.out {
  background: none;
  gap: 0;
}

.td-track.out > i {
  position: static;
  height: 100%;
  flex: none;
  transition: width 0.6s var(--ease);
}

.td-time {
  font-size: 13px;
  text-align: right;
  color: var(--graphite);
}

.td-time.big {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

/* ------------------------------------------------------------------ facts */

.facts {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}

.facts-in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px 26px 0;
}

.fact b {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 500;
}

.fact span {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-3);
  max-width: 220px;
}

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

/* five cards: three on top, two wider ones below */
@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .cards > :nth-child(-n + 3) {
    grid-column: span 2;
  }

  .cards > :nth-child(n + 4) {
    grid-column: span 3;
  }
}

.card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(26, 24, 20, 0.35);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.card-title i {
  width: 18px;
  height: 3px;
  flex: none;
}

.sample {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 36px;
}

.card p,
.scene-item p {
  font-size: 15px;
  line-height: 23px;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------------------------------------------------------- the old way */

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.way {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: s;
  border-top: 1px solid var(--rule);
}

.steps li {
  counter-increment: s;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 17px;
  line-height: 24px;
}

.steps li::before {
  content: counter(s, decimal-leading-zero);
  font: 12px/1 var(--mono);
  color: var(--graphite);
  width: 22px;
  flex: none;
}

.way.old .steps li span {
  background: linear-gradient(var(--red), var(--red)) 0 56% / 0% 1.5px no-repeat;
  transition:
    background-size 0.45s linear,
    color 0.45s;
}

.way.old .steps li.struck span {
  background-size: 100% 1.5px;
  color: var(--graphite);
}

.steps.big li {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.1;
  padding: 16px 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.steps.big li::before {
  align-self: center;
}

.steps.big li.red {
  color: var(--red);
}

.way-time {
  font-size: 14px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- scenes */

.scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 36px 18px;
}

.scene-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  overflow: hidden;
}

.stage.dark-stage {
  background: #2a2722;
  border-color: #2a2722;
}

/* the scenes only move while they are on screen */
.stage *,
.stage *::before,
.stage *::after {
  animation-play-state: paused !important;
}

.stage.on *,
.stage.on *::before,
.stage.on *::after {
  animation-play-state: running !important;
}

.cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -3px 0 0 -5px;
  filter: drop-shadow(0 2px 2px rgba(26, 24, 20, 0.25));
  z-index: 2;
}

/* little pretend apps */
.mini-app {
  position: absolute;
  inset: 0;
  display: flex;
  background: var(--sheet);
  border-radius: 6px;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.mini-app.small {
  inset: 9% 9% 9% 9%;
}

.ma-side {
  width: 24%;
  background: #efebe2;
  display: flex;
  flex-direction: column;
  gap: 8%;
  padding: 10% 8%;
}

.ma-side i {
  height: 6px;
  border-radius: 3px;
  background: #d6d0c1;
}

.ma-main {
  position: relative;
  flex: 1;
  padding: 8% 7%;
  display: flex;
  flex-direction: column;
  gap: 9%;
}

.ma-row {
  height: 7px;
  border-radius: 4px;
  background: #e2ddd1;
}

.w50 {
  width: 50%;
}

.w60 {
  width: 60%;
}

.w75 {
  width: 75%;
}

.w90 {
  width: 90%;
}

.ma-btn {
  position: absolute;
  left: 52%;
  top: 56%;
  width: 34%;
  height: 15%;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font: 700 9px/1 var(--ui);
  display: grid;
  place-items: center;
  white-space: nowrap;
}

.mini-doc {
  position: absolute;
  inset: 12% 14% auto 14%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-doc.faint .ma-row {
  background: #423e37;
}

/* 1. zoom on a click: the frame leans in on the button the cursor clicks */
/* the button's centre is at 76.4% x 63.5% of the frame: the zoom leans in there,
   so the button (and the cursor resting on it) stays put while the rest grows */
.sc-zoom {
  position: absolute;
  inset: 10%;
  transform-origin: 76.4% 63.5%;
  animation: zoom 6s var(--ease) infinite;
}

.sc-zoom .ripple {
  position: absolute;
  left: 76.4%;
  top: 63.5%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
  animation: ripple-z 6s linear infinite;
}

.zoom-cursor {
  animation: zoom-cursor 6s var(--ease) infinite;
}

@keyframes zoom {
  0%,
  36% {
    transform: scale(1);
  }
  50%,
  78% {
    transform: scale(1.75);
  }
  92%,
  100% {
    transform: scale(1);
  }
}

@keyframes zoom-cursor {
  0% {
    left: 18%;
    top: 84%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  30%,
  86% {
    left: 71.1%;
    top: 60.8%;
    opacity: 1;
  }
  96%,
  100% {
    left: 71.1%;
    top: 60.8%;
    opacity: 0;
  }
}

@keyframes ripple-z {
  0%,
  33% {
    transform: scale(0.3);
    opacity: 0;
  }
  34% {
    opacity: 0.9;
  }
  46%,
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 2. a calmer cursor: the shaky path the hand made, and the one in the video */
.sc-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sc-path .jitter {
  fill: none;
  stroke: #c9c3b4;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.sc-path .smooth {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.sc-path .legend {
  font: 600 9px var(--ui);
  fill: var(--graphite);
}

/* 3. shortcuts shown as keys */
.keycaps {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(26, 24, 20, 0.86);
}

.keycaps .k {
  min-width: 38px;
  height: 34px;
  font-size: 14px;
  opacity: 0;
  animation: key 3.6s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.22s);
}

.keycaps {
  animation: keys-box 3.6s var(--ease) infinite;
}

@keyframes key {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.85);
  }
  8%,
  72% {
    opacity: 1;
    transform: none;
  }
  86%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes keys-box {
  0%,
  2% {
    opacity: 0;
  }
  6%,
  84% {
    opacity: 1;
  }
  94%,
  100% {
    opacity: 0;
  }
}

/* 4. captions following the voice */
.cap {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(26, 24, 20, 0.92);
  font: 500 clamp(14px, 1.5vw, 18px) / 1.4 var(--serif);
  white-space: nowrap;
}

.cap span {
  padding: 0 4px;
  border-radius: 4px;
  color: #a8a296;
  animation: word 3s steps(1, end) infinite;
  animation-delay: calc(var(--i) * 0.5s - 3s);
}

@keyframes word {
  0% {
    color: #fff;
    background: var(--red);
  }
  16.66%,
  100% {
    color: var(--sheet);
    background: transparent;
  }
}

/* 5. the face in a corner, round or square, moved to another corner */
.bubble {
  position: absolute;
  width: 24%;
  aspect-ratio: 1;
  bottom: 7%;
  left: 70%;
  border-radius: 50%;
  background: #e2ddd1;
  border: 3px solid var(--sheet);
  box-shadow: 0 10px 24px -10px rgba(26, 24, 20, 0.45);
  overflow: hidden;
  animation: bubble 7s var(--ease) infinite;
}

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

@keyframes bubble {
  0%,
  30% {
    left: 70%;
    border-radius: 50%;
  }
  42%,
  64% {
    left: 6%;
    border-radius: 50%;
  }
  72%,
  88% {
    left: 6%;
    border-radius: 22%;
  }
  100% {
    left: 70%;
    border-radius: 50%;
  }
}

/* 6. wide to vertical: screen on top, captions in the middle, face below */
.morph {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  height: 75.6%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: var(--ink);
  overflow: hidden;
  animation: morph 7s var(--ease) infinite;
}

.mo-screen {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: var(--sheet);
  padding: 9% 8%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: mo-screen 7s var(--ease) infinite;
}

.mo-cap {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translateX(-50%);
  font: 500 11px/1.3 var(--serif);
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  opacity: 0;
  animation: mo-in 7s var(--ease) infinite;
}

.mo-face {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 46%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #6b665c;
  opacity: 0;
  animation: mo-in 7s var(--ease) infinite;
}

@keyframes morph {
  0%,
  28% {
    width: 84%;
    height: 75.6%;
  }
  42%,
  84% {
    width: 31%;
    height: 88%;
  }
  96%,
  100% {
    width: 84%;
    height: 75.6%;
  }
}

@keyframes mo-screen {
  0%,
  28% {
    height: 100%;
  }
  42%,
  84% {
    height: 44%;
  }
  96%,
  100% {
    height: 100%;
  }
}

@keyframes mo-in {
  0%,
  40% {
    opacity: 0;
  }
  48%,
  82% {
    opacity: 1;
  }
  90%,
  100% {
    opacity: 0;
  }
}

.more {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.more li {
  font-size: 14px;
  line-height: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--text-2);
}

/* ---------------------------------------------------------------- privacy */

.nots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0 40px;
}

.not {
  border-top: 1px solid #45413a;
  padding: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.not p {
  font-size: 15px;
  line-height: 23px;
  color: #d5d0c4;
}

/* ------------------------------------------ after recording · for games */

.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 40px;
}

/* four items: two by two, then one row (never three and one alone) */
.perks.four {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .perks.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .perks.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.perk {
  border-top: 1px solid var(--rule);
  padding: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perk p {
  font-size: 15px;
  line-height: 23px;
  color: var(--text-2);
  text-wrap: pretty;
}

.kbd-inline {
  font: 500 12px/1 var(--mono);
  color: var(--text-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 3px 6px;
  margin-left: 6px;
  vertical-align: 2px;
  white-space: nowrap;
}

.games {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

@media (min-width: 1000px) {
  .games {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* the replay bar over a game, as the app shows it */
.replay-mock {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 24, 20, 0) 55%, rgba(26, 24, 20, 0.55) 100%),
    radial-gradient(60% 45% at 30% 70%, #5b4a35 0%, rgba(91, 74, 53, 0) 70%),
    radial-gradient(70% 55% at 78% 40%, #384a52 0%, rgba(56, 74, 82, 0) 70%),
    #221f1b;
  box-shadow: 0 30px 60px -30px rgba(26, 24, 20, 0.55);
}

.rm-hud i {
  position: absolute;
  display: block;
  border-radius: 4px;
}

.rm-map {
  right: 16px;
  top: 16px;
  width: 18%;
  aspect-ratio: 1;
  border: 2px solid rgba(243, 240, 232, 0.35);
  background: rgba(26, 24, 20, 0.45);
}

@media (max-width: 640px) {
  .rm-hud .rm-map {
    display: none;
  }
}

.rm-life {
  left: 16px;
  bottom: 18px;
  width: 26%;
  height: 8px;
  background: linear-gradient(90deg, var(--red) 0 68%, rgba(243, 240, 232, 0.2) 68% 100%);
}

.rm-ammo {
  right: 16px;
  bottom: 16px;
  width: 12%;
  height: 14px;
  background: repeating-linear-gradient(90deg, rgba(243, 240, 232, 0.55) 0 4px, transparent 4px 8px);
}

.rm-bar {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(26, 24, 20, 0.94);
  color: var(--paper);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* a hollow ring, as on the app's bar: with Clipa essa on nothing is being recorded until the key */
.rm-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #a39d90;
}

.rm-btn {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.rm-toast {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--sheet);
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
}

.rm-ok {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sheet);
  font: 700 11px/20px var(--ui);
  text-align: center;
}

/* ------------------------------------------------------------------ price */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.plan {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan.pro {
  border: 2px solid var(--ink);
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.02em;
}

.price small {
  font: 400 15px/22px var(--ui);
  letter-spacing: 0;
  color: var(--text-2);
  margin-left: 6px;
}

.plan p {
  font-size: 15px;
  line-height: 23px;
  color: var(--text-2);
  text-wrap: pretty;
}

.plan ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
  line-height: 22px;
  border-top: 1px solid var(--rule);
}

.plan li {
  padding: 11px 0;
}

.plan li + li {
  border-top: 1px solid var(--rule);
}

/* --------------------------------------------------------------- download */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.specs {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
}

.specs .overline {
  padding-bottom: 12px;
}

.spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 22px;
}

.spec span:first-child {
  color: var(--text-3);
}

.spec b {
  text-align: right;
  font-weight: 600;
}

.spec .mono {
  font-size: 14px;
}

/* -------------------------------------------------------------------- faq */

.faq {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
}

.qa {
  max-width: 860px;
  border-bottom: 1px solid var(--rule);
}

details {
  border-top: 1px solid var(--rule);
}

summary {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  padding: 18px 0;
  cursor: pointer;
}

details p {
  color: var(--text-2);
  padding: 0 0 20px;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--rule);
}

.foot-in {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-3);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot nav a {
  padding: 12px 0;
}

/* ------------------------------------------------------- arriving on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* the red pencil draws its line once the words are on screen */
.js .draw {
  background-size: 0% var(--sw);
  transition: background-size 0.6s ease-in-out calc(var(--d, 0s) + 0.45s);
}

.js .in .draw,
.js .draw.in {
  background-size: 100% var(--sw);
}

/* ------------------------------------------------------------------ small */

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .btn.big {
    width: 100%;
  }

  .td-body {
    padding: 18px 16px 20px;
  }

  .td-lane {
    grid-template-columns: 52px minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .fact {
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
  }

  .fact:last-child {
    border-bottom: 0;
  }
}

/* ------------------------------------------------------------ less motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .draw {
    background-size: 100% var(--sw);
  }

  .keycaps .k,
  .mo-cap,
  .mo-face {
    opacity: 1;
  }
}

/* --------------------------------------------- privacy and terms pages */

.doc {
  max-width: 780px;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: var(--sec);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.doc h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.doc .version {
  font: 13px/20px var(--mono);
  color: var(--graphite);
}

.doc h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-top: 28px;
}

.doc p,
.doc li {
  color: var(--text-2);
  font-size: 17px;
  line-height: 28px;
  text-wrap: pretty;
}

.doc ul,
.doc ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc strong {
  color: var(--ink);
}

.doc .summary {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 24px;
}

.doc .summary p {
  color: var(--ink);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}

.doc-table th,
.doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--rule);
}

.doc-table th {
  font-weight: 700;
  color: var(--ink);
}

.doc-table td {
  color: var(--text-2);
}

.table-wrap {
  overflow-x: auto;
}

.todo {
  background: #f8dfd8;
  color: #9b2a17;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}
