/* Song It Forward — Song Demos v2. Faithful implementation of the approved visual mockup.
   User-approved photos and watercolor are kept as real assets, not a flattened screenshot. */
.demos-body { background:#F5EFE6; }
.demos-body .site-header { position:relative; z-index:10; }
.demos-body .desktop-nav a[aria-current="page"],
.demos-body .mobile-nav a[aria-current="page"] { color:var(--apricot-deep); font-weight:700; }

/* Compact hero: no "Explore the songs" CTA and no artificial gap. */
.demos-hero { overflow:hidden; background:#F5EFE6; text-align:center; padding-top:26px; }
.demos-hero-content { position:relative; z-index:2; max-width:820px; }
.demos-eyebrow { display:flex; align-items:center; justify-content:center; gap:12px; font-size:.68rem; font-weight:700; letter-spacing:.19em; color:var(--sage-deep); margin:0 0 17px; }
.demos-eyebrow span { width:23px; height:1px; background:#90A087; flex:none; }
.demos-hero h1 { font:500 clamp(2.6rem,8.7vw,5.1rem)/1.04 var(--serif); color:var(--midnight); letter-spacing:-.065em; margin:0 auto 17px; text-wrap:balance; }
.demos-hero h1 em { font-weight:400; color:var(--apricot-deep); }
.demos-hero-copy { max-width:635px; margin:0 auto; font-size:clamp(.92rem,2.8vw,1.07rem); line-height:1.62; color:#465968; }
.demos-watercolor { position:relative; height:142px; margin-top:-9px; background:url('/assets/demo-watercolor-river-hills.webp') center 53% / cover no-repeat; opacity:.86; -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 28%, #000 81%, transparent 100%); mask-image:linear-gradient(to bottom,transparent 0%, #000 28%, #000 81%, transparent 100%); pointer-events:none; }

/* All four songs in precisely the user-approved order; flat cards, never a watercolor patch inside a card. */
.demos-collection { padding:0 0 64px; background:radial-gradient(ellipse at 7% 32%,rgba(164,179,155,.13),transparent 46%),radial-gradient(ellipse at 90% 85%,rgba(226,162,127,.13),transparent 46%),#F5EFE6; }
.song-demo-grid { max-width:1100px; display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
.song-demo-card { display:grid; grid-template-columns:minmax(0,35%) minmax(0,1fr); grid-template-areas:"photo content" "photo player"; grid-template-rows:1fr auto; gap:0 23px; padding:14px; min-width:0; min-height:235px; border:1px solid rgba(187,166,141,.2); border-radius:25px; background:#FFFCF8; box-shadow:0 9px 27px rgba(53,58,48,.09); }
.song-demo-photo { grid-area:photo; width:100%; height:100%; min-height:203px; object-fit:cover; object-position:center; border-radius:16px; display:block; align-self:stretch; background:#E4E4D9; }
.song-card-content { grid-area:content; min-width:0; padding:11px 8px 0 0; display:flex; flex-direction:column; align-items:flex-start; }
.song-category { font:700 .73rem/1.35 var(--sans); letter-spacing:.15em; color:var(--sage-deep); margin:0 0 6px; }
.song-card-content h2 { font:500 clamp(1.7rem,3vw,2.55rem)/1.12 var(--serif); letter-spacing:-.042em; margin:0 0 10px; color:var(--midnight); text-wrap:balance; }
.song-story { margin:0 0 7px; color:#48596A; font-size:.94rem; line-height:1.55; max-width:55ch; }
.song-dedication { font:italic 400 clamp(.84rem,1.5vw,1.02rem)/1.45 var(--serif); color:#71856A; margin:0 0 8px; }
.song-listening { grid-area:player; min-width:0; margin-top:auto; padding:5px 8px 6px 0; }
.song-track-caption { font-size:.76rem; color:var(--bronze); margin:0 0 8px; line-height:1.35; font-weight:700; }

/* Mama Jo-style custom player: dark round play, sage waveform with interactive native range. */
.demo-audio-player { display:flex; align-items:center; gap:13px; background:#F8F7F3; border:1px solid rgba(137,152,136,.16); border-radius:38px; padding:5px 13px 5px 6px; margin:0; min-height:53px; }
.demo-audio-player audio { display:none; }
.demo-audio-player .play-button { width:42px; height:42px; flex-shrink:0; background:var(--midnight); border-radius:50%; border:0; color:#fff; display:grid; place-items:center; padding:0; box-shadow:0 3px 8px rgba(36,54,75,.1); }
.demo-audio-player .play-button:hover { background:#3F6178; }
.demo-audio-player .play-button svg { width:19px; height:19px; }
.demo-audio-player .audio-details { display:flex; align-items:center; gap:13px; min-width:0; flex:1; }
.demo-audio-player .waveform-shell { position:relative; display:block; width:100%; height:30px; flex:1; min-width:0; }
.demo-audio-player .waveform-bars { display:flex; align-items:center; justify-content:space-between; gap:2px; width:100%; height:30px; overflow:hidden; pointer-events:none; }
.demo-audio-player .waveform-bars span { display:block; flex:1 1 2px; min-width:2px; max-width:5px; border-radius:8px; background:#D6DED4; transition:background .1s linear; }
.demo-audio-player .waveform-bars span.heard { background:var(--sage-deep); }
.demo-audio-player .audio-progress { position:absolute; inset:0; z-index:2; display:block; width:100%; height:100%; margin:0; border:0; padding:0; background:transparent; cursor:pointer; appearance:none; -webkit-appearance:none; outline-offset:3px; }
.demo-audio-player .audio-progress::-webkit-slider-runnable-track { height:30px; background:transparent; border:0; }
.demo-audio-player .audio-progress::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:12px; height:12px; margin-top:9px; border:2px solid var(--sage-deep); background:#FFFCF8; border-radius:50%; box-shadow:0 0 0 2px rgba(255,252,248,.65); }
.demo-audio-player .audio-progress::-moz-range-track { background:transparent; border:0; height:30px; }
.demo-audio-player .audio-progress::-moz-range-thumb { width:10px; height:10px; border:2px solid var(--sage-deep); background:#FFFCF8; border-radius:50%; }
.demo-audio-player .audio-progress:focus-visible { outline:3px solid var(--apricot-deep); outline-offset:4px; border-radius:12px; }
.demo-audio-player .audio-times { display:flex; align-items:center; justify-content:flex-end; gap:3px; min-width:76px; white-space:nowrap; font-size:.76rem; color:#4B5860; font-variant-numeric:tabular-nums; }
.demo-audio-player .audio-times [data-current]::after { content:" /"; color:#8B988E; }

/* Retain the site's approved closing sections and footer with less unnecessary space. */
.demos-message { padding:63px 0 69px; background:linear-gradient(120deg,#DEE5D9,#F1EEE5); text-align:center; }
.demos-message-inner { max-width:760px; }
.demos-message-inner img { margin:0 auto 12px; width:63px; height:auto; }
.demos-message h2 { font:500 clamp(2rem,5.4vw,3.3rem)/1.17 var(--serif); letter-spacing:-.045em; margin:0 auto 18px; color:var(--midnight); }
.demos-message h2 em { font-weight:400; color:var(--sage-deep); }
.demos-message-inner > p:last-child { max-width:650px; margin:0 auto; color:#4F615D; font-size:.96rem; line-height:1.72; }
.demos-cta { isolation:isolate; position:relative; overflow:hidden; text-align:center; padding:68px 0 72px; background:#F7ECE2; }
.demos-cta::before { content:""; position:absolute; inset:0; z-index:-2; background:url('/assets/demo-watercolor-river-hills.webp') center 45% / cover no-repeat; opacity:.13; }
.demos-cta::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(245,239,230,.85),rgba(255,244,231,.8)); }
.demos-cta-inner { position:relative; z-index:1; }
.demos-cta-heart { font:400 2.4rem/1 Georgia,serif; color:var(--apricot-deep); }
.demos-cta h2 { font:500 clamp(2.4rem,6vw,4.2rem)/1.1 var(--serif); color:var(--midnight); letter-spacing:-.05em; margin:8px auto 12px; }
.demos-cta h2 em { font-weight:400; color:var(--apricot-deep); }
.demos-cta p { margin:0 auto 23px; color:#52636C; }
.demos-body .site-footer { padding-top:35px; }

/* On a real iPhone, keep photo beside text like the approved mockup;
   player stretches across the full card for comfortable touch scrubbing. */
@media (max-width:700px) {
  .demos-hero { padding-top:20px; }
  .demos-eyebrow { margin-bottom:13px; font-size:.63rem; }
  .demos-hero h1 { font-size:clamp(2.25rem,9.35vw,3.45rem); margin-bottom:14px; }
  .demos-hero-copy { font-size:.91rem; line-height:1.55; }
  .demos-watercolor { height:119px; margin-top:-1px; background-position:54% 54%; }
  .demos-collection { padding-bottom:53px; }
  .song-demo-grid { gap:14px; }
  .song-demo-card { padding:12px; grid-template-columns:minmax(0,38%) minmax(0,1fr); grid-template-rows:auto auto; grid-template-areas:"photo content" "player player"; column-gap:12px; min-height:0; border-radius:21px; }
  .song-demo-photo { min-height:190px; height:100%; border-radius:13px; }
  .song-card-content { padding:2px 0 0; }
  .song-category { margin-bottom:5px; font-size:.65rem; letter-spacing:.13em; }
  .song-card-content h2 { font-size:clamp(1.32rem,5.1vw,1.8rem); line-height:1.13; margin-bottom:8px; }
  .song-story { font-size:.77rem; line-height:1.48; margin:0 0 9px; }
  .song-dedication { font-size:.78rem; line-height:1.38; margin:0 0 6px; }
  .song-listening { padding:11px 0 1px; }
  .song-track-caption { font-size:.69rem; margin-bottom:7px; }
  .demo-audio-player { padding-right:10px; }
  .demo-audio-player .audio-details { gap:8px; }
  .demo-audio-player .audio-times { font-size:.72rem; min-width:70px; }
  .demos-message { padding:48px 0 58px; }
}
@media (min-width:701px) and (max-width:1050px) {
  .song-demo-card { grid-template-columns:minmax(0,36%) minmax(0,1fr); gap:0 18px; }
  .song-card-content h2 { font-size:clamp(1.65rem,3.35vw,2.25rem); }
}
@media (min-width:850px) and (max-width:1080px) {
  .demos-body .desktop-nav { gap:14px; }
  .demos-body .brand { width:195px; }
  .demos-body .desktop-cta { padding:11px 13px; }
}
@media (min-width:850px) {
  .demos-hero { padding-top:42px; }
  .demos-watercolor { height:205px; margin-top:-21px; }
  .demos-collection { padding-bottom:84px; }
  .song-demo-grid { gap:17px; }
  .song-demo-card { padding:15px; min-height:247px; }
}
@media (max-width:359px) {
  .demos-body .container { width:min(100% - 24px,1120px); }
  .song-demo-card { grid-template-columns:35% minmax(0,1fr); column-gap:10px; padding:10px; }
  .song-demo-photo { min-height:202px; }
  .song-story { font-size:.735rem; line-height:1.42; }
  .song-dedication { font-size:.73rem; }
  .song-category { font-size:.60rem; }
  .song-card-content h2 { font-size:1.28rem; }
  .demo-audio-player { gap:9px; }
  .demo-audio-player .play-button { width:40px; height:40px; }
  .demo-audio-player .audio-times { min-width:66px; font-size:.69rem; }
}
@media (prefers-reduced-motion:reduce) {
  .demo-audio-player .waveform-bars span { transition:none; }
}
