:root {
  color-scheme: light;
  font-family: "Segoe UI", "Poppins", Arial, sans-serif;
  color: #00061f;
  background: #f6fcff;
}

* {
  box-sizing: border-box;
}

html,
body,
main {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

.page-background {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: #f6fcff url("images/zANKC5arruNu/background/large.jpeg") top center / cover no-repeat;
}

.site-header {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  padding: 32px 40px;
}

.brand-logo {
  display: block;
  width: 192px;
  max-height: 64px;
  object-fit: contain;
}

.screen {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 48px;
}

.screen[hidden] {
  display: none;
}

.content {
  width: min(100%, 740px);
  min-width: 0;
  text-align: center;
}

h1 {
  margin: 0;
  color: #00061f;
  font-size: clamp(35.2px, 4.24vw, 60.8px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.lead {
  max-width: 700px;
  margin: 28px auto 0;
  color: #252c42;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.allocation-note {
  margin: 20px auto 0;
  color: #00061f;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.45;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.primary-button {
  width: auto;
  min-width: 4cm;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #159bea;
  box-shadow: 0 8px 24px rgba(21, 155, 234, 0.22);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #0789d6;
  box-shadow: 0 12px 28px rgba(21, 155, 234, 0.3);
}

.primary-button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 117, 255, 0.3);
  outline-offset: 3px;
}

.keyboard-hint {
  color: #545a6d;
  font-size: 12px;
  text-align: left;
}

.keyboard-hint strong {
  color: #11172b;
  white-space: nowrap;
}

.time-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: #454b5e;
  font-size: 12px;
}

.waitlist-form {
  position: relative;
  width: min(100%, 720px);
  min-width: 0;
}

.form-screen.is-visible {
  animation: screen-in 360ms ease both;
}

.question-counter {
  position: absolute;
  top: 9px;
  right: calc(100% + 12px);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.question-counter svg {
  fill: currentColor;
}

h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

h2 span {
  margin-left: 4px;
}

.form-description {
  margin: 14px 0 34px;
  color: #41485d;
  font-size: 16px;
  line-height: 1.5;
}

input {
  display: block;
  width: 100%;
  padding: 12px 2px 13px;
  border: 0;
  border-bottom: 2px solid rgba(0, 6, 31, 0.35);
  border-radius: 0;
  outline: none;
  color: #00061f;
  background: transparent;
  font-size: clamp(22px, 2.6vw, 30px);
  transition: border-color 160ms ease;
}

input::placeholder {
  color: rgba(0, 6, 31, 0.38);
}

input:focus {
  border-bottom-color: #00061f;
}

.submit-button {
  min-height: 48px;
  margin-top: 28px;
  padding-inline: 22px;
}

.form-message {
  min-height: 21px;
  margin: 15px 0 0;
  color: #1e5631;
  font-size: 14px;
}

.form-message.is-error {
  color: #a22525;
}

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

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 22px 24px;
  }

  .brand-logo {
    width: 145px;
    max-height: 46px;
  }

  .screen {
    padding: 98px 24px 38px;
  }

  h1 {
    font-size: clamp(31.2px, 9.6vw, 43.2px);
  }

  .lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .allocation-note {
    margin-top: 18px;
    font-size: 15px;
  }

  .action-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .keyboard-hint {
    text-align: center;
  }

  .form-screen {
    padding-inline: 30px;
  }

  .question-counter {
    position: static;
    margin-bottom: 12px;
  }

  h2 {
    font-size: 27px;
  }
}

@media (max-height: 600px) {
  .site-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .screen {
    padding-top: 84px;
  }

  .lead {
    margin-top: 16px;
  }

  .action-row {
    margin-top: 22px;
  }

  .time-hint {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
