/* ============================================================
   Continuas: "Request Access" modal
   ------------------------------------------------------------
   Lifted verbatim out of the static landing page's landing.css
   (main@5097101) so the SAME design serves both /landing and the
   rest of the marketing site — the modal is now one shared React
   component (components/site/RequestAccessModal.tsx) instead of
   landing-only markup, so its styles can't live in landing.css.

   Loaded by app/(site)/layout.tsx and app/landing/layout.tsx.
   Depends only on the design tokens (--surface, --line, --accent…)
   that BOTH styles.css and landing/styles.css define.
   ============================================================ */

.wl-lock { overflow: hidden; }
.wl-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 20px 40px; overflow-y: auto;
  background: rgba(4,3,8,0.74);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.wl-overlay[hidden] { display: none; }
.wl-modal {
  position: relative; width: 100%; max-width: 640px; margin: auto;
  border: 1px solid rgba(168,130,255,0.28); border-radius: 22px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(139,61,255,0.16), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 50px 140px -40px rgba(139,61,255,0.6);
  padding: 34px 34px 30px;
  animation: wlIn 0.32s cubic-bezier(0.22,1,0.36,1);
}
@keyframes wlIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wl-modal { animation: none; } }
.wl-close {
  position: absolute; top: 16px; right: 18px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer; transition: all 0.25s var(--ease);
}
.wl-close:hover { color: #fff; border-color: rgba(168,130,255,0.5); }
.wl-modal .eyebrow { margin-bottom: 12px; }
.wl-modal h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 10px; }
.wl-sub { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 22px; }

.wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wl-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.wl-full { margin-top: 14px; }
.wl-opt { color: var(--faint, #736b93); font-weight: 500; }
/* Fields sit ON the modal, whose own surface is nearly the same colour, so they
   need to be darker than it (not equal to it) plus a lilac hairline to read as
   inputs at all. */
.wl-form input, .wl-form textarea, .wl-select-btn {
  font-family: var(--font); font-size: 14px; font-weight: 400; color: #fff;
  background: rgba(6,5,11,0.72); border: 1px solid rgba(168,130,255,0.24); border-radius: 10px;
  padding: 10px 12px; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.wl-form input::placeholder, .wl-form textarea::placeholder { color: var(--faint, #736b93); }
.wl-form input:hover, .wl-form textarea:hover, .wl-select-btn:hover { border-color: rgba(168,130,255,0.44); }
.wl-form textarea { resize: vertical; min-height: 62px; }
.wl-form input:focus, .wl-form textarea:focus {
  outline: none; border-color: rgba(168,130,255,0.7); box-shadow: 0 0 0 3px rgba(139,61,255,0.16);
}

/* ---------- themed dropdown (components/site/WlSelect.tsx) ----------
   The OS paints a native <select>'s option list itself — white panel,
   system-blue row — which no stylesheet can reach. So the real <select> is
   kept for submission + `required` only (transparent, over the trigger) and
   the popup below is ours. */
.wl-select { position: relative; }
.wl-select[data-open="true"] { z-index: 30; }
.wl-select-label { display: block; }
.wl-select-native {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; border: 0; padding: 0;
  appearance: none; -webkit-appearance: none; background: transparent;
}
.wl-select-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; cursor: pointer; font-weight: 500;
}
.wl-select-btn[data-empty="true"] .wl-select-value { color: var(--faint, #736b93); font-weight: 400; }
.wl-select-btn:focus-visible,
.wl-select[data-open="true"] .wl-select-btn {
  outline: none; border-color: rgba(168,130,255,0.7); box-shadow: 0 0 0 3px rgba(139,61,255,0.16);
}
.wl-select[data-invalid="true"] .wl-select-btn { border-color: rgba(224,106,138,0.62); }
.wl-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-select-caret { width: 12px; height: 8px; flex: 0 0 auto; color: var(--accent-soft); transition: transform 0.24s var(--ease); }
.wl-select[data-open="true"] .wl-select-caret { transform: rotate(180deg); }

.wl-select-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 2;
  margin: 0; padding: 6px; list-style: none;
  max-height: 246px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid rgba(168,130,255,0.32); border-radius: 14px;
  background: linear-gradient(180deg, #191330, #100d1c);
  box-shadow: 0 28px 64px -20px rgba(0,0,0,0.9), 0 0 60px -24px var(--accent-glow);
  scrollbar-width: thin; scrollbar-color: rgba(168,130,255,0.38) transparent;
  animation: wlSelIn 0.16s var(--ease);
}
.wl-select-menu[data-drop="up"] { top: auto; bottom: calc(100% + 8px); }
@keyframes wlSelIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wl-select-menu { animation: none; } }
.wl-select-menu::-webkit-scrollbar { width: 10px; }
.wl-select-menu::-webkit-scrollbar-track { background: transparent; }
.wl-select-menu::-webkit-scrollbar-thumb {
  background: rgba(168,130,255,0.30); border: 3px solid transparent;
  background-clip: content-box; border-radius: 100px;
}
.wl-select-menu::-webkit-scrollbar-thumb:hover { background: rgba(168,130,255,0.55); background-clip: content-box; }

.wl-select-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; border-radius: 9px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; line-height: 1.4; color: #cfc9e0;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.wl-select-opt[data-active="true"] {
  background: linear-gradient(100deg, rgba(139,61,255,0.34), rgba(139,61,255,0.18));
  box-shadow: inset 0 0 0 1px rgba(183,148,255,0.28);
  color: #fff;
}
.wl-select-opt[aria-selected="true"] { color: #fff; font-weight: 600; }
.wl-select-tick { width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent-soft); opacity: 0; }
.wl-select-opt[aria-selected="true"] .wl-select-tick { opacity: 1; }
.wl-form .btn.full { width: 100%; margin-top: 20px; }
.wl-consent { font-size: 11px; color: var(--faint, #736b93); text-align: center; margin-top: 12px; line-height: 1.5; }
.wl-consent a { color: var(--accent-soft); }

.wl-pilot {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 4px 0 16px; padding: 12px 14px;
  border: 1px solid rgba(79, 208, 138, 0.28); border-radius: 12px;
  background: rgba(79, 208, 138, 0.08);
  font-size: 12.5px; line-height: 1.5; color: #d7f0e2;
}
.wl-pilot svg { width: 17px; height: 17px; color: #5dcaa5; flex: 0 0 auto; margin-top: 1px; }
.wl-pilot strong { color: #fff; font-weight: 600; }

.wl-done { text-align: center; padding: 18px 6px 6px; }
.wl-check {
  width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #9d5cff, #7a2fe8);
  box-shadow: 0 14px 40px -8px var(--accent-glow);
}
.wl-check svg { width: 32px; height: 32px; }
.wl-done h2 { font-size: 27px; margin-bottom: 12px; }
.wl-done p { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 460px; margin: 0 auto 22px; }

/* Save failure. The static version always showed the confirmation because
   Netlify captured the submission out of band; now the row has to actually
   land in our database, so a failed save has to say so instead of lying. */
.wl-error {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 18px; padding: 12px 14px;
  border: 1px solid rgba(224,106,138,0.34); border-radius: 12px;
  background: rgba(224,106,138,0.10);
  font-size: 12.5px; line-height: 1.5; color: #e8a3b6;
}
.wl-error svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }

@media (max-width: 560px) {
  .wl-grid { grid-template-columns: 1fr; }
  .wl-modal { padding: 28px 20px 24px; }
  .wl-modal h2 { font-size: 22px; }
  /* prevent iOS Safari auto-zoom on input focus */
  .wl-form input, .wl-form textarea, .wl-select-btn { font-size: 16px; }
}
