/* Virtual Handpan — standalone content page.
   Reuses the Tongue Drum design tokens (palette, radius, accent) but ships its
   own layout so the page SCROLLS (the app's style-v2.css locks body overflow). */
:root{
  --bg-dark:#111130;
  --bg-2:#0b0e24;
  --glass-bg:rgba(8,12,30,0.72);
  --glass-border:rgba(100,140,200,0.16);
  --text-1:rgba(255,255,255,0.90);
  --text-2:rgba(255,255,255,0.68);
  --text-3:rgba(255,255,255,0.50);
  --accent:#7C6FFF;
  --accent-2:#9d92ff;
  --accent-glow:rgba(124,111,255,0.30);
  --gold:#FFD32A;
  --radius:14px;
  --radius-sm:10px;
  --maxw:920px;
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 50% 0%,rgba(124,111,255,0.14),transparent 55%),
    radial-gradient(circle at 50% 90%,rgba(253,121,168,0.06),transparent 60%),
    var(--bg-dark);
  color:var(--text-1);
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;min-height:100vh;
}
a{color:var(--accent-2);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}

/* ---- header / nav ---- */
.hp-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:18px;
  padding:12px 20px;background:var(--glass-bg);backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--glass-border)}
.hp-brand{font-family:'Fredoka One',Inter,sans-serif;font-weight:700;font-size:18px;color:var(--text-1);white-space:nowrap}
.hp-brand span{color:var(--accent-2)}
.hp-nav{margin-left:auto;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.hp-nav a{color:var(--text-2);font-size:14px;font-weight:500}
.hp-nav a:hover{color:var(--text-1);text-decoration:none}
.hp-nav a.play{background:var(--accent);color:#fff;padding:7px 15px;border-radius:8px;font-weight:600}
.hp-nav a.play:hover{background:var(--accent-2)}

/* ---- layout ---- */
main{max-width:var(--maxw);margin:0 auto;padding:0 20px 80px}
.hero{text-align:center;padding:40px 0 8px}
h1{font-family:'Fredoka One',Inter,sans-serif;font-size:clamp(28px,5vw,44px);line-height:1.15;font-weight:700;margin-bottom:12px}
.hero p.lede{color:var(--text-2);font-size:clamp(15px,2.4vw,19px);max-width:640px;margin:0 auto}
h2{font-family:'Fredoka One',Inter,sans-serif;font-size:clamp(22px,3.5vw,30px);margin:44px 0 14px;font-weight:700}
h3{font-size:18px;margin:22px 0 8px;font-weight:600}
p{color:var(--text-2);margin-bottom:14px}
section{scroll-margin-top:80px}

/* ---- instrument ---- */
.instrument-wrap{margin:22px auto 8px;max-width:560px}
#handpan-svg{width:100%;height:auto;display:block;
  filter:drop-shadow(0 22px 46px rgba(0,0,0,0.55)) drop-shadow(0 0 42px rgba(124,111,255,0.14));touch-action:none}
.hp-field:focus-visible{outline:none}
.hp-field:focus-visible .hp-dimple,.hp-ding:focus-visible circle:first-of-type{stroke:var(--gold);stroke-width:2.5}
.hp-field .hp-label{pointer-events:none;user-select:none}
.hp-field:active .hp-dimple{stroke:var(--accent-2)}

/* ---- controls ---- */
.controls{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:center;
  margin:14px auto 4px;padding:14px 18px;max-width:560px;
  background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:var(--radius)}
.controls label{font-size:13px;color:var(--text-3);font-weight:600;text-transform:uppercase;letter-spacing:.06em}
#scale-select{background:var(--bg-2);color:var(--text-1);border:1px solid var(--glass-border);
  border-radius:var(--radius-sm);padding:9px 14px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit}
#scale-select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
#tuning-info{width:100%;text-align:center;color:var(--text-2);font-size:14px}
.play-hint{text-align:center;color:var(--text-3);font-size:13px;margin:10px 0 0}
.play-hint kbd{background:var(--bg-2);border:1px solid var(--glass-border);border-radius:5px;
  padding:1px 6px;font-family:ui-monospace,Menlo,monospace;font-size:12px;color:var(--text-2)}

/* ---- cards / FAQ ---- */
.card{background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:var(--radius);
  padding:20px 22px;margin:16px 0}
.faq-item{border-bottom:1px solid var(--glass-border);padding:16px 0}
.faq-item:last-child{border-bottom:none}
.faq-item h3{margin-top:0;color:var(--text-1)}

/* ---- affiliate ---- */
.aff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:18px 0}
.aff-card{background:linear-gradient(160deg,rgba(124,111,255,0.10),rgba(8,12,30,0.6));
  border:1px solid var(--glass-border);border-radius:var(--radius);padding:20px}
.aff-card h3{margin-top:0}
.aff-card p{font-size:14px;margin-bottom:14px}
.aff-link{display:inline-block;background:var(--accent);color:#fff;padding:9px 16px;border-radius:8px;
  font-weight:600;font-size:14px}
.aff-link:hover{background:var(--accent-2);text-decoration:none}
.aff-note{font-size:12px;color:var(--text-3);margin-top:10px}

/* ---- CTA ---- */
.cta{text-align:center;background:linear-gradient(160deg,rgba(124,111,255,0.16),rgba(8,12,30,0.5));
  border:1px solid var(--glass-border);border-radius:var(--radius);padding:28px 22px;margin:40px 0}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:#fff;
  padding:12px 24px;border-radius:10px;font-weight:700;font-size:16px;margin-top:8px}
.btn:hover{background:var(--accent-2);text-decoration:none}

/* ---- footer ---- */
.hp-footer{border-top:1px solid var(--glass-border);margin-top:50px;padding:26px 20px;text-align:center}
.hp-footer nav{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-bottom:12px}
.hp-footer a{color:var(--text-2);font-size:14px}
.hp-footer .cr{color:var(--text-3);font-size:13px}

@media (max-width:520px){
  body{font-size:15px}
  .hp-header{padding:10px 14px;gap:10px}
  .hp-brand{font-size:16px}
  main{padding:0 14px 60px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
