html.preview-locked,
body.preview-locked {
  overflow: hidden !important;
}

#preview-access-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  color: #f5f7fb;
  background:
    linear-gradient(135deg, rgba(3, 11, 24, .97), rgba(6, 22, 46, .94)),
    url("/hero-road.webp") center/cover no-repeat;
  font-family: Inter, Arial, sans-serif;
}

#preview-access-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 196, 0, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 0, .18) 1px, transparent 1px);
  background-size: 54px 54px;
}

.preview-access-card {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 196, 0, .28);
  background: rgba(5, 13, 27, .94);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .52);
}

.preview-access-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 108px;
  height: 4px;
  background: #ffc400;
}

.preview-access-logo {
  display: block;
  width: min(260px, 75%);
  height: 82px;
  margin: 0 0 34px;
  object-fit: contain;
  object-position: left center;
}

.preview-access-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #ffc400;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}

.preview-access-card h1 {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(38px, 8vw, 62px);
  font-weight: 800;
  line-height: .95;
  text-transform: uppercase;
}

.preview-access-card p {
  max-width: 410px;
  margin: 18px 0 30px;
  color: #b8c1d0;
  font-size: 16px;
  line-height: 1.6;
}

.preview-access-card label {
  display: block;
  margin-bottom: 9px;
  color: #dce3ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.preview-access-field {
  display: grid;
  grid-template-columns: 1fr auto;
}

.preview-access-field input {
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #344159;
  border-right: 0;
  outline: none;
  color: #fff;
  background: #071224;
  font-size: 18px;
}

.preview-access-field input:focus {
  border-color: #ffc400;
}

.preview-access-field button {
  height: 54px;
  padding: 0 22px;
  border: 1px solid #ffc400;
  color: #061022;
  background: #ffc400;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
}

#preview-access-error {
  min-height: 22px;
  margin-top: 10px;
  color: #ff7f74;
  font-size: 13px;
}

.preview-access-card small {
  display: block;
  margin-top: 24px;
  color: #758196;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.preview-access-shake .preview-access-card {
  animation: preview-access-shake .32s ease;
}

@keyframes preview-access-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@media (max-width: 540px) {
  #preview-access-gate {
    padding: 14px;
  }

  .preview-access-card {
    padding: 28px 22px;
  }

  .preview-access-logo {
    height: 64px;
    margin-bottom: 26px;
  }

  .preview-access-field {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .preview-access-field input {
    border-right: 1px solid #344159;
  }

  .preview-access-field button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-access-shake .preview-access-card {
    animation: none;
  }
}
