/* /join opt-in page — teal chrome, matches the map and guide pages. */
:root {
  --bg: #060d14; --surface: #0b1a27; --teal: #00c896; --teal-2: #00b589;
  --text: rgba(255,255,255,0.88); --muted: rgba(255,255,255,0.6);
  --line: rgba(0,200,150,0.22); --error: #ff8a8a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Outfit', Arial, Helvetica, sans-serif; line-height: 1.65;
}
.join-wrap { max-width: 620px; margin: 0 auto; padding: 28px 20px 72px; }

.join-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.join-back { color: var(--teal); text-decoration: none; font-size: 0.9rem; }
.join-back:hover { text-decoration: underline; }
.lang-toggle {
  background: transparent; color: var(--teal); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.85rem; cursor: pointer;
}
.lang-toggle:hover { background: rgba(0,200,150,0.08); }

.join-hero { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.join-hero img { height: 92px; width: auto; flex: 0 0 auto; }
.join-hero .violet { height: 104px; }
h1 {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-size: clamp(0.72rem, 2.6vw, 1.05rem); line-height: 1.9;
  color: #fff; text-shadow: 0 0 10px rgba(0,200,150,0.4); margin-bottom: 18px;
}
.lead { font-size: 1.05rem; margin-bottom: 12px; }
.lead-muted { color: var(--muted); margin-bottom: 26px; }

.join-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; box-shadow: 0 0 36px rgba(0,200,150,0.06);
}
.field { margin-bottom: 18px; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=email] {
  width: 100%; padding: 12px 14px; border-radius: 8px; font: inherit; font-size: 1rem;
  background: #06121c; color: #fff; border: 1px solid rgba(255,255,255,0.18);
}
.field input:focus-visible, .lang-toggle:focus-visible, .consent input:focus-visible,
.radio-row input:focus-visible, .join-submit:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
fieldset.field { border: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; padding: 10px 14px; min-height: 44px;
}
.radio-row input { accent-color: var(--teal); width: 18px; height: 18px; }

.consent {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  background: rgba(0,200,150,0.05); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; margin: 6px 0 18px;
}
.consent input { accent-color: var(--teal); width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.join-submit {
  width: 100%; min-height: 48px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--teal); color: #06231b; font: inherit; font-weight: 700; font-size: 1.05rem;
}
.join-submit:hover { background: var(--teal-2); }
.join-submit[disabled] { opacity: 0.6; cursor: wait; }

.join-msg { margin-top: 14px; min-height: 1.4em; }
.join-msg.error { color: var(--error); }
.join-small { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }
.join-small a, .join-done a { color: var(--teal); }

.join-done { text-align: center; padding: 10px 4px; }
.join-done .big { font-size: 2.6rem; margin-bottom: 8px; }
.join-done h2 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }

/* Language: body.lang-af shows .l-af, otherwise .l-en */
.l-af { display: none; }
body.lang-af .l-af { display: inline; }
body.lang-af .l-en { display: none; }

@media (max-width: 480px) {
  .join-hero img { height: 70px; }
  .join-hero .violet { height: 80px; }
  .join-card { padding: 20px 16px; }
}
