*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#fbf8f2;overscroll-behavior:none}
#pll{--ink:#1d1a16;--muted:#7a7268;--line:#e6dfd2;--paper:#fbf8f2;--brass:#b5862e;--tint:#f1e3c2;--ok:#2f7d5b;--no:#c8553d;
 position:fixed;inset:0;display:flex;flex-direction:column;background:var(--paper);color:var(--ink);
 font-family:"Inter Tight",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
 padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);user-select:none;-webkit-user-select:none}
#pll button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
#pll .bar{display:flex;align-items:center;gap:12px;height:52px;padding:0 14px 0 6px;flex:none}
#pll .x{display:grid;place-items:center;width:44px;height:44px;color:var(--muted);text-decoration:none;font-size:26px;line-height:1}
#pll .prog{flex:1;height:6px;background:var(--line);overflow:hidden;-webkit-mask:repeating-linear-gradient(90deg,#000 0 calc(100%/var(--n,9) - 5px),transparent 0 calc(100%/var(--n,9)));mask:repeating-linear-gradient(90deg,#000 0 calc(100%/var(--n,9) - 5px),transparent 0 calc(100%/var(--n,9)))}
#pll .prog i{display:block;height:100%;width:0;background:var(--brass);transition:width .5s ease}
#pll .spk{display:grid;place-items:center;width:44px;height:44px;margin:0 -8px 0 -6px;color:var(--ink)}
#pll .spk svg{width:24px;height:24px}
#pll .spk .x{display:none}
#pll .spk.off{color:var(--muted)}
#pll .spk.off .w{display:none}
#pll .spk.off .x{display:block}
#pll .ear{width:14px;height:14px;border-radius:50%;background:var(--line);flex:none;transition:transform .08s linear,background .2s}
#pll .ear.on{background:var(--brass)}
#pll .fwd{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:0 -8px 0 -6px;color:var(--muted)}
#pll .fwd[hidden]{display:none}

#pll .stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;gap:clamp(10px,2.4vh,22px);padding:6px 22px 22px;text-align:center;animation:pll-in .35s ease both}
@keyframes pll-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#pll .art{flex:0 1 auto;height:min(38vh,300px);min-height:0;width:100%;margin-top:auto;display:flex;align-items:center;justify-content:center;position:relative}
#pll .art svg{display:block;max-width:100%;max-height:100%;width:100%;height:auto}
#pll .art svg.fig{width:auto;height:100%}
#pll .art svg.wave{max-height:min(100%,120px)}
#pll .txt{flex:none;width:100%;max-width:560px;min-height:9.5em}
#pll .kick{margin:0 0 8px;font-weight:600;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--brass);min-height:1.3em}
#pll h1{margin:0;font-family:"Newsreader",Georgia,serif;font-weight:500;font-size:clamp(31px,8.4vw,46px);line-height:1.08;letter-spacing:-.01em;text-wrap:balance;white-space:pre-line}
#pll h1.say{font-size:clamp(26px,7vw,40px);line-height:1.18}
#pll .sub{margin:10px auto 0;font-size:clamp(17px,4.6vw,20px);line-height:1.35;color:var(--muted);max-width:26em;min-height:1.35em;text-wrap:balance;transition:color .2s}
#pll .sub.fb{color:var(--ink)}
#pll .sub a.save{color:inherit;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
#pll .who{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px}
#pll .who button{min-height:52px;padding:0 26px;border-radius:26px;border:1.5px solid var(--line);font-weight:600;font-size:18px;color:var(--ink)}
#pll .who button.on{background:var(--ink);border-color:var(--ink);color:var(--paper)}
#pll .dots{display:flex;justify-content:center;gap:10px;margin-top:14px;min-height:14px}
#pll .dots i{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);transition:all .25s}
#pll .dots i.on{background:var(--ok);border-color:var(--ok);transform:scale(1.1)}
#pll .dots i.at{border-color:var(--brass);background:var(--brass)}
#pll .dots.beats{gap:14px}
#pll .dots.beats i{width:12px;height:12px;border:0;background:var(--line);transition:none}
#pll .dots.beats i.on{background:var(--ink);transform:scale(1.35)}
#pll .act{flex:none;width:100%;margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:64px}
#pll .go{width:min(100%,360px);min-height:58px;border-radius:29px;background:var(--ink);color:var(--paper);font-weight:600;font-size:19px;letter-spacing:.01em;transition:transform .1s,opacity .2s}
#pll .go:active{transform:scale(.98)}
#pll .go[disabled]{background:none;color:var(--muted);border:1.5px solid var(--line);cursor:default}
#pll .go small{display:block;font-weight:500;font-size:13px;opacity:.8;margin-top:1px}
#pll .lnk{min-height:44px;padding:0 14px;color:var(--muted);font-size:15px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
#pll .lnk.tch{text-decoration:none}
#pll .lnk.tch u{text-underline-offset:3px;text-decoration-color:var(--line)}
#pll .note{margin:2px 0 0;font-size:13.5px;color:var(--muted)}

/* the founding members offer at the end of lesson 5 */
#pll .stage.offer .art{display:none}
#pll .stage.offer .txt{margin-top:auto;min-height:0}
#pll .stage.offer h1{font-size:clamp(30px,8vw,42px)}
#pll .stage.offer .sub{font-size:clamp(16px,4.4vw,19px)}
#pll .stage.offer .dots{display:none}
#pll .price{margin:18px 0 0;font-family:"Newsreader",Georgia,serif;font-size:clamp(20px,5.4vw,24px);color:var(--ink)}
#pll .price b{font-size:clamp(40px,11vw,52px);font-weight:500;letter-spacing:-.01em}
#pll .price s{color:var(--muted);text-decoration-thickness:1.5px}
#pll .stage.offer .sub:empty{display:none}
#pll .stage.offer .kick:empty{display:none}
#pll .stage.offer .act .promise{margin:6px auto 2px;max-width:22em;font-size:13px;text-wrap:balance}
#pll .gets{list-style:none;margin:18px auto 0;padding:0;display:grid;gap:10px;max-width:20em;text-align:left}
#pll .gets li{display:flex;align-items:center;gap:12px;font-size:16px;line-height:1.3;color:var(--ink)}
#pll .gets svg{flex:none;width:22px;height:22px;fill:none;stroke:var(--brass);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:var(--brass)}
#pll .fine.who{margin-top:12px;font-size:13px}
#pll .mail.wait{display:flex;gap:8px;width:100%;max-width:22em;margin:0 auto}
#pll .mail.wait input{flex:1;min-width:0;user-select:text;-webkit-user-select:text;font:inherit;font-size:17px;padding:14px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink)}
#pll .mail.wait button{flex:none;font:inherit;font-weight:600;font-size:17px;padding:0 22px;border:0;border-radius:999px;background:var(--ink);color:var(--paper)}
#pll .fine.consent{max-width:22em;margin:8px auto 0;font-size:13px;text-wrap:balance}
#pll .stage.offer.wl{justify-content:center}
#pll .stage.offer.wl .txt{margin-top:0}
#pll .stage.offer.wl .act{margin:26px 0 0;flex:none;min-height:0}
#pll .stage.offer.wl .gets{width:max-content;max-width:100%}
#pll .stage.offer.wl .coming{margin:18px 0 0;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
#pll .stage.offer.wl .gets{margin:10px auto 0}
#pll .stage.offer.wl .ask{margin:0 0 10px;font-size:17px;font-weight:600;color:var(--ink)}
#pll .stage.offer.wl .fine.who{margin-top:22px}
#pll .stage.offer.wl .fine.sent{margin:-4px 0 8px;font-size:15px}
#pll .stage.end.wl .art{display:block;flex:none;height:auto;margin:0 0 10px}
#pll .stage.end.wl .donek{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;font-size:15px;font-weight:600;color:var(--ok)}
#pll .stage.end.wl .donek .ring{width:22px;border:0}
#pll .stage.end.wl .donek .ring svg{width:62%}
#pll .stage.end.wl .act .lnk{margin-top:6px}
#pll .fine.more{max-width:22em;margin:4px auto 0;text-wrap:pretty}
#pll .stage.offer .act{margin-top:auto;margin-bottom:auto;gap:4px}
#pll .fine{margin:6px 0 0;font-size:14px;color:var(--muted)}
#pll .tick{margin-top:18px;display:flex;flex-direction:column;align-items:center;gap:10px}
#pll .tick label{display:flex;align-items:center;gap:12px;min-height:44px;font-size:16px;cursor:pointer}
#pll .tick input[type=checkbox]{width:22px;height:22px;margin:0;accent-color:var(--ink)}
#pll .tick .mail{display:flex;gap:6px;align-items:center;width:min(100%,360px)}
#pll .tick .mail[hidden]{display:none}
#pll .tick .mail input{flex:1;min-width:0;height:46px;padding:0 14px;border:1.5px solid var(--line);border-radius:23px;background:#fff;font:inherit;font-size:16px;color:var(--ink);user-select:text;-webkit-user-select:text}

/* keyboard */
#pll .kb .w{fill:#fff;stroke:#cfc6b6;stroke-width:1}
#pll .kb .b{fill:var(--ink)}
#pll .kb .k{transition:fill .25s}
#pll .kb .w.hint{fill:#ecd492}
#pll .kb .b.hint{fill:var(--brass)}
#pll .kb .w.soon{fill:var(--tint)}
#pll .kb .b.soon{fill:#6b5a36}
#pll .kb .k.now{fill:var(--brass);transition:none}
#pll .kb .k.ok{fill:var(--ok)}
#pll .kb .w.no{fill:#efc1b6}
#pll .kb .b.no{fill:var(--no)}
#pll .kb .mid{fill:var(--brass)}
#pll .kb .fn{font:600 9px "Inter Tight",system-ui,sans-serif;text-anchor:middle;fill:#fff;pointer-events:none}
#pll .kb .fn.wk{fill:var(--ink)}
#pll .kb .fn.nm{font-size:10.5px}
#pll.talking::after{content:attr(data-skip);position:fixed;left:0;right:0;bottom:max(16px,env(safe-area-inset-bottom));text-align:center;font-size:14px;color:var(--muted);opacity:0;pointer-events:none;animation:pll-tap .3s ease 1.1s forwards}
@keyframes pll-tap{to{opacity:1}}
#pll .roll .drop{fill:var(--brass)}
#pll .kb .sign .nt{fill:var(--ink)}
#pll .kb .sign .nt.o{fill:none;stroke:var(--ink);stroke-width:1.5}
#pll .kb .sign .st{stroke:var(--ink);stroke-width:1.3;stroke-linecap:round;fill:none}
#pll .len .drop{fill:var(--brass)}
#pll .len .track{fill:var(--tint);stroke:var(--brass);stroke-opacity:.45;stroke-width:1}
#pll .len .beat{fill:none;stroke:#cfc6b6;stroke-width:1;stroke-dasharray:2 4}
#pll .len .beat.on{stroke:var(--ink);stroke-width:1.6;stroke-dasharray:none}
#pll .dots.line{display:block;margin-top:12px}
#pll .dots.line svg{display:block;width:100%;max-width:440px;height:auto;margin:0 auto;overflow:visible}
#pll .roll .drop.hit{fill:var(--ok)}
#pll .roll .drop.gone{opacity:.2}
#pll .roll .hitline{stroke:var(--brass);stroke-width:1.5;stroke-linecap:round;fill:none}
#pll .stage.roll .art{height:min(56vh,480px)}

/* posture figure */
#pll .fig .ln{fill:none;stroke:var(--ink);stroke-width:8;stroke-linecap:round;stroke-linejoin:round;transition:stroke .3s}
#pll .fig .thin{fill:none;stroke:#cfc6b6;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
#pll .fig .head{fill:var(--ink)}
#pll .fig .seat{fill:#e6dfd2;transition:fill .3s}
#pll .fig .lvl{stroke:var(--brass);stroke-width:2.5;stroke-dasharray:5 6;opacity:0;transition:opacity .3s}
#pll .fig.c1 .p1{fill:var(--brass)}
#pll .fig.c2 .p2{stroke:var(--brass)}
#pll .fig.c3 .p3{stroke:var(--brass)}
#pll .fig.c3 .lvl{opacity:1}

/* hand pictures */
#pll .art svg.hand{width:auto;height:100%;max-width:100%}
#pll .hand .skin{fill:none;stroke:#eadcbf;stroke-width:25;stroke-linecap:round}
#pll .hand .palm{fill:#eadcbf}
#pll .hand .tip{fill:var(--ink)}
#pll .hand .num{font:600 15px "Inter Tight",system-ui,sans-serif;text-anchor:middle;fill:#fff}
#pll .hand .keytop{fill:#fff;stroke:#cfc6b6;stroke-width:2}
#pll .hand .thin{fill:none;stroke:#cfc6b6;stroke-width:3;stroke-linecap:round}
#pll .hand .arm{fill:none;stroke:var(--ink);stroke-width:13;stroke-linecap:round;stroke-linejoin:round}
#pll .hand .arm.thumb{stroke-width:11}
#pll .hand .ball{fill:none;stroke:var(--brass);stroke-width:2.5;stroke-dasharray:5 6}

/* listening ring, success badge */
#pll .ring{width:min(46vw,190px);aspect-ratio:1;border-radius:50%;border:3px solid var(--line);display:grid;place-items:center;position:relative;transition:border-color .3s,background .3s}
#pll .ring::before{content:"";position:absolute;inset:-3px;border-radius:50%;border:3px solid var(--brass);opacity:.55;animation:pll-ring 1.8s ease-out infinite}
@keyframes pll-ring{from{transform:scale(.72);opacity:.6}to{transform:scale(1.18);opacity:0}}
#pll .ring svg{width:46%;height:auto;opacity:0;transform:scale(.6);transition:all .3s}
#pll .ring.ok{border-color:var(--ok);background:var(--ok)}
#pll .ring.ok::before{display:none}
#pll .ring.ok svg{opacity:1;transform:none}
#pll .badge{position:absolute;left:50%;top:50%;width:92px;height:92px;margin:-46px 0 0 -46px;border-radius:50%;background:var(--ok);display:grid;place-items:center;box-shadow:0 10px 30px rgba(47,125,91,.35);animation:pll-pop .35s cubic-bezier(.2,1.4,.4,1) both}
#pll .badge svg{width:46px;height:auto}
@keyframes pll-pop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
#pll .big{font-family:"Newsreader",Georgia,serif;font-weight:500;font-size:clamp(70px,24vw,120px);line-height:1}
#pll .big sub{font-size:.4em;vertical-align:baseline;margin-left:2px;color:var(--muted)}

/* the lesson's last screen: the badge, the words and the buttons as one block in the middle; the picture box is exactly the badge, so the badge never runs into the words */
#pll .stage.end .art{flex:none;height:auto}
#pll .stage.end .ring{width:min(46vw,190px,26vh)}
#pll .stage.end .act{flex:none;margin-top:clamp(2px,1.2vh,12px);margin-bottom:auto;min-height:0}
#pll .sub span.t{white-space:nowrap}
@media (orientation:portrait) and (max-height:520px){#pll .stage.end .ring{width:18vh}}

/* phone lying sideways on the music rack: put the picture beside the words */
@media (orientation:landscape) and (max-height:540px){
 #pll .bar{height:42px}
 #pll .stage{padding:0 26px 12px;gap:8px}
 #pll h1.say{font-size:clamp(22px,3.8vw,30px)}
 #pll .stage.side{display:grid;grid-template-columns:minmax(0,36%) minmax(0,1fr);grid-template-areas:"art txt" "art act";align-content:center;column-gap:30px;row-gap:14px;text-align:left}
 #pll .stage.side .art{grid-area:art;align-self:center;height:min(64vh,250px);margin:0}
 #pll .stage.roll .art{height:min(80vh,300px)}
 #pll .stage.side .txt{grid-area:txt;align-self:end;max-width:none;min-height:0}
 #pll .stage.side .sub{margin-left:0}
 #pll .stage.side .dots{justify-content:flex-start}
 #pll .stage.side .dots.line svg{margin:0}
 #pll .stage.side .act{grid-area:act;align-self:start;align-items:flex-start;margin:0;min-height:0}
 #pll .stage.side .go{width:250px}
 #pll .stage.side .lnk{padding-left:0}
 #pll h1{font-size:clamp(26px,5.2vw,38px)}
 #pll .txt{min-height:0}
 #pll .kick{margin-bottom:4px}
 #pll .sub{margin-top:6px;font-size:17px}
 #pll .dots{margin-top:8px}
 #pll .act{min-height:0}
 #pll .go{min-height:50px}
 #pll .art{height:min(40vh,170px)}
 #pll .ring{width:min(30vh,130px)}
 #pll .who{margin-top:12px;gap:8px}
 #pll .who button{min-height:44px;padding:0 20px;font-size:17px}
 #pll .stage.end .ring{width:min(30vh,130px)}
 #pll .big{font-size:clamp(56px,18vh,90px)}
}
/* tablets and laptops */
@media (min-width:700px) and (min-height:560px){
 #pll .bar{height:60px;padding:0 22px 0 12px}
 #pll .stage{padding:8px 40px 36px;gap:26px}
 #pll .art{height:min(42vh,380px)}
 #pll .stage.roll .art{height:min(54vh,560px)}
 #pll .art svg.kb{max-width:760px}
 #pll h1{font-size:clamp(40px,5vw,56px)}
 #pll h1.say{font-size:clamp(34px,4vw,46px)}
 #pll .sub{font-size:22px}
 #pll .kick{font-size:15px}
 #pll .go{min-height:64px;font-size:21px;width:min(100%,400px)}
 #pll .txt{max-width:720px}
 #pll .note{font-size:15px}
 #pll .lnk{font-size:17px}
 #pll .go small{font-size:14px}
}
@media (prefers-reduced-motion:reduce){#pll *{animation-duration:.01s!important;transition-duration:.01s!important}}

/* course home */
#pll.home{user-select:auto;-webkit-user-select:auto}
#pll.home .stage{overflow:auto;gap:0;animation:none}
#pll.home .txt{min-height:0;margin-top:clamp(8px,4vh,40px)}
#pll.home .unit{margin:26px 0 0;width:100%;max-width:520px;text-align:left;font-weight:600;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
#pll .list{list-style:none;margin:18px 0 0;padding:0;width:100%;max-width:520px;text-align:left}
#pll .list a{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:76px;padding:12px 4px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
#pll .list .num{display:block;font-weight:600;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--brass)}
#pll .list .ttl{display:block;margin-top:2px;font-family:"Newsreader",Georgia,serif;font-weight:500;font-size:24px;line-height:1.15}
#pll .list .tick{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ok)}
#pll .list .tick.no{background:none;border:2px solid var(--line)}
#pll .list .tick svg{width:18px;height:18px}
#pll.home .act{padding:22px 0 4px;position:sticky;bottom:0;background:linear-gradient(transparent,var(--paper) 30%)}
#pll a.go{display:grid;place-items:center;text-decoration:none}