.nav-logo {
  display: block;
}

html[data-page="home"] #nav {
  height: 0;
}

html[data-page="home"] .nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: #fff;
  border-bottom: 1px solid rgb(17 17 17 / 8%);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 560ms ease, opacity 560ms ease;
}

html[data-page="home"][data-nav="on"] .nav {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

html[data-page="home"] .story-pin {
  top: 0;
  height: 100vh;
  height: 100dvh;
}

.img-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 56px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.img-btn img {
  width: 100%;
  height: 56px;
  object-fit: cover;
}

.img-btn span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  pointer-events: none;
}

.img-btn,
.img-btn-call,
.img-btn-down {
  background: var(--fade);
}

.story {
  height: 100vh;
  height: 100dvh;
  background: var(--fade);
}

.story-pin {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  overflow: hidden;
  background: var(--fade);
  display: grid;
  place-items: center;
}

.story-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}

.story-copy .outro {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(920px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  animation: outro-in 900ms ease both;
}

@keyframes outro-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 18px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.story-end {
  display: block;
  height: 1px;
}

.claim-logo {
  width: min(168px, 38vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 36px;
  margin: 0 auto 28px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 32%);
}

.story-claim {
  margin: 0 auto 20px;
  font-family: Anton, sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 9vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  max-width: 12ch;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 10px 32px rgb(0 0 0 / 28%);
}

.story-download,
.band-download {
  display: inline-flex;
  width: max-content;
  margin: 0 auto 28px;
  min-width: 0;
  padding: 0 22px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--white);
  background: var(--fade);
  box-shadow: none;
  outline: 0;
}

.store-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: auto;
}

.store-row.is-pulse .store-btn {
  animation: store-pulse 560ms ease;
}

@keyframes store-pulse {
  50% {
    transform: scale(1.05);
  }
}

.store-btn {
  position: relative;
  display: inline-flex;
  width: min(176px, 46vw);
  height: auto;
  aspect-ratio: 959 / 293;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.store-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.device {
  height: 100%;
  border-radius: 36px;
  background: #0a0a0a;
  padding: 10px;
  box-shadow:
    0 28px 50px rgb(0 0 0 / 38%),
    0 12px 24px rgb(0 0 0 / 22%);
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.features {
  padding: 96px 0 40px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}

.feature:nth-child(even) {
  grid-template-columns: minmax(220px, 280px) 1fr;
}

.feature:nth-child(even) .feature-copy {
  order: 2;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.6px;
}

.feature p {
  margin: 0;
  color: var(--mute);
  max-width: 36ch;
}

.feature .device {
  max-width: 280px;
  aspect-ratio: 9 / 17.4;
  height: auto;
  box-shadow:
    0 32px 64px rgb(17 17 17 / 28%),
    0 10px 22px rgb(17 17 17 / 16%);
}

.cats {
  padding: 72px 0 96px;
}

.cat-phone .device img {
  transition: opacity 320ms ease;
}

.cat-phone .device img.is-swap {
  opacity: 0;
}

.cat-stage {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 40px;
  align-items: center;
}

.cat-phone .device {
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 9 / 17.4;
  height: auto;
  box-shadow:
    0 32px 64px rgb(17 17 17 / 28%),
    0 10px 22px rgb(17 17 17 / 16%);
}

.download-band {
  padding: 72px 0;
  text-align: center;
  background: var(--surface);
}

.download-band h2 {
  margin: 0 auto 28px;
  max-width: 14ch;
  font-size: clamp(44px, 8vw, 72px);
  line-height: 0.98;
}

.download-band .band-download {
  margin: 0 auto;
}

.qa {
  padding: 72px 0 96px;
}

.qa-list {
  max-width: 720px;
}

.qa-list details {
  border-top: 1px solid rgb(17 17 17 / 8%);
  padding: 18px 0;
}

.qa-list details:last-child {
  border-bottom: 1px solid rgb(17 17 17 / 8%);
}

.qa-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}

.qa-list summary::-webkit-details-marker {
  display: none;
}

.qa-list details p {
  margin: 10px 0 0;
  color: var(--mute);
  max-width: 54ch;
}

.home-blog {
  padding: 72px 0 96px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-card {
  overflow: hidden;
  padding: 0;
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card .pad {
  padding: 20px;
}

.article-hero {
  margin: 0 0 32px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--muted);
}

.article-hero img {
  width: 100%;
  height: min(52vh, 480px);
  object-fit: cover;
}

.blog-index .post-card img {
  height: 220px;
}

@media (max-width: 800px) {
  .feature,
  .feature:nth-child(even),
  .cat-stage,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) .feature-copy {
    order: 0;
  }

  .feature {
    gap: 24px;
    padding: 40px 0;
  }

  .feature .device,
  .cat-phone .device {
    max-width: 220px;
    margin-inline: auto;
  }

  .features {
    padding: 56px 0 24px;
  }

  .cats,
  .qa,
  .home-blog {
    padding: 48px 0 64px;
  }

  .download-band {
    padding: 48px 0;
  }

  .download-band h2 {
    font-size: clamp(32px, 9vw, 52px);
    margin-bottom: 20px;
  }

  .claim-logo {
    width: min(96px, 28vw);
    margin-bottom: 16px;
    border-radius: 22px;
  }

  .story-claim {
    font-size: clamp(28px, 8.4vw, 44px);
    margin-bottom: 14px;
  }

  .story-download {
    margin-bottom: 16px;
  }

  .story-copy {
    padding: 16px;
  }

  .story-copy .outro {
    width: min(920px, calc(100% - 24px));
  }

  .device {
    border-radius: 28px;
    padding: 8px;
  }

  .device img {
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .store-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .store-btn {
    width: min(200px, 78vw);
  }

  .pills {
    margin: 0 -12px;
    padding: 0 12px 8px;
  }
}

@media (max-height: 700px) {
  .claim-logo {
    width: min(80px, 22vw);
    margin-bottom: 10px;
  }

  .story-claim {
    font-size: clamp(24px, 6.5vw, 36px);
    margin-bottom: 10px;
  }
}
