/* Proactive Intelligence comparison demo — under press logos marquee. */
#lai-proactive {
  --ink: #171720;
  --muted: #676573;
  --line: #d5d8e2;
  --accent: #7853e5;
  --accent2: #9a7cff;
  --gray-bg: #e6e8ef;
  --gray-border: #d2d6e2;
  --violet-bg: #e8dcff;
  --violet-border: #cbb6fa;
  --ease: cubic-bezier(.2, .75, .2, 1);
  padding: 64px 22px 76px;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

#lai-proactive *,
#lai-proactive *::before,
#lai-proactive *::after {
  box-sizing: border-box;
}

#lai-proactive .lai-pi-wrap {
  width: min(1160px, 100%);
  margin: auto;
}

#lai-proactive .lai-pi-intro {
  text-align: center;
  margin: 0 auto 26px;
}

#lai-proactive .lai-pi-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 760;
  color: var(--ink);
}

#lai-proactive .lai-pi-intro h2 span {
  display: block;
  color: var(--accent);
}

#lai-proactive .lai-pi-intro p {
  margin: 14px auto 0;
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
}

#lai-proactive .lai-pi-phase {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  min-height: 34px;
}

#lai-proactive .lai-pi-phase-stage {
  position: relative;
  height: 32px;
  min-width: 280px;
}

#lai-proactive .lai-pi-phase-step {
  position: absolute;
  inset: 0 auto auto 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}

#lai-proactive .lai-pi-phase-step.active {
  opacity: 1;
  transform: translateY(0);
}

#lai-proactive .lai-pi-phase-num {
  color: var(--accent);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: .04em;
}

#lai-proactive .lai-pi-phase-title {
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.035em;
  color: var(--ink);
  white-space: nowrap;
}

#lai-proactive .lai-pi-phase::after {
  content: "";
  height: 1px;
  background: #e6e3ee;
  flex: 1;
}

#lai-proactive .lai-pi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

#lai-proactive .lai-pi-panel {
  height: 585px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 34px rgba(28, 22, 45, .055);
}

#lai-proactive .lai-pi-panel.general {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
}

#lai-proactive .lai-pi-panel.lawyer {
  background: var(--violet-bg);
  border: 1px solid var(--violet-border);
}

#lai-proactive .lai-pi-head {
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(80, 72, 98, .12);
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(8px);
}

#lai-proactive .lai-pi-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 760;
}

#lai-proactive .lai-pi-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid #d5d7e0;
  background: #fff;
  color: #2f3037;
}

#lai-proactive .lawyer .lai-pi-icon {
  color: var(--accent);
  border-color: #cab7f7;
  background: #f3eeff;
}

#lai-proactive .lai-pi-icon svg {
  width: 18px;
  height: 18px;
}

#lai-proactive .lai-pi-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

#lai-proactive .lai-pi-msg-text b {
  font-weight: 750;
  color: inherit;
}

#lai-proactive .lai-pi-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 12px;
  scrollbar-width: none;
}

#lai-proactive .lai-pi-thread::-webkit-scrollbar {
  display: none;
}

#lai-proactive .lai-pi-inner {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 100%;
}

#lai-proactive .lai-pi-msg,
#lai-proactive .lai-pi-thinking,
#lai-proactive .lai-pi-recommend,
#lai-proactive .lai-pi-drafttools,
#lai-proactive .lai-pi-draftbox {
  animation: lai-pi-fadeUp .26s var(--ease) both;
}

#lai-proactive .lai-pi-msg {
  max-width: 90%;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid rgba(104, 97, 117, .14);
  background: #fff;
  font-size: 13px;
  line-height: 1.46;
  color: #26242c;
  box-shadow: 0 2px 6px rgba(20, 16, 35, .03);
}

#lai-proactive .lai-pi-msg.user {
  align-self: flex-end;
  background: #f4f5f8;
  border-color: #cfd3df;
  border-bottom-right-radius: 5px;
}

#lai-proactive .lawyer .lai-pi-msg.user {
  background: #f4efff;
  border-color: #cdbaf8;
}

#lai-proactive .lai-pi-msg.ai {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

#lai-proactive .lai-pi-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 7px;
  margin-bottom: 7px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid rgba(104, 97, 117, .18);
  box-shadow: 0 1px 3px rgba(20, 16, 35, .04);
  max-width: 100%;
}

#lai-proactive .lawyer .lai-pi-pdf {
  border-color: #d6c6fa;
}

#lai-proactive .lai-pi-pdf-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  display: grid;
  place-items: center;
}

#lai-proactive .lai-pi-pdf-icon svg {
  width: 14px;
  height: 14px;
}

#lai-proactive .lai-pi-pdf-name {
  font-size: 11.8px;
  font-weight: 600;
  color: #23202a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#lai-proactive .lai-pi-msg-text {
  display: block;
}

#lai-proactive .lai-pi-thinking {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 6px 4px;
}

#lai-proactive .lai-pi-thinking-text {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(
    90deg,
    #52505e 0%,
    #52505e 34%,
    #ffffff 50%,
    #52505e 66%,
    #52505e 100%
  );
  background-size: 240% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lai-pi-sheenLTR 1.15s linear infinite;
}

#lai-proactive .lawyer .lai-pi-thinking-text {
  background: linear-gradient(
    90deg,
    #543d8a 0%,
    #543d8a 34%,
    #ffffff 50%,
    #543d8a 66%,
    #543d8a 100%
  );
  background-size: 240% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#lai-proactive .lai-pi-recommend {
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid #cbb6f8;
  background: #fff;
  box-shadow: 0 2px 8px rgba(84, 52, 170, .05);
}

#lai-proactive .lai-pi-recommend b {
  display: block;
  font-size: 12.5px;
  margin-bottom: 4px;
  color: #1f1b2c;
}

#lai-proactive .lai-pi-recommend p {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.45;
  color: #554e63;
}

#lai-proactive .lai-pi-drafttools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

#lai-proactive .lai-pi-chip {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid #cbb6f8;
  background: #fff;
  font-size: 11.5px;
  font-weight: 650;
  color: #494158;
  box-shadow: 0 2px 5px rgba(84, 52, 170, .05);
  transition:
    background .2s var(--ease),
    color .2s var(--ease),
    border-color .2s var(--ease),
    transform .14s var(--ease),
    box-shadow .2s var(--ease);
}

#lai-proactive .lai-pi-chip.pressing {
  transform: scale(0.93);
}

#lai-proactive .lai-pi-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(120, 83, 229, .28);
}

#lai-proactive .lai-pi-draftbox {
  background: #fff;
  border: 1px solid #cbb6f8;
  border-radius: 13px;
  padding: 11px 13px;
  box-shadow: 0 4px 12px rgba(84, 52, 170, .06);
}

#lai-proactive .lai-pi-drafttop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid #eee8fa;
  font-size: 11.5px;
  font-weight: 760;
  color: #2b2538;
}

#lai-proactive .lai-pi-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6d48ce;
  font-size: 11.5px;
  font-weight: 720;
}

#lai-proactive .lai-pi-copy svg {
  width: 13.5px;
  height: 13.5px;
}

#lai-proactive .lai-pi-draftbox p {
  margin: 0;
  font-size: 12px;
  line-height: 1.46;
  color: #464050;
}

#lai-proactive .lai-pi-draftbox p + p {
  margin-top: 5px;
}

#lai-proactive .lai-pi-composer {
  height: 64px;
  flex: 0 0 64px;
  padding: 9px 12px 10px;
  background: rgba(255, 255, 255, .74);
  border-top: 1px solid rgba(80, 72, 98, .12);
}

#lai-proactive .lai-pi-composer-shell {
  height: 44px;
  border: 1px solid #d5d3de;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 7px 0 13px;
}

#lai-proactive .lai-pi-composer-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.4px;
  color: #9e9aa7;
}

#lai-proactive .lai-pi-composer.typing .lai-pi-composer-text {
  color: #2f2938;
}

#lai-proactive .lai-pi-composer.typing .lai-pi-composer-text::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: lai-pi-blink .55s steps(1) infinite;
}

#lai-proactive .lai-pi-send {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  border: 0;
  background: #ebe9f2;
  color: #9c97a6;
  display: grid;
  place-items: center;
  transition: background .18s ease, color .18s ease, transform .15s ease;
  padding: 0;
  cursor: default;
}

#lai-proactive .typing .lai-pi-send,
#lai-proactive .sending .lai-pi-send {
  background: var(--accent);
  color: #fff;
}

#lai-proactive .sending .lai-pi-send {
  transform: scale(0.92);
}

#lai-proactive .lai-pi-send svg {
  width: 15px;
  height: 15px;
}

#lai-proactive .lai-pi-closing {
  margin: 26px auto 0;
  text-align: center;
  max-width: 830px;
}

#lai-proactive .lai-pi-closing strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.02em;
  margin-bottom: 7px;
  color: var(--ink);
}

#lai-proactive .lai-pi-closing p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

#lai-proactive .lai-pi-desktop-break {
  display: block;
}

@keyframes lai-pi-fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lai-pi-sheenLTR {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes lai-pi-blink {
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  #lai-proactive .lai-pi-intro p {
    white-space: normal;
  }
  #lai-proactive .lai-pi-grid {
    grid-template-columns: 1fr;
  }
  #lai-proactive .lai-pi-panel {
    height: 550px;
  }
  #lai-proactive .lai-pi-desktop-break {
    display: none;
  }
}

@media (max-width: 560px) {
  #lai-proactive {
    padding: 48px 14px 60px;
  }
  #lai-proactive .lai-pi-panel {
    height: 535px;
  }
  #lai-proactive .lai-pi-phase-num {
    font-size: 18px;
  }
  #lai-proactive .lai-pi-phase-title {
    font-size: 18px;
  }
  #lai-proactive .lai-pi-msg {
    font-size: 12.5px;
  }
  #lai-proactive .lai-pi-intro p {
    font-size: 14px;
  }
}
