:root {
  --font-text: -apple-system, blinkmacsystemfont, "SF Pro Text", "Helvetica Neue", helvetica, arial, sans-serif;
  --font-display: -apple-system, blinkmacsystemfont, "SF Pro Display", "Helvetica Neue", helvetica, arial, sans-serif;
  --color-page: #fbfbfd;
  --color-text: #1d1d1f;
  --color-text-secondary: #424245;
  --color-text-tertiary: #6e6e73;
  --ios-background: #f2f2f7;
  --ios-cell: #fff;
  --ios-label: #000;
  --ios-label-secondary: rgb(60 60 67 / 60%);
  --ios-separator: rgb(0 0 0 / 12%);
  --gutter: max(32px, calc((100vw - 1120px) / 2));
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-page);
  color: var(--color-text);
  font: 17px/1.47 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 3px;
}

.site-header {
  padding: 22px var(--gutter) 0;
}

.wordmark {
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px var(--gutter) 18px;
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
}

.home {
  height: 100vh;
  overflow: hidden;
}

.home .site-header {
  display: none;
}

.hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: end;
  padding: 0 var(--gutter);
}

.hero-copy {
  align-self: center;
  padding-bottom: 6vh;
}

.hero-copy > * {
  animation: come-into-focus 1.6s ease-out both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.35s;
}

.hero-title {
  margin-left: -0.04em;
  padding-bottom: 0.12em;
  font: 600 clamp(4rem, 10vw, 9rem) / 0.95 var(--font-display);
  letter-spacing: -0.045em;
}

.hero-lede {
  margin-top: 22px;
  max-width: 30em;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.hero-lede span {
  display: block;
}

@keyframes come-into-focus {
  from {
    filter: blur(12px);
    opacity: 0;
  }

  to {
    filter: blur(0);
    opacity: 1;
  }
}

.phone-stage {
  position: relative;
  width: 100%;
  height: min(74vh, 720px);
  overflow: hidden;
  mask-image: linear-gradient(#000 82%, transparent);
}

.phone {
  --phone-scale: 1;
  --phone-drop-shadow: 0 0 36px rgb(0 0 0 / 10%);

  position: absolute;
  top: 0;
  left: 50%;
  width: 422px;
  height: 894px;
  margin: 0;
  padding: 10px;
  border-radius: 66px;
  background: #1c1c1e;
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 18%),
    inset 0 0 0 4px #1a1a1c,
    var(--phone-drop-shadow),
    0 0 0 1px #0d0d0f;
  transform: translateX(-50%) scale(var(--phone-scale));
  transform-origin: top center;
}

.phone-button {
  position: absolute;
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1c1c1e, #3a3a3c);
}

.phone-button-action {
  top: 180px;
  left: -4px;
  height: 34px;
}

.phone-button-volume-up {
  top: 240px;
  left: -4px;
  height: 62px;
}

.phone-button-volume-down {
  top: 316px;
  left: -4px;
  height: 62px;
}

.phone-button-side {
  top: 270px;
  right: -4px;
  height: 100px;
  background: linear-gradient(270deg, #1c1c1e, #3a3a3c);
}

.phone-screen {
  position: relative;
  width: 402px;
  height: 874px;
  padding: 0 20px;
  overflow: hidden;
  border-radius: 56px;
  background: var(--ios-background);
  box-shadow: 0 0 0 6px #000;
  color: var(--ios-label);
  font: 17px/22px var(--font-text);
}

.status-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
  padding: 6px 18px 0 30px;
}

.status-bar-time {
  width: 80px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-bar-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  width: 80px;
}

.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 126px;
  height: 37px;
  border-radius: 19px;
  background: #000;
  transform: translateX(-50%);
}

.app-title {
  margin: 26px 0 18px;
  font: 700 34px/41px var(--font-display);
  letter-spacing: 0.01em;
}

.list-header {
  margin: 22px 20px 7px;
  color: var(--ios-label-secondary);
  font: 13px/18px var(--font-text);
  text-transform: uppercase;
}

.list {
  overflow: hidden;
  border-radius: 26px;
  background: var(--ios-cell);
}

.list-row {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 11px 20px;
}

.list-row + .list-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  border-top: 1px solid var(--ios-separator);
}

.list-row-detail {
  margin-top: 2px;
  color: var(--ios-label-secondary);
  font: 15px/18px var(--font-text);
}

.prose {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 32px 48px;
}

.prose h1 {
  margin-bottom: 24px;
  font: 600 clamp(2.4rem, 5vw, 3.4rem) / 1.08 var(--font-display);
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: 32px 0 8px;
  font: 600 1.25rem/1.3 var(--font-display);
}

.prose p {
  color: var(--color-text-secondary);
}

@media (width <= 1100px) and (aspect-ratio >= 1) {
  .phone {
    --phone-scale: 0.85;
  }

  .phone-stage {
    height: min(74vh, 620px);
  }
}

@media (width <= 860px), (aspect-ratio < 1) {
  .home {
    height: auto;
    overflow: visible;
  }

  .home .site-header {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0;
  }

  .hero-copy {
    padding: 32px 0 28px;
  }

  .phone-stage {
    height: 470px;
    mask-image: linear-gradient(#000 72%, transparent);
  }

  .phone {
    --phone-scale: 0.72;
    --phone-drop-shadow: 0 0 transparent;
  }
}

@media (width > 600px) and (aspect-ratio < 1) {
  .hero {
    align-content: center;
  }

  .hero-copy {
    padding: 0 0 48px;
    text-align: center;
  }

  .hero-title {
    margin-left: 0;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .phone-stage {
    height: 620px;
  }

  .phone {
    --phone-scale: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    animation: none;
  }
}
