/* Nexus360 live product showcase (showcase.js runs the timeline). The laptop screen is drawn in em
   units at 60em wide, so it scales with the laptop; the phone screen is drawn at 18em wide. */
.showcase{position:relative;max-width:1120px;margin-top:56px;padding-bottom:40px}
.sc-laptop{position:relative;width:84%;margin:0;container-type:inline-size}
.sc-screen{font-size:calc(100cqw / 61);aspect-ratio:16/10;overflow:hidden;border:.55em solid #0b0c0e;border-radius:1em 1em .5em .5em;background:#f1f3f7;box-shadow:0 40px 80px -40px rgba(0,0,0,.7),0 0 0 1px #303338}
.sc-laptop::after{content:"";display:block;width:112%;height:1.4cqw;margin:0 -6%;border-radius:0 0 1.2cqw 1.2cqw;background:linear-gradient(#bec3cd,#9499a4);box-shadow:0 14px 30px -12px rgba(0,0,0,.6)}
.sc-app{display:grid;grid-template-columns:3.4em minmax(0,1fr);height:100%;color:#17191c;font-size:1em;line-height:1.3}
.sc-side{display:flex;flex-direction:column;align-items:center;gap:1.1em;padding:1em 0;background:#181a1d}
.sc-side b{display:grid;place-items:center;width:1.9em;height:1.9em;border-radius:.5em;background:#87a7e6;color:#181a1d;font-size:.95em}
.sc-side i{width:1.1em;height:1.1em;border-radius:.3em;background:#3d4148}
.sc-side i.on{background:#87a7e6}
.sc-main{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:.75em;padding:.9em 1.1em;min-width:0}
.sc-top{display:flex;align-items:center;gap:1em}
.sc-top strong{font-size:1.15em}
.sc-pick{padding:.25em .6em;border:1px solid #d2d7e0;border-radius:.4em;font-size:.72em;color:#5a5f69}
.sc-search{flex:1;padding:.4em .8em;border-radius:2em;background:#fff;border:1px solid #d2d7e0;color:#777d88;font-size:.72em}
.sc-alert{display:flex;align-items:center;gap:.7em;padding:.55em .8em;border-radius:.6em;background:#fdf1e7;border:1px solid #f1cdb2;font-size:.75em;color:#7a3a22}
.sc-alert b{white-space:nowrap}
.sc-alert>span:last-child{color:#9a6a52;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sc-dot{flex:none;width:.6em;height:.6em;border-radius:50%;background:#477ae0;box-shadow:0 0 0 .25em rgba(60,103,190,.18)}
.sc-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7em}
.sc-kpis>div,.sc-card{min-width:0;padding:.7em .8em;border:1px solid #d8dce4;border-radius:.7em;background:#fff}
.sc-kpis small,.sc-card small{display:block;color:#6a6f78;font-size:.68em;font-weight:600;letter-spacing:.02em}
.sc-kpis b{display:block;margin-top:.15em;font-size:1.35em;letter-spacing:-.02em}
.sc-kpis em{font-style:normal;font-size:.62em;color:#1d7a4f;font-weight:600}
.sc-kpis>div:nth-child(2) em{color:#b4442b}
.sc-row{display:grid;grid-template-columns:1.1fr 1fr;gap:.7em;min-height:0}
.sc-chart{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.sc-bars{display:flex;align-items:flex-end;gap:.7em;padding:.6em .2em 0;min-height:0}
.sc-bars i{flex:1;height:var(--h);border-radius:.3em .3em 0 0;background:linear-gradient(#5180de,#3567cc);transform-origin:bottom}
.sc-months{display:flex;gap:.7em;padding:.3em .2em 0;font-size:.6em;color:#777d88}
.sc-months span{flex:1;text-align:center}
.sc-feed{list-style:none;margin:.5em 0 0;padding:0;display:grid;gap:.45em;font-size:.72em}
.sc-feed li{display:grid;grid-template-columns:2em minmax(0,1fr) auto;align-items:center;gap:.6em;padding:.35em .45em;border-radius:.5em}
.sc-feed li span{display:grid;place-items:center;width:2em;height:2em;border-radius:.5em;background:#dce3f1;color:#3567cc;font-size:.8em;font-weight:800}
.sc-feed li span.ok{background:#dcefe2;color:#1d7a4f}
.sc-feed li em{font-style:normal;color:#777d88;font-size:.9em}
.sc-ai{display:grid;gap:.5em}
.sc-ask{display:flex;align-items:center;gap:.6em;padding:.45em .7em;border-radius:2em;background:#ecf0f7;font-size:.78em}
.sc-spark{color:#477ae0}
.sc-q::after{content:"";display:inline-block;width:1px;height:1em;margin-left:2px;background:#17191c;vertical-align:-.15em;opacity:0}
.sc-ai table{width:100%;border-collapse:collapse;font-size:.7em}
.sc-ai td{padding:.35em .4em;border-top:1px solid #e2e6ed}
.sc-ai td:first-child{font-weight:700}
.sc-ai i,.sc-checks li::before{font-style:normal}
.sc-ai i{padding:.15em .55em;border-radius:1em;font-weight:700;font-size:.92em}
.sc-ai i.late{background:#fbe1d8;color:#a33a1f}.sc-ai i.due{background:#f7e8c8;color:#7c5210}.sc-ai i.ok{background:#dcefe2;color:#1d6b45}

/* Phone: overlaps the laptop's lower right corner. */
.sc-phone{position:absolute;right:0;bottom:0;width:21%;max-width:230px;container-type:inline-size;z-index:2}
.sc-phone-screen{font-size:calc(100cqw / 18);aspect-ratio:9/18.5;overflow:hidden;display:grid;align-content:start;gap:.7em;padding:2.2em .9em .9em;border:.5em solid #0b0c0e;border-radius:2.4em;background:#f1f3f7;color:#17191c;line-height:1.3;box-shadow:0 30px 60px -24px rgba(0,0,0,.75),0 0 0 1px #303338;position:relative}
.sc-phone-screen::before{content:"";position:absolute;top:.6em;left:50%;width:4.5em;height:1.1em;margin-left:-2.25em;border-radius:1em;background:#0b0c0e}
.sc-p-top{display:flex;align-items:center;justify-content:space-between}
.sc-p-top b{font-size:1.15em}
.sc-p-count{display:grid;place-items:center;min-width:1.6em;height:1.6em;border-radius:1em;background:#477ae0;color:#fff;font-size:.75em;font-weight:800}
.sc-p-card{display:grid;gap:.35em;padding:.8em;border:1px solid #d8dce4;border-radius:.9em;background:#fff}
.sc-p-card small{color:#6a6f78;font-size:.7em;font-weight:600}
.sc-p-card b{font-size:1.05em}
.sc-checks{list-style:none;margin:.2em 0;padding:0;display:grid;gap:.25em;font-size:.72em;color:#45484d}
.sc-checks li::before{content:"✓ ";color:#1d7a4f;font-weight:800}
.sc-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:.5em;margin-top:.3em;font-size:.8em;font-weight:700;text-align:center}
.sc-actions span{padding:.55em;border-radius:.6em}
.sc-reject{border:1px solid #d2d7e0;color:#5a5f69}
.sc-approve{background:#1d7a4f;color:#fff;transition:transform .15s ease}
.sc-done{display:none;align-items:center;justify-content:center;margin-top:.3em;padding:.55em;border-radius:.6em;background:#dcefe2;color:#1d6b45;font-size:.85em;font-weight:800}
.sc-p-list{display:grid;gap:.4em;font-size:.72em}
.sc-p-list small{color:#6a6f78;font-weight:600}
.sc-p-list p{display:flex;align-items:center;gap:.5em;margin:0;padding:.4em;border-radius:.5em;background:#fff;border:1px solid #e2e6ed}
.sc-p-list span{display:grid;place-items:center;width:1.8em;height:1.8em;border-radius:.4em;background:#dce3f1;color:#3567cc;font-size:.75em;font-weight:800}
.sc-p-ai{display:grid;gap:.35em;font-size:.72em}
.sc-p-ai small{color:#6a6f78;font-weight:600}
.sc-p-q{justify-self:end;margin:0;padding:.45em .7em;border-radius:.8em .8em .2em .8em;background:#c1cee8;color:#252b38}
.sc-p-a{display:grid;margin:0;padding:.55em .7em;border-radius:.8em .8em .8em .2em;background:#fff;border:1px solid #e2e6ed}
.sc-p-a span{color:#a33a1f;font-size:.9em}
.sc-caption{margin:28px 0 0;text-align:center;font-size:13px;color:var(--muted)}

/* Final (and reduced-motion) state: everything shown, the phone approval done. */
.sc-phone .sc-p-card.is-approved .sc-actions{display:none}
.sc-phone .sc-p-card.is-approved .sc-done{display:flex}

/* Timeline states, only when showcase.js is running it. */
@media(prefers-reduced-motion:no-preference){
.showcase.is-live .sc-bars i{transform:scaleY(0);transition:transform .9s cubic-bezier(.16,1,.3,1) calc(var(--i)*90ms)}
.showcase.is-live.show-chart .sc-bars i{transform:none}
.showcase.is-live .sc-kpis>div{opacity:0;transform:translateY(.5em);transition:opacity .5s ease,transform .6s cubic-bezier(.16,1,.3,1)}
.showcase.is-live.show-kpis .sc-kpis>div{opacity:1;transform:none}
.showcase.is-live.show-kpis .sc-kpis>div:nth-child(2){transition-delay:.08s}.showcase.is-live.show-kpis .sc-kpis>div:nth-child(3){transition-delay:.16s}.showcase.is-live.show-kpis .sc-kpis>div:nth-child(4){transition-delay:.24s}
.showcase.is-live .sc-feed li,.showcase.is-live .sc-ai tr,.showcase.is-live .sc-p-list p,.showcase.is-live .sc-p-ai p{opacity:0;transform:translateY(.6em);transition:opacity .45s ease,transform .5s cubic-bezier(.16,1,.3,1),background-color 1.2s ease}
.showcase.is-live .is-in{opacity:1!important;transform:none!important}
.showcase.is-live .sc-feed li.sc-new.is-in{background:#e6f4ea}
.showcase.is-live .sc-q.is-typing::after{opacity:1;animation:sc-caret .8s steps(1) infinite}
@keyframes sc-caret{50%{opacity:0}}
.showcase.is-live .sc-approve.is-pressing{transform:scale(.92)}
.showcase.is-live .sc-p-card.is-approved{animation:sc-approved .6s ease-out}
@keyframes sc-approved{from{box-shadow:0 0 0 .4em rgba(29,122,79,.25)}}
.showcase.is-live .sc-dot{animation:sc-pulse 1.8s ease-out infinite}
@keyframes sc-pulse{0%{box-shadow:0 0 0 0 rgba(60,103,190,.45)}70%,100%{box-shadow:0 0 0 .6em rgba(60,103,190,0)}}
.showcase.is-live.is-resetting .sc-screen,.showcase.is-live.is-resetting .sc-phone-screen{opacity:.55;transition:opacity .5s ease}
}

/* Phones: the phone frame alone, centred and larger. */
@media(max-width:700px){
.showcase{margin-top:36px;padding-bottom:0}
.sc-laptop{display:none}
.sc-phone{position:relative;right:auto;bottom:auto;width:min(78%,290px);margin:0 auto}
.sc-caption{margin-top:20px}
}

/* Desktop: text and the live showcase side by side, so the Nexus360 section fits one screen. */
.nexus-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);gap:56px;align-items:center}
.nexus-layout .showcase{margin:0}
.nexus-layout .sc-caption{width:79%} /* stays clear of the phone, which starts at 79% */
@media(max-width:1050px){.nexus-layout{grid-template-columns:1fr;gap:40px}}
@media(max-width:700px){.nexus-layout .sc-caption{width:auto}}

/* Phones: one problem -> solution step at a time above the phone (showcase.js); the rest of the screen dims.
   Without animation all three steps are listed. */
.sc-steps{display:none}
@media(max-width:700px){
.sc-steps{display:grid;gap:14px;list-style:none;margin:0 0 20px;padding:0;text-align:center}
.sc-steps li{display:grid;gap:4px}
.sc-phone-screen{aspect-ratio:9/15.5} /* shorter frame: no empty space under the content, caption and phone fit one screen */
.sc-steps b{font-size:18px;line-height:1.3;color:#fda4af}
.sc-steps span{font-size:16px;line-height:1.4;color:#86efac}
.showcase.is-live .sc-steps{gap:0}
.showcase.is-live .sc-steps li{grid-area:1/1;opacity:0;transform:translateY(8px);transition:opacity .35s ease,transform .45s cubic-bezier(.16,1,.3,1)}
.showcase.is-live .sc-steps li.is-on{opacity:1;transform:none}
.showcase.is-live .sc-checks li{opacity:0;transform:translateX(-.4em);transition:opacity .3s ease,transform .35s ease}
.showcase.is-live .sc-phone-screen>*{transition:opacity .35s ease}
.showcase[data-step="1"] :is(.sc-p-ai,.sc-p-list),.showcase[data-step="2"] :is(.sc-p-card,.sc-p-list),.showcase[data-step="3"] :is(.sc-p-card,.sc-p-ai){opacity:.35}
}
