/* Sign-up flow (enter-number.html, enter-code.html, waitlist.html). Builds on loot-brand.css and blackbeard.css. */

.bb-signup { padding: 3rem 0 4rem; background: #FFFFFF; }
.bb-signup .bb-hero-inner { align-items: stretch; }

/* Header: logo left, back link right */
.bb-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
  padding-bottom: .25rem;
  border-bottom: .125rem solid var(--color-lt-green);
}
.bb-back:hover { color: var(--color-lt-black); }
@media (max-width: 639px) { .bb-back { font-size: 1.2rem; } }

/* Form card */
.bb-form {
  flex: 1 1 560px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem;
  border: 1px solid var(--color-lt-stroke);
  border-radius: 1rem;
  box-sizing: border-box;
}
@media (max-width: 639px) { .bb-form { padding: 2.5rem 2rem; } }
.bb-form h1 { text-wrap: balance; }
.bb-form p { text-wrap: pretty; }

/* Step bars */
.bb-steps-bar { display: flex; gap: .5rem; }
.bb-steps-bar span {
  flex: 1;
  height: 6px;
  border-radius: 9999px;
  background: var(--color-lt-stroke);
}
.bb-steps-bar span.is-on { background: var(--color-lt-green); }

/* Phone number field */
.bb-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0 1.5rem;
  border: 1px solid var(--color-lt-stroke);
  border-radius: 9999px;
  background: #FFFFFF;
  transition: box-shadow .2s ease-in-out, border-color .2s ease-in-out;
}
.bb-field:focus-within { border-color: var(--color-lt-black); box-shadow: 0 0 0 4px var(--loot-green-tint); }
.bb-field-cc {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-right: 1rem;
  border-right: 1px solid var(--color-lt-stroke);
  font-weight: 500;
  white-space: nowrap;
}
.bb-field input {
  flex: 1;
  min-width: 0;
  min-height: 62px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.25rem;
  color: var(--color-lt-black);
}
@media (max-width: 639px) { .bb-field input { font-size: 1.6rem; } }
.bb-field input::placeholder { color: var(--color-lt-dark-grey); }

.bb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Full-width primary button */
.bb-form .button { width: 100%; box-sizing: border-box; }
.bb-fine { color: var(--color-lt-dark-grey); }
.bb-fine a { text-decoration: underline; text-underline-offset: 2px; color: var(--color-lt-dark-grey); }
.bb-fine a:hover { color: var(--color-lt-black); }
.bb-link { border-bottom: .125rem solid var(--color-lt-green); padding-bottom: 1px; }
.bb-link:hover { color: var(--color-lt-black); }

/* 6-digit code */
.bb-code {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .625rem;
}
.bb-code-box {
  aspect-ratio: 5 / 6;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-lt-stroke);
  border-radius: .75rem;
  background: #FFFFFF;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--color-lt-black);
}
.bb-code-box.is-filled { background: var(--loot-green-tint); border-color: var(--loot-green-tint); }
.bb-code-box.is-current { border-color: var(--color-lt-black); box-shadow: 0 0 0 4px var(--loot-green-tint); }
.bb-caret {
  display: inline-block;
  width: 2px;
  height: 45%;
  background: var(--color-lt-black);
  animation: bbCaret 1s step-end infinite;
}
@keyframes bbCaret { 50% { opacity: 0; } }

/* Done state */
.bb-done-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-lt-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-save {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1rem;
  border-radius: 1rem;
  background: var(--color-lt-grey);
}
.bb-save img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bb-save-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bb-save-title { font-weight: 500; }
.bb-save .button { width: auto; padding: .625rem 1.25rem; }
.bb-next { display: flex; flex-direction: column; gap: .875rem; }
.bb-next-item { display: flex; align-items: flex-start; gap: .875rem; }
.bb-next-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--loot-green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
}

/* Visual panel: gradient on the last step */
.bb-hero-visual_done { background-image: var(--lt-gradient); }
.bb-signup .bb-hero-visual { flex: 1 1 480px; max-width: 600px; }

/* <button> elements styled as .button need the UA border and font reset */
button.button { border: 0; font-family: inherit; }
