/* One Serenade — signup form styling, shared by all four flows.
 *
 * Narrow-first. The mobile layout is the one the app mockups established;
 * wide screens get the same fields with more room and a two-up row where it
 * genuinely helps. There is no separate desktop stylesheet, deliberately —
 * two files is two places to fix every bug.
 *
 * Colours are read from whatever page hosts this, with dark defaults, so the
 * same form sits correctly on the singer, composer and recruiter surfaces
 * without a per-page override.
 */
/* Every input here is width:100% with padding and a border. Without this, that
 * is 100% of the content box PLUS 26px of padding PLUS 2px of border, which on
 * a 412px phone pushed the form 28px past the viewport and gave every join page
 * a sideways scroll. Scoped rather than global so it cannot surprise a host
 * page that lays itself out the other way. */
.su, .su *, .su *::before, .su *::after{ box-sizing:border-box }

.su{
  --su-base:#F1F0F4; --su-card:#FBFAFC; --su-card2:#E9E7EF;
  --su-ink:#16111F; --su-dim:#5B5468; --su-dim2:#5E586E;
  --su-line:#DDD9E4; --su-line2:#CBC5D6; --su-p:#6B2FF0; --su-p2:#5E3BB8;
  --su-bad:#A32B1F; --su-good:#46664F;
  /* Drawer slide. signup.js reads the same number as ANIM — keep them equal. */
  --su-anim:.3s;
  max-width:640px; margin:0 auto; padding:0 18px 72px;
  color:var(--su-ink);
  font:16px/1.6 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}
@media (min-width:760px){ .su{ padding:0 0 88px } }

.su-title{
  font:800 clamp(26px,5vw,36px)/1.1 inherit; letter-spacing:-.03em;
  margin:28px 0 10px; text-wrap:balance;
}
.su-lede{ color:var(--su-dim); font-size:16.5px; line-height:1.55; margin:0 0 26px; max-width:52ch }

.su-sec{
  background:var(--su-card); border:1px solid var(--su-line);
  border-radius:10px; padding:20px 18px; margin-bottom:14px;
}
@media (min-width:760px){ .su-sec{ padding:24px 24px } }
.su-sec h3{
  font:700 10.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.16em; text-transform:uppercase; color:var(--su-dim2);
  margin:0 0 16px;
}

.su-f{ margin-bottom:16px }
.su-f:last-child{ margin-bottom:0 }
.su-f label{
  display:block; font-size:14px; font-weight:600; margin-bottom:7px; color:var(--su-ink);
}
.su-f input, .su-f select, .su-f textarea{
  width:100%; padding:12px 13px; border-radius:7px;
  border:1px solid var(--su-line2); background:var(--su-base);
  color:var(--su-ink); font:inherit; font-size:16px; /* 16px stops iOS zooming on focus */
  -webkit-appearance:none; appearance:none;
}
.su-f textarea{ resize:vertical; min-height:78px; line-height:1.5 }
.su-f select{
  background-image:linear-gradient(45deg,transparent 50%,var(--su-dim) 50%),
                   linear-gradient(135deg,var(--su-dim) 50%,transparent 50%);
  background-position:calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-size:5px 5px,5px 5px; background-repeat:no-repeat; padding-right:38px;
}
.su-f input:focus, .su-f select:focus, .su-f textarea:focus{
  outline:none; border-color:var(--su-p); box-shadow:0 0 0 3px rgba(107,47,240,.18);
}
.su-hint{ margin:7px 0 0; font-size:13px; line-height:1.5; color:var(--su-dim) }
.su-hint b{ color:var(--su-ink); font-weight:600 }

.su-two{ display:grid; grid-template-columns:1fr; gap:0 14px }
@media (min-width:520px){ .su-two{ grid-template-columns:1fr 1fr } }

.su-chips{ display:flex; flex-wrap:wrap; gap:8px }
.su-chip{
  font:inherit; font-size:14px; padding:9px 14px; border-radius:999px;
  border:1px solid var(--su-line2); background:var(--su-base);
  color:var(--su-dim); cursor:pointer; transition:none;
}
.su-chip.on{ background:var(--su-p); border-color:var(--su-p); color:#fff; font-weight:600 }
.su-chip:focus-visible{ outline:2px solid var(--su-p2); outline-offset:2px }

.su-loc{ margin-top:4px }
.su-ghost{
  font:inherit; font-size:14.5px; font-weight:600; padding:11px 16px; border-radius:7px;
  border:1px dashed var(--su-line2); background:transparent; color:var(--su-p2); cursor:pointer;
}
.su-ghost:disabled{ opacity:.65; cursor:default; border-style:solid }

.su-go{
  width:100%; margin-top:6px; padding:15px; border:none; border-radius:8px;
  background:var(--su-p); color:#fff; font:inherit; font-weight:700; font-size:16px;
  letter-spacing:.01em; cursor:pointer;
}
.su-go:disabled{ opacity:.6; cursor:default }
.su-go:focus-visible{ outline:2px solid var(--su-p2); outline-offset:3px }

.su-msg{
  margin:14px 0 0; padding:13px 15px; border-radius:7px; font-size:14.5px; line-height:1.5;
  border:1px solid var(--su-bad); background:rgba(163,43,31,.08); color:var(--su-ink);
}
.su-fine{ margin:16px 2px 0; font-size:12.5px; line-height:1.6; color:var(--su-dim2) }
.su-hidden{ display:none }

.su-done{ text-align:left }
.su-done p{ color:var(--su-dim); font-size:16.5px; line-height:1.6; max-width:52ch }
.su-note{
  margin-top:16px; padding:13px 15px; border-radius:7px; font-size:14px;
  border:1px solid var(--su-line2); background:var(--su-card); color:var(--su-dim);
}

/* ---------------------------------------------------------------------------
 * Wizard chrome. Everything below exists because the flows are now multi-screen.
 * ------------------------------------------------------------------------- */

/* Progress bar. Width is set inline by the script from screen index. */
.su-prog{
  height:3px; background:var(--su-line); border-radius:2px;
  margin:22px 0 4px; overflow:hidden;
}
.su-prog span{ display:block; height:100%; background:var(--su-p) }

/* Screen heading: title on the left, "Step 2 of 4" pinned right. */
.su-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:14px; margin:20px 0 10px;
}
.su-head .su-title{ margin:0; flex:1 1 auto }
.su-step{
  flex:0 0 auto; font:700 10.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.14em; text-transform:uppercase; color:var(--su-dim2); white-space:nowrap;
}

/* The opening pitch screen. */
.su-pitch{ margin:26px 0 28px }
.su-pitch .su-title{ margin:0 0 12px }
.su-kicker{
  font:700 10.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.16em; text-transform:uppercase; color:var(--su-p2); margin:0 0 12px;
}
.su-rate{
  margin:0 0 16px; padding:13px 15px; border-radius:8px; font-size:15.5px; line-height:1.5;
  border:1px solid var(--su-line2); background:var(--su-card); color:var(--su-dim);
}
.su-rate b{ color:var(--su-ink); font-weight:700 }
.su-pitch .su-lede{ margin-bottom:18px }

/* Labelled switch: text block left, toggle right. */
.su-sw{
  display:flex; align-items:flex-start; gap:16px; margin:18px 0 0;
  padding:16px 16px; border-radius:9px;
  border:1px solid var(--su-line); background:var(--su-card);
}
.su-sw-t{ flex:1 1 auto; min-width:0 }
.su-sw-t b{ display:block; font-size:15px; font-weight:600; color:var(--su-ink) }
.su-sw-t p{ margin:5px 0 0; font-size:13.5px; line-height:1.5; color:var(--su-dim) }
.su-sw-t p b{ display:inline; font-size:inherit; color:var(--su-ink) }

.su-toggle{
  flex:0 0 auto; width:46px; height:27px; margin-top:2px; padding:0;
  border-radius:999px; border:1px solid var(--su-line2);
  background:var(--su-base); cursor:pointer;
}
.su-toggle span{
  display:block; width:19px; height:19px; margin:0 0 0 3px; border-radius:50%;
  background:var(--su-dim2);
}
.su-toggle.on{ background:var(--su-p); border-color:var(--su-p) }
.su-toggle.on span{ margin-left:21px; background:#fff }
.su-toggle:focus-visible{ outline:2px solid var(--su-p2); outline-offset:2px }

/* Availability grid: 7 days across, three blocks down. */
.su-grid{ margin:6px 0 0 }
.su-grid-h, .su-grid-r{
  display:grid; grid-template-columns:38px repeat(7,1fr); gap:5px; align-items:center;
}
.su-grid-h{ margin-bottom:5px }
.su-grid-h span{
  text-align:center; font:700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  color:var(--su-dim2);
}
.su-grid-r{ margin-bottom:5px }
.su-grid-l{
  font:700 9.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.08em; color:var(--su-dim2);
}
.su-blk{
  height:42px; padding:0; border-radius:6px; cursor:pointer;
  border:1px solid var(--su-line2); background:var(--su-base);
}
.su-blk.on{ background:var(--su-p); border-color:var(--su-p) }
.su-blk:focus-visible{ outline:2px solid var(--su-p2); outline-offset:2px }

/* Range value readout under the miles slider. */
.su-f input[type=range]{
  padding:0; height:26px; background:transparent; border:none; accent-color:var(--su-p);
  -webkit-appearance:auto; appearance:auto;
}
.su-range-v{ margin-top:2px; font-size:14px; color:var(--su-dim) }
.su-range-v b{ color:var(--su-ink); font-weight:700; font-size:16px }

/* Two card kinds used on the closing screens.
   .su-todo — a real step that is not open yet. .su-plain — plain information. */
.su-todo, .su-plain{
  margin:12px 0 0; padding:16px; border-radius:9px;
  border:1px solid var(--su-line); background:var(--su-card);
}
.su-todo b, .su-plain b{ display:block; font-size:15px; font-weight:600; color:var(--su-ink) }
.su-todo p, .su-plain p{ margin:5px 0 0; font-size:13.5px; line-height:1.55; color:var(--su-dim) }
.su-todo p b, .su-plain p b{ display:inline; font-size:inherit; color:var(--su-ink) }
.su-soon{
  display:inline-block; margin-top:11px; padding:5px 10px; border-radius:999px;
  font:700 10.5px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.08em; text-transform:uppercase;
  border:1px solid var(--su-line2); color:var(--su-dim2);
}

/* Footer: Back on the left, the primary action filling the rest. */
.su-nav{ display:flex; align-items:stretch; gap:10px; margin-top:22px }
.su-nav .su-go{ margin-top:0; flex:1 1 auto }
.su-back{
  flex:0 0 auto; padding:15px 20px; border-radius:8px; cursor:pointer;
  border:1px solid var(--su-line2); background:transparent;
  color:var(--su-dim); font:inherit; font-weight:600; font-size:16px;
}
.su-back:focus-visible{ outline:2px solid var(--su-p2); outline-offset:3px }

/* Where they go next. The done screen used to describe the next step in prose;
   these are the step. */
.su-nexts{ display:flex; flex-direction:column; gap:10px; margin-top:26px }
@media (min-width:640px){ .su-nexts{ flex-direction:row } .su-nexts .su-next{ flex:1 } }
.su-next{
  display:block; text-decoration:none; padding:17px 18px; border-radius:9px;
  border:1px solid var(--su-line); background:var(--su-card); color:var(--su-ink);
}
.su-next b{ display:block; font-size:15.5px; font-weight:600 }
.su-next span{ display:block; margin-top:6px; font-size:13.5px; line-height:1.5; color:var(--su-dim) }
.su-next.primary{ border-color:var(--su-p); background:rgba(107,47,240,.10) }
.su-next.primary b{ color:var(--su-p2) }
.su-next:focus-visible{ outline:2px solid var(--su-p2); outline-offset:2px }

@media (prefers-reduced-motion:no-preference){ html{ scroll-behavior:smooth } }

/* ---------- the stack of drawers ----------
   Every step of a sign-up is on the page at once. One is open, the ones behind
   it collapse to a tick and a one-line summary, and the ones ahead stay
   visible but locked so the length of the thing is obvious from the first
   screen.

   This replaced a one-screen-at-a-time wizard, which was correct and read as a
   dead end: nothing moved between steps, the page simply became different and
   people were not sure anything had happened.

   Prefixed .su-dr, NOT .su-step — that name was already taken by the
   "Step 1 of 4" label inside .su-head, a few rules above this one. */
.su-dr{border:1px solid var(--su-line);border-radius:10px;background:var(--su-card);
  margin:0 0 10px;overflow:hidden;transition:border-color .16s,box-shadow .16s,opacity .16s}
/* The ring follows what you are LOOKING at, not where the wizard is: a drawer
   you have opened again to check an answer should read as the live one for as
   long as it is open. */
.su-dr.is-exp{border-color:var(--su-p);
  box-shadow:0 1px 2px rgba(22,17,31,.05),0 10px 30px rgba(22,17,31,.07)}
.su-dr.is-locked{opacity:.5}

.su-dr-row{display:flex;align-items:stretch}

.su-dr-head{display:flex;align-items:center;gap:12px;flex:1;min-width:0;background:none;
  border:0;padding:15px 4px 15px 17px;font:inherit;text-align:left;color:inherit;cursor:pointer}
.su-dr-head[disabled]{cursor:default}
.su-dr.is-locked .su-dr-head{cursor:not-allowed}
.su-dr-head:focus-visible{outline:2px solid var(--su-p);outline-offset:-3px}

/* The number, or a tick once the step is behind you. */
.su-dr-n{flex:0 0 auto;width:25px;height:25px;border-radius:50%;display:flex;
  align-items:center;justify-content:center;font-size:12px;font-weight:800;
  background:var(--su-card2);color:var(--su-dim)}
.su-dr.is-open .su-dr-n{background:var(--su-p);color:#fff}
.su-dr.is-done .su-dr-n{background:var(--su-good);color:#fff;font-size:13px}

.su-dr-t{flex:1;min-width:0;font-size:15px;font-weight:650;line-height:1.3}
.su-dr-sum{display:block;font-size:12.5px;font-weight:400;color:var(--su-dim);
  margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.su-dr-sum:empty{display:none}

/* Its own button, not a decoration inside the title button: re-reading a
   drawer and going back to that step are different intentions, and one
   control cannot carry both. */
.su-dr-chev{flex:0 0 auto;width:46px;background:none;border:0;padding:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:inherit}
.su-dr-chev[disabled]{visibility:hidden}
.su-dr-chev:focus-visible{outline:2px solid var(--su-p);outline-offset:-3px}
.su-dr-chev > span{display:block;width:8px;height:8px;
  border-right:2px solid var(--su-dim);border-bottom:2px solid var(--su-dim);
  transform:rotate(45deg) translateY(-2px);transition:transform var(--su-anim,.3s) ease}
.su-dr-chev:hover > span{border-color:var(--su-ink)}
.su-dr.is-exp .su-dr-chev > span{transform:rotate(-135deg) translateY(-2px)}

/* The slide. max-height is driven from signup.js, which sets the measured
   height to move from or to and then hands back to `none` so a drawer can
   still grow when its contents change.

   visibility, not `inert`: a shut drawer's fields must not be tabbable, and
   inert also swallows the programmatic clicks the demo prefill makes. The
   zero-length visibility transition, delayed by the slide, keeps the content
   on screen while the drawer closes and takes it out of the tab order the
   moment it has.

   The padding lives on the inner element on purpose: on the body it would
   survive max-height:0 and leave a 20px sliver of empty card under every shut
   drawer. */
.su-dr-body{max-height:0;overflow:hidden;visibility:hidden;
  transition:max-height var(--su-anim,.3s) cubic-bezier(.4,0,.2,1),
             visibility 0s linear var(--su-anim,.3s)}
.su-dr.is-exp > .su-dr-body{visibility:visible;
  transition:max-height var(--su-anim,.3s) cubic-bezier(.4,0,.2,1),visibility 0s}
.su-dr-inner{padding:2px 17px 18px}
/* The step's own heading is redundant once the drawer carries one above it. */
.su-dr-inner > .su-head{display:none}

@media (max-width:560px){
  .su-dr-head{padding:13px 2px 13px 14px;gap:10px}
  .su-dr-chev{width:40px}
  .su-dr-inner{padding:2px 14px 16px}
}
@media (prefers-reduced-motion:reduce){
  .su-dr,.su-dr-chev > span,.su-dr-body{transition:none}
}
