/* The price lists and the form (lead.js). One panel that slides in over the world, on the side away from the stop's screen. */
#lead { position: fixed; inset: 0; z-index: 40; --acc: var(--tech); --acc-ink: #04121c; }
#lead[hidden] { display: none; }
#lead[data-world="studios"] { --acc: var(--pink); --acc-ink: #1c0410; }
.lead-shade { position: absolute; inset: 0; background: rgba(2, 3, 8, .5); opacity: 0; transition: opacity .25s; touch-action: none; }
#lead.open .lead-shade { opacity: 1; }

.lead-panel { position: absolute; top: 14px; bottom: 14px; right: 14px; width: min(500px, calc(100vw - 28px)); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(226, 234, 255, .16); border-radius: 22px; background: linear-gradient(180deg, rgba(9, 14, 27, .95), rgba(4, 6, 13, .97));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; transform: translateX(26px); transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .2, 1); outline: none; }
#lead[data-side="left"] .lead-panel { right: auto; left: 14px; transform: translateX(-26px); }
#lead.open .lead-panel { opacity: 1; transform: none; }
.lead-panel::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .9; }

.lead-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 8px 24px; }
.lead-k { flex: 1; margin: 0; font-family: "Space Mono", ui-monospace, monospace; font-size: .66rem; line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.lead-x, .lead-back { flex: none; display: grid; place-items: center; min-height: 40px; border: 1px solid rgba(226, 234, 255, .24); border-radius: 999px; background: rgba(4, 6, 13, .5); color: var(--white); transition: background .15s, color .15s; }
.lead-x { width: 40px; padding: 0; }
.lead-back { padding: 0 14px; font-family: "Space Mono", ui-monospace, monospace; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.lead-back[hidden] { display: none; }
.lead-x:hover, .lead-back:hover { background: var(--white); color: var(--ink); }
#lead :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
#lead h2:focus, #lead h1:focus { outline: none; }

.lead-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 24px; scrollbar-width: thin; scrollbar-color: rgba(226, 234, 255, .25) transparent; }
.lead-view[hidden] { display: none; }
.lead-view h2, .lead-doc h1 { margin: 6px 0 10px; font-weight: 800; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; }
.lead-blurb { margin: 0 0 18px; font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: 1.14rem; line-height: 1.4; color: rgba(236, 241, 255, .82); }

/* ---------- a price list ---------- */
.lead-item { padding: 15px 0 16px; border-top: 1px solid rgba(226, 234, 255, .13); }
.lead-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.lead-item h3 { margin: 0; font-weight: 800; font-size: .98rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.lead-price { flex: none; text-align: right; font-family: "Oxanium", "Space Mono", monospace; font-weight: 800; font-size: 1.12rem; color: var(--acc); white-space: nowrap; }
.lead-price small { display: block; font-family: "Space Mono", ui-monospace, monospace; font-weight: 400; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(226, 234, 255, .6); }
.lead-item p { margin: 6px 0 10px; font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: 1.06rem; line-height: 1.35; color: rgba(226, 234, 255, .74); }
.lead-add { padding: 7px 12px; border: 1px solid rgba(226, 234, 255, .3); border-radius: 999px; background: none; font-family: "Space Mono", ui-monospace, monospace; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(236, 241, 255, .86); transition: background .15s, color .15s, border-color .15s; }
.lead-add:hover { border-color: var(--acc); color: var(--acc); }
.lead-add[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.lead-note { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(226, 234, 255, .13); font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: .98rem; line-height: 1.4; color: rgba(226, 234, 255, .6); }
.lead-foot { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px 24px; border-top: 1px solid rgba(226, 234, 255, .13); background: rgba(4, 6, 13, .6); }
.lead-foot[hidden] { display: none; }
.lead-foot span { flex: 1; font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: 1rem; line-height: 1.25; color: rgba(226, 234, 255, .72); }

/* ---------- buttons ---------- */
.lead-send, .lead-ghost { display: inline-block; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--acc); background: var(--acc); color: var(--acc-ink); font-family: "Space Mono", ui-monospace, monospace; font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center; transition: filter .15s, background .15s, color .15s; }
.lead-send:hover { filter: brightness(1.12); }
.lead-send[disabled] { opacity: .6; cursor: default; }
.lead-ghost { background: none; color: var(--white); border-color: rgba(226, 234, 255, .4); }
.lead-ghost:hover { background: var(--white); color: var(--ink); }
.lead-wide { display: block; width: 100%; margin-top: 16px; }
.lead-link { padding: 0; border: 0; background: none; font: inherit; color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the form ---------- */
.lead-say { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 14px 10px 10px; border: 1px solid rgba(127, 212, 255, .22); border-radius: 16px; background: rgba(127, 212, 255, .06); }
.lead-say img { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 24%; border: 1px solid rgba(127, 212, 255, .5); }
.lead-say > span { font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: 1.04rem; line-height: 1.3; color: rgba(236, 241, 255, .9); }
.lead-say b { display: block; font-family: "Space Mono", ui-monospace, monospace; font-weight: 400; font-size: .6rem; letter-spacing: .2em; color: #7fd4ff; margin-bottom: 2px; }
.lead-field { margin: 0 0 12px; min-width: 0; }
.lead-field[hidden] { display: none; }
.lead-field label, .lead-label { display: block; margin: 0 0 6px; font-family: "Space Mono", ui-monospace, monospace; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(226, 234, 255, .78); }
.lead-field label small { text-transform: none; letter-spacing: .04em; color: rgba(226, 234, 255, .5); }
.lead-field input, .lead-field select, .lead-field textarea { display: block; width: 100%; padding: 11px 13px; border: 1px solid rgba(226, 234, 255, .22); border-radius: 12px; background: rgba(2, 3, 8, .55); color: var(--white); font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: 1.1rem; line-height: 1.3; }
.lead-field textarea { resize: vertical; min-height: 84px; }
.lead-field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(226, 234, 255, .7) 50%), linear-gradient(135deg, rgba(226, 234, 255, .7) 50%, transparent 50%); background-position: calc(100% - 18px) 54%, calc(100% - 13px) 54%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.lead-field select option { background: #0a0f1d; color: #f2f6ff; }
.lead-field ::placeholder { color: rgba(226, 234, 255, .4); }
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus { border-color: var(--acc); }
.lead-field.bad input { border-color: #ff8a8a; }
.lead-err { margin: 5px 0 0; min-height: 0; font-family: "Rajdhani", sans-serif; font-weight: 600; font-size: .95rem; color: #ffb0b0; }
.lead-err:empty { display: none; }
.lead-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-picked button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border: 1px solid var(--acc); border-radius: 999px; background: none; font-family: "Rajdhani", sans-serif; font-weight: 600; font-size: .98rem; color: var(--white); }
.lead-picked button span { color: var(--acc); font-size: 1.1rem; line-height: 1; }
form .lead-send { display: block; width: 100%; margin-top: 6px; padding: 15px 20px; }
.lead-status { margin: 12px 0 0; padding: 11px 13px; border-radius: 12px; font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: 1rem; line-height: 1.35; }
.lead-status[hidden] { display: none; }
.lead-status.preview { border: 1px solid rgba(255, 179, 92, .5); background: rgba(255, 179, 92, .08); color: #ffd9a8; }
.lead-status.error { border: 1px solid rgba(255, 138, 138, .5); background: rgba(255, 138, 138, .08); color: #ffc4c4; }
.lead-fine { margin: 12px 0 0; font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: .95rem; line-height: 1.35; color: rgba(226, 234, 255, .55); }

/* ---------- after sending ---------- */
.lead-next { display: grid; gap: 12px; }
.lead-next > div { display: grid; gap: 4px; padding: 16px; border: 1px solid rgba(226, 234, 255, .16); border-radius: 16px; background: rgba(2, 3, 8, .4); }
.lead-next > div[hidden] { display: none; }
.lead-next b { font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; }
.lead-next span { font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: 1.06rem; line-height: 1.35; color: rgba(226, 234, 255, .76); }
.lead-next a { margin-top: 10px; justify-self: start; }

/* ---------- the privacy policy ---------- */
.lead-doc h2 { margin: 20px 0 6px; font-size: .92rem; letter-spacing: .04em; color: var(--acc); }
.lead-doc p, .lead-doc li { font-family: "Rajdhani", sans-serif; font-weight: 500; font-size: 1.06rem; line-height: 1.45; color: rgba(226, 234, 255, .8); }
.lead-doc p { margin: 0 0 10px; }
.lead-doc ul { margin: 0 0 10px; padding-left: 20px; }
.lead-doc li { margin-bottom: 6px; }
.lead-doc b { color: var(--white); }
.lead-doc a { color: var(--acc); }
.lead-doc .fine { color: rgba(226, 234, 255, .5); font-size: .95rem; }

@media (max-width: 720px) {
  .lead-panel, #lead[data-side="left"] .lead-panel { top: 8px; bottom: 8px; left: 8px; right: 8px; width: auto; border-radius: 18px; }
  .lead-head { padding: 14px 12px 6px 18px; }
  .lead-body { padding: 2px 18px 18px; }
  .lead-foot { padding: 12px 12px 12px 18px; }
  .lead-field input, .lead-field select, .lead-field textarea { font-size: 1.14rem; }      /* 16px or more, so phones do not zoom in on a tapped field */
}
@media (max-width: 420px) { .lead-two { grid-template-columns: 1fr; gap: 0; } .lead-foot { flex-wrap: wrap; } .lead-foot .lead-send { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .lead-shade, .lead-panel { transition: none; } }
