/* Avalune landing page.
   Palette is taken from the live waitlist card: gold #F2C95F on #262626 fields,
   inside a black card. Everything else is black, white and that gold. */

:root {
  --gold: #f2c95f;
  --field: #262626;
  --ink: #111;
  --paper: #000;
  --radius-field: 0.9rem;
  --radius-card: 14px;

  /* Avenir ships on macOS/iOS, so it is used where present with no webfont and
     no licensing exposure. Elsewhere the stack falls to comparable geometric
     humanist sans faces rather than shipping a licensed file. To use the
     licensed Avenir Next webfont, add an @font-face here and put it first. */
  --font: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui,
    -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: #fff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- background ---------- */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* The poster shows through until enough video is buffered, and remains the
     whole experience for anyone whose browser or data saver blocks autoplay. */
  background: #000 url("/assets/poster.jpg") center / cover no-repeat;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.75)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.85));
}

/* ---------- layout ---------- */

.shell {
  position: relative;
  z-index: 2;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  padding: clamp(1.5rem, 5vw, 3rem) 1.25rem;
}

.brand .logo {
  display: block;
  width: clamp(120px, 22vw, 190px);
  height: auto;
}

.lede {
  max-width: 34rem;
  text-align: center;
  margin: 0;
}

.lede h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.lede p {
  margin: 0;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- waitlist card ---------- */

.card {
  background: var(--paper);
  border: 1px solid rgba(242, 201, 95, 0.18);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  width: min(85vw, 28rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.card-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card input[type="text"],
.card input[type="email"],
.card input[type="tel"] {
  display: block;
  width: 100%;
  height: 3rem;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-field);
  background: var(--field);
  color: var(--gold);
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card input::placeholder {
  color: var(--gold);
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card input:focus-visible {
  outline: none;
  border-color: var(--gold);
  background: #2e2e2e;
}

/* Flagged only after a submit attempt, so the form never scolds mid-typing. */
.card input[aria-invalid="true"] {
  border-color: #ff6b6b;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
}

.consent input {
  margin: 0.15rem 0 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
  flex: none;
}

.consent label {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.consent.invalid label {
  color: #ff9b9b;
}

#submit {
  width: 100%;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--field);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}

#submit:hover:not(:disabled) {
  filter: brightness(1.07);
}

#submit:active:not(:disabled) {
  transform: translateY(1px);
}

#submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.msg {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  color: #ff9b9b;
}

.msg:empty {
  margin-top: 0;
  min-height: 0;
}

/* ---------- success ---------- */

.done {
  text-align: center;
  padding: 0.75rem 0 0.25rem;
}

.done-title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.done-body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ig img {
  display: block;
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.ig:hover img {
  opacity: 1;
}

.imprint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.imprint:hover {
  color: var(--gold);
}

/* ---------- utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot: removed from view and from the accessibility tree, but still a
   real focusable-by-script field that naive bots will populate. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
  #submit {
    transition: none;
  }
}
