/* Prelaunch gate page (docs/architecture/prelaunch-gate.md). One centred column on brand navy;
   the visitor's cursor is a lamp behind a page-sized colour lithophane of today's picture.
   A single dark look by choice. Fonts are served from /gate/fonts (no third-party requests). */
@font-face {
  font-family: 'Parkinsans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/parkinsans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  --navy-950: #07122a;
  --navy-900: #0b1b3a;
  --line: rgba(160, 182, 230, 0.16);
  --text: #eef2fb;
  --text-dim: #a7b3cf;
  --text-faint: #8391b0;
  --amber: #ffc531;
  --orange: #ff7a1a;
  --font-display: 'Parkinsans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
  margin: 0;
  background: var(--navy-950);
}
body {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The light behind the page: a full-page canvas under the content. */
.light {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  text-align: center;
  padding-block: 48px 32px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.logo {
  height: 28px;
  width: auto;
  display: block;
}

/* Today's picture (the server sends only today's, sharper every day) as the lit panel; a blurred
   copy is its backlight halo; the CMY colours dance over it, clipped to the panel's shape. */
.litho {
  position: relative;
  width: min(100%, 360px);
  max-width: 100%;
}
.litho::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(closest-side, rgba(255, 170, 110, 0.22), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}
.litho .halo {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  filter: blur(36px) saturate(1.4);
  opacity: 0.55;
  pointer-events: none;
}
.litho .panel {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
}
.litho .dance {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: var(--dance, 0.8);
  filter: saturate(1.25);
  -webkit-mask-image: url('reveal.webp');
  mask-image: url('reveal.webp');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* Same colours, painted solid: fully there on the first day, fading out as the picture fades in. */
.litho .dance.solid {
  mix-blend-mode: normal;
  opacity: var(--solid, 1);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.sub {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.notify {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.notify input {
  min-width: 0;
  width: 16rem;
  max-width: 100%;
  background: rgba(11, 27, 58, 0.8);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
}
.notify input::placeholder {
  color: var(--text-faint);
}
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 10px;
  padding: 11px 18px;
  border: 0;
}
.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}
.btn-cta {
  background: linear-gradient(180deg, var(--amber), var(--orange));
  color: var(--navy-900);
  box-shadow: 0 10px 28px rgba(255, 122, 26, 0.25);
}
.btn-cta:hover {
  filter: brightness(1.06);
}
.form-note {
  width: 100%;
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.form-note a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.team-link {
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 4px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-faint);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.team-link:hover {
  color: var(--text);
}

/* Early access sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(3, 8, 20, 0.74);
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.sheet {
  width: min(100%, 380px);
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sheet h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}
.sheet p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.93rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.field input {
  background: rgba(7, 18, 42, 0.8);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
}
#team-form .btn-cta {
  width: 100%;
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--line);
  width: 100%;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 197, 49, 0.25);
  border-top-color: var(--amber);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .litho {
    width: min(100%, 260px);
  }
  .page {
    gap: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
