:root {
  --ink: #061d2f;
  --meta: #3e494a;
  --muted: #6e797b;
  --teal: #005f6a;
  --teal-hover: #004b54;
  --hairline: #d5e3e6;
  --paper: #ffffff;
  --focus: #3aa6b9;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

.stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #e9f5f8 0%, #f7f9ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* ambient glows, matching the Homepage hero treatment */
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.62;
  pointer-events: none;
}
.stage::before {
  width: 880px;
  height: 520px;
  left: 12vw;
  top: -60px;
  background: linear-gradient(135deg, rgba(0, 95, 106, 0.15), rgba(167, 238, 251, 0.25) 50%, rgba(0, 0, 0, 0) 100%);
}
.stage::after {
  width: 700px;
  height: 460px;
  left: 40vw;
  top: 60px;
  background: linear-gradient(135deg, rgba(255, 189, 103, 0.2), rgba(255, 221, 183, 0.25) 50%, rgba(0, 0, 0, 0) 100%);
}

.wordmark {
  position: absolute;
  top: 46px;
  left: clamp(24px, 5vw, 56px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.wordmark .chip {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--teal);
  flex: 0 0 36px;
}
.wordmark .mark {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  padding: 0 8px;
}

.headline {
  margin: 0 auto;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(58px, 12vw, 130px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
.headline em {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0;
}

.subcopy {
  margin: 34px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--meta);
}

.form-card {
  margin: 40px auto 0;
  width: min(560px, 100%);
  min-height: 64px;
  background: var(--paper);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 12px 40px rgba(6, 29, 47, 0.06);
}
.form-icon {
  color: var(--muted);
  flex: 0 0 auto;
}

.form-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.form-input::placeholder { color: var(--muted); }

.form-button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: var(--teal);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.form-button:hover { background: var(--teal-hover); }
.form-button:active { transform: translateY(1px); }
.form-button:focus-visible,
.form-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.form-button[disabled] { opacity: 0.72; cursor: wait; }

.form-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}
.form-note.is-error { color: #b3261e; }
.form-note.is-success { color: #1f7a44; }

.watermark {
  position: absolute;
  right: -140px;
  bottom: 90px;
  z-index: 0;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(180px, 34vw, 320px);
  line-height: 1;
  color: rgba(0, 95, 106, 0.055);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  border: none;
  border-top: 1.5px dotted rgba(0, 95, 106, 0.28);
  margin: 0;
}

.fineprint {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 0 20px;
}

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

@media (max-width: 640px) {
  .stage { overflow-y: auto; overflow-x: hidden; padding: 64px 16px 112px; justify-content: flex-start; }
  .wordmark { top: 18px; }
  .content { width: 100%; padding: 0; margin-top: auto; margin-bottom: auto; }
  .headline { font-size: clamp(52px, 17vw, 76px); line-height: 1.03; }
  .subcopy { margin-top: 22px; font-size: 15.5px; line-height: 1.55; max-width: 32ch; }
  .form-card { margin-top: 26px; padding: 6px 6px 6px 12px; min-height: 56px; gap: 10px; border-radius: 14px; }
  .form-icon { display: none; }
  .form-input { height: 48px; font-size: 16px; padding: 0 4px; }
  .form-button { width: 100%; height: 46px; margin-top: 6px; justify-content: center; font-size: 15px; }
  /* card becomes a single column: full-width input, full-width button below it */
  .form-card { flex-direction: column; align-items: stretch; }
  .form-input { width: 100%; }
  .watermark { display: none; } /* decorative only; removes the worst clipping on tiny screens */
  .horizon { bottom: 100px; }
  .fineprint { font-size: 11px; bottom: 24px; padding: 0 16px; text-wrap: balance; line-height: 1.5; }
}

@media (max-width: 380px) {
  .headline { font-size: clamp(44px, 15vw, 60px); }
  .form-button { height: 44px; }
}

@media (max-height: 680px) and (max-width: 900px) {
  .headline { font-size: clamp(44px, 10vw, 72px); }
  .subcopy { margin-top: 16px; }
  .form-card { margin-top: 18px; }
  .wordmark { top: 14px; }
  .fineprint { position: static; margin-top: 24px; }
  .horizon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .form-button { transition: none; }
}
