/* Singalama's public pages (tools/build_site.py): the landing page, terms, privacy, contact. The brand of the app
   (app.css): Plus Jakarta Sans, ink #24123D, violet #4F22D8, gold #F5C94E, the lavender ground. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
:root { --ink: #24123D; --ink-2: #433661; --ground: #F5F3FC; --card: #fff; --violet: #4F22D8; --violet-1: #EEE9FF; --gold: #F5C94E; --m: 20px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.55 "Plus Jakarta Sans", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--violet); }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.03em; margin: 0; }
h2 { font-size: clamp(30px, 5vw, 48px); }
.s-small { font-size: 14px; color: var(--ink-2); }
.s-sub { font-size: 19px; max-width: 46ch; margin: 14px 0 0; color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* the bar */
.s-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--m); background: var(--ink); color: #fff; }
.s-mark { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.s-mark span { color: var(--gold); }
.s-bar nav { display: flex; align-items: center; gap: 22px; }
.s-bar nav a:not(.s-btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; display: none; }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--gold); color: var(--ink); font: 800 16px "Plus Jakarta Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s ease-out, background-color .15s ease-out; }
.s-btn:hover { background: #FFD766; } .s-btn:active { transform: scale(.97); }
.s-btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.s-btn-ghost { background: var(--violet-1); color: var(--violet); } .s-btn-ghost:hover { background: #E2D9FF; }

/* the hero: the promise beside a drifting wall of real covers */
.s-hero { background: var(--ink); color: #fff; display: grid; gap: 28px; padding: 40px var(--m) 0; overflow: hidden; }
.s-hero h1 { font-size: clamp(42px, 11vw, 92px); line-height: .96; max-width: 11.5ch; }
.s-lede { font-size: 20px; max-width: 34ch; margin: 18px 0 0; }
.s-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.s-link { color: #fff; font-weight: 700; }
.s-note { font-size: 15px; opacity: .8; margin: 16px 0 0; max-width: 40ch; }
.s-wall { height: 260px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; overflow: hidden; margin: 0 calc(var(--m) * -1); padding: 0 var(--m); }
.s-col { display: grid; gap: 10px; align-content: start; animation: s-drift 90s linear infinite; }
.s-down { animation-direction: reverse; }
.s-col img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
@keyframes s-drift { to { transform: translateY(calc(-50% - 5px)); } }

/* how it works: the lyric sample */
section { padding: 88px var(--m); }
.s-how { display: grid; gap: 32px; }
.s-how-t p { font-size: 19px; max-width: 40ch; color: var(--ink-2); }
.s-play { margin-top: 8px; }
.s-lyrics { background: var(--card); border-radius: 28px; padding: 24px; display: grid; gap: 18px; }
.s-line { margin: 0; display: grid; gap: 2px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; color: #8C82A6; transition: color .2s; }
.s-line.on { color: var(--ink); }
.s-en { font-size: 16px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.s-w { position: relative; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline 3px var(--gold); text-underline-offset: 5px; }
.s-w span { position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; padding: 6px 10px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; z-index: 2; }
.s-w:hover span, .s-w:focus span { opacity: 1; translate: -50% 0; }

/* levels: five landscapes, foothills to above the clouds */
.s-levels { background: var(--card); }
.s-level-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.s-level { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.s-level img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 85%; border-radius: 16px; }
.s-level h3 { font-size: 20px; letter-spacing: -.01em; }
.s-level p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.s-level .s-q { font-size: 17px; color: var(--ink); }

/* the cast and the genres */
.s-artists, .s-genres { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.s-artists { grid-template-columns: repeat(3, 1fr); }
.s-artists li { display: grid; justify-items: center; text-align: center; gap: 4px; }
.s-artists img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.s-artists b { font-size: 15px; } .s-artists span { font-size: 13px; color: var(--ink-2); }
.s-genres { grid-template-columns: repeat(3, 1fr); }
.s-genres li { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.s-genres img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }

/* learning */
.s-learn { background: var(--violet); color: #fff; }
.s-dl { margin: 36px 0 0; display: grid; gap: 22px; }
.s-dl dt { font-weight: 800; font-size: 20px; }
.s-dl dd { margin: 4px 0 0; font-size: 17px; max-width: 46ch; opacity: .92; }

/* plans */
.s-plans { display: grid; gap: 16px; margin-top: 36px; }
.s-plan { background: var(--card); border-radius: 28px; padding: 28px; display: grid; gap: 12px; align-content: start; }
.s-plan-plus { background: var(--ink); color: #fff; }
.s-plan h3 { font-size: 26px; }
.s-price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.s-price small { font-size: 16px; font-weight: 600; opacity: .8; }
.s-plan ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.s-plan .s-btn { justify-self: start; margin-top: 8px; }
.s-plan-plus .s-small { color: #fff; opacity: .8; }

/* questions */
.s-faq { max-width: 860px; }
.s-faq details { background: var(--card); border-radius: 18px; padding: 18px 22px; margin-top: 12px; }
.s-faq details:first-of-type { margin-top: 32px; }
.s-faq summary { font-weight: 800; font-size: 18px; cursor: pointer; }
.s-faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* the footer: the name returns */
.s-foot { background: var(--ink); color: #fff; padding: 64px var(--m) 40px; display: grid; gap: 14px; }
.s-mark-big { font-size: clamp(48px, 12vw, 120px); line-height: 1; }
.s-foot p { margin: 0; opacity: .85; }
.s-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.s-foot a { color: #fff; }
.s-foot .s-small { color: #fff; opacity: .7; }

/* legal pages */
.s-doc { max-width: 760px; margin: 0 auto; padding: 56px var(--m) 88px; }
.s-doc h1 { font-size: clamp(36px, 6vw, 56px); }
.s-doc h2 { font-size: 24px; letter-spacing: -.01em; margin-top: 36px; }
.s-doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.s-doc th, .s-doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #DCD3FF; }

@media (min-width: 768px) {
  :root { --m: 40px; }
  .s-bar nav a:not(.s-btn) { display: inline; }
  .s-wall { height: 320px; }
  .s-level-list { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .s-level { grid-template-columns: 1fr; align-items: start; }
  .s-level img { width: 100%; }
  .s-artists { grid-template-columns: repeat(6, 1fr); }
  .s-genres { grid-template-columns: repeat(6, 1fr); }
  .s-dl { grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
  .s-plans { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  :root { --m: 64px; }
  section { padding: 120px var(--m); }
  .s-hero { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 0; min-height: 620px; align-items: center; }
  .s-hero-t { padding: 72px 0; }
  .s-wall { height: 620px; margin: 0; padding: 0; gap: 12px; }
  .s-how { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
  .s-dl { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .s-col { animation: none; } html { scroll-behavior: auto; } .s-btn { transition: none; } }

/* fixes after the first inspection */
.s-level img, .s-genres img, .s-artists img { height: auto; }
.s-w span { display: none; opacity: 1; translate: -50% 0; transition: none; }
.s-w:hover span, .s-w:focus span { display: block; }
@media (min-width: 1100px) {
  .s-hero { grid-template-columns: 1.3fr 1fr; }
  .s-hero h1 { font-size: 80px; max-width: none; }
  .s-faq { max-width: none; display: grid; grid-template-columns: 1fr 2fr; gap: 0 64px; align-items: start; }
  .s-faq h2 { grid-row: span 6; }
  .s-faq details:first-of-type { margin-top: 0; }
}
/* sections rise in as they arrive (site.js adds s-js; without script, or with reduced motion, all is simply shown) */
.s-js .s-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.s-js .s-reveal.s-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .s-js .s-reveal { opacity: 1; transform: none; transition: none; } }
.s-faq details p, .s-plan li, .s-note { max-width: 66ch; }

/* the sampler: a level slider, the song's artist and genre, a short clip with its lines lighting up */
.s-slider { margin-top: 28px; max-width: 460px; }
.s-slider label { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.s-slider label b { color: var(--ink); font-size: 17px; }
#sLevel { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
#sLevel::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--violet) var(--p), #DCD3FF var(--p)); }
#sLevel::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--violet) var(--p), #DCD3FF var(--p)); }
#sLevel::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--gold); border: 4px solid var(--ink); transition: transform .15s ease-out; }
#sLevel::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 4px solid var(--ink); }
#sLevel:active::-webkit-slider-thumb { transform: scale(1.12); }
.s-ticks { display: flex; justify-content: space-between; margin: 2px 3px 0; }
.s-ticks button { width: 36px; height: 36px; margin: 0 -6px; border: 0; border-radius: 50%; background: none; font: 800 15px "Plus Jakarta Sans", system-ui, sans-serif; color: #8C82A6; cursor: pointer; }
.s-ticks button.on { color: var(--violet); }
.s-sample { display: grid; gap: 14px; transition: opacity .14s ease-out, transform .14s ease-out; }
.s-sample.is-swap { opacity: 0; transform: translateY(6px); }
.s-sample-head { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; background: var(--ink); color: #fff; border-radius: 28px; padding: 14px 14px 14px 14px; }
.s-sample-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.s-sample-t { display: grid; gap: 2px; min-width: 0; }
.s-sample-t b { font-size: 20px; letter-spacing: -.01em; line-height: 1.15; }
.s-sample-t span { font-size: 14px; opacity: .8; text-transform: capitalize; }
.s-sample-head .s-play { margin: 0; min-height: 48px; padding: 0 18px; white-space: nowrap; }
.s-sample.is-playing .s-sample-head img { animation: s-spin 6s linear infinite; }
@keyframes s-spin { to { rotate: 1turn; } }
@media (max-width: 480px) { .s-sample-head { grid-template-columns: 56px 1fr; } .s-sample-head img { width: 56px; height: 56px; } .s-sample-head .s-play { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .s-sample, #sLevel::-webkit-slider-thumb { transition: none; } .s-sample.is-playing .s-sample-head img { animation: none; } }
@media (min-width: 768px) {
  .s-sample-head { grid-template-columns: 112px 1fr auto; gap: 18px; padding: 16px 20px 16px 16px; }
  .s-sample-head img { width: 112px; height: 112px; }
  .s-sample-t b { font-size: 24px; }
  .s-sample-t span { font-size: 15px; }
}

/* the genres: three free picks (an example), the rest in Plus; all in full colour */
.s-g-note { margin: 28px 0 0; font-size: 17px; max-width: 60ch; }
.s-genres li { position: relative; }
.s-g-badge { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #FFF4C9; color: #6B4A00; box-shadow: inset 0 0 0 1px #F0D88A; }
.s-g-pick .s-g-badge { background: var(--gold); color: var(--ink); box-shadow: none; }
.s-g-pick img { box-shadow: 0 0 0 4px var(--gold); }

/* the sampler's cards share one spot: the box keeps the tallest one's height; they slide and fade into each other */
.s-card { display: grid; gap: 14px; grid-template-rows: auto 1fr; }
.s-card .s-lyrics { align-content: start; }
.s-stack { display: grid; }
.s-stack .s-card { grid-area: 1 / 1; transition: opacity .3s ease-out, transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s; }
.s-stack .s-card:not(.on) { opacity: 0; visibility: hidden; pointer-events: none; }
.s-stack .s-card.is-left { transform: translateX(-48px); }
.s-stack .s-card.is-right { transform: translateX(48px); }
.s-stack .s-card.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.s-sample.is-playing .s-card:not(.on) .s-sample-head img { animation: none; }
#sLevel { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .s-stack .s-card { transition: opacity .2s linear, visibility 0s linear .2s; transform: none !important; } }

/* hover: say "clickable" quietly, for a real pointer only */
.s-btn { transition: transform .15s ease-out, background-color .15s ease-out, box-shadow .2s ease-out; }
.s-ticks button, .s-faq summary, .s-link, .s-foot a, .s-bar nav a:not(.s-btn) { transition: color .15s ease-out, text-decoration-color .15s ease-out; }
@media (hover: hover) and (pointer: fine) {
  .s-btn:hover { box-shadow: 0 10px 22px -12px rgba(36, 18, 61, .55); }
  .s-sample-head .s-play:hover { background: #FFD766; }
  .s-ticks button:not(.on):hover { color: var(--ink); }
  .s-faq summary:hover { color: var(--violet); }
  .s-link:hover, .s-foot a:hover { text-decoration-thickness: 3px; text-underline-offset: 4px; }
  .s-bar nav a:not(.s-btn):hover { color: var(--gold); }
  .s-w:hover { text-decoration-color: var(--violet); }
  #sLevel:hover::-webkit-slider-thumb { transform: scale(1.1); }
}

/* inside the app: three real screens in phone frames */
.s-inside { display: grid; gap: 8px; }
.s-phones { list-style: none; margin: 32px calc(var(--m) * -1) 0; padding: 0 var(--m) 8px; display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 280px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.s-phones li { scroll-snap-align: start; }
.s-phones figure { margin: 0; display: grid; gap: 14px; }
.s-phones figcaption { display: grid; gap: 4px; }
.s-phones figcaption b { font-size: 18px; } .s-phones figcaption span { font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) {
  .s-phones { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 40px 0 0; padding: 0; gap: 40px; }
}
@media (min-width: 1100px) { .s-phones { max-width: 1040px; margin-left: auto; margin-right: auto; } }

/* no sideways wobble on phones: the slider's waiting cards stay inside their box, and nothing else can widen the page */
.s-stack { overflow: clip; overflow-clip-margin: 24px; }
html, body { overflow-x: clip; }
.s-mark .logo-img { display: block; width: 140px; height: auto; }
.s-mark-big .logo-img { width: min(560px, 80vw); }

/* Inside the app: three phones on one stage, a real device frame, aligned captions */
.s-phones { position: relative; scroll-padding-inline: var(--m); }
.s-phone { position: relative; border-radius: 46px; padding: 7px; background: #120A1F;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.09), 0 1px 0 rgba(255,255,255,.4), 0 40px 70px -36px rgba(36,18,61,.55), 0 18px 30px -22px rgba(36,18,61,.35); }
.s-screen { position: relative; overflow: hidden; border-radius: 39px; background: #F5F3FC; padding-top: 30px; }
.s-screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #120A1F; }
.s-status { position: absolute; top: 9px; left: 26px; font-size: 12px; font-weight: 700; line-height: 20px; color: var(--ink); letter-spacing: .01em; }
.s-screen img { display: block; width: 100%; height: auto; }
.s-phones figcaption { padding: 0 6px; }
@media (min-width: 900px) {
  .s-phones { padding: 56px 48px 0; margin-top: 40px; isolation: isolate; }
  .s-phones::before { content: ""; position: absolute; z-index: -1; inset: 0 0 34%; border-radius: 36px;
    background: radial-gradient(120% 90% at 50% 0%, #DCD3FF 0%, #EEE9FF 55%, rgba(238,233,255,0) 100%); }
  .s-phones li:nth-child(2) .s-phone { transform: scale(1.06); transform-origin: 50% 100%; z-index: 1; }
}

/* Five levels as one climb: each step a little higher than the last */
.s-climb { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.s-step { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-content: center; }
.s-step-art { grid-row: 1 / 3; position: relative; }
.s-step-art img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 80%; border-radius: 18px; height: auto; }
.s-step-n { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 2px 8px rgba(36,18,61,.18); }
.s-step h3 { align-self: end; margin: 0; font-size: 20px; letter-spacing: -.01em; }
.s-step p { align-self: start; margin: 2px 0 0; font-size: 16px; color: var(--ink-2); }
@media (min-width: 900px) {
  .s-climb { grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: end; padding-top: 24px; position: relative; }
  .s-step { position: relative; z-index: 1; grid-template-columns: 1fr; margin-bottom: calc(var(--i) * 30px); text-align: left; }
  .s-step-art { grid-row: auto; margin-bottom: 14px; }
  .s-step-art img { aspect-ratio: 1 / 1; object-position: center 100%; border-radius: 22px; box-shadow: 0 24px 40px -28px rgba(36,18,61,.5); }
  .s-step-n { top: 12px; left: 12px; }
}

/* the blog, the song lessons and the song list (content/blog, content/learn, /songs/): long reading on the lavender ground */
.s-post { max-width: 720px; margin: 0 auto; padding: 32px var(--m) 88px; }
.s-post h1 { font-size: clamp(34px, 6vw, 54px); margin-top: 18px; }
.s-post h2 { font-size: clamp(24px, 3.4vw, 30px); letter-spacing: -.02em; margin: 44px 0 0; }
.s-post h3 { font-size: 20px; letter-spacing: -.01em; margin: 28px 0 0; }
.s-post h2 + p, .s-post h3 + p { margin-top: 10px; }
.s-post p, .s-post li { max-width: 68ch; }
.s-post ul, .s-post ol { padding-left: 22px; }
.s-post li + li { margin-top: 6px; }
.s-post blockquote { margin: 18px 0; padding: 2px 0 2px 18px; border-left: 4px solid var(--violet); color: var(--ink-2); }
.s-post mark { background: #FCEBB6; color: var(--ink); border-radius: 4px; padding: 0 3px; }
.s-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-2); }
.s-crumbs li { margin: 0; max-width: none; }
.s-crumbs li + li::before { content: "›"; margin-right: 6px; }
.s-meta { font-size: 14px; color: var(--ink-2); margin: 12px 0 0; }
.s-lede-dark { font-size: 19px; color: var(--ink-2); }
.s-toc { margin: 28px 0 0; padding: 18px 22px; background: var(--card); border-radius: 18px; }
.s-toc p { margin: 0; font-weight: 800; font-size: 15px; }
.s-toc ol { margin: 8px 0 0; font-size: 15px; }
.s-toc li + li { margin-top: 2px; }
.s-sources li { font-size: 15px; overflow-wrap: anywhere; }
/* the one box: a call to the app */
.s-cta-box { margin: 18px 0 0; padding: 22px; background: var(--violet-1); border-radius: 22px; }
.s-cta-box p { margin: 0; } .s-cta-box p + p { margin-top: 8px; } .s-cta-box .s-small + p { margin-top: 18px; }
/* lessons */
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; font-size: 14px; font-weight: 700; }
.s-chips span { background: var(--card); border-radius: 999px; padding: 4px 12px; }
.s-chips span:first-child { background: var(--ink); color: #fff; }
.s-chorus { margin-top: 16px; }
.s-chorus .s-line { font-size: clamp(20px, 2.6vw, 26px); }
.s-preview { margin: 22px 0 0; }
.s-preview audio { width: 100%; max-width: 480px; }
.s-preview figcaption { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.s-ex { margin-top: 18px; }
.s-ex h3 { margin-top: 22px; } .s-ex .s-ex-t { margin: 6px 0 0; }
.s-ex ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.s-ex li p { margin: 0; } .s-ex li p[lang] { font-weight: 700; font-size: 19px; }
.s-ex .s-en span { color: var(--ink-2); }
.s-quiz { padding-left: 24px; display: grid; gap: 22px; margin-top: 16px; }
.s-quiz li > p { margin: 0; }
.s-q-p { font-weight: 700; font-size: 19px; }
.s-gap { color: var(--violet); }
.s-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.s-opts button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid #DCD3FF; background: var(--card); color: var(--ink); font: 700 16px "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; transition: border-color .15s ease-out, background-color .15s ease-out; }
.s-opts button:hover:not(:disabled) { border-color: var(--violet); }
.s-opts button:disabled { cursor: default; }
.s-opts .is-right { border-color: #1F7A4D; background: #E3F5EA; }
.s-opts .is-right::before { content: "✓ "; }
.s-opts .is-wrong { border-color: #B3261E; background: #FCE8E6; }
.s-opts .is-wrong::before { content: "✕ "; }
.s-verdict { font-weight: 700; margin: 6px 0 0; min-height: 0; }
.s-verdict:empty { display: none; }
.s-quiz details { margin-top: 8px; font-size: 16px; }
.s-quiz summary { cursor: pointer; color: var(--violet); font-weight: 700; }
.s-quiz details p { margin: 6px 0 0; }
/* the blog index and the song list */
.s-post-list { list-style: none; padding: 0; margin: 24px 0 0; }
.s-post-list li { padding: 18px 0; max-width: none; }
.s-post-list h3 { margin: 0; font-size: 22px; }
.s-post-list h3 a { color: var(--ink); text-decoration: none; }
.s-post-list h3 a:hover { color: var(--violet); }
.s-post-list p { margin: 6px 0 0; }
.s-songs { max-width: 860px; }
.s-lv { padding: 0; }
.s-lv h2 span { font-weight: 600; color: var(--ink-2); font-size: .7em; letter-spacing: 0; }
.s-post .s-units, .s-post .s-song-list { list-style: none; padding: 0; }
.s-units > li { margin-top: 20px; max-width: none; }
.s-units h3 { margin: 0; font-size: 18px; }
.s-units .s-small { margin: 2px 0 0; }
.s-song-list { margin: 8px 0 0; }
.s-song-list li { margin-top: 4px; max-width: none; }
.s-song-list li > a:first-child { font-weight: 700; }
.s-song-list span { color: var(--ink-2); font-size: 15px; }
.s-free { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 8px; }
.s-lesson-link { font-size: 15px; font-weight: 700; }
.s-lesson-list span { color: var(--ink-2); font-size: 15px; }
/* comparison tables on the blog */
.s-compare { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 14px; }
.s-compare th, .s-compare td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #DCD3FF; }
.s-compare thead th { font-size: 14px; border-bottom: 2px solid var(--ink); }
.s-compare tbody th { font-weight: 700; width: 22%; }
@media (max-width: 640px) { .s-compare { display: block; overflow-x: auto; } .s-compare th, .s-compare td { min-width: 120px; } }

/* the title band on blog posts, lessons, the blog index and the song list: the landing's dark ground, with real covers */
.s-band { background: var(--ink); color: #fff; padding: 36px var(--m) 44px; }
.s-band-in { max-width: 1100px; margin: 0 auto; display: grid; gap: 28px; }
.s-band h1 { font-size: clamp(30px, 4.8vw, 56px); line-height: 1.04; margin-top: 14px; max-width: 34ch; text-wrap: balance; }
.s-band-side h1 { max-width: 20ch; }
.s-band .s-crumbs ol { color: rgba(255,255,255,.75); }
.s-band .s-crumbs a { color: #fff; }
.s-band .s-meta { color: rgba(255,255,255,.8); margin-top: 16px; font-size: 15px; }
.s-band-lede { font-size: 19px; max-width: 52ch; margin: 16px 0 0; color: rgba(255,255,255,.88); }
.s-band .s-chips span { background: rgba(255,255,255,.12); color: #fff; }
.s-band .s-chips span:first-child { background: var(--gold); color: var(--ink); }
.s-cover { display: block; border-radius: 14px; overflow: hidden; transition: transform .2s ease-out; }
.s-cover img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
a.s-cover:hover { transform: translateY(-4px); }
.s-cover-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 640px; }
.s-lesson-art { display: flex; gap: 16px; }
.s-lesson-art figure { margin: 0; width: min(46vw, 220px); }
.s-lesson-art figcaption { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.8); }
.s-lesson-art figcaption b { display: block; color: #fff; font-size: 16px; }
@media (min-width: 900px) {
  .s-band { padding: 48px var(--m) 56px; }
  .s-band-side .s-band-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; }
  .s-band-side .s-lesson-art figure { width: 240px; }
  .s-band-side:has(figure + figure) .s-lesson-art figure { width: 190px; }
}
.s-page .s-post { padding-top: 44px; }
.s-page .s-post article > :first-child { margin-top: 0; }
/* the opening answer, set as a lead */
.s-lead { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.5; color: var(--ink); }
.s-lead b { font-weight: 600; }
/* the play-along preview: the landing's sample card, lines lighting up as they're sung */
.s-play-card { margin-top: 18px; background: var(--card); border-radius: 28px; padding: 22px; }
.s-pc-head { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.s-pc-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.s-pc-t b { display: block; font-size: 18px; }
.s-pc-t span { font-size: 14px; color: var(--ink-2); }
.s-pc-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.s-play-card .s-lyrics { padding: 18px 0 0; gap: 12px; background: none; border-radius: 0; }
.s-play-card .s-line { font-size: clamp(19px, 2.2vw, 23px); color: var(--ink); }
.s-play-card.is-playing .s-line { color: #8C82A6; }
.s-play-card.is-playing .s-line.on { color: var(--ink); }
/* comparison tables: the Singalama column (or row) on a lavender step, prices in bold */
.s-us-last th:last-child, .s-us-last td:last-child, .s-us-row th, .s-us-row td { background: var(--violet-1); }
.s-compare .s-price-row td { font-weight: 700; }
/* covers beside the entries on the blog index and the song list */
.s-post-list li { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; }
.s-post-list .s-cover { border-radius: 12px; }
.s-thumb { width: 48px; height: 48px; border-radius: 8px; flex: none; }
.s-song-list li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 2px; }
/* parts rise in as they scroll into view; without script, or with reduced motion, everything simply shows */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal :is(.s-post article > *, .s-post > h2, .s-post > p, .s-post > ol, .s-post > ul, .s-post > section) { opacity: 0; transform: translateY(20px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2,.7,.2,1); }
  .js-reveal :is(.s-post article > *, .s-post > h2, .s-post > p, .s-post > ol, .s-post > ul, .s-post > section).is-in { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .s-cover-row { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .s-cover { border-radius: 10px; }
  .s-post-list li { grid-template-columns: 64px 1fr; gap: 14px; }
  .s-pc-head { grid-template-columns: 44px 1fr; }
  .s-pc-head img { width: 44px; height: 44px; }
  .s-pc-btn { grid-column: 1 / -1; justify-self: start; }
}

/* the founder's word, right under the hero */
.s-founder { padding: 44px var(--m); background: var(--violet-1); }
.s-founder figure { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; }
.s-founder img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); }
.s-founder blockquote { margin: 0; }
.s-founder blockquote p { margin: 0; font-size: clamp(19px, 2.3vw, 27px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; max-width: 46ch; }
.s-founder figcaption { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.s-founder figcaption b { color: var(--ink); }
@media (min-width: 768px) {
  .s-founder { padding: 56px var(--m); }
  .s-founder figure { grid-template-columns: 132px 1fr; gap: 32px; }
  .s-founder img { width: 132px; height: 132px; }
}
@media (max-width: 640px) { .s-post-list h3 { font-size: 19px; line-height: 1.2; } }

/* the author: a small portrait in the byline, a short box at the end of each post */
.s-byline { display: flex; align-items: center; gap: 10px; }
.s-byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex: none; }
.s-band .s-byline a { color: #fff; }
.s-author { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; margin-top: 44px; padding: 20px; background: var(--violet-1); border-radius: 22px; }
.s-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.s-author p { margin: 0; } .s-author p + p { margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.s-band-portrait { width: min(56vw, 240px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 6px solid var(--gold); }
.s-quote { margin: 28px 0 0; padding: 0 0 0 20px; border-left: 4px solid var(--gold); }
.s-quote blockquote { margin: 0; } .s-quote blockquote p { margin: 0; font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; line-height: 1.35; }
.s-quote figcaption { margin-top: 8px; color: var(--ink-2); }
