/* MCPaaS Landing Page Styles */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111827;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.page {
  width: 100%;
  max-width: 900px;
  padding: 60px 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 0;
  overflow: visible;
  transition: justify-content 0.3s ease, padding-top 0.3s ease;
}

.page-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page.message-shown {
  justify-content: flex-start;
  padding-top: 40px;
}

.logo {
  width: 320px;
  margin: 0 auto 50px;
  display: block;
}

h1 {
  font-size: 30px;
  margin: 0 0 14px;
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 20px;
  font-weight: 400;
  color: #374151;
  line-height: 1.32;
  margin-top: 12px;
  margin-bottom: 28px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

p {
  margin: 0 0 36px;
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
}

.coming {
  font-size: 15px;
  color: #6b7280;
  margin-top: 0;
  margin-bottom: 24px;
}

.form-intro {
  font-size: 15px;
  color: #374151;
  margin-bottom: 14px;
  margin-top: 8px;
}

form {
  margin: 12px auto 20px;
  max-width: 480px;
  display: flex;
  gap: 8px;
}

input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

input[type="email"]:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

button {
  padding: 12px 18px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  background: #0b2346;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, opacity 0.2s;
}

button:hover:not(:disabled) {
  background: #06162e;
}

button:disabled {
  background: #6b7280;
  cursor: not-allowed;
  opacity: 0.7;
}

.small {
  font-size: 14px;
  color: #6b7280;
  margin-top: 10px;
}

.small a {
  color: #4f46e5;
  text-decoration: none;
}

.small a:hover {
  text-decoration: underline;
}

footer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0px 0px 0px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #6b7280;
  flex-shrink: 0;
  max-height: 50px;
}

footer a {
  color: #4f46e5;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

#thanks-msg {
  color: #059669;
  font-weight: 500;
  margin-top: 12px;
  margin-bottom: 0;
  min-height: 1.5em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#thanks-msg.show {
  opacity: 1;
}

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

/* Mobile styles */
@media (max-width: 768px) {
  body {
    min-height: 100vh;
    overflow-y: auto;
  }

  .page {
    padding: 20px 16px;
    max-width: 100%;
    justify-content: flex-start;
    min-height: 0;
  }

  .page.message-shown {
    padding-top: 16px;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  h2 {
    font-size: 15px;
    padding: 0;
    margin-top: 6px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .logo {
    width: 200px;
    margin-bottom: 20px;
  }

  .coming {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .form-intro {
    margin-bottom: 8px;
    margin-top: 2px;
    font-size: 14px;
  }

  form {
    flex-direction: column;
    align-items: stretch;
    margin: 6px auto 10px;
  }

  button {
    width: 100%;
  }

  .small {
    margin-bottom: 12px;
    font-size: 13px;
  }

  #thanks-msg {
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 13px;
  }

  footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    max-height: none;
    padding: 12px 16px 0;
  }

  footer p {
    margin: 0;
  }

  footer p:first-child {
    order: 2;
  }

  footer p:last-child {
    order: 1;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .page {
    padding: 20px 40px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 20px;
    margin-top: 12px;
    margin-bottom: 28px;
  }

  .logo {
    width: 360px;
    margin-bottom: 48px;
  }
}
