/* PCKR early access sign-up: banner, pop-up, expanding bar and form. Uses the colour variables each page already defines. */

/* ---------- Homepage banner under "Coming soon" ---------- */
.wl-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  min-height: 38px;
  padding: 0 16px 0 18px;
  background: var(--neon);
  border: 4px solid var(--neon-dark);
  border-radius: 999px;
  color: var(--on-accent-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.wl-banner:hover { background: var(--neon-dark); border-color: var(--neon); }
.wl-banner:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.3); }
.wl-banner svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pop-up ---------- */
.wl-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 7, 10, 0.78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.wl-overlay.wl-open { display: flex; }
.wl-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.wl-modal-done > .wl-title, .wl-modal-done > .wl-lede { display: none; }
.wl-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.wl-close:hover { color: var(--text-primary); }
.wl-close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
html.wl-lock, html.wl-lock body { overflow: hidden; }

/* ---------- Expanding bar (pricing page) ---------- */
.wl-bar {
  margin: 40px 0 8px;
  background: var(--panel);
  border: 3px solid var(--outline);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.wl-bar.wl-bar-open, .wl-bar:hover { border-color: rgba(var(--accent-rgb), 0.45); }
.wl-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 12px 22px;
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.wl-bar-head:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.wl-bar-title { display: block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--neon); }
.wl-bar-sub { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.wl-bar-chev {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin: 0 4px 3px 0;
  border-right: 2px solid var(--neon);
  border-bottom: 2px solid var(--neon);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.wl-bar-open .wl-bar-chev { transform: translateY(3px) rotate(225deg); }
.wl-bar-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.wl-bar-open .wl-bar-panel { grid-template-rows: 1fr; }
.wl-bar-inner { overflow: hidden; min-height: 0; padding: 0 22px; }
.wl-bar-open .wl-bar-inner { padding-bottom: 22px; }
.wl-bar-inner .wl-lede { margin-bottom: 14px; }
.wl-bar-inner .wl-form { max-width: none; padding: 0; background: none; border: 0; box-shadow: none; }
.wl-bar-inner .wl-fields { grid-template-columns: 1fr 1fr; align-items: start; }
.wl-bar-inner .wl-btn { grid-column: 1 / -1; justify-self: end; min-width: 200px; }
.wl-bar-inner .wl-done { padding: 12px 0 4px; }

/* ---------- Form ---------- */
.wl-form { width: 100%; margin: 0 auto; text-align: left; }
.wl-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 8px;
}
.wl-lede { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 16px; }
.wl-fields { display: grid; gap: 10px; }
.wl-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--outline);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
}
.wl-input::placeholder { color: var(--muted); }
/* Browsers paint a yellow background on autofilled fields. Keep them black with light text. */
.wl-input { color-scheme: dark; }
.wl-input:-webkit-autofill,
.wl-input:-webkit-autofill:hover,
.wl-input:-webkit-autofill:focus,
.wl-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  box-shadow: 0 0 0 1000px var(--bg) inset;
  border-color: var(--outline);
  transition: background-color 9999s ease-out 0s;
}
.wl-input:-webkit-autofill:focus { border-color: var(--neon); }
.wl-input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
/* The themed region dropdown (pckr-dropdown.js) sits in the same grid as the inputs. */
.wl-fields .pckr-dd-btn { min-height: 46px; border-radius: 10px; font-size: 13px; }
.wl-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--neon);
  border-radius: 10px;
  background: var(--neon);
  color: var(--on-accent-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.wl-btn:hover { background: var(--neon-dark); border-color: var(--neon-dark); }
.wl-btn:disabled { opacity: 0.6; cursor: default; }
.wl-status { min-height: 20px; margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.wl-status.wl-error { color: #FF6B6B; }
.wl-fine { margin-top: 6px; font-size: 12px; color: var(--muted); }
.wl-done { text-align: center; padding: 8px 0; }
.wl-done .wl-title { margin-bottom: 10px; }
.wl-done p { font-size: 14px; line-height: 1.6; color: var(--text-primary); }
.wl-done p + p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.wl-done .wl-btn { margin-top: 18px; min-width: 140px; }
/* The trap field for bots: out of sight and out of the tab order, but not display:none, which some bots skip. */
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 700px) {
  .wl-bar-inner .wl-fields { grid-template-columns: 1fr; }
  .wl-bar-inner .wl-btn { justify-self: stretch; }
}
@media (max-width: 520px) {
  .wl-modal { padding: 24px 20px 20px; }
  .wl-bar-head { padding: 12px 16px; }
  .wl-bar-inner { padding: 0 16px; }
  .wl-bar-open .wl-bar-inner { padding-bottom: 18px; }
  .wl-bar-sub { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-bar-panel, .wl-bar-chev { transition: none; }
}
