@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/urbanist.woff2') format('woff2');
}

@font-face {
  font-family: 'Balsamiq Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/balsamiq-sans.woff2') format('woff2');
}

:root {
  --mist: #f4f4f7;
  --ink: #141414;
  --body: #3d3d42;
  --muted: #74747a;
  --card: #fff;
  --line: #e8e8ec;
  --lime: #d9f24c;
  --lime-soft: #eef7b8;
  --peach: #fbe4d6;
  --lilac: #e6e0f6;
  --sky: #dcebf7;
  --radius: 32px;
  --page: 1112px;
  --gutter: max(24px, (100% - var(--page)) / 2);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Urbanist', ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(36px, 5vw, 60px);
  text-align: center;
}

h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

/* Buttons: a pill with an optional disabled state for things that are not out yet. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn-small {
  height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

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

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

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

.btn:disabled {
  background: var(--lime-soft);
  color: #5e6146;
  cursor: not-allowed;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--mist) 88%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 9px;
}

.nav nav {
  display: flex;
  gap: 32px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.nav nav a {
  transition: color 0.18s ease;
}

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

/* Hero */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 24px 56px;
  text-align: center;
}

h1 {
  font-size: clamp(48px, 8vw, 92px);
}

.hero p {
  max-width: 560px;
  margin: 28px auto 40px;
  font-size: 21px;
  color: var(--body);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* The parent app, shown next to the welcome illustration */
.showcase {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  margin-inline: var(--gutter);
  padding: 56px 96px 0;
  border-radius: 44px;
  background: var(--lime-soft);
  overflow: hidden;
}

.showcase-art {
  width: min(100%, 460px);
  justify-self: center;
  padding-bottom: 48px;
}

.phone {
  width: 320px;
  padding: 28px 18px 32px;
  border: 10px solid var(--ink);
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
  background: var(--mist);
  box-shadow: 0 30px 60px -30px rgb(20 20 20 / 35%);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 16px;
  font-size: 20px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sky);
  font-size: 15px;
  font-weight: 700;
}

.app-hero {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 28px;
  background: var(--card);
}

.app-label {
  font-size: 15px;
  color: var(--muted);
}

.app-time {
  margin: 2px 0;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.meter {
  height: 8px;
  margin: 16px 0 18px;
  border-radius: 999px;
  background: var(--mist);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.app-buttons {
  display: flex;
  gap: 8px;
}

.chip {
  flex: 1;
  padding: 11px 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.chip-ink {
  background: var(--ink);
  color: #fff;
}

.chip-lime {
  background: var(--lime);
}

.app-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.app-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--card);
  font-size: 16px;
  font-weight: 500;
}

.app-list b {
  margin-left: auto;
  font-weight: 600;
}

.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.dot-sky {
  background: var(--sky);
}

.dot-peach {
  background: var(--peach);
}

.dot-lilac {
  background: var(--lilac);
}

/* Sections */
.section {
  padding: 140px var(--gutter) 0;
}

.section > h2 {
  margin-bottom: 56px;
}

/* How it works: three numbered steps, each with its scene */
.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 48px;
  padding: 24px 24px 24px 56px;
  border-radius: var(--radius);
  background: var(--card);
}

.step:nth-child(even) {
  grid-template-columns: 7fr 5fr;
  padding: 24px 56px 24px 24px;
}

.step:nth-child(even) .stage {
  order: -1;
}

.step-num {
  display: block;
  margin-bottom: 20px;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #b9b9c0;
}

.step h3 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.step p {
  margin-top: 14px;
  color: var(--body);
}

.stage {
  padding: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: #fff;
  background-image: radial-gradient(#e6e6e6 1px, transparent 1.2px);
  background-size: 14px 14px;
  overflow: hidden;
}

.stage stick-scene {
  height: 280px;
}

.stage stick-scene[play='loop'] {
  cursor: pointer;
}

/* Features: a bento of soft cards */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.card h3 {
  margin-top: auto;
}

.card p {
  margin-top: 6px;
  color: var(--body);
}

.card img {
  width: 220px;
  margin: -8px auto 20px;
}

.card-wide {
  grid-column: span 2;
}

.card-wide h3 {
  margin-top: 0;
}

.tint-lilac {
  background: var(--lilac);
}

.tint-peach {
  background: var(--peach);
}

.tint-sky {
  background: var(--sky);
}

.tint-lime {
  background: var(--lime-soft);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 40px;
}

.bar {
  display: grid;
  grid-template-columns: 110px 1fr 70px;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
}

.bar i {
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--c) var(--w), var(--mist) var(--w));
}

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

.apps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 200px;
  margin-bottom: 20px;
  padding-top: 8px;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  border-radius: 999px;
  background: var(--card);
  font-size: 17px;
  font-weight: 600;
}

.app-pill:nth-child(2) {
  margin-left: 28px;
}

.app-pill em {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-style: normal;
}

.app-pill.ok em {
  background: var(--lime);
  color: var(--ink);
}

/* Devices */
.devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.device {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--card);
}

.device svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
}

.status-lime {
  background: var(--lime);
  color: var(--ink);
}

/* Closing */
.closing {
  margin: 140px var(--gutter) 0;
  padding: 96px 24px;
  border-radius: 44px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.closing p {
  margin: 20px auto 36px;
  max-width: 520px;
  font-size: 20px;
  color: #c9c9ce;
}

.closing .btn:disabled {
  background: #2c2c2f;
  color: #c9c9ce;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 40px var(--gutter);
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .showcase {
    grid-template-columns: 1fr;
    padding: 40px 24px 0;
  }

  .showcase-art {
    width: min(70%, 320px);
    padding-bottom: 0;
  }

  .phone {
    justify-self: center;
  }

  .step,
  .step:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 20px;
  }

  .step:nth-child(even) .stage {
    order: 0;
  }

  .step-copy {
    padding: 0 12px;
  }

  .bento,
  .devices {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .nav nav {
    display: none;
  }

  .hero {
    padding: 56px 20px 40px;
  }

  .hero p {
    margin: 20px auto 32px;
    font-size: 19px;
  }

  .actions .btn {
    width: 100%;
  }

  .showcase,
  .closing {
    margin-inline: 16px;
    border-radius: 32px;
  }

  .showcase {
    gap: 16px;
  }

  .device {
    flex-direction: row;
    align-items: center;
    padding: 20px 24px;
  }

  .device svg {
    width: 40px;
    height: 40px;
  }

  .device h3 {
    flex: 1;
    font-size: 22px;
  }

  .phone {
    width: 100%;
    max-width: 320px;
  }

  .section {
    padding: 96px 16px 0;
  }

  .nav,
  footer {
    padding-inline: 20px;
  }

  .section > h2 {
    margin-bottom: 36px;
  }

  .step-num {
    font-size: 44px;
    margin-bottom: 14px;
  }

  .stage stick-scene {
    height: 210px;
  }

  .bento,
  .devices {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: auto;
  }

  .bar {
    grid-template-columns: 84px 1fr 56px;
    gap: 10px;
    font-size: 15px;
  }

  .closing {
    margin-top: 96px;
    padding: 72px 24px;
  }
}

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

  .btn {
    transition: none;
  }
}
