/* === CatchGrow AI + Human handoff visual === */

.human-handoff-layout{
  grid-template-columns:.82fr 1.18fr;
  gap:72px;
  align-items:center;
}

.human-benefits{
  display:grid;
  gap:10px;
  margin:26px 0 24px;
}

.human-benefits span{
  display:flex;
  align-items:center;
  gap:10px;
  color:#879caf;
  font-size:11px;
}

.human-benefits b{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  flex:0 0 20px;
  border-radius:7px;
  color:#65e1a3;
  background:rgba(57,217,138,.07);
  font-size:9px;
}

.handoff-visual{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(96,149,207,.15);
  border-radius:28px;
  background:
    radial-gradient(circle at 70% 20%,rgba(67,128,221,.08),transparent 35%),
    linear-gradient(145deg,rgba(13,34,52,.97),rgba(7,21,35,.98));
  box-shadow:
    inset 0 1px rgba(255,255,255,.025),
    0 30px 75px rgba(0,0,0,.22);
}

.handoff-visual:before{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  right:-90px;
  top:110px;
  border-radius:50%;
  background:rgba(58,135,226,.045);
  filter:blur(10px);
  pointer-events:none;
}

.handoff-topbar{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:17px 20px;
  border-bottom:1px solid rgba(100,149,197,.1);
  background:rgba(6,19,31,.35);
}

.handoff-topbar>div{
  display:flex;
  align-items:center;
  gap:8px;
}

.handoff-topbar strong{
  font-size:11px;
}

.handoff-topbar small{
  padding:5px 8px;
  border-radius:999px;
  color:#8ca8c0;
  background:rgba(255,255,255,.035);
  font-size:8px;
}

.handoff-live-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#57dda0;
  box-shadow:0 0 0 0 rgba(87,221,160,.38);
  animation:handoffLive 2s infinite;
}

.handoff-conversation{
  position:relative;
  z-index:2;
  display:grid;
  gap:13px;
  padding:22px 22px 15px;
}

.handoff-message{
  display:flex;
  align-items:flex-start;
  gap:10px;
  max-width:88%;
}

.handoff-message.ai{
  margin-left:auto;
  flex-direction:row-reverse;
}

.handoff-message-avatar{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#9db3c6;
  background:rgba(255,255,255,.045);
  font-size:8px;
  font-weight:900;
}

.handoff-message.ai .handoff-message-avatar{
  color:#8db6ff;
  background:rgba(76,141,255,.11);
}

.handoff-message>div{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.handoff-message.ai>div{
  align-items:flex-end;
}

.handoff-message small{
  color:#60798f;
  font-size:7px;
}

.handoff-message p{
  margin:0;
  padding:10px 12px;
  border:1px solid rgba(99,145,196,.09);
  border-radius:5px 14px 14px 14px;
  color:#9aafc0;
  background:rgba(255,255,255,.025);
  font-size:9px;
  line-height:1.55;
}

.handoff-message.ai p{
  border-color:rgba(77,142,232,.14);
  border-radius:14px 5px 14px 14px;
  background:rgba(67,125,207,.07);
}

.handoff-detection{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:11px;
  align-items:center;
  margin:2px 22px 16px;
  padding:12px 13px;
  border:1px solid rgba(57,217,138,.16);
  border-radius:14px;
  background:rgba(40,145,103,.055);
  animation:handoffDetection 4s ease-in-out infinite;
}

.handoff-detection-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#68e2a6;
  background:rgba(57,217,138,.08);
  font-size:12px;
}

.handoff-detection>div:nth-child(2){
  display:flex;
  flex-direction:column;
  gap:3px;
}

.handoff-detection span{
  color:#57d89a;
  font-size:7px;
  font-weight:900;
  letter-spacing:.09em;
}

.handoff-detection strong{
  font-size:9px;
}

.handoff-detection>b{
  color:#68e2a6;
  font-size:13px;
}

.handoff-context{
  position:relative;
  z-index:2;
  margin:0 22px 17px;
  padding:15px;
  border:1px solid rgba(98,146,198,.11);
  border-radius:16px;
  background:rgba(7,23,37,.55);
}

.handoff-context-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}

.handoff-context-head span{
  color:#718ca4;
  font-size:7px;
  font-weight:900;
  letter-spacing:.1em;
}

.handoff-context-head small{
  color:#536d83;
  font-size:7px;
}

.handoff-context-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}

.handoff-context-grid>div{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  padding:9px 10px;
  border-radius:10px;
  background:rgba(255,255,255,.025);
}

.handoff-context-grid small{
  color:#587187;
  font-size:7px;
}

.handoff-context-grid strong{
  overflow:hidden;
  color:#9bb0c1;
  font-size:8px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.handoff-transfer{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr 115px 1fr;
  align-items:center;
  gap:12px;
  margin:0 22px 17px;
  padding:15px;
  border:1px solid rgba(92,143,195,.1);
  border-radius:16px;
  background:rgba(255,255,255,.018);
}

.handoff-agent{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}

.handoff-agent.human{
  justify-content:flex-end;
  text-align:right;
}

.handoff-agent>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.handoff-agent small{
  color:#5c768d;
  font-size:6px;
  font-weight:900;
  letter-spacing:.08em;
}

.handoff-agent strong{
  color:#a1b4c4;
  font-size:9px;
}

.handoff-transfer .avatar{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:11px;
  font-size:8px;
}

.handoff-transfer-line{
  position:relative;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.handoff-transfer-line:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:linear-gradient(
    90deg,
    rgba(81,143,231,.25),
    rgba(76,173,177,.55),
    rgba(57,217,138,.25)
  );
}

.handoff-transfer-line span{
  position:absolute;
  z-index:2;
  left:0;
  top:50%;
  width:7px;
  height:7px;
  margin-top:-3px;
  border-radius:50%;
  background:#68e1a5;
  box-shadow:0 0 12px rgba(104,225,165,.8);
  animation:handoffSignal 3s ease-in-out infinite;
}

.handoff-transfer-line b{
  position:relative;
  z-index:3;
  padding:4px 6px;
  border-radius:6px;
  color:#6f9bb1;
  background:#0a2235;
  font-size:6px;
  letter-spacing:.08em;
}

.handoff-success{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 22px 22px;
  padding:11px 13px;
  border:1px solid rgba(57,217,138,.11);
  border-radius:13px;
  background:rgba(57,217,138,.035);
}

.handoff-success>span{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#68e1a5;
  background:rgba(57,217,138,.08);
  font-size:10px;
}

.handoff-success>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.handoff-success strong{
  font-size:9px;
}

.handoff-success small{
  color:#668197;
  font-size:7px;
}

@keyframes handoffLive{
  0%{
    box-shadow:0 0 0 0 rgba(87,221,160,.38);
  }
  70%{
    box-shadow:0 0 0 7px rgba(87,221,160,0);
  }
  100%{
    box-shadow:0 0 0 0 rgba(87,221,160,0);
  }
}

@keyframes handoffDetection{
  0%,100%{
    border-color:rgba(57,217,138,.12);
  }
  50%{
    border-color:rgba(57,217,138,.28);
    box-shadow:0 0 25px rgba(57,217,138,.035);
  }
}

@keyframes handoffSignal{
  0%{
    left:0;
    opacity:0;
  }
  15%{
    opacity:1;
  }
  80%{
    left:calc(100% - 7px);
    opacity:1;
  }
  100%{
    left:calc(100% - 7px);
    opacity:0;
  }
}

@media (max-width:900px){
  .human-handoff-layout{
    grid-template-columns:1fr;
    gap:45px;
  }
}

@media (max-width:520px){
  .handoff-context-grid{
    grid-template-columns:1fr;
  }

  .handoff-transfer{
    grid-template-columns:1fr;
  }

  .handoff-agent.human{
    justify-content:flex-start;
    text-align:left;
  }

  .handoff-transfer-line{
    width:1px;
    height:45px;
    margin:auto;
  }

  .handoff-transfer-line:before{
    left:0;
    right:auto;
    top:0;
    bottom:0;
    width:1px;
    height:auto;
  }

  .handoff-transfer-line span{
    left:50%;
    top:0;
    margin-left:-3px;
    animation:none;
  }
}

@media (prefers-reduced-motion:reduce){
  .handoff-live-dot,
  .handoff-detection,
  .handoff-transfer-line span{
    animation:none !important;
  }
}

/* === Handoff readability pass === */

.handoff-topbar{
  padding:18px 22px;
}

.handoff-topbar strong{
  font-size:13px;
}

.handoff-topbar small{
  font-size:10px;
  padding:6px 10px;
}

.handoff-conversation{
  gap:16px;
  padding:24px 22px 18px;
}

.handoff-message{
  gap:12px;
}

.handoff-message-avatar{
  width:36px;
  height:36px;
  flex-basis:36px;
  font-size:10px;
}

.handoff-message small{
  font-size:9px;
}

.handoff-message p{
  padding:12px 14px;
  font-size:11px;
  line-height:1.55;
}

.handoff-detection{
  padding:14px 15px;
}

.handoff-detection-icon{
  width:36px;
  height:36px;
  font-size:14px;
}

.handoff-detection span{
  font-size:9px;
}

.handoff-detection strong{
  font-size:11px;
}

.handoff-detection>b{
  font-size:16px;
}

.handoff-context{
  padding:17px;
}

.handoff-context-head span{
  font-size:9px;
}

.handoff-context-head small{
  font-size:9px;
}

.handoff-context-grid{
  gap:10px;
}

.handoff-context-grid>div{
  padding:11px 12px;
}

.handoff-context-grid small{
  font-size:9px;
}

.handoff-context-grid strong{
  font-size:10px;
}

.handoff-transfer{
  padding:17px;
}

.handoff-agent small{
  font-size:8px;
}

.handoff-agent strong{
  font-size:11px;
}

.handoff-transfer .avatar{
  width:38px;
  height:38px;
  flex-basis:38px;
  font-size:10px;
}

.handoff-transfer-line b{
  font-size:8px;
  padding:5px 8px;
}

.handoff-success{
  padding:13px 15px;
}

.handoff-success>span{
  width:32px;
  height:32px;
  flex-basis:32px;
  font-size:12px;
}

.handoff-success strong{
  font-size:11px;
}

.handoff-success small{
  font-size:9px;
}

.human-benefits span{
  font-size:13px;
  line-height:1.45;
}


/* === Handoff readability pass v2 === */

.handoff-topbar strong{
  font-size:14px;
}

.handoff-topbar small{
  font-size:11px;
}

.handoff-message small{
  font-size:10px;
}

.handoff-message p{
  font-size:12.5px;
  line-height:1.6;
}

.handoff-detection span{
  font-size:10px;
}

.handoff-detection strong{
  font-size:12.5px;
}

.handoff-detection>b{
  font-size:17px;
}

.handoff-context-head span{
  font-size:10px;
}

.handoff-context-head small{
  font-size:10px;
}

.handoff-context-grid small{
  font-size:10px;
}

.handoff-context-grid strong{
  font-size:11.5px;
}

.handoff-agent small{
  font-size:9px;
}

.handoff-agent strong{
  font-size:12px;
}

.handoff-transfer-line b{
  font-size:9px;
}

.handoff-success strong{
  font-size:12px;
}

.handoff-success small{
  font-size:10px;
}

.human-benefits span{
  font-size:14px;
}

