:root {
  color-scheme: dark;
  --yellow: #ffd400;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

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

body { background: #08151b; color: #fff; }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.page__image,
.page__shade,
.page__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page__image {
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.84) contrast(1.04);
  animation: image-arrive 2.2s cubic-bezier(.2, .7, .2, 1) both;
}

.page__shade {
  background: linear-gradient(180deg, rgba(3, 13, 18, .14), rgba(3, 13, 18, .08) 42%, rgba(3, 13, 18, .64));
}

.page__grain {
  opacity: .055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.message {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 6vw, 6rem);
  bottom: clamp(5.5rem, 13vh, 9rem);
  max-width: min(48rem, 82vw);
}

h1 {
  width: fit-content;
  margin: 0 0 clamp(1.2rem, 2.5vh, 2rem);
  padding-bottom: .12em;
  border-bottom: .2em solid var(--yellow);
  font-size: clamp(3.4rem, 8vw, 8.2rem);
  font-weight: 450;
  line-height: .94;
  letter-spacing: -.055em;
  animation: copy-arrive .8s .2s ease both;
}

.intro { margin: 0; font-size: clamp(1.2rem, 2.2vw, 2rem); line-height: 1.35; letter-spacing: -.018em; }
.intro { font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.38); }
.intro span { display: block; }
.intro span:first-child { animation: copy-arrive .8s .9s ease both; }
.intro span:last-child { animation: copy-arrive .8s 1.45s ease both; }

.signup {
  width: min(27rem, 78vw);
  margin-top: clamp(2.2rem, 5vh, 3.6rem);
  transition: opacity .45s ease, transform .55s ease;
}
.signup[data-resting] { opacity: 0; pointer-events: none; transform: translateY(.55rem); }
.signup__embed { display: block; width: 100%; height: 2.65rem; border: 0; background: transparent; transition: height .35s ease; }
.signup[data-verifying] .signup__embed { height: 13rem; background: #08151b; }

.signup__label { margin: 0 0 .48rem; color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.4; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.signup__note { margin: .32rem 0 0; color: #fff; font-size: .68rem; font-weight: 500; line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.signup__note a { color: inherit; text-underline-offset: .2em; }

.context {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(4.2rem, 6vw, 5.5rem);
  margin: 0;
  font-size: clamp(.78rem, 1vw, .95rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .025em;
  text-align: right;
  animation: copy-arrive .8s 2.25s ease both;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}

.legal {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(1.4rem, 3vw, 2.8rem);
  display: flex;
  gap: 1rem;
  font-size: .75rem;
}
.legal a { color: rgba(255,255,255,.78); text-underline-offset: .25em; }
.legal a:hover, .legal a:focus-visible { color: #fff; text-decoration-color: var(--yellow); }

.legal-page {
  min-height: 100vh;
  background: #fff;
  color: #10212a;
  font-family: Arial, Helvetica, sans-serif;
}

.legal-page main {
  width: min(44rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.legal-page h1 {
  width: auto;
  margin: 0 0 2.5rem;
  border: 0;
  color: #0d2ab7;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1;
  animation: none;
}

.legal-page h2 { margin: 2.4rem 0 .7rem; font-size: 1.2rem; }
.legal-page p, .legal-page li { max-width: 66ch; font-size: 1rem; line-height: 1.65; }
.legal-page address { font-style: normal; }
.legal-page a { color: #0d2ab7; text-underline-offset: .2em; }
.legal-page .back { display: inline-block; margin-top: 3rem; font-weight: 600; }

.confirmation-page__message h1 { font-size: clamp(2.8rem, 7vw, 7rem); }
.confirmation-page__brand {
  width: fit-content;
  margin: 0 0 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.confirmation-page__back {
  display: inline-block;
  margin-top: 2.2rem;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-underline-offset: .3em;
}
.confirmation-page__back:hover,
.confirmation-page__back:focus-visible { text-decoration-color: var(--yellow); }

@keyframes image-arrive { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
@keyframes copy-arrive { from { opacity: 0; transform: translateY(.55rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 700px) {
  .page__image { object-position: 57% 50%; }
  .message { bottom: 8.5rem; max-width: calc(100% - 3rem); }
  h1 { font-size: clamp(3rem, 17vw, 5.4rem); }
  .intro { font-size: clamp(1.05rem, 5.2vw, 1.4rem); }
  .context { left: 1.5rem; right: auto; bottom: 5.25rem; text-align: left; }
  .signup { width: min(27rem, calc(100vw - 3rem)); margin-top: 1.8rem; }
  .signup__embed { height: 2.65rem; }
  .signup[data-verifying] .signup__embed { height: 16rem; }
  .legal { bottom: .7rem; }
}

@media (max-width: 400px) {
  .signup__embed { height: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .page__image, h1, .intro span, .context, .signup { animation: none; }
}
