/* Mailing-list signup modal (js/newsletter-signup.js, go-live B8). Shared by the CHORDAL product page and chordal.io
   (loaded from signalrecords.co.uk there: bump ?v= on both pages together). Self-contained: literal brand colours
   (BRAND-STYLE-GUIDE: black panel, 35px radius, #979797 structural border, #2a2a2a inset, #555 control border,
   yellow #ffed68 text, #e0d15e stadium button, ADLaM Display; the canonical 18px tick box). */
.signup-modal {
  border: 0; padding: 0; background: transparent; color: #fff;
  width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  overflow: visible; margin: auto;
}
.signup-modal::backdrop { background: rgba(0, 0, 0, 0.7); }
.signup-box {
  position: relative; background: #595959; border: 0; border-radius: 35px;
  padding: 26px 28px 22px; max-height: calc(100dvh - 32px); overflow-y: auto; text-align: left;
  font-family: 'ADLaM Display', sans-serif; font-weight: 400; line-height: 1.45;
}
.signup-box h2 { font-family: 'ADLaM Display', sans-serif; font-weight: 400; font-size: 22px; letter-spacing: 0.04em; color: #ffed68; margin: -8px 40px 14px 0; }
/* × = a yellow circle like the product page's demo play buttons (.play-btn): #ffed68 fill, #595959 glyph, no outline.
   The × is drawn (two bars), not a font glyph, so it is exactly centred at any zoom / pixel ratio. */
.signup-x {
  position: absolute; top: 16px; right: 18px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: #ffed68; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.signup-x::before, .signup-x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2.5px; border-radius: 2px; background: #595959;
  transform: translate(-50%, -50%) rotate(45deg);
}
.signup-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.signup-x:hover { filter: brightness(1.1); }
.signup-x:focus-visible { outline: 2px solid #ffed68; outline-offset: 3px; }
.signup-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.signup-label { font-size: 14px; color: #ccc; padding: 0; margin: 0 0 -6px; }
.signup-email {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; color: #fff; background: #333333;
  border: 1px solid #333333; border-radius: 50px; padding: 10px 18px; margin: 0;
}
.signup-email:focus { outline: none; }
.signup-group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.signup-group legend { margin-bottom: 8px; }
.signup-check { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #d0d0d0; font-size: 15px; }
.signup-check input {
  -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 0;
  border: 1.5px solid #777; border-radius: 3px; background: #333333; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
/* beta mode (A53.4): the OS / trackpad pickers = a pill button (like the email field) opening a checklist panel */
.signup-multi { position: relative; }
.signup-multi-btn {
  list-style: none; cursor: pointer; font-size: 15px; color: #fff; background: #333333; border: 1px solid #333333;
  border-radius: 50px; padding: 9px 40px 9px 18px; position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.signup-multi-btn::-webkit-details-marker { display: none; }
.signup-multi-btn::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 2px solid #ffed68; border-bottom: 2px solid #ffed68; transform: rotate(45deg);
}
.signup-multi[open] > .signup-multi-btn::after { margin-top: -2px; transform: rotate(-135deg); }
.signup-multi-btn:focus-visible { outline: 2px solid #ffed68; outline-offset: 2px; }
.signup-multi-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 12px 16px;
  background: #2a2a2a; border: 1px solid #555; border-radius: 18px; max-height: 240px; overflow-y: auto;
}
/* single-choice pickers (production / songwriting / theory levels): round boxes */
.signup-check input[type="radio"] { border-radius: 50%; }
.signup-model { display: flex; flex-direction: column; gap: 12px; }
.signup-model[hidden] { display: none; }
.signup-cpu[hidden] { display: none; }
.signup-other { display: flex; flex-direction: column; gap: 12px; }
.signup-other[hidden] { display: none; }
.signup-email::placeholder { color: #888; }
.signup-check input:checked::after { content: "\2713"; color: #ffed68; font-size: 13px; font-weight: bold; line-height: 1; font-family: Arial, sans-serif; }
.signup-check input:focus-visible { outline: 2px solid #ffed68; outline-offset: 2px; }
.signup-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-consent, .signup-small { font-size: 13px; color: #ccc; margin: 2px 0 0; }
.signup-consent a, .signup-box a { color: #ffed68; text-decoration: underline; }
.signup-submit, .signup-close {
  align-self: center; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'ADLaM Display', sans-serif; font-size: 20px; height: 56px; padding: 0 40px; margin: 4px 0 0;
  border-radius: 50px; background: #e0d15e; color: #595959; border: 1px solid #e0d15e; cursor: pointer; white-space: nowrap;
}
.signup-submit:hover, .signup-close:hover { filter: brightness(1.1); }
.signup-submit:disabled { opacity: 0.6; cursor: default; }
.signup-status { font-family: 'ADLaM Display', sans-serif; font-size: 14px; color: #f06e6e; text-align: center; min-height: 1.2em; margin: 0; }
.signup-status.busy { color: #ccc; }
.signup-done { display: flex; flex-direction: column; gap: 10px; outline: none; }
.signup-done[hidden], .signup-form-view[hidden] { display: none; }
.signup-done p { color: #d0d0d0; font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.signup-done strong { color: #fff; font-weight: 400; }
@media (max-width: 420px) {
  .signup-box { padding: 22px 18px 18px; border-radius: 25px; }
  .signup-submit, .signup-close { width: 100%; padding: 0 20px; }
}
/* "apply for the beta" (A53.4) next to GET NOTIFIED: a yellow underlined text link like the page's guarantee link;
   it opens this modal with the beta box ticked (data-signup-open="beta"). */
.signup-beta-link { display: inline-block; margin-top: -3px; font-family: 'ADLaM Display', sans-serif; font-size: 15px; color: #5eb5e0 !important; /* blue so it stands out (James 25 Nov); beats the pages' yellow link rules */ text-decoration: underline; }
.signup-beta-link:hover { filter: brightness(1.1); }
