
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --lime: #c6ed18;
  --pink: #ff4fa0;
  --blue: #16d9ee;
  --cream: #fff5df;
  --muted: #bcb9b2;
  --dark: #080909;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--dark);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
}

/* Fixed Hosier Lane background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: -2;
  background-image: url("unranked-hosier-lane-background.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  /* Avoid viewport-dependent transforms on the background. */
}

/* Light overall darkening */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: -1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.20);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Main page and continuous dark background */
.page {
  position: relative;
  isolation: isolate;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1240px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px 48px 22px;
}

.page::before {
   content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -76px;
  right: -76px;
  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.92) 8%,
    rgba(0, 0, 0, 0.92) 92%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: .95;
}

.logo > span {
  color: var(--lime);
}

.logo small {
  display: block;
  margin-top: 8px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #eee6d6;
  font-size: 13px;
}

nav a,
.login {
  transition: color .2s ease;
}

nav a:hover,
.login:hover {
  color: var(--lime);
}

.login {
  padding: 10px 23px;
  border: 1px solid var(--lime);
  border-radius: 30px;
  font-size: 13px;
}

/* Main layout */
.main-content {
  display: grid;
  flex: 1;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 70px;
  padding: 55px 0 45px;
}

.hero {
  max-width: 590px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lime);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.heart {
  color: var(--pink);
  font-size: 34px;
}

h1 {
  margin: 18px 0 5px;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(65px, 7.5vw, 105px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: .82;
}

.lime {
  color: var(--lime);
}

.pink-line {
  width: min(390px, 90%);
  height: 7px;
  margin: 22px 0 25px;
  background: var(--pink);
  border-radius: 100% 20% 70% 20%;
  transform: rotate(-1deg);
}

.hero > h2 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 700;
}

/* Fairness points */
.values {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  margin: 28px 0 25px;
}

.value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.value-icon {
  display: block;
  align-self: center;
  font-size: 34px;
  line-height: 1;
}

.value > span:last-child {
  text-align: left;
}

.pink {
  color: var(--pink);
}

.blue {
  color: var(--blue);
}

.description {
  margin: 80px 0;
  color: #e4dfd4;
  font-size: 18px;
  line-height: 1.9;
}

.description strong {
  color: var(--lime);
}

/* Main call to action */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-width: 225px;
  margin-top: 12px;
  padding: 17px 23px;
  background: var(--lime);
  color: #111407;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta span {
  font-size: 23px;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(198, 237, 24, .22);
}

.location {
  margin-top: 70px;
  font-size: 13px;
}

.location span {
  margin-right: 7px;
  color: var(--lime);
  font-size: 22px;
  vertical-align: middle;
}

/* Signup card */
.signup-card {
  justify-self: center;
  width: 100%;
  max-width: 400px;
  padding: 34px 30px 27px;
  background: rgba(8, 9, 9, .88);
  border: 1px solid rgba(255, 245, 223, .42);
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
}

.signup-card h2 {
  margin: 0;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 35px;
  font-weight: 800;
  line-height: 1.1;
}

.card-intro {
  margin: 13px 0 25px;
  color: #e1dbd0;
  font-size: 13px;
}

/* Form fields */
#signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#signup-form input,
#signup-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--cream);
  background: rgba(255, 255, 255, .035);
  border: 1px solid #66645f;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

#signup-form input::placeholder {
  color: #aaa7a1;
}

#signup-form select {
  color: #aaa7a1;
  cursor: pointer;
}

#signup-form select:valid {
  color: var(--cream);
}

#signup-form select option {
  color: #111;
  background: #fff;
}

#signup-form input:focus,
#signup-form select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(198, 237, 24, .12);
}

#signup-form button {
  min-height: 53px;
  margin-top: 3px;
  border: 0;
  border-radius: 8px;
  background: var(--lime);
  color: #111407;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}

#signup-form button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.privacy-note {
  margin: 22px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
}

.privacy-note a {
  color: var(--pink);
}

.privacy-note a:hover {
  text-decoration: underline;
}

.prototype-note {
  margin: 15px 0 0;
  color: #77756e;
  text-align: center;
  font-size: 10px;
}

.form-message {
  margin: 0;
  color: var(--lime);
  font-size: 12px;
  line-height: 1.5;
}

.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;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 245, 223, .17);
  color: #c0bcb2;
  font-size: 11px;
}

/* Medium screens */
@media (max-width: 850px) {
  .page {
    padding: 25px 28px 20px;
  }

  nav {
    gap: 16px;
  }

  .main-content {
    gap: 30px;
  }

  h1 {
    font-size: clamp(60px, 8vw, 78px);
  }

  .values {
    gap: 15px;
  }

  .signup-card {
    padding: 27px 22px;
  }
}

/* Mobile */
@media (max-width: 650px) {
  body::before {
    background-position: center center;
  }

  /* Keep the backdrop stable when mobile browser chrome collapses. */
  body::before,
  body::after {
    height: 100svh;
  }

  .page {
    width: 100%;
    padding: 18px 20px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 18px;
  }

  .logo {
    font-size: 30px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 245, 223, .15);
    font-size: 12px;
  }

  .login {
    padding: 9px 17px;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 30px;
  }

  .hero {
    max-width: none;
  }

  h1 {
    font-size: clamp(54px, 12.5vw, 72px);
  }

  .hero > h2 {
    font-size: 19px;
  }

  .description {
    margin: 32px 0 28px;
    font-size: 16px;
    line-height: 1.65;
  }

  .location {
    margin-top: 28px;
  }

  .pink-line {
    margin: 17px 0 19px;
  }

  .values {
    justify-content: space-between;
    gap: 10px;
  }

  .value {
    font-size: 10px;
  }

  .value-icon {
    font-size: 30px;
  }

  .signup-card {
    justify-self: stretch;
    max-width: 440px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Shift left-hand content right by 5mm */
.hero {
  transform: translateX(19px);
}

/* Shift Unstacked header right by 5mm */
.topbar {
  padding-left: 19px;
}

/* Remove number arrows from Age field */
#age::-webkit-inner-spin-button,
#age::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#age {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Make sure the self-describe field can appear */
#gender-other-field[hidden] {
  display: none !important;
}


/* PRIVACY POLICY PAGE */

.policy-page .policy-main {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0;
  padding: 65px 0 50px 19px;
}

.policy-heading {
  margin-bottom: 30px;
}

.policy-eyebrow {
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.policy-heading h1 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(58px, 8vw, 90px);
  margin: 15px 0;
}

.policy-heading h1 span {
  color: var(--lime);
}

.policy-heading > p:last-child {
  color: var(--muted);
  font-size: 12px;
}

.policy-content {
  padding: 20px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.policy-content p,
.policy-content li {
  color: #dedbd2;
  font-size: 14px;
  line-height: 1.85;
}

.policy-content .policy-intro {
  color: var(--cream);
  font-size: 16px;
  line-height: 1.9;
  margin-top: 0;
  margin-bottom: 38px;
}

.policy-content section {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 245, 223, .15);
}

.policy-content h2 {
  margin: 0 0 16px;
  color: var(--lime);
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 27px;
  font-weight: 800;
}

.policy-content h3 {
  margin: 22px 0 8px;
  color: var(--pink);
  font-size: 15px;
  font-weight: 800;
}

.policy-content ul {
  padding-left: 22px;
}

.policy-content li {
  padding-left: 4px;
  margin-bottom: 5px;
}

.policy-content strong {
  color: var(--cream);
}

.policy-content a {
  color: var(--pink);
  text-decoration: underline;
}

.policy-end {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 245, 223, .15);
  text-align: left;
  padding-left: 0;
}

.policy-end > span {
  color: var(--lime);
  font-size: 25px;
  font-weight: 800;
}

.policy-end p {
  color: var(--muted);
  font-size: 12px;
}

.policy-end a {
  display: inline-block;
  margin-top: 12px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 650px) {
  .policy-page .policy-main {
    padding: 45px 0 35px;
  }

  .policy-content {
    padding: 25px 20px;
  }

  .policy-content p,
  .policy-content li {
    font-size: 13px;
  }

  .policy-content .policy-intro {
    font-size: 14px;
  }

 .policy-content h2 {
  font-size: 24px;
}

} /* End mobile media query */

/* UNRANKED sharing button */
.share-section {
  margin-top: 12px;
  text-align: center;
}

#share-button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #777;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

#share-button:hover {
  border-color: #c8f000;
  color: #c8f000;
}

.share-section p {
  margin: 9px 0 0;
  color: #aaa;
  font-size: 12px;
}



/* Mobile alignment: override legacy 19px desktop offsets. */
@media (max-width: 650px) {
  .hero {
    transform: none;
  }

  .topbar {
    padding-left: 0;
  }
}

/* UNRANKED portrait refinement: compact layout and wider dark backdrop.
   The gradient remains within the page width to prevent mobile auto-zoom. */
@media (max-width: 650px) and (orientation: portrait) {
  .page::before {
    left: 0;
    right: 0;
    background: linear-gradient(to right,
      rgba(0,0,0,.92) 0%,
      rgba(0,0,0,.92) 78%,
      rgba(0,0,0,.80) 88%,
      rgba(0,0,0,.12) 100%);
  }

  .page { padding: 17px 17px 20px; }
  .topbar { padding-left: 0; }
  .logo { font-size: 25px; }
  .main-content { padding: 32px 0 25px; gap: 26px; }
  .hero { transform: none; min-width: 0; }
  .eyebrow { font-size: 12px; gap: 8px; letter-spacing: .8px; }
  .heart { font-size: 25px; }
  .hero h1 { font-size: clamp(43px, 12.3vw, 52px); letter-spacing: -1px; }
  .pink-line { width: 84%; height: 5px; margin: 15px 0 17px; }
  .hero > h2 { font-size: 15px; line-height: 1.35; }
  .description { font-size: 13px; line-height: 1.65; margin: 27px 0 0; }
  .location { font-size: 11px; margin-top: 25px; }
  .location span { font-size: 17px; }

  .signup-card { padding: 23px 19px 21px; }
  .signup-card h2 { font-size: 26px; }
  .card-intro { font-size: 12px; margin: 11px 0 20px; }
  #signup-form { gap: 12px; }
  #signup-form input, #signup-form select { min-height: 48px; font-size: 13px; }
  #signup-form button { min-height: 49px; font-size: 13px; }

  .policy-page .policy-main { width: 100%; min-width: 0; padding: 35px 0 26px; }
  .policy-heading h1 { font-size: clamp(38px, 10.5vw, 47px); overflow-wrap: anywhere; }
  .policy-content { min-width: 0; padding: 18px 0; overflow-wrap: anywhere; }
}

/* Portrait text boundary: keep prose inside the waitlist card's right edge.
   Does not change the background, page scale, headline, or card dimensions. */
@media (max-width: 650px) and (orientation: portrait) {
  .main-content, .hero, .policy-page .policy-main, .policy-content {
    min-width: 0;
  }
  .hero .description {
    max-width: calc(100% - 30px);
    overflow-wrap: break-word;
  }
  .policy-page .policy-main {
    padding-right: 30px;
  }
  .policy-content p, .policy-content li {
    overflow-wrap: break-word;
  }
}

/* Portrait waitlist card: align its right edge with the prose boundary. */
@media (max-width: 650px) and (orientation: portrait) {
  .signup-card {
    width: calc(100% - 30px);
    max-width: none;
    justify-self: start;
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
  }
}
/* Privacy Policy — move BACK TO HOME left on mobile */
@media (max-width: 650px) {
  .policy-page .topbar {
    padding-left: 0;
    padding-right: 30px;
  }
}
