/* Placeholder for tiny tweaks that sit on top of qre-styles.css.
   Keeping this file separate makes future overrides easier. */


/* KAIQROS Chat pre-chat gate */
.kaiqros-chat-panel {
  position: fixed;
}

.kaiqros-prechat {
  position: absolute;
  top: 3.6rem;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.0rem 1.2rem;
  background: radial-gradient(circle at top, rgba(11, 20, 56, 0.98), rgba(2, 4, 15, 0.98));
  z-index: 80;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
}

.kaiqros-prechat.visible {
  display: flex;
}

.kaiqros-prechat h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.kaiqros-prechat p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.kaiqros-prechat ul {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.kaiqros-prechat li + li {
  margin-top: 0.35rem;
}

.kaiqros-prechat label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

.kaiqros-prechat input[type="checkbox"] {
  margin-top: 0.1rem;
}

.kaiqros-prechat-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.kaiqros-chat-input-row.chat-disabled textarea,
.kaiqros-chat-input-row.chat-disabled button[type="submit"] {
  opacity: 0.5;
  pointer-events: none;
}


/* Subtle starfield overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.10) 0, transparent 52%),
    radial-gradient(circle at 80% 10%, rgba(135, 196, 255, 0.12) 0, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(159, 143, 255, 0.10) 0, transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(111, 229, 255, 0.14) 0, transparent 58%);
  opacity: 0.22;
}

/* Home "Built for" strip */
.section-strip {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  background: linear-gradient(
    90deg,
    rgba(10, 18, 50, 0.9),
    rgba(7, 10, 32, 0.9)
  );
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.strip-label {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 245, 255, 0.80);
}

.strip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill-tag {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 30% 0%, rgba(139, 233, 255, 0.26), rgba(6, 10, 30, 0.95));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 0 12px rgba(107, 230, 255, 0.32);
  color: var(--text-main);
}

/* Product module chips */
.module-meta {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.module-chip {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    135deg,
    rgba(11, 24, 58, 0.98),
    rgba(24, 40, 88, 0.98)
  );
  box-shadow: 0 0 10px rgba(111, 229, 255, 0.26);
  color: var(--text-muted);
}

.module-chip--guardrails {
  border-color: rgba(111, 229, 255, 0.65);
}

.module-chip--routine {
  border-color: rgba(143, 123, 255, 0.65);
}

.module-chip--education {
  border-color: rgba(255, 210, 140, 0.7);
}

.module-chip--infrastructure {
  border-color: rgba(132, 249, 255, 0.7);
}

.module-chip--roadmap {
  border-style: dashed;
  opacity: 0.85;
}


/* Pill hover polish (site-wide consistency) */
.pill-tag,
.module-chip {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.pill-tag:hover,
.module-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(140, 230, 255, 0.30);
}

.pill-tag:active,
.module-chip:active {
  transform: translateY(0px);
  filter: brightness(1.02);
}

/* Products: make the final card read as intentional on wide screens */
@media (min-width: 900px) {
  .card-grid > .card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 380px;
  }
}


/* Floating chat launcher spacing (avoid browser UI / future cookie bar) */
.kaiqros-chat-launcher {
  bottom: 2.6rem;
}


/* === Kaiqros Chat mobile hardening (v1) === */
.kaiqros-chat, .qre-chat, #kaiqros-chat, #qre-chat {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 520px) {
  .kaiqros-chat, .qre-chat, #kaiqros-chat, #qre-chat {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  iframe, .chat-iframe {
    max-width: 100% !important;
  }
}

/* === Kaiqros Chat: mobile-first responsiveness + cross-browser === */
@media (max-width: 640px) {
  .qre-chat-launcher {
    width: 56px;
    height: 56px;
    bottom: 14px;
    right: 14px;
  }
  .qre-chat-panel {
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-width: none !important;
    height: 78vh !important;
    max-height: 78vh !important;
    border-radius: 16px;
  }
  /* iOS Safari viewport quirks (dynamic toolbars) */
  @supports (height: 100dvh) {
    .qre-chat-panel { height: 78dvh !important; max-height: 78dvh !important; }
  }
  .qre-chat-messages {
    -webkit-overflow-scrolling: touch;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.35;
  }
  .qre-chat-message-user,
  .qre-chat-message-assistant { max-width: 92%; }
  .qre-chat-input {
    font-size: 16px; /* prevents iOS zoom-on-focus */
  }
}

@media (max-width: 380px) {
  .qre-chat-panel { height: 82vh !important; max-height: 82vh !important; }
}
