/* The home page: the app's Home sky, alive and opened; the wordmark large in the middle of the open sky; the
   waitlist on the clouds. Sizes are in --u, a hundredth of the page's width up to a phone's; the places come from
   home.js (--logoY, --logoW, --waitY). Nothing moves but the sky, and the words arriving. */

.home-page { background: #142E49; }

.sky-page {
  --u: 3.93px;
  position: relative; min-height: 100svh; overflow: hidden;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
}

/* The sky: night first, then the painting comes in, as the app's launch gives way to Home. */
.sky { position: fixed; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.sky-page:not([data-state="loading"]) .sky { opacity: 1; }
.art { position: absolute; left: 0; top: 0; width: 1257px; height: 2622px; transform-origin: 0 0; }
.low { position: absolute; left: 0; top: 0; width: 1257px; height: 2622px; }
.band { position: absolute; left: 0; top: 520px; width: 1257px; height: 240px; overflow: hidden; transform-origin: 0 0; display: none; }
.layer { position: absolute; max-width: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.low .layer, .art > .layer { will-change: transform; }
#lowSky { display: none; }

/* The wordmark, large, in the open sky. */
.logo {
  position: absolute; left: 50%; top: var(--logoY, 30%); width: var(--logoW, 64vw);
  margin: 0; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 1.8s ease 0.7s;
}
.logo img { display: block; width: 100%; height: auto; }
.sky-page:not([data-state="loading"]) .logo { opacity: 1; }

/* The tagline beneath it, in small spaced capitals (the founder's lettering for a tagline: younger, modern). */
.tagline {
  position: absolute; left: 0; right: 0; top: var(--tagY, 45%);
  margin: 0; padding: 0 calc(var(--u) * 6); text-align: center; color: var(--cream);
  font: 500 calc(var(--u) * var(--tagSize, 3.5)) / 1.75 var(--ui); letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transition: opacity 1.8s ease 1.2s;
}
.sky-page:not([data-state="loading"]) .tagline { opacity: 1; }

/* The waitlist, on the clouds (on a wide screen, in the open sky beneath the wordmark). */
.wait {
  position: absolute; left: 0; right: 0; top: var(--waitY, 70%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 calc(var(--u) * 6);
  opacity: 0; transition: opacity 1.6s ease 2s;
}
.sky-page:not([data-state="loading"]) .wait { opacity: 1; }
.soon { margin: 0; font: 600 calc(var(--u) * 4) / 1.3 var(--ui); letter-spacing: 0.02em; color: var(--navy); }
.join {
  margin: calc(var(--u) * 3.6) 0 0; display: flex; align-items: center; gap: calc(var(--u) * 1.6);
  width: min(100%, calc(var(--u) * 92)); padding: calc(var(--u) * 1.3);
  background: rgba(251, 245, 234, 0.8); border-radius: 999px;
  box-shadow: 0 calc(var(--u) * 0.5) calc(var(--u) * 2.4) rgba(11, 41, 57, 0.12);
}
.join input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 400 max(16px, calc(var(--u) * 4)) / 1.2 var(--ui); color: var(--navy);
  padding: calc(var(--u) * 2.4) calc(var(--u) * 3.4);
}
.join input::placeholder { color: rgba(11, 41, 57, 0.5); }
.join button {
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  padding: calc(var(--u) * 3.3) calc(var(--u) * 4.6);
  font: 600 calc(var(--u) * 3.7) / 1 var(--ui); letter-spacing: 0.01em;
  color: var(--cream); background: var(--navy);
}
.join button:disabled { opacity: 0.6; cursor: default; }
.join:focus-within { box-shadow: 0 0 0 2px rgba(11, 41, 57, 0.35), 0 calc(var(--u) * 0.5) calc(var(--u) * 2.4) rgba(11, 41, 57, 0.12); }
.join[hidden] { display: none; }
.joined { margin: calc(var(--u) * 2.6) 0 0; font: 500 calc(var(--u) * 3.8) / 1.4 var(--ui); color: var(--navy); }
.joined:empty { display: none; }

/* Privacy · Support · Terms, and whose it is. */
.foot {
  position: absolute; left: 0; right: 0; top: var(--footY, auto); bottom: auto;
  text-align: center; color: rgba(11, 41, 57, 0.82);
  font: 500 calc(var(--u) * 3.2) / 1.4 var(--ui); letter-spacing: 0.02em;
  opacity: 0; transition: opacity 1.6s ease 2.6s;
}
.sky-page:not([data-state="loading"]) .foot { opacity: 1; }
.foot p { margin: 0; }
.foot a { text-decoration: none; padding: 0.6em 0.45em; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; }
.foot .dot { opacity: 0.6; }
.foot .legal { margin-top: calc(var(--u) * 1.2); font-size: calc(var(--u) * 2.8); opacity: 0.85; }

/* A wide screen: the waitlist in the open sky, in cream. */
.sky-page.wide .soon, .sky-page.wide .joined { color: var(--cream); }
