/* Launch Intelligence — first-time environment notice (scoped to #page-ai-insights) */

#page-ai-insights .li-launch-notice {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

#page-ai-insights .li-launch-notice[hidden] {
  display: none !important;
}

body.li-launch-notice-open {
  overflow: hidden;
}

#page-ai-insights .li-launch-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 9, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (prefers-reduced-motion: reduce) {
  #page-ai-insights .li-launch-notice-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

#page-ai-insights .li-launch-notice-dialog {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  margin: 0;
  padding: 28px 28px 24px;
  box-sizing: border-box;
  background: linear-gradient(
    165deg,
    rgba(11, 23, 26, 0.96),
    rgba(7, 17, 20, 0.98)
  );
  border: 1px solid rgba(15, 168, 157, 0.28);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(15, 168, 157, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(15, 168, 157, 0.06);
}

@media (prefers-reduced-motion: no-preference) {
  #page-ai-insights .li-launch-notice:not([hidden]) .li-launch-notice-backdrop {
    animation: li-launch-notice-backdrop-in 0.22s ease-out;
  }

  #page-ai-insights .li-launch-notice:not([hidden]) .li-launch-notice-dialog {
    animation: li-launch-notice-dialog-in 0.28s ease-out;
  }
}

@keyframes li-launch-notice-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes li-launch-notice-dialog-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#page-ai-insights .li-launch-notice-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 168, 157, 0.2);
  border-radius: 8px;
  background: rgba(16, 32, 37, 0.6);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

#page-ai-insights .li-launch-notice-close:hover {
  border-color: rgba(25, 191, 178, 0.45);
  color: var(--accent-teal-hover);
  background: rgba(16, 32, 37, 0.85);
}

#page-ai-insights .li-launch-notice-close:focus-visible {
  outline: 2px solid var(--accent-teal-hover);
  outline-offset: 2px;
}

#page-ai-insights .li-launch-notice-title {
  margin: 0 40px 6px 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

#page-ai-insights .li-launch-notice-subtitle {
  margin: 0 0 16px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent-teal-hover);
}

#page-ai-insights .li-launch-notice-lead {
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

#page-ai-insights .li-launch-notice-list {
  margin: 0 0 16px 0;
  padding: 0 0 0 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

#page-ai-insights .li-launch-notice-list li {
  margin-bottom: 8px;
}

#page-ai-insights .li-launch-notice-list li:last-child {
  margin-bottom: 0;
}

#page-ai-insights .li-launch-notice-footer {
  margin: 0 0 20px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 168, 157, 0.14);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-faint);
}

#page-ai-insights .li-launch-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#page-ai-insights .li-launch-notice-actions .btn {
  min-width: 0;
}

@media (max-width: 480px) {
  #page-ai-insights .li-launch-notice-dialog {
    padding: 24px 20px 20px;
  }

  #page-ai-insights .li-launch-notice-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #page-ai-insights .li-launch-notice-actions .btn {
    width: 100%;
  }
}
