:root {
  --pink: #ffa3e8;
  --bg-fallback: #b9c7d2;
  --text-size: 15.935px;
  --line-height: 1.2;
  --page-pad-x: 68px;
  --logo-top: 78px;
  --signup-top: 340px;
  --disclaimer-top: 528px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-fallback);
}

body {
  min-height: 100svh;
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: var(--text-size);
  line-height: var(--line-height);
  color: var(--pink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background: var(--bg-fallback);
}

/*
 * Source footage is portrait; Figma rotates it -90deg and flips vertically
 * to read as a horizontal pond. Swap width/height (use 100vh / 100vw) because
 * the element is rotated 90deg inside the viewport.
 */
.bg__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  min-width: 100vh;
  min-height: 100vw;
  transform: translate(-50%, -50%) rotate(-90deg) scaleY(-1);
  transform-origin: center center;
  object-fit: cover;
  pointer-events: none;
}

@supports (height: 100dvh) {
  .bg__video {
    width: 100dvh;
    height: 100dvw;
    min-width: 100dvh;
    min-height: 100dvw;
  }
}

.page {
  position: relative;
  min-height: 100svh;
  padding: var(--logo-top) var(--page-pad-x) 48px;
  max-width: 640px;
}

.meta {
  margin: 0;
}

.meta__title {
  margin: 0 0 12px;
  font-size: var(--text-size);
  letter-spacing: 0.01em;
}

.meta__line {
  margin: 0;
}

.meta__spacer {
  margin: 0;
  height: 1.2em;
}

.signup {
  margin-top: calc(var(--signup-top) - var(--logo-top) - 220px);
  max-width: 322.688px;
}

.signup__heading {
  margin: 0 0 26px;
  max-width: 322.688px;
}

.signup__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 32px;
  max-width: 192.406px;
}

.signup__input,
.signup__send {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--pink);
  text-align: left;
  width: 100%;
  outline: none;
}

.signup__input {
  caret-color: var(--pink);
}

.signup__input::placeholder {
  color: var(--pink);
  opacity: 1;
}

.signup__input:focus-visible {
  outline: 1px dashed var(--pink);
  outline-offset: 4px;
}

.signup__send {
  cursor: pointer;
  width: fit-content;
}

.signup__send:hover,
.signup__send:focus-visible {
  text-decoration: underline;
}

.signup__send:focus-visible {
  outline: 1px dashed var(--pink);
  outline-offset: 4px;
}

.signup__send[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.signup__status {
  margin: 0;
  min-height: 1.2em;
}

.signup__disclaimer {
  margin: 0;
  max-width: 322.688px;
}

.signup.is-done .signup__form,
.signup.is-done .signup__heading {
  display: none;
}

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

@media (max-width: 767px) {
  :root {
    --page-pad-x: 47px;
    --logo-top: 74px;
    --signup-top: 336px;
    --disclaimer-top: 524px;
  }

  .page {
    padding-inline: var(--page-pad-x);
    padding-top: var(--logo-top);
  }

  .bg__video {
    object-position: 75% 30%;
  }

  .signup {
    margin-top: calc(var(--signup-top) - var(--logo-top) - 220px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg__video {
    display: none;
  }
}
