/* join.css — /join musician wizard. Tokens come from styles.css :root; the three below
   have no site-wide token yet (docs/design-audits/2026-10-07-join.md → Tokens). Dark-only,
   like the rest of www. */
:root {
    --jn-danger: #FF6B6B;
    --jn-info: #00D4FF;
    --jn-input-border: #555555;
    --jn-input-bg: #0B0B0B;
    --jn-radius: 6px;
    --jn-radius-card: 12px;
}

.jn-body { min-height: 100vh; background: var(--bg-color); }

.jn-top {
    /* styles.css fixes every <header> for the site nav; this page's bar sits in the flow. */
    position: static; height: auto; width: auto; z-index: auto;
    background: var(--bg-color); backdrop-filter: none;
    display: block;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}
.jn-wordmark {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
    font-size: 0.95rem;
    display: inline-flex; align-items: center; min-height: 44px;
}

.jn-shell {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 16px 64px;
}

/* ── Progress ─────────────────────────────────────────── */
.jn-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}
.jn-progress li {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 3px solid var(--border-color);
    line-height: 1.3;
}
.jn-progress li.is-done { border-top-color: var(--accent-purple); color: var(--text-main); }
.jn-progress li[aria-current="step"] { border-top-color: var(--accent-lime); color: var(--text-main); font-weight: 700; }
.jn-step-count { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 22px; }

/* ── Type ─────────────────────────────────────────────── */
.jn-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-lime);
    margin-bottom: 8px;
}
.jn-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 14px;
}
.jn-title:focus { outline: none; }
.jn-lead { font-size: 1.1rem; margin-bottom: 18px; }
.jn-muted { color: var(--text-muted); }
.jn-small { font-size: 0.85rem; }
.jn-state p { margin-bottom: 14px; }
.jn-link { color: var(--accent-lime); text-decoration: underline; text-underline-offset: 3px; }

/* ── Cards ────────────────────────────────────────────── */
.jn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--jn-radius-card);
    padding: 18px;
    margin-bottom: 22px;
}
.jn-offer { border-left: 3px solid var(--accent-lime); }
.jn-found { border-left: 3px solid var(--jn-info); }
.jn-note { border-left: 3px solid var(--jn-info); font-size: 0.9rem; }
.jn-note p:last-child, .jn-found p:last-child, .jn-offer p:last-child { margin-bottom: 0; }

.jn-ticks { margin-bottom: 12px; }
.jn-ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.jn-ticks li::before {
    content: '';
    position: absolute; left: 4px; top: 6px;
    width: 10px; height: 6px;
    border-left: 2px solid var(--accent-lime);
    border-bottom: 2px solid var(--accent-lime);
    transform: rotate(-45deg);
}

/* ── Buttons ──────────────────────────────────────────── */
.jn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: var(--jn-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
    text-align: center;
}
.jn-btn-primary { background: var(--accent-lime); color: #000; }
.jn-btn-primary:hover { background: #E4FF4D; }
.jn-btn-secondary { background: transparent; color: var(--text-main); border-color: var(--jn-input-border); }
.jn-btn-secondary:hover { border-color: var(--text-main); }
.jn-btn:active { transform: translateY(1px); }
.jn-btn[disabled], .jn-btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

.jn-btn-text {
    display: block;
    margin: 10px auto 0;
    min-height: 44px;
    padding: 10px 12px;
    background: none; border: 0;
    color: var(--text-main);
    font: inherit; font-size: 0.95rem;
    text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer;
}
.jn-btn-text:hover { color: var(--accent-lime); }

.jn-btn:focus-visible, .jn-btn-text:focus-visible, .jn-link:focus-visible, .jn-wordmark:focus-visible,
.jn-form input:focus-visible, .jn-form textarea:focus-visible {
    outline: 2px solid var(--accent-lime);
    outline-offset: 2px;
}

.jn-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 22px 0 !important;
    color: var(--text-muted); font-size: 0.85rem;
}
.jn-divider::before, .jn-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

/* ── Forms ────────────────────────────────────────────── */
.jn-form { display: block; }
.jn-field { margin-bottom: 18px; min-width: 0; }
.jn-field label, .jn-fieldset legend { display: block; font-weight: 500; margin-bottom: 6px; }
.jn-req { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }
.jn-form input[type="text"], .jn-form input[type="email"], .jn-form input[type="password"],
.jn-form input[type="url"], .jn-form input[type="number"], .jn-form input[type="date"],
.jn-form input[type="time"], .jn-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--jn-input-bg);
    border: 1px solid var(--jn-input-border);
    border-radius: var(--jn-radius);
    color: var(--text-main);
    font: inherit;
    font-size: 16px; /* stops iOS zooming on focus */
    color-scheme: dark;
}
.jn-form textarea { resize: vertical; min-height: 110px; }
.jn-form input::placeholder, .jn-form textarea::placeholder { color: #8a8a8a; }
.jn-form input[type="file"] { width: 100%; min-height: 44px; font-size: 0.95rem; color: var(--text-muted); padding: 10px 0; }
.jn-form input[type="file"]::file-selector-button {
    margin-right: 12px; min-height: 40px; padding: 8px 14px;
    background: transparent; color: var(--text-main);
    border: 1px solid var(--jn-input-border); border-radius: var(--jn-radius);
    font: inherit; cursor: pointer;
}
.jn-form input[type="file"]:focus-visible { outline: 2px solid var(--accent-lime); outline-offset: 2px; }
.jn-form [aria-invalid="true"] { border-color: var(--jn-danger); }
.jn-hint { font-size: 0.82rem; color: var(--text-muted); margin: 6px 0 0 !important; }
.jn-field-error { font-size: 0.85rem; color: var(--jn-danger); margin: 6px 0 0 !important; }

.jn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 360px) { .jn-row { grid-template-columns: 1fr; } }

.jn-fieldset { border: 0; padding: 0; }
.jn-choice {
    display: flex !important; align-items: center; gap: 10px;
    min-height: 44px; font-weight: 400 !important; cursor: pointer;
}
.jn-choice input { width: 20px; height: 20px; accent-color: var(--accent-lime); }

.jn-actions { margin-top: 26px; }
.jn-actions-stack { display: grid; gap: 12px; }

/* ── Alert ────────────────────────────────────────────── */
.jn-alert {
    border: 1px solid var(--jn-danger);
    border-left-width: 3px;
    border-radius: var(--jn-radius);
    padding: 12px 14px;
    margin-bottom: 20px;
    color: var(--text-main);
    background: rgba(255, 107, 107, 0.08);
}

/* ── Done ─────────────────────────────────────────────── */
.jn-status { margin-bottom: 8px; }
.jn-status li {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}
.jn-status .jn-status-label { font-weight: 500; }
.jn-status .jn-status-value { color: var(--text-muted); font-size: 0.92rem; }
.jn-status .jn-status-value.is-done { color: var(--accent-lime); }
.jn-status .jn-btn-text { margin: 0; padding: 10px 0; }

/* ── Loading ──────────────────────────────────────────── */
[data-state="loading"] { text-align: center; padding: 60px 0; }
.jn-spinner {
    width: 36px; height: 36px; margin: 0 auto 16px;
    border: 3px solid var(--border-color); border-top-color: var(--accent-lime);
    border-radius: 50%;
    animation: jn-spin 0.8s linear infinite;
}
@keyframes jn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .jn-spinner { animation-duration: 2.4s; }
    .jn-btn { transition: none; }
}
