*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue: #3B5BDB;
    --blue-light: #EEF1FF;
    --ink: #0F0F12;
    --ink-soft: #5A5A72;
    --ink-faint: #9898AA;
    --border: #EBEBEF;
    --border-mid: #D8D8E0;
    --bg: #FFFFFF;
    --bg-soft: #F2F3F7;
    --green: #16a34a;
    --green-bg: rgba(34,197,94,0.1);
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background: var(--bg-soft);
    color: var(--ink);
    min-height: 100vh;
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    height: 60px;
    background: rgba(242,243,247,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span { color: var(--blue); }

.nav-login {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}
.nav-login:hover { text-decoration: underline; }

/* PAGE LAYOUT */
.page {
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: calc(100vh - 60px);
}

.form-side {
    padding: 48px 6% 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* INFO SIDE */
.info-side {
    background: var(--ink);
    color: #fff;
    padding: 56px 48px;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.info-inner {
    max-width: 280px;
    margin: 0 auto;
    padding-top: 40px;
}

.info-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
}

.info-side h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 36px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 40px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.75);
}

.info-list li strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.info-list li span {
    font-size: 12.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.55;
}

.info-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 28px;
}

.info-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-stat span {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.info-stat small {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}

/* CARD */
.join-card {
    width: 100%;
    max-width: 560px;
    background: var(--bg);
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.06),
        0 16px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* CARD HEADER */
.card-header {
    padding: 36px 36px 28px;
    border-bottom: 1px solid var(--border);
}

.form-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
    50% { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}

h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.15;
}

.form-sub {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* STEPPER */
.stepper {
    padding: 24px 36px 0;
    position: relative;
}

.stepper-track {
    position: absolute;
    top: 31px;
    left: 36px;
    right: 36px;
    height: 2px;
    background: var(--border-mid);
    border-radius: 2px;
    z-index: 0;
}

.stepper-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 2px;
    transition: width 0.35s ease;
    width: 0%;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding-bottom: 24px;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-mid);
    transition: all 0.25s ease;
}

.stepper-step.active .step-dot {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(59,91,219,0.15);
}

.stepper-step.completed .step-dot {
    background: var(--blue);
    border-color: var(--blue);
}

.step-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--ink-faint);
    transition: color 0.25s;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-faint);
    transition: color 0.25s;
}

.stepper-step.active .step-num,
.stepper-step.active .step-label { color: var(--ink); }

.stepper-step.completed .step-num,
.stepper-step.completed .step-label { color: var(--blue); }

/* FORM BODY */
form { padding: 0 36px; }

.form-step { padding-top: 8px; }

/* FIELDS */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.field-row .field { margin-bottom: 0; }

.field-row.three-col { grid-template-columns: 1fr 1fr 1fr; }

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.1px;
}

.label-hint {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-faint);
}

.req { color: #e53e3e; font-weight: 700; }
.optional { font-weight: 400; color: var(--ink-faint); }

.field-hint {
    font-size: 12px;
    color: var(--ink-faint);
    line-height: 1.5;
    margin-top: -2px;
}

input, select, textarea {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--border-mid);
    border-radius: 10px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,91,219,0.1);
}

input::placeholder, textarea::placeholder { color: var(--ink-faint); }

textarea { resize: vertical; }

/* PREFIX INPUT */
.input-prefix-wrap {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border-mid);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.input-prefix-wrap:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,91,219,0.1);
}

.input-prefix {
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-faint);
    background: var(--bg-soft);
    border-right: 1.5px solid var(--border-mid);
    line-height: 44px;
    flex-shrink: 0;
}

.input-prefix-wrap input {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding-left: 12px;
}

.input-prefix-wrap input:focus { box-shadow: none; }

/* STEP DIVIDER */
.step-divider {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 8px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* BARTER TOGGLE */
.barter-toggle { margin-bottom: 20px; }

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] { display: none; }

.toggle-slider {
    position: relative;
    width: 38px;
    height: 22px;
    background: var(--border-mid);
    border-radius: 100px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle-label input:checked ~ .toggle-slider { background: var(--blue); }
.toggle-label input:checked ~ .toggle-slider::after { transform: translateX(16px); }

/* NICHE GRID */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}

.niche-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--border-mid);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--bg);
    user-select: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.niche-opt input[type="radio"] { display: none; }

.niche-opt:hover {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--ink);
}

.niche-opt.selected {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue);
}

/* PILL OPTIONS */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.pill-opt {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1.5px solid var(--border-mid);
    border-radius: 100px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--bg);
    user-select: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pill-opt input[type="radio"] { display: none; }

.pill-opt:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

.pill-opt.selected {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

/* ERROR */
.form-error {
    background: #fff0f0;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #b91c1c;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* CARD FOOTER */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px 28px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.draft-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.draft-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s ease infinite;
    flex-shrink: 0;
}

.draft-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-faint);
}

.footer-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.continue-btn {
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -0.2px;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
}

.continue-btn:hover { background: var(--blue); transform: translateY(-1px); }
.continue-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.back-btn {
    background: none;
    border: 1.5px solid var(--border-mid);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.back-btn:hover { border-color: var(--ink); color: var(--ink); }

/* SUCCESS */
.success-state {
    text-align: center;
    padding: 48px 36px 40px;
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-bg);
    color: var(--green);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-state h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.success-state p  { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 24px; }

.back-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .page { grid-template-columns: 1fr; }
    .info-side { display: none; }
    .form-side { padding: 40px 5% 60px; }
}

@media (max-width: 600px) {
    .form-side { padding: 20px 16px 60px; }
    .card-header { padding: 28px 24px 20px; }
    .stepper { padding: 20px 24px 0; }
    .stepper-track { left: 24px; right: 24px; }
    form { padding: 0 24px; }
    .card-footer { padding: 16px 24px 24px; }
    .success-state { padding: 36px 24px 32px; }
    h1 { font-size: 26px; }
    .field-row { grid-template-columns: 1fr; }
    .field-row.three-col { grid-template-columns: 1fr; }
    .step-label { display: none; }
}
