:root {
  color-scheme: dark;
  --page: #101110;
  --ink: #f5f5ef;
  --muted: #b9bbb0;
  --accent: #ffd400;
  --rule: #292b26;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, figure { margin: 0; }
img, video { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.shell {
  width: min(100% - 96px, 1160px);
  margin-inline: auto;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--page);
}

.top {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.top::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: 850px;
  background:
    linear-gradient(0deg, var(--page), transparent 38%),
    linear-gradient(90deg, #101110 3%, #101110e0 27%, #1011104d 75%, #1011108f),
    url("assets/brand-map.webp") 63% 33% / cover no-repeat;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 32px;
  padding-block: clamp(108px, 10vw, 144px) clamp(80px, 8vw, 112px);
}

.hero-copy { position: relative; z-index: 1; }

.hero-logo {
  margin-block-end: 18px;
  /* The PNG has transparent padding on the left of the wordmark. */
  margin-inline-start: -14px;
}

h1 {
  font-size: clamp(58px, 6.45vw, 98px);
  line-height: 1;
  font-weight: 770;
  letter-spacing: -.055em;
}

h1 em { display: block; color: var(--accent); font-style: normal; }

.hero-description {
  max-width: 405px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.57;
}

.store {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 30px;
}

#app-store-badge { display: inline-block; border-radius: 8px; }
#app-store-badge img { width: 132px; height: auto; }
.store-note { color: var(--muted); font-size: 13px; }

.demo {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  isolation: isolate;
}

.map-route {
  position: absolute;
  z-index: -1;
  top: 48%;
  left: 50%;
  width: 112%;
  max-width: 620px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-grid { stroke: #d5d5b9; opacity: .08; }

.phone {
  position: relative;
  width: min(100%, clamp(238px, 20vw, 286px));
  padding: 6px;
  border: 1px solid #73736c;
  border-radius: 46px;
  background: linear-gradient(125deg, #666761, #222322 25%, #464842 56%, #1b1c1b 81%, #777971);
  box-shadow: 0 26px 65px #000b, 0 2px 1px #ffffff18 inset;
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 2px;
  border-radius: 2px 0 0 2px;
  background: #7b7c72;
}

.phone::before { top: 22%; left: -3px; height: 24px; box-shadow: 0 33px #7b7c72; }
.phone::after { top: 24%; right: -3px; height: 38px; }

.phone-screen {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  aspect-ratio: 630 / 1368;
  border-radius: 39px;
  background: #212320 url("assets/replay-poster.webp") center / contain no-repeat;
  box-shadow: 0 0 0 1px #090a09;
}

.phone-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.features { background: var(--page); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5.5vw, 76px);
  padding-block: 46px 52px;
  border-block: 1px solid var(--rule);
}

.feature > svg {
  display: block;
  width: 22px;
  height: 22px;
  color: #9b9e90;
}

.feature h2 {
  margin-top: 14px;
  color: #c6c8bd;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.feature p { margin-top: 12px; max-width: 310px; font-size: 14px; line-height: 1.75; color: #a4a79a; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding-block: 30px;
  color: var(--muted);
}

.footer-inner p { font-size: 15px; }
.footer-inner strong { color: var(--accent); font-weight: 650; }
.footer-inner small { font-size: 12px; }

@media (max-width: 1020px) {
  .shell { width: calc(100% - 72px); }
  .hero { column-gap: 22px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .top::before {
    height: 1100px;
    background:
      linear-gradient(0deg, var(--page), transparent 34%, #101110ba),
      url("assets/brand-map.webp") 57% center / cover no-repeat;
  }
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 48px; padding-block: 80px 64px; }
  .hero-copy { text-align: center; }
  .hero-logo { margin-inline: auto; }
  h1 { font-size: clamp(48px, 11vw, 76px); }
  .hero-description { margin: 18px auto 0; }
  .store { justify-content: center; margin-top: 22px; }
  .phone { width: min(100% - 12px, clamp(222px, 62vw, 270px)); }
  .map-route { width: 122%; }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-block: 38px 44px;
  }
  .feature p { max-width: 460px; }
}
