/* ---- Reset / base ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Light wash — keeps the bright grass look from the design while
     still lifting white text off the busy video. */
  --overlay: rgba(0, 0, 0, 0.18);
  --fg: #ffffff;
}

html,
body {
  /* 100dvh + overflow:hidden = true "no scroll" full screen, even with
     the mobile address bar in play (plain 100vh overflows on phones). */
  height: 100dvh;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--fg);
  background: #0a0a0a; /* shows before the video paints */
  /* Smoother text rendering (especially white-on-dark) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Background video ------------------------------------------------- */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  /* cover fills the viewport at any aspect ratio, cropping overflow
     instead of stretching the video. */
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: -1;
}

/* ---- Centered content ------------------------------------------------- */
.content {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* generous, even spacing between logo / tagline / link, as in the design */
  gap: clamp(1rem, 4.5vh, 1rem);
  padding: 1.5rem;
  /* respect notches / safe areas on mobile */
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.logo {
  /* ~100px on a 14" Mac, scaling gently on other sizes */
  width: clamp(76px, 7vw, 104px);
  height: auto;
  user-select: none;
}

.tagline {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 32ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* ---- Sign-up link (underlined text, opens Tally popup) --------------- */
.signup-link {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font: inherit;
  font-weight: 300;        /* match the tagline (font: inherit resets it to 400) */
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  letter-spacing: -0.01em;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  transition: opacity 0.15s ease;
}

.signup-link:hover {
  opacity: 0.75;
}

.signup-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---- Accessibility: respect reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none; /* poster/background color shows instead */
  }
  .signup-link {
    transition: none;
  }
}
