/* Pips — the download page.
 *
 * Layers on top of /style.css rather than replacing it: the floor, sky,
 * vignette, scanlines, grain, HUD and footer all come from there, so this page
 * cannot drift away from the homepage's look by accident.
 *
 * The one thing it has to override is scrolling. The homepage is a fixed
 * viewport with `overflow: hidden`; this page is a document.
 */

html, body {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
}

body {
  display: block;
  min-height: 100vh;
}

/* The fixed effect layers stay put while the document scrolls under them. */
.floor, .sky, .vignette, .scanlines, .noise { position: fixed; }

/* `main` is centred on the homepage, where every line is a slogan. Here most of
   the text is prose, and centred prose with a ragged left edge is genuinely
   harder to read — so the page resets it and the hero opts back in. */
.page {
  position: relative;
  z-index: 10;
  max-width: 46rem;
  margin: 0 auto;
  padding: 5.5rem 1.75rem 3rem;
  text-align: left;
}

/* ---------- hero ---------- */

.hero { text-align: center; }

.hero .logo {
  font-size: clamp(3.2rem, 13vw, 7.5rem);
  margin-bottom: 0.35em;
}

.hero .tagline {
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  letter-spacing: 0.34em;
}

.hero .subtagline {
  margin: 0.9rem auto 0;
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1.7;
  max-width: 32em;
}

/* ---------- the download control ---------- */

.get {
  margin: 2.75rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

/* A filled block that inverts on press, not on hover — the same rule the app's
   own controls follow. Hover is a brightening; the invert belongs to the click. */
.dl {
  display: inline-block;
  padding: 0.95em 2.4em;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.16);
  transition: color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.dl:hover {
  color: var(--cyan-soft);
  border-color: var(--cyan-soft);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.3);
}
.dl:active {
  color: #000;
  background: var(--cyan);
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.55);
}

.meta {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.meta .sep { opacity: 0.45; margin: 0 0.5em; }

/* ---------- the six ---------- */

.strip {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 3.5rem 0 0.9rem;
}
.strip i {
  display: block;
  width: 34px;
  height: 15px;
  background: var(--seg);
  box-shadow: 0 0 12px var(--seg);
}
/* The palette is the app's, in slot order. Position never moves, which is the
   whole point — so the page shows them in the same fixed order too. */
.strip i:nth-child(1) { --seg: #ff453a; }
.strip i:nth-child(2) { --seg: #ff9f0a; }
.strip i:nth-child(3) { --seg: #ffd60a; }
.strip i:nth-child(4) { --seg: #32d74b; }
.strip i:nth-child(5) { --seg: #0a84ff; }
.strip i:nth-child(6) { --seg: #bf5af3; }
/* Two of six quiet, so the strip reads as a state and not as decoration. */
.strip i.off { background: #223221; box-shadow: none; }

.strip-caption {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* The hero sits on the floor rather than occluding it — that grid is the site's
   signature and this is the one place it should be at full strength. A radial
   scrim keeps the wordmark off the brightest part of it without flattening the
   corners. */
.hero {
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -3rem -50vw;
  z-index: -1;
  background: radial-gradient(
    ellipse 60% 70% at 50% 45%,
    rgba(0, 0, 0, 0.86) 0%,
    rgba(0, 0, 0, 0.62) 55%,
    transparent 100%
  );
  pointer-events: none;
}

/* ---------- panels ---------- */

/* Two-tone rules, cyan above and magenta below — the app's own panel idiom.
 *
 * The dark backdrop is not decoration. The wireframe floor and the cyan horizon
 * are fixed layers, so on a page that scrolls they run straight through the body
 * copy; the horizon line lands mid-sentence and the grid competes with every
 * descender. A panel that occludes them is what makes this page readable, and it
 * happens to be exactly what the app does with its own modules. */
.panel {
  margin-top: 3.25rem;
  border-top: 1px solid rgba(0, 240, 255, 0.22);
  border-bottom: 1px solid rgba(255, 0, 128, 0.32);
  padding: 1.6rem 1.5rem 1.8rem;
  background: rgba(0, 0, 0, 0.82);
}

.panel h2 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

.beats {
  list-style: none;
  display: grid;
  gap: 1.15rem;
}
.beats li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--ink);
}
.beats .n {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--magenta-soft);
}
.beats b {
  color: var(--ink);
  font-weight: 700;
}
.beats span {
  color: var(--ink-dim);
}

.spec {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-dim);
}
.spec b {
  color: var(--ink);
  font-weight: 400;
}

/* ---------- the other platforms ---------- */

.soon {
  margin-top: 3.25rem;
  text-align: center;
  padding: 1.6rem 1rem;
  border: 1px dashed rgba(138, 138, 138, 0.3);
  background: rgba(0, 0, 0, 0.82);
}
.soon .label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.6rem;
}
.soon .line {
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.soon .line em {
  font-style: normal;
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 242, 0, 0.5);
}

@media (max-width: 600px) {
  .page { padding: 4.5rem 1.25rem 2.5rem; }
  .strip i { width: 26px; height: 13px; }
  .beats li { grid-template-columns: 2.1rem 1fr; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dl { transition: none; }
}
