/* ——— The beta waitlist (/join, /beta) ———
   On top of welcome.css: the same sky, cards, and buttons. Everything here is
   jn-* so it can't restyle the marketing page. */

[hidden] { display: none !important; }

.jn-nav-link { margin-left: auto; font: 500 17px var(--display); color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.jn-nav-link:hover { color: var(--ink); }
.nav .jn-nav-link + .btn { margin-left: 0; }

/* ——— Hero ——— */
/* clip, not hidden: a hidden box can still be scrolled, and focusing the beta
   box slid the whole hero sideways toward the rainbow. */
.jn-hero { padding: 48px 0 72px; overflow: clip; }
.jn-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.jn-hero .lead { max-width: 580px; }
.jn-hero-perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.jn-hero-perks li {
  display: flex; align-items: center; gap: 12px; width: fit-content;
  padding: 10px 18px 10px 12px; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 #f0e2c4;
  font: 500 18px var(--display);
}
.jn-hero-perks i { font-style: normal; font-size: 22px; }
.jn-hero-perks b { color: var(--orange-deep); }

.jn-hero-side { position: relative; padding-top: 52px; }
.jn-f1 { --c: var(--blue); left: -46px; top: 120px; transform: rotate(-8deg); z-index: 1; }
.jn-f2 { --c: var(--green); right: -34px; bottom: 120px; transform: rotate(7deg); animation-delay: -1.5s; z-index: 1; }
.jn-g1 { right: 30%; top: 0; }
.jn-trust { margin-top: 22px; text-align: center; font-size: 15px; color: var(--ink-soft); }

/* ——— The form card ——— */
.jn-card {
  position: relative; max-width: 540px; margin: 0 auto;
  background: #fff; border-radius: 32px; padding: 34px 30px 26px;
  border: 5px solid #ffd6a8; box-shadow: 0 10px 0 #ffd6a8, var(--shadow);
}
.jn-card-buddy { position: absolute; width: 92px; top: -64px; filter: drop-shadow(0 8px 0 rgba(110, 90, 150, 0.14)); animation: bob 3.4s ease-in-out infinite; }
.jn-card-buddy.l { left: 18px; transform: rotate(-8deg); }
.jn-card-buddy.r { right: 18px; transform: rotate(6deg); animation-delay: -1.3s; }
.jn-card-title { font-size: clamp(28px, 3.2vw, 34px); text-align: center; }
.jn-card-sub { text-align: center; color: var(--ink-soft); margin-top: -6px; }
.jn-card-sub, .jn-balance { text-wrap: balance; }
.jn-card-title:focus { outline: none; }

.jn-form { display: grid; gap: 14px; }
.jn-label { font: 600 17px var(--display); margin-bottom: -6px; }
.jn-email {
  width: 100%; font: 600 20px var(--body); color: var(--ink); background: #fff;
  padding: 14px 16px; border: 3px solid #eedcea; border-radius: 16px;
}
.jn-email:focus { outline: 3px solid #7b5bd6; border-color: #7b5bd6; }
.jn-bot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* The beta yes: a big tappable card with its own checkbox */
.jn-beta {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 14px 16px; border-radius: 20px; cursor: pointer;
  border: 3px solid #e6dcf5; background: #faf6ff;
  transition: border-color 0.2s, background 0.2s;
}
.jn-beta:has(input:checked) { border-color: var(--green); background: #eefaf4; }
.jn-beta input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0; cursor: pointer;
  width: 30px; height: 30px; border-radius: 10px; border: 3px solid #cbb8e6; background: #fff;
  display: grid; place-items: center; transition: transform 0.15s var(--bounce);
}
.jn-beta input:checked { background: var(--green); border-color: var(--green-deep); transform: scale(1.08); }
.jn-beta input:checked::after { content: '✓'; color: #fff; font: 700 18px/1 var(--display); }
.jn-beta input:focus-visible { outline: 4px solid var(--lilac); outline-offset: 2px; }
.jn-beta b { display: block; font: 600 19px/1.25 var(--display); }
.jn-beta small { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }

.jn-extra { display: grid; gap: 14px; padding: 2px 2px 4px; animation: jn-open 0.35s var(--bounce); }
@keyframes jn-open { from { opacity: 0; transform: translateY(-8px); } }
.jn-extra-head { font: 600 16px var(--display); }
.jn-extra-head small { font: 400 14px var(--body); color: var(--ink-soft); }
.jn-extra fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.jn-extra legend { padding: 0; margin-bottom: 8px; font: 600 15px var(--display); color: var(--ink-soft); }
.jn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jn-chip { position: relative; display: inline-flex; }
.jn-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.jn-chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: #f4eefa; box-shadow: 0 3px 0 #e2d4f0; color: var(--ink-soft);
  font: 600 16px var(--display); transition: background 0.15s, color 0.15s, transform 0.15s var(--bounce);
}
.jn-chip input:checked + span { background: var(--lilac); color: #fff; box-shadow: 0 3px 0 #7b5bd6; transform: translateY(-1px); }
.jn-chip input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }

.jn-form .btn-block { margin-top: 4px; }
.jn-form button[disabled] { opacity: 0.7; cursor: progress; }
.jn-note { min-height: 1.4em; margin: -4px 0 -6px; font-weight: 700; color: #d6455d; text-align: center; }
.jn-note.ok { color: var(--ink-soft); }
.jn-fine { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); text-align: center; }
.jn-fine a { color: var(--green-deep); font-weight: 700; }

/* After joining */
.jn-done { text-align: center; display: grid; gap: 12px; }
.jn-done-icon { font-size: 60px; line-height: 1; margin: 0; animation: pop 0.5s var(--bounce); }
.jn-done-text { font-size: 18px; color: var(--ink-soft); }
.jn-done-text b { color: var(--ink); }
.jn-tip { font-size: 14px; color: var(--ink-soft); background: #fff8e3; border-radius: 14px; padding: 8px 12px; }
.jn-upgrade, .jn-share { display: grid; justify-items: center; gap: 10px; padding-top: 14px; border-top: 2px dashed #efe4f4; }
.jn-upgrade .btn, .jn-share .btn { font-size: 17px; padding: 12px 24px; }
.jn-share-note { min-height: 1.3em; font-size: 15px; font-weight: 700; color: var(--green-deep); }

/* ——— Perks ——— */
.jn-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; gap: 28px; margin-top: 44px; }
.jn-perk { background: #fff; border-radius: 30px; padding: 32px 30px; box-shadow: 0 8px 0 #f0e2c4; display: flex; flex-direction: column; }
.jn-perk.featured { border: 5px solid var(--green); box-shadow: 0 8px 0 var(--green-deep), var(--shadow); }
.jn-perk h3 { font-size: 28px; }
.jn-perk .ticks { margin: 18px 0 0; flex: 1; align-content: start; }
.jn-perk .ticks li { color: var(--ink-soft); font-size: 17px; }
.jn-perk .ticks b { color: var(--ink); }
.jn-perk .btn { margin-top: 26px; }

/* ——— The two worlds ——— */
.jn-worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 72px; }
.jn-worlds h3 { grid-column: 1 / -1; font-size: 30px; }
.jn-worlds figure { margin: 0; }
.jn-worlds figcaption { margin-top: 14px; text-align: center; font: 500 18px var(--display); color: var(--ink-soft); }
.jn-worlds figcaption b { color: var(--ink); }
.jn-worlds-note { grid-column: 1 / -1; color: var(--ink-soft); }

.jn-features { grid-template-columns: repeat(4, 1fr); }

/* ——— Small screens ——— */
@media (max-width: 1000px) {
  .jn-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .jn-hero-copy { text-align: center; }
  .jn-hero .lead { margin: 0 auto; }
  .jn-hero-perks { justify-items: center; }
  .jn-f1, .jn-f2, .jn-g1 { display: none; }
  .jn-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* Phones: the form right after the pitch, the perk pills under it. */
  .jn-hero { padding-top: 28px; }
  .jn-hero-grid { gap: 0; }
  .jn-hero-copy { display: contents; }
  .jn-hero-side { order: 1; margin-top: 64px; }
  .jn-hero-perks { order: 2; margin-top: 32px; }
  .jn-wide { display: none; }
  .jn-hero .eyebrow { justify-self: center; }
  .jn-nav-link { display: none; }
  .nav .jn-nav-link + .btn { margin-left: auto; }
  .jn-hero-perks li { font-size: 16px; text-align: left; }
  .jn-card { padding: 30px 18px 22px; border-radius: 26px; }
  .jn-card-buddy { width: 74px; top: -52px; }
  .jn-perks, .jn-worlds, .jn-features { grid-template-columns: 1fr; }
  .jn-perk { padding: 26px 22px; }
  .jn-worlds { margin-top: 56px; }
}
