*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #f8f9fb;
  color: #111318;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
}

.logo {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 15vh;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.sub {
  margin: 24px 0 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.6;
  color: #3a3f4b;
}

.signup {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: inherit;
  background: #fff;
  border: 1px solid #d5d8de;
  border-radius: 6px;
  outline: none;
}
.signup input[type="email"]:focus { border-color: #111318; }
.signup input::placeholder { color: #9aa0ab; }

.signup button {
  height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #111318;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.signup button:hover { background: #2a2e37; }

.msg { margin: 16px 0 0; font-size: 14px; }
.msg.ok { color: #1a7f45; }
.msg.err { color: #b42318; }

.foot {
  padding: 24px 32px;
  text-align: center;
  font-size: 14px;
  color: #4b5160;
}
.foot a { color: #111318; text-underline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

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

@media (max-width: 480px) {
  .signup { flex-direction: column; }
}
