/* Discover Pro: the showcase (web/showcase.js). The previews wear the app's own styles (style.css); this file is the
   tour around them (the cards, the row of diamonds), the few places where a piece of a real screen has to sit in a
   card and not on its page, and the small movements a finger would have made. */

/* ---- the tour: cards side by side, one in view, the next one showing at the edge */
.show { --k: .89; --dw: 370px; --dh: 280px; margin: 4px calc(-1 * var(--m)) 0; }
.sh-track { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--m); padding: 4px var(--m) 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.sh-track::-webkit-scrollbar { display: none; }
.sh-track:focus-visible { outline: 2px solid var(--lapis); outline-offset: -2px; }
.sh-card { flex: none; width: min(calc(100% - 28px), 372px); scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column;
  background: var(--page); border: 1px solid var(--rim); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--fil); padding: 4px; }
.sh-stage { position: relative; overflow: hidden; height: calc(var(--dh) * var(--k)); border-bottom: 1px solid var(--fil); background: var(--paper);
  border-radius: 2px 2px 0 0; pointer-events: none; -webkit-user-select: none; user-select: none; }
.sh-ui { position: absolute; left: 0; top: 0; width: var(--dw); height: var(--dh); transform: scale(var(--k)); transform-origin: 0 0; padding: 0 10px; overflow: hidden; }
/* where a preview is taller than its stage it fades out, never ends on a cut line */
.sh-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: linear-gradient(rgba(246, 241, 228, 0), var(--paper)); pointer-events: none; }
.sh-text { padding: 12px 12px 12px; min-height: 104px; }
.sh-text h3 { margin: 0 0 4px; font: 500 23px/27px var(--display); color: var(--ink); text-wrap: balance; }
.sh-text p { margin: 0; font: var(--t-body); color: var(--ink-2); text-wrap: pretty; }

/* ---- the row under the cards: where you are, as the book's small diamonds */
.sh-nav { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 var(--m); min-height: 44px; }
.sh-dots { display: flex; align-items: center; gap: 9px; padding: 0 6px; }
.sh-dots i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold-d); background: transparent; transition: background-color .2s linear, transform .2s ease-out; }
.sh-dots i.on { background: var(--verm); border-color: var(--verm); transform: rotate(45deg) scale(1.25); }
.sh-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); flex: none; }
.sh-arrow svg { width: 18px; height: 18px; fill: currentColor; }
.sh-arrow.next svg { transform: scaleX(-1); }
.sh-arrow:disabled { opacity: .25; }
.sh-arrow:active { background: var(--paper-3); }

/* ---- the free days, said once under the tour */
.sh-trial { margin: 2px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); text-align: center; font: var(--t-body); color: var(--ink-2); text-wrap: balance; }
.sh-trial b { font-weight: 600; color: var(--ink); }

/* ---- a finger that is not there */
.sh-press { filter: brightness(.9); transform: scale(.97); transition: transform .12s ease-out, filter .12s linear; }
.sh-tick { animation: shtick .38s ease-out; }
@keyframes shtick { 0% { color: var(--verm); transform: translateY(-3px); } 100% { transform: none; } }
.sh-in { animation: shin .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes shin { from { opacity: 0; transform: translateY(6px); } }

/* ---- the music: one line of the real sheet (and, for the three versions, three of them one over the other) */
.sh-layers { display: grid; margin: 0 -6px; }
.sh-layers > .sh-sheet { grid-area: 1 / 1; opacity: 0; transition: opacity .35s linear; }
.sh-layers > .sh-sheet.on { opacity: 1; }
.sh-layers.one { margin-top: 14px; }
.sheet.sh-sheet { padding: 0; min-height: 0; }
.sh-ui > .vslide { margin: 12px 4px 4px; }
.sh-ui .vslide input[type=range] { pointer-events: none; }

/* ---- the player's bar, standing in a card (on the tune page it holds to the foot of the screen) */
.player.sh-player { position: relative; bottom: auto; z-index: 0; margin: 10px -10px 0; padding: 8px 10px; background: none; }
.player.sh-player .loopstrip { border-bottom: 0; margin: 0; padding: 0; }

/* ---- a tool's panel (tempo trainer, by ear, record yourself) as it sits under the sheet */
.sh-tool { padding: 2px 0 0; }
.sh-tool .phead { min-height: 44px; }
.sh-tool .kv { margin: 0 0 8px; }
.sh-tool .segc { margin: 0 0 12px; }
.sh-tool .duo { margin: 0; }
.sh-tool .mgrp { margin: 10px 0 0; }
.sh-tool .take { padding: 4px 0; }
.sh-tool .note { margin: 6px 0 0; }
.sh-tool .trio { margin-top: 14px; }
.sh-rec.sh-live { background: var(--verm); border-color: var(--verm); box-shadow: none; animation: shlive 1.2s ease-in-out infinite alternate; }
@keyframes shlive { to { filter: brightness(1.14); } }

/* by ear: the veil of the tune page, a little shorter */
.sheetwrap.sh-veiled { margin: 12px -10px 0; }
.sheetwrap.sh-veiled .sheet { height: 172px !important; }
.sh-veiled .veil { padding: 22px 20px 12px; }

/* the band */
.sh-band { margin: 8px 0 0; }
.sh-band input[type=range] { pointer-events: none; }

/* the coach's own card */
.sh-coach > .card { margin-top: 12px; }
.sh-coach .kv { margin: 4px 0 0; }
.sh-coach .bar { margin: 8px 0 !important; }
.sh-coach .btns { display: none; }
.sh-coach .hint { min-height: 22px; }
.sh-coach .notepick { margin-top: 8px; }

/* a setlist */
.sh-set { padding-top: 10px; }
.sh-setname { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sh-setname b { font: 500 23px/28px var(--display); color: var(--ink); }
.sh-setname span { font: var(--t-small); color: var(--muted); }
.sh-set ol.setl { margin: 6px 0 0; }
.sh-set .btn.primary { margin-top: 8px; min-height: 48px; }
.sh-set ol.setl .item { min-height: 54px; padding: 5px 0; background: var(--paper); position: relative; }
.sh-set ol.setl .item.sh-lift { z-index: 1; box-shadow: 0 6px 14px -8px rgba(31, 26, 21, .5); }

/* a note */
.sh-note { padding-top: 16px; }
.sh-tune { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.sh-tune b { display: block; font: var(--t-name); font-size: 22px; line-height: 26px; color: var(--ink); }
.sh-tune small { display: block; font: var(--t-small); color: var(--ink-2); }
.sh-note .tnote { min-height: 124px; }
.sh-caret { display: none; width: 1.5px; height: 18px; margin-left: 1px; vertical-align: -3px; background: var(--lapis); }
.sh-caret.on { display: inline-block; animation: shcaret 1s steps(2, jump-none) infinite; }
@keyframes shcaret { to { opacity: 0; } }

/* history */
.sh-hist .sec { margin: 14px 0 0; }
.sh-hist .weekchart { height: 96px; }
.sh-hist .note { margin: 0 0 4px; font: var(--t-small); }
.sh-hist .item.one { min-height: 52px; padding: 4px 0; border-top: 1px solid var(--rule); }
.sh-hist .weekchart rect { transform-box: fill-box; transform-origin: 50% 100%; }
.sh-hist.grow .weekchart rect { animation: shbar .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) both; }
.sh-hist.grow .spark polyline { stroke-dasharray: 100; animation: shline 1.2s 1s ease-out both; }
.sh-hist.fade { opacity: 0; transition: opacity .4s linear; }
@keyframes shbar { from { transform: scaleY(0); } }
@keyframes shline { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* the Originals: each one's own head, one after another */
.sh-early { display: grid; padding-top: 22px; }
.sh-early .thead { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(6px); transition: opacity .5s linear, transform .5s cubic-bezier(.2, .7, .2, 1); }
.sh-early .thead.on { opacity: 1; transform: none; }
.sh-early .thead h1 { font: 500 28px/32px var(--display); }
.sh-early .tby { margin: 2px 0 0; font: italic 400 19px/24px var(--display); color: var(--ink-2); }
.sh-month { grid-area: 2 / 1; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.sh-month .dp-eye { display: block; animation: none; }
.sh-month b { display: block; font: 500 22px/26px var(--display); color: var(--ink); }

/* when the music cannot be drawn: the painted miniature */
.sh-fall { height: 100%; display: grid; place-items: center; }
.sh-fall img { width: 148px; height: 148px; border-radius: 2px; background: #d9b56a; box-shadow: 0 0 0 1px rgba(123, 58, 38, .65), 0 0 0 3px var(--paper), 0 0 0 4px rgba(201, 160, 64, .7); }

/* ---- in the Discover Pro window (the paywall): the tour takes the place of the list */
.dp-body .show { margin-top: 2px; animation: dpin .5s .3s cubic-bezier(.2, .7, .2, 1) both; }
.dp-body .sh-text { min-height: 96px; }
.dp-hearrow { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 4px 0 0; padding: 6px 0; border-top: 1px solid var(--rule); }
.dp-hearrow span { flex: 1; min-width: 0; }
.dp-hearrow b { display: block; font: 600 16px/22px var(--ui); color: var(--ink); }
.dp-hearrow small { display: block; font: var(--t-small); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- the way in from the Tunes page: one slim row */
.prodoor { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 10px 0 14px; padding: 7px 10px 7px 8px; text-align: left; color: var(--ink); background: var(--page);
  border: 1px solid var(--rim); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--fil); -webkit-tap-highlight-color: transparent; }
.prodoor:active { background: var(--paper); }
.prodoor > img { flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--rim); }
.prodoor .dp-eye { display: block; margin: 0; font-size: 16px; line-height: 20px; animation: none; }
.prodoor small { display: block; font: var(--t-small); color: var(--ink-2); text-wrap: balance; }      /* (it wraps with larger text; it was cut with "…") */
.prodoor .chev { flex: none; font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  .sh-press, .sh-tick, .sh-in, .sh-rec.sh-live, .sh-caret.on, .sh-hist.grow .weekchart rect, .sh-hist.grow .spark polyline { animation: none; transition: none; }
  .sh-layers > .sh-sheet, .sh-early .thead, .sh-dots i { transition: none; }
  .sh-track { scroll-behavior: auto; }
}
html[data-motion="less"] .sh-press, html[data-motion="less"] .sh-tick, html[data-motion="less"] .sh-in, html[data-motion="less"] .sh-rec.sh-live, html[data-motion="less"] .sh-caret.on,
html[data-motion="less"] .sh-hist.grow .weekchart rect, html[data-motion="less"] .sh-hist.grow .spark polyline { animation: none; transition: none; }
html[data-motion="less"] .sh-layers > .sh-sheet, html[data-motion="less"] .sh-early .thead, html[data-motion="less"] .sh-dots i { transition: none; }

/* Pro is a short invitation; the moving feature tour opens only when asked. */
.compact-pro .pro-benefits { list-style: none; margin: 10px 0; padding: 0; }
.pro-benefits li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.pro-benefits li > i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; color: var(--gold-ink); }
.pro-benefits svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pro-benefits b { display: block; color: var(--ink); font: 500 20px/24px var(--display); }
.pro-benefits small { display: block; color: var(--muted); font: 400 12px/18px var(--ui); }
.compact-pro .prohead { margin: 0 0 14px; }
.compact-pro .prohead > img { width: 64px; height: 64px; box-shadow: 0 0 0 1px var(--rim); }
.compact-pro .prohead .dp-eye { margin-top: 10px; }
.compact-pro .prohead h1 { font-size: 32px; line-height: 36px; margin-bottom: 6px; }
.compact-pro .prohead .purpose { font-size: 14px; line-height: 21px; max-width: 26em; }
.pro-caption { margin: 14px 0 0; color: var(--muted); font: 500 13px/18px var(--display); font-variant: small-caps; letter-spacing: .08em; }
.compact-pro #proact .pwact { margin-top: 18px; }
.compact-pro .dp-art { height: 82px; aspect-ratio: auto; }
.compact-pro .dp-art img { animation: none; object-position: center 46%; }
.compact-pro .dp-body { padding-top: 14px; }
.compact-pro .dp-line { font-size: 14px; line-height: 21px; margin-bottom: 8px; }
.compact-pro .dp-free { padding: 10px 0; font-size: 12px; line-height: 18px; animation: none; }
.compact-pro .dp-foot { padding-top: 12px; border-top-color: var(--rule); box-shadow: none; }
.pro-manage { margin: 18px 0; font: 400 14px/21px var(--ui); text-align: center; color: var(--ink-2); }
#prodetails { display: block; width: 100%; min-height: 44px; text-align: center; }
#prodetails[aria-expanded="true"] span { display: inline-block; transform: rotate(90deg); }
#protour[hidden] { display: none; }
@media (max-height: 700px) { .compact-pro .dp-art { height: 58px; } .compact-pro .dp-body h2 { font-size: 26px; line-height: 29px; } .compact-pro .pro-benefits li { padding: 7px 0; } }
