/* Livie G home page: layout and sections. Uses tokens.css. The page is an octave: eight sections, eight notes.
   Every rule here describes the finished resting state. Motion lives only at the end of the file, inside
   prefers-reduced-motion: no-preference, and hidden states exist only in @keyframes from{}. */

[hidden]{display:none !important}

/* focused fields and #targets stop clear of the sticky header and, on phones, of the fixed price bar
   (--pbar-h is the bar's real height with the safe area, kept up to date by site.js; the router's own #hash scroll measures the header) */
html{scroll-padding-top:96px; scroll-padding-bottom:16px}
@media (max-width:767px){
  html{scroll-padding-top:88px; scroll-padding-bottom:calc(var(--pbar-h, calc(68px + env(safe-area-inset-bottom, 0px))) + 16px)}
}

/* ---------- grid ---------- */
.grid12{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--s3)}
.grid12 > *{grid-column:1 / -1; min-width:0}
/* leave room for the octave rail on narrow desktops (the rail only exists on the home view) */
@media (min-width:1100px) and (max-width:1279px){
  .pg--home .wrap{padding-left:84px}
}

.h2{font-size:clamp(36px,5vw,76px); letter-spacing:-.03em}
.cta-row{display:flex; flex-wrap:wrap; align-items:center; gap:12px}
.link:hover{text-decoration-thickness:3px}
.txtbtn{display:inline-flex; align-items:center; min-height:44px; padding:0; border:0; background:none; cursor:pointer;
  font-weight:700; font-size:16px; text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:2px}
.txtbtn:hover{text-decoration-thickness:3px}
.txtbtn--light{color:#fff}

.skip{position:absolute; left:12px; top:12px; z-index:100; padding:12px 16px; border-radius:6px; background:var(--ink); color:#fff;
  font-weight:700; text-decoration:none; transform:translateY(-200%)}
.skip:focus{transform:none}

/* ---------- top strip ---------- */
.topstrip{border-bottom:1px solid var(--hair); font-size:13px; line-height:1.4; color:var(--mute)}
.topstrip__in{display:flex; flex-wrap:wrap; justify-content:space-between; gap:2px 24px; padding-block:9px}
.topstrip__right{display:flex; flex-wrap:wrap; gap:2px 24px}
.topstrip a{color:var(--ink); font-weight:700; text-underline-offset:3px}
/* the trial link fills the strip's height as a tap area; the strip itself keeps its size */
.topstrip__right a{display:inline-flex; align-items:center; min-height:36px; margin-block:-9px}
.topstrip a:hover{text-decoration-thickness:2px}
@media (max-width:559px){
  .topstrip__in{padding-block:7px; column-gap:12px}
  .topstrip__right{display:contents}
  .topstrip__right a{order:2; position:relative; z-index:1; align-items:flex-start; min-height:44px; padding-top:7px; margin:-7px 0 -19px}
  .topstrip__right span{order:3; flex-basis:100%}
}

/* ---------- header ---------- */
.hdr{position:sticky; top:0; z-index:60; background:var(--paper); border-bottom:2px solid transparent; transition:border-color .2s}
.hdr.is-scrolled{border-bottom-color:var(--ink)}
.hdr__in{display:flex; flex-wrap:wrap; align-items:center; gap:var(--s3); min-height:76px}
.brand{display:flex; align-items:center; gap:12px; min-height:44px; margin-right:auto; text-decoration:none}
.brand__name{font-family:var(--display); font-weight:800; font-size:28px; line-height:1; letter-spacing:-.03em; white-space:nowrap}
.brand__sub{max-width:8.6em; font-size:12px; font-weight:500; line-height:1.2; color:var(--mute)}
.hdr__ctl{display:flex; align-items:center; gap:12px}
.sound{display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border:2px solid var(--ink); border-radius:6px;
  background:var(--paper); font-size:15px; font-weight:700; cursor:pointer; transition:background .18s, color .18s}
.sound:hover{background:var(--wash)}
.sound[aria-pressed="true"]{background:var(--ink); color:#fff}
.sound__icon{flex:0 0 auto}
.sound__label{display:inline-block; min-width:4.6em; text-align:left}
.sound__wave{display:none}
.sound[aria-pressed="true"] .sound__wave{display:inline}
.sound[aria-pressed="true"] .sound__mute{display:none}
.menu-btn{display:none; width:44px; height:44px; place-items:center; padding:0; border:2px solid var(--ink); border-radius:6px; background:var(--paper); cursor:pointer}
.menu-btn:hover{background:var(--wash)}
.menu-btn__close{display:none}
.menu-btn[aria-expanded="true"] .menu-btn__open{display:none}
.menu-btn[aria-expanded="true"] .menu-btn__close{display:inline}

/* ---------- main menu: five ruled dropdowns on desktop, one full-height accordion panel below 1280 px ---------- */
.mnav__list{display:flex; align-items:center; gap:0; margin:0; padding:0; list-style:none}
.mnav__item{position:relative}
.mnav__btn, .mnav__plain{position:relative; display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 11px; border:0; border-radius:6px;
  background:none; color:var(--ink); font-family:var(--text); font-size:15px; font-weight:500; line-height:1.2; text-decoration:none; white-space:nowrap; cursor:pointer}
.mnav__sq, .mnav__pm{display:none}
/* a short key in the group's note under the label: hover, open and "you are in this group" */
.mnav__btn::after, .mnav__plain::after{content:""; position:absolute; left:11px; right:11px; bottom:5px; height:3px; background:var(--note); transform:scaleX(0); transform-origin:left center; transition:transform .25s var(--ease)}
.mnav__btn:hover::after, .mnav__plain:hover::after, .mnav__item.is-open > .mnav__btn::after,
.mnav__btn.is-current::after, .mnav__plain[aria-current="page"]::after{transform:scaleX(1)}
.mnav__btn.is-current, .mnav__plain[aria-current="page"]{font-weight:700}
.mnav__panel{display:none; position:absolute; left:0; top:calc(100% + 16px); z-index:5; min-width:272px; padding:0 0 10px;
  background:var(--paper); border:2px solid var(--ink); border-radius:0 0 6px 6px}
.mnav__panel::before{content:""; display:block; height:8px; margin-bottom:6px; background:var(--note)}
.mnav__panel::after{content:""; position:absolute; left:-2px; right:-2px; bottom:100%; height:18px}   /* hover bridge across the gap */
.mnav__item.is-open > .mnav__panel{display:block}
.mnav__links{margin:0; padding:0 20px; list-style:none}
.mnav__links li + li{border-top:1px solid var(--hair)}
.mnav__links a{display:flex; align-items:center; gap:12px; min-height:46px; font-size:16px; font-weight:500; line-height:1.25; text-decoration:none}
.mnav__links a::before{content:""; flex:0 0 auto; width:10px; height:10px; background:var(--note); transform:scale(0); transition:transform .2s var(--ease)}
.mnav__links a:hover::before, .mnav__links a:focus-visible::before, .mnav__links a[aria-current="page"]::before{transform:none}
.mnav__links a[aria-current="page"]{font-weight:700}
.mnav__foot{display:none}
@media (min-width:1280px) and (max-width:1399px){ .brand__sub{display:none} .mnav__btn, .mnav__plain{padding:0 9px} .mnav__btn::after, .mnav__plain::after{left:9px; right:9px} }

@media (max-width:1279px){
  .menu-btn{display:grid}
  .mnav{display:none; position:fixed; left:0; right:0; top:var(--nav-top, 64px); bottom:0; z-index:3; overflow-y:auto; overscroll-behavior:contain;
    background:var(--paper)}
  .hdr.is-open{border-bottom-color:var(--ink)}
  .hdr.is-open .mnav{display:block}
  .mnav__in{max-width:720px; margin-inline:auto; padding:4px var(--gut) calc(40px + env(safe-area-inset-bottom, 0px))}
  .mnav__list{flex-direction:column; align-items:stretch}
  .mnav__item{border-bottom:1px solid var(--ink)}
  .mnav__item:last-child{border-bottom:2px solid var(--ink)}
  .mnav__btn, .mnav__plain{width:100%; gap:14px; min-height:68px; padding:0; border-radius:0; text-align:left;
    font-family:var(--display); font-weight:700; font-size:clamp(24px,6.4vw,30px); letter-spacing:-.015em}
  .mnav__btn::after, .mnav__plain::after{display:none}
  .mnav__btn.is-current, .mnav__plain[aria-current="page"]{font-weight:800}
  .mnav__label{flex:1 1 auto}
  .mnav__sq{display:block; flex:0 0 auto; width:12px; height:28px; border-radius:0 0 3px 3px; background:var(--note)}
  .mnav__pm{display:grid; place-items:center; flex:0 0 auto; width:44px; height:44px; font-family:var(--display); font-weight:500; font-size:30px; line-height:1}
  .mnav__pm::before{content:"+"}
  .mnav__btn[aria-expanded="true"] .mnav__pm::before{content:"\2212"}
  .mnav__panel{position:static; min-width:0; padding:0 0 14px 26px; border:0; border-radius:0; background:none}
  .mnav__panel::before, .mnav__panel::after{display:none}
  .mnav__links{padding:0; border-top:1px solid var(--hair)}
  .mnav__links a{min-height:52px; font-size:18px}
  .mnav__foot{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; padding-top:28px}
  .mnav__foot .btn{flex:1 1 220px}
}
@media (max-width:767px){
  .hdr__in{min-height:64px; gap:12px}
  .hdr__ctl{gap:8px}
  .brand__name{font-size:25px}
  .hide-sm{display:none}
}
@media (max-width:559px){ .brand__sub{display:none} }
@media (max-width:419px){
  .sound{padding:0 10px}
  .sound__label{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
}

/* phone progress stripe: seven colors, filled by scroll */
.pstripe{position:absolute; left:0; right:0; top:calc(100% + 2px); height:4px; display:flex; pointer-events:none}
.pstripe i{flex:1 1 0; background:var(--note)}
@media (min-width:1100px){ .pstripe{display:none} }
/* the rail and the stripe belong to the home view only */
body[data-route]:not([data-route="home"]) .pstripe, body[data-route]:not([data-route="home"]) .rail{display:none !important}
.hdr.is-open .pstripe{display:none}

/* ---------- octave rail (desktop) ---------- */
.rail{display:none}
@media (min-width:1100px) and (min-height:560px){
  .rail{display:flex; flex-direction:column; position:fixed; left:12px; top:calc(50% + 38px); z-index:40; transform:translateY(-50%)}
}
.rail__k{position:relative; display:flex; align-items:center; gap:5px; min-width:44px; height:44px; color:var(--ink); text-decoration:none}
.rail__l{width:10px; font-size:12px; font-weight:700; line-height:1; text-align:center; color:var(--mute)}
.rail__bar{width:26px; height:30px; border-radius:0 3px 3px 0; background:var(--note); transform:scaleX(.54); transform-origin:left center}
.rail__name{display:none; position:absolute; left:52px; top:50%; transform:translateY(-50%); padding:4px 7px; border:1px solid var(--ink); border-radius:4px;
  background:var(--paper); font-size:12px; font-weight:700; line-height:1.2; white-space:nowrap}
.rail__k:hover .rail__bar, .rail__k.is-current .rail__bar{transform:scaleX(1)}
.rail__k.is-current .rail__l{color:var(--ink)}
.rail__k:hover .rail__name, .rail__k:focus-visible .rail__name{display:block}
@media (min-width:1420px){ .rail__k.is-current .rail__name{display:block; border-color:transparent; padding-left:0; background:transparent} }
.rail.is-away{visibility:hidden}   /* steps aside while the footer index is on screen */

/* ---------- sections ---------- */
.sec{padding-block:var(--s6)}
.band{background:var(--wash)}
@media (max-width:959px){ .sec{padding-block:var(--s5)} }

/* ---------- 1 hero (C) ---------- */
.hero{padding-top:0; padding-bottom:var(--s5)}
.hero__keys{position:relative}
.hkeys{display:flex; align-items:flex-start; gap:8px}
.hkey{flex:1 1 0; min-width:0; height:var(--len); display:flex; align-items:flex-end; justify-content:center; padding:0 0 12px; border:0; border-radius:0 0 6px 6px;
  background:var(--note); color:var(--on-note); font-family:var(--display); font-weight:800; font-size:24px; line-height:1; cursor:pointer; touch-action:manipulation}
.hkey:hover{box-shadow:inset 0 -6px 0 rgba(18,18,18,.2)}
.hkey.is-hit, .bkey.is-hit{box-shadow:inset 0 -10px 0 rgba(18,18,18,.28)}
.hkey:nth-child(1){--len:160px} .hkey:nth-child(2){--len:149px} .hkey:nth-child(3){--len:138px} .hkey:nth-child(4){--len:127px}
.hkey:nth-child(5){--len:116px} .hkey:nth-child(6){--len:105px} .hkey:nth-child(7){--len:94px}  .hkey:nth-child(8){--len:83px}
.hero__hint p{font-size:15px; font-weight:500; line-height:1.3; color:var(--mute)}
.scale-panel{padding:20px; border-radius:6px; background:var(--ink); color:#fff}
.scale-panel p{font-family:var(--display); font-weight:700; font-size:22px; line-height:1.2; letter-spacing:-.01em}
.scale-panel__row{display:flex; align-items:center; gap:10px; margin-top:16px}
.scale-x{display:grid; place-items:center; width:44px; height:44px; padding:0; border:2px solid #fff; border-radius:6px; background:transparent; color:#fff; cursor:pointer}
.scale-x:hover{background:#2A2A2A}

.hero__h{font-size:clamp(44px,7.2vw,112px); letter-spacing:-.035em; line-height:.96}
.hero__lead{font-size:clamp(18px,1.4vw,19px); line-height:1.5; max-width:34em}
.hero__price span{white-space:nowrap}
.hero__price{font-family:var(--display); font-weight:700; font-size:clamp(24px,2.3vw,32px); line-height:1.15; letter-spacing:-.015em}
.hero__cta-label{font-size:14px; font-weight:700; line-height:1.4; margin-bottom:8px}
.hero__btns{display:flex; flex-wrap:wrap; align-items:center; gap:12px}
.hero__more{display:inline-flex; align-items:center; min-height:44px; margin-left:12px; font-size:16px}
.hero__new{margin-top:12px; font-size:16px; line-height:1.4}
.hero__new .link{display:inline-flex; align-items:center; min-height:44px}
.hero__photo{position:relative; margin:0; overflow:hidden; border-radius:0 0 6px 6px; background:var(--ink); color:#fff}
.hero__photo img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:42% 0}
.hero__photo figcaption{position:absolute; left:0; right:0; bottom:0; padding:20px 22px 22px; display:flex; flex-direction:column; gap:4px}
.hero__photo-name{font-family:var(--display); font-weight:800; font-size:28px; line-height:1; letter-spacing:-.02em}
.hero__photo-note{font-size:15px; line-height:1.35; color:#E9E7E1}

@media (min-width:960px){
  .hero__g{align-items:start}
  .hero__keys{grid-column:1 / 10; grid-row:1; height:168px}
  .hero__hint{position:absolute; right:0; top:104px; width:calc(25% - 6px)}
  .scale-panel{position:absolute; right:0; top:180px; z-index:5; width:min(380px,100%)}
  .hero__h{grid-column:1 / 10; grid-row:2; margin-top:28px}
  .hero__lead, .hero__price{grid-row:3; margin-top:28px; padding-top:18px; border-top:2px solid var(--ink)}
  .hero__lead{grid-column:1 / 6}
  .hero__price{grid-column:6 / 10}
  .hero__cta{grid-column:1 / 10; grid-row:4; margin-top:24px}
  .hero__photo{grid-column:10 / 13; grid-row:1 / 5; align-self:stretch; min-height:520px}
}
@media (max-width:959px){
  .hero__keys{margin-inline:calc(-1 * var(--gut))}
  .hkeys{gap:4px}
  .hkey{border-radius:0 0 4px 4px; padding-bottom:10px}
  .hkey:nth-child(1){--len:112px} .hkey:nth-child(2){--len:105px} .hkey:nth-child(3){--len:98px} .hkey:nth-child(4){--len:91px}
  .hkey:nth-child(5){--len:84px}  .hkey:nth-child(6){--len:77px}  .hkey:nth-child(7){--len:70px} .hkey:nth-child(8){--len:63px}
  .hero__hint{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; column-gap:16px; padding:4px var(--gut) 0}
  .scale-panel{margin:8px var(--gut) 0}
  .hero__h{margin-top:16px}
  .hero__lead{margin-top:16px}
  .hero__price{margin-top:14px}
  .hero__cta{margin-top:22px}
  .hero__btns .btn{flex:1 1 150px}
  .hero__more{margin-left:0}
  .hero__photo{margin-top:var(--s4); aspect-ratio:4 / 5; max-height:640px}
  .hero__photo img{object-position:42% 12%}
}
@media (max-width:480px){ .hkeys{gap:1px} }

.proof{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:var(--s3); margin:var(--s5) 0 0; padding:0; list-style:none; border-top:2px solid var(--ink)}
.proof li{position:relative; padding-top:18px; font-size:16px; font-weight:500; line-height:1.45}
.proof li + li::before{content:""; position:absolute; top:18px; bottom:0; left:calc(var(--s3) / -2); width:1px; background:var(--hair)}
@media (max-width:959px){
  .proof{grid-template-columns:1fr; margin-top:var(--s4)}
  .proof li{padding:14px 0; border-bottom:1px solid var(--hair)}
  .proof li + li::before{display:none}
}

/* ---------- 2 what you get (D) ---------- */
.what-rows{margin:0; padding:0; list-style:none; border-bottom:2px solid var(--ink)}
.what-row{position:relative; display:grid; grid-template-columns:56px minmax(0,4fr) minmax(0,7fr); column-gap:var(--s3); align-items:start; padding:28px 0}
.what-row::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--ink); transform-origin:left center}
.what-row:first-child::before{height:2px}
.what-row .sq{font-size:24px}
.what-row h3{padding-top:6px; font-size:24px; font-weight:700; line-height:1.15; letter-spacing:-.015em}
.what-row p{padding-top:7px; font-size:17px; line-height:1.55}
.what__body .cta-row{margin-top:var(--s4)}
.what__finder{margin-top:var(--s5)}
.what__finder-h{margin-bottom:20px; font-size:clamp(26px,2.6vw,34px); font-weight:800; letter-spacing:-.02em}
lg-finder{display:block; min-height:320px}
@media (min-width:960px){
  .what__h{grid-column:1 / 5; align-self:start}
  .what__body{grid-column:5 / 13}
}
@media (min-width:960px) and (min-height:700px){ .what__h{position:sticky; top:120px} }
@media (max-width:959px){
  .what__h{margin-bottom:var(--s4)}
  .what-row{grid-template-columns:40px minmax(0,1fr); column-gap:16px; padding:22px 0}
  .what-row h3{font-size:22px}
  .what-row p{grid-column:2; padding-top:6px; font-size:16px}
}

/* ---------- 3 a lesson (E) ---------- */
.tl__intro{max-width:30em; margin-top:24px; font-size:18px}
.tl__meter{margin-top:var(--s4)}
.tl__time{font-family:var(--display); font-weight:800; font-size:clamp(72px,9vw,136px); line-height:.9; letter-spacing:-.03em; font-variant-numeric:tabular-nums}
.tl__bar{display:flex; gap:3px; height:20px; margin-top:24px}
.tl-seg{position:relative; min-width:0; overflow:hidden; background:var(--hair)}
.tl-seg:nth-child(1){flex-grow:3} .tl-seg:nth-child(2){flex-grow:5} .tl-seg:nth-child(3){flex-grow:12} .tl-seg:nth-child(4){flex-grow:7} .tl-seg:nth-child(5){flex-grow:3}
.tl-seg i{position:absolute; inset:0; background:var(--note); transform-origin:left center}
.tl.is-live .tl-seg i{transform:scaleX(0)}
.tl.is-live .tl-seg.is-on i{transform:scaleX(1)}
.tl__ends{display:flex; justify-content:space-between; margin-top:8px; font-size:14px; color:var(--mute); font-variant-numeric:tabular-nums}
.tl-steps{margin:0; padding:0; list-style:none; border-top:2px solid var(--ink)}
.tl-step{display:grid; grid-template-columns:96px minmax(0,1fr); column-gap:var(--s3); align-items:start; padding:28px 0 40px; border-bottom:1px solid var(--hair)}
.tl-step__t{display:flex; align-items:center; gap:10px; padding-top:8px; font-family:var(--display); font-weight:700; font-size:20px; line-height:1; font-variant-numeric:tabular-nums}
.tl-step__sq{width:16px; height:16px; flex:0 0 16px; background:var(--note); box-shadow:inset 0 0 0 2px var(--note)}
.tl-step h3{font-size:clamp(28px,3vw,40px); font-weight:800; transition:color .3s}
.tl-step__b > p{max-width:32em; margin-top:12px}
.tl.is-live .tl-step:not(.is-current) .tl-step__sq{background:transparent}
.tl.is-live .tl-step:not(.is-current) h3{font-weight:500; color:var(--mute)}
.tl-step__clip{width:132px; margin:20px 0 0}
.tl-step__clip img{width:100%; height:auto; aspect-ratio:337 / 599; object-fit:cover; border-radius:6px; background:var(--ink)}
.tl-step__clip figcaption{margin-top:8px; font-size:14px; line-height:1.4; color:var(--mute)}
.tl__foot{margin-top:var(--s4)}
.tl__foot p{max-width:34em}
.tl__foot .cta-row{margin-top:24px}
@media (min-width:960px){
  .tl__side{grid-column:1 / 6; align-self:start}
  .tl__main{grid-column:7 / 13}
  .tl-step{min-height:clamp(200px,34vh,340px)}
}
@media (min-width:960px) and (min-height:700px){ .tl__side{position:sticky; top:116px} }
@media (max-width:959px){
  .tl__meter{margin-bottom:var(--s4)}
  .tl__time{font-size:64px}
  .tl-step{grid-template-columns:72px minmax(0,1fr); column-gap:12px; padding:22px 0 28px}
  .tl-step__t{font-size:17px}
}

/* ---------- between E and F: a strip of lesson videos ---------- */
.watch-home{padding-top:0}
.watch-home .grid12{row-gap:0}
.watch-home__head{padding-top:var(--s5); border-top:2px solid var(--ink)}
.watch-home__line{max-width:32em; margin-top:20px; font-size:19px}
.watch-home__all{display:inline-flex; align-items:center; min-height:44px; margin-top:16px; font-size:16px; justify-self:start}
.watch-home__rail{margin-top:var(--s4)}
@media (min-width:960px){
  .watch-home__head{grid-column:1 / -1; grid-row:1; display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--s3); align-items:end}
  .watch-home__head .h2{grid-column:1 / 8}
  .watch-home__line{grid-column:8 / 13; margin-top:0}
  .watch-home__rail{grid-row:2}
  .watch-home__all{grid-row:3; margin-top:20px}
}

/* ---------- 4 voice or piano (F) ---------- */
.teach__h{margin-bottom:var(--s5)}
.teach-blk{display:grid; gap:var(--s4); align-items:start; padding:clamp(24px,4vw,56px); border-radius:6px}
.teach-blk--voice{background:var(--g); color:var(--ink)}
.teach-blk--piano{margin-top:var(--s3); background:var(--ink); color:#fff}
.teach-blk--piano :focus-visible, .scale-panel :focus-visible{outline-color:#fff; box-shadow:0 0 0 2px var(--ink)}
.teach-blk__word{font-size:clamp(64px,8vw,128px); line-height:.88; letter-spacing:-.04em}
.teach-blk--voice .teach-blk__word{color:#fff}
.teach-blk__txt > p{max-width:30em; margin-top:20px; font-size:19px}
.teach-blk__txt > p.teach-blk__small{font-size:15px; color:#D4D1CA}
.teach-blk__txt .cta-row{margin-top:28px}
lg-range{display:block; min-height:380px}
lg-portal-demo{display:block; min-height:460px}
@media (min-width:960px){
  .teach-blk--voice{grid-column:1 / 12}
  .teach-blk--piano{grid-column:2 / 13}
}
@media (min-width:1200px){
  .teach-blk{grid-template-columns:minmax(0,1fr) minmax(420px,520px); column-gap:var(--s5)}
}

.chords__h{font-size:clamp(24px,2.4vw,32px); font-weight:700; letter-spacing:-.015em; color:#fff}
.chords__btns{display:flex; gap:10px; margin-top:20px}
.chord-btn{flex:1 1 0; min-width:0; min-height:64px; border:0; border-radius:6px; background:var(--note); color:var(--on-note);
  font-family:var(--display); font-weight:800; font-size:26px; cursor:pointer; touch-action:manipulation}
.chord-btn:hover{box-shadow:inset 0 -6px 0 rgba(18,18,18,.25)}
.chord-btn.is-on{box-shadow:0 0 0 3px var(--ink), 0 0 0 5px #fff}
.chord-kb{position:relative; display:flex; gap:3px; height:150px; margin-top:20px}
.chord-kb__w{flex:1 1 0; border-radius:0 0 4px 4px; background:#fff; transition:background-color .2s}
.chord-kb__w.is-lit{background:var(--note)}
.chord-kb__b{--bw:calc((100% - 21px) / 8 * .58); position:absolute; top:0; width:var(--bw); height:60%; border-radius:0 0 3px 3px; background:var(--ink);
  left:calc(var(--x) * ((100% - 21px) / 8 + 3px) - 1.5px - var(--bw) / 2)}
.chord-kb__b[data-x="1"]{--x:1} .chord-kb__b[data-x="2"]{--x:2} .chord-kb__b[data-x="4"]{--x:4} .chord-kb__b[data-x="5"]{--x:5} .chord-kb__b[data-x="6"]{--x:6}
.teach-blk .cta-row{column-gap:24px}
.teach-blk__more{display:inline-flex; align-items:center; min-height:44px; font-size:16px}
.chords__foot{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; margin-top:12px}
.chords__out{font-size:15px; color:#D4D1CA}

/* ---------- 5 portal (G) ---------- */
.portal-keys{display:flex; gap:6px; margin-top:24px}
.portal-keys i{width:36px; height:14px; border-radius:0 0 3px 3px; background:var(--note)}
.portal__txt{margin-top:var(--s5)}
.portal__txt > p{max-width:28em; font-size:19px}
.portal__txt .cta-row{margin-top:28px; column-gap:24px}
.portal__link{display:inline-flex; align-items:center; min-height:44px}
.portal__more{margin-top:8px; font-size:16px}
.portal__demo{margin-top:var(--s5)}
.portal__hint{margin-bottom:12px; font-size:15px; font-weight:700; color:var(--mute)}
@media (min-width:960px){
  .portal__head{grid-column:1 / 10}
  .portal__txt{grid-column:1 / 5; grid-row:2}
  .portal__demo{grid-column:6 / 13; grid-row:2}
}
@media (max-width:959px){ .portal__txt{margin-top:var(--s4)} .portal__demo{margin-top:var(--s4)} }

/* ---------- 6 prices (A) ---------- */
.price-row{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--s3); margin-top:var(--s4); border-top:2px solid var(--ink); border-bottom:2px solid var(--ink)}
.price-item{position:relative; display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px 20px; padding:32px 0 26px}
.price-item + .price-item::before{content:""; position:absolute; top:0; bottom:0; left:calc(var(--s3) / -2); width:1px; background:var(--ink)}
.price-num{font-family:var(--display); font-weight:800; font-size:clamp(96px,15vw,232px); line-height:.8; letter-spacing:-.05em; font-variant-numeric:tabular-nums}
.price-num span{display:block}
.price-len{padding-bottom:.25em; font-family:var(--display); font-weight:500; font-size:clamp(20px,2vw,28px); line-height:1.1}
.price-month{margin-top:var(--s5)}
.price-same{max-width:24em; font-size:19px}
.month{display:inline-flex; gap:3px; margin-top:24px; padding:3px; border:2px solid var(--ink); border-radius:6px; background:var(--paper)}
.month__b{min-height:44px; padding:0 16px; border:0; border-radius:3px; background:transparent; font-size:15px; font-weight:700; cursor:pointer}
.month__b:hover{background:var(--wash)}
.month__b[aria-pressed="true"]{background:var(--ink); color:#fff}
.month__out{margin-top:16px; font-variant-numeric:tabular-nums; font-family:var(--display); font-weight:700; font-size:clamp(22px,2vw,28px); line-height:1.2; letter-spacing:-.01em}
.price-notes{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--s3); row-gap:var(--s4); margin-top:var(--s5)}
.price-note{padding-top:16px; border-top:2px solid var(--ink)}
.price-note h3{font-size:22px; font-weight:700; line-height:1.2; letter-spacing:-.01em}
.price-note p{margin-top:8px; font-size:16px}
.price-note--trial{grid-column:1 / -1}
.price-note--trial h3{font-size:clamp(24px,2.4vw,30px); font-weight:800}
.price-note--trial p{max-width:30em; font-size:18px}
.price-links{grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:0 28px; margin-top:calc(var(--s4) * -.5); font-size:16px}
.price-links .link{display:inline-flex; align-items:center; min-height:44px}
.price-cta{margin-top:var(--s5)}
@media (min-width:960px){
  .price-month{grid-column:1 / 6}
  .price-notes{grid-column:7 / 13}
}
@media (max-width:959px){ .price-month{margin-top:var(--s4)} .price-notes{margin-top:var(--s4)} .price-cta{margin-top:var(--s4)} }
@media (max-width:599px){
  .price-row{grid-template-columns:1fr}
  .price-item + .price-item{border-top:1px solid var(--ink)}
  .price-item + .price-item::before{display:none}
  .price-notes{grid-template-columns:1fr}
}
@media (max-width:399px){ .month__b{padding:0 10px; font-size:14px} }

/* ---------- 7 about Livie (B) ---------- */
.livie__photo{margin:0; overflow:hidden; border-radius:0 0 6px 6px; background:var(--ink)}
.livie__photo img{width:100%; height:auto; aspect-ratio:712 / 1070; object-fit:cover}
.livie__txt > p{max-width:34em; margin-top:20px; font-size:19px}
.livie__txt > .h2{margin-bottom:8px}
.livie__txt > p.livie__links{display:flex; flex-wrap:wrap; align-items:center; gap:0 var(--s3); font-size:15px}
.livie__links .link{display:inline-flex; align-items:center; min-height:44px}
.sep{color:var(--mute)}
/* the links wrap onto their own lines in this column, so the dot between them would hang at a line end */
.livie__links .sep{display:none}
.igstrip{margin-top:var(--s5); padding-top:20px; border-top:1px solid var(--ink)}
.igstrip__h{font-family:var(--text); font-size:15px; font-weight:700; line-height:1.4; letter-spacing:0}
.igstrip__list{display:grid; grid-template-columns:repeat(3,minmax(0,128px)); gap:16px; margin:16px 0 0; padding:0; list-style:none}
.ig-tile{display:block; text-decoration:none}
.ig-tile__img{position:relative; display:block; overflow:hidden; aspect-ratio:9 / 16; border-radius:6px; background:var(--ink)}
.ig-tile__img img{width:100%; height:100%; object-fit:cover}
.ig-tile__play{position:absolute; left:8px; bottom:8px}
.ig-tile__t{display:block; margin-top:8px; font-size:14px; font-weight:700; line-height:1.3}
.ig-tile__s{display:block; font-size:13px; color:var(--mute); text-decoration:underline; text-underline-offset:3px}
.ig-tile:hover .ig-tile__t{text-decoration:underline; text-underline-offset:3px}
.livie__txt > p.livie__more{margin-top:4px; font-size:16px}
.livie__more .link{display:inline-flex; align-items:center; min-height:44px}
.igstrip__clips{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-width:480px; margin-top:16px}
@media (max-width:559px){
  .igstrip__clips{grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:44%; max-width:none; overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory; padding-bottom:10px; margin-right:calc(-1 * var(--gut)); padding-right:var(--gut)}
  .igstrip__clips > *{scroll-snap-align:start}
  .clips.igstrip__clips{grid-template-columns:none}   /* beats the 2-column .clips phone grid in pages.css */
  .igstrip .clips.igstrip__clips > lg-clip[data-wide]{grid-column:span 2}
}
/* with a wide clip in the strip: columns of 120 px or more, so the wide one (two columns) stays about 270 px or wider */
@media (min-width:560px){ .clips.igstrip__clips:has(> lg-clip[data-wide]){grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); max-width:600px} }
.quotes{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--s3); margin-top:var(--s6); padding-top:var(--s3); border-top:2px solid var(--ink)}
.quotes > *{grid-column:1 / -1; min-width:0}
.quotes__h{font-family:var(--text); font-size:15px; font-weight:700; line-height:1.4; letter-spacing:0}
.quotes__big, .quotes__list blockquote{margin:0}
.quotes__big{margin-top:var(--s4)}
.quotes__big p{font-family:var(--display); font-weight:500; font-size:clamp(28px,3.4vw,48px); line-height:1.12; letter-spacing:-.02em; text-indent:-.42em}
.quotes p::before{content:"\201C"}
.quotes p::after{content:"\201D"}
.quotes footer{margin-top:16px; font-size:15px; font-weight:700}
.quotes__list{margin:var(--s4) 0 0; padding:0; list-style:none; border-bottom:1px solid var(--hair)}
.quotes__list li{padding:20px 0; border-top:1px solid var(--hair)}
.quotes__list p{font-size:17px; line-height:1.5}
.quotes__list footer{margin-top:10px; font-size:14px; color:var(--mute)}
@media (min-width:960px){
  .livie__photo{grid-column:1 / 6; grid-row:1 / 3; align-self:start}
  .livie__txt{grid-column:7 / 13; grid-row:1}
  .igstrip{grid-column:7 / 13; grid-row:2}
  .quotes{grid-row:3}
  .quotes__big{grid-column:1 / 8}
  .quotes__list{grid-column:9 / 13}
}
@media (max-width:959px){
  .livie__photo{max-width:440px; margin-bottom:var(--s4)}
  .livie__txt{margin-bottom:var(--s4)}
  .igstrip{margin-top:0}
  .livie__txt > p:first-of-type{margin-top:24px}
  .quotes{margin-top:var(--s5)}
}

/* ---------- 8 book (high C) ---------- */
.book-sec{padding-top:0}
.bkeys{display:flex; align-items:flex-start; gap:2px}
.bkey{flex:1 1 0; min-width:0; height:72px; display:flex; align-items:flex-end; justify-content:center; padding:0 0 10px; border:0; border-radius:0 0 6px 6px;
  background:var(--note); color:var(--on-note); font-family:var(--display); font-weight:800; font-size:24px; line-height:1; cursor:pointer; transform-origin:top center; touch-action:manipulation}
.bkey:hover{box-shadow:inset 0 -6px 0 rgba(18,18,18,.2)}
.bkey:last-child{height:120px}
.book__h{margin-top:var(--s6); font-size:clamp(48px,8.4vw,136px); letter-spacing:-.04em}
.book__lead > p{max-width:30em; margin-top:28px; font-size:20px}
.book__lead .cta-row{margin-top:28px}
.faq__h{margin-top:var(--s6); font-size:clamp(28px,3vw,40px); letter-spacing:-.02em}
.faq-list{border-top:2px solid var(--ink)}
.faq-list details{border-bottom:1px solid var(--ink)}
.faq-list summary{text-wrap:balance; display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:64px; padding:16px 0; list-style:none; cursor:pointer;
  font-family:var(--display); font-weight:700; font-size:clamp(20px,1.8vw,24px); line-height:1.2; letter-spacing:-.01em}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+"; flex:0 0 auto; width:24px; font-family:var(--display); font-weight:500; font-size:30px; line-height:1; text-align:center}
.faq-list details[open] summary::after{content:"\2212"}
.faq-list summary:hover{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px}
.faq-list details p{max-width:40em; padding:0 0 24px; font-size:17px}
.faq__more{margin-top:20px; font-size:16px}
.faq__more .link{display:inline-flex; align-items:center; min-height:44px}
@media (min-width:960px){
  .book__h{grid-column:1 / 11}
  .book__lead{grid-column:1 / 7}
  .faq__h{grid-column:1 / 5; grid-row:3}
  .faq-list{grid-column:5 / 13; grid-row:3; margin-top:var(--s6)}
  .faq__more{grid-column:5 / 13; grid-row:4}
}
@media (max-width:959px){
  .book__h{margin-top:var(--s5)}
  .faq__h{margin-top:var(--s5)}
  .faq-list{margin-top:20px}
  .bkey:last-child{height:96px}
  .bkey{height:60px}
}
@media (max-width:480px){ .bkeys{gap:1px} }

/* ---------- footer ---------- */
/* a calm, complete index of the site: brand block, five ruled columns, one quiet base row */
.ftr{padding:var(--s5) 0 var(--s3); border-top:2px solid var(--ink); font-size:15px; line-height:1.35}
.ftr__top{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--s3); row-gap:var(--s5)}
.ftr__brand{grid-column:1 / -1}
.ftr__mark{display:inline-flex; align-items:center; min-height:44px; font-family:var(--display); font-weight:800; font-size:clamp(40px,4vw,56px); line-height:.9; letter-spacing:-.04em; text-decoration:none}
.ftr__sub{margin-top:2px; color:var(--mute)}
.ftr__where{margin-top:20px; font-weight:500}
.ftr__cta{display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin-top:20px}
.ftr__trial{display:inline-flex; align-items:center; min-height:44px; font-size:15px}
.ftr__index{grid-column:1 / -1; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); column-gap:var(--s3); row-gap:var(--s4)}
.ftr__col{min-width:0; border-top:2px solid var(--ink)}
.ftr__h{display:flex; align-items:center; gap:10px; padding:16px 0 10px; font-family:var(--text); font-size:15px; font-weight:700; line-height:1.3; letter-spacing:0}
.ftr__sq{flex:0 0 auto; width:10px; height:10px; background:var(--note)}
.ftr__col ul{margin:0; padding:0; list-style:none}
.ftr__col li{border-top:1px solid var(--hair)}
.ftr__col a{display:flex; align-items:center; min-height:44px; padding:4px 0; text-decoration:none}
.ftr__col a:hover, .ftr__links a:hover{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px}
.ftr__col a[aria-current="page"]{font-weight:700; text-decoration:underline; text-decoration-color:var(--note); text-decoration-thickness:3px; text-underline-offset:4px}
.ftr__base{display:flex; flex-wrap:wrap; align-items:center; gap:4px 28px; margin-top:var(--s5); padding-top:14px; border-top:1px solid var(--ink)}
.ftr__name{font-weight:700}
.ftr__links{display:flex; flex-wrap:wrap; gap:0 18px; margin:0; padding:0; list-style:none}
.ftr__links a{display:inline-flex; align-items:center; min-height:44px; text-underline-offset:4px}
.ftr__links a[aria-current="page"]{font-weight:700}
.ftr__credit{margin-left:auto; font-size:13px; color:var(--mute)}
@media (min-width:1100px){
  .ftr__brand{grid-column:1 / 4}
  .ftr__index{grid-column:4 / 13}
}
@media (max-width:899px){ .ftr__index{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:599px){
  .ftr__index{grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:16px}
  .ftr__col a{font-size:15px}
}
@media (max-width:767px){ .ftr__credit{margin-left:0; flex-basis:100%} }

/* ---------- phone booking bar ---------- */
.pbar{display:none}
@media (max-width:767px){
  .pbar{display:flex; position:fixed; left:0; right:0; bottom:0; z-index:55; align-items:center; justify-content:space-between; gap:12px;
    padding:10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px)); background:var(--paper); border-top:2px solid var(--ink)}
  .pbar__p{flex:1 1 auto; min-width:0; text-wrap:balance; font-family:var(--display); font-weight:700; font-size:16px; line-height:1.2}
  .pbar .btn{flex:0 0 auto}
  body{padding-bottom:var(--pbar-h, calc(68px + env(safe-area-inset-bottom, 0px)))}
  /* typing in a form: the bar steps aside so it never covers the field or the phone's keyboard row */
  body:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea, select):focus) .pbar{display:none}
}

/* ---------- motion: optional, starts from the finished state ---------- */
@media (prefers-reduced-motion: no-preference){
  /* hero: keys drop in one after another on load */
  .hkey{animation:lg-drop .8s var(--ease) backwards; transition:translate .2s var(--ease), box-shadow .2s}
  .hkey:nth-child(1){animation-delay:100ms} .hkey:nth-child(2){animation-delay:170ms} .hkey:nth-child(3){animation-delay:240ms} .hkey:nth-child(4){animation-delay:310ms}
  .hkey:nth-child(5){animation-delay:380ms} .hkey:nth-child(6){animation-delay:450ms} .hkey:nth-child(7){animation-delay:520ms} .hkey:nth-child(8){animation-delay:590ms}
  @keyframes lg-drop{ from{transform:translateY(-40px); opacity:0} }
  .hkey.is-hit, .bkey.is-hit{translate:0 10px}
  .bkey{transition:translate .2s var(--ease), box-shadow .2s}
  .scale-panel:not([hidden]){animation:lg-panel .5s var(--ease)}
  @keyframes lg-panel{ from{transform:translateY(12px); opacity:0} }
  .rail__bar{transition:transform .5s var(--ease)}
  .tl-seg i{transition:transform .7s var(--ease)}

  @supports (animation-timeline: view()){
    /* what: square slides in, rule draws left to right */
    .what-row .sq{animation:lg-sq var(--ease) both; animation-timeline:view(); animation-range:entry 10% cover 32%}
    .what-row::before{animation:lg-rule var(--ease) both; animation-timeline:view(); animation-range:entry 0% cover 35%}
    @keyframes lg-sq{ from{transform:translateX(-24px); opacity:0} to{transform:none; opacity:1} }
    @keyframes lg-rule{ from{transform:scaleX(0)} to{transform:scaleX(1)} }

    /* teach: the two blocks wipe in from opposite sides */
    .teach-blk--voice{animation:lg-wipe-l var(--ease) both; animation-timeline:view(); animation-range:entry 0% cover 30%}
    .teach-blk--piano{animation:lg-wipe-r var(--ease) both; animation-timeline:view(); animation-range:entry 0% cover 30%}
    @keyframes lg-wipe-l{ from{clip-path:inset(0 100% 0 0)} to{clip-path:inset(0 0 0 0)} }
    @keyframes lg-wipe-r{ from{clip-path:inset(0 0 0 100%)} to{clip-path:inset(0 0 0 0)} }

    /* portal: seven small keys under the heading rise in sequence */
    .portal-keys i{animation:lg-rise var(--ease) both; animation-timeline:view()}
    .portal-keys i:nth-child(1){animation-range:cover 10% cover 28%}
    .portal-keys i:nth-child(2){animation-range:cover 13% cover 31%}
    .portal-keys i:nth-child(3){animation-range:cover 16% cover 34%}
    .portal-keys i:nth-child(4){animation-range:cover 19% cover 37%}
    .portal-keys i:nth-child(5){animation-range:cover 22% cover 40%}
    .portal-keys i:nth-child(6){animation-range:cover 25% cover 43%}
    .portal-keys i:nth-child(7){animation-range:cover 28% cover 46%}
    @keyframes lg-rise{ from{transform:translateY(14px); opacity:0} to{transform:none; opacity:1} }

    /* prices: numerals slide up from behind a mask */
    .price-num span{animation:lg-mask var(--ease) both; animation-timeline:view(); animation-range:entry 20% cover 40%}
    @keyframes lg-mask{ from{transform:translateY(36px); clip-path:inset(100% 0 0 0)} to{transform:none; clip-path:inset(0 0 0 0)} }

    /* livie: the photo block wipes down like a key being pressed */
    .livie__photo{animation:lg-press var(--ease) both; animation-timeline:view(); animation-range:entry 0% cover 30%}
    @keyframes lg-press{ from{transform:translateY(-16px); clip-path:inset(0 0 100% 0)} to{transform:none; clip-path:inset(0 0 0 0)} }

    /* book: the row of keys grows down from the top edge */
    .bkey{animation:lg-grow var(--ease) both; animation-timeline:view()}
    .bkey:nth-child(1){animation-range:entry 0% cover 14%}
    .bkey:nth-child(2){animation-range:entry 0% cover 16%}
    .bkey:nth-child(3){animation-range:entry 0% cover 18%}
    .bkey:nth-child(4){animation-range:entry 0% cover 20%}
    .bkey:nth-child(5){animation-range:entry 0% cover 22%}
    .bkey:nth-child(6){animation-range:entry 0% cover 24%}
    .bkey:nth-child(7){animation-range:entry 0% cover 26%}
    .bkey:nth-child(8){animation-range:entry 0% cover 28%}
    @keyframes lg-grow{ from{transform:scaleY(.35)} to{transform:none} }
  }
}

/* narrow phones: keep button labels on one line */
.hero__btns .btn, .pbar .btn, .hdr__book{white-space:nowrap}
@media (max-width:400px){
  .hero__btns .btn{flex:1 1 0; padding:0 12px; font-size:16px}
  .pbar__p{font-size:14px}
  .pbar .btn{padding:0 14px}
}
/* short phones: pull the booking buttons above the phone bar */
@media (max-width:959px) and (max-height:820px){
  .hkey:nth-child(1){--len:88px} .hkey:nth-child(2){--len:83px} .hkey:nth-child(3){--len:78px} .hkey:nth-child(4){--len:73px}
  .hkey:nth-child(5){--len:68px} .hkey:nth-child(6){--len:63px} .hkey:nth-child(7){--len:58px} .hkey:nth-child(8){--len:53px}
  .hero__h{margin-top:8px}
  .hero__hint{padding-top:0}
  .hero__lead{margin-top:12px; font-size:16px; line-height:1.45}
  .hero__price{margin-top:10px}
  .hero__cta{margin-top:14px}
}
