/* Tunora / 小渔歌本 product page: demo, steps, audiences and privacy. Loaded after studio.css. */
.singbook {
  --tone: #e3ece9;
  --product-accent: #2f5d62;
  --card: #fffffb;
}

/* Fourteen-language menus scroll on short screens (shared with the other product pages). */
.language-menu > div {
  max-height: min(70vh, 620px);
  overflow-y: auto;
  min-width: 190px;
}
.language-menu a {
  white-space: nowrap;
}
.singbook :is(h1, h2, h3) {
  overflow-wrap: break-word;
  hyphens: auto;
}
.singbook:lang(ja) :is(h1, h2, h3, .hero-intro) {
  word-break: auto-phrase;
}
.singbook:lang(ko) {
  word-break: keep-all;
}
.singbook .product-hero h1 {
  text-wrap: balance;
}

/* Demo: the score with its notes lighting up. */
.score-demo {
  margin-top: 60px;
  padding: 56px 45px;
  border-radius: 8px;
  background: var(--tone);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  grid-template-areas: "copy page" "bottom page";
  grid-template-rows: auto 1fr;
  gap: 0 50px;
  align-items: start;
}
.demo-copy {
  grid-area: copy;
}
.demo-page {
  grid-area: page;
}
.demo-bottom {
  grid-area: bottom;
}
.demo-copy h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  color: var(--product-accent);
}
.demo-copy > p:not(.eyebrow):not(.demo-caption) {
  margin-top: 20px;
  max-width: 40ch;
}
.demo-controls {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.demo-play {
  min-width: 120px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--product-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 650;
}
.demo-play:disabled {
  opacity: 0.45;
  cursor: default;
}
.demo-slower {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  cursor: pointer;
}
.demo-slower input {
  width: 20px;
  height: 20px;
  accent-color: var(--product-accent);
}
.demo-caption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-caption {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}
.demo-page {
  position: relative;
  width: 100%;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(32 35 30 / 6%), 0 16px 40px rgb(32 35 30 / 10%);
  overflow: hidden;
}
.demo-page img {
  width: 100%;
  height: 100%;
}
.demo-note {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.demo-note.is-on {
  background: rgb(240 178 60 / 45%);
  box-shadow: 0 0 0 2px rgb(214 140 20 / 90%);
}
@media (prefers-reduced-motion: no-preference) {
  .demo-note {
    transition: background-color 0.08s, box-shadow 0.08s;
  }
}

/* Three steps. */
.steps-section {
  padding: 100px 0 20px;
}
.steps-section > h2,
.who-section > h2 {
  font-size: clamp(30px, 3.3vw, 45px);
  max-width: 20ch;
}
.steps-list {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.steps-list li::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  font-size: 40px;
  font-weight: 650;
  line-height: 1;
  color: var(--product-accent);
  font-variant-numeric: tabular-nums;
}
.steps-list p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
}

/* Who it is for. */
.who-section {
  padding: 60px 0 40px;
}
.who-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.who-grid article {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.who-grid p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
}

/* Privacy. */
.privacy-band {
  margin-top: 40px;
  padding: 48px 45px;
  border-radius: 8px;
  background: var(--tone);
}
.privacy-band h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  color: var(--product-accent);
  max-width: 24ch;
}
.privacy-band p {
  margin-top: 16px;
  max-width: 62ch;
}

@media (max-width: 1000px) {
  /* On a narrow screen the controls sit right under the score they play. */
  .score-demo {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "page" "bottom";
    gap: 28px;
    padding: 44px 30px;
  }
  .score-demo .demo-controls {
    margin-top: 0;
  }
  .steps-list {
    gap: 28px;
  }
}
@media (max-width: 650px) {
  .score-demo {
    margin-top: 40px;
    padding: 32px 20px;
  }
  .demo-copy h2 {
    font-size: 30px;
  }
  .steps-section {
    padding-top: 65px;
  }
  .steps-section > h2,
  .who-section > h2 {
    font-size: 32px;
  }
  .steps-list,
  .who-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .steps-list li {
    padding: 22px 0 24px;
  }
  .privacy-band {
    padding: 32px 24px;
  }
}

/* Chapters: music, practice, collections. Music is dark, as in the App. */
.chapter {
  margin-top: 60px;
  padding: 56px 45px;
  border-radius: 8px;
  background: var(--tone);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 50px;
  align-items: center;
}
.chapter-music {
  background: #17191c;
  color: #f2f2ef;
  --muted: #b6b8b2;
  --line: #34373b;
}
.chapter-music .eyebrow {
  color: #9fc9c2;
}
.chapter-copy h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  max-width: 20ch;
}
.chapter-practice h2,
.chapter-library h2 {
  color: var(--product-accent);
}
.chapter-text {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--muted);
}
.chapter-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}
.chapter-points li {
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}
.chapter-points h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.chapter-points p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.chapter-shots {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.chapter-shots a {
  flex: 0 1 240px;
  min-width: 0;
}
.chapter-shots img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 18%);
}

/* Vocal demo. */
.vocal-demo {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.chapter-music .demo-play {
  background: #9fc9c2;
  color: #17191c;
}
.vocal-level {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 16px;
}
.vocal-level input {
  width: min(220px, 50vw);
  accent-color: #9fc9c2;
}
.vocal-level output {
  min-width: 4ch;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.vocal-readout {
  flex-basis: 100%;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vocal-demo .demo-caption {
  flex-basis: 100%;
  margin-top: 0;
}

@media (max-width: 1000px) {
  .chapter {
    grid-template-columns: 1fr;
    padding: 44px 30px;
    gap: 36px;
  }
}
@media (max-width: 650px) {
  .chapter {
    margin-top: 40px;
    padding: 32px 20px;
  }
  .chapter-copy h2 {
    font-size: 30px;
  }
  .chapter-points {
    grid-template-columns: 1fr;
  }
  .chapter-shots a {
    flex-basis: 50%;
  }
}
