:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #09090b;
  color: #fff;
  --page-width: 560px;
  --red: #fa1637;
  --dock-height: clamp(76px, 21vw, 104px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { margin: 0; scrollbar-color: #442029 #09090b; }
body { margin: 0; background: #09090b; }
a { -webkit-tap-highlight-color: transparent; }
.landing { max-width: var(--page-width); margin-inline: auto; background: #09090b; }
.screen { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(var(--dock-height) + var(--safe-bottom) + 26px);
}
.intro-art { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; justify-content: center; }
.hero-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; -webkit-mask-image: linear-gradient(black 96%, transparent); mask-image: linear-gradient(black 96%, transparent); }
.get-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(110deg, #ff354a, #f0072f);
  border: 1px solid #ff5364;
  box-shadow: 0 6px 28px #fa163733, inset 0 1px #ffffff1c;
  transition: background .18s, transform .18s, box-shadow .18s;
  touch-action: manipulation;
}
.get-app svg { width: 19px; height: 19px; flex: 0 0 auto; }
.get-app:hover { background: #ff3150; box-shadow: 0 7px 28px #fa163755; transform: translateY(-1px); }
.get-app:active { transform: translateY(1px); }
.get-app:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.primary-download { flex: 0 0 auto; min-height: 54px; width: min(68%, 300px); margin: 8px 0 12px; border-radius: 14px; font-size: 19px; }
.benefits { flex: 0 0 auto; width: calc(100% - 24px); max-width: 480px; }
.benefits img { display: block; width: 100%; height: auto; }

.library { padding: 12px 12px calc(var(--dock-height) + var(--safe-bottom) + 24px); }
.poster-wall {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 10px;
  width: 100%; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 7%, black 87%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 7%, black 87%, transparent);
}
.poster-column { min-width: 0; height: 100%; overflow: hidden; }
.poster-column:nth-child(1) { --duration: 35s; --delay: -5s; --strip-image: url('assets/poster-strips/column-1.webp'); --strip-ratio: 600 / 6664; }
.poster-column:nth-child(2) { --duration: 40s; --delay: -13s; --strip-image: url('assets/poster-strips/column-2.webp'); --strip-ratio: 600 / 6664; }
.poster-column:nth-child(3) { --duration: 38s; --delay: -22s; --strip-image: url('assets/poster-strips/column-3.webp'); --strip-ratio: 600 / 5712; }
.poster-wall.is-ready .poster-track { animation: movie-scroll var(--duration) linear infinite; animation-delay: var(--delay); }
.poster-strip { width: 100%; aspect-ratio: var(--strip-ratio); background-image: var(--strip-image); background-size: 100% 100%; background-repeat: no-repeat; }
@keyframes movie-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-100% / var(--copies, 3))); } }
.poster-wall.is-paused .poster-track { animation-play-state: paused; }

.download-dock {
  position: fixed; z-index: 10;
  width: calc(100% - 24px); max-width: calc(var(--page-width) - 24px);
  height: var(--dock-height);
  left: 50%; bottom: calc(12px + var(--safe-bottom)); transform: translateX(-50%);
  border-radius: 18px;
  background: #100b0e;
  box-shadow: 0 12px 42px #000b;
  overflow: hidden;
}
.dock-art { position: absolute; top: 50%; transform: translateY(-50%); display: block; width: 100%; height: 180%; object-fit: fill; }
.dock-logo { position: absolute; left: 3.3%; top: 50%; transform: translateY(-50%); width: min(15.4%, calc(var(--dock-height) * .74)); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 20%; }
.dock-download { position: absolute; right: 3%; top: 50%; transform: translateY(-50%); width: 28%; min-height: 46px; border-radius: 12px; font-size: 15px; gap: 5px; }
.dock-download svg { width: 15px; height: 15px; }
.dock-download:hover { transform: translateY(calc(-50% - 1px)); }
.dock-download:active { transform: translateY(calc(-50% + 1px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 600px) {
  body { background: #050506; }
  .landing { border-inline: 1px solid #ffffff0a; }
  .download-dock { --dock-height: 104px; }
  .dock-download { min-height: 54px; font-size: 18px; }
}
@media (max-height: 700px) {
  .intro { padding-bottom: calc(var(--dock-height) + var(--safe-bottom) + 18px); }
  .benefits { max-width: 350px; }
  .primary-download { min-height: 48px; margin: 4px 0 6px; }
}
@media (max-width: 350px) {
  .download-dock { width: calc(100% - 16px); }
  .dock-download { width: 29%; font-size: 14px; gap: 2px; }
  .dock-download svg { width: 12px; height: 12px; }
  .poster-wall { gap: 7px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  :root, .download-dock { --dock-height: 72px; }
  .intro { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; padding: 8px 14px calc(var(--dock-height) + var(--safe-bottom) + 22px); }
  .intro-art { grid-column: 1; grid-row: 1 / 3; height: 100%; }
  .primary-download { grid-column: 2; grid-row: 1; align-self: end; justify-self: center; margin: 0; width: 90%; min-height: 46px; }
  .benefits { grid-column: 2; grid-row: 2; align-self: start; width: 100%; }
  .dock-download { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .poster-wall.is-ready .poster-track { animation: none; transform: none; }
  .get-app { transition: none; }
}
