html {
  background: #000;
  color-scheme: dark;
}

body.sa-coming-soon {
  margin: 0;
  background: #000;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sa-launch,
.sa-launch * {
  box-sizing: border-box;
}

.sa-launch {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 64px 24px;
}

/* A static, tiled grain layer keeps the black background tactile and lightweight. */
.sa-launch::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.admin-bar .sa-launch {
  min-height: calc(100dvh - 46px);
}

.sa-launch__content {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.sa-launch__logo {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin: 0 auto 40px;
  filter: invert(1);
}

.sa-launch__heading {
  min-height: 32px;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sa-launch__cursor {
  display: none;
  height: .9em;
  border-left: 1px solid currentColor;
  margin-left: 5px;
  vertical-align: -.05em;
}

.is-typing .sa-launch__cursor {
  display: inline-block;
  animation: sa-cursor 1s steps(1) infinite;
}

.sa-launch__signup {
  margin-top: 56px;
}

.sa-launch__signup h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.sa-launch__intro {
  margin: 4px 0 24px;
  color: #999;
  font-size: 13px;
  line-height: 1.6;
}

.sa-launch__form {
  text-align: left;
}

.sa-launch [hidden] {
  display: none !important;
}

.sa-launch__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #b3b3b3;
}

.sa-launch__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.sa-launch__fields input,
.sa-launch__fields button {
  min-height: 50px;
  border: 1px solid #444;
  border-radius: 0;
  padding: 12px 16px;
  font: inherit;
  line-height: 1.4;
}

.sa-launch__fields input {
  width: 100%;
  min-width: 0;
  background: #000;
  color: #fff;
  font-size: 16px;
}

.sa-launch__fields input::placeholder {
  color: #808080;
}

.sa-launch__fields button {
  border-color: #f5f5f5;
  background: #f5f5f5;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sa-launch__fields button:hover {
  opacity: .84;
}

.sa-launch__fields button:active {
  transform: scale(.98);
}

.sa-launch__fields button:disabled {
  opacity: .55;
  cursor: wait;
}

.sa-launch :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.sa-launch__consent {
  margin: 14px 0 0;
  color: #808080;
  font-size: 11px;
  line-height: 1.7;
}

.sa-launch__consent a {
  color: #b3b3b3;
  text-underline-offset: 3px;
}

.sa-launch__feedback {
  margin: 16px 0 0;
  color: #d6d6d6;
  font-size: 13px;
  line-height: 1.7;
}

.sa-launch__feedback:empty {
  margin: 0;
}

.sa-launch__sr-only,
.sa-launch__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 480px) {
  .sa-launch__fields {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 768px) {
  .sa-launch {
    padding: 80px 32px;
  }

  .sa-launch__logo {
    width: 160px;
    height: 160px;
    margin-bottom: 48px;
  }

  .sa-launch__heading {
    font-size: 24px;
  }

  .sa-launch__signup {
    margin-top: 64px;
  }
}

@media (min-width: 783px) {
  .admin-bar .sa-launch {
    min-height: calc(100dvh - 32px);
  }
}

@keyframes sa-cursor {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-launch__cursor { animation: none; }
  .sa-launch__fields button { transition: none; }
}
