/* Waitlist pages: the Nightfall sky and its shimmering stars, without the WebGL galaxy, and one readable column. */
@font-face { font-family:Lato; src:url('/type/lato-light.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Julius Sans One'; src:url('/type/julius-sans-one.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }

:root {
  color-scheme:dark;
  --sky:#0b1629;
  --ink:#fff3ec;
  --muted:#c9c6cf;
  --peach:#f7cfb8;
  --line:#fff0e54d;
  --panel:#15253e99;
  --field:#0b162980;
  --error:#ffb4a2;
  background:var(--sky);
  color:var(--ink);
}
* { box-sizing:border-box; }
body {
  margin:0;
  min-height:100svh;
  background:
    radial-gradient(ellipse 62% 64% at 108% 108%, #ffdab140 0%, #edac9124 22%, #c6858714 44%, transparent 76%),
    radial-gradient(ellipse at 8% 30%, #5488bb30, transparent 61%),
    linear-gradient(145deg, #0c182d, #1e3654 60%, #3e3b51) fixed;
  font:300 17px/1.55 Lato,'Helvetica Neue',Arial,sans-serif;
  -webkit-text-stroke:.2px currentColor;
  /* Own stacking context, so the star layers below paint above the sky, not behind it. */
  position:relative;
  isolation:isolate;
}
/* The landing page's two star layers (style.css .star-sky), fixed behind the content. */
body::before,body::after { content:''; position:fixed; inset:0; z-index:-1; pointer-events:none; }
body::before {
  background-image:
    radial-gradient(circle at 23px 37px, #f7d7c9b0 0 .7px, transparent 1.2px),
    radial-gradient(circle at 137px 113px, #c0d5ec95 0 .6px, transparent 1.1px),
    radial-gradient(circle at 71px 193px, #fff2e9c0 0 .75px, transparent 1.25px),
    radial-gradient(circle at 239px 67px, #b9d2ed80 0 .5px, transparent 1px),
    radial-gradient(circle at 113px 277px, #efd0c3a0 0 .55px, transparent 1.1px),
    radial-gradient(circle at 311px 181px, #c4d9efa0 0 .6px, transparent 1.1px);
  background-size:307px 293px,419px 379px,503px 467px,349px 557px,613px 389px,743px 631px;
  animation:star-breathe 11s ease-in-out -4s infinite alternate;
}
body::after {
  background-image:
    radial-gradient(circle at 17px 29px, #eee9dfc0 0 .65px, transparent 1.15px),
    radial-gradient(circle at 83px 101px, #c6d6ff90 0 .55px, transparent 1.1px),
    radial-gradient(circle at 149px 53px, #fff9 0 .7px, transparent 1.25px),
    radial-gradient(circle at 47px 173px, #dae3ff80 0 .5px, transparent 1px),
    radial-gradient(circle at 211px 127px, #e3e9ff70 0 .6px, transparent 1.1px);
  background-size:193px 211px,257px 239px,293px 317px,367px 281px,431px 397px;
  animation:star-shimmer 7s ease-in-out infinite alternate;
}
@keyframes star-shimmer { 0% {opacity:.25} 45% {opacity:.8} 100% {opacity:.4} }
@keyframes star-breathe { from {opacity:.55} to {opacity:1} }
@media (prefers-reduced-motion:reduce) { body::before,body::after { animation:none; } }

.page {
  width:100%;
  max-width:520px;
  margin:0 auto;
  padding-block:calc(28px + env(safe-area-inset-top,0px)) calc(40px + env(safe-area-inset-bottom,0px));
  padding-left:max(20px, env(safe-area-inset-left,0px));
  padding-right:max(20px, env(safe-area-inset-right,0px));
  display:flex;
  flex-direction:column;
  gap:28px;
}
.brand { display:block; width:140px; margin:0 auto; line-height:0; }
.brand img { width:100%; height:auto; filter:saturate(.35) brightness(1.055); }

.panel {
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:28px 24px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--panel);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.eyebrow { margin:0; font:400 13px/1.2 'Julius Sans One',Lato,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--peach); -webkit-text-stroke:0; }
h1 { margin:0; font-weight:300; font-size:clamp(22px, 5.4vw, 27px); line-height:1.3; text-wrap:balance; }
p { margin:0; }
.lede { color:var(--muted); }
.small { font-size:14px; color:var(--muted); }
a { color:var(--peach); text-underline-offset:3px; }

form { display:flex; flex-direction:column; gap:12px; }
input[type=email], input[type=text] {
  display:block;
  width:100%;
  padding:13px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--field);
  color:var(--ink);
  font:inherit;
  -webkit-text-stroke:0;
}
input::placeholder { color:#c9c6cfb3; }
input:focus-visible, button:focus-visible { outline:2px solid var(--peach); outline-offset:2px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Mac | Windows | Both: one optional row, styled like the inputs around it. */
.platform { display:grid; grid-template-columns:repeat(3, 1fr); margin:0; padding:0; border:1px solid var(--line); border-radius:12px; background:var(--field); overflow:hidden; }
.platform label { position:relative; }
.platform label + label { border-left:1px solid var(--line); }
.platform input { position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.platform span { display:block; padding:12px 4px; text-align:center; color:#c9c6cfb3; transition:background-color .15s ease, color .15s ease; }
.platform input:checked + span { background:#f7cfb829; color:var(--ink); }
.platform input:focus-visible + span { outline:2px solid var(--peach); outline-offset:-2px; }

/* Questions or ideas: a contact card under the confirmation. */
.contact {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--field);
  color:var(--ink);
  text-decoration:none;
  transition:border-color .15s ease, background-color .15s ease;
}
.contact:hover { border-color:#f7cfb880; background:#15253ecc; }
.contact:focus-visible { outline:2px solid var(--peach); outline-offset:2px; }
.contact-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.contact-label { font-size:14px; color:var(--muted); }
.contact-address { color:var(--peach); overflow-wrap:anywhere; }
.contact svg { flex:none; color:var(--peach); }

button {
  height:50px;
  margin-top:0;
  padding:0 30px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff3ec;
  color:#15253e;
  font:400 16px/1 Lato,sans-serif;
  letter-spacing:.04em;
  cursor:pointer;
}
button[disabled] { opacity:.6; cursor:progress; }
form .small { margin-top:4px; }

.notice { padding:12px 14px; border:1px solid #ffb4a280; border-radius:12px; background:#ffb4a21a; color:var(--error); font-size:15px; }
.trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }

.prose { display:flex; flex-direction:column; gap:14px; font-size:16px; }
.prose h2 { margin:8px 0 0; font-weight:400; font-size:17px; }
.prose ul { margin:0; padding-left:20px; }
.prose li + li { margin-top:4px; }
.policy-head { display:flex; flex-direction:column; gap:4px; padding-bottom:6px; border-bottom:1px solid var(--line); }

/* Inside the home page's dialog (join.js, embed.js): the galaxy shows through, so no sky,
   stars, wordmark or panel of our own, and the form's headline is the dialog's hero line
   instead. The page is only as tall as its content, so the dialog can fit it. */
:root.embedded, .embedded body { background:transparent; }
.embedded body { min-height:0; }
/* The dialog sizes the frame to the page, so the page itself never scrolls or shows a bar. */
:root.embedded, .embedded body { overflow:hidden; }
.embedded body::before, .embedded body::after, .embedded .brand { display:none; }
.embedded .page { max-width:none; padding-block:24px; padding-left:24px; padding-right:24px; }
.embedded .panel { padding:0; border:0; border-radius:0; background:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.embedded .form-title { display:none; }
