:root {
  --ground: #F4F4F4;
  --ink:    #2B2621;
  --ink2:   #66615A;
  --hair:   rgba(43, 38, 33, .14);
  --red:    #E2422B;

  --s: 15px;
  --s-lh: 20px;
  --m: 22px;
  --m-lh: 28px;
  --l: 96px;
  --l-lh: 88px;

  --unit: 8px;
  --wrap: 1104px;
  --gutter: 24px;

  --phone: min(100vw - 104px, 342px, calc((100vh - 120px) * .47));

  color-scheme: light;
}
@supports (height: 100svh) {
  :root { --phone: min(100vw - 104px, 342px, calc((100svh - 120px) * .47)); }
}

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

html {
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Barlow', -apple-system, system-ui, sans-serif;
  font-size: var(--s);
  line-height: var(--s-lh);
  font-weight: 500;
  color: var(--ink);
  background: var(--ground);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ruler {
  --major: rgba(43, 38, 33, .18);
  --minor: rgba(43, 38, 33, .085);
  position: sticky;
  top: 0;
  z-index: 10;
  height: 16px;
  background-image:
    linear-gradient(90deg, var(--major) 1px, transparent 1px),
    linear-gradient(90deg, transparent 10px, var(--minor) 10px, var(--minor) 11px, transparent 11px, transparent 20px, var(--minor) 20px, var(--minor) 21px, transparent 21px, transparent 30px, var(--minor) 30px, var(--minor) 31px, transparent 31px, transparent 40px, var(--minor) 40px, var(--minor) 41px, transparent 41px, transparent 50px, var(--minor) 50px, var(--minor) 51px, transparent 51px);
  background-size: 60px 16px, 60px 8px;
  background-repeat: repeat-x;
  background-position: var(--rx, 50vw) 0, var(--rx, 50vw) 0;
  pointer-events: none;
}

.needle {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 16px;
  margin-left: -1px;
  border-radius: 0 0 1px 1px;
  background: var(--red);
  transform: translateX(var(--x, 50vw));
  transition: transform .12s ease-out;
  will-change: transform;
}

.nav .wrap { display: flex; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 1px var(--hair); }

.hero { text-align: center; padding-top: calc(var(--unit) * 6); }

.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.iconwrap { display: block; flex: none; filter: drop-shadow(0 3px 6px rgba(30, 24, 18, .1)); }
.iconring { display: block; padding: .5px; border-radius: 23%; background: rgba(43, 38, 33, .19); }
.icon {
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
}

h1 {
  font-size: var(--l);
  line-height: var(--l-lh);
  font-weight: 500;
  letter-spacing: -.04em;
  margin-left: -.04em;
}

.tagline {
  font-size: var(--m);
  line-height: var(--m-lh);
  font-weight: 400;
  color: var(--ink2);
  margin-top: calc(var(--unit) * 2);
}

.download {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 calc(var(--unit) * 3);
  margin-top: calc(var(--unit) * 4);
  border-radius: 24px;
  color: #F7F5F1;
  background: linear-gradient(#4A4643, #34312E);
  box-shadow:
    0 0 0 1px rgba(20, 18, 16, .55),
    0 0 0 5px rgba(43, 38, 33, .05),
    0 2px 6px rgba(43, 38, 33, .2);
}
.download:hover { background: linear-gradient(#57524F, #3E3A37); }
.download:active {
  background: linear-gradient(#34312E, #4A4643);
  box-shadow:
    0 0 0 1px rgba(20, 18, 16, .55),
    0 0 0 5px rgba(43, 38, 33, .05),
    0 1px 3px rgba(43, 38, 33, .08);
}

.fine { margin-top: calc(var(--unit) * 2); color: var(--ink2); font-weight: 400; text-wrap: balance; }

.stage {
  display: grid;
  grid-template-columns: 32px auto 32px;
  justify-content: center;
  align-items: center;
  column-gap: 12px;
  margin: calc(var(--unit) * 6) 0 0;
}
.holder { position: relative; }

.device {
  width: var(--phone);
  margin: 0 auto;
  container-type: inline-size;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  isolation: isolate;
  filter: drop-shadow(0 0 .5px rgba(43, 38, 33, .5));
}
.device::before {
  content: "";
  position: absolute;
  inset: 1.5cqw;
  z-index: -1;
  border-radius: 15cqw;
  box-shadow: 0 2px 6px rgba(30, 24, 18, .12), 0 32px 48px -4px rgba(30, 24, 18, .22);
}

.frame {
  padding: 1.43cqw;
  border-radius: 16cqw;
  background: linear-gradient(145deg, #DCD9D4, #ACA8A2 45%, #D0CCC6 60%, #A09C96);
}

.bezel {
  padding: 1.224cqw;
  border-radius: 14.57cqw;
  background: #141210;
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: 13.346cqw;
  aspect-ratio: 1206 / 2622;
  background: #000;
}
.screen::before {  content: "";
  position: absolute;
  z-index: 2;
  top: 2.69cqw;
  left: 50%;
  width: 27.88cqw;
  height: 8.17cqw;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #000;
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.screen img.was { opacity: 1; transition: none; }
.screen img.on { opacity: 1; z-index: 1; }

.label {
  position: absolute;
  z-index: 0;
  left: 6%;
  right: 6%;
  top: calc(100% - 24px);
  padding: 40px 20px 16px;
  border-radius: 14px;
  background: linear-gradient(#FAFAFA, #F3F3F2);
  box-shadow: 0 0 0 .5px rgba(43, 38, 33, .14), 0 8px 20px -12px rgba(30, 24, 18, .16);
  transform: translateY(calc(-100% + 24px));
  transition: transform .5s cubic-bezier(.3, .8, .25, 1);
}
.label.in { transform: none; }
.label { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.label .title { font-size: 15px; line-height: 20px; }
.label .sub { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--ink2); font-weight: 400; text-wrap: pretty; }
.label.half { transition-duration: .3s; }
.label.half:not(.in) { transform: translateY(calc((-100% + 24px) * .5)); }

.step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: rgba(43, 38, 33, .34);
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease;
}
.step:hover { background: rgba(43, 38, 33, .04); color: rgba(43, 38, 33, .55); }
.step:active { background: rgba(43, 38, 33, .1); }
.step svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

.still .screen img, .still .label { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .screen img, .label, .needle { transition: none; }
}

.hero { padding-bottom: 160px; }
.footer { margin-top: calc(var(--unit) * 4); }
.footer .wrap > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: calc(var(--unit) * 3) 0 calc(var(--unit) * 5);
  border-top: .5px solid rgba(43, 38, 33, .07);
  color: var(--ink2);
  font-weight: 400;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a:hover { color: var(--ink); }
.footer span a { color: var(--ink); }

.doc { padding: calc(var(--unit) * 6) 0 0; }
.doc article { max-width: 640px; font-size: 17px; line-height: 28px; font-weight: 400; }
.doc h1 { font-size: 48px; line-height: 48px; letter-spacing: -.03em; margin: 0 0 calc(var(--unit) * 2); }
.doc .meta { color: var(--ink2); margin-bottom: calc(var(--unit) * 6); }
.doc h2 { font-size: 17px; line-height: 28px; font-weight: 600; margin: calc(var(--unit) * 5) 0 calc(var(--unit) * 1); }
.doc p, .doc ul { margin-bottom: calc(var(--unit) * 2); }
.doc ul { padding-left: 1.1em; }
.doc li { margin-bottom: 4px; }
.doc strong { font-weight: 600; }
.doc a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(43, 38, 33, .35); }
.doc a:hover { text-decoration-color: var(--ink); }

@media (max-width: 760px) {
  :root { --l: 64px; --l-lh: 60px; --m: 17px; --m-lh: 24px; --gutter: 20px; }
  .tagline { margin-top: var(--unit); }
  .download { margin-top: calc(var(--unit) * 5); }
  .hero { padding-top: calc(var(--unit) * 5); }
  .icon { width: 56px; height: 56px; }
  .lockup { gap: 14px; }
  :root { --phone: min(100vw - 130px, 342px, calc((100vh - 120px) * .47)); }
  @supports (height: 100svh) {
    :root { --phone: min(100vw - 130px, 342px, calc((100svh - 120px) * .47)); }
  }
  .stage { grid-template-columns: 44px auto 44px; margin: calc(var(--unit) * 5) -12px 0; column-gap: 12px; }
  .step { width: 44px; height: 44px; border-radius: 12px; color: rgba(43, 38, 33, .3); }
  .step svg { width: 22px; height: 22px; stroke-width: 1.25; }
  .footer .wrap > div { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .footer nav { justify-content: center; }
  .device::before { box-shadow: 0 2px 6px rgba(30, 24, 18, .12), 0 24px 40px -8px rgba(30, 24, 18, .19); }
  .doc h1 { font-size: 40px; line-height: 44px; }
}

@media (min-width: 1024px) {
  :root { --phone: min(342px, calc((100vh - 96px) * .47)); }
  @supports (height: 100svh) {
    :root { --phone: min(342px, calc((100svh - 96px) * .47)); }
  }
  .hero {
    display: grid;
    align-content: center;
    min-height: 100vh;
    min-height: 100svh;
    margin-top: -16px;
    padding: 40px 0;
    text-align: left;
  }
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: calc(var(--unit) * 11);
    max-width: calc(944px + 2 * var(--gutter));
  }
  .intro { align-self: start; margin-top: calc(var(--phone) * .2955 + var(--unit) * 2); }
  .lockup { justify-content: flex-start; }
  .stage { margin: 0; column-gap: 28px; }
  .label {
    left: auto;
    right: calc(100% - 24px);
    top: auto;
    bottom: 14%;
    width: 248px;
    padding: 14px 40px 16px 16px;
    transform: translateX(calc(100% - 24px));
  }
  .label.half:not(.in) { transform: translateX(calc((100% - 24px) * .5)); }
  .label.in { transform: none; }
  .footer { margin-top: 0; }
}
