body {
  background-image: url("../images/bg.png");
  background-size: auto;
  background-position: center;
}
body main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0 auto;
  max-width: 1024px;
  width: 100%;
  padding: 16px 24px;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  body main {
    max-width: 768px;
  }
}
@media (max-width: 768px) {
  body main {
    max-width: 560px;
  }
  body main .disclaimer {
    font-size: 14px !important;
  }
  body main header {
    padding-bottom: 60px !important;
    padding-top: 80px !important;
    gap: 48px !important;
  }
  body main footer {
    flex-direction: column;
    justify-content: center;
    gap: 10px !important;
    padding: 16px 0 !important;
  }
  body main footer p,
  body main footer a {
    font-size: 14px !important;
  }
}
body main header {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 0;
  gap: 64px;
}
body main header div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}
body main header div button {
  margin: 40px auto;
}
body main header div p:first-of-type {
  max-width: 504px;
}
body main header div h1 {
  margin-bottom: 16px;
}
body main header .disclaimer {
  margin-top: auto;
  font-size: 18px;
  max-width: 713px;
}
body main footer {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body main footer p,
body main footer a {
  font-size: 18px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  text-decoration: none;
}
.desktop-only-br {
    display: inline; 
}

@media screen and (max-width: 400px) {
    .desktop-only-br {
        display: none;
    }
}

button {
  padding: 12px 32px;
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 167%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0a0b09;
  border: 1px solid #0a0b09;
  /* Button/Default/Neutral */
  border-radius: 8px;
  box-shadow: 0px 0px 0px 1px #222530, 0px 16px 24px -8px rgba(24, 27, 37, 0.1), inset 0px -2px 4px #0e121b, inset 0px 2px 6px rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}
button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* ---------- Access form ---------- */
.access-form {
  width: 100%;
  max-width: 640px;
  margin: 40px auto 0;
}

.access-row {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: stretch;
  justify-content: center;
}

.access-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 167%;
  border-radius: 8px;
  border: 1px solid #0a0b09;
  background: #ffffff;
  color: #0a0b09;
  box-sizing: border-box;
  min-width: 0;
}

.access-row input::placeholder {
  color: #6b6b6b;
}

/* message under form */
.form-message {
  margin-top: 12px;
  font-size: 18px;
}

/* screen-reader only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Mobile: stack input + button */
@media (max-width: 768px) {
  .access-form {
    max-width: 100%;
  }

  .access-row {
    flex-direction: column;
  }

  .access-row input {
    font-size: 14px;
  }

  button {
    font-size: 14px;
  }
}

/* ---------- Disclaimer Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #ffffff;
  max-width: 720px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 12px;
  text-align: left;
  font-family: "Inter", sans-serif;
}

.modal h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.modal-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #0a0b09;
}

.modal-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  font-size: 16px;
}

/* Modal form styles */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form input[type="text"],
.modal-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 8px;
  border: 1px solid #0a0b09;
  background: #ffffff;
  color: #0a0b09;
  box-sizing: border-box;
}

.modal-form input::placeholder {
  color: #6b6b6b;
}

.modal-checkbox a {
  color: #0a0b09;
  text-decoration: underline;
  font-size: 14px;
}

@media (max-width: 768px) {
  .modal-checkbox a {
    font-size: 12px;
  }
}

.modal-checkbox a:hover {
  opacity: 0.7;
}

/* Collapsible disclaimer content */
.disclaimer-content {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  margin: 8px 0;
}

.disclaimer-content p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #0a0b09;
}

.disclaimer-content p:last-child {
  margin-bottom: 0;
}

.modal button {
  width: 100%;
  font-size: 18px;
  margin-top: 8px;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button:disabled:hover {
  transform: none;
  opacity: 0.4;
}
