* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f4f1 radial-gradient(60% 40% at 50% 0%, #ffffff 0%, transparent 70%)
    no-repeat;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Helvetica Neue", sans-serif;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

.nav {
  position: absolute;
  top: 24px;
  right: 32px;
}

.nav a {
  font-size: 13px;
  color: #8a8a8a;
  text-decoration: none;
  transition: color 150ms;
}

.nav a:hover {
  color: #111;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
}

.logo {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

h1 {
  margin-top: 28px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 720px;
  text-align: center;
}

.cta {
  margin-top: 28px;
  display: inline-block;
  background: #0a0a0a;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 150ms;
}

.cta:hover {
  background: #222;
}

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

.runs-on {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #8a8a8a;
}

.tiles {
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}

.tile {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 30%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tile + .tile {
  margin-left: -6px;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-dark {
  background: #1c1917;
}

.tile-dark img {
  width: 55%;
  height: auto;
}

.tile-soon {
  opacity: 0.6;
}

.tile-soon svg {
  width: 55%;
}

/* The tour. Without JavaScript it is the screenshot with the steps listed under it; tour.js
   pins the stage while the section scrolls past and shows one step at a time. */
.tour {
  --accent: #7c5cff;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  padding-top: 84px;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.frame {
  width: min(1290px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.25),
    0 8px 24px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

/* scale and translate come from tour.js; translate is in % of the screenshot */
.shot {
  --s: 1;
  --tx: 0%;
  --ty: 0%;
  position: relative;
  transform-origin: 0 0;
  transform: translate(var(--tx), var(--ty)) scale(var(--s));
  transition: transform 900ms var(--ease);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* the lit-up part of the screenshot; everything around it dims */
.spot {
  position: absolute;
  left: var(--x, 0%);
  top: var(--y, 0%);
  width: var(--w, 100%);
  height: var(--h, 100%);
  border-radius: calc(12px / var(--s));
  box-shadow:
    0 0 0 calc(2px / var(--s)) var(--accent),
    0 0 0 200vmax rgba(17, 17, 17, 0.32);
  opacity: 0;
  pointer-events: none;
  transition:
    left 900ms var(--ease),
    top 900ms var(--ease),
    width 900ms var(--ease),
    height 900ms var(--ease),
    border-radius 900ms var(--ease),
    box-shadow 900ms var(--ease),
    opacity 400ms ease;
}

.tour[data-lit] .spot {
  opacity: 1;
}

.steps {
  list-style: none;
  display: grid;
  gap: 28px;
  width: min(560px, 92vw);
  text-align: center;
}

.step h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: #6b6b6b;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.045);
}

.tabs[hidden] {
  display: none;
}

.tab {
  font: inherit;
  font-size: 13px;
  color: #8a8a8a;
  background: none;
  border: 0;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 150ms,
    background 150ms,
    box-shadow 150ms;
}

.tab:hover {
  color: #111;
}

.tab[aria-current] {
  color: #111;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* With JavaScript: a tall section, and a stage that sticks (tour.js sets its top to centre it).
   The frame is sized so the frame, tabs and caption fit in one screen. */
/* the scroll the stage stays stuck for: a spacer, since a sticky stage can't travel into padding */
.js .tour::after {
  content: '';
  display: block;
  height: calc(var(--steps, 6) * 70vh);
}

.js .stage {
  position: sticky;
}

.js .frame {
  width: min(1290px, 92vw, calc((100vh - 240px) * 1.7863));
  width: min(1290px, 92vw, calc((100svh - 240px) * 1.7863));
}

.js .steps {
  gap: 0;
}

.js .step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.js .step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 24px 120px;
}

.outro h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.muted {
  color: #8a8a8a;
}

.fine {
  margin-top: 22px;
  font-size: 13px;
  color: #8a8a8a;
}

.fine a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fine a:hover {
  color: #111;
}

@media (prefers-reduced-motion: no-preference) {
  .anim {
    animation: rise 500ms ease-out both;
  }
  .logo.anim {
    animation-delay: 0ms;
  }
  h1.anim {
    animation-delay: 60ms;
  }
  .cta.anim {
    animation-delay: 120ms;
  }
  .runs-on.anim {
    animation-delay: 180ms;
  }
  .frame.anim {
    animation-delay: 240ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot,
  .spot,
  .js .step {
    transition: none;
  }
}

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

@media (max-width: 640px) {
  .hero {
    padding-top: 64px;
  }
  h1 {
    font-size: 28px;
  }
  .tour {
    padding-top: 36px;
  }
  .frame {
    border-radius: 12px;
  }
  .step h2 {
    font-size: 19px;
  }
  .step p {
    font-size: 14px;
  }
  /* tabs become dots; each keeps its name as its label */
  .tabs {
    gap: 8px;
    padding: 6px 10px;
  }
  .tab {
    position: relative;
    font-size: 0;
    width: 8px;
    height: 8px;
    padding: 0;
    background: #c9c6bf;
    transition:
      width 200ms,
      background 200ms;
  }
  .tab[aria-current] {
    width: 20px;
    background: #111;
    box-shadow: none;
  }
  /* a bigger target than the dot */
  .tab::before {
    content: '';
    position: absolute;
    inset: -12px -4px;
  }
  .outro {
    padding: 96px 20px 88px;
  }
  .outro h2 {
    font-size: 26px;
  }
  .nav {
    right: 20px;
  }
}
