/* ============================================================
   Piano Teacher Online - Stylesheet
   Extracted verbatim from the original single-file build.
   Theme variables live in :root and [data-theme="dark"].
   ============================================================ */

/* ═══════════════════════════════════════════
   COLOR TOKENS — refined & warm
═══════════════════════════════════════════ */
:root {
  /* Light mode — warm paper */
  --bg:        #f4f1eb;
  --surface:   #ffffff;
  --surface-2: #ece8df;
  --surface-3: #e2ddd3;
  --ink:       #1a1816;
  --ink-2:     #3c3a36;
  --muted:     #7a7870;
  --faint:     #a8a49c;
  --border:    #ddd8ce;
  --border-2:  #ccc7bc;
  --gold:      #9a7030;
  --gold-2:    #b88c48;
  --gold-lt:   #efe0c4;
  --green:     #3a6c4a;
  --red:       #a83838;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --ease:      cubic-bezier(.25,1,.5,1);
  --spring:    cubic-bezier(.34,1.56,.64,1);
  /* Unified radius scale */
  --r-xs:   3px;
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-pill: 100px;
  /* Unified shadows — softer, warmer */
  --sh-card:   0 1px 2px rgba(0,0,0,.04), 0 3px 10px rgba(0,0,0,.05);
  --sh-hover:  0 2px 6px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.09), 0 18px 48px rgba(0,0,0,.05);
  --sh-xl:     0 4px 12px rgba(0,0,0,.06), 0 18px 48px rgba(0,0,0,.11);
}

[data-theme="dark"] {
  /* Dark mode — warm Apple-style */
  --bg:        #161412;
  --surface:   #1e1c19;
  --surface-2: #262420;
  --surface-3: #302d28;
  --ink:       #ede8df;
  --ink-2:     #b8b3aa;
  --muted:     #706d66;
  --faint:     #504d48;
  --border:    #2e2b26;
  --border-2:  #3a3730;
  --gold:      #c49850;
  --gold-2:    #d4ac60;
  --gold-lt:   #2a2010;
  --green:     #4a8c5e;
  --red:       #c04444;
  --sh-card:   0 1px 3px rgba(0,0,0,.2), 0 4px 14px rgba(0,0,0,.28);
  --sh-hover:  0 2px 8px rgba(0,0,0,.24), 0 12px 36px rgba(0,0,0,.38), 0 24px 60px rgba(0,0,0,.24);
  --sh-xl:     0 4px 16px rgba(0,0,0,.28), 0 24px 60px rgba(0,0,0,.44);
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .9375rem;
  line-height: 1.7;
  font-weight: 300;
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: background .35s, color .35s;
  -webkit-text-size-adjust: 100%;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Grain removed — clean solid surfaces */

/* ═══════════════════════════════════════════
   PAGE SYSTEM & REVEAL
═══════════════════════════════════════════ */
.page { display: none; flex: 1; }
.page.active { display: block; animation: pgIn .4s var(--ease) both; }
@keyframes pgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.r { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.r.on { opacity: 1; transform: none; }
.r.d1 { transition-delay: .07s; } .r.d2 { transition-delay: .14s; }
.r.d3 { transition-delay: .21s; } .r.d4 { transition-delay: .28s; }
.r.d5 { transition-delay: .35s; } .r.d6 { transition-delay: .42s; }
.r.d7 { transition-delay: .49s; } .r.d8 { transition-delay: .56s; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 200;
  height: 64px;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 2.5rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background .35s, border-color .35s, box-shadow .25s;
}
header.scrolled { box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,.06); }
[data-theme="dark"] header.scrolled { box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,.22); }

.logo { display: flex; align-items: center; gap: 11px; cursor: pointer; flex-shrink: 0; }
.logo-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s;
}
.logo:hover .logo-ring { background: var(--ink); border-color: var(--ink); }
.logo-ring svg { width: 19px; height: 19px; transition: all .25s; }
.logo-ring svg path { stroke: var(--ink); fill: none; stroke-width: 5.5; stroke-linecap: round; transition: stroke .25s; }
.logo-ring svg rect { fill: var(--ink); stroke: none; transition: fill .25s; }
.logo-ring svg line { stroke: var(--ink); stroke-width: 2.2; transition: stroke .25s; }
.logo:hover .logo-ring svg path,
.logo:hover .logo-ring svg line { stroke: var(--surface); }
.logo:hover .logo-ring svg rect { fill: var(--surface); }
.logo-text .l1 { display: block; font-family: var(--serif); font-size: 14px; font-weight: 500; letter-spacing: .03em; line-height: 1.15; }
.logo-text .l2 { display: block; font-size: 9px; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.header-nav { display: flex; align-items: center; margin-left: auto; }
.nav-link {
  position: relative; padding: 8px 12px;
  font-size: 13px; font-weight: 300; color: var(--muted);
  transition: color .18s; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 5px; left: 12px; right: 12px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: center;
  transition: transform .24s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 400; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: .3rem; margin-left: 1rem; }
.icon-btn {
  position: relative; width: 34px; height: 34px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: background .18s, color .18s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Theme toggle */
.theme-icon-light, .theme-icon-dark { position: absolute; transition: opacity .28s, transform .35s var(--spring); }
[data-theme="light"] .theme-icon-dark  { opacity: 0; transform: rotate(40deg) scale(.65); }
[data-theme="dark"]  .theme-icon-light { opacity: 0; transform: rotate(-40deg) scale(.65); }

/* Cart count */
.cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 14px; height: 14px; padding: 0 3px;
  background: var(--gold); color: var(--surface); border-radius: 100px;
  font-size: 8px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0);
  transition: opacity .25s var(--spring), transform .25s var(--spring);
}
.cart-count.show { opacity: 1; transform: scale(1); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 4.5px;
  width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 7px; transition: background .18s;
}
.hamburger:hover { background: var(--surface-2); }
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--ink-2); border-radius: 2px; transition: transform .3s var(--ease), opacity .22s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile overlay */
.mob-overlay {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  opacity: 0; transition: opacity .28s;
}
.mob-overlay.open { display: flex; opacity: 1; }
.mob-link {
  font-family: var(--serif); font-size: clamp(1.8rem,7vw,2.6rem); font-weight: 300; font-style: italic;
  color: var(--ink); transition: color .18s, transform .2s var(--ease);
}
.mob-link:hover { color: var(--gold); transform: translateX(5px); }

/* Fly dot */
.fly-dot {
  position: fixed; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transition: left .6s var(--ease), top .55s var(--ease), opacity .4s .3s, transform .55s .25s var(--ease);
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; background: var(--ink); color: var(--surface);
  border: 1.5px solid var(--ink); border-radius: 100px;
  font-size: 13px; font-weight: 400; letter-spacing: .03em;
  transition: background .22s, color .22s, transform .18s var(--ease), box-shadow .22s;
  white-space: nowrap;
}
.btn-primary:hover { background: transparent; color: var(--ink); transform: translateY(-1px); box-shadow: var(--sh-card); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; background: transparent; color: var(--ink-2);
  border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 13px; font-weight: 300; letter-spacing: .03em;
  transition: border-color .22s, color .22s, transform .18s var(--ease);
}
.btn-outline:hover { border-color: var(--border-2); color: var(--ink); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 300; color: var(--muted);
  transition: color .18s, gap .22s var(--ease); padding: 3px 0;
}
.btn-ghost:hover { color: var(--ink); gap: 9px; }

/* ═══════════════════════════════════════════
   COVER ART — cinematic, collectible
═══════════════════════════════════════════ */
/* Clean, solid cover art — single gradient per cover, no muddy layering */
.ca-moon   { background: linear-gradient(165deg, #122040 0%, #06101e 60%, #040810 100%); }
.ca-forest { background: linear-gradient(165deg, #163018 0%, #0a1a09 60%, #050d04 100%); }
.ca-amber  { background: linear-gradient(165deg, #301a04 0%, #1a0c00 60%, #0c0500 100%); }
.ca-rose   { background: linear-gradient(165deg, #28103a 0%, #160620 60%, #0a040e 100%); }
.ca-cloud  { background: linear-gradient(165deg, #1a2e50 0%, #0e1a30 60%, #080e1c 100%); }
.ca-spring { background: linear-gradient(165deg, #1c3a12 0%, #0e2008 60%, #060d04 100%); }
.ca-violet { background: linear-gradient(165deg, #1e1038 0%, #10061e 60%, #08040e 100%); }
.ca-dusk   { background: linear-gradient(165deg, #341808 0%, #1c0c00 60%, #0e0500 100%); }

/* Cover structure */
.p-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }

/* Cover grain removed — clean surfaces */

.p-cover-bg { position: absolute; inset: 0; z-index: 0; transition: transform .7s var(--ease); }
.p-card:hover .p-cover-bg { transform: scale(1.03); }

.p-cover-fade {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; height: 58%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.28) 50%, rgba(0,0,0,.58) 100%);
}

/* Musical symbol — barely-there, purely decorative */
.p-cover-sym {
  position: absolute; top: .55rem; right: .65rem; z-index: 2;
  font-family: serif; font-size: 3rem; line-height: 1;
  color: rgba(255,255,255,.028); user-select: none; pointer-events: none;
}

/* Cover typography — the premium detail */
.p-cover-meta {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: .9rem .9rem .78rem;
}
.pcm-pub   { display: block; font-family: var(--sans); font-size: 6px; font-weight: 300; letter-spacing: .35em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: .42rem; }
.pcm-rule  { display: block; width: 100%; height: 1px; background: rgba(255,255,255,.1); margin-bottom: .42rem; }
.pcm-title { display: block; font-family: var(--serif); font-size: .9rem; font-weight: 300; font-style: italic; color: rgba(255,255,255,.94); line-height: 1.2; margin-bottom: .16rem; letter-spacing: .01em; }
.pcm-comp  { display: block; font-family: var(--sans); font-size: 8.5px; font-weight: 300; letter-spacing: .06em; color: rgba(255,255,255,.48); }

/* Badges */
.p-badge {
  position: absolute; top: 9px; left: 9px; z-index: 5;
  font-size: 8px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
}
.badge-feat { background: rgba(160,112,48,.82); color: #fff; }
.badge-new  { background: rgba(14,13,11,.78); color: #fff; }
.badge-free { background: rgba(58,108,74,.82); color: #fff; }
.p-diff {
  position: absolute; top: 9px; right: 9px; z-index: 5;
  font-size: 7.5px; font-weight: 300; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.48); background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  padding: 3px 7px; border-radius: 3px;
}

/* Preview button — slides up on hover */
.p-preview-btn {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 6;
  background: rgba(246,242,235,.96); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: .5rem .8rem; border: none; width: 100%;
  font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
  transform: translateY(100%);
  transition: transform .34s var(--ease);
}
[data-theme="dark"] .p-preview-btn { background: rgba(24,22,18,.96); color: var(--ink); }
.p-preview-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-card:hover .p-preview-btn { transform: translateY(0); }

/* ═══════════════════════════════════════════
   PRODUCT CARD
═══════════════════════════════════════════ */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.p-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--sh-card);
  text-decoration: none; color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .25s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--sh-hover); border-color: var(--border-2); }

.p-body { padding: .85rem .9rem .7rem; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.p-cat { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.p-title { font-family: var(--serif); font-size: .98rem; font-weight: 400; line-height: 1.3; color: var(--ink); }
.p-composer { font-size: 11px; color: var(--muted); font-weight: 300; letter-spacing: .02em; margin-top: 1px; }

.p-footer {
  padding: .6rem .9rem .75rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.p-price { font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.p-price.fp { color: var(--green); }

.p-actions { display: flex; align-items: center; gap: 5px; }

.p-wish {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  background: none; transition: all .2s var(--ease); flex-shrink: 0;
}
.p-wish:hover { border-color: var(--red); }
.p-wish.saved { background: var(--red); border-color: var(--red); }
.p-wish svg { width: 11px; height: 11px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: all .2s; }
.p-wish:hover svg { stroke: var(--red); }
.p-wish.saved svg { stroke: #fff; fill: #fff; }

.p-btn {
  height: 28px; padding: 0 11px; border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--border); background: none; color: var(--ink-2);
  transition: all .18s var(--ease);
}
.p-btn:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.p-btn svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-btn.buy { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.p-btn.buy:hover { background: var(--gold); border-color: var(--gold); }
.p-btn.dl  { background: var(--green); color: #fff; border-color: var(--green); }
.p-btn.dl:hover { background: #2a5438; border-color: #2a5438; }

/* ═══════════════════════════════════════════
   MODAL
═══════════════════════════════════════════ */
.modal-wrap {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(22,20,18,.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.modal-wrap.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-xl); max-width: 660px; width: 100%;
  display: grid; grid-template-columns: 190px 1fr;
  transform: scale(.96) translateY(10px);
  transition: transform .38s var(--ease);
  max-height: 82vh;
}
.modal-wrap.open .modal { transform: scale(1) translateY(0); }
.modal-left { position: relative; overflow: hidden; }
.modal-left-bg { position: absolute; inset: 0; }
.modal-left-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,.72) 100%); }
.modal-left-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem .9rem; }
.modal-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 10;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; transition: background .18s;
}
.modal-close:hover { background: rgba(0,0,0,.7); }
.modal-right { padding: 1.5rem 1.6rem; overflow-y: auto; display: flex; flex-direction: column; }
.modal-cat { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 400; margin-bottom: .4rem; }
.modal-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; margin-bottom: .2rem; line-height: 1.2; }
.modal-composer { font-size: 12.5px; color: var(--muted); font-weight: 300; margin-bottom: 1rem; }

/* Score preview area */
.modal-preview {
  position: relative; border-radius: 8px; overflow: hidden;
  background: var(--surface); margin-bottom: 1.2rem;
  border: 1px solid var(--border);
}
.modal-score-preview { padding: .5rem .25rem .25rem; }
.score-svg { width: 100%; height: auto; display: block; max-height: 200px; }

.modal-tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.modal-tag { font-size: 11px; letter-spacing: .02em; font-weight: 300; padding: 4px 10px; border: 1px solid var(--border); border-radius: 100px; color: var(--ink-2); background: var(--surface-2); }
.modal-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: .9rem; }
.modal-price { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.modal-actions { display: flex; gap: .4rem; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  display: grid; grid-template-columns: 55% 45%;
  min-height: calc(100vh - 64px);
  position: relative;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 3.5rem 6rem 4rem;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 2rem;
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 400;
}
.hero-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 6rem);
  font-weight: 300; line-height: .98; letter-spacing: -.01em;
  margin-bottom: 1.8rem;
}
.hero-h1 em { font-style: italic; color: var(--gold-2); }

.hero-desc { font-size: 14px; color: var(--muted); font-weight: 300; max-width: 360px; line-height: 1.75; margin-bottom: 2.5rem; }

.hero-ctas { display: flex; align-items: center; gap: .9rem; margin-bottom: 4rem; }

.hero-stats { display: flex; gap: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.hs-num { display: block; font-family: var(--serif); font-size: 1.85rem; font-weight: 300; line-height: 1; margin-bottom: 3px; }
.hs-lbl { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 300; }

/* Hero right */
.hero-right {
  background: var(--surface-2); position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 4rem 2.5rem;
  border-left: 1px solid var(--border);
}
.hero-clef {
  position: absolute; right: -1rem; top: 50%; transform: translateY(-50%);
  font-family: serif; font-size: 10rem; line-height: 1;
  color: rgba(0,0,0,.022); user-select: none; pointer-events: none;
  letter-spacing: -.02em;
}
[data-theme="dark"] .hero-clef { color: rgba(255,255,255,.018); }

/* Featured card */
.hero-feat-card {
  position: relative; z-index: 3; width: 240px;
  background: var(--surface); border-radius: 11px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-xl); overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hero-feat-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: var(--sh-hover); }
.hfc-body { padding: .82rem .9rem .9rem; }
.hfc-cat { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 400; margin-bottom: 3px; }
.hfc-title { font-family: var(--serif); font-size: 1rem; font-weight: 400; line-height: 1.25; margin-bottom: 2px; }
.hfc-comp { font-size: 11px; color: var(--muted); font-weight: 300; margin-bottom: .8rem; }
.hfc-row { display: flex; justify-content: space-between; align-items: center; }
.hfc-price { font-family: var(--serif); font-size: .98rem; }

/* Back card */
.hero-back-card {
  position: absolute; z-index: 2; width: 185px;
  background: var(--surface); border-radius: 9px;
  border: 1px solid var(--border);
  box-shadow: var(--sh-card); overflow: hidden;
  transform: rotate(3.5deg) translate(105px, 48px); opacity: .75;
}
.hbc-body { padding: .6rem .72rem; }
.hbc-title { font-family: var(--serif); font-size: .78rem; font-weight: 400; }
.hbc-price { font-size: 10px; color: var(--muted); font-weight: 300; }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.sec { padding: 5rem 2.5rem; }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.sec-eyebrow { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 400; display: flex; align-items: center; gap: 9px; margin-bottom: .55rem; }
.sec-eyebrow::before { content: ''; display: block; width: 18px; height: 1px; background: var(--gold); }
.sec-h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.08; }
.sec-h2 em { font-style: italic; color: var(--gold-2); }

/* ABRSM strip */
.strip {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3.5rem 4rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center;
}
.strip-h { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 300; line-height: 1.15; margin-bottom: .5rem; }
.strip-h em { font-style: italic; color: var(--gold-2); }
.strip-p { font-size: 13.5px; color: var(--muted); font-weight: 300; max-width: 400px; }
.strip-btn { padding: 11px 26px; background: var(--ink); color: var(--surface); border: none; border-radius: 100px; font-size: 13px; font-weight: 400; white-space: nowrap; transition: background .2s, transform .18s var(--ease); }
.strip-btn:hover { background: var(--gold); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   ARRANGEMENTS PAGE
═══════════════════════════════════════════ */
.arr-layout { display: grid; grid-template-columns: 205px 1fr; gap: 0; padding: 0 2.5rem 5rem; }
.arr-sidebar { padding-right: 2.5rem; border-right: 1px solid var(--border); position: sticky; top: 84px; align-self: start; }
.sb-section { margin-bottom: 1.8rem; }
.sb-lbl { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; display: block; margin-bottom: .7rem; }
.check-list { display: flex; flex-direction: column; gap: 7px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: color .18s; }
.check-item:hover { color: var(--ink); }
.check-item input[type="checkbox"] { width: 13px; height: 13px; border-radius: 3px; accent-color: var(--ink); flex-shrink: 0; }
.arr-main { padding-left: 2.5rem; }
.arr-topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.8rem; }
.arr-h1 { font-family: var(--serif); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 300; line-height: 1.08; margin-bottom: .35rem; }
.arr-sub { font-size: 13px; color: var(--muted); font-weight: 300; }
.sort-ctrl { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 7px; padding: 6px 11px; background: var(--surface); font-size: 12px; color: var(--muted); flex-shrink: 0; margin-top: 3px; }
.sort-ctrl select { border: none; outline: none; background: none; font-family: var(--sans); font-size: 12px; color: var(--ink); }
.pagination { display: flex; align-items: center; gap: 4px; margin-top: 3rem; justify-content: center; }
.pg-btn { width: 32px; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--muted); transition: all .18s; }
.pg-btn:hover, .pg-btn.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ═══════════════════════════════════════════
   ABRSM PAGE
═══════════════════════════════════════════ */
.abrsm-hero { position: relative; min-height: 240px; display: flex; align-items: center; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.abrsm-lines { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(0deg, transparent, transparent 22px, var(--border) 22px, var(--border) 23px); opacity: .12; }
.abrsm-wm { position: absolute; right: 2.5rem; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 500; color: rgba(0,0,0,.03); letter-spacing: .06em; user-select: none; font-style: italic; }
[data-theme="dark"] .abrsm-wm { color: rgba(255,255,255,.025); }
.abrsm-content { position: relative; z-index: 2; padding: 3.5rem 2.5rem; }
.abrsm-content h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 300; line-height: 1.12; margin-bottom: .75rem; max-width: 480px; }
.abrsm-content p { font-size: 14px; color: var(--muted); max-width: 380px; line-height: 1.65; font-weight: 300; }

.abrsm-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: 2.5rem 2.5rem; }
.abrsm-cat { background: var(--surface); padding: 1.8rem 1.4rem; cursor: pointer; transition: background .18s; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .65rem; }
.abrsm-cat:hover { background: var(--surface-2); }
.abrsm-cat-icon { width: 40px; height: 40px; background: var(--surface-2); border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: .15rem; transition: background .18s; }
.abrsm-cat:hover .abrsm-cat-icon { background: var(--surface-3); }
.abrsm-cat-icon svg { width: 20px; height: 20px; stroke: var(--ink-2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.abrsm-cat h3 { font-family: var(--serif); font-size: .98rem; font-weight: 500; line-height: 1.2; }
.abrsm-cat p { font-size: 12px; color: var(--muted); line-height: 1.5; font-weight: 300; flex: 1; }
.cat-arr { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; transition: gap .18s, color .18s; }
.abrsm-cat:hover .cat-arr { gap: 8px; color: var(--ink); }
.abrsm-note { margin: 0 2.5rem 3rem; border: 1px solid var(--border); border-radius: 7px; padding: .9rem 1.2rem; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); font-weight: 300; background: var(--surface-2); }
.abrsm-note svg { width: 14px; height: 14px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   SPLIT PAGES (Contact, Commission)
═══════════════════════════════════════════ */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.split-l { padding: 3.5rem 2.5rem; }
.split-r { padding: 3.5rem 2.5rem 3.5rem 2rem; border-left: 1px solid var(--border); background: var(--surface); }
.split-h1 { font-family: var(--serif); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 300; line-height: 1.1; margin-bottom: .8rem; }
.split-sub { font-size: 13.5px; color: var(--muted); max-width: 330px; line-height: 1.65; margin-bottom: 2.2rem; font-weight: 300; }
.split-form-h { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; margin-bottom: 1.4rem; }

.c-items { display: flex; flex-direction: column; gap: .75rem; }
.c-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: 9px; transition: border-color .18s, background .18s, transform .22s var(--ease); }
.c-item:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateX(3px); }
.c-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon svg { width: 17px; height: 17px; }
.c-lbl { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.c-val { font-family: var(--serif); font-size: .96rem; line-height: 1.2; }

.comm-benefits { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2.2rem; }
.c-ben { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 300; }
.c-chk { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-chk svg { width: 10px; height: 10px; stroke: var(--ink-2); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.comm-visual { flex: 1; min-height: 140px; background: var(--surface-2); border-radius: 10px; margin-top: auto; display: flex; align-items: flex-end; padding: 1.2rem; border: 1px solid var(--border); }
.comm-visual p { font-family: var(--serif); font-style: italic; font-size: .96rem; color: var(--muted); line-height: 1.5; }

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-bottom: .85rem; }
.form-g { display: flex; flex-direction: column; gap: 6px; margin-bottom: .85rem; }
.f-lbl {
  font-size: 11px; font-weight: 400; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.f-in, .f-sel, .f-ta {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--sans); font-size: 13.5px; font-weight: 300;
  background: var(--surface); color: var(--ink);
  outline: none; transition: border-color .18s, box-shadow .18s;
  width: 100%; line-height: 1.5;
}
.f-in:focus, .f-sel:focus, .f-ta:focus {
  border-color: var(--border-2);
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
[data-theme="dark"] .f-in:focus, [data-theme="dark"] .f-sel:focus, [data-theme="dark"] .f-ta:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.f-in::placeholder, .f-ta::placeholder { color: var(--faint); }
.f-sel {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8a49c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.f-ta { resize: vertical; min-height: 90px; }
.f-submit {
  width: 100%; padding: 12px 20px;
  background: var(--ink); color: var(--surface);
  border: none; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  letter-spacing: .04em;
  transition: background .2s, transform .18s var(--ease), box-shadow .2s;
  margin-top: .5rem;
}
.f-submit:hover { background: var(--gold); transform: translateY(-1px); box-shadow: var(--sh-card); }

/* About */
.about-wrap { max-width: 660px; margin: 0 auto; padding: 5rem 2.5rem; }
.about-wrap h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; margin-bottom: 2rem; line-height: 1.08; }
.about-wrap h1 em { font-style: italic; color: var(--gold-2); }
.about-wrap p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 1.3rem; font-weight: 300; }
.about-wrap p strong { color: var(--ink-2); font-weight: 400; }
.about-btns { display: flex; gap: .7rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* Breadcrumb */
.bc { display: flex; align-items: center; gap: 6px; padding: .9rem 2.5rem; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.bc a { cursor: pointer; transition: color .18s; }
.bc a:hover { color: var(--ink); }
.bc-sep { opacity: .4; }

/* ═══════════════════════════════════════════
   FOOTER — clean, readable, structured
═══════════════════════════════════════════ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 2.5rem 2rem;
  margin-top: auto;
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.8rem;
}

/* Brand column */
.ft-brand-name {
  display: flex; align-items: center; gap: 10px; margin-bottom: 1rem;
}
.ft-ring {
  width: 33px; height: 33px; border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ft-ring svg { width: 17px; height: 17px; }
.ft-ring svg path { stroke: var(--ink-2); fill: none; stroke-width: 5.5; stroke-linecap: round; }
.ft-ring svg rect { fill: var(--ink-2); }
.ft-ring svg line { stroke: var(--ink-2); stroke-width: 2.2; }
.ft-wordmark .fw1 { display: block; font-family: var(--serif); font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.15; }
.ft-wordmark .fw2 { display: block; font-size: 9px; font-weight: 300; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ft-tagline { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.65; max-width: 220px; margin-bottom: 1.5rem; }
.ft-socials { display: flex; gap: .5rem; }
.ft-social {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: border-color .18s, background .18s;
}
.ft-social:hover { border-color: var(--border-2); background: var(--surface-2); }
.ft-social svg { width: 15px; height: 15px; }

/* Nav columns */
.ft-col h6 {
  font-size: 9.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem; display: block;
}
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: .5rem; }
.ft-col a {
  font-size: 13.5px; color: var(--ink-2); font-weight: 300;
  cursor: pointer; transition: color .18s;
}
.ft-col a:hover { color: var(--ink); }

/* Newsletter column */
.ft-nl h6 { font-size: 9.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.ft-nl p { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.6; margin-bottom: 1rem; }
.ft-nl-form { display: flex; flex-direction: column; gap: .5rem; }
.ft-nl-input {
  padding: 8.5px 12px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); font-family: var(--sans); font-size: 13px; font-weight: 300;
  color: var(--ink); outline: none; transition: border-color .18s;
}
.ft-nl-input:focus { border-color: var(--border-2); }
.ft-nl-input::placeholder { color: var(--faint); }
.ft-nl-btn {
  padding: 9px 13px; background: var(--ink); color: var(--surface);
  border: none; border-radius: var(--r-md); font-family: var(--sans); font-size: 12.5px;
  font-weight: 400; letter-spacing: .04em; transition: background .2s;
}
.ft-nl-btn:hover { background: var(--gold); }

/* Footer bottom row */
.ft-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.ft-bottom p { font-size: 12px; color: var(--faint); font-weight: 300; }
.ft-bottom-links { display: flex; gap: 1.2rem; }
.ft-bottom-links a { font-size: 12px; color: var(--muted); cursor: pointer; transition: color .18s; }
.ft-bottom-links a:hover { color: var(--ink-2); }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 860px)
═══════════════════════════════════════════ */
@media (max-width: 860px) {

  /* ── Header: 48px, light and clean ── */
  header { height: 48px; padding: 0 1.1rem; gap: .8rem; }
  .logo { gap: 9px; }
  .logo-ring { width: 28px; height: 28px; border-width: 1px; }
  .logo-ring svg { width: 14px; height: 14px; }
  .logo-text .l2 { display: none; }
  .logo-text .l1 { font-size: 12px; letter-spacing: .02em; }
  .header-nav { display: none; }
  .hamburger { display: flex; width: 30px; height: 30px; }
  .hamburger span { width: 16px; }
  .header-right { gap: .1rem; margin-left: auto; }
  .icon-btn { width: 30px; height: 30px; border-radius: var(--r-sm); }
  .icon-btn svg { width: 14px; height: 14px; }
  .cart-count { width: 13px; height: 13px; font-size: 7px; }

  /* ── Mobile overlay menu ── */
  .mob-overlay { gap: 1.1rem; }
  .mob-link {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    letter-spacing: .01em;
  }

  /* ── Hero: breathes more, focused ── */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 2.8rem 1.2rem 2.2rem; }
  .hero-right { display: none; }
  .hero-eyebrow { font-size: 8.5px; letter-spacing: .22em; margin-bottom: 1.1rem; }
  .hero-h1 {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
    line-height: 1.06; margin-bottom: 1.1rem;
  }
  .hero-desc {
    font-size: 13.5px; line-height: 1.72;
    margin-bottom: 1.8rem; max-width: 100%;
  }
  .hero-ctas { gap: .65rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
  .btn-primary { padding: 10px 20px; font-size: 12.5px; }
  .btn-outline { padding: 9px 18px; font-size: 12.5px; }
  .hero-stats { gap: 1.8rem; padding-top: 1.6rem; }
  .hs-num { font-size: 1.45rem; margin-bottom: 2px; }
  .hs-lbl { font-size: 8px; letter-spacing: .15em; }

  /* ── Section rhythm ── */
  .sec { padding: 3rem 1.2rem; }
  .sec-top { margin-bottom: 1.6rem; flex-wrap: wrap; gap: .5rem; }
  .sec-h2 { font-size: clamp(1.5rem, 5vw, 1.8rem); }
  .sec-eyebrow { font-size: 8.5px; letter-spacing: .22em; margin-bottom: .4rem; }

  /* ── ABRSM strip ── */
  .strip { grid-template-columns: 1fr; padding: 2.4rem 1.2rem; gap: 1.3rem; }
  .strip-h { font-size: 1.45rem; line-height: 1.18; }
  .strip-p { font-size: 13px; line-height: 1.65; }
  .strip-btn { padding: 10px 20px; font-size: 12.5px; align-self: flex-start; }

  /* ── Cards: single column horizontal ── */
  .products-grid { grid-template-columns: 1fr; gap: .7rem; }

  .p-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    grid-template-rows: 1fr auto;
    height: 118px;
    border-radius: var(--r-md);
  }
  /* Cover spans both rows */
  .p-cover {
    grid-row: 1 / 3;
    aspect-ratio: auto;
    height: 118px;
    border-radius: var(--r-md) 0 0 var(--r-md);
  }
  .p-cover-bg { border-radius: var(--r-md) 0 0 var(--r-md); }
  .p-cover-fade { height: 50%; }
  /* Simplify cover in compact view */
  .p-cover-sym { display: none; }
  .pcm-pub, .pcm-rule { display: none; }
  .pcm-title { font-size: .7rem; line-height: 1.2; }
  .pcm-comp { display: none; }
  /* Badges: keep feat/free, hide diff to avoid overlap */
  .p-badge { top: 7px; left: 7px; font-size: 7px; padding: 2px 7px; }
  .p-diff { display: none; }
  /* No preview slide in compact layout */
  .p-preview-btn { display: none; }
  /* Disable zoom on cover bg in horizontal layout (subtle) */
  .p-card:hover .p-cover-bg { transform: scale(1.03); }

  /* Card info column */
  .p-body {
    grid-column: 2; grid-row: 1;
    padding: .8rem 1rem .3rem;
    gap: 3px; justify-content: flex-start;
    align-self: stretch;
  }
  .p-cat { font-size: 8.5px; letter-spacing: .18em; }
  .p-title { font-size: .9rem; line-height: 1.25; }
  .p-composer { font-size: 10.5px; margin-top: 0; }

  /* Card footer: price + buy */
  .p-footer {
    grid-column: 2; grid-row: 2;
    padding: 0 1rem .75rem;
    border-top: none; gap: .4rem;
  }
  .p-price { font-size: .92rem; }
  .p-wish { display: none; }
  .p-btn { height: 25px; padding: 0 10px; font-size: 9px; letter-spacing: .04em; border-radius: var(--r-xs); }
  .p-btn svg { width: 9px; height: 9px; }
  /* Remove hover lift on mobile */
  .p-card:hover { transform: none; box-shadow: var(--sh-card); border-color: var(--border-2); }
  .p-card:active { transform: scale(.99); }

  /* ── Arrangements page ── */
  .arr-layout { grid-template-columns: 1fr; padding: 0 1.2rem 3rem; }
  .arr-main { padding-left: 0; }
  .arr-h1 { font-size: 1.65rem; }
  .arr-sub { font-size: 12.5px; line-height: 1.6; }
  .arr-topbar { flex-direction: column; gap: .65rem; align-items: flex-start; margin-bottom: 1.5rem; }
  .sort-ctrl { align-self: stretch; font-size: 12px; border-radius: var(--r-md); }

  /* Filters → pill tags (touch-friendly) */
  .arr-sidebar {
    position: static; border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 1.1rem; margin-bottom: 1.4rem;
    display: flex; flex-direction: column; gap: .65rem;
  }
  .sb-section { display: flex; flex-direction: column; gap: .35rem; }
  .sb-lbl { font-size: 8.5px; letter-spacing: .2em; margin-bottom: 0; }
  .check-list { flex-direction: row; flex-wrap: wrap; gap: .35rem; }
  .check-item {
    font-size: 12px; padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--surface); color: var(--ink-2);
    transition: all .15s; gap: 0; line-height: 1.4;
    user-select: none; -webkit-tap-highlight-color: transparent;
  }
  .check-item:has(input:checked) {
    background: var(--ink); color: var(--surface); border-color: var(--ink);
  }
  .check-item input[type="checkbox"] { display: none; }

  /* ── ABRSM ── */
  .abrsm-hero { min-height: auto; }
  .abrsm-content { padding: 2rem 1.2rem; }
  .abrsm-content h1 { font-size: 1.5rem; margin-bottom: .6rem; line-height: 1.15; }
  .abrsm-content p { font-size: 13.5px; line-height: 1.68; }
  .abrsm-wm { display: none; }
  .abrsm-lines { opacity: .15; }
  .abrsm-cats { grid-template-columns: repeat(2, 1fr); margin: 1.4rem 1.2rem; gap: 1px; }
  .abrsm-cat { padding: 1.2rem 1rem; gap: .5rem; }
  .abrsm-cat-icon { width: 34px; height: 34px; border-radius: var(--r-sm); margin-bottom: 0; }
  .abrsm-cat-icon svg { width: 17px; height: 17px; }
  .abrsm-cat h3 { font-size: .9rem; line-height: 1.25; }
  .abrsm-cat p { font-size: 11.5px; line-height: 1.5; }
  .abrsm-note { margin: 0 1.2rem 1.8rem; font-size: 12px; padding: .8rem 1rem; border-radius: var(--r-md); }

  /* ── Contact / Commission ── */
  .split-layout { grid-template-columns: 1fr; min-height: auto; }
  .split-r { border-left: none; border-top: 1px solid var(--border); padding: 2rem 1.2rem 2.5rem; }
  .split-l { padding: 2rem 1.2rem; }
  .split-h1 { font-size: 1.65rem; margin-bottom: .7rem; }
  .split-sub { font-size: 13px; line-height: 1.68; margin-bottom: 1.8rem; }
  .split-form-h { font-size: 1.2rem; margin-bottom: 1.1rem; }
  .c-items { gap: .55rem; }
  .c-item {
    padding: .8rem 1rem;
    border-radius: var(--r-md);
  }
  .c-icon { width: 34px; height: 34px; }
  .c-icon svg { width: 15px; height: 15px; }
  .c-lbl { font-size: 8.5px; }
  .c-val { font-size: .88rem; }
  .comm-benefits { gap: 10px; margin-bottom: 1.8rem; }
  .c-ben { font-size: 13px; line-height: 1.6; }
  .comm-visual { min-height: 95px; padding: 1rem; border-radius: var(--r-md); }
  .comm-visual p { font-size: .92rem; }

  /* ── Modal: compact and clean ── */
  .modal { grid-template-columns: 1fr; max-height: 86vh; }
  .modal-left { height: 160px; flex-shrink: 0; }
  .modal-right { padding: 1.3rem 1.3rem 1.1rem; }
  .modal-cat { font-size: 9px; margin-bottom: .35rem; }
  .modal-title { font-size: 1.2rem; margin-bottom: .2rem; }
  .modal-composer { font-size: 12px; margin-bottom: .9rem; }
  .modal-preview { margin-bottom: 1rem; border-radius: var(--r-md); }
  .score-svg { max-height: 140px; }
  .modal-tags { gap: .3rem; margin-bottom: .9rem; }
  .modal-tag { font-size: 10.5px; padding: 3px 9px; }
  .modal-footer { padding-top: .85rem; }
  .modal-price { font-size: 1.3rem; }

  /* ── Breadcrumb ── */
  .bc { padding: .6rem 1.2rem; font-size: 11.5px; }

  /* ── Footer ── */
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; padding-bottom: 2rem; }
  footer { padding: 2.5rem 1.2rem 1.6rem; }
  .ft-tagline { font-size: 12.5px; line-height: 1.6; }
  .ft-col h6 { margin-bottom: .75rem; }
  .ft-col a { font-size: 13px; }
  .ft-nl p { font-size: 12.5px; }

  /* ── About ── */
  .about-wrap { padding: 2.5rem 1.2rem; }
  .about-wrap h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }
  .about-wrap p { font-size: 14px; line-height: 1.78; margin-bottom: 1.1rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Header even lighter */
  header { padding: 0 1rem; }

  /* Hero tighter on small phones */
  .hero-left { padding: 2.2rem 1rem 1.8rem; }
  .hero-h1 { font-size: clamp(1.85rem, 7vw, 2.1rem); }
  .hero-stats { gap: 1.4rem; }
  .hs-num { font-size: 1.3rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  /* Slightly wider cover on very small screens */
  .p-card { grid-template-columns: 96px 1fr; height: 112px; }
  .p-cover { height: 112px; }

  /* Sections */
  .sec { padding: 2.5rem 1rem; }
  .strip { padding: 2rem 1rem; }

  /* ABRSM single col */
  .abrsm-cats { grid-template-columns: 1fr; margin: 1.2rem 1rem; }
  .abrsm-content { padding: 1.8rem 1rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .split-l, .split-r { padding: 1.8rem 1rem; }

  /* Footer single col */
  .ft-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 1.5rem; }
  footer { padding: 2rem 1rem 1.4rem; }

  /* Modal */
  .modal-right { padding: 1.1rem; }
  .modal-title { font-size: 1.1rem; }
  .modal-left { height: 140px; }

  /* About */
  .about-wrap { padding: 2rem 1rem; }
  .about-wrap h1 { font-size: 1.6rem; }
}


:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.toast{position:fixed;bottom:1.6rem;left:50%;transform:translateX(-50%) translateY(12px);background:var(--ink);color:var(--surface);padding:10px 20px;border-radius:var(--r-pill);font-family:var(--sans);font-size:13px;font-weight:300;opacity:0;pointer-events:none;transition:opacity .25s var(--ease),transform .25s var(--ease);z-index:9990;white-space:nowrap;max-width:90vw;}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.cart-veil{position:fixed;inset:0;z-index:290;background:rgba(22,20,18,.42);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .32s;}
.cart-veil.open{opacity:1;pointer-events:all;}
.cart-drawer{position:fixed;right:0;top:0;bottom:0;z-index:300;width:360px;max-width:100vw;background:var(--surface);border-left:1px solid var(--border);box-shadow:var(--sh-xl);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .36s var(--ease);}
.cart-drawer.open{transform:translateX(0);}
.cart-hdr{display:flex;align-items:center;justify-content:space-between;padding:1.3rem 1.5rem;border-bottom:1px solid var(--border);flex-shrink:0;}
.cart-hdr-title{font-family:var(--serif);font-size:1.15rem;font-weight:400;}
.cart-x{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--muted);font-size:18px;line-height:1;cursor:pointer;}
.cart-x:hover{background:var(--surface-3);color:var(--ink);}
.cart-body{flex:1;overflow-y:auto;padding:1rem 1.5rem;}
.cart-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-align:center;gap:.85rem;padding:2rem;}
.cart-empty-state h4{font-family:var(--serif);font-size:1.1rem;font-weight:400;}
.cart-empty-state p{font-size:13px;color:var(--muted);font-weight:300;line-height:1.55;max-width:220px;}
.cart-item{display:flex;align-items:center;gap:.9rem;padding:.9rem 0;border-bottom:1px solid var(--border);}
.cart-item:last-child{border-bottom:none;}
.cart-item-swatch{width:40px;height:54px;border-radius:var(--r-xs);flex-shrink:0;}
.cart-item-info{flex:1;min-width:0;}
.cart-item-title{font-family:var(--serif);font-size:.88rem;font-weight:400;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cart-item-comp{font-size:11px;color:var(--muted);font-weight:300;margin-top:1px;}
.cart-item-price{font-family:var(--serif);font-size:.88rem;margin-top:.3rem;color:var(--gold);}
.cart-item-rm{width:26px;height:26px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:var(--faint);font-size:16px;cursor:pointer;}
.cart-ftr{padding:1.2rem 1.5rem 1.6rem;border-top:1px solid var(--border);flex-shrink:0;}
.cart-subtotal{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:1rem;}
.cart-subtotal span{font-size:13px;color:var(--muted);font-weight:300;}
.cart-total-val{font-family:var(--serif);font-size:1.3rem;font-weight:400;color:var(--ink);}
.cart-checkout{width:100%;padding:12px;background:var(--ink);color:var(--surface);border:none;border-radius:var(--r-pill);font-family:var(--sans);font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;transition:background .2s,transform .18s var(--ease);margin-bottom:.7rem;}
.cart-checkout:hover{background:var(--gold);transform:translateY(-1px);}
.cart-note{text-align:center;font-size:11px;color:var(--muted);font-weight:300;}
.p-btn.payhip{background:var(--gold);color:#fff;border-color:var(--gold);}
.payhip-note{font-size:9.5px;color:var(--faint);letter-spacing:.04em;display:flex;align-items:center;gap:4px;margin-top:.5rem;}
.abrsm-hub{padding:2rem 2.5rem 4rem;}
.abrsm-hub-header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:2rem;padding-bottom:1.4rem;border-bottom:1px solid var(--border);flex-wrap:wrap;gap:.75rem;}
.abrsm-hub-title{font-family:var(--serif);font-size:1.05rem;font-weight:400;}
.abrsm-hub-sub{font-size:12px;color:var(--muted);font-weight:300;margin-top:.2rem;}
.abrsm-tab-nav{display:flex;gap:.4rem;flex-wrap:wrap;}
.abrsm-tab{padding:7px 15px;border-radius:var(--r-pill);border:1px solid var(--border);background:none;font-family:var(--sans);font-size:11.5px;font-weight:300;color:var(--muted);cursor:pointer;transition:all .18s var(--ease);white-space:nowrap;}
.abrsm-tab:hover{border-color:var(--gold);color:var(--gold);}
.abrsm-tab.active{background:var(--ink);color:var(--surface);border-color:var(--ink);}
.abrsm-grade-bar{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1.8rem;}
.abrsm-grade-btn{padding:7px 16px;border-radius:var(--r-pill);border:1px solid var(--border);background:var(--surface);font-family:var(--sans);font-size:13px;font-weight:300;color:var(--ink);cursor:pointer;white-space:nowrap;transition:all .18s var(--ease);}
.abrsm-grade-btn:hover{border-color:var(--ink-2);}
.abrsm-grade-btn.active{background:var(--ink);color:var(--surface);border-color:var(--ink);}
.abrsm-coming-soon,.grade-coming-soon{text-align:center;padding:3.5rem 2rem;border:1.5px dashed var(--border);border-radius:var(--r-lg);}
.abrsm-coming-soon .cs-icon,.grade-coming-soon .gcs-icon{font-size:2rem;opacity:.18;display:block;margin-bottom:.75rem;}
.abrsm-coming-soon h4,.grade-coming-soon h4{font-family:var(--serif);font-size:1.05rem;font-weight:400;margin-bottom:.4rem;}
.abrsm-coming-soon p,.grade-coming-soon p{font-size:13px;color:var(--muted);font-weight:300;line-height:1.7;max-width:300px;margin:0 auto;}
.p-card.coming-soon{opacity:.5;pointer-events:none;}
[data-abrsm-cat]:hover{transform:translateY(-5px);box-shadow:var(--sh-hover);}
@media(max-width:860px){.abrsm-hub{padding:1.5rem 1.2rem 3rem;}.cart-drawer{width:100%;border-left:none;}}




/* ══ COVER ARTWORK TYPOGRAPHY — editorial scale ══
   Only affects artwork inside .p-cover — nothing else */

/* Stronger bottom fade so large titles stay readable */
.p-cover-fade {
  height: 78% !important;
  background: linear-gradient(to top,
    rgba(0,0,0,.86) 0%,
    rgba(0,0,0,.55) 32%,
    rgba(0,0,0,.18) 62%,
    transparent 100%) !important;
}

/* Cover meta container — give it more room */
.p-cover-meta {
  padding: .85rem .95rem .85rem !important;
}

/* "PIANO TEACHER ONLINE" label — smaller, more minimal */
.pcm-pub {
  font-size: 7px !important;
  letter-spacing: .24em !important;
  color: rgba(255,255,255,.38) !important;
  margin-bottom: .2rem !important;
}

/* Horizontal rule between label and title */
.pcm-rule {
  width: 16px !important;
  height: 1px !important;
  background: rgba(255,255,255,.22) !important;
  margin: .25rem 0 !important;
}

/* ── TITLE — the editorial focal point ── */
.pcm-title {
  font-family: var(--serif) !important;
  font-size: 1.45rem !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  color: rgba(255,255,255,.95) !important;
  display: block !important;
}

/* Composer — slightly larger than before, still subordinate */
.pcm-comp {
  font-family: var(--sans) !important;
  font-size: 11.5px !important;
  color: rgba(255,255,255,.58) !important;
  font-weight: 300 !important;
  letter-spacing: .03em !important;
  margin-top: .3rem !important;
  display: block !important;
}

/* Mobile — scale down slightly so titles still fit */
@media(max-width:860px) {
  .pcm-title { font-size: 1.15rem !important; }
  .p-cover-meta { padding: .7rem .8rem .75rem !important; }
}

/* ============================================================
   ADDED FOR THE PROJECT SPLIT
   1) Real cover images (when a product has coverImage set)
   2) Locked first-page preview component (.pv-*)
   These are additive; generative gradient covers are unchanged.
   ============================================================ */

/* --- Image-based covers ------------------------------------ */
.p-cover-bg.has-img,
.modal-left-bg.has-img,
.cart-item-swatch.has-img{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* --- Locked / preview component ---------------------------- */
.pv-wrap{position:relative;overflow:hidden;border-radius:6px;line-height:0;}
.pv-wrap img{width:100%;display:block;border-radius:6px;}
.pv-blur{
  position:absolute;left:0;right:0;bottom:0;height:34%;
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  pointer-events:none;
}
.pv-fade{
  position:absolute;left:0;right:0;bottom:0;height:58%;
  background:linear-gradient(to bottom,transparent,var(--surface) 88%);
  pointer-events:none;
}
.pv-fade.free{height:40%;}
.pv-badge{
  position:absolute;bottom:.7rem;left:0;right:0;
  display:flex;align-items:center;justify-content:center;gap:.4rem;
  font-family:var(--sans);font-size:8.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted);line-height:1.4;
  padding:0 1rem;text-align:center;
}
.pv-badge svg{width:11px;height:11px;flex:none;}
.pv-empty{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:120px;gap:.5rem;padding:1.5rem;
}
.pv-empty-sym{font-family:var(--serif);font-size:2.5rem;opacity:.25;line-height:1;}
.pv-empty p{
  font-family:var(--sans);font-size:11px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted);font-weight:300;margin:0;
}
