/* The join flow in the App Store shell, black and gold (the signed-off first-launch
   look, see welcome.html). Everything is scoped to html.native, so the web page is
   untouched; the sign-up logic in join.html is unchanged. native-join.js adds the
   ready state of the button, the live checks, and the celebration at the end. */

html.native { --nj-gold: #e3b23c; --nj-gold-hi: #f8dc8e; --nj-line: rgba(255, 255, 255, .09); --nj-ease: cubic-bezier(.22, 1, .36, 1); }
html.native body { background: #000; font-family: "Inter", -apple-system, system-ui, sans-serif; }
html.native .aurora,
html.native .equity,
html.native .vignette,
html.native .hint,
html.native .intro .kick,
html.native .intro .lede { display: none; }
html.native .stage { background: #000; min-height: 100dvh; }

/* ---- top: the brand mark, then back and the progress track ---- */
html.native .bar { justify-content: center; padding: calc(10px + env(safe-area-inset-top)) 20px 2px; }
html.native .brand img { width: 28px; height: 28px; border-radius: 8px; }
html.native .brand .bt { display: none; }
html.native .center { padding: 6px 22px 0; gap: 8px; justify-content: flex-start; }
html.native .prow { order: -1; width: 100%; gap: 12px; }
html.native .pback,
html.native .pspacer { width: 40px; height: 40px; }
html.native .pback { border-color: var(--nj-line); background: rgba(255, 255, 255, .04); color: #e8e9ec; }
html.native .pback.show { opacity: 1; }
html.native .progress { flex: 1; gap: 5px; }
html.native .progress .dot { flex: 1; width: auto; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); transition: background .5s var(--nj-ease), box-shadow .5s; }
html.native .progress .dot.done { background: linear-gradient(90deg, #9b6a10, var(--nj-gold), var(--nj-gold-hi)); box-shadow: 0 0 10px rgba(248, 220, 142, .8); }

/* ---- the step ---- */
html.native .steps { max-width: none; text-align: left; min-height: 0; align-items: stretch; justify-content: flex-start; padding-top: 26px; }
html.native .step::before { display: block; font-size: 12px; font-weight: 800; letter-spacing: .22em; color: var(--nj-gold); margin-bottom: 8px; }
html.native .step[data-step="0"]::before { content: "YOUR NAME"; }
html.native .step[data-step="1"]::before { content: "YOUR EMAIL"; }
html.native .step[data-step="2"]::before { content: "GRADUATION"; }
html.native .step[data-step="3"]::before { content: "PASSWORD"; }
html.native .intro .big,
html.native .prompt { font-family: inherit; font-weight: 900; font-size: 34px; line-height: 1.04; letter-spacing: -.03em; margin: 0; text-shadow: none; opacity: 1; animation: none; }
html.native .prompt .nm { color: var(--nj-gold-hi); }
html.native .q { font-size: 15.5px; margin-top: 10px; color: #8d909a; }
html.native .intro .ask { opacity: 1; animation: none; }
html.native .ask { margin-top: 26px; }

html.native .ip { max-width: none; padding-right: 0; gap: 10px; }
html.native .step input { height: 60px; text-align: left; font-size: 18px; font-weight: 600; border: 1px solid var(--nj-line); border-radius: 16px; padding: 0 16px; background: rgba(255, 255, 255, .045); transition: border-color .25s, box-shadow .25s, background .25s; }
html.native .step input::placeholder { color: #6e717a; font-weight: 500; }
html.native .step input:focus { border-color: rgba(227, 178, 60, .7); background: rgba(227, 178, 60, .05); box-shadow: 0 0 0 4px rgba(227, 178, 60, .12), 0 0 28px -8px rgba(227, 178, 60, .6); }

/* The live check under a field (native-join.js). */
.yic-check { display: none; }
html.native .yic-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 22px; font-size: 13.5px; font-weight: 600; color: #8d909a; }
html.native .yic-check i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #4a4d55; display: grid; place-items: center; transition: background .25s, border-color .25s, transform .3s var(--nj-ease); }
html.native .yic-check i::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #1b1303; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
html.native .yic-check.ok { color: var(--nj-gold-hi); }
html.native .yic-check.ok i { background: var(--nj-gold); border-color: var(--nj-gold); transform: scale(1.12); }
html.native .yic-check.ok i::after { opacity: 1; }

/* Password: the rules stay visible as checks, with a strength meter above them. */
html.native .reqs { display: flex !important; flex-direction: column; align-items: flex-start; gap: 8px; margin: 14px 0 0; max-width: none; animation: none; }
html.native .reqs li { font-size: 13.5px; font-weight: 600; }
html.native .reqs li.met { color: var(--nj-gold-hi); }
html.native .reqs li.met::before { border-color: var(--nj-gold); background-color: var(--nj-gold); }
.yic-meter { display: none; }
html.native .yic-meter { display: flex; gap: 6px; margin-top: 14px; }
html.native .yic-meter i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); transition: background .3s, box-shadow .3s; }
html.native .yic-meter i.on { background: var(--nj-gold); box-shadow: 0 0 8px rgba(227, 178, 60, .8); }

html.native .notucf { margin: 14px 0 0; min-height: 44px; border-color: var(--nj-line); }
html.native .joinmsg { margin: 14px 0 0; max-width: none; text-align: left; }
html.native .gradpick { margin-top: 24px; gap: 12px; }
html.native .chips { justify-content: flex-start; margin-top: 0; gap: 10px; }
html.native .term-chips .yic-chip--choice { flex: 1; }
html.native .yic-chip--choice { height: 54px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--nj-line); background: rgba(255, 255, 255, .04); font-weight: 700; font-size: 16px; transform: none; }
html.native .yic-chip--choice.sel { border-color: var(--nj-gold); background: rgba(227, 178, 60, .14); color: var(--nj-gold-hi); box-shadow: 0 0 22px -8px rgba(227, 178, 60, .8); }

/* ---- the primary action, right under the field (so the keyboard never covers it), lit when the step is ready ---- */
html.native .ip { flex-wrap: wrap; }
html.native .step .ask .go {
  position: relative; left: auto; right: auto; top: auto; bottom: auto; flex: 0 0 100%; width: 100%; margin: 8px 0 0; z-index: 1;
  height: 58px; border-radius: 19px; transform: none; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #f9dc8c 0%, #e8b944 46%, #c18a14 100%); color: #1b1303;
  font-family: inherit; font-weight: 800; font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, .85), inset 0 -2px 0 rgba(120, 78, 6, .45);
  filter: saturate(.25) brightness(.55); transition: filter .35s ease, transform .15s ease;
}
html.native .step .ask .go.is-ready { filter: none; }
html.native .step .ask .go svg { display: none; }
html.native .step .ask .go::after { content: "Continue  \2192"; position: relative; z-index: 1; }
html.native .step .ask .go[aria-label="Finish"]::after { content: "Create account"; }
html.native .step .ask .go::before { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; z-index: 0; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); }
html.native .step .ask .go.is-ready::before { animation: nj-shine 2.8s ease-in-out infinite; }
@keyframes nj-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
html.native .step .ask .go:active { transform: scale(.975); }
html.native .step .ask .go[disabled] { opacity: .8; }

/* Push between steps: forward from the right, back from the left. The .ip row holds
   the pinned button, so only the fields inside it move. */
html.native .step.active:not(.intro) { animation: none; }
html.native .step.active > * { animation: nj-fwd .34s var(--nj-ease) both; }
html.native .steps.dir-back .step.active > * { animation-name: nj-back; }
html.native .step.active > .ask { animation: none; }
html.native .step.active > .ask .ip input,
html.native .step.active > .ask .gradpick { animation: nj-fwd .34s var(--nj-ease) both; }
html.native .steps.dir-back .step.active > .ask .ip input,
html.native .steps.dir-back .step.active > .ask .gradpick { animation-name: nj-back; }
@keyframes nj-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes nj-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* ---- the code step ---- */
html.native #otpBox .kick { display: block; margin: 0 0 8px; font-size: 12px; letter-spacing: .22em; color: var(--nj-gold); opacity: 1; animation: none; }
html.native #otpBox .lede { font-size: 15px; line-height: 1.45; margin: 10px 0 0; max-width: none; text-align: left; color: #8d909a; }
html.native #otpBox .lede b { color: #f3f4f6; }
html.native .otp { margin: 26px 0 0; max-width: none; justify-content: space-between; gap: 8px; }
html.native .otp input { flex: 1; width: auto; height: 64px; border-radius: 16px; border: 1px solid var(--nj-line); background: rgba(255, 255, 255, .045); font-size: 26px; transition: border-color .2s, background .2s, transform .45s var(--nj-ease), box-shadow .3s; }
html.native .otp input:focus { border-color: rgba(227, 178, 60, .8); box-shadow: 0 0 0 4px rgba(227, 178, 60, .12); background: rgba(227, 178, 60, .05); }
html.native .otp input.filled { border-color: rgba(227, 178, 60, .55); }
html.native.success .otp input { border-color: var(--nj-gold); background: linear-gradient(180deg, rgba(248, 220, 142, .35), rgba(227, 178, 60, .18)); color: #fff6d8; box-shadow: 0 0 26px -6px rgba(227, 178, 60, .9); transform: translateY(-4px); }
html.native #otpVerify { display: none; }
html.native .linkbtn { min-height: 44px; margin-top: 6px; padding: 0; color: var(--nj-gold); }
html.native #otpBox > div { text-align: left; }

/* The content layer sits above the footer; the footer stays at the bottom. */
html.native .center { z-index: 8; }
html.native .foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); color: #8d909a; }

/* ---- the celebration (native-join.js): gold burst, the member card, the notifications ask ---- */
.yic-cele { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #000; opacity: 0; transition: opacity .45s ease; }
.yic-cele.on { opacity: 1; }
.yic-cele canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.yic-cele-scene { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(24px + env(safe-area-inset-top)) 22px calc(16px + env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .55s var(--nj-ease), transform .7s var(--nj-ease); }
.yic-cele-scene.on { opacity: 1; pointer-events: auto; transform: none; }
.yic-cele .grow { flex: 1; }
.yic-cardwrap { perspective: 900px; width: 100%; max-width: 330px; margin: 0 auto; }
.yic-card { position: relative; aspect-ratio: 1.586; border-radius: 22px; overflow: hidden; transform: rotateY(-100deg) translateY(30px); opacity: 0;
  background: radial-gradient(120% 140% at 0% 0%, #fbe6a6 0%, #e6b94a 30%, #b9851a 62%, #7d540a 100%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(227, 178, 60, .55), inset 0 1px 0 rgba(255, 250, 230, .9);
  transition: transform .9s var(--nj-ease), opacity .4s ease; }
.yic-card.in { opacity: 1; transform: none; }
.yic-card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.yic-card .glare { position: absolute; inset: -40%; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent 70%); mix-blend-mode: soft-light; transform: translate(var(--gx, -20%), var(--gy, -20%)); transition: transform .2s ease-out; pointer-events: none; }
.yic-card .top { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; }
.yic-card .top b { font-size: 11px; font-weight: 900; letter-spacing: .22em; color: rgba(40, 25, 0, .82); }
.yic-card .top .mk { width: 58px; height: 66px; margin: -8px -4px -8px 0; border-radius: 12px; background: #000; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(60, 35, 0, .45); }
.yic-card .top .mk img { width: 92%; height: 92%; object-fit: contain; }
.yic-card .emv { position: absolute; left: 20px; top: 70px; width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #fff2c9, #c99a33); box-shadow: inset 0 0 0 1px rgba(90, 60, 0, .35); }
.yic-card .name { position: absolute; left: 20px; right: 20px; bottom: 44px; font-weight: 900; font-size: 19px; letter-spacing: .04em; color: #2a1a00; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yic-card .meta { position: absolute; left: 20px; right: 20px; bottom: 18px; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; font-weight: 600; color: rgba(42, 26, 0, .8); letter-spacing: .08em; }
.yic-cele h2 { margin-top: 30px; text-align: center; font-weight: 900; font-size: 32px; line-height: 1.05; letter-spacing: -.03em; color: #f3f4f6; }
.yic-cele h2 span { color: var(--nj-gold-hi); }
.yic-cele p { margin: 10px auto 0; max-width: 30ch; text-align: center; color: #b9bcc4; font-size: 15.5px; line-height: 1.45; }
.yic-cele .kick { font-size: 12px; font-weight: 800; letter-spacing: .22em; color: var(--nj-gold); }
.yic-cele .q2 { margin-top: 8px; font-weight: 900; font-size: 34px; line-height: 1.04; letter-spacing: -.03em; color: #f3f4f6; }
.yic-cele .hint2 { margin-top: 10px; color: #8d909a; font-size: 15px; line-height: 1.45; }
.yic-push { margin-top: 26px; padding: 14px; border-radius: 22px; background: rgba(40, 40, 46, .72); border: 1px solid rgba(255, 255, 255, .08); display: flex; gap: 12px; transform: translateY(-30px) scale(.96); opacity: 0; transition: transform .8s var(--nj-ease) .2s, opacity .5s ease .2s; }
.yic-cele-scene.on .yic-push { transform: none; opacity: 1; }
.yic-push img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.yic-push .h { display: flex; justify-content: space-between; font-size: 11.5px; color: #c9ccd2; }
.yic-push .h b { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.yic-push .t { margin-top: 3px; font-weight: 700; font-size: 15px; color: #f3f4f6; }
.yic-push .b { margin-top: 2px; color: #c9ccd2; font-size: 14px; line-height: 1.35; }
.yic-plain { width: 100%; height: 48px; border: 0; background: none; color: #8d909a; font: inherit; font-weight: 600; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  html.native .step.active > *,
  html.native .step.active > .ask .ip input,
  html.native .step.active > .ask .gradpick { animation: none; }
}

/* ---- motion: prompts rise out of a blur, the label settles, the ask follows, the bar shines ---- */
html.native .step.active > .prompt,
html.native .step.active > .big { animation: yic-block .7s var(--nj-ease) .08s backwards; }
html.native .step.active::before { animation: yic-label .8s var(--nj-ease) backwards; }
html.native .step.active > .q { animation: yic-fade-up .7s var(--nj-ease) .22s backwards; }
html.native .step.active > .ask .ip input,
html.native .step.active > .ask .gradpick { animation: yic-fade-up .7s var(--nj-ease) .3s backwards; }
html.native .step.active > .ask .go { animation: yic-fade-up .7s var(--nj-ease) .42s backwards; }
html.native .steps.dir-back .step.active > .prompt,
html.native .steps.dir-back .step.active > .big,
html.native .steps.dir-back .step.active > .q,
html.native .steps.dir-back .step.active > .ask .ip input,
html.native .steps.dir-back .step.active > .ask .gradpick { animation-name: nj-back; }
html.native .progress .dot { position: relative; overflow: hidden; }
html.native .progress .dot.done::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: nj-sheen 1.1s ease-out .15s 1 both; }
@keyframes nj-sheen { to { left: 120%; } }

/* ---- a faint dark halo behind elements and text, so they stand clear of the moving market ---- */
html.native { --halo: 0 0 12px 1px rgba(0, 0, 0, .55), 0 0 34px 8px rgba(0, 0, 0, .5); --halo-text: 0 0 8px rgba(0, 0, 0, .7), 0 0 22px rgba(0, 0, 0, .55); --halo-thin: 0 0 5px #000, 0 0 10px rgba(0, 0, 0, .95), 0 0 18px rgba(0, 0, 0, .9), 0 0 30px rgba(0, 0, 0, .8), 0 0 46px rgba(0, 0, 0, .6); }
html.native .step input,
html.native .yic-chip--choice,
html.native .otp input { box-shadow: var(--halo); }
html.native .step input:focus { box-shadow: 0 0 0 4px rgba(227, 178, 60, .12), var(--halo); }
html.native .yic-chip--choice.sel { box-shadow: var(--halo); }
html.native .step .ask .go { box-shadow: var(--halo), inset 0 1px 0 rgba(255, 248, 220, .85), inset 0 -2px 0 rgba(120, 78, 6, .45); }
html.native .intro .big,
html.native .prompt { text-shadow: var(--halo-text); }
html.native .step::before,
html.native .q,
html.native .yic-check,
html.native .reqs li,
html.native .foot,
html.native .linkbtn,
html.native .joinmsg { text-shadow: var(--halo-thin); }
html.native .progress .dot { box-shadow: 0 0 10px 1px rgba(0, 0, 0, .6); }
