/* Chat-to-CRM pitch sequence. Independent AskNode UI, not an Oracle product screenshot. */
.handoff-section{padding:78px 0 86px;background:#fff;border-top:1px solid #e9edf0;scroll-margin-top:24px}
.handoff-section .handoff-heading{max-width:980px;margin-bottom:28px}
.handoff-heading h2{font-size:clamp(31px,3.7vw,46px);letter-spacing:-.04em;line-height:1.15;margin:12px 0 13px}
.handoff-heading h2 strong{color:var(--red-dark)}
.handoff-heading p{font-size:16px;line-height:1.65;color:#63707b;margin:0;max-width:800px}
.handoff-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:22px 0 3px}
.handoff-benefits>div{display:flex;flex-direction:column;gap:5px;padding:14px 17px;background:#f2f7f8;border:1px solid #d8e8e9;border-left:3px solid #007a87;border-radius:7px}
.handoff-benefits strong{color:#211545;font-size:14px;font-weight:800}
.handoff-benefits span{color:#4b636e;font-size:13px;line-height:1.55}
@media(max-width:650px){.handoff-benefits{grid-template-columns:1fr;gap:9px}.handoff-benefits>div{padding:12px 14px}}

.handoff-stage{display:grid;grid-template-columns:minmax(230px,.84fr) minmax(160px,.47fr) minmax(390px,1.43fr);gap:16px;align-items:stretch}
.handoff-chat,.handoff-transport,.crm-demo-window{min-width:0;min-height:405px}
.handoff-chat{background:#fbfcfd;border:1px solid #dce2e8;border-radius:12px;box-shadow:0 9px 25px #2637460a;overflow:hidden;display:flex;flex-direction:column}
.handoff-chat-top{padding:17px;border-bottom:1px solid #e7ebef;background:white}
.handoff-topline{display:flex;justify-content:space-between;align-items:center;gap:8px}
.handoff-topline strong{font-size:14px;color:#2d3541}
.handoff-topline span{font-size:10px;font-weight:800;color:#347857;background:#e9f7f0;border-radius:20px;padding:3px 8px}
.handoff-chat-top p{font-size:11px;color:#7a8793;margin:5px 0 0}
.handoff-chat-messages{flex:1;display:flex;flex-direction:column;justify-content:center;gap:15px;padding:19px 14px}
.handoff-message{display:flex;flex-direction:column;gap:5px;max-width:94%}
.handoff-message.is-user{align-self:flex-end}
.handoff-message small{font-size:10px;font-weight:750;color:#8a929c}
.handoff-message.is-user small{text-align:right}
.handoff-message p{margin:0;background:white;border:1px solid #e3e8ec;border-radius:12px 12px 12px 3px;padding:12px 13px;font-size:12px;line-height:1.55;color:#374351;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.handoff-message.is-user p{background:#fff0f0;border-color:#f7d2d2;border-radius:12px 12px 3px 12px}
.handoff-chat-foot{padding:11px 16px;background:white;border-top:1px solid #e7ebef;color:#7a8792;font-size:11px}
.handoff-transport{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;position:relative;padding:22px 2px}
.handoff-transport-title{font-size:10px;font-weight:800;color:#7c8792;text-transform:uppercase;letter-spacing:.1em;text-align:center}
.handoff-packet{position:relative;z-index:2;border:1px solid #f3b9b9;border-radius:12px;background:#fff5f5;box-shadow:0 10px 28px #bf42421c;padding:17px 13px;min-width:140px;text-align:center;transform:translateX(-14px);opacity:.85}
.handoff-packet-icon{width:38px;height:38px;border-radius:10px;background:#e63c43;color:#fff;display:grid;place-items:center;font-size:22px;font-weight:750;margin:0 auto 9px}
.handoff-packet strong{display:block;color:#8d2636;font-size:12px}
.handoff-packet small{display:block;color:#8c5c66;font-size:10px;margin-top:3px}
.handoff-track{width:100%;height:2px;background:repeating-linear-gradient(90deg,#d8dde1 0 7px,transparent 7px 12px);position:absolute;top:50%;left:0;transform:translateY(-50%)}
.handoff-track::after{content:"›";font-size:31px;color:var(--red-dark);position:absolute;right:-3px;top:-25px}
.handoff-track-progress{position:absolute;left:0;top:0;height:100%;width:0;background:var(--red)}
.handoff-transport-note{font-size:10px;text-align:center;color:#82909b;max-width:170px;line-height:1.55}
.crm-demo-window{background:#fff;border:1px solid #d8dfe6;border-radius:12px;box-shadow:0 12px 30px #20334612;overflow:hidden;display:flex;flex-direction:column;font-family:Arial,Helvetica,sans-serif}
.crm-browser{background:#26394d;color:#ebf1f6;padding:10px 13px;display:flex;align-items:center;gap:9px;font-size:11px;font-weight:750}
.crm-appmark{display:grid;place-items:center;background:#385570;color:#fff;border-radius:4px;width:25px;height:25px;font-size:13px}
.crm-browser .crm-ui-tag{margin-left:auto;font-weight:400;opacity:.7;font-size:10px}
.crm-tabstrip{height:31px;display:flex;align-items:stretch;border-bottom:1px solid #dce2e7;background:#f7f9fb}
.crm-tabstrip span{font-size:10px;color:#596878;padding:8px 13px;border-right:1px solid #e1e6eb}
.crm-tabstrip span[aria-current="page"]{color:#27384b;background:white;border-top:2px solid #e04349;padding-top:6px;font-weight:750}
.crm-workspace{display:grid;grid-template-columns:112px minmax(0,1fr);flex:1;min-height:0}
.crm-nav{border-right:1px solid #e5e9ee;background:#f7f9fb;padding:17px 10px;color:#7c8794}
.crm-nav-title{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;margin-bottom:13px}
.crm-nav-item{padding:9px 7px;border-radius:4px;font-size:10px;color:#74808e}
.crm-nav-item.active{color:#263a4f;background:#e9eef4;font-weight:750;border-left:3px solid #415e7b;padding-left:4px}
.crm-content{min-width:0;padding:17px 16px 18px}
.crm-record-eyebrow{font-size:9px;letter-spacing:.11em;text-transform:uppercase;color:#8795a1;font-weight:750}
.crm-record-title{font-size:17px;font-weight:750;line-height:1.3;color:#273647;margin:7px 0 13px}
.crm-record-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:13px}
.crm-record-meta div{background:#f8fafc;border:1px solid #edf1f4;border-radius:5px;padding:8px}
.crm-record-meta span{display:block;color:#8c97a1;font-size:9px;margin-bottom:3px}
.crm-record-meta strong{font-size:11px;color:#364656;font-weight:650;overflow-wrap:anywhere}
.crm-activity-heading{font-size:11px;font-weight:750;color:#344454;margin-bottom:9px;padding-top:9px;border-top:1px solid #eef1f4}
.crm-activity{border:1px solid #e2e7eb;background:#fbfcfd;border-radius:7px;padding:12px 13px;opacity:.35;transition:opacity .45s,box-shadow .45s,border-color .45s}
.crm-activity-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;font-weight:750;color:#394d5e;margin-bottom:7px}
.crm-activity-title .crm-note-icon{background:#e8f3ee;color:#247c56;border-radius:4px;padding:4px 6px;font-size:12px}
.crm-activity-title .crm-note-status{margin-left:auto;color:#308059;font-size:10px}
.crm-activity p{font-size:11px;line-height:1.55;color:#536472;margin:0;overflow-wrap:anywhere}
.crm-activity .crm-note-meta{border-top:1px solid #e9edf1;margin-top:9px;padding-top:7px;color:#82909c;font-size:10px}
.handoff-demo[data-stage="transit"] .handoff-packet{animation:crm-packet-flight 1.55s ease-in-out both}
.handoff-demo[data-stage="transit"] .handoff-track-progress{animation:crm-progress 1.5s ease-out both}
.handoff-demo[data-stage="complete"] .handoff-packet{transform:translateX(16px);opacity:.7}
.handoff-demo[data-stage="complete"] .handoff-track-progress{width:100%}
.handoff-demo[data-stage="complete"] .crm-activity{opacity:1;border-color:#b6dfc8;box-shadow:0 0 0 3px #ebf8f0}
.handoff-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding-top:16px;color:#798591;font-size:12px}
.handoff-status{font-weight:750;color:#3d5463}
.handoff-disclaimer{font-size:11px;color:#8b949d;max-width:660px}
@keyframes crm-packet-flight{0%{transform:translateX(-16px) scale(.96);opacity:.75}48%{transform:translateX(0) scale(1.045);opacity:1}100%{transform:translateX(17px) scale(1);opacity:.9}}
@keyframes crm-progress{0%{width:0}100%{width:100%}}
@media(max-width:1060px){.handoff-stage{grid-template-columns:minmax(190px,.85fr) minmax(125px,.43fr) minmax(350px,1.4fr);gap:11px}.crm-workspace{grid-template-columns:88px minmax(0,1fr)}.crm-nav{padding:13px 5px}}
@media(max-width:790px){.handoff-section{padding:56px 0 62px}.handoff-stage{grid-template-columns:1fr;max-width:530px;margin:0 auto}.handoff-chat,.handoff-transport,.crm-demo-window{min-height:0}.handoff-chat-messages{min-height:205px}.handoff-transport{min-height:137px;padding:13px;gap:9px}.handoff-track{width:2px;height:90%;top:5%;left:50%;transform:translateX(-50%);background:repeating-linear-gradient(180deg,#d8dde1 0 7px,transparent 7px 12px)}.handoff-track::after{content:"⌄";top:auto;bottom:-17px;left:-8px;right:auto;font-size:23px}.handoff-track-progress{width:100%;height:0}.handoff-packet{transform:translateY(-9px);min-width:150px;padding:10px 12px}.handoff-packet-icon{width:28px;height:28px;font-size:16px;margin-bottom:4px}.handoff-transport-note{background:#fff;padding:0 4px;z-index:2}.crm-workspace{grid-template-columns:96px minmax(0,1fr)}.crm-demo-window{min-height:330px}.handoff-demo[data-stage="transit"] .handoff-track-progress{animation:crm-progress-vertical 1.5s ease-out both}.handoff-demo[data-stage="transit"] .handoff-packet{animation:crm-packet-fall 1.55s ease-in-out both}.handoff-demo[data-stage="complete"] .handoff-track-progress{width:100%;height:100%}.handoff-demo[data-stage="complete"] .handoff-packet{transform:translateY(10px)}.handoff-toolbar .handoff-source{margin-left:0;width:100%}}
@media(max-width:460px){.crm-workspace{grid-template-columns:72px minmax(0,1fr)}.crm-nav-item{font-size:9px}.crm-content{padding:12px 9px}.crm-record-title{font-size:15px}.crm-record-meta{gap:5px}.crm-record-meta div{padding:5px}.crm-record-meta strong{font-size:10px}.handoff-heading p{font-size:15px}}
@keyframes crm-progress-vertical{0%{height:0}100%{height:100%}}
@keyframes crm-packet-fall{0%{transform:translateY(-9px) scale(.96);opacity:.75}55%{transform:translateY(0) scale(1.04);opacity:1}100%{transform:translateY(10px);opacity:.9}}
@media(prefers-reduced-motion:reduce){.handoff-demo *{animation:none!important;transition:none!important}.handoff-demo[data-stage="complete"] .crm-activity{opacity:1}.handoff-demo[data-stage="transit"] .handoff-packet{transform:none;opacity:1}}


/* Enhanced sequence: a real moving card, empty CRM inbox, creation form and new record. */
.handoff-demo{position:relative;isolation:isolate}
.handoff-chat{transition:box-shadow .3s,border-color .3s}
.handoff-demo[data-stage="capture"] .handoff-chat,
.handoff-demo[data-stage="transit"] .handoff-chat{border-color:#f0b4b4;box-shadow:0 0 0 4px #fff0f0}
.handoff-demo[data-stage="capture"] .handoff-chat-messages{animation:crm-source-ready .65s ease-in-out both}
.handoff-demo[data-stage="transit"] .handoff-chat-messages{opacity:.72;transition:opacity .2s}
.handoff-chat-foot{display:block}
.handoff-chat-foot #crm-demo-ready{font-weight:700;color:#9e3e4b}
.handoff-route-chip{z-index:1;display:flex;align-items:center;justify-content:center;gap:6px;text-align:center;white-space:nowrap;font-size:11px;font-weight:800;color:#9d3547;background:#fff;padding:9px 11px;border:1px solid #f0bfc4;border-radius:8px;box-shadow:0 5px 16px #cf365010}
.handoff-route-chip>span{color:#df3640;font-size:21px;line-height:12px}
.handoff-transport-title{z-index:1;background:#fff;padding:3px 6px;border-radius:4px}
.handoff-transport-note{z-index:1;background:#fff;padding:3px 6px}
.crm-flight-card{width:218px;min-height:72px;position:absolute;z-index:50;pointer-events:none;display:flex;gap:11px;align-items:center;background:#fff;border:1px solid #ef818f;border-radius:12px;padding:14px 13px;box-shadow:0 20px 45px #cf273449,0 0 0 5px #fff2f2}
.crm-flight-icon{flex-shrink:0;width:39px;height:39px;display:grid;place-items:center;background:#df3746;border-radius:9px;color:#fff;font-size:26px;font-weight:800}
.crm-flight-text{min-width:0}
.crm-flight-text strong{display:block;font-size:12px;color:#7f2839;line-height:1.35}
.crm-flight-text small{display:block;font-size:10px;color:#946875;margin-top:4px}
.crm-content{position:relative;min-height:322px}
.crm-empty{min-height:314px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:19px 16px}
.crm-empty-icon{display:grid;place-items:center;width:61px;height:61px;border-radius:17px;background:#eff3f7;border:1px solid #e4e9ef;color:#718396;font-size:30px}
.crm-empty h3{font-size:15px;letter-spacing:-.02em;margin:15px 0 6px;color:#455563}
.crm-empty p{font-size:11px;line-height:1.65;max-width:250px;color:#8995a1;margin:0}
.crm-empty-lines{width:min(100%,230px);display:flex;flex-direction:column;gap:8px;margin-top:21px}
.crm-empty-lines span{display:block;height:8px;background:#f0f3f6;border-radius:10px}
.crm-empty-lines span:nth-child(2){width:83%}
.crm-empty-lines span:nth-child(3){width:64%}
.crm-creating{min-height:314px;padding:35px 16px 18px;animation:crm-content-in .32s ease-out both}
.crm-creating-top{display:flex;align-items:center;gap:13px;font-size:16px;color:#294053}
.crm-spinner{display:inline-block;flex-shrink:0;width:27px;height:27px;border:3px solid #fbe1e2;border-top-color:#db3645;border-radius:50%;animation:crm-spin .8s linear infinite}
.crm-creating p{font-size:12px;color:#637484;min-height:21px;margin:15px 0 16px}
.crm-creation-progress{height:8px;background:#edf2f5;border-radius:8px;overflow:hidden}
.crm-creation-progress span{display:block;height:100%;background:linear-gradient(90deg,#ed555e,#bf2139);width:0;transition:width .35s ease;border-radius:8px}
.crm-creating-placeholder{display:flex;flex-direction:column;gap:13px;margin-top:33px}
.crm-creating-placeholder span{height:34px;border-radius:5px;background:linear-gradient(100deg,#eff2f5 0%,#f9fafb 45%,#eff2f5 100%);background-size:200% 100%;animation:crm-shimmer 1.4s linear infinite}
.crm-creating-placeholder span:nth-child(2){width:90%}
.crm-creating-placeholder span:nth-child(3){width:96%;height:53px}
.crm-record{animation:crm-record-created .56s cubic-bezier(.2,.85,.25,1) both}
.crm-created-banner{display:flex;align-items:center;gap:9px;padding:11px;background:#ebf8f0;border:1px solid #c3e7d0;border-radius:7px;margin:0 0 15px}
.crm-created-check{width:25px;height:25px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#258852;color:white;font-weight:bold;font-size:15px}
.crm-created-banner>div{flex:1;min-width:0}
.crm-created-banner strong{display:block;color:#1f6947;font-size:11px}
.crm-created-banner small{display:block;color:#48785c;font-size:9px;margin-top:3px}
.crm-created-badge{font-size:9px;color:#1e6e49;font-weight:800;white-space:nowrap}
.crm-new-pill{background:#d83546;color:white;letter-spacing:0;border-radius:20px;padding:3px 7px;font-size:8px;font-weight:800;margin-left:6px}
.crm-record-title{margin:9px 0 11px}
.crm-activity{opacity:1;box-shadow:none;transition:none}
.handoff-demo[data-stage="complete"] .crm-activity{box-shadow:0 0 0 2px #e7f7ed}
.crm-timeline-new{margin-left:7px;font-size:9px;font-weight:700;color:#308451}
.crm-transcript-lines{margin-top:8px;background:#fff;border:1px solid #edf0f3;border-radius:5px;max-height:125px;overflow-y:auto;padding:7px 9px}
.crm-transcript-line{font-size:10px;line-height:1.4;margin:4px 0 9px}
.crm-transcript-line:last-child{margin-bottom:3px}
.crm-transcript-line strong{display:block;color:#617081;font-size:9px;margin-bottom:2px}
.crm-transcript-line span{color:#455562;white-space:pre-wrap;overflow-wrap:anywhere;display:block}
.handoff-demo[data-stage="creating"] .crm-demo-window{box-shadow:0 0 0 3px #ffebeb,0 12px 30px #20334616}
.handoff-demo[data-stage="complete"] .crm-demo-window{border-color:#aed6c1;box-shadow:0 0 0 3px #eaf8ef,0 12px 30px #20334616}
.handoff-demo[data-stage="transit"] .handoff-track-progress{animation:crm-progress 1.8s ease-out both}
@keyframes crm-source-ready{0%{transform:scale(1)}50%{transform:scale(.975)}100%{transform:scale(1)}}
@keyframes crm-spin{to{transform:rotate(360deg)}}
@keyframes crm-shimmer{to{background-position-x:-200%}}
@keyframes crm-content-in{from{opacity:.15;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes crm-record-created{from{opacity:0;transform:translateY(19px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:790px){.handoff-transport{min-height:102px;gap:5px}.handoff-chat-messages{min-height:170px;padding:13px}.handoff-route-chip{padding:7px 10px}.handoff-transport-note{font-size:9px}.crm-content{min-height:320px}.crm-empty{min-height:285px}.crm-creating{min-height:285px}.crm-flight-card{width:194px;min-height:62px;padding:10px 12px}.crm-flight-icon{width:30px;height:30px;font-size:20px}}
@media(prefers-reduced-motion:reduce){.handoff-demo *, .handoff-demo *::before, .handoff-demo *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


@media(max-width:790px){
  /* The connecting line runs vertically when the two windows stack. */
  .handoff-demo[data-stage="transit"] .handoff-track-progress{animation:crm-progress-vertical 1.8s ease-out both}
}

/* Stable animation canvas: case contents scroll inside the CRM rather than resizing the page. */
.handoff-stage {
  height: 472px;
  align-items: stretch;
  margin-top: 27px;
}
.handoff-chat,
.handoff-transport,
.crm-demo-window {
  height: 100%;
  min-height: 0;
}
.handoff-chat-messages {
  min-height: 0;
  overflow-y: auto;
}
.crm-demo-window {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.crm-browser, .crm-tabstrip {
  flex-shrink: 0;
}
.crm-workspace {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.crm-nav {
  min-height: 0;
  overflow-y: auto;
}
.crm-content {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}
.crm-empty {
  min-height: 100%;
}
.crm-content::-webkit-scrollbar {
  width: 8px;
}
.crm-content::-webkit-scrollbar-thumb {
  background: #cbd3dc;
  border-radius: 8px;
  border: 2px solid #fff;
}
.crm-content::-webkit-scrollbar-track {
  background: #f7f9fb;
}
@media(max-width:790px) {
  .handoff-stage {
    height: auto;
    margin-top: 24px;
  }
  .handoff-chat {
    height: 250px;
  }
  .handoff-transport {
    height: 132px;
  }
  .crm-demo-window {
    height: 430px;
    min-height: 0;
  }
  .crm-content {
    min-height: 0;
    height: 100%;
  }
}
@media(max-width:460px) {
  .crm-demo-window {
    height: 415px;
  }
}
