/* Install walkthrough in the finale of index.html.
   .idemo[data-step] picks the frame. Base styles are each step's END state and keyframes only describe how
   it gets there, so with animations off (reduced motion) every step still shows the finished picture. */
.idemo{container-type:inline-size;position:relative;max-width:920px;margin:52px auto 0;text-align:left;border-radius:16px;overflow:hidden;
  border:1px solid #dcdad5;background:#fff;box-shadow:0 50px 100px -44px #3d2c7a80,0 2px 10px #0000000f}
.istage{position:relative;isolation:isolate;border-radius:inherit;height:31em;overflow:hidden;font-size:1.72cqw;line-height:1.5;color:#282331;letter-spacing:-.02em;user-select:none}
.ibar{position:absolute;inset:0 0 auto 0;height:3em;display:flex;align-items:center;gap:.5em;padding:0 1em;background:#f4f4f2;border-bottom:.08em solid #e6e5e1}
.ibar>i{flex:none;width:.75em;height:.75em;border-radius:50%;background:#d9d8d4}
.iaddr{flex:1;min-width:0;height:1.9em;margin:0 .6em;padding:0 1em;display:flex;align-items:center;background:#fff;border-radius:99em;font-size:.9em;color:#6b6a67}
.iaddr span{display:none;white-space:nowrap;overflow:hidden}
.ipuz{flex:none;width:1.9em;height:1.9em;padding:.3em;border-radius:.5em;color:#6b6a67}
.ipuz svg{display:block;width:100%;height:100%}
.iframe{position:absolute;inset:3em 0 0 0;background:#fbfbfa;visibility:hidden}

.idemo[data-step="0"] .f-zip,.idemo[data-step="1"] .f-ext,.idemo[data-step="2"] .f-ext,.idemo[data-step="3"] .f-web{visibility:visible}
.idemo[data-step="0"] .a-zip,.idemo[data-step="1"] .a-ext,.idemo[data-step="2"] .a-ext,.idemo[data-step="3"] .a-web{display:block}
.idemo[data-step="0"] .ipuz{visibility:hidden}

/* 1. unzip */
.ifile{position:absolute;top:8.4em;width:9em;margin-left:-4.5em;text-align:center;font-weight:600;font-size:1em}
.ifile svg{display:block;width:6.4em;height:6.4em;margin:0 auto .5em}
.ifile.zip{left:calc(50% - 9em)}
.ifile.dir{left:calc(50% + 9em)}
.iarrow{position:absolute;left:calc(50% - 2.6em);top:11em;width:5.2em;height:1.4em;transform-origin:0 50%;color:#9b9a97}
.inote{position:absolute;inset:auto 0 3.4em 0;text-align:center;color:#9b9a97;font-size:.95em}

/* 2 and 3. chrome://extensions */
.ihead{position:absolute;inset:0 0 auto 0;height:3.6em;display:flex;align-items:center;justify-content:space-between;padding:0 1.6em;background:#fff;border-bottom:.08em solid #e9e9e7}
.ihead b{font-size:1.1em}
.ihead span{display:flex;align-items:center;gap:.7em;font-size:1em}
.itog{flex:none;position:relative;width:2.6em;height:1.4em;border-radius:99em;background:#8062e8}
.itog::after{content:'';position:absolute;top:.2em;left:1.4em;width:1em;height:1em;border-radius:50%;background:#fff}
.itools{position:absolute;inset:3.6em 0 auto 0;height:3.4em;display:flex;align-items:center;gap:.7em;padding:0 1.6em;background:#fff;border-bottom:.08em solid #e9e9e7;overflow:hidden}
.itools span{flex:none;white-space:nowrap;border:.08em solid #dcdad5;border-radius:99em;padding:.25em 1em;font-size:.85em;font-weight:600;color:#1a1a1a}
.icards{position:absolute;inset:8.4em 1.6em auto 1.6em;display:grid;grid-template-columns:1fr 1fr;gap:1.1em}
.icard{height:8.6em;border-radius:1em;background:#fff;border:.08em solid #e6e5e1;padding:1em}
.icard .t{display:flex;align-items:center;gap:.6em;font-weight:800}
.icard img{width:2.2em;height:2.2em}
.icard p{margin:.5em 0 0;font-size:.82em;color:#6b6a67;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icard .itog{margin:.7em 0 0 auto;font-size:.8em}
.icard.ph i{display:block;height:.8em;border-radius:.4em;background:#eeedea;margin-top:.8em;width:80%}
.icard.ph i:first-child{width:45%;margin-top:.4em}
.icard.yogi{visibility:hidden}
.idemo[data-step="2"] .icard.yogi{visibility:inherit;border-color:#8062e8;box-shadow:0 0 0 .25em #f1edfc}
.ishade{position:absolute;inset:0;background:#28203240;opacity:0}
.ipick{position:absolute;left:50%;top:calc(50% - 6.5em);width:24em;height:13em;margin-left:-12em;background:#fff;border-radius:1em;padding:1em 1.2em;
  box-shadow:0 1.4em 4em -1em #28203299;opacity:0}
.ipick b{display:block;font-size:.9em}
.ipick .row{display:flex;align-items:center;gap:.6em;height:2.2em;margin-top:.5em;padding:0 .7em;border-radius:.5em;font-size:.95em}
.ipick .row svg{width:1.5em;height:1.5em;flex:none}
.ipick .row.other{color:#b4b3af}
.ipick .acts{position:absolute;right:1.2em;bottom:1em;display:flex;gap:.6em}
.ipick .acts span{width:5em;height:2.1em;display:grid;place-items:center;border-radius:.6em;font-size:.9em;font-weight:700;background:#f1f1ef}
.ipick .acts span:last-child{background:#1a1a1a;color:#fff}

/* 4. open Yogi on a page */
.f-web .line{height:.9em;border-radius:.45em;background:#e9e9e7;margin:1.1em 2.4em 0}
.f-web .hero-ph{height:8em;border-radius:1em;margin:2em 2.4em 0;background:linear-gradient(120deg,var(--t-violet),var(--t-mint))}
.imenu{position:absolute;right:1.2em;top:.4em;width:17em;background:#fff;border-radius:.9em;border:.08em solid #e6e5e1;padding:.7em;box-shadow:0 1em 3em -1em #28203280;opacity:0;transform-origin:100% 0}
.imenu small{display:block;padding:0 .5em .3em;font-size:.82em;color:#9b9a97}
.imenu div{display:flex;align-items:center;gap:.6em;height:2.6em;padding:0 .5em;border-radius:.6em;font-weight:700}
.imenu img{width:1.7em;height:1.7em}
.iyogi{position:absolute;right:1.2em;bottom:1.2em;width:20em;background:#fff;border:.08em solid #dcdad5;border-radius:1.2em;padding:1em 1.1em;box-shadow:0 .5em 2em #28203233;transform-origin:100% 100%}
.iyogi .t{display:flex;align-items:center;gap:.5em;font-weight:800}
.iyogi .t img{width:1.8em;height:1.8em}
.iyogi .f{display:flex;justify-content:space-between;align-items:center;gap:.5em;margin-top:.7em;padding:.45em .7em;background:#f7f7f5;border:.08em solid #e9e9e7;border-radius:.8em;font-size:.88em;color:#6b6a67}
.iyogi .f b{flex:none;width:1.8em;height:1.8em;border-radius:.5em;background:#1a1a1a;color:#fff;display:grid;place-items:center;font-weight:400}

/* mouse pointer */
.iptr{position:absolute;z-index:5;width:1.7em;height:1.7em;margin:-.15em 0 0 -.3em;filter:drop-shadow(0 .15em .3em #0006)}
.iptr svg{display:block;width:100%;height:100%}
.idemo[data-step="0"] .iptr{left:calc(50% - 9em);top:15em}
.idemo[data-step="1"] .iptr{left:calc(100% - 2.9em);top:4.8em}
.idemo[data-step="2"] .iptr{left:calc(50% + 9.2em);top:21.6em}
.idemo[data-step="3"] .iptr{left:calc(100% - 13em);top:6.6em}

/* timelines */
.idemo[data-step="0"] .iptr{animation:i-p0 4.4s var(--ease) both}
.idemo[data-step="0"] .ifile.zip{animation:i-drop .7s var(--ease) both}
.idemo[data-step="0"] .ifile.zip svg{animation:i-press .5s 1.75s both}
.idemo[data-step="0"] .iarrow{animation:i-grow .5s 2.3s var(--ease) both}
.idemo[data-step="0"] .ifile.dir{animation:i-pop .6s 2.7s var(--ease) both}
.idemo[data-step="0"] .inote{animation:i-fade .5s 3.1s both}
@keyframes i-p0{0%,12%{left:calc(50% + 2em);top:27em}36%,100%{left:calc(50% - 9em);top:15em}}
@keyframes i-drop{from{opacity:0;transform:translateY(-5em)}}
@keyframes i-press{40%{transform:scale(.88)}}
@keyframes i-grow{from{opacity:0;transform:scaleX(0)}}
@keyframes i-pop{from{opacity:0;transform:scale(.5)}}
@keyframes i-fade{from{opacity:0}}

.idemo[data-step="1"] .a-ext{animation:i-type 1.1s steps(19) .3s both}
.idemo[data-step="1"] .f-ext{animation:i-fade .35s 1.6s both}
.idemo[data-step="1"] .ihead .itog{animation:i-trk .25s 3.1s both}
.idemo[data-step="1"] .ihead .itog::after{animation:i-knob .25s 3.1s both}
.idemo[data-step="1"] .itools{animation:i-open .4s 3.3s var(--ease) both}
.idemo[data-step="1"] .iptr{animation:i-p1 4.8s var(--ease) both}
@keyframes i-type{from{max-width:0}to{max-width:16em}}
@keyframes i-trk{from{background:#cfcecb}}
@keyframes i-knob{from{left:.2em}}
@keyframes i-open{from{opacity:0;transform:translateY(-1em)}}
@keyframes i-p1{0%,38%{left:50%;top:22em}60%,100%{left:calc(100% - 2.9em);top:4.8em}}

.idemo[data-step="2"] .itools span:first-child{animation:i-hit .5s 1.15s both}
.idemo[data-step="2"] .ishade{animation:i-modal 3.2s 1.5s both}
.idemo[data-step="2"] .ipick{animation:i-modal 3.2s 1.5s both}
.idemo[data-step="2"] .row.pick{background:#f1edfc;animation:i-pickrow .2s 2.75s both}
.idemo[data-step="2"] .acts span:last-child{animation:i-press .4s 4.15s both}
.idemo[data-step="2"] .icard.yogi{animation:i-pop .6s 4.8s var(--ease) both}
.idemo[data-step="2"] .iptr{animation:i-p2 6.2s both}
@keyframes i-hit{40%{background:#f1edfc;transform:scale(.95)}}
@keyframes i-modal{0%{opacity:0}8%,92%{opacity:1}100%{opacity:0}}
@keyframes i-pickrow{from{background:#f1edfc00}}
@keyframes i-p2{0%{left:calc(100% - 2.9em);top:4.8em;animation-timing-function:var(--ease)}17%,27%{left:9em;top:8.4em;animation-timing-function:var(--ease)}
  41%,50%{left:calc(50% - 6em);top:15.9em;animation-timing-function:var(--ease)}64%,100%{left:calc(50% + 9.2em);top:21.6em}}

.idemo[data-step="3"] .ipuz{animation:i-puz .5s 1.1s both}
.idemo[data-step="3"] .imenu{animation:i-menu 1.8s 1.3s both}
.idemo[data-step="3"] .imenu div{animation:i-hit .5s 2.6s both}
.idemo[data-step="3"] .iyogi{animation:i-pop .6s 3.2s var(--ease) both}
.idemo[data-step="3"] .iptr{animation:i-p3 5.4s both}
@keyframes i-puz{40%{background:#e6e5e1;transform:scale(.9)}}
@keyframes i-menu{0%{opacity:0;transform:scale(.9)}12%,88%{opacity:1;transform:none}100%{opacity:0;transform:scale(.96)}}
@keyframes i-p3{0%{left:50%;top:22em;animation-timing-function:var(--ease)}19%,30%{left:calc(100% - 1.95em);top:1.5em;animation-timing-function:var(--ease)}
  46%,100%{left:calc(100% - 13em);top:6.6em}}

/* the step list drives the demo: the bar on the current step is its clock */
.finale li{position:relative}
.finale li button{display:block;margin:0 0 4px;padding:0;border:0;background:none;font:inherit;font-weight:700;font-size:16.5px;letter-spacing:inherit;color:var(--ink);text-align:left}
.js .finale li button{cursor:pointer}
.js .finale li button::before{content:'';position:absolute;inset:0}
.finale li button{color:var(--muted);transition:color .3s}
.finale li.on,.finale li.on button{color:var(--ink)}
.finale li::before{border-top-color:var(--line)}
.finale li::after{content:'';position:absolute;left:0;right:0;top:0;height:2px;background:var(--ink);transform:scaleX(0);transform-origin:0 50%}
.finale li.on::after{transform:none;animation:i-clock var(--t) linear both}
@keyframes i-clock{from{transform:scaleX(0)}}
.ictl{display:none;margin:18px auto 0;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--muted);font:inherit;font-size:14px;padding:5px 16px;cursor:pointer}
.ictl:hover{color:var(--ink)}
.js .ictl{display:inline-block}
.finale:not(.playing) .idemo *,.finale:not(.playing) .idemo *::after,.finale:not(.playing) li::after{animation-play-state:paused!important}

@media (max-width:600px){.istage{font-size:2.7cqw}}
@media (prefers-reduced-motion:reduce){
  .js .ictl{display:none}
  .iptr{display:none}
  .idemo[data-step="2"] .icard.yogi{visibility:inherit}
}
