/* ══ "Got a song?" enquiry card ══════════════════════════════════════════
   A quiet slide-in card (bottom-left on desktop, bottom sheet on phones).
   Two variants, switched in popup.js / data-variant on #hkPop:
     hybrid → email + optional note + link to the full form
     email  → email only
   ═══════════════════════════════════════════════════════════════════════ */

.hk-pop{
  position:fixed;left:24px;bottom:24px;z-index:120;
  width:min(392px,calc(100vw - 48px));
  background:#100f0c;
  border:1px solid rgba(232,220,200,0.12);
  border-radius:14px;
  box-shadow:0 30px 80px rgba(0,0,0,0.6),0 2px 10px rgba(0,0,0,0.35);
  padding:26px 26px 22px;
  color:var(--cream);
  opacity:0;transform:translateY(24px) scale(0.985);
  visibility:hidden;pointer-events:none;
  transition:opacity 0.45s ease,transform 0.6s cubic-bezier(0.23,1,0.32,1),visibility 0s linear 0.6s;
}
.hk-pop.is-open{
  opacity:1;transform:none;visibility:visible;pointer-events:auto;
  transition:opacity 0.45s ease,transform 0.6s cubic-bezier(0.23,1,0.32,1),visibility 0s;
}
/* hairline accent across the top edge */
.hk-pop::before{
  content:"";position:absolute;left:26px;right:26px;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(232,245,66,0.55),transparent);
}

.hk-pop-close{
  position:absolute;top:10px;right:12px;
  width:32px;height:32px;border-radius:50%;
  background:none;border:none;color:var(--muted);cursor:pointer;
  font-size:20px;line-height:1;transition:color 0.2s,background 0.2s;
}
.hk-pop-close:hover{color:var(--cream);background:rgba(232,220,200,0.06);}

.hk-pop-kicker{
  display:flex;align-items:center;gap:10px;
  font-size:10.5px;letter-spacing:2.5px;text-transform:uppercase;color:var(--muted);
  margin-bottom:14px;
}
.hk-pop-kicker i{
  width:6px;height:6px;border-radius:50%;background:var(--yellow);display:inline-block;
  box-shadow:0 0 0 0 rgba(232,245,66,0.5);animation:hkPopPulse 2.4s ease-out 2;
}
@keyframes hkPopPulse{
  0%{box-shadow:0 0 0 0 rgba(232,245,66,0.45);}
  70%{box-shadow:0 0 0 7px rgba(232,245,66,0);}
  100%{box-shadow:0 0 0 0 rgba(232,245,66,0);}
}

.hk-pop-title{
  font-family:var(--font-serif);font-weight:400;
  font-size:29px;line-height:1.12;margin:0 30px 10px 0;color:var(--cream);
}
.hk-pop-title em{font-style:italic;color:var(--yellow);}
.hk-pop-body{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 18px;}

.hk-pop-form{display:flex;flex-direction:column;gap:10px;}
.hk-pop-field{
  width:100%;box-sizing:border-box;
  background:rgba(232,220,200,0.04);
  border:1px solid rgba(232,220,200,0.14);border-radius:8px;
  color:var(--cream);font:inherit;font-size:14.5px;
  padding:13px 14px;outline:none;
  transition:border-color 0.25s,background 0.25s;
}
.hk-pop-field::placeholder{color:rgba(232,220,200,0.38);}
.hk-pop-field:focus{border-color:rgba(232,245,66,0.55);background:rgba(232,220,200,0.06);}
.hk-pop-field.is-invalid{border-color:rgba(255,120,90,0.7);}

/* email-only: field and button share one row */
.hk-pop[data-variant="email"] .hk-pop-row{display:flex;gap:8px;}
.hk-pop[data-variant="email"] .hk-pop-row .hk-pop-field{flex:1;min-width:0;}
.hk-pop[data-variant="email"] .hk-pop-note,
.hk-pop[data-variant="email"] .hk-pop-more{display:none;}
.hk-pop[data-variant="hybrid"] .hk-pop-fine{display:none;}

.hk-pop-submit{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--yellow);color:var(--bg);border:none;cursor:pointer;
  font:inherit;font-size:12px;font-weight:500;letter-spacing:2px;text-transform:uppercase;
  padding:14px 20px;border-radius:8px;white-space:nowrap;
  transition:background 0.2s,transform 0.2s;
}
.hk-pop-submit:hover{background:#fff;transform:translateY(-1px);}
.hk-pop-submit:disabled{opacity:0.6;cursor:default;transform:none;}
.hk-pop[data-variant="hybrid"] .hk-pop-submit--inline,
.hk-pop[data-variant="email"]  .hk-pop-submit--block{display:none;}
.hk-pop[data-variant="hybrid"] .hk-pop-submit--block{width:100%;margin-top:4px;}

.hk-pop-error{font-size:12px;color:#ff9a80;min-height:0;margin:2px 0 0;}
.hk-pop-error:empty{display:none;}

.hk-pop-more{
  display:inline-flex;align-items:center;gap:8px;margin-top:14px;
  font-size:12px;letter-spacing:0.5px;color:var(--muted);text-decoration:none;
  background:none;border:none;padding:0;cursor:pointer;font-family:inherit;
  transition:color 0.25s;
}
.hk-pop-more span{transition:transform 0.3s;}
.hk-pop-more:hover{color:var(--cream);}
.hk-pop-more:hover span{transform:translateX(3px);}

.hk-pop-fine{margin-top:12px;font-size:11px;letter-spacing:1px;text-transform:uppercase;color:rgba(232,220,200,0.35);}

/* success state */
.hk-pop-done{display:none;text-align:left;}
.hk-pop.is-sent .hk-pop-main{display:none;}
.hk-pop.is-sent .hk-pop-done{display:block;}
.hk-pop-done-mark{
  width:40px;height:40px;border-radius:50%;margin-bottom:14px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(232,245,66,0.5);color:var(--yellow);font-size:18px;
}

/* ── phones: bottom sheet ── */
@media(max-width:600px){
  .hk-pop{
    left:0;right:0;bottom:0;width:auto;
    border-radius:18px 18px 0 0;border-bottom:none;
    padding:30px 22px calc(22px + env(safe-area-inset-bottom));
    transform:translateY(100%);
  }
  .hk-pop::after{ /* grab handle */
    content:"";position:absolute;top:9px;left:50%;width:38px;height:4px;margin-left:-19px;
    border-radius:4px;background:rgba(232,220,200,0.18);
  }
  .hk-pop-title{font-size:26px;}
  .hk-pop[data-variant="email"] .hk-pop-row{flex-direction:column;}
  .hk-pop-field{font-size:16px;} /* stops iOS zooming into the field */
}

@media(prefers-reduced-motion:reduce){
  .hk-pop,.hk-pop.is-open{transition:opacity 0.2s,visibility 0s;transform:none;}
  .hk-pop-kicker i{animation:none;}
}

/* ══ Centred layout (data-layout="center") ═══════════════════════════════ */
.hk-pop-backdrop{
  position:fixed;inset:0;z-index:119;
  background:rgba(6,5,4,0.62);
  opacity:0;visibility:hidden;
  transition:opacity 0.4s ease,visibility 0s linear 0.4s;
}
.hk-pop-backdrop.is-open{opacity:1;visibility:visible;transition:opacity 0.4s ease,visibility 0s;}

.hk-pop[data-layout="center"]{
  left:50%;top:50%;bottom:auto;
  width:min(460px,calc(100vw - 40px));
  padding:34px 34px 28px;border-radius:16px;
  transform:translate(-50%,-46%) scale(0.97);
}
.hk-pop[data-layout="center"].is-open{transform:translate(-50%,-50%);}
.hk-pop[data-layout="center"]::before{left:34px;right:34px;}
.hk-pop[data-layout="center"] .hk-pop-title{font-size:34px;}
.hk-pop[data-layout="center"] .hk-pop-close{top:14px;right:16px;}

@media(max-width:600px){
  .hk-pop[data-layout="center"]{
    left:50%;right:auto;bottom:auto;top:50%;
    width:calc(100vw - 32px);border-radius:16px;border-bottom:1px solid rgba(232,220,200,0.12);
    padding:30px 22px 22px;
    transform:translate(-50%,-46%) scale(0.97);
  }
  .hk-pop[data-layout="center"].is-open{transform:translate(-50%,-50%);}
  .hk-pop[data-layout="center"]::after{display:none;}
  .hk-pop[data-layout="center"] .hk-pop-title{font-size:28px;}
}
@media(prefers-reduced-motion:reduce){
  .hk-pop[data-layout="center"],.hk-pop[data-layout="center"].is-open{transform:translate(-50%,-50%);}
}

/* sitting above the now-playing bar (phones / narrow tablets) */
@media(max-width:600px){
  .hk-pop.is-lifted{left:12px;right:12px;border-radius:16px;border-bottom:1px solid rgba(232,220,200,0.12);
    padding-bottom:22px;transition:bottom 0.3s ease,opacity 0.45s ease,transform 0.6s cubic-bezier(0.23,1,0.32,1);}
  .hk-pop.is-lifted::after{display:none;}
}
