/* The supplied identity, adapted for the existing light site. */
.brand-logo{display:flex;flex-direction:column;align-items:flex-end;gap:4px;letter-spacing:0;flex-shrink:0}
.brand-image{position:relative;display:block;width:190px;aspect-ratio:2052/449;overflow:hidden}
.brand-image img{position:absolute;width:105.848%;height:auto;max-width:none;left:-2.924%;top:-29.844%;display:block}
.brand-logo small{font-family:var(--body);font-size:8px;letter-spacing:.45em;line-height:1.2;margin:0 3px 0 0}
.demo-brand{display:block;flex-shrink:0}
.demo-brand .brand-image{width:112px}

/* A shared inbox: one Worker, independent customer conversations. */
.interactive-demo{transform:none;min-width:0;isolation:isolate}
.demo-copy>small{display:block;max-width:380px;font-size:13px;line-height:1.6;color:#536079}
.interactive-demo button{touch-action:manipulation}
.interactive-demo .app-top{padding:16px 20px;gap:12px;min-height:62px}
.interactive-demo .demo-label{font-size:12px;letter-spacing:.04em;font-weight:600;color:#657591;margin-left:auto}
#demo-reset{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0;background:transparent;font-size:12px;color:#536482;padding:6px;white-space:nowrap;margin-left:auto}
#demo-reset svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.demo-worker-bar{display:flex;align-items:center;gap:12px;padding:16px 20px;background:#ffffff38;border-bottom:1px solid #b5c5e440}
.demo-worker-bar>div{min-width:0}
.demo-worker-bar b{display:block;font-size:15px;color:#243856;line-height:1.5}
.demo-worker-bar b span{font-weight:500;color:#536b92}
.demo-worker-bar small{display:block;font-size:12px;color:#6c7f9c;line-height:1.5;margin-top:2px}
.demo-worker-avatar{position:relative;flex:0 0 40px;width:40px;height:40px;border-radius:50%;overflow:hidden;background:#f2e4f0;border:1px solid #fff}
.demo-worker-avatar img{position:absolute;top:-4px;left:50%;transform:translateX(-50%);width:160px;height:240px;max-width:none}
.demo-channel-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 16px;background:#eef3fb66;border-bottom:1px solid #b5c5e450}
.demo-channel-tabs button{display:flex;align-items:center;gap:10px;min-width:0;min-height:64px;text-align:left;padding:10px 12px;border:1px solid transparent;border-radius:14px;background:transparent;color:#516787;transition:background .15s,box-shadow .15s}
.demo-channel-tabs button[aria-selected=true]{background:#ffffffda;border-color:#bccde8;box-shadow:0 4px 16px #2035750e;color:#1a37a9}
.demo-channel-tabs button[data-demo-channel=WhatsApp][aria-selected=true]{border-color:#9fcbbb;color:#235d4d}
.demo-channel-tabs img{width:24px;height:24px;object-fit:contain;flex:0 0 24px}
.demo-channel-tabs button>span{min-width:0}
.demo-channel-tabs b{display:block;font-size:14px;font-weight:600;line-height:1.4}
.demo-channel-tabs small{display:block;font-size:12px;line-height:1.4;color:#6c7f9c;margin-top:2px}
.interactive-demo .chat-head{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;padding:16px 20px;align-items:center}
.interactive-demo .chat-head>div{min-width:0}
.interactive-demo .chat-head b{font-size:15px;line-height:1.4;color:#172747}
.interactive-demo .chat-head small{font-size:12px;line-height:1.4;color:#657593}
.demo-customer-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e4ecff;color:#3d5cab;font-size:14px;font-weight:600;border:1px solid #fff}
.interactive-demo[data-channel=whatsapp] .demo-customer-avatar{background:#dfefe9;color:#316f5d}
.demo-stage{font-size:12px;line-height:1.3;max-width:110px;padding:6px 8px;border:1px solid #c5d5ed;border-radius:8px;color:#4d6891;background:#eef4ffa6;text-align:center}
.interactive-demo .mode{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;min-height:64px;background:#e0e9ff80}
.interactive-demo #mode-label{font-size:14px;line-height:1.4;color:#304c91;min-width:0}
.interactive-demo .mode button{flex-shrink:0;min-height:44px;border:1px solid #abbde4;background:#ffffffbd;padding:8px 11px;font-size:14px;font-weight:600;color:#304988}
.interactive-demo[data-mode=waiting] .mode{background:#f3ebd487}
.interactive-demo[data-mode=waiting] #mode-label{color:#795621}
.interactive-demo[data-mode=human] .mode{background:#e6f5d587}
.interactive-demo[data-mode=human] #mode-label{color:#345919}
.interactive-demo .messages{height:320px;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:22px 18px;scrollbar-width:thin;scrollbar-color:#a6b7d4 transparent;background:linear-gradient(140deg,#ffffff80,#f6f9ff80)}
.interactive-demo .messages:focus-visible{outline:3px solid #8897ff;outline-offset:-3px}
.interactive-demo .bubble{max-width:90%;width:fit-content;font-size:16px;line-height:1.5;margin:0 0 16px;padding:13px 16px;background:#ffffffb8;color:#2b3b55;overflow-wrap:anywhere;border:1px solid #ffffffce}
.interactive-demo .bubble p{white-space:pre-line;margin:0;color:inherit;font-size:inherit;line-height:inherit}
.interactive-demo .bubble small{font-size:12px;line-height:1.3;margin-top:9px;color:#657b9e}
.interactive-demo .outgoing{margin-left:auto;background:#dde8ff}
.interactive-demo[data-channel=whatsapp] .outgoing{background:#e2f1e6;border-color:#f5fff9}
.interactive-demo .human-bubble{border-left:3px solid #7ab03a}
.demo-system-message{text-align:center;font-size:13px;line-height:1.5;margin:8px 0 18px;color:#6b7992}
.demo-typing{font-size:13px;color:#667999;margin:0 0 12px}
/* A notification starts the owner experience; Nova handles the conversation. */
.interactive-demo [hidden]{display:none!important}
.demo-channel-tabs [data-unread=true] .demo-tab-state{color:#2441bc;font-weight:700}
.demo-channel-tabs [data-demo-channel=WhatsApp][data-unread=true] .demo-tab-state{color:#237650}
.demo-notification{margin:20px;padding:26px;border:1px solid #fff;border-radius:22px;background:linear-gradient(135deg,#ffffffed,#e7eeffab);box-shadow:0 14px 40px #29458112,inset 0 1px 0 #fff;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.demo-notification[data-kind=new]{border-color:#bbcaff;box-shadow:0 16px 45px #234bce1c,inset 0 1px 0 #fff}
.demo-notification[data-kind=handoff]{background:linear-gradient(130deg,#f3ffdcee,#ffffffcd);border-color:#b1d668;box-shadow:0 16px 45px #648f291a}
.demo-notice-source{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.demo-notice-source>img{object-fit:contain;width:28px;height:28px;flex-shrink:0}
.demo-notice-source .demo-worker-avatar{flex-basis:34px;width:34px;height:34px}
.demo-notice-source .demo-worker-avatar img{width:138px;height:207px;top:-3px}
.demo-notification[data-kind=new] .demo-worker-avatar{display:none}
.demo-notification:not([data-kind=new]) #demo-notice-icon{display:none}
#demo-notice-kicker{font-size:12px;font-weight:700;letter-spacing:.04em;line-height:1.4;color:#536ca6}
.demo-notification[data-kind=handoff] #demo-notice-kicker{color:#4b701e}
#demo-notice-title{font-family:var(--body);font-size:clamp(23px,2.2vw,30px);font-weight:700;letter-spacing:-.035em;line-height:1.1;color:#142849;margin:0 0 14px;max-width:440px}
#demo-notice-copy{font-size:16px;line-height:1.5;color:#344a70;margin:0 0 14px}
#demo-notice-foot{font-size:14px;line-height:1.5;color:#7183a0;margin:0}
#demo-notice-action{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:20px;padding:12px 18px;font-size:14px;font-weight:600;border:1px solid var(--blue);border-radius:12px;background:var(--blue);color:white;box-shadow:0 5px 15px #203cff24}
.demo-notification[data-kind=handoff] #demo-notice-action{background:#20381c;border-color:#20381c;box-shadow:none}
.interactive-demo[data-channel=whatsapp] .demo-notification[data-kind=new]{background:linear-gradient(130deg,#fffffff0,#def1e7c4);border-color:#a9d3c0;box-shadow:0 16px 40px #39775615}
.interactive-demo[data-channel=whatsapp] .demo-notification[data-kind=new] #demo-notice-action{background:#18664d;border-color:#18664d;box-shadow:0 5px 15px #18664d20}
.interactive-demo[data-started=true] .demo-notification{padding:20px}
.interactive-demo[data-started=true] #demo-notice-title{font-size:23px}
.interactive-demo[data-started=true] .demo-notice-source{margin-bottom:12px}
.demo-playbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 18px;background:#ffffff60;border-bottom:1px solid #c4d0e748}
.demo-playbar>span{font-size:12px;line-height:1.4;color:#6b7e9e}
.demo-playbar button{flex-shrink:0;min-height:44px;padding:8px 0 8px 10px;background:transparent;border:0;color:#2c4a94;font-size:14px;font-weight:600}
.demo-composer-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px 0;border-top:1px solid #c3d2e8;background:#ffffff60}
.demo-composer-heading b{font-size:14px;line-height:1.4;color:#345071}
.demo-composer-heading button{font-size:13px;color:#2c4a94;background:transparent;border:0;min-height:44px;padding:5px 0 5px 10px}
.interactive-demo #demo-form{gap:9px;padding:13px 16px 6px;background:#ffffff42}
.interactive-demo #demo-form input{font-family:var(--body);font-size:16px;min-height:46px;padding:11px 13px;border-color:#c5d2e9;background:#ffffffc9;color:#172747}
.interactive-demo #demo-form input:disabled{background:#eff3f966;color:#73839e;opacity:1}
.interactive-demo #demo-form button{display:grid;place-items:center;width:46px;flex:0 0 46px;min-height:46px;background:var(--blue);color:white;border-radius:13px}
.interactive-demo #demo-form button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.demo-input-hint{font-size:12px;line-height:1.5;margin:0;padding:4px 18px 14px;color:#70809b;background:#ffffff42}
.demo-context{border-top:1px solid #b7c6df66;background:#ffffff55}
.demo-context summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;list-style:none;cursor:pointer;font-size:14px;font-weight:600;color:#354c72}
.demo-context summary::-webkit-details-marker{display:none}
#demo-progress{flex-shrink:0;font-size:12px;font-weight:500;padding:5px 8px;border-radius:8px;background:#e6edf8;color:#536b90}
.demo-context-body{padding:0 18px 18px}
.demo-context dl{margin:0;display:grid;gap:0}
.demo-context dl>div{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:14px;padding:10px 0;border-top:1px solid #b8c8e038}
.demo-context dt,.demo-context dd{font-size:14px;line-height:1.5;margin:0;min-width:0;overflow-wrap:anywhere}
.demo-context dt{color:#6b7d9c}
.demo-context dd{color:#263d62;font-weight:500}
.interactive-demo .app-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;background:#ffffff70}
.interactive-demo .app-bottom>span{font-size:13px;line-height:1.5;margin:0;color:#59708f}
.interactive-demo .app-bottom>small{font-size:12px;line-height:1.5;color:#7183a0;text-align:right}

@media(max-width:1100px){.brand-image{width:170px}.interactive-demo .demo-label{display:none}}
@media(max-width:760px){
 header .brand-image{width:clamp(112px,35vw,140px)}
 header .brand-logo small{font-size:7px;letter-spacing:.35em}
 footer .brand-image{width:132px}
 footer .brand-logo{align-items:flex-start}
 footer .brand-logo small{align-self:flex-end;margin-right:8px}
 .interactive-demo{border-radius:24px}
 .interactive-demo .app-top{padding:12px 14px;min-height:60px}
 .demo-brand .brand-image{width:105px}
 #demo-reset{padding:7px}
 .demo-worker-bar{padding:14px;gap:10px}
 .demo-channel-tabs{gap:6px;padding:10px}
 .demo-channel-tabs button{gap:8px;padding:10px 8px;align-items:flex-start}
 .demo-channel-tabs img{width:22px;height:22px;flex-basis:22px;margin-top:1px}
 .interactive-demo .chat-head{padding:16px 14px;gap:8px}
 .demo-stage{max-width:90px}
 .interactive-demo .mode{padding:10px 12px;gap:8px}
 .interactive-demo .mode button{font-size:14px;padding:8px}
 .interactive-demo .messages{height:330px;padding:18px 12px}
 .interactive-demo .bubble{max-width:94%;padding:12px 14px}
 .demo-notification,.interactive-demo[data-started=true] .demo-notification{margin:14px;padding:20px}
 .demo-playbar{padding:8px 12px}
 .demo-composer-heading{padding-inline:12px}
 .interactive-demo #demo-form{padding:12px 12px 6px;gap:8px}
 .demo-input-hint{padding-inline:14px}
 .demo-context summary{padding:14px 12px;gap:8px}
 .demo-context-body{padding:0 14px 16px}
 .demo-context dl>div{grid-template-columns:minmax(0,.6fr) minmax(0,1.4fr);gap:10px}
 .interactive-demo .app-bottom{padding:12px 14px;flex-wrap:wrap;gap:5px}
 .interactive-demo .app-bottom>small{text-align:left}
}
@media(max-width:360px){header .nav-actions .button [data-mobile-icon]{display:none}.demo-channel-tabs button{gap:6px;padding:10px 6px}.interactive-demo .chat-head{grid-template-columns:40px minmax(0,1fr)}.demo-stage{grid-column:2;max-width:none;justify-self:start}.demo-context summary{flex-wrap:wrap}}
@media(prefers-reduced-transparency:reduce){.interactive-demo,.interactive-demo .messages,.demo-context,.demo-notification{background:#f8faff;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){.demo-channel-tabs button{transition:none}}

.demo-connection-error{padding:12px 18px;border-top:1px solid rgba(25,25,40,.12);background:#fff7e9;color:#68410d;font-size:14px}.demo-connection-error[hidden]{display:none}.demo-connection-error p{margin:0 0 8px}.demo-connection-error button{border:1px solid currentColor;background:transparent;color:inherit;border-radius:8px;padding:7px 12px;font:inherit;cursor:pointer}.demo-connection-error button:focus-visible{outline:2px solid #403ce5;outline-offset:3px}

/* Read, understand, then advance: one message at a time. */
.interactive-demo .bubble small{display:block;margin:0 0 6px;font-size:14px;font-weight:600;color:#445b7b}
.demo-playbar{flex-wrap:wrap;padding-block:12px}
.demo-playbar>span{font-size:14px;color:#435777;flex:1 1 150px}
.demo-playbar button{padding:10px 14px;border:1px solid #abbde4;border-radius:10px;background:#fff;color:#233d80}
.demo-playbar button:disabled{opacity:.7;cursor:wait}
.demo-steps{padding-left:22px;margin:16px 0 0;display:grid;gap:12px}
.demo-steps li{padding-left:5px;font-size:16px;line-height:1.5;color:#344a70}
.demo-steps b{display:block;font-size:16px}
.interactive-demo .demo-input-hint{font-size:14px;color:#536482}

/* A working inbox with its opportunity record, rather than a standalone chat. */
.demo-pipeline{display:flex;gap:8px;list-style:none;margin:0;padding:14px 16px;background:#fff9;border-bottom:1px solid #cfdae5}
.demo-pipeline li{flex:1;font-size:14px;line-height:1.4;padding:10px;border-radius:8px;color:#586777;border:1px solid transparent}
.demo-pipeline li[data-active=true]{background:#e2eaff;color:#203cb0;border-color:#b3c3f2;font-weight:600}
.interactive-demo[data-started=true] .demo-notification:not([data-kind=handoff]){margin:0;border-radius:0;padding:12px 18px;box-shadow:none;border:0;border-bottom:1px solid #cfdae5}
.interactive-demo[data-started=true] .demo-notification:not([data-kind=handoff]) .demo-notice-source,.interactive-demo[data-started=true] .demo-notification:not([data-kind=handoff]) #demo-notice-copy,.interactive-demo[data-started=true] .demo-notification:not([data-kind=handoff]) #demo-notice-foot{display:none}
.interactive-demo[data-started=true] .demo-notification:not([data-kind=handoff]) #demo-notice-title{font-family:var(--body);font-size:16px;line-height:1.4;letter-spacing:0;margin:0;text-transform:none}
.demo-context{background:#f6f8fc}
.demo-context-body dd{transition:background .4s}
.demo-typing{display:flex;align-items:center;gap:9px;padding:12px;color:#365b4c}
.demo-typing:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;animation:typing-dot 1.3s ease-in-out infinite}
.lead-arriving[data-started=false] .demo-notification{animation:lead-arrival .8s ease-out both}
.lead-arriving[data-started=false] [data-demo-channel=WhatsApp]{animation:lead-glow 1.4s ease-in-out 2}
.interactive-demo[data-channel=whatsapp]{--blue:#128c5e;border-color:#b5dbca}
.demo-channel-tabs button[data-demo-channel=WhatsApp]{background:#e5f7ec;color:#136545;border-color:#b6ddc8}
.demo-channel-tabs button[data-demo-channel=WhatsApp][aria-selected=true]{background:#d6f4e1;border-color:#25a66b;color:#0a5a37;box-shadow:inset 4px 0 #25a66b}
.interactive-demo[data-channel=whatsapp] .mode{background:#e2f4e9}
.interactive-demo[data-channel=whatsapp] #mode-label,.interactive-demo[data-channel=whatsapp] .mode button,.interactive-demo[data-channel=whatsapp] .demo-playbar button{color:#126140;border-color:#92caae}
.interactive-demo[data-channel=whatsapp] .messages{background:#eef6f0}
.interactive-demo[data-channel=whatsapp] .outgoing{background:#d9fdd3;border-color:#c5e8bc}
.interactive-demo[data-channel=whatsapp] .demo-pipeline li[data-active=true]{color:#125d3c;background:#dff4e7;border-color:#9dd4b4}
.interactive-demo[data-channel=whatsapp] .demo-stage{color:#17663f;background:#e3f5e9;border-color:#b3d9c1}
@keyframes typing-dot{0%,100%{opacity:.25;transform:scale(.7)}50%{opacity:1;transform:scale(1)}}
@keyframes lead-arrival{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes lead-glow{50%{box-shadow:0 0 0 5px #25d36635}}
@media(min-width:1101px){
 .section.demo{grid-template-columns:minmax(230px,.65fr) minmax(0,1.7fr);gap:4%;align-items:start}
 #demo-thread{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.52fr)}
 #demo-thread .chat{min-width:0}
 .demo-context{border-top:0;border-left:1px solid #cad7d0}
 .demo-context summary{flex-wrap:wrap}
 .demo-context dl>div{grid-template-columns:1fr;gap:4px;padding:16px 0}
 .interactive-demo .messages{height:380px}
}
@media(max-width:760px){.demo-pipeline{gap:3px;padding:10px}.demo-pipeline li{padding:7px 4px;font-size:14px}.demo-context dl{grid-template-columns:1fr 1fr;gap:12px}.demo-context dl>div{display:block}.demo-context dd{margin-top:5px}}
@media(prefers-reduced-motion:reduce){.lead-arriving .demo-notification,.lead-arriving [data-demo-channel],.demo-typing:before{animation:none}}
