/* Marketing waitlist — one full-bleed hero image + glass card. */

:root {
  --bg-deep: #17181c;
  /* Vertical anchor for mobile hero — crops pale sky at top (Figma centers Capitol lower in frame) */
  --hero-mobile-pos-y: 38%;
  --text-primary: #fbfcfd;
  --text-placeholder: #9e9e9e;
  --glass: rgba(0, 0, 0, 0.2);
  --input-inner: #15181d;
  --gradient-cta: linear-gradient(148deg, #c72e28 0%, #0d5695 100%);
  --font-news: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Work Sans', system-ui, sans-serif;
}

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

html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  min-height: -webkit-fill-available;
  overscroll-behavior: none;
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--font-sans);
  background: transparent;
  color: inherit;
}

/* Mobile hero: body bg + screen.height; scroll-then-lock.js (57px lift, frozen). */
@media (max-width: 899px) {
  html {
    min-height: var(--full-h, 100lvh);
    overflow: hidden;
    background-color: var(--bg-deep);
  }

  body {
    min-height: var(--full-h, 100lvh);
    overflow: hidden;
    background-color: var(--bg-deep);
    background-image: url('images/hero-mobile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 28%;
  }

  .page {
    min-height: var(--full-h, 100lvh);
  }

  .content {
    padding: 0 max(16px, env(safe-area-inset-right, 0px))
      max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
}

@media (min-width: 900px) {
  html {
    background-image: url('images/hero-web.jpg');
    background-size: cover;
    background-position: center center;
  }
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  overflow: hidden;
}

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

.content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.glass-card {
  width: min(520px, 100%);
  padding: 40px 16px;
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.brand-block .wordmark {
  width: min(262px, 100%);
  height: auto;
  display: block;
}

.date {
  margin: 0;
  font-family: var(--font-news);
  font-size: 2.5rem;
  line-height: 1.05;
  text-align: center;
  color: var(--text-primary);
}

.tagline {
  margin: 0;
  font-family: var(--font-news);
  font-size: clamp(1rem, 0.8rem + 1.25vw, 26px);
  line-height: 1.2;
  text-align: center;
  color: #fff;
}

.signup {
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-status {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(251, 252, 253, 0.85);
}

.form-status--error {
  color: #ffb4b0;
}

.signup-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 4px;
  width: 100%;
}

.field-email {
  flex: 1;
  min-width: 0;
}

.input-gradient {
  display: block;
  height: 58px;
  padding: 2px;
  border-radius: 16px 4px 4px 16px;
  background: var(--gradient-cta);
}

.input-gradient input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 13px 2px 2px 13px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--input-inner);
  outline: none;
}

.input-gradient input::placeholder {
  color: var(--text-placeholder);
}

.cta {
  flex: 0 0 85px;
  height: 58px;
  border: none;
  border-radius: 4px 16px 16px 4px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fbfcfd;
  cursor: pointer;
  background: var(--gradient-cta);
}

.cta:hover {
  filter: brightness(1.06);
}

.cta:active {
  transform: scale(0.98);
}

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 8px;
}

.social-label {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 100px;
}

.social-link.social-x {
  background: #000;
}

.social-insta-img,
.social-reddit-img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.social-reddit-img {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 899px) and (max-height: 720px) {
  .glass-card {
    padding: 28px 14px;
    gap: 12px;
  }

  .date {
    font-size: clamp(2rem, 8dvw, 2.5rem);
  }
}

@media (min-width: 900px) {
  .content {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(clamp(16px, 3vw, 48px), env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px)) max(clamp(24px, 8.6vw, 124px), env(safe-area-inset-left, 0px));
  }

  .glass-card {
    width: min(530px, 100%);
    padding: clamp(24px, 4.5vh, 62px) clamp(28px, 4vw, 52px) clamp(20px, 3.5vh, 48px);
    border-radius: 60px;
    align-items: center;
    gap: 0;
  }

  .brand-block {
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .brand-block .wordmark {
    width: min(410px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .brand-block .date {
    margin-top: clamp(12px, 2.8vh, 48px);
    font-size: clamp(2rem, 4.2vh, 3rem);
    text-align: center;
    width: 100%;
  }

  .brand-block .tagline {
    margin-top: clamp(12px, 2.8vh, 48px);
    font-size: clamp(16px, 1.6vh + 12px, 28px);
    line-height: 1.2;
    text-align: center;
    max-width: 446px;
    width: 100%;
  }

  .signup {
    margin-top: clamp(12px, 2.8vh, 48px);
    align-self: stretch;
    width: 100%;
  }

  .signup-row {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .input-gradient {
    height: 64px;
    border-radius: 16px;
  }

  .input-gradient input {
    border-radius: 14px;
    padding: 0 17px;
    font-size: 1.25rem;
  }

  .cta {
    flex: 0 0 103px;
    width: 103px;
    height: 64px;
    margin-left: 12px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .social {
    margin-top: auto;
    justify-content: center;
    width: 100%;
    padding-top: clamp(12px, 2vh, 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta:active {
    transform: none;
  }
}

