/* Join gate (/join) — snappy single-screen WhatsApp-community qualifier. */

/* ---------- "Ascend" Matrix skin (arrives via the home Red Pill, ?ascend=1) ---------- */
html.ascend { accent-color: #16d85c; }
html.ascend body { background: #00120a; color: #bdf5cf; }
html.ascend .ascend-rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.16; pointer-events: none; }
html.ascend main { position: relative; z-index: 1; }
html.ascend .join-card { background: rgba(2, 20, 10, 0.86); box-shadow: 0 0 0 1px rgba(22, 216, 92, 0.45), 0 0 50px rgba(22, 216, 92, 0.12); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
html.ascend .eyebrow { color: #16ff66; }
html.ascend .join-title { color: #eafff1; }
html.ascend .join-title .h-word { color: #16ff66; text-shadow: 0 0 16px rgba(22, 255, 102, 0.6); }
html.ascend .join-sub, html.ascend .muted, html.ascend .jf-label { color: #9bdcb1; }
html.ascend .jf input, html.ascend .jf select { background: #03190d; color: #eafff1; border-color: rgba(22, 216, 92, 0.5); }
html.ascend .jf input::placeholder { color: #5f9b73; }
html.ascend .chip { background: #04220f; color: #bdf5cf; border-color: rgba(22, 216, 92, 0.4); }
html.ascend .chip[aria-pressed="true"] { background: #16d85c; color: #00120a; border-color: #16d85c; }
html.ascend .join-submit { background: #16d85c; color: #00120a; }
html.ascend .join-submit .pill-chip { background: #00120a; color: #16d85c; }
/* question-number badges */
html.ascend .jf-num { background: #16d85c; color: #00120a; }
/* nav: green the logo + the buttons on top */
html.ascend .nav-brand { filter: hue-rotate(-104deg) saturate(1.7) brightness(1.08); }
html.ascend .site-nav .bgm-toggle { background: rgba(22, 216, 92, 0.16); color: #16ff66; }
html.ascend .site-nav .pill-light { background: rgba(22, 216, 92, 0.16); color: #d6ffe6; }
html.ascend .site-nav .pill-light .pill-chip { background: rgba(2, 20, 10, 0.7); color: #16ff66; }
html.ascend .site-nav .pill-dark { background: #0c4022; color: #d6ffe6; }
html.ascend .site-nav .pill-dark .pill-chip { background: #16d85c; color: #00120a; }
/* menu dropdown, if opened */
html.ascend .menu-panel { background: rgba(2, 22, 11, 0.96); }
html.ascend .menu-panel a { color: #cdebd9; }
/* footer — green it on the ascend page */
html.ascend .footer-wordmark { color: #11953f; }
html.ascend .footer-panel { background: linear-gradient(135deg, #0c7a37 0%, #05381a 100%); box-shadow: 0 0 60px rgba(22, 216, 92, 0.18); }
html.ascend .footer-panel .footer-tag { color: #bfe9cd; }
html.ascend .footer-panel .footer-circles .circle { background: rgba(0, 0, 0, 0.28); color: #d6ffe6; }
html.ascend .footer-panel .footer-circles .sep { color: rgba(214, 255, 230, 0.6); }
html.ascend .footer-ext { background: #05381a; }
html.ascend .footer-ext .pill-light { background: rgba(22, 216, 92, 0.16); color: #d6ffe6; }
html.ascend .footer-ext .small { color: #9bdcb1; }
/* success / access card + remaining blue accents */
html.ascend .join-done { background: rgba(2, 20, 10, 0.86); border-color: rgba(22, 216, 92, 0.4); box-shadow: 0 0 0 1px rgba(22, 216, 92, 0.45), 0 0 50px rgba(22, 216, 92, 0.12); }
html.ascend .join-done .eyebrow { color: #16ff66; }
html.ascend .join-tick { background: #16d85c; color: #00120a; }
html.ascend .join-share { border-top-color: rgba(22, 216, 92, 0.25); }
html.ascend .join-share-label { color: #9bdcb1; }
html.ascend .join-wa { background: #16d85c; color: #00120a; }
html.ascend .join-wa .pill-chip { background: #00120a; color: #16d85c; }
html.ascend .join-copy { background: rgba(22, 216, 92, 0.16); color: #d6ffe6; }
html.ascend .join-copy .pill-chip { background: rgba(2, 20, 10, 0.7); color: #16ff66; }
html.ascend .jf input:focus, html.ascend .jf select:focus { border-color: #16d85c; background: #021a0c; }
html.ascend .chip:hover { border-color: rgba(22, 216, 92, 0.6); }

.join {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height, 5.5rem) + clamp(1.5rem, 5vh, 3rem)) var(--gutter, 1.5rem) clamp(2.5rem, 8vh, 5rem);
}

.join-card,
.join-done {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(16, 42, 102, 0.08);
  border-radius: var(--r-card, 22px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 24px 60px -32px rgba(16, 42, 102, 0.35);
  animation: join-in 0.5s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes join-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.join .eyebrow { margin: 0 0 0.6rem; }

.join-title {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--track-5, -0.01em);
  color: var(--ink, #102a66);
  margin: 0 0 0.6rem;
}
.join-title .h-word { color: var(--blue, #2563ff); }

.join-sub {
  margin: 0 0 1.6rem;
  font-size: var(--text-small, 0.95rem);
  line-height: 1.55;
}

/* ---- form ---- */
.join-form { display: flex; flex-direction: column; gap: clamp(1.1rem, 3vw, 1.5rem); }

/* honeypot: off-screen but focusable by bots */
.join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.jf { border: 0; padding: 0; margin: 0; min-width: 0; }

.jf-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink, #102a66);
  margin-bottom: 0.6rem;
}
.jf-num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--blue, #2563ff);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex: none;
}
.jf-hint {
  font-weight: 500;
  color: var(--muted, #5b6b8c);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.jf input[type="text"],
.jf select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink, #102a66);
  background: var(--bg, #eef4ff);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  transition: border-color 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.jf input::placeholder { color: rgba(91, 107, 140, 0.7); }
.jf input:focus,
.jf select:focus {
  outline: none;
  border-color: var(--blue, #2563ff);
  background: #fff;
}

.jf-select { position: relative; }
.jf-select select { padding-right: 2.6rem; cursor: pointer; }
.jf-chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted, #5b6b8c);
  pointer-events: none;
}

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #102a66);
  background: var(--bg, #eef4ff);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.chip:hover { border-color: rgba(37, 99, 255, 0.45); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] {
  background: var(--ink, #102a66);
  color: #fff;
  border-color: var(--ink, #102a66);
}

.jf-err {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #d23b53;
}

.join-submit { margin-top: 0.4rem; align-self: flex-start; }
.join-form.is-busy .join-submit { opacity: 0.6; pointer-events: none; }

/* ---- success / access ---- */
.join-done { text-align: center; outline: none; }
.join-done .eyebrow { color: var(--blue, #2563ff); }
.join-done .join-sub { margin-left: auto; margin-right: auto; max-width: 26ch; }

.join-tick {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--blue, #2563ff);
  color: #fff;
  animation: tick-pop 0.45s cubic-bezier(.16, 1, .3, 1) both;
}
.join-tick svg { width: 1.7rem; height: 1.7rem; }
@keyframes tick-pop { from { transform: scale(0); } to { transform: scale(1); } }

.join-wa { margin: 0.4rem auto 0; }

.join-share { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(16, 42, 102, 0.1); }
.join-share-label { margin: 0 0 0.7rem; font-size: 0.85rem; color: var(--muted, #5b6b8c); }
.join-copy { margin: 0 auto; }
.join-copy .ico-done { display: none; }
.join-copy.copied .ico-copy { display: none; }
.join-copy.copied .ico-done { display: block; }

@media (prefers-reduced-motion: reduce) {
  .join-card, .join-done, .join-tick { animation: none; }
}
