/* Subtle GEOINT pull-down. Lives above the channel; never owns the frame. */

.acq-pull {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: min(96%, 44rem);
  pointer-events: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.acq-pull__tab,
.acq-pull__drawer {
  pointer-events: auto;
}

.acq-pull__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0 auto;
  padding: 0.28rem 0.6rem 0.38rem;
  background: linear-gradient(to bottom, rgba(4, 12, 10, 0.55), rgba(4, 12, 10, 0.12));
  border: 0;
  color: rgba(168, 230, 184, 0.72);
  cursor: pointer;
}

.acq-pull__grip {
  width: 2.4rem;
  height: 2px;
  background: rgba(143, 212, 168, 0.45);
  box-shadow: 0 3px 0 rgba(143, 212, 168, 0.18);
}

.acq-pull__tab-code {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}

.acq-pull__drawer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.15rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0.6rem;
  background: rgba(4, 12, 10, 0.72);
  border-bottom: 1px solid rgba(143, 212, 168, 0.12);
  transform: translateY(-6px);
  transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.22s ease;
}

.acq-pull:hover .acq-pull__drawer,
.acq-pull.is-open .acq-pull__drawer,
.acq-pull:focus-within .acq-pull__drawer {
  max-height: 7.5rem;
  opacity: 1;
  transform: translateY(0);
  padding: 0.35rem 0.6rem 0.55rem;
}

.acq-pull__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  padding: 0.28rem 0.5rem;
  color: rgba(234, 255, 242, 0.62);
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  min-height: 32px;
}
.acq-pull__link span {
  color: var(--hud-mint, #8fd4a8);
  letter-spacing: 0.16em;
  font-size: 0.56rem;
}
.acq-pull__link:hover,
.acq-pull__link:focus-visible {
  color: #e8fff2;
  border-color: rgba(143, 212, 168, 0.28);
  background: rgba(143, 212, 168, 0.08);
}
.acq-pull__link.is-here {
  color: #e8fff2;
  border-color: rgba(143, 212, 168, 0.35);
}

@media (max-width: 720px) {
  .acq-pull {
    width: 100%;
  }
  .acq-pull__link {
    font-size: 0.58rem;
    padding: 0.32rem 0.42rem;
  }
  .acq-pull.is-open .acq-pull__drawer {
    max-height: 11rem;
  }
}

/* Pull-nav is the chrome. Book CTAs live in-page. */
body:has(#acq-pull) .comm-top {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .acq-pull__drawer {
    transition: none;
  }
}

.home.is-intro-boot ~ .acq-funnel {
  opacity: 0;
  pointer-events: none;
}

/* Consult tab — same HUD compose as #geo-chat / "ask the site". */
.acq-funnel {
  --kb: 0px;
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: calc(max(2.6rem, env(safe-area-inset-bottom, 0px) + 2.2rem) + var(--kb));
  z-index: 80;
  width: min(22rem, 36vw);
  max-width: calc(100vw - 2.4rem);
  pointer-events: auto;
  color: #eafff2;
}

.acq-funnel__compose {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  column-gap: 0.55rem;
  align-items: start;
  width: max-content;
  max-width: min(21rem, 100%);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.home.is-nav ~ .acq-funnel .acq-funnel__compose,
#app:has(.home.is-nav) .acq-funnel .acq-funnel__compose,
#app[data-hub] .acq-funnel .acq-funnel__compose {
  padding: 0.55rem 0.7rem 0.62rem;
  background: rgba(5, 14, 11, 0.42);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  box-shadow: 0 0 0 1px rgba(143, 212, 168, 0.12);
}

.acq-funnel__code {
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fd4a8;
  padding-top: 0.2em;
  text-shadow:
    0 0 14px rgba(143, 212, 168, 0.5),
    0 1px 8px rgba(0, 0, 0, 1);
  user-select: none;
}

.acq-funnel__field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 12rem;
  max-width: 17rem;
}

.acq-funnel__name,
.acq-funnel__action {
  font-family: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(0.84rem, 1.6vw, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e8fff2;
  text-shadow:
    0 0 16px rgba(143, 212, 168, 0.45),
    0 1px 2px #000,
    0 2px 12px rgba(0, 0, 0, 0.95);
  line-height: 1.28;
}

.acq-funnel__name {
  display: block;
  width: max-content;
}

.acq-funnel__type {
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
  width: 100%;
}

.acq-funnel__action {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0 0.14rem;
  border-bottom: 1px solid rgba(143, 212, 168, 0.55);
}

.acq-funnel__compose:hover .acq-funnel__action,
.acq-funnel__compose:focus-visible .acq-funnel__action {
  border-bottom-color: #8fd4a8;
  color: #f4fff9;
}

.acq-funnel__caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #8fd4a8;
  box-shadow: 0 0 10px rgba(143, 212, 168, 0.75);
  animation: geo-chat-blink 0.7s steps(1, end) infinite;
}

.acq-funnel__compose:hover .acq-funnel__caret,
.acq-funnel__compose:focus-visible .acq-funnel__caret {
  animation-duration: 0.4s;
}

@keyframes geo-chat-blink {
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  .acq-funnel {
    width: min(22rem, 58vw);
  }
}

@media (max-width: 720px) {
  .acq-funnel {
    left: max(0.85rem, env(safe-area-inset-left, 0px));
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    bottom: calc(max(2.6rem, env(safe-area-inset-bottom, 0px) + 2.2rem) + 5.8rem);
  }
  .acq-funnel__field {
    min-width: 0;
    max-width: none;
  }
  .acq-funnel__name,
  .acq-funnel__action {
    font-size: clamp(0.72rem, 3.4vw, 0.88rem);
  }
}

#app[data-hub="tours"] .acq-funnel {
  max-width: 22rem;
}

body:has(.tours-live:not([hidden])) .acq-funnel {
  display: none;
}

#app[data-phase="content"] .acq-funnel,
#app[data-hub="about-ceo"] .acq-funnel {
  display: none;
}
