/* The Lead Capture example (scripts/svc-lead.js), in the look of the leads demo (styles/leads-demo.css): white cards,
   warm greys, one orange, pastel status tags and the row of ticks, here running from red to green. White frosted glass
   cards: the photo shows through them, blurred and brightened enough to keep the words easy to read. It only shows how it works, so nothing in it can be clicked. */
.cnl-lead{position:absolute;inset:0;z-index:2;overflow:hidden;background:rgba(10,22,24,.12);font-family:"Switzer","Instrument Sans",var(--cnl-sans);color:#1a1612;user-select:none;-webkit-user-select:none;pointer-events:none;-webkit-font-smoothing:antialiased;transition:background-color .5s ease}
.lc-stage{position:absolute;left:0;top:0;width:760px;height:462px;transform-origin:0 0;line-height:1.4;letter-spacing:-.003em}
.lc-stage p,.lc-stage ol,.lc-stage dl,.lc-stage dd,.lc-stage h4{margin:0;padding:0}
.lc-stage li{list-style:none}
.lc-stage b{font-weight:600}
.lc-card,.lc-sources{box-sizing:border-box;border:1px solid rgba(255,255,255,.72);background:linear-gradient(165deg,rgba(255,255,255,.82),rgba(255,255,255,.71) 55%,rgba(255,255,255,.76));-webkit-backdrop-filter:blur(24px) saturate(1.35) brightness(1.12);backdrop-filter:blur(24px) saturate(1.35) brightness(1.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 26px 50px -26px rgba(6,24,28,.6)}
.lc-card{border-radius:18px}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.lc-card,.lc-sources{background:rgba(255,255,255,.96)}}
.lc-who{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.lc-who b{font-size:14px}
.lc-who small{font-size:12px;color:#443f38}
.lc-face{flex:none;width:36px;height:36px;border-radius:50%;object-fit:cover}
.lc-tag{display:inline-flex;align-items:center;height:23px;padding:0 10px;border-radius:999px;font-size:11.5px;font-weight:600;white-space:nowrap}
.lc-t-grey{background:rgba(26,22,18,.08);color:#38342e}
.lc-t-teal{background:#ccfbf1;color:#0f5e57}
.lc-t-green{background:#dcfce7;color:#166534}
.lc-t-purple{background:#ede9fe;color:#5b21b6}
.lc-t-amber{background:#fef3c7;color:#92400e}
.lc-t-orange{background:rgba(234,88,12,.15);box-shadow:inset 0 0 0 1px rgba(194,65,12,.24);color:#8a2c08}

/* the connected places: one compact bar, centred over the cards */
.lc-sources{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:4px;width:max-content;height:46px;margin:0 auto;padding:0 6px 0 0;border-radius:999px}
.lc-connected{display:flex;align-items:center;gap:8px;height:22px;margin-right:6px;padding:0 15px 0 18px;border-right:1px solid rgba(26,22,18,.16);font-size:12px;font-weight:500;color:#3d3a34}
.lc-connected i{width:7px;height:7px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.lc-src{display:flex;align-items:center;gap:7px;height:34px;box-sizing:border-box;padding:0 16px 0 13px;border-radius:999px;color:#2b2721;transition:background-color .3s ease,color .3s ease,box-shadow .3s ease}
.lc-src b{font-size:13px;font-weight:500}
/* the orange is lit like the glass: a soft shine along the top and a warm shadow under it */
.lc-src.is-on{background:linear-gradient(180deg,#d9520e,#b83c09);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 8px 18px -7px rgba(184,60,9,.75)}
.lc-src.is-on b{font-weight:600}

/* left: the conversation, which gives way to the alert and the follow-ups in the last step */
.lc-left{position:absolute;left:14px;top:62px;width:316px;height:420px}
.lc-conv{position:absolute;left:0;top:0;width:316px;overflow:hidden;padding:14px 14px 0;display:flex;flex-direction:column;align-items:flex-start;opacity:0;translate:0 -18px;scale:.96;transform-origin:50% 0;transition:opacity .3s ease,height .5s cubic-bezier(.23,1,.32,1),translate .55s cubic-bezier(.23,1,.32,1),scale .55s cubic-bezier(.23,1,.32,1)}
.lc-conv.is-on{opacity:1;translate:0 0;scale:1}
.lc-conv.is-away{opacity:0;translate:-26px 0;scale:.97}
.lc-conv-head{flex:none;display:flex;align-items:center;gap:10px;align-self:stretch;padding-bottom:11px;margin-bottom:11px;border-bottom:1px solid rgba(26,22,18,.1)}
.lc-stage .lc-msg{flex:none;box-sizing:border-box;margin:0 0 9px;padding:9px 12px;font-size:13.5px;line-height:1.5;opacity:0;visibility:hidden;translate:0 12px;scale:.97;transition:opacity .3s ease,translate .5s cubic-bezier(.23,1,.32,1),scale .5s cubic-bezier(.23,1,.32,1),visibility 0s linear .3s}
.lc-stage .lc-msg.is-on{opacity:1;visibility:visible;translate:0 0;scale:1;transition-delay:0s}
.lc-in{max-width:256px;border-radius:15px 15px 15px 5px;background:rgba(255,255,255,.78);box-shadow:0 1px 0 rgba(26,22,18,.06),0 6px 14px -10px rgba(26,22,18,.35);transform-origin:0 100%}
.lc-stage .lc-msg:last-child{margin-bottom:0}
.lc-out{position:relative;align-self:flex-end;width:262px;border:1px solid rgba(214,90,24,.3);border-radius:15px 15px 5px 15px;background:linear-gradient(180deg,rgba(255,243,235,.86),rgba(255,233,219,.74));transform-origin:100% 100%}
.lc-out .lc-tag{height:21px;font-size:11px;margin-bottom:6px}
.lc-out-in{transition:opacity .35s ease}
.lc-out ol{margin-top:7px!important}
.lc-out li{display:flex;align-items:center;gap:8px;height:24px;font-weight:600;font-size:13px;opacity:0;translate:-8px 0;transition:opacity .3s ease,translate .45s cubic-bezier(.23,1,.32,1)}
.lc-out li.is-on{opacity:1;translate:0 0}
.lc-out li i{display:flex;flex:none;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;background:linear-gradient(180deg,#d9520e,#b83c09);color:#fff;font-style:normal;font-size:10.5px;font-weight:600}
.lc-dots{position:absolute;left:13px;top:40px;display:flex;gap:5px;opacity:0;transition:opacity .2s ease}
.lc-dots i{width:6px;height:6px;border-radius:50%;background:#c2410c;opacity:.3}
.lc-out.is-typing .lc-dots{opacity:1}
.lc-out.is-typing .lc-dots i{animation:lc-dot .9s ease-in-out infinite}
.lc-out.is-typing .lc-dots i:nth-child(2){animation-delay:.14s}
.lc-out.is-typing .lc-dots i:nth-child(3){animation-delay:.28s}
.lc-out.is-typing .lc-out-in{opacity:0}
@keyframes lc-dot{40%{opacity:1;translate:0 -3px}}
/* the words that go onto the list are marked, left to right */
.lc-in mark{padding:1px 0;background:linear-gradient(rgba(240,110,40,.28),rgba(240,110,40,.28)) 0 0/0 100% no-repeat;color:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .45s cubic-bezier(.65,0,.35,1)}
.lc-in mark.is-on{background-size:100% 100%}
.lc-fly{position:absolute;left:0;top:0;z-index:5;padding:3px 8px;border-radius:7px;background:linear-gradient(180deg,#d9520e,#b83c09);color:#fff;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:0 10px 18px -8px rgba(154,52,18,.8)}
.lc-fly.is-go{transition:translate .56s cubic-bezier(.65,0,.25,1)}

/* the alert and the follow-up rule */
.lc-alert{position:absolute;left:0;top:0;width:316px;display:flex;gap:12px;padding:14px;opacity:0;visibility:hidden;translate:0 -22px;scale:.94;transform-origin:50% 0;transition:opacity .3s ease,translate .6s cubic-bezier(.25,1.35,.4,1),scale .6s cubic-bezier(.25,1.35,.4,1),visibility 0s linear .3s}
.lc-alert.is-on{opacity:1;visibility:visible;translate:0 0;scale:1;transition-delay:0s}
.lc-bell{display:flex;flex:none;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(180deg,#de560f,#b83c09);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 9px 18px -8px rgba(184,60,9,.8)}
.lc-alert.is-on .lc-bell svg{transform-origin:50% 12%;animation:lc-ring .8s ease .25s}
@keyframes lc-ring{20%{rotate:16deg}40%{rotate:-13deg}60%{rotate:8deg}80%{rotate:-4deg}}
.lc-alert .lc-who b{font-size:15.5px;margin:1px 0 2px}
.lc-alert .lc-who span{font-size:12.5px;color:#2b2721}
.lc-quiet{position:absolute;left:0;top:104px;width:316px;padding:14px 15px 13px;opacity:0;visibility:hidden;translate:0 16px;scale:.97;transition:opacity .35s ease,translate .5s cubic-bezier(.23,1,.32,1),scale .5s cubic-bezier(.23,1,.32,1),visibility 0s linear .35s}
.lc-quiet.is-on{opacity:1;visibility:visible;translate:0 0;scale:1;transition-delay:0s}
.lc-quiet h4{font-size:13.5px;font-weight:600;line-height:1.35;margin-bottom:8px!important;font-family:inherit;letter-spacing:inherit}
.lc-quiet ol{margin-top:13px!important}
.lc-quiet li{position:relative;padding:0 0 10px 24px;opacity:0;translate:0 8px;transition:opacity .3s ease,translate .45s cubic-bezier(.23,1,.32,1)}
.lc-quiet li.is-on{opacity:1;translate:0 0}
.lc-quiet li i{position:absolute;left:1px;top:3px;box-sizing:border-box;width:11px;height:11px;border:2.5px solid #c2410c;border-radius:50%;background:#fff}
.lc-quiet li:not(:last-child)::after{content:"";position:absolute;left:6px;top:17px;bottom:0;width:1px;background:rgba(26,22,18,.16)}
.lc-quiet li b{display:block;font-size:13px;line-height:1.3}
.lc-quiet li span{display:block;margin-top:3px;font-size:12px;line-height:1.45;color:#443f38}
.lc-quiet li[data-f="3"] i{background:#c2410c}
.lc-quiet li.is-later i{border:1.5px dashed #6b665d}
.lc-quiet li.is-later b{color:#443f38}
.lc-stage .lc-quiet>p{padding-top:10px;border-top:1px solid rgba(26,22,18,.1);font-size:12px;font-weight:600;color:#8a2c08;opacity:0;transition:opacity .35s ease}
.lc-stage .lc-quiet>p.is-on{opacity:1}

/* right: the lead list */
.lc-sheet{position:absolute;left:342px;top:62px;width:404px;overflow:hidden}
.lc-sheet-head{display:flex;align-items:center;gap:8px;height:46px;padding:0 16px;border-bottom:1px solid rgba(26,22,18,.1);background:rgba(255,255,255,.28)}
.lc-sheet-head b{font-size:16px;letter-spacing:-.02em}
.lc-count{min-width:26px;height:20px;border-radius:999px;background:rgba(26,22,18,.08);color:#38342e;font-size:11.5px;line-height:20px;text-align:center;font-variant-numeric:tabular-nums}
.lc-sheet-head small{margin-left:auto;font-size:11.5px;color:#443f38}
.lc-slot{position:relative;height:230px;border-bottom:1px solid rgba(26,22,18,.1)}
.lc-stage .lc-wait{position:absolute;inset:12px;display:flex;align-items:center;justify-content:center;border:1.5px dashed rgba(26,22,18,.24);border-radius:12px;font-size:12.5px;color:#38342e;transition:opacity .3s ease}
.lc-slot:has(.lc-lead.is-on) .lc-wait{opacity:0}
.lc-lead{position:absolute;inset:0;padding:12px 16px 0 18px;background:rgba(255,255,255,.56);opacity:0;translate:0 -14px;transition:opacity .35s ease,translate .55s cubic-bezier(.23,1,.32,1)}
.lc-lead::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#f2701a,#c2410c)}
.lc-lead.is-on{opacity:1;translate:0 0}
.lc-lead-head{display:flex;align-items:center;gap:10px}
.lc-lead-head .lc-tag{margin-left:auto}
.lc-lead-head .lc-tag.is-new{animation:lc-pop .45s cubic-bezier(.25,1.4,.4,1)}
@keyframes lc-pop{from{opacity:0;scale:.75}}
.lc-stage dl{margin-top:8px}
.lc-stage dl>div{display:flex;align-items:center;height:35px;border-top:1px solid rgba(26,22,18,.1)}
.lc-stage dt{width:68px;font-size:12px;color:#443f38}
.lc-stage dd{position:relative;flex:1;height:22px}
.lc-stage dd>span{position:absolute;transition:opacity .3s ease,translate .45s cubic-bezier(.23,1,.32,1)}
.lc-skel{left:0;top:7px;width:132px;height:8px;border-radius:4px;background:rgba(26,22,18,.09)}
.lc-asked{left:0;top:0;height:22px;padding:0 9px;border:1px dashed rgba(194,65,12,.5);border-radius:999px;font-size:11.5px;font-weight:600;line-height:20px;color:#9a3412;opacity:0;translate:0 5px}
.lc-val{left:0;top:1px;font-size:14px;font-weight:600;white-space:nowrap;opacity:0;translate:0 5px}
[data-s=asked] .lc-skel,[data-s=got] .lc-skel{opacity:0}
.lc-stage [data-s=asked] .lc-asked{opacity:1;translate:0 0}
.lc-stage [data-s=got] .lc-val{opacity:1;translate:0 0}

/* the row of ticks from the demo's score, red through orange to green */
.lc-ticks{display:inline-flex;align-items:center;gap:3px;height:20px}
.lc-ticks i{width:4px;height:18px;border-radius:2px;background:rgba(26,22,18,.13);transition:background-color .28s ease calc(var(--i) * 45ms)}
.lc-ticks i.is-on{background:var(--c)}
.lc-num{min-width:30px;padding:1px 6px;border:1px solid rgba(26,22,18,.18);border-radius:6px;background:rgba(255,255,255,.7);font-size:12px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.lc-score{display:flex;align-items:center;gap:10px;height:38px;border-top:1px solid rgba(26,22,18,.1)}
.lc-score>span:first-child{flex:1;font-size:12.5px;font-weight:600}
.lc-stage .lc-saved{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:#166534;opacity:0;translate:0 5px;transition:opacity .3s ease,translate .45s cubic-bezier(.23,1,.32,1)}
.lc-stage .lc-saved.is-on{opacity:1;translate:0 0}

.lc-other{display:flex;align-items:center;gap:10px;height:51px;padding:0 16px 0 18px;border-top:1px solid rgba(26,22,18,.1)}
.lc-slot+.lc-other{border-top:0}
.lc-other .lc-who{flex:1}
.lc-other .lc-who b{font-size:13px}
.lc-other .lc-who small{font-size:11.5px}
.lc-other .lc-ticks i{transition:none}
.lc-ini{display:flex;flex:none;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;font-size:11px;font-weight:600;color:#3d3a34}

/* showing an earlier step as finished happens at once, with nothing sliding about */
.lc-stage.is-jump *{transition:none!important}

.lc-sample{position:absolute;right:14px;bottom:8px;margin:0;color:#fff;font-size:11px;font-weight:500;text-shadow:0 1px 3px rgba(0,0,0,.85),0 0 10px rgba(0,0,0,.6)}
.lc-sr{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.cnl-lead,.cnl-lead *{transition:none!important;animation:none!important}}

/* arriving: the dimming fades in, then the places, the list and the left-hand card rise one after the other. Each
   piece of glass fades itself (fading a wrapper would switch its blur off until the fade ended) */
.cnl-canvas.has-pop.is-in .lc-sources,.cnl-canvas.has-pop.is-in .lc-card{animation:lc-arrive .65s cubic-bezier(.23,1,.32,1) var(--d) backwards}
@keyframes lc-arrive{from{opacity:0;translate:0 22px;scale:.96}}
.lc-sources{--d:.06s}
.lc-sheet{--d:.18s}
.lc-left .lc-card{--d:.3s}
.cnl-canvas.has-pop .lc-sample{transition:opacity .4s ease .1s}
.cnl-canvas.has-pop:not(.is-in) .cnl-lead{background-color:rgba(10,22,24,0)}
.cnl-canvas.has-pop:not(.is-in) .lc-sources,.cnl-canvas.has-pop:not(.is-in) .lc-stage .lc-card{opacity:0;translate:0 22px;scale:.96;transition:opacity .22s ease,translate .22s ease,scale .22s ease}
.cnl-canvas.has-pop:not(.is-in) .lc-sample{opacity:0;transition-delay:0s;transition-duration:.2s}

/* this page only: the section takes the demo's orange, and the example's side gets a little more room */
.cnl-canvas{--cnl-accent:#c2410c}
@media (min-width:1024px){.cnl-canvas-pin{grid-template-columns:minmax(0,3.9fr) minmax(0,8.1fr);gap:40px}}
/* short laptop screens: the four steps sit a little closer, so the open step is never cut off at the bottom */
@media (min-width:1024px) and (max-height:700px){.cnl-canvas-copy .cnl-steps{margin-top:20px}.cnl-canvas-copy .cnl-step-btn{padding:12px 0}.cnl-canvas-copy .cnl-step-body p{padding-bottom:14px}.cnl-canvas-copy .cnl-canvas-text{margin-top:14px}}
