/* FanBase acquisition funnel
   Palette and type taken from fanbaseco.ai. */

:root {
  --navy: #001a26;
  --navy-2: #08303f;
  --navy-3: #0f3d4d;
  --green: #81b640;
  --green-2: #96cb5a;
  --teal: #0099a5;
  --paper: #f2f2f2;
  --white: #ffffff;
  --ink: #233238;
  --ink-soft: #5b6b70;
  --muted: #9fb2b8;
  --line: rgba(255, 255, 255, 0.11);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 22px 0 44px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 720px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(150, 203, 90, 0.16), transparent 72%) 18% 30% / 620px 620px no-repeat,
    radial-gradient(closest-side, rgba(0, 153, 165, 0.2), transparent 72%) 82% 12% / 560px 560px no-repeat;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  /* auto margins centre the block when there is spare height and collapse
     instead of clipping when there is not. */
  margin: auto;
  padding: 0 20px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-2);
}

.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.eyebrow__rule {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green));
}

.headline {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4.1vw, 2.85rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  text-wrap: balance;
}

.headline__line {
  display: block;
}

.headline__mark {
  font-style: normal;
  color: var(--green-2);
}

.nb {
  white-space: nowrap;
}

.subheadline {
  margin: 12px auto 0;
  max-width: 48ch;
  font-size: clamp(0.98rem, 1.7vw, 1.18rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}

/* ---------- Survey card ---------- */

.card {
  position: relative;
  margin: 24px auto 0;
  max-width: 620px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.022)),
    var(--navy-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 90px -46px rgba(0, 0, 0, 0.95);
  text-align: left;
}

.card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card__top[hidden],
#qualify-form[hidden] {
  display: none;
}

.counter {
  margin: 0;
  flex: none;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  font-variant-numeric: tabular-nums;
}

.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  flex: 1;
}

.rail__seg {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.35s var(--ease);
}

.rail__seg.is-on {
  background: linear-gradient(90deg, var(--green), var(--green-2));
}

/* ---------- Steps ---------- */

.step {
  display: none;
}

.step.is-active {
  display: block;
  animation: step-in 0.3s var(--ease) both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.question {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(1.06rem, 2.2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: pretty;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.options--pair .option {
  min-height: 56px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.032);
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.option:hover {
  border-color: rgba(150, 203, 90, 0.5);
  background: rgba(150, 203, 90, 0.07);
}

.option:has(input:checked) {
  border-color: rgba(150, 203, 90, 0.85);
  background: rgba(150, 203, 90, 0.14);
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--green-2);
  outline-offset: 2px;
}

.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.option__key {
  flex: none;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.63rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.option:has(input:checked) .option__key {
  background: var(--green);
  border-color: var(--green);
  color: var(--navy);
}

.option__text {
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Contact step ---------- */

.inputs {
  display: grid;
  gap: 12px;
}

.inputs__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.control {
  display: block;
}

.control__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.control__input,
.phone__code {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--white);
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.control__input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.control__input:focus,
.phone__code:focus {
  outline: none;
  border-color: var(--green-2);
  background: rgba(150, 203, 90, 0.07);
  box-shadow: 0 0 0 3px rgba(150, 203, 90, 0.15);
}

.control__input[aria-invalid="true"] {
  border-color: #e2705a;
  background: rgba(226, 112, 90, 0.08);
}

.phone {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 8px;
}

.phone__code {
  appearance: none;
  padding-right: 8px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 21px,
    calc(100% - 9px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  font-size: 0.8rem;
}

.phone__code option {
  color: var(--ink);
  background: var(--white);
}

/* ---------- Navigation ---------- */

.nav {
  margin-top: 16px;
}

.back {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-right: 2px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.back:hover {
  color: var(--white);
}

/* Kept in the flow so the counter does not jump between steps. */
.back[hidden] {
  display: inline-flex;
  visibility: hidden;
}

.submit {
  flex: 1;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  font-family: "Baloo 2", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 18px 40px -22px rgba(129, 182, 64, 0.9);
  transition:
    background 0.18s var(--ease),
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.submit:hover {
  background: var(--green-2);
  transform: translateY(-1px);
}

.submit:disabled {
  opacity: 0.62;
  cursor: default;
  transform: none;
}

.submit[hidden] {
  display: none;
}

.form-error {
  margin: 10px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #f0a08e;
}

.form-error[hidden] {
  display: none;
}

/* ---------- Disqualified ---------- */

.standdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0 2px;
  animation: step-in 0.3s var(--ease) both;
}

.standdown[hidden] {
  display: none;
}

.standdown__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.standdown__title {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
}

.standdown__text {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}

.standdown__restart {
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Supporting lines ---------- */

.under-form[hidden] {
  display: none;
}

.under-form {
  margin: 14px 0 0;
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.positioning {
  margin: 26px auto 0;
  max-width: 54ch;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.6);
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.footer {
  flex: none;
  background: var(--paper);
  color: var(--ink-soft);
  padding: 30px 0 28px;
}

.footer__inner {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__logo {
  width: 148px;
  height: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
}

.footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer__links a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__dot {
  color: rgba(35, 50, 56, 0.3);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .headline__line {
    display: inline;
  }

  .headline__line + .headline__line::before {
    content: " ";
  }

  .headline {
    font-size: clamp(1.62rem, 7.4vw, 2.1rem);
  }

  .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .eyebrow__rule,
  .eyebrow::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 14px;
  }

  .shell {
    padding: 0 16px;
  }

  .card {
    padding: 18px 16px 20px;
    border-radius: 15px;
  }

  .options {
    grid-template-columns: minmax(0, 1fr);
  }

  .inputs__pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .card__top {
    gap: 12px;
  }

  .footer__logo {
    width: 124px;
  }

  .footer__dot {
    display: none;
  }

  .footer__links {
    gap: 6px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
