/* M web registration (mjoin.js). One question card per step, big tappable options, one accent button -
   the app's registration form. Each site sets its colours on :root (--mj-accent, --mj-accent-dark,
   --mj-soft, --mj-page, --mj-ink); cards stay white on the cream/light page (M surface rule). */

:root {
  --mj-accent: #ca0264; --mj-accent-dark: #8a0043; --mj-soft: #fbe3ee;
  --mj-page: #fef5e6; --mj-card: #ffffff; --mj-ink: #2a0a1a; --mj-ink-v: #5b4450; --mj-mute: #8d7a84; --mj-low: #f6efe8; --mj-high: #efe5db;
  --mj-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.mj-body { background: var(--mj-page); color: var(--mj-ink); font-family: var(--mj-font); -webkit-font-smoothing: antialiased; min-height: 100vh; }

#mjoin { min-height: 100vh; display: flex; flex-direction: column; }
.mj-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: 760px; width: 100%; margin: 0 auto; }
.mj-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mj-ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.mj-brand img { width: 34px; height: 34px; border-radius: 9px; }
.mj-out { background: none; border: 0; color: var(--mj-mute); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px; }
.mj-out:hover { color: var(--mj-accent); }

.mj-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px 48px; }
.mj-progress { height: 6px; border-radius: 6px; background: var(--mj-high); overflow: hidden; margin: 4px 4px 18px; }
.mj-progress span { display: block; height: 100%; width: 0; background: var(--mj-accent); border-radius: 6px; transition: width .35s ease; }

.mj-card { background: var(--mj-card); border-radius: 24px; padding: 32px; box-shadow: 0 10px 40px rgba(42, 10, 26, .07); }
.mj-card h1 { margin: 0; font-size: clamp(26px, 4.6vw, 34px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
.mj-sub { margin: 10px 0 0; color: var(--mj-ink-v); font-size: 16px; line-height: 1.5; }
.mj-step { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mj-accent); }
.mj-q { margin: 28px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.mj-note { margin: 6px 0 0; color: var(--mj-mute); font-size: 14px; }

.mj-field { display: grid; gap: 8px; margin-top: 20px; }
.mj-field label { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--mj-ink-v); }
.mj-field input, .mj-field select, .mj-field textarea, .mj-row2 select, .mj-row3 select {
  width: 100%; font: inherit; font-size: 16px; color: var(--mj-ink); background: var(--mj-low); border: 0; border-radius: 14px;
  padding: 15px 16px; -webkit-appearance: none; appearance: none;
}
.mj-field textarea { min-height: 110px; resize: vertical; }
.mj-field select, .mj-row2 select, .mj-row3 select {
  background-image: linear-gradient(45deg, transparent 50%, var(--mj-mute) 50%), linear-gradient(135deg, var(--mj-mute) 50%, transparent 50%);
  background-position: calc(100% - 22px) 24px, calc(100% - 17px) 24px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px;
}
.mj-field input:focus, .mj-field select:focus, .mj-field textarea:focus, .mj-row2 select:focus, .mj-row3 select:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 2px var(--mj-accent); }
.mj-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mj-row3 { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; }
.mj-count { margin: 0; font-size: 12px; color: var(--mj-mute); text-align: right; }
.mj-slider { display: flex; align-items: center; gap: 16px; }
.mj-slider input[type=range] { flex: 1; accent-color: var(--mj-accent); background: none; padding: 0; height: 28px; -webkit-appearance: auto; appearance: auto; }
.mj-val { min-width: 72px; text-align: right; font-weight: 800; font-size: 18px; color: var(--mj-accent); }

.mj-options { display: grid; gap: 10px; margin-top: 14px; }
.mj-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 16px; font-weight: 600;
  color: var(--mj-ink); background: var(--mj-low); border: 0; border-radius: 16px; padding: 16px 18px; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.mj-opt:hover { background: var(--mj-high); }
.mj-opt:active { transform: scale(.99); }
.mj-opt small { display: block; font-weight: 500; font-size: 14px; color: var(--mj-mute); margin-top: 2px; }
.mj-opt[aria-pressed="true"] { background: var(--mj-soft); box-shadow: inset 0 0 0 2px var(--mj-accent); color: var(--mj-accent-dark); }
.mj-opt__dot, .mj-opt__box { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #cfc3c9; background: #fff; }
.mj-opt__box { border-radius: 7px; }
.mj-opt[aria-pressed="true"] .mj-opt__dot { box-shadow: inset 0 0 0 7px var(--mj-accent); }
.mj-opt[aria-pressed="true"] .mj-opt__box { background: var(--mj-accent); box-shadow: none; }

.mj-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mj-chip { font: inherit; font-size: 15px; font-weight: 600; color: var(--mj-ink-v); background: var(--mj-low); border: 0; border-radius: 999px; padding: 12px 18px; min-height: 46px; cursor: pointer; }
.mj-chip:hover { background: var(--mj-high); }
.mj-chip[aria-pressed="true"] { background: var(--mj-accent); color: #fff; }

.mj-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.mj-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--mj-low); }
.mj-photo.first:not(.has) { box-shadow: inset 0 0 0 2px var(--mj-accent); }
.mj-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mj-photo__add { width: 100%; height: 100%; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--mj-ink-v); cursor: pointer; display: grid; place-content: center; gap: 6px; text-align: center; padding: 6px; }
.mj-plus { font-size: 30px; line-height: 1; color: var(--mj-accent); font-weight: 400; }
.mj-photo__x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

.mj-actions { display: flex; gap: 12px; margin-top: 28px; align-items: center; }
.mj-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 16px; border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; transition: background .15s ease; }
.mj-btn--primary { flex: 1; background: var(--mj-accent); color: #fff; }
.mj-btn--primary:hover { background: var(--mj-accent-dark); }
.mj-btn--primary:disabled { opacity: .6; cursor: default; }
.mj-btn--ghost { background: var(--mj-low); color: var(--mj-ink-v); }
.mj-link { background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--mj-accent); cursor: pointer; padding: 6px 0; text-decoration: none; }
.mj-link:hover { text-decoration: underline; }
.mj-switch { margin: 18px 0 0; font-size: 15px; text-align: center; }

.mj-msg { min-height: 1.4em; margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.mj-msg.err { color: #a2213a; }
.mj-msg.ok { color: #2c6a3e; }

.mj-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--mj-low); border-radius: 16px; padding: 5px; margin-top: 22px; }
.mj-tab { font: inherit; font-size: 16px; font-weight: 700; color: var(--mj-ink-v); background: none; border: 0; border-radius: 12px; padding: 14px 10px; cursor: pointer; }
.mj-tab[aria-selected="true"] { background: #fff; color: var(--mj-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }

.mj-done { text-align: center; }
.mj-done__mark { width: 84px; height: 84px; margin: 4px auto 18px; border-radius: 26px; background: var(--mj-accent); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 34px; }
.mj-done__mark img { width: 60px; height: 60px; border-radius: 16px; }
.mj-stores { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.mj-stores .mj-btn { flex: 1; min-width: 160px; }

.mj-fine { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--mj-mute); }
.mj-fine a { color: inherit; }

@media (max-width: 560px) {
  .mj-top { padding: 14px 16px; }
  .mj-card { padding: 24px 18px; border-radius: 20px; }
  .mj-opt { padding: 15px 16px; }
  .mj-row3 { grid-template-columns: 1fr 1.5fr 1.3fr; gap: 8px; }
  .mj-row3 select { padding: 15px 30px 15px 12px; }
}

/* Web sign-in (mauth.js / maccount.js): Google + Apple above the email form, same calm buttons. */
.mj-social { display: grid; gap: 10px; margin-top: 22px; }
.mj-btn--social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: var(--mj-ink); box-shadow: inset 0 0 0 1.5px var(--mj-high); }
.mj-btn--social:hover { background: var(--mj-low); }
.mj-btn--apple { background: #000; color: #fff; box-shadow: none; }
.mj-btn--apple:hover { background: #1d1d1f; }
.mj-social .mj-msg { margin: 0; }
.mj-social .mj-msg:empty { display: none; }
.mj-or { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; color: var(--mj-mute); font-size: 13px; }
.mj-or::before, .mj-or::after { content: ''; flex: 1; height: 1px; background: var(--mj-high); }
.mj-actions--stack { flex-direction: column; align-items: stretch; }
.mj-actions--stack .mj-btn { text-align: center; text-decoration: none; }
a.mj-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* Progressive sign-up: the finisher's pitch line and the 6-digit code field. */
.mj-pitch { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--mj-soft, #e6f0ea); color: var(--mj-accent-dark, #0f422c); font-weight: 600; font-size: 15px; line-height: 1.4; }
.mj-code { text-align: center; font-size: 22px !important; letter-spacing: .4em; }

/* Thursday tables intro (socialevents.cz, accountLater): what you get, before any form. */
.mj-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.mj-points li { position: relative; padding: 14px 16px 14px 44px; background: var(--mj-low); border-radius: 14px; font-size: 16px; line-height: 1.45; color: var(--mj-ink); }
.mj-points li::before { content: ''; position: absolute; left: 16px; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--mj-accent); }
.mj-note .mj-link { padding: 0; font-size: 14px; }
