:root {
  --navy: #1f2f6b;
  --navy-deep: #16204a;
  --white: #ffffff;
  --pink: #f9a8d4;
  --cyan: #7fe6f5;
  --yellow: #f5d461;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Garet', 'Poppins', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem 4rem;
  text-align: center;
}

/* ---------- Logo ---------- */
/* The PNG is square with large navy padding around the blob;
   negative margins trim the empty space so layout stays tight. */
.logo {
  width: min(460px, 85vw);
  margin-block: calc(min(460px, 85vw) * -0.18);
}

.logo img { width: 100%; height: auto; display: block; }

/* ---------- Headline ---------- */
.headline {
  margin-top: 2.5rem;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: 0.22em;
  margin-right: -0.22em; /* compensate trailing letter-spacing for centering */
  color: var(--white);
  /* subtle chromatic edge that doesn't blur the letterforms */
  text-shadow:
    -0.025em -0.018em 0 var(--pink),
     0.025em  0.018em 0 var(--cyan);
}

.subline {
  margin-top: 0.4rem;
  font-weight: 700;
  font-size: clamp(0.8rem, 2.2vw, 1.1rem);
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: var(--white);
}

/* ---------- Signup ---------- */
.signup {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}

.signup-label {
  font-weight: 800;
  font-size: clamp(0.8rem, 2.4vw, 1.15rem);
  letter-spacing: 0.3em;
  margin-right: -0.3em;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1rem 0.55rem 1.1rem;
  width: min(480px, 92vw);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.pill-icon { flex: 0 0 auto; display: flex; }
.pill-icon svg { width: 34px; height: 28px; }

.pill input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

.pill input[type="email"]::placeholder {
  color: #9aa3c0;
  font-weight: 600;
}

.pill button {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.pill button:hover { transform: translateX(3px); }
.pill button svg { width: 22px; height: 22px; }

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

.feedback {
  min-height: 1.5em;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.feedback.ok { color: var(--yellow); }
.feedback.err { color: var(--pink); }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .headline {
    font-size: clamp(1.6rem, 8.5vw, 2.4rem);
    letter-spacing: 0.16em;
    margin-right: -0.16em;
  }

  .subline {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    margin-right: -0.22em;
  }

  .signup-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin-right: -0.16em;
  }

  .pill input[type="email"] { font-size: 1rem; }
}

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