:root {
  --ink: #171c27;
  --muted: #667085;
  --sky: #edf8ff;
  --white: #ffffff;
  --red: #ff1024;
  --red-dark: #d80719;
  --yellow: #ffc400;
  --line: #dcecf5;
  --display: "Arial Rounded MT Bold", "Avenir Next", Avenir, system-ui, sans-serif;
  --body: "Avenir Next", Avenir, Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background: var(--sky);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.site-header,
.hero,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.wordmark img { border-radius: 11px; }

.beta-label,
.eyebrow,
.download-meta,
footer {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.beta-label {
  padding: 8px 11px;
  color: var(--red-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

main {
  display: block;
  min-width: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(55px, 9vw, 120px);
  min-height: calc(100vh - 168px);
  padding-block: 72px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  left: -85px;
  top: 50%;
  border: 1px solid rgb(72 175 242 / .28);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 54px rgb(255 255 255 / .38);
}

.app-icon {
  display: block;
  width: min(100%, 360px);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 28px 70px rgb(23 28 39 / .14);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red-dark);
}

h1 {
  max-width: 680px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 7vw, 88px);
  line-height: .94;
  letter-spacing: -.055em;
}

.hero-lede {
  max-width: 590px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.download-button {
  width: fit-content;
  min-height: 62px;
  margin-top: 34px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--white);
  background: var(--red);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 0 var(--red-dark);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.download-button:hover {
  transform: translateY(3px);
  box-shadow: 0 5px 0 var(--red-dark);
}

.download-button:active {
  transform: translateY(7px);
  box-shadow: 0 1px 0 var(--red-dark);
}

.download-meta {
  margin: 22px 0 0;
  color: var(--muted);
}

.invite-page {
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.invite-card {
  width: min(100%, 620px);
  padding: clamp(34px, 7vw, 64px);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgb(23 28 39 / .1);
}

.invite-icon {
  display: block;
  margin: 0 auto 28px;
  border-radius: 24%;
  box-shadow: 0 14px 35px rgb(23 28 39 / .14);
}

.invite-card h1 { font-size: clamp(44px, 9vw, 68px); }
.invite-card .hero-lede { margin-inline: auto; }
.invite-card .download-button { margin-inline: auto; }

.invite-fallback {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.invite-fallback a {
  color: var(--red-dark);
  font-weight: 800;
}

.showcase {
  overflow: hidden;
  padding: 96px max(20px, calc((100% - 1080px) / 2)) 110px;
  color: var(--white);
  background: var(--ink);
}

.showcase-heading {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 58px;
}

.showcase .eyebrow { color: var(--yellow); }

.showcase h2 {
  max-width: 680px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 5.8vw, 70px);
  line-height: .98;
  letter-spacing: -.045em;
}

.showcase-heading > p {
  margin: 0 0 4px;
  color: #b9c2d0;
  font-size: 17px;
  line-height: 1.55;
}

.screen-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 46px);
}

.screen-grid figure {
  min-width: 0;
  margin: 0;
}

.phone-frame {
  overflow: hidden;
  border: 8px solid #080b12;
  border-radius: 34px;
  background: var(--white);
  box-shadow: 0 24px 55px rgb(0 0 0 / .32);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screen-grid figcaption {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 800;
}

.screen-grid figcaption span {
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: .08em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 78px 0 0;
  padding: 1px;
  list-style: none;
  background: #303746;
}

.feature-grid li {
  min-height: 172px;
  padding: 24px;
  background: var(--ink);
}

.feature-grid span {
  display: block;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
}

.feature-grid p {
  margin: 15px 0 0;
  color: #b9c2d0;
  font-size: 14px;
  line-height: 1.55;
}

footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p { margin: 0; }

a:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 5px;
}

@media (max-width: 740px) {
  .site-header,
  .hero,
  footer {
    width: min(100% - 30px, 1080px);
  }

  .site-header { min-height: 72px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: calc(100vh - 162px);
    padding-block: 34px 40px;
    text-align: center;
  }

  .hero::before {
    width: 290px;
    height: 290px;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
  }

  .app-icon {
    width: min(52vw, 205px);
    margin-inline: auto;
  }

  h1 { font-size: clamp(44px, 12.5vw, 58px); }

  .hero-lede {
    margin: 20px auto 0;
    line-height: 1.5;
  }

  .download-button {
    width: min(100%, 340px);
    margin-top: 27px;
  }

  .download-meta { margin-top: 18px; }

  .showcase {
    padding: 68px 0 76px;
  }

  .showcase-heading {
    width: calc(100% - 30px);
    margin: 0 auto 38px;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }

  .showcase h2 {
    font-size: clamp(42px, 12vw, 54px);
  }

  .showcase-heading > p {
    max-width: 360px;
    font-size: 15px;
  }

  .screen-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 0 15px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .screen-grid::-webkit-scrollbar { display: none; }

  .screen-grid figure {
    flex: 0 0 min(76vw, 310px);
    scroll-snap-align: center;
  }

  .phone-frame {
    border-width: 6px;
    border-radius: 29px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    margin: 48px 15px 0;
  }

  .feature-grid li {
    min-height: 180px;
    padding: 20px;
  }

  footer {
    min-height: 90px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid li { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
