/* sellbright — onboarding wizard */

.ob { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(90% 70% at 50% -10%, #fbfcff, var(--bg) 55%); }

/* ---------- top bar + stepper ---------- */
.ob-top { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px clamp(20px, 4vw, 44px); }
.ob-top .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; color: inherit; }
.ob-top .brand .dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.ob-top .skip { font-size: 13.5px; font-weight: 600; color: var(--ink-faint); text-decoration: none; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.ob-top .skip:hover { color: var(--ink-soft); background: var(--bg-soft); }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .st { display: flex; align-items: center; gap: 8px; }
.stepper .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-faint);
  background: #fff; border: 1.5px solid var(--line-2); transition: all .35s var(--ease-out); }
.stepper .label { font-size: 13px; font-weight: 600; color: var(--ink-faint); transition: color .35s; white-space: nowrap; }
.stepper .bar { width: 26px; height: 2px; border-radius: 2px; background: var(--line-2); transition: background .35s; }
.stepper .st.active .dot { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(37,99,235,0.6); }
.stepper .st.active .label { color: var(--ink); }
.stepper .st.done .dot { color: var(--primary); border-color: rgba(37,99,235,0.4); background: rgba(37,99,235,0.06); }
.stepper .st.done .label { color: var(--ink-soft); }
@media (max-width: 720px) { .stepper .label { display: none; } .stepper .bar { width: 16px; } }

/* ---------- stage ---------- */
.ob-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px clamp(20px,4vw,44px) 40px; }
.ob-card { width: min(720px, 100%); }

.step { display: none; }
.step.show { display: block; animation: obStepIn .5s var(--ease-out) both; }
@keyframes obStepIn { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.step .eb { margin-bottom: 14px; }
.step h1 { margin: 0 0 10px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-size: clamp(26px, 3.4vw, 40px); }
.step .sub { margin: 0 0 30px; font-size: clamp(15px,1.6vw,17px); color: var(--ink-soft); line-height: 1.65; }

/* ---------- channel chips (step 1) ---------- */
.chips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 520px) { .chips-grid { grid-template-columns: 1fr; } }
.chip-card { display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 16px; transition: all .2s var(--ease-out); }
.chip-card > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chip-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(2,6,23,0.3); }
.chip-card.sel { border-color: var(--primary); background: rgba(37,99,235,0.04); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.chip-card .ico { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); transition: all .2s; }
.chip-card.sel .ico { background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.12)); border-color: rgba(37,99,235,0.3); color: var(--primary); }
.chip-card .ico svg { width: 20px; height: 20px; }
.chip-card .t { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chip-card .m { font-size: 12px; color: var(--ink-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chip-card .tick { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--primary); color: #fff; opacity: 0; transform: scale(0.6); transition: all .2s var(--ease-out); }
.chip-card .tick svg { width: 12px; height: 12px; }
.chip-card.sel .tick { opacity: 1; transform: none; }

/* ---------- sample picker (step 2) ---------- */
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .sample-grid { grid-template-columns: 1fr; } }
.sample-card { position: relative; display: flex; flex-direction: column; cursor: pointer; text-align: left;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; padding: 0; overflow: hidden;
  transition: all .2s var(--ease-out); }
.sample-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(2,6,23,0.35); }
.sample-card.sel { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.sample-card .sc-img { display: block; aspect-ratio: 1/1; background: var(--bg-soft); overflow: hidden; }
.sample-card .sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sample-card .sc-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.sample-card .sc-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-faint); text-transform: uppercase; }
.sample-card .sc-t { font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.sample-card .tick { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; opacity: 0; transform: scale(0.6); transition: all .2s var(--ease-out); box-shadow: 0 4px 12px -2px rgba(37,99,235,0.5); }
.sample-card .tick svg { width: 13px; height: 13px; }
.sample-card.sel .tick { opacity: 1; transform: none; }

/* ---------- product input (step 2) ---------- */
.field-lg { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line-2);
  border-radius: 16px; padding: 6px 6px 6px 20px; box-shadow: 0 1px 2px rgba(2,6,23,0.04); transition: all .25s; }
.field-lg:focus-within { border-color: rgba(37,99,235,0.5); box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }
.field-lg .pre { font-family: var(--mono); color: var(--ink-ghost); flex: none; font-size: 14px; }
.field-lg input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0;
  font-family: var(--font); font-size: clamp(18px,2.2vw,22px); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; padding: 12px 0; }
.field-lg input::placeholder { color: var(--ink-faint); font-weight: 500; }
.label-row { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 22px 0 10px; }
.cat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; transition: all .18s; }
.cat:hover { border-color: var(--line-2); }
.cat.sel { color: var(--primary); border-color: rgba(37,99,235,0.4); background: rgba(37,99,235,0.06); }
.examples { margin-top: 18px; margin-bottom: 8px; font-size: 13px; color: var(--ink-faint); }
.examples b { color: var(--ink-soft); font-weight: 600; cursor: pointer; border-bottom: 1px dashed var(--ink-ghost); }
.examples b:hover { color: var(--primary); border-color: var(--primary); }

/* required / optional field labels */
.f-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin: 22px 0 9px; }
.f-label:first-child { margin-top: 0; }
.f-label .req { font-size: 11px; font-weight: 700; color: #fff; background: var(--primary); padding: 2px 7px; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap; }
.f-label .opt { font-size: 11px; font-weight: 600; color: var(--ink-faint); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }

/* upload dropzones */
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
@media (max-width: 580px) { .upload-row { grid-template-columns: 1fr; } }
.dropzone { position: relative; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg-soft);
  min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; cursor: pointer; padding: 18px; transition: border-color .2s, background .2s; overflow: hidden; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: rgba(37,99,235,0.04); }
.dropzone input[type=file] { display: none; }
.dropzone .dz-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.dropzone .dz-ic svg { width: 19px; height: 19px; }
.dropzone .dz-t { font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.dropzone .dz-m { font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; }
.dropzone.has { border-style: solid; border-color: rgba(37,99,235,0.3); background: #fff; padding: 0; }
.dropzone .dz-prompt { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dropzone.has .dz-prompt { display: none; }
.dz-preview { display: none; position: absolute; inset: 0; }
.dropzone.has .dz-preview { display: block; }
.dz-preview img { width: 100%; height: 100%; object-fit: cover; }
.dz-preview .file-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2); background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  border: 1px solid var(--line); padding: 4px 8px; border-radius: 7px; max-width: calc(100% - 56px); }
.dz-preview .file-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-remove { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.92); color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.dz-remove:hover { background: #fff; color: var(--ink); }
.dz-remove svg { width: 13px; height: 13px; }

/* full-width single-column uploads (image + html editor stacked) */
.field-stack { display: flex; flex-direction: column; }
.dropzone.wide { min-height: 116px; }

/* ---------- processing (step 3) ---------- */
.proc { text-align: center; padding: 10px 0; }
.proc .core { position: relative; width: 120px; height: 120px; margin: 0 auto 8px; display: grid; place-items: center; }
.proc .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(37,99,235,0.18); }
.proc .ring.r2 { inset: -16px; border-color: rgba(124,58,237,0.12); }
.proc .pulse { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(37,99,235,0.4); animation: pulse 1.6s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(0.7); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.proc .orb { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, var(--primary) 55%, var(--accent));
  box-shadow: 0 8px 30px -6px rgba(37,99,235,0.55); animation: breathe 1.4s var(--ease-in-out) infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.proc .orb svg { width: 24px; height: 24px; color: #fff; }
.proc h2 { margin: 14px 0 4px; font-weight: 800; font-size: clamp(20px,2.4vw,26px); letter-spacing: -0.02em; }
.proc .target { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); margin-bottom: 24px; }
.proc-log { width: min(420px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.log-row { display: flex; align-items: center; gap: 11px; font-family: var(--mono); font-size: 13.5px; color: var(--ink-soft);
  opacity: 0; transform: translateY(6px); transition: all .4s var(--ease-out); }
.log-row.on { opacity: 1; transform: none; }
.log-row .sp { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(37,99,235,0.25); border-top-color: var(--primary); animation: aspin .7s linear infinite; flex: none; }
.log-row.done .sp { animation: none; border: 0; background: var(--primary); position: relative; }
.log-row.done .sp::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes aspin { to { transform: rotate(360deg); } }
.log-row.done { color: var(--ink-faint); }

/* ---------- result (step 4) ---------- */
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rc { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 22px; }
.rc.before { background: var(--bg-soft); }
.rc.after { border-color: rgba(37,99,235,0.25); box-shadow: 0 0 0 1px rgba(37,99,235,0.12), 0 30px 60px -40px rgba(37,99,235,0.5); }
.rc .lab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.rc .shot { aspect-ratio: 1/1; border-radius: 11px; border: 1px solid var(--line); margin-bottom: 14px; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #eef1f6 0 9px, #f5f6f9 9px 18px); overflow: hidden; }
.rc.after .shot { background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08)); border-color: rgba(37,99,235,0.2); }
.rc .shot .pl { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); background: rgba(255,255,255,0.7); padding: 4px 9px; border-radius: 6px; }
.rc .nm-b { font-weight: 700; font-size: 19px; color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--ink-ghost); }
.rc .nm-a { display: flex; flex-direction: column; gap: 3px; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; line-height: 1.2; }
.rc .keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rc .keys span { font-size: 11.5px; font-weight: 600; color: var(--primary-ink); background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.16); padding: 4px 9px; border-radius: 999px; }
.rc .res-model { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: var(--accent); background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.18); padding: 5px 11px; border-radius: 999px; }
.res-stats { display: flex; gap: 12px; margin-top: 16px; }
.res-stats .st { flex: 1; border: 1px solid var(--line); border-radius: 13px; padding: 14px; text-align: center; background: #fff; }
.res-stats .st .v { font-family: var(--mono); font-weight: 800; font-size: clamp(20px,2.6vw,28px); }
.res-stats .st.seo .v { color: var(--primary); } .res-stats .st.ctr .v { color: #16a34a; } .res-stats .st.key .v { color: var(--accent); }
.res-stats .st .k { font-size: 11.5px; color: var(--ink-faint); font-weight: 600; margin-top: 3px; }
@media (max-width: 620px) { .result-grid { grid-template-columns: 1fr; } }

/* ---------- nav footer ---------- */
.ob-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 32px; }
.ob-nav .left { display: flex; }
.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0; font-family: var(--font);
  font-weight: 700; font-size: 15px; border-radius: 12px; padding: 13px 22px; transition: transform .15s var(--ease-out), filter .2s, background .2s, box-shadow .2s; text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-ghost { background: transparent; color: var(--ink-soft); padding-left: 6px; }
.btn-ghost:hover { color: var(--ink); }
.btn-prim { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 10px 26px -10px rgba(37,99,235,0.6); }
.btn-prim:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-prim[disabled] { opacity: 0.4; pointer-events: none; box-shadow: none; }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { transform: translateY(-1px); background: #0b1220; }
.btn-soft { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-soft:hover { background: var(--bg-soft); }
.ob-nav .right { display: flex; gap: 10px; }

.confetti-line { text-align: center; margin-bottom: 4px; }
.confetti-line .pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #16a34a;
  background: rgba(22,163,74,0.1); border: 1px solid rgba(22,163,74,0.25); padding: 7px 14px; border-radius: 999px; }
