/* Traversal. Black, one blue, system type. The pictures are the real app. */

:root {
  --bg: #000;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --dim: #333336;
  --blue: #0a84ff;
  --blue-hi: #3d9bff;
  --line: rgba(255, 255, 255, 0.16);
  --gutter: clamp(20px, 5.5vw, 56px);
  --max: 1120px;
  --section: clamp(96px, 15vw, 200px);
  --bar: 52px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, canvas, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #000; font-weight: 600; }
.skip:focus { top: 12px; }

/* Type */

h1, h2 { font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.625rem, 8.2vw + 0.6rem, 5.5rem); line-height: 1.03; letter-spacing: -0.026em; }
h2 { font-size: clamp(2.125rem, 5.4vw + 0.7rem, 4.25rem); line-height: 1.05; letter-spacing: -0.022em; }
h3 { font-size: 1.3125rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.006em; }
p { color: var(--ink-2); text-wrap: pretty; }
.lede { font-size: clamp(1.1875rem, 0.9vw + 1rem, 1.5rem); line-height: 1.36; letter-spacing: -0.003em; max-width: 26em; text-wrap: balance; }
.tag { color: var(--blue-hi); font-size: 0.9375rem; font-weight: 600; }
.soon { display: inline-block; margin-left: 6px; color: var(--blue-hi); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; vertical-align: 1px; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 1.0625rem; font-weight: 500; white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
}
.btn:hover { background: var(--blue-hi); }
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 30px; padding: 0 14px; font-size: 0.8125rem; position: relative; }
.btn-small::after { content: ""; position: absolute; inset: -8px -4px; }
.bar .btn-small { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s, background-color 0.2s ease; }
.bar.is-stuck .btn-small { opacity: 1; visibility: visible; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.link { color: var(--blue-hi); font-size: 1.0625rem; font-weight: 500; padding-block: 12px; }
.link::after { content: "\203A"; display: inline-block; margin-left: 0.3em; transition: transform 0.2s var(--ease); }
.link:hover::after { transform: translateX(3px); }

/* Top bar */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: calc(var(--bar) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.bar.is-stuck {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }

/* The phone: a plain bezel around real captures of the app. */

.device {
  --bz: clamp(6px, 0.9vw, 10px);
  position: relative; padding: var(--bz); border-radius: 16.6% / 7.7%;
  background: #0c0c0e; box-shadow: 0 0 0 1px #2e2e31, inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.screen { position: relative; aspect-ratio: 1206 / 2622; overflow: hidden; border-radius: 15.2% / 7%; background: #000; }
.screen .still, .screen .clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .still-top, .screen .tap { display: none; }

/* The film: one phone carries the opening. Without motion it is a still page: headline, the recording, then the three lines. */

.film { position: relative; isolation: isolate; }
.film-dust {
  position: absolute; inset: 0 0 auto 0; z-index: -1; width: 100%; height: 100svh; pointer-events: none; opacity: 0.85;
  -webkit-mask-image: radial-gradient(90% 46% at 50% 82%, #000 25%, transparent 78%);
  mask-image: radial-gradient(90% 46% at 50% 82%, #000 25%, transparent 78%);
}
.film-copy {
  padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px) + clamp(28px, 6svh, 80px));
  display: grid; gap: 20px; justify-items: start;
}
.film-copy .actions { margin-top: 10px; }
.film .device { width: min(64%, 280px); margin: clamp(40px, 8vw, 64px) auto 0; }
.beats { display: grid; gap: clamp(40px, 7vw, 72px); padding-block: clamp(64px, 10vw, 120px) 0; }
.beats li { display: grid; gap: 14px; }

.motion .film { height: calc(var(--len, 3.8) * 100svh); }
.motion .stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.motion .film-dust { inset: 0; height: 100%; }
.motion .film-copy { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.motion .film .device {
  position: absolute; z-index: 1; margin: 0;
  --w: min(56vw, 50svh * 0.46);
  width: var(--w); left: calc((100% - var(--w)) / 2); bottom: clamp(14px, 3.5svh, 44px);
  will-change: transform;
}
.motion .screen .still { will-change: transform, opacity; transform-origin: 50% 40%; }
.motion .screen .still-top { display: block; opacity: 0; }
.motion .screen .tap {
  display: block; position: absolute; left: 50%; top: 40%; width: 22%; aspect-ratio: 1; margin: -11% 0 0 -11%;
  border-radius: 50%; background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); opacity: 0;
}
.motion .beats { display: block; position: absolute; inset: 0 0 auto 0; z-index: 2; padding-block: 0; }
.motion .beats li {
  position: absolute; left: max(var(--gutter), env(safe-area-inset-left)); right: max(var(--gutter), env(safe-area-inset-right));
  top: calc(var(--bar) + env(safe-area-inset-top, 0px) + clamp(14px, 3.5svh, 56px));
  opacity: 0; will-change: opacity, translate;
}

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .film-copy > * { max-width: 56%; }
  .film-dust { -webkit-mask-image: radial-gradient(40% 70% at 77% 52%, #000 25%, transparent 80%); mask-image: radial-gradient(40% 70% at 77% 52%, #000 25%, transparent 80%); }
  .motion .film-copy { top: 50%; transform: translateY(-50%); padding-top: 0; }
  .motion .film .device {
    --h: min(76svh, calc(100svh - var(--bar) - 72px));
    --w: calc(var(--h) * 0.46);
    left: auto; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + 48px));
    bottom: calc((100svh - var(--bar) - var(--h)) / 2 - 8px);
  }
  .motion .beats { inset: 0; }
  .motion .beats li { top: 50%; transform: translateY(-50%); right: auto; width: min(48%, 600px); }
}

/* Back to your desk */

.back { padding-block: var(--section); display: grid; gap: clamp(36px, 6vw, 64px); }
:root:not(.motion) .back { padding-top: clamp(64px, 10vw, 120px); }
.back h2 { max-width: 13em; }
.lines { color: var(--ink); font-size: clamp(1.625rem, 3.4vw + 0.7rem, 3rem); line-height: 1.18; font-weight: 600; letter-spacing: -0.018em; }
.lines > span { display: block; padding-block: 0.22em; }
.closer { color: var(--ink); font-size: clamp(2.125rem, 5.4vw + 0.7rem, 4.25rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.022em; }

/* Tour: real crops of the app */

.tour { padding-bottom: clamp(64px, 9vw, 112px); }
.tour h2 { max-width: 12em; }
.tour-grid { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: clamp(40px, 6vw, 56px) clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.shot { display: grid; gap: 22px; align-content: start; }
.shot img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.shot figcaption { display: grid; gap: 8px; max-width: 24em; }

/* Ledger */

.ledger { padding-bottom: var(--section); }
.ledger-grid {
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(32px, 5vw, 56px) clamp(32px, 5vw, 64px);
}
.ledger-grid li { display: grid; gap: 8px; align-content: start; max-width: 24em; }

/* Zero */

.zero { padding-bottom: var(--section); display: grid; gap: clamp(28px, 4vw, 48px); }
.zeros { color: var(--ink); font-size: clamp(2.25rem, 6vw + 0.6rem, 5rem); line-height: 1.06; letter-spacing: -0.024em; }
.zeros > span { display: block; }

/* Get it */

.get { padding-bottom: var(--section); display: grid; gap: 28px; justify-items: start; }
.get::before { content: ""; justify-self: stretch; height: 1px; background: var(--line); margin-bottom: calc(var(--section) - 28px); }
.get-icon { width: clamp(88px, 12vw, 112px); height: auto; }
.steps { counter-reset: step; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 28px clamp(28px, 4vw, 56px); grid-template-columns: 1fr; justify-self: stretch; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps a { color: var(--blue-hi); }
.steps a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */

.foot { padding-block: 0 calc(44px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 20px; grid-template-columns: 1fr; justify-items: start; }
.foot::before { content: ""; grid-column: 1 / -1; justify-self: stretch; height: 1px; background: var(--line); margin-bottom: 16px; }
.foot .brand { font-size: 0.9375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.875rem; color: var(--ink-2); }
.foot-links a { transition: color 0.2s ease; }
.foot-links a:hover { color: var(--ink); }
.legal { font-size: 0.75rem; color: var(--ink-3); }
@media (min-width: 800px) {
  .foot { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; }
  .legal { grid-column: 1 / -1; }
  .foot-links { justify-self: end; }
}

/* Motion */

.motion #headline .w { display: inline-block; animation: word 1s var(--ease) backwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
.motion .film-copy .lede { animation: settle 0.9s var(--ease) 0.66s backwards; }
.motion .film-copy .actions { animation: settle 0.9s var(--ease) 0.78s backwards; }
.motion .film .screen { animation: appear 1.2s ease-out 0.3s backwards; }
@keyframes word { from { opacity: 0; transform: translateY(0.35em); filter: blur(10px); } }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } }
@keyframes appear { from { opacity: 0; } }

@supports (animation-timeline: view()) {
  .motion .lit.is-split .w { color: rgba(245, 245, 247, 0.34); animation: lit linear both; animation-timeline: view(); animation-range: entry 40% cover 34%; }
  .motion .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
}
@keyframes lit { to { color: var(--ink); } }
@keyframes rise { from { opacity: 0.2; transform: translateY(36px) scale(0.985); } }
