/* Lead Magnet Bar: scoped under .lmb- to avoid host page collisions.
   Vanilla CSS, no dependencies. */

/* Reserve bottom space on the document while the bar is mounted so it does
   not cover the footer or any other bottom content. The JS sets --lmb-bar-h
   on <html> from the measured bar height. */
html.lmb-bar-active body { padding-bottom: var(--lmb-bar-h, 56px); }

.lmb-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: #0a0a0a;
  color: #ffffff;
  border-top: 1px solid rgba(200, 241, 53, 0.35);
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.lmb-bar.lmb-bar--visible { transform: translateY(0); }

.lmb-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 56px; /* leaves room for absolute eyebrow (left) and close (right) */
}

.lmb-bar__eyebrow {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #c8f135;
  white-space: nowrap;
  pointer-events: none;
}

.lmb-bar__rotor {
  flex: 1 1 auto;
  position: relative;
  /* Tall enough to fully contain the line box plus a few px buffer for
     glyph ascenders/descenders so text never clips against the rotor edge. */
  min-height: 28px;
  min-width: 0;
  max-width: 100%;
  /* No overflow: hidden. Inactive items are invisible via opacity:0 anyway,
     and clipping was eating the top of the active text. */
}

.lmb-bar__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #ffffff;
  font: inherit;
  line-height: 1.4;
  text-align: center;
  letter-spacing: inherit;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none; /* inactive items must not eat clicks meant for the active one */
}
.lmb-bar__item > * { flex: 0 0 auto; }
.lmb-bar__item.lmb-bar__item--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lmb-bar__item:hover,
.lmb-bar__item:focus-visible {
  color: #c8f135;
  outline: none;
}
.lmb-bar__item-arrow {
  margin-left: 8px;
  color: #c8f135;
  flex: 0 0 auto;
}

.lmb-bar__close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lmb-bar__close:hover,
.lmb-bar__close:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

/* Modal */
.lmb-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.lmb-modal.lmb-modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.lmb-modal__panel {
  width: 100%;
  max-width: 480px;
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(200, 241, 53, 0.25);
  border-radius: 10px;
  padding: 24px 24px 20px;
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lmb-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lmb-modal__close:hover,
.lmb-modal__close:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.lmb-modal__eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8f135;
  margin: 0 0 6px;
}
.lmb-modal__title {
  font-family: 'Syne', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  padding-right: 32px;
}
.lmb-modal__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 16px;
}

.lmb-modal__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lmb-modal__input {
  width: 100%;
  padding: 12px 14px;
  background: #0a0a0a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.lmb-modal__input:focus {
  outline: none;
  border-color: #c8f135;
  box-shadow: 0 0 0 3px rgba(200, 241, 53, 0.18);
}
.lmb-modal__input[aria-invalid="true"] {
  border-color: #e03535;
  box-shadow: 0 0 0 3px rgba(224, 53, 53, 0.18);
}

.lmb-modal__error {
  font-size: 12px;
  color: #e03535;
  min-height: 16px;
}

.lmb-modal__submit {
  margin-top: 4px;
  padding: 12px 16px;
  background: #c8f135;
  color: #0a0a0a;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.lmb-modal__submit:hover { filter: brightness(1.1); }
.lmb-modal__submit:active { transform: translateY(1px); }
.lmb-modal__submit[disabled] {
  filter: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.lmb-modal__legal {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  margin: 12px 0 0;
}

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

/* Responsive */
@media (max-width: 600px) {
  .lmb-bar { font-size: 12px; }
  .lmb-bar__inner { padding: 8px 44px; }
  .lmb-bar__eyebrow { display: none; }
  .lmb-bar__item-arrow { display: none; }
  .lmb-bar__rotor { min-height: 26px; }
  .lmb-bar__close { width: 28px; height: 28px; right: 10px; }

  .lmb-modal { padding: 0; align-items: flex-end; }
  .lmb-modal__panel {
    max-width: none;
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
    padding: 20px 18px 24px;
  }
}
