/* The /beta page. Loaded after site.css and built from its tokens and patterns;
   only what the launch film and the Beehiiv form need is new. */

.beta-hero .hero-grid {
  grid-template-rows: auto 1fr;
  align-items: start;
}
.beta-hero .hero-intro {
  justify-items: start;
}
/* The form sits beside the film on a wide screen; a phone gets a way down to it. */
.beta-jump {
  display: none;
}

/* The launch film is portrait. It keeps its 9:16 shape and never outgrows the window. */
.beta-film {
  grid-area: visual;
  width: 100%;
  max-width: clamp(260px, calc((100vh - 220px) * 0.5625), 405px);
  margin-inline: auto;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.5);
}
.beta-film video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: var(--sunken);
}
.beta-film .stamp {
  white-space: nowrap;
}

.beta-signup {
  grid-area: signup;
  display: grid;
  gap: var(--space-md);
  width: 100%;
  max-width: 560px;
  padding: var(--space-lg);
  background: var(--raised);
  border: 1px solid var(--brandBorder);
  border-radius: var(--radius-lg);
}
.beta-signup h2 {
  font-size: clamp(24px, 2.5vw, 30px);
}
.beta-signup-copy {
  color: var(--ink2);
  font-size: 17px;
}
.beta-signup .signup-consent a {
  color: var(--ink2);
  text-underline-offset: 4px;
}
.beta-status {
  color: var(--success);
  font-size: 17px;
  font-weight: 500;
}
.beta-status:empty {
  display: none;
}

/* Beehiiv draws the form in its own iframe and sets the height once it has measured.
   The slot holds room until then, so the panel does not jump. */
.beta-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.beta-embed[data-state="loading"] {
  display: grid;
  align-content: center;
  min-height: 320px;
  border: 1px dashed var(--border);
}
.beta-embed-note {
  padding: var(--space-md);
  color: var(--ink2);
  font-size: 14px;
  text-align: center;
}
.beta-embed-note a {
  color: var(--blueBright);
  text-underline-offset: 4px;
}
/* One note at a time: loading while the loader works, blocked if it never arrives. */
.beta-embed .beta-embed-loading,
.beta-embed .beta-embed-blocked {
  display: none;
}
.beta-embed[data-state="loading"] .beta-embed-loading,
.beta-embed[data-state="blocked"] .beta-embed-blocked {
  display: block;
}
.beta-embed[data-state="blocked"] {
  border: 1px solid var(--border);
}

.beta-notes {
  margin-top: var(--space-xl);
}

@media (max-width: 760px) {
  .beta-jump {
    display: inline-flex;
  }
  .beta-signup {
    margin-inline: auto;
    padding: var(--space-md);
  }
}

/* “Get beta access” is longer than the homepage's nav button; the wordmark gives it room
   on the narrowest phones. */
@media (max-width: 360px) {
  .nav .brand {
    width: 124px;
  }
}
