/* ===========================================================================
   JOIN THE CREATOR NETWORK — /join/
   Loaded only on that route. Reuses the theme's tokens, so the page inherits
   the site's palette and type without redefining either.
   =========================================================================== */

.jn { background: var(--canvas); }

.jn__card {
  width: min(100%, 740px); margin-inline: auto;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: clamp(14px, 1.6vw, 22px);
  padding: clamp(24px, 3.6vw, 56px);
  box-shadow: 0 30px 70px -44px rgba(20, 18, 28, .4);
}

.jn__tag {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--lime); color: var(--ink);
  font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.jn__h {
  margin: clamp(16px, 2vw, 24px) 0 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.04; letter-spacing: -.045em; color: var(--ink);
}
.jn__p { margin: clamp(10px, 1.3vw, 16px) 0 0; font-size: clamp(.96rem, 1.1vw, 1.06rem); line-height: 1.6; color: var(--ink-2); max-width: 52ch; }

.jn__form { margin-top: clamp(24px, 3vw, 38px); padding-top: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--hairline); }

.jn__f { margin-bottom: clamp(18px, 2.2vw, 26px); }
.jn__f label,
.jn__lab {
  display: block; margin-bottom: 9px;
  font-family: var(--font-body); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.jn__f i, .jn__lab i { font-style: normal; color: var(--lime-deep); }
.jn__f small { display: block; margin-top: 8px; font-size: .86rem; line-height: 1.45; color: var(--ink-muted); }

.jn__f input[type="text"],
.jn__f input[type="email"],
.jn__f input[type="tel"] {
  width: 100%; box-sizing: border-box;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--hairline); background: var(--canvas);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  transition: border-color .25s, background .25s;
}
.jn__f input::placeholder { color: var(--ink-muted); }
.jn__f input:focus { outline: none; border-color: var(--lime-deep); background: var(--surface); }
.jn__f input[aria-invalid="true"] { border-color: #C2453A; }

/* the @ sits inside the field so nobody types it twice */
.jn__at { display: flex; align-items: center; border: 1px solid var(--hairline); border-radius: 10px; background: var(--canvas); transition: border-color .25s, background .25s; }
.jn__at:focus-within { border-color: var(--lime-deep); background: var(--surface); }
.jn__at span { padding-left: 16px; color: var(--ink-muted); font-size: 1rem; }
.jn__at input { border: 0 !important; background: none !important; padding-left: 4px !important; }

.jn__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 22px); }
.jn__row > * { min-width: 0; }

/* ---- the screenshot ---- */
.jn__drop {
  display: block; text-align: center; cursor: pointer;
  padding: clamp(22px, 2.6vw, 32px); border-radius: 12px;
  border: 1.5px dashed var(--hairline-2); background: var(--canvas);
  transition: border-color .25s, background .25s;
}
.jn__drop:hover, .jn__drop:focus-within { border-color: var(--lime-deep); background: var(--surface); }
.jn__drop b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: var(--lime-ink); }
.jn__drop span { display: block; margin-top: 6px; font-size: .88rem; color: var(--ink-muted); }
.jn__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.jn__drop.is-set { border-style: solid; border-color: var(--lime-deep); background: var(--surface); }

/* ---- the promotion types ---- */
.jn__picks { display: flex; flex-wrap: wrap; gap: 9px; }
.jn__pick { position: relative; }
.jn__pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jn__pick span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 17px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: var(--canvas);
  font-size: .94rem; color: var(--ink-2);
  transition: background .22s, border-color .22s, color .22s;
}
.jn__pick span::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--hairline-2); transition: background .22s;
}
.jn__pick input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 600; }
.jn__pick input:checked + span::before { background: var(--ink); }
.jn__pick input:focus-visible + span { outline: 2px solid var(--lime-deep); outline-offset: 2px; }

/* never seen; only filled in by something that is not a person */
.jn__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.jn__go { margin-top: clamp(8px, 1vw, 14px); width: 100%; justify-content: center; }
.jn__go[disabled] { opacity: .6; pointer-events: none; }

.jn__note { margin: 14px 0 0; font-size: .93rem; line-height: 1.5; min-height: 1.4em; }
.jn__note.is-bad { color: #C2453A; }

/* ---- after it is sent ---- */
.jn__done { text-align: center; padding: clamp(12px, 2vw, 26px) 0; }
.jn__done[hidden] { display: none; }
.jn__done__mark { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; display: block; }
.jn__done h2 {
  margin: clamp(14px, 1.8vw, 22px) 0 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; letter-spacing: -.04em; color: var(--ink);
}
.jn__done p { margin: 12px auto 0; max-width: 40ch; font-size: clamp(.96rem, 1.1vw, 1.06rem); line-height: 1.6; color: var(--ink-2); }
.jn__done .btn { margin-top: clamp(20px, 2.4vw, 30px); }

@media (max-width: 640px) {
  .jn__row { grid-template-columns: 1fr; }
  .jn__card { padding: 22px 18px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .jn__f input, .jn__at, .jn__drop, .jn__pick span { transition: none !important; }
}

/* ---- the human check ----
   Turnstile renders a fixed-width iframe; centring it keeps the card balanced
   on a phone, where the widget is nearly as wide as the card itself. */
.jn__ts { display: flex; justify-content: center; margin-bottom: clamp(14px, 1.8vw, 20px); }
.jn__ts > div { max-width: 100%; }
