/* "Join Studio" — the /join landing, the header Join button, the role form's live preview and the
   thanks status page. From the Claude Design canvas "Join Us Redesign" (2026-09-29).
   Navy stage, indigo accent, amber highlight, 3D role art (wwwroot/marketplace/img/auth/role-*.webp).
   RTL-first: logical properties only. */

:root {
    --js-navy: #15173a;
    --js-navy-2: #1d2050;
    --js-indigo: #6366f1;
    --js-indigo-2: #4f46e5;
    --js-indigo-soft: #eef2ff;
    --js-amber: #fbbf24;
    --js-ink: #15173a;
    --js-muted: #6b7190;
    --js-line: #e6e7f3;
    --js-bg: #f6f6fb;
}

/* ================================================================
   Landing
   ================================================================ */

.js-page {
    color: var(--js-ink);
    background: var(--js-bg);
    margin-inline: calc(50% - 50vw);
    overflow-x: clip;
    padding-block-end: 2rem;
}

.js-wrap {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* ---- hero ---- */

.js-hero {
    position: relative;
    overflow: hidden;
    background: var(--js-navy);
    color: #fff;
    padding-block: 40px 48px;
}

.js-hero::before,
.js-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.js-hero::before {
    width: 900px;
    height: 900px;
    inset-block-start: -420px;
    inset-inline-end: -260px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.55), rgba(99, 102, 241, 0) 62%);
}

.js-hero::after {
    width: 700px;
    height: 700px;
    inset-block-end: -420px;
    inset-inline-start: 10%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.32), rgba(14, 165, 233, 0) 62%);
}

.js-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 36px;
}

.js-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.js-eyebrow {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: #a5b4fc;
}

/* role switcher */
.js-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.js-switch-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 64px;
    padding: 8px 6px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.js-switch-btn[aria-selected="true"] {
    background: #fff;
    color: var(--js-ink);
    box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6);
}

.js-switch-btn:focus-visible {
    outline: 3px solid var(--js-amber);
    outline-offset: 2px;
}

.js-switch-ic {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff;
}

.js-switch-ic img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.js-role-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: js-rise 0.28s ease;
}

.js-role-copy[hidden],
[data-role-panel][hidden] {
    display: none !important;
}

@keyframes js-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.js-title {
    margin: 0;
    font-size: clamp(2.1rem, 9vw, 4rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: pre-line;
    color: #fff;
}

.js-lead {
    margin: 0;
    max-width: 36rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c7cbee;
}

/* quick start */
.js-quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 660px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.js-quick-row {
    display: grid;
    gap: 8px;
}

.js-quick-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin: 0;
    padding: 0 14px;
    border-radius: 14px;
    background: #fff;
    color: #8a8fb0;
}

.js-quick-field input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--js-ink);
}

.js-quick-field input[dir="ltr"] {
    text-align: end;
}

.js-quick-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #818cf8, var(--js-indigo));
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
    cursor: pointer;
}

.js-quick-note {
    padding-inline: 6px;
    font-size: 0.85rem;
    color: #a5abd6;
}

.js-closed {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
}

/* live preview */
.js-preview {
    position: relative;
    min-width: 0;
}

.js-preview-tag {
    position: absolute;
    z-index: 2;
    inset-block-start: -14px;
    inset-inline-start: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--js-amber);
    color: #3b2600;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.js-card {
    border-radius: 26px;
    background: #fff;
    color: var(--js-ink);
    overflow: hidden;
    box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.65);
    animation: js-rise 0.3s ease;
}

.js-shop-cover {
    height: 96px;
    background: linear-gradient(120deg, #c7d2fe, #fbcfe8 60%, #fde68a);
}

.js-shop-body {
    padding: 0 20px 20px;
    margin-block-start: -38px;
}

.js-shop-id {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.js-shop-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 24px -10px rgba(21, 23, 58, 0.5);
}

.js-shop-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.js-shop-id strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.js-shop-id span,
.js-pro-id span {
    font-size: 0.85rem;
    color: var(--js-muted);
}

.js-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.js-chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.js-chip--indigo { background: var(--js-indigo-soft); color: #4338ca; }
.js-chip--green { background: #ecfdf5; color: #047857; }

.js-shop-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.js-shop-products span {
    display: grid;
    place-items: center;
    height: 88px;
    border-radius: 14px;
    background: #eeeef8;
}

.js-shop-products img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.85;
}

.js-card--route,
.js-card--pro {
    padding: 22px;
}

.js-route-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block-end: 14px;
    font-size: 1.1rem;
}

.js-route-map {
    height: 130px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
    margin-block-end: 12px;
}

.js-route-map svg {
    width: 100%;
    height: 100%;
}

.js-stop {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border-radius: 14px;
    background: var(--js-bg);
    margin-block-start: 8px;
}

.js-stop strong { display: block; }
.js-stop small { color: var(--js-muted); }

.js-stop-n {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--js-navy);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

.js-stop-n--2 { background: var(--js-indigo); }

.js-pro-id {
    display: flex;
    gap: 14px;
    align-items: center;
}

.js-pro-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde68a, #fbcfe8);
}

.js-pro-avatar img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.js-pro-id strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
}

.js-pro-note {
    margin: 16px 0;
    padding: 13px;
    border-radius: 14px;
    background: var(--js-bg);
    font-size: 0.9rem;
    color: #3b4063;
}

.js-pro-actions {
    display: flex;
    gap: 10px;
}

.js-pro-actions span {
    flex: 1 1 0;
    display: grid;
    place-items: center;
    height: 46px;
    border-radius: 14px;
    font-weight: 800;
}

.js-pro-contact { background: var(--js-navy); color: #fff; }
.js-pro-sos { background: #fee2e2; color: #b91c1c; }

/* ---- sections ---- */

.js-section {
    padding-block: 44px 8px;
}

.js-h2 {
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    font-weight: 800;
    color: var(--js-ink);
}

.js-gets {
    display: grid;
    gap: 12px;
}

.js-get {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--js-line);
}

.js-get img {
    grid-row: span 2;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.js-get strong { font-size: 1.1rem; font-weight: 800; }
.js-get span { font-size: 0.95rem; line-height: 1.5; color: var(--js-muted); }

.js-journey {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0 0 6px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.js-step {
    flex: 0 0 78%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--js-line);
}

.js-step strong { font-size: 1.2rem; font-weight: 800; margin-block-start: 8px; }
.js-step > span:last-child { font-size: 0.95rem; color: var(--js-muted); }

.js-step-time {
    align-self: flex-start;
    height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--js-indigo-soft);
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 800;
}

.js-step--1 { background: var(--js-navy); border-color: var(--js-navy); color: #fff; }
.js-step--1 > span:last-child { color: #c7cbee; }
.js-step--1 .js-step-time { background: rgba(255, 255, 255, 0.14); color: #fff; }
.js-step--4 { background: linear-gradient(135deg, #fbbf24, #f59e0b); border-color: transparent; color: #3b2600; }
.js-step--4 > span:last-child { color: #3b2600; }
.js-step--4 .js-step-time { background: rgba(255, 255, 255, 0.5); color: #3b2600; }

/* ---- FAQ as a conversation ---- */

.js-faq-head p {
    margin: -8px 0 18px;
    color: var(--js-muted);
}

.js-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 26px;
    background: #eceefa;
}

.js-bubble-q {
    align-self: flex-start;
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 20px 20px 20px 6px;
    background: var(--js-navy);
    color: #fff;
    font-weight: 700;
}

[dir="rtl"] .js-bubble-q { border-radius: 20px 20px 6px 20px; }

.js-bubble-a {
    align-self: flex-end;
    max-width: 92%;
    padding: 13px 16px;
    border-radius: 20px 20px 6px 20px;
    background: #fff;
    border: 1px solid var(--js-line);
    line-height: 1.55;
    color: #3b4063;
}

[dir="rtl"] .js-bubble-a { border-radius: 20px 20px 20px 6px; }

.js-ask {
    display: flex;
    gap: 8px;
    margin-block-start: 6px;
}

.js-ask-field {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 0 14px;
    border-radius: 14px;
    background: #fff;
}

.js-ask-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}

.js-ask-send {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--js-navy);
    color: #fff;
    cursor: pointer;
}

/* ---- phone: sticky start bar ---- */

.js-sticky {
    position: sticky;
    inset-block-end: 70px; /* above the storefront's bottom nav */
    z-index: 20;
    margin: 20px 12px 0;
}

.js-sticky-go {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 6px 16px 6px 8px;
    border-radius: 18px;
    background: var(--js-navy);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 16px 30px -14px rgba(21, 23, 58, 0.8);
}

.js-sticky-go:hover { color: #fff; }
.js-sticky-go span { flex: 1 1 auto; }

.js-sticky-go img {
    width: 44px;
    height: 44px;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

/* ---- tablet / desktop ---- */

@media (min-width: 768px) {
    /* minmax(0,…): an input's intrinsic width otherwise pushes the button out of the box */
    .js-quick-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    .js-gets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .js-get { grid-template-columns: 1fr; row-gap: 10px; padding: 26px; }
    .js-get img { grid-row: auto; width: 60px; height: 60px; }
    .js-step { flex: 1 1 0; }
    .js-journey { overflow: visible; }
    .js-sticky { display: none; }
}

@media (min-width: 992px) {
    .js-wrap { padding-inline: 40px; }
    .js-hero { padding-block: 64px 72px; }
    .js-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: center; }
    .js-switch { display: flex; gap: 10px; padding: 0; background: none; }
    .js-switch-btn { flex-direction: row; gap: 12px; min-height: 60px; padding: 0 18px 0 8px; font-size: 1rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); }
    .js-switch-btn[aria-selected="true"] { border-color: #fff; }
    .js-shop-cover { height: 120px; }
    .js-shop-products span { height: 110px; }
    .js-faq { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
    .js-section { padding-block: 64px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .js-role-copy,
    .js-card { animation: none; }
}

/* ================================================================
   Role form: progress, live preview, chips, one question per screen
   ================================================================ */

.jf-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-block-end: 18px;
}

.jf-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.jf-progress-row span:last-child { color: var(--js-muted); }

.jf-bar { height: 8px; border-radius: 8px; background: #e2e4f3; overflow: hidden; }
.jf-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #818cf8, var(--js-indigo-2)); transition: width 0.25s ease; }

.jf-saved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #047857;
}

.jf-saved[hidden] { display: none; }

/* the chips that write into "what do you sell" */
.jf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 4px;
}

.jf-chip {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid #e2e4f3;
    background: #fff;
    color: var(--js-ink);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.jf-chip[aria-pressed="true"] {
    background: var(--js-navy);
    border-color: var(--js-navy);
    color: #fff;
}

/* the showcase column becomes the live preview */
.da-aside.jf-live {
    justify-content: flex-start;
    background: var(--js-navy);
    padding: 2.25rem;
    text-align: start;
    align-items: stretch;
}

.jf-live .js-preview-tag { position: static; align-self: flex-start; margin-block-end: 14px; }
.jf-live .js-card { animation: none; }

.jf-live-note {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-block-start: 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #c7cbee;
    font-size: 0.92rem;
}

.jf-live-note img { width: 40px; height: 40px; }

/* phone: the preview peeks from the bottom of the form */
.jf-peek {
    margin-block-start: 18px;
    padding: 12px;
    border-radius: 22px;
    background: var(--js-navy);
}

.jf-peek-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block-end: 10px;
}

.jf-peek .js-preview-tag { position: static; }
.jf-peek .js-card { box-shadow: none; }
.jf-peek .js-shop-products,
.jf-peek .js-chips { display: none; }

@media (min-width: 992px) {
    .jf-peek { display: none; }
}

/* one question per screen (phones): fields of the current step shown one at a time */
@media (max-width: 575.98px) {
    .jf-oneq .da-step:not([hidden]) .da-field.jf-q-off,
    .jf-oneq .da-step:not([hidden]) .da-row-2.jf-q-off { display: none; }
    .jf-oneq .da-row-2 { grid-template-columns: 1fr; }
    .jf-oneq .da-step:not([hidden]) .da-field.jf-q-on > label:not(.form-check-label) { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin-block-end: 12px; }
    .jf-oneq .da-step:not([hidden]) .da-field.jf-q-on .form-control { min-height: 60px; font-size: 1.15rem; }
}

/* ================================================================
   Thanks: the application's status
   ================================================================ */

.jt-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 20px 30px;
    border-radius: 0 0 32px 32px;
    background: var(--js-navy);
    color: #fff;
    text-align: center;
}

.jt-hero img { width: min(64%, 240px); height: auto; margin: 0 auto 6px; display: block; }
.jt-hero h1 { margin: 8px 0 6px; font-size: 1.85rem; font-weight: 800; color: #fff; }
.jt-hero p { margin: 0; color: #c7cbee; }

.jt-card {
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--js-line);
}

.jt-card h2 { margin: 0 0 16px; font-size: 1.2rem; font-weight: 800; }

.jt-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jt-track::before {
    content: "";
    position: absolute;
    inset-block: 18px;
    inset-inline-start: 17px;
    width: 3px;
    background: linear-gradient(180deg, var(--js-indigo-2) 0%, var(--js-indigo-2) 45%, #e2e4f3 45%);
}

.jt-track li { position: relative; display: flex; gap: 14px; align-items: center; }
.jt-track strong { display: block; }
.jt-track small { color: var(--js-muted); }

.jt-dot {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e4f3;
    box-sizing: border-box;
}

.jt-dot--done { background: var(--js-indigo-2); border-color: var(--js-indigo-2); color: #fff; }
.jt-dot--now { border-color: var(--js-indigo-2); box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.14); }
.jt-dot--now::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--js-indigo-2); }
.jt-later strong { color: var(--js-muted); }

.jt-todo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--js-bg);
    font-weight: 600;
}

.jt-todo img { width: 40px; height: 40px; }

.jf-oneq-only { display: none !important; }
@media (max-width: 575.98px) {
    .jf-oneq .jf-oneq-only { display: inline-flex !important; }
}

/* ---- the owner's role art (2026-09-29): full round badges and a rounded-square logo.
   They carry their own disc / tile, so they fill their slot instead of sitting in a white frame,
   and the bottom fade used for character art must not clip the badge's edge. ---- */
.js-switch-ic { background: transparent; width: 44px; height: 44px; }
.js-switch-ic img { width: 44px; height: 44px; }
.js-pro-avatar { background: none; }
.js-pro-avatar img { width: 80px; height: 80px; }
.js-shop-logo { padding: 0; background: none; box-shadow: 0 10px 24px -10px rgba(21, 23, 58, 0.5); overflow: hidden; }
.js-shop-logo img { width: 100%; height: 100%; }
.js-sticky-go img { padding: 0; background: none; border-radius: 50%; }
.da-auth-hero--role,
.da-aside-art--role { -webkit-mask-image: none; mask-image: none; border-radius: 50%; }
.da-auth-hero--role { width: min(40%, 170px); }
.jt-hero img { -webkit-mask-image: none; mask-image: none; }
