:root {
  --accent: #e88f6b;
  --accent-hover: #f0a283;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

html { background: #000; }

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: #fff;
  /* Covers the whole page, not just the first screen: no `fixed`, which iOS Safari ignores anyway. */
  background: linear-gradient(135deg, #000000 0%, #a24a2e 100%) no-repeat;
  background-size: 100% 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.app-icon {
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.byline {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.byline:hover { color: rgba(255, 255, 255, 0.8); }

.tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin: 0 auto 2rem;
  max-width: 40rem;
  line-height: 1.6;
}

.downloads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-hover); transform: scale(1.05); }

.alt {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.alt:hover { color: #fff; }

.note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 26rem;
}

.gallery {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  padding: 2rem 2rem 1.25rem;
  margin: 4rem 0;
}

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }

.track figure {
  margin: 0;
  scroll-snap-align: start;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 600 / 1304;
}
.track img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.arrow {
  position: absolute;
  top: calc(50% - 0.75rem);
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.arrow:hover { background: rgba(255, 255, 255, 0.2); }
.prev { left: -1rem; }
.next { right: -1rem; }

.dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.dots button.on { background: #fff; }

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
}
.features div {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}
.features h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.4rem; }
.features p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; line-height: 1.55; }

footer { text-align: center; padding: 2rem 1rem; }
footer a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: rgba(255, 255, 255, 0.6); }
footer .links { margin-top: 1rem; }

/* Privacy page */
.doc { text-align: left; max-width: 56rem; margin: 0 auto; padding: 2rem 1rem 3rem; line-height: 1.7; }
.doc .back { display: inline-block; color: rgba(255, 255, 255, 0.6); text-decoration: none; margin-bottom: 2rem; }
.doc .back:hover { color: rgba(255, 255, 255, 0.8); }
.doc h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.5rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.doc .updated { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 1024px) {
  .track { grid-auto-columns: calc((100% - 1rem) / 2); }
}

@media (max-width: 640px) {
  .container { padding-top: 3rem; }
  h1 { font-size: 2.5rem; }
  .tagline { font-size: 1.1rem; }
  .gallery { padding: 1.25rem 1.25rem 1rem; margin: 3rem 0; }
  .track { grid-auto-columns: 100%; }
  .prev { left: -0.5rem; }
  .next { right: -0.5rem; }
  .features { grid-template-columns: 1fr; }
}
