/* =================================================================
   Seller onboarding wizard — pre-signup pages.
   Maps the Claude Design handoff bundle's `styles.css` onto our
   existing marketing tokens so the HTML class names from the
   handoff translate 1:1 to ERB. Also covers Step-3 (valuation
   reveal) layout, which the bundle didn't include.
   ================================================================= */

* { box-sizing: border-box; }

.onboarding-body {
  margin: 0;
  background: var(--color-gray-50);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  color: var(--base-text);
}

/* ---------- HORIZONTAL STEPPER (new funnel) ---------- */
.onb-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 18px;
  gap: 0;
}
.onb-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.onb-stepper__node {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gray-300);
  background: #fff;
  color: var(--base-text-tertiary);
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, color .2s;
}
.onb-stepper__item.is-done .onb-stepper__node {
  background: var(--color-brand-green);
  border-color: var(--color-brand-green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 94, 58, 0.12);
}
.onb-stepper__item.is-active .onb-stepper__node {
  background: var(--color-brand-green);
  border-color: var(--color-brand-green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 94, 58, 0.12);
}
.onb-stepper__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--base-text-tertiary);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.onb-stepper__item.is-active .onb-stepper__label {
  color: var(--color-brand-green);
}
.onb-stepper__connector {
  flex: 1;
  height: 1.5px;
  background: var(--color-gray-300);
  margin: 0 4px;
  margin-bottom: 18px;
  min-width: 24px;
}

/* New centered funnel shell (replaces sidebar shell for redesigned steps) */
.onb-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.onb-card {
  background: #fff;
  border: 1px solid var(--base-border-tertiary);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(10,31,20,.04), 0 1px 3px rgba(10,31,20,.04);
  overflow: hidden;
}
.onb-card .onb-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--base-text-tertiary);
  margin-bottom: 8px;
}
.onb-card .onb-title {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--color-gray-950); margin: 0 0 6px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.onb-card .onb-sub {
  font-size: 14px; color: var(--base-text-secondary); margin: 0;
}
.onb-head { padding: 36px 44px 8px; }
.onb-body { padding: 16px 44px 8px; }
.onb-foot {
  padding: 16px 44px 28px;
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  border-top: 1px solid var(--base-border-tertiary);
  margin-top: 8px;
}
.onb-foot .onb-foot__left { margin-right: auto; }

/* Step icon badge */
.onb-icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: #e8f0ea;
  color: var(--color-brand-green);
  display: grid; place-items: center;
  margin-bottom: 20px;
}

/* Helper / callout box */
.onb-helper {
  background: #e8f0ea;
  border-left: 3px solid var(--color-brand-green);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-gray-800);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ---------- CONNECT PAGE (step 1 — location picker) ---------- */

/* Error banner */
.onb-alert-error {
  display: flex; align-items: center; gap: 8px;
  background: #fef2f2; border: 1px solid #fca5a5;
  border-radius: 12px; padding: 10px 14px;
  font-size: 13px; color: #b91c1c;
  margin-bottom: 16px;
}

/* Exact location card */
.connect-exact-card {
  border: 1.5px solid var(--base-border-secondary);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.connect-exact-card.is-active {
  border-color: var(--color-brand-green, #14422a);
  box-shadow: 0 0 0 1px var(--color-brand-green, #14422a);
}
.connect-exact-card__header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.connect-exact-card__title {
  font-size: 15px; font-weight: 600;
  color: var(--base-text-primary);
  margin-bottom: 2px;
}
.connect-exact-card__desc {
  font-size: 13px; color: var(--base-text-tertiary);
}

/* Circular icon badge for exact location */
.connect-location-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #e8f0ea;
  color: var(--color-brand-green);
  display: grid; place-items: center;
  flex: 0 0 44px;
}

/* Privacy strip — below exact card */
.connect-privacy-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--color-gray-50);
  border: 1px solid var(--base-border-tertiary);
  border-radius: 14px;
}
.connect-privacy-strip__icon {
  color: var(--base-text-tertiary);
  flex: 0 0 auto;
}
.connect-privacy-strip__text {
  flex: 1; min-width: 0;
}
.connect-privacy-strip__label {
  font-size: 14px; font-weight: 600;
  color: var(--base-text-primary);
  display: block;
}
.connect-privacy-strip__desc {
  font-size: 13px; color: var(--base-text-tertiary);
  display: block;
}
@media (max-width: 560px) {
  .connect-privacy-strip { flex-wrap: wrap; }
  .connect-privacy-strip .onb-btn { width: 100%; text-align: center; }
}

/* "← Use exact location instead" link in prox view */
.connect-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--color-brand-green);
  background: none; border: none; padding: 0;
  cursor: pointer; margin-bottom: 14px;
}
.connect-back-link:hover { text-decoration: underline; }

/* Badge used in prox view heading */
.connect-panel__badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  background: #d1fae5; color: #065f46;
  border-radius: 20px; padding: 2px 8px;
  vertical-align: middle;
}

/* Proximity area card */
.connect-prox-card {
  border: 1.5px solid var(--base-border-secondary);
  border-radius: 16px;
  padding: 20px;
}
.connect-prox-card.is-active {
  border-color: var(--color-brand-green, #14422a);
  box-shadow: 0 0 0 1px var(--color-brand-green, #14422a);
}

/* Radius toggle row */
.connect-radius {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; flex-wrap: wrap;
}
.connect-radius__label {
  font-size: 13px; color: var(--base-text-secondary);
  white-space: nowrap; margin-right: 2px;
}
.connect-radius__btn {
  border: 1px solid var(--base-border-secondary);
  background: #fff;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.connect-radius__btn.is-selected {
  border-color: var(--color-brand-green, #14422a);
  background: #eef5ef;
  color: var(--color-brand-green, #14422a);
}
.connect-radius__btn:hover:not(.is-selected) {
  border-color: var(--base-border-primary);
}

/* Privacy note at bottom of prox card */
.connect-prox-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--base-border-tertiary);
  font-size: 13px; color: var(--base-text-secondary);
  line-height: 1.5;
}
.connect-prox-note svg {
  color: var(--color-brand-green);
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Muted/disabled Continue button */
.onb-btn--muted {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- WIZARD TOP NAV ---------- */
.onboarding-nav {
  position: sticky; top: 0; z-index: 30;
  height: 64px; background: #fff;
  border-bottom: 1px solid var(--base-border-tertiary);
  display: flex; align-items: center; padding: 0 24px;
}
.onboarding-nav__inner {
  max-width: 1440px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}
.onboarding-nav__logo { display: flex; align-items: center; gap: 8px; height: 28px; text-decoration: none; }
.onboarding-nav__logo img { height: 28px; }
.onboarding-nav__center {
  justify-self: center;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.onboarding-nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 1px;
}
.onboarding-nav__exit {
  font-size: 14px;
  color: var(--base-text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.onboarding-nav__exit:hover { color: var(--color-gray-950); }
.onboarding-nav__exit--center {
  font-size: 14px;
  font-weight: 500;
  color: var(--base-text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.onboarding-nav__exit--center:hover { color: var(--color-gray-950); }

/* Step-dots indicator (used on step 3) */
.step-dots { display: inline-flex; gap: 6px; }
.step-dots .dot { display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: var(--color-gray-300); }
.step-dots .dot.is-on { background: var(--color-gray-950); }

.onboarding-main { width: 100%; }

/* ---------- WIZARD SHELL (sidebar + main) ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 32px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 40px) 64px;
  align-items: start;
}
.shell .main-col {
  min-width: 0;
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 56px; }
  .shell .progress-col { order: 2; }
}

/* Narrow centered shell — used on the final confirmation step where
   no progress sidebar is shown and the card should sit comfortably
   at reading width rather than spanning the viewport. */
.shell--narrow {
  display: block;
  max-width: 560px;
  padding: 32px 24px 64px;
}

/* ---------- PROGRESS RAIL ---------- */
.rail {
  position: sticky; top: 88px;
  background: #fff;
  border: 1px solid var(--base-border-tertiary);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow:
    0 1px 0 rgba(10, 31, 20, 0.04),
    0 4px 24px rgba(10, 31, 20, 0.06);
}
.rail h6 {
  margin: 0 0 4px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--base-text-tertiary);
}
.rail-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--base-text-tertiary);
  margin-bottom: 4px;
}
.rail-title {
  font-size: 20px; font-weight: 700; color: var(--color-gray-950);
  margin: 0 0 16px; letter-spacing: -0.02em;
}
.rail-progress { height: 4px; background: var(--color-gray-100); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.rail-progress > span { display: block; height: 100%; background: var(--color-brand-green); transition: width .4s cubic-bezier(.4,0,.2,1); }
.rail-divider { border: 0; border-top: 1px solid var(--base-border-tertiary); margin: 18px 0; }

.rail-step {
  display: flex; gap: 12px; padding: 12px 10px;
  border-radius: 12px; cursor: default;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.rail-step.is-clickable { cursor: pointer; }
.rail-step.is-clickable:hover { background: var(--color-gray-50); border-color: var(--base-border-tertiary); }
.rail-step.is-clickable:focus-visible { outline: 2px solid var(--color-brand-green); outline-offset: 2px; }
.rail-step.current {
  background: var(--color-gray-950);
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.rail-step.current .step-title { color: #fff; }
.rail-step.current .step-meta  { color: rgba(255,255,255,.65); }
.rail-step.done .step-bullet { background: var(--color-brand-green); color: #fff; border-color: var(--color-brand-green); }
.rail-step.current .step-bullet { background: #fff; color: var(--color-gray-950); border-color: #fff; }

.step-bullet {
  flex: 0 0 24px; height: 24px; border-radius: 999px;
  border: 1.5px solid var(--color-gray-300);
  background: #fff; color: var(--base-text-tertiary);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  margin-top: 2px;
}
.step-bullet svg { width: 14px; height: 14px; }
.step-body { flex: 1; min-width: 0; }
.step-title { font-size: 14px; font-weight: 600; color: var(--color-gray-800); margin: 0 0 2px; }
.step-meta { font-size: 12px; color: var(--base-text-tertiary); }

.rail-summary-block { margin-top: 6px; }
.rail-summary-block + .rail-summary-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--base-border-tertiary); }
.rail-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rail-summary-head h6 { margin: 0; }
.rail-summary { font-size: 12px; color: var(--base-text-tertiary); }
.rail-summary .row { display: flex; justify-content: space-between; padding: 4px 0; gap: 12px; }
.rail-summary .row b { color: var(--color-gray-900); font-weight: 600; text-align: right; }
.rail-summary .row.estimate { padding-top: 10px; border-top: 1px solid var(--base-border-tertiary); margin-top: 6px; }
.rail-summary .row.estimate b { color: var(--color-brand-green); }
.rail-edit {
  font-size: 12px; color: var(--base-text-secondary);
  text-decoration: underline; text-underline-offset: 3px;
}
.rail-edit:hover { color: var(--color-gray-950); }

/* ---------- MAIN CONTENT ---------- */
.main-col { min-width: 0; }

/* ---------- CARD ---------- */
/* Main wizard shell — must clip children so corners stay round (form = .onboarding-card on seller steps). */
.onboarding-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--base-border-tertiary);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(10, 31, 20, 0.05),
    0 8px 32px rgba(10, 31, 20, 0.07);
}
.onboarding-card .card-head {
  padding: 28px 32px 20px;
  background: #fff;
  border-bottom: 1px solid var(--base-border-tertiary);
}
.onboarding-card .card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--base-text-tertiary);
  margin-bottom: 10px;
}
.card-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-brand-green, #14422a);
  margin-bottom: 10px;
}
.card-title { font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; margin: 0 0 8px; color: var(--color-gray-950); }
.card-sub { font-size: 15px; line-height: 1.55; color: var(--base-text-secondary); margin: 0; }
.onboarding-card .card-body { padding: 24px 32px 28px; }
.onboarding-card .card-foot {
  padding: 18px 32px 26px;
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--base-border-tertiary);
  margin-top: 0;
  background: var(--color-gray-50);
}
.onboarding-card .card-foot .left {
  margin-right: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.onb-link-quiet {
  font-size: 13px;
  font-weight: 500;
  color: var(--base-text-tertiary);
  text-decoration: none;
  padding: 6px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.onb-link-quiet:hover { color: var(--color-gray-950); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .onboarding-card .card-foot:not(.card-foot--wizard) {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .onboarding-card .card-foot:not(.card-foot--wizard) .left {
    margin-right: 0;
    width: 100%;
    justify-content: space-between;
  }
  .onboarding-card .card-foot:not(.card-foot--wizard) .onb-btn--primary { width: 100%; }
}

/* Seller wizard footer — matches reference: Back | Save for later | Continue → */
.onboarding-card .card-foot.card-foot--wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 20px;
  background: #fff;
}
.card-foot--wizard .card-foot__start { justify-self: start; }
.card-foot--wizard .card-foot__mid { justify-self: center; }
.card-foot--wizard .card-foot__end { justify-self: end; }
@media (max-width: 560px) {
  .onboarding-card .card-foot.card-foot--wizard {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .card-foot--wizard .card-foot__start { order: 2; justify-self: start; }
  .card-foot--wizard .card-foot__mid { order: 3; justify-self: stretch; }
  .card-foot--wizard .card-foot__mid .onb-btn--outline { width: 100%; }
  .card-foot--wizard .card-foot__end { order: 1; justify-self: stretch; }
  .card-foot--wizard .card-foot__end .onb-btn--primary { width: 100%; }
}

/* Grouped fields — soft panel inside the card */
.onb-form-panel {
  background: var(--color-gray-50);
  border: 1px solid var(--base-border-tertiary);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.onb-form-panel .field { margin-bottom: 0; }
.onb-form-panel:last-child { margin-bottom: 0; }

/* Grid gap handles spacing — cancel the field's own bottom margin. */
.onboarding-card .onb-basics-grid .field { margin-bottom: 0; }
.onboarding-card .onb-basics-grid .field-error { margin-top: 6px; }

/* ---------- FORM ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--color-gray-800); }
.field > label.onb-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.onb-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--base-text-tertiary);
  cursor: pointer;
  line-height: 0;
}
.onb-info:hover, .onb-info:focus-visible { color: var(--color-gray-800); outline: none; }
.onb-info__icon { width: 14px; height: 14px; }
.onb-info__bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gray-950);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 10px;
  border-radius: 6px;
  width: max-content;
  max-width: 260px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .1s ease;
  z-index: 20;
}
.onb-info__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--color-gray-950);
}
.onb-info:hover .onb-info__bubble,
.onb-info:focus-visible .onb-info__bubble {
  opacity: 1;
  visibility: visible;
}
.field .hint { font-size: 12px; color: var(--base-text-tertiary); }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 600px) {
  .field-grid-2 { grid-template-columns: 1fr; }
  .field-grid-3 { grid-template-columns: 1fr; }
}

/* Practice info — chairs/doctors: compact picker (JS-enhanced) */
.onb-compact-select {
  position: relative;
}
.onb-compact-select:not(.onb-compact-select--ready) .onb-compact-select__trigger,
.onb-compact-select:not(.onb-compact-select--ready) .onb-compact-select__menu {
  display: none;
}
.onb-compact-select--ready .onb-compact-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.onb-compact-select__native {
  width: 100%;
}
.onb-compact-select__trigger.onb-select {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  color: var(--base-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.onb-compact-select__trigger.onb-select:hover {
  background-color: var(--color-gray-50);
}
.onb-compact-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.onb-compact-select__chev {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.onb-compact-select__trigger[aria-expanded="true"] .onb-compact-select__chev {
  transform: rotate(180deg);
  opacity: 0.85;
}
/* Absolute fallback before JS; open menus use --floating + fixed coords in JS */
.onb-compact-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 200;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border-secondary, var(--base-border-tertiary));
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 4px;
  overflow: hidden;
}
.onb-compact-select__menu.onb-compact-select__menu--floating {
  z-index: 10050;
}
/* Vertical list — compact type, calm selection (no loud fill) */
.onb-compact-select__panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(46vh, 240px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.onb-compact-select__panel::-webkit-scrollbar {
  width: 5px;
}
.onb-compact-select__panel::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--color-gray-400), transparent 45%);
  border-radius: 999px;
}
.onb-compact-select__opt {
  border: 0;
  border-radius: 8px;
  background: transparent;
  margin: 0;
  width: 100%;
  padding: 7px 12px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-gray-700);
  transition: background 0.12s ease, color 0.12s ease;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.onb-compact-select__opt:hover {
  background: var(--color-gray-50);
  color: var(--color-gray-950);
}
.onb-compact-select__opt:focus-visible {
  outline: none;
  background: var(--color-gray-100);
  color: var(--color-gray-950);
}
.onb-compact-select__opt.is-selected {
  background: var(--color-gray-100);
  color: var(--color-gray-950);
  font-weight: 600;
}
.onb-compact-select__opt.is-selected:hover {
  background: color-mix(in oklab, var(--color-gray-100), var(--color-gray-200) 35%);
  color: var(--color-gray-950);
}
@media (max-width: 480px) {
  .onb-compact-select__panel {
    max-height: min(42vh, 260px);
    padding: 3px 0;
  }
  .onb-compact-select__opt {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 14px;
  }
  .onb-compact-select__menu {
    border-radius: 14px;
    padding: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .onb-compact-select__trigger.onb-select,
  .onb-compact-select__chev,
  .onb-compact-select__opt {
    transition: none;
  }
  .onb-compact-select__opt:active {
    transform: none;
  }
}


/* .onb-input / .onb-select / .onb-input-wrap base styles live in
   marketing/pages.css so they're available on both the onboarding layout
   and the marketing /sellers layout (which both render the basics form). */

/* ---------- BUTTONS ---------- */
.onb-btn {
  height: 44px; padding: 0 18px;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  cursor: pointer; transition: background .15s, border-color .15s;
  font-family: inherit; text-decoration: none;
}
.onb-btn--primary { background: var(--bg-primary); color: var(--text-on-primary); border-color: var(--bg-primary); box-shadow: var(--shadow-inset-btn); }
.onb-btn--primary:hover { background: var(--bg-primary-hover); border-color: var(--bg-primary-hover); }
.onb-btn--primary:disabled { background: var(--color-gray-300); border-color: var(--color-gray-300); color: #fff; cursor: not-allowed; }
.onb-btn--outline { background: #fff; color: var(--color-gray-900); border-color: var(--border-secondary); }
.onb-btn--outline:hover { background: var(--color-gray-100); }
.onb-btn--link { background: none; border: 0; color: var(--base-text-secondary); padding: 8px; height: auto; }
.onb-btn--link:hover { color: var(--color-gray-950); }

/* ---------- OPTION CARDS ---------- */
.opt-grid { display: grid; gap: 10px; }
.opt-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.opt-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .opt-grid.cols-3, .opt-grid.cols-2 { grid-template-columns: 1fr; } }
.opt {
  text-align: left;
  background: #fff;
  border: 1px solid var(--base-border-tertiary);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 4px;
  font-family: inherit;
  width: 100%;
}
.opt:hover { border-color: var(--color-gray-400); }
.opt.is-selected {
  border-color: var(--color-brand-green, #14422a);
  background: #eef5ef;
  box-shadow: 0 0 0 1px var(--color-brand-green, #14422a) inset;
}
.opt .opt-title { font-size: 14px; font-weight: 600; color: var(--color-gray-950); }
.opt.is-selected .opt-title { color: var(--color-brand-green, #14422a); }
.opt .opt-desc { font-size: 12px; color: var(--base-text-tertiary); }
.opt .opt-icon-wrap {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--color-gray-100);
  display: grid; place-items: center; margin-bottom: 8px;
  color: var(--base-text);
}

/* ---------- NUMBER STEPPER ---------- */
.num-stepper {
  display: flex; align-items: stretch;
  border: 1px solid var(--border-secondary);
  border-radius: 12px; overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-input);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.num-stepper:focus-within {
  border-color: var(--base-border-focus);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--base-border-focus), transparent 80%);
}
.num-stepper button {
  width: 44px; flex: 0 0 44px;
  border: 0; background: transparent;
  color: var(--base-text-secondary);
  font-size: 18px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  display: grid; place-items: center;
}
.num-stepper button:hover { background: var(--color-gray-100); color: var(--color-gray-950); }
.num-stepper button:disabled { color: var(--color-gray-300); cursor: not-allowed; background: transparent; }
.num-stepper input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  text-align: center;
  font: inherit; font-size: 16px; font-weight: 600;
  color: var(--color-gray-950);
  height: 42px;
  outline: none;
}
.num-stepper input::-webkit-outer-spin-button,
.num-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-stepper input[type=number] { -moz-appearance: textfield; }
.num-stepper .num-stepper__divider { width: 1px; background: var(--base-border-tertiary); }

/* ---------- SEGMENTED TIMELINE ---------- */
.timeline-track {
  position: relative;
  background: var(--color-gray-100);
  border-radius: 999px;
  height: 56px; padding: 4px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.timeline-opt {
  border: 0; background: transparent; border-radius: 999px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--base-text-secondary);
  cursor: pointer; padding: 4px 8px;
  font-family: inherit;
}
.timeline-opt.is-on { background: var(--color-gray-950); color: #fff; }
.timeline-opt .when { font-size: 10px; opacity: .65; font-weight: 500; }

/* ---------- READINESS SLIDER ---------- */
.readiness {
  border: 1px solid var(--base-border-tertiary); border-radius: 12px;
  padding: 16px;
}
.readiness-row { display: flex; align-items: center; gap: 12px; }
.readiness-num { font-size: 28px; font-weight: 700; color: var(--color-gray-950); letter-spacing: -0.02em; min-width: 52px; }
.readiness-label { font-size: 13px; color: var(--base-text-secondary); margin-bottom: 8px; }
.readiness-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--base-text-tertiary); margin-top: 4px; }

input[type=range].onb-slider {
  width: 100%; -webkit-appearance: none; height: 6px;
  border-radius: 999px; background: var(--color-gray-300);
  outline: none;
}
input[type=range].onb-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 999px; background: var(--color-gray-950);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer;
}
input[type=range].onb-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px; background: var(--color-gray-950);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer;
}

/* ---------- CHIP GROUP ---------- */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--base-border-tertiary); background: #fff;
  border-radius: 999px; padding: 9px 16px;
  font-size: 13px; font-weight: 600; color: var(--base-text-secondary);
  cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.chip:hover { border-color: color-mix(in oklab, var(--color-brand-green), var(--base-border-tertiary)); }
.chip.is-on {
  background: color-mix(in oklab, var(--color-brand-green), #fff 90%);
  color: var(--color-brand-green, #14422a);
  border-color: color-mix(in oklab, var(--color-brand-green), #fff 40%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-brand-green), transparent 65%);
}

/* ---------- TEXTAREA ---------- */
.onb-textarea {
  width: 100%; min-height: 88px;
  padding: 12px 14px; font: inherit; font-size: 14px;
  border: 1px solid var(--border-secondary);
  border-radius: 12px; resize: vertical;
  box-shadow: var(--shadow-input);
}
.onb-textarea:focus {
  outline: none; border-color: var(--base-border-focus);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--base-border-focus), transparent 80%);
}

/* ---------- SENTIMENT SECTIONS ---------- */
.sent-section {
  margin-bottom: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--base-border-tertiary);
}
.sent-section:first-child { padding-top: 4px; }
.sent-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.sent-q { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--color-gray-950); margin: 0 0 6px; }
.sent-help { font-size: 13px; line-height: 1.5; color: var(--base-text-secondary); margin: 0 0 16px; max-width: 52ch; }

/* Timeline as tappable cards (replaces narrow select) */
.onb-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.onb-timeline-grid .opt {
  min-height: 72px;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
}
.onb-timeline-grid .opt .opt-title { font-size: 13px; line-height: 1.35; }

/* ---------- ERROR MESSAGES ---------- */
.field-error {
  font-size: 12px; color: var(--color-red-700); margin-top: 4px;
}

/* ---------- VALUATION REVEAL (Step 3) ---------- */
.reveal {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 32px 80px;
}
.reveal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1000px) {
  .reveal-grid { grid-template-columns: 1fr; gap: 32px; }
}

.reveal-main { min-width: 0; }
.reveal-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-success-secondary);
  color: var(--text-on-success-secondary);
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.reveal-eyebrow svg { color: var(--color-green-700); }
.reveal-number {
  font-size: clamp(48px, 6.5vw, 88px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.0;
  color: var(--color-gray-950);
  font-variant-numeric: tabular-nums;
  margin: 0 0 12px;
}
.reveal-tag { font-size: 18px; color: var(--base-text-secondary); margin: 0 0 8px; }
.reveal-meta { font-size: 13px; color: var(--base-text-tertiary); margin: 0 0 32px; }
.reveal-meta b { color: var(--color-gray-900); font-weight: 600; }

.reveal-position {
  background: #fff; border: 1px solid var(--base-border-tertiary);
  border-radius: 12px; padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.reveal-position-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.reveal-position-title { font-size: 14px; font-weight: 600; color: var(--color-gray-950); }
.reveal-position-pill {
  background: var(--bg-success-secondary); color: var(--color-green-800);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.reveal-position-track {
  position: relative; height: 10px; background: var(--color-gray-100);
  border-radius: 999px; margin-bottom: 8px;
}
.reveal-position-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--color-brand-green) 0%, color-mix(in oklab, var(--color-brand-green), #fff 20%) 100%);
  border-radius: 999px;
}
.reveal-position-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-brand-green); border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.reveal-position-scale {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--base-text-tertiary);
}

.reveal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.reveal-stat {
  border: 1px solid var(--base-border-tertiary);
  border-radius: 12px; padding: 18px 20px; background: #fff;
}
.reveal-stat__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--base-text-tertiary); margin-bottom: 6px; }
.reveal-stat__value { font-size: 26px; font-weight: 700; color: var(--color-gray-950); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.reveal-card {
  background: #fff;
  border: 1px solid var(--base-border-tertiary);
  border-radius: 12px; padding: 22px 24px;
}
.reveal-card h3 { font-size: 16px; font-weight: 700; color: var(--color-gray-950); margin: 0 0 8px; }
.reveal-card p { font-size: 14px; line-height: 1.55; color: var(--base-text-secondary); margin: 0; }

/* ---------- CTA SIDEBAR ---------- */
.reveal-cta-col { position: sticky; top: 88px; }
.reveal-cta {
  background: var(--color-brand-cream, #f6f3ec);
  border: 1px solid var(--base-border-tertiary);
  border-radius: 16px; padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
}
.reveal-cta__pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.05); color: var(--base-text-secondary);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.reveal-cta__pill svg { color: var(--base-text-secondary); }
.reveal-cta__title { font-size: 22px; font-weight: 700; color: var(--color-gray-950); line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.01em; }
.reveal-cta__sub { color: var(--base-text-secondary); font-size: 14px; margin: 0 0 20px; line-height: 1.5; }
.reveal-cta__btn {
  width: 100%; background: var(--color-gray-950); color: #fff;
  border: 0; border-radius: 14px; padding: 14px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font-family: inherit;
  text-decoration: none;
}
.reveal-cta__btn:hover { background: var(--color-gray-800); }
.reveal-cta__list { list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; }
.reveal-cta__list li { display: flex; gap: 10px; padding: 7px 0; color: var(--color-gray-800); align-items: center; }
.reveal-cta__list li svg { color: var(--base-text-tertiary); flex: 0 0 16px; }
.reveal-cta__foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--base-border-tertiary);
  font-size: 12px; color: var(--base-text-tertiary);
}
.reveal-cta__foot svg { color: var(--base-text-tertiary); flex: 0 0 14px; }

/* ---------- VALUATION REVEAL LOADER ---------- */
.reveal-loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--color-gray-50);
  background-image: radial-gradient(circle, var(--color-gray-300) 1px, transparent 1px);
  background-size: 24px 24px;
  display: grid; place-items: center;
  animation: onb-fade .2s ease both;
}
.reveal-loader.is-leaving { animation: onb-fade-out .5s ease both; }
@keyframes onb-fade-out { from { opacity: 1; } to { opacity: 0; } }
.reveal-loader__inner {
  width: 100%; max-width: 460px; padding: 0 24px;
  text-align: center; position: relative; z-index: 1;
}

/* Orrery — SVG constellation: practice at center, comparables in orbit,
   data threads flowing inward, halos rippling outward */
.reveal-loader__orrery {
  width: 100%; max-width: 300px; margin: 0 auto 24px;
}
.reveal-loader__orrery svg {
  width: 100%; height: auto; display: block; overflow: visible;
}

/* Threads — faint by default; light up + flow inward when their quadrant ignites */
.orrery-thread {
  stroke: var(--color-brand-green);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 22 360;
  stroke-dashoffset: 382;
  opacity: 0.06;
  transition: opacity 0.6s ease;
}
.reveal-loader__orrery.is-q1 .orrery-thread--q1,
.reveal-loader__orrery.is-q2 .orrery-thread--q2,
.reveal-loader__orrery.is-q3 .orrery-thread--q3,
.reveal-loader__orrery.is-q4 .orrery-thread--q4 {
  opacity: 0.75;
  animation: thread-flow 2.2s linear infinite;
}
@keyframes thread-flow { to { stroke-dashoffset: 0; } }

/* Major stars — dim until their quadrant's stage activates, then IGNITE */
.orrery-major {
  fill: var(--color-brand-green);
  opacity: 0.15;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.6s ease;
}
.reveal-loader__orrery.is-q1 .orrery-major--q1,
.reveal-loader__orrery.is-q2 .orrery-major--q2,
.reveal-loader__orrery.is-q3 .orrery-major--q3,
.reveal-loader__orrery.is-q4 .orrery-major--q4 {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--color-brand-green));
  animation: major-ignite 1.6s ease-in-out infinite;
}
@keyframes major-ignite {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.35); }
}

/* Minor stars — decorative twinkling backdrop, independent of stages */
.orrery-minor {
  fill: var(--color-brand-green);
  animation: star-twinkle 4s ease-in-out infinite;
}
.orrery-minor:nth-of-type(1)  { animation-delay: 0.0s; }
.orrery-minor:nth-of-type(2)  { animation-delay: 0.7s; }
.orrery-minor:nth-of-type(3)  { animation-delay: 1.3s; }
.orrery-minor:nth-of-type(4)  { animation-delay: 1.8s; }
.orrery-minor:nth-of-type(5)  { animation-delay: 0.4s; }
.orrery-minor:nth-of-type(6)  { animation-delay: 2.1s; }
.orrery-minor:nth-of-type(7)  { animation-delay: 0.9s; }
.orrery-minor:nth-of-type(8)  { animation-delay: 1.5s; }
.orrery-minor:nth-of-type(9)  { animation-delay: 0.2s; }
.orrery-minor:nth-of-type(10) { animation-delay: 1.1s; }
.orrery-minor:nth-of-type(11) { animation-delay: 0.6s; }
.orrery-minor:nth-of-type(12) { animation-delay: 2.4s; }
@keyframes star-twinkle {
  0%, 100% { opacity: 0.18; }
  50%      { opacity: 0.55; }
}

/* Halos — concentric ripples radiating outward from the practice */
.orrery-halo {
  fill: none;
  stroke: var(--color-brand-green);
  stroke-width: 1.5;
  animation: halo-expand 2.6s ease-out infinite;
}
.orrery-halo--1 { animation-delay: 0s; }
.orrery-halo--2 { animation-delay: 0.86s; }
.orrery-halo--3 { animation-delay: 1.72s; }
@keyframes halo-expand {
  0%   { r: 6;  opacity: 0.55; }
  100% { r: 52; opacity: 0; }
}

/* Anchor — your practice, glowing & breathing */
.orrery-anchor {
  fill: var(--color-brand-green);
  filter: drop-shadow(0 0 10px color-mix(in oklab, var(--color-brand-green), transparent 30%));
  transform-box: fill-box;
  transform-origin: center;
  animation: anchor-breathe 2.6s ease-in-out infinite;
}
@keyframes anchor-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

.reveal-loader__title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--color-gray-950); margin: 0 0 12px;
}

/* AI-powered badge */
.reveal-loader__tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in oklab, var(--color-brand-green), transparent 88%);
  color: var(--color-green-800, #166534);
  border: 1px solid color-mix(in oklab, var(--color-brand-green), transparent 68%);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  margin: 0 0 22px;
}
.reveal-loader__tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-brand-green);
  animation: ml-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes ml-dot-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.75); }
  50%      { opacity: 1;    transform: scale(1.25); }
}

/* Cycling status line — quieter, contemplative */
.reveal-loader__line {
  font-size: 14px; color: var(--base-text-secondary);
  min-height: 1.5em;
  animation: onb-line-fade .5s ease both;
  margin: 0 0 20px;
}
@keyframes onb-line-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.reveal-loader__bar {
  max-width: 280px; margin: 0 auto 22px;
  height: 5px; background: var(--color-gray-200);
  border-radius: 999px; overflow: hidden;
}
.reveal-loader__bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--color-brand-green), color-mix(in oklab, var(--color-brand-green), #fff 30%));
  border-radius: 999px; transition: width .15s linear;
  position: relative; overflow: hidden;
}
.reveal-loader__bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  animation: bar-shimmer 1.3s ease-in-out infinite;
}
@keyframes bar-shimmer { from { transform: translateX(-200%); } to { transform: translateX(300%); } }

/* Pipeline stage indicators — the "torch" passes through them */
.reveal-loader__stages {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 0 0 22px;
}
.reveal-loader__stage {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--base-text-tertiary);
  background: #fff;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--color-gray-200);
  transition: background .45s cubic-bezier(0.2, 0.9, 0.3, 1.2),
              color .45s ease, border-color .45s ease,
              transform .45s cubic-bezier(0.2, 0.9, 0.3, 1.2),
              box-shadow .45s ease;
}
/* Active = the current torch: solid green, scaled up, glowing */
.reveal-loader__stage.is-active {
  background: var(--color-brand-green);
  color: #fff;
  border-color: var(--color-brand-green);
  transform: scale(1.12);
  box-shadow: 0 4px 16px color-mix(in oklab, var(--color-brand-green), transparent 50%);
}
/* Done = previously activated: lit green tint, settled back to normal size */
.reveal-loader__stage.is-done {
  background: color-mix(in oklab, var(--color-brand-green), transparent 78%);
  color: var(--color-green-800, #166534);
  border-color: color-mix(in oklab, var(--color-brand-green), transparent 55%);
}
.reveal-loader__stage-sep {
  font-size: 11px; color: var(--color-gray-300); line-height: 1;
  transition: color .45s ease;
}
.reveal-loader__stage-sep.is-passed { color: var(--color-brand-green); }

/* Model provenance footer */
.reveal-loader__model { font-size: 11px; color: var(--base-text-tertiary); letter-spacing: .025em; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .orrery-thread,
  .orrery-major,
  .orrery-minor,
  .orrery-halo,
  .orrery-anchor,
  .reveal-loader__bar-fill::after,
  .reveal-loader__tag-dot { animation: none; }
  .orrery-minor { opacity: 0.5; }
  .reveal-loader__orrery.is-q1 .orrery-major--q1,
  .reveal-loader__orrery.is-q2 .orrery-major--q2,
  .reveal-loader__orrery.is-q3 .orrery-major--q3,
  .reveal-loader__orrery.is-q4 .orrery-major--q4 { animation: none; transform: none; }
}

/* ---------- SIGNUP MODAL ---------- */
.onb-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
}
.onb-modal[hidden] { display: none; }
.onb-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, .55);
  animation: onb-fade .2s ease both;
}
.onb-modal__panel {
  position: relative;
  width: 100%; max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.25);
  animation: onb-modal-pop .25s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes onb-modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.onb-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--base-text-tertiary);
  cursor: pointer;
}
.onb-modal__close:hover { background: var(--color-gray-100); color: var(--color-gray-950); }
.onb-modal__head { text-align: center; margin-bottom: 24px; }
.onb-modal__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--base-text-tertiary); margin: 0 0 10px;
}
.onb-modal__title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.025em;
  color: var(--color-gray-950); margin: 0 0 6px;
}
.onb-modal__sub { font-size: 13px; color: var(--base-text-secondary); margin: 0; }
.onb-modal__foot-note {
  font-size: 12px; color: var(--base-text-tertiary);
  text-align: center; margin: 12px 0 0;
}

.onb-modal__oauth {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-secondary);
  color: var(--color-gray-950);
  height: 48px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  margin: 0;
}
.onb-modal__oauth:hover { background: var(--color-gray-100); }
.onb-modal__oauth-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  font-weight: 700; color: var(--color-brand-navy);
}
.onb-modal__oauth-img { width: 20px; height: 20px; }

.onb-modal__divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--base-text-tertiary);
}
.onb-modal__divider::before, .onb-modal__divider::after {
  content: ""; flex: 1; height: 1px; background: var(--base-border-tertiary);
}

.onb-modal__form { display: flex; flex-direction: column; gap: 8px; }
.onb-modal__label {
  font-size: 13px; font-weight: 600; color: var(--color-gray-800);
  margin-top: 4px;
}
.onb-modal__hint {
  font-size: 12px; color: var(--base-text-tertiary);
  margin: 0 0 4px;
}
.onb-modal__submit { margin-top: 4px; width: 100%; }
.onb-modal__signin {
  text-align: center; font-size: 13px; color: var(--base-text-secondary);
  margin: 18px 0 0;
}
.onb-modal__signin a { color: var(--color-gray-950); font-weight: 600; }

.onb-modal__sent { text-align: center; padding: 8px 4px 0; }
.onb-modal__sent-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-success-secondary);
  color: var(--color-green-700);
  margin: 0 auto 18px;
}
.onb-modal__sent-icon svg { width: 24px; height: 24px; }
.onb-modal__sent .onb-modal__title { margin-bottom: 8px; }
.onb-modal__sent .onb-modal__sub { color: var(--base-text-secondary); font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.onb-modal__sent .onb-modal__sub b { color: var(--color-gray-950); font-weight: 600; }
.onb-modal__sent-hint {
  font-size: 12px; color: var(--base-text-tertiary);
  margin: 0; line-height: 1.5;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px;
}
.onb-modal__sent-resend-form { display: inline; margin: 0; }
.onb-modal__sent-resend {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--color-gray-950); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.onb-modal__sent-resend:hover { color: var(--color-gray-700); }

/* ---------- TRANSITIONS ---------- */
.fade-in { animation: onb-fade .3s ease both; }
@keyframes onb-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- ICONS (used inline by views) ---------- */
.onb-ic { width: 18px; height: 18px; flex: 0 0 18px; }

/* =================================================================
   Broker wizard shims.
   The broker step templates (app/views/brokers/steps/*) and the
   shared brokerage_profile partials were authored against Jumpstart
   Pro's Tailwind-driven theme, but the onboarding layout only loads
   the marketing stylesheet bundle. These rules map the Jumpstart
   form/button/alert classes (and the small set of Tailwind utility
   classes the broker views depend on) onto the existing onboarding
   visual language so the wizard renders correctly.
   ================================================================= */

/* Form fields */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--color-gray-800); }
.form-control {
  width: 100%; padding: 0 14px; min-height: 44px;
  background: #fff; border: 1px solid var(--border-secondary, var(--base-border-secondary));
  border-radius: 12px; font-size: 14px; color: var(--base-text);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-input);
}
textarea.form-control { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.5; }
.form-control:focus {
  outline: none;
  border-color: var(--base-border-focus);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--base-border-focus), transparent 80%);
}
.form-control::placeholder { color: var(--base-text-tertiary); }
.form-checkbox {
  width: 16px; height: 16px; accent-color: var(--color-gray-950);
}
.form-hint { font-size: 12px; color: var(--base-text-tertiary); margin: 0; }

/* Buttons (extends marketing/site.css definitions) */
.btn-secondary {
  background: #fff; color: var(--color-gray-900);
  border-color: var(--border-secondary, var(--base-border-secondary));
}
.btn-secondary:hover { background: var(--color-gray-100); }

/* Alerts */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 12px; font-size: 14px;
  border: 1px solid var(--base-border-tertiary); background: #fff;
}
.alert > svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.alert > div { min-width: 0; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

/* Email verification banner — flexes the body and the action buttons inline. */
.email-verification-banner {
  align-items: center;
  margin: 16px clamp(16px, 4vw, 32px) 0;
  flex-wrap: wrap;
}
.email-verification-banner__body { flex: 1 1 280px; min-width: 240px; }
.email-verification-banner__body h4 { margin: 0; font-size: 14px; font-weight: 600; }
.email-verification-banner__body p { margin: 2px 0 0; font-size: 13px; color: inherit; opacity: 0.9; }
.email-verification-banner__actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.email-verification-banner__form { margin: 0; }

/* Visually hide an element while keeping it focusable for screen readers /
   keyboard navigation. Used by chip checkboxes wrapped in .chip labels. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* When a `<label class="chip">` wraps a checkbox + text, .is-on is toggled
   by the toggle-chip Stimulus controller. The bare `:has(:checked)` fallback
   keeps the visual state correct even before the JS connects. */
label.chip { user-select: none; }
label.chip:has(input:checked) {
  background: color-mix(in oklab, var(--color-brand-green), #fff 90%);
  color: var(--color-brand-green, #14422a);
  border-color: color-mix(in oklab, var(--color-brand-green), #fff 40%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-brand-green), transparent 65%);
}

/* Layout utilities (Tailwind-name shims, scoped to wizard usage) */
.flex          { display: flex; }
.flex-wrap     { flex-wrap: wrap; }
.flex-col      { flex-direction: column; }
.flex-1        { flex: 1 1 0%; min-width: 0; }
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.justify-center{ justify-content: center; }
.shrink-0      { flex-shrink: 0; }
.min-w-0       { min-width: 0; }
.text-center   { text-align: center; }
.mx-auto       { margin-left: auto; margin-right: auto; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

.w-4  { width: 16px; }
.w-5  { width: 20px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.h-4  { height: 16px; }
.h-5  { height: 20px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }

.rounded-full { border-radius: 9999px; }
.rounded-lg   { border-radius: 12px; }

.text-sm  { font-size: 13px; line-height: 1.5; }
.text-lg  { font-size: 18px; line-height: 1.4; }
.text-xl  { font-size: 20px; font-weight: 600; line-height: 1.3; }
.text-2xl { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.text-primary    { color: var(--color-gray-950); }
.text-base-500   { color: var(--base-text-tertiary); }
.text-base-900   { color: var(--color-gray-900); }
.bg-primary\/10  { background-color: color-mix(in oklab, var(--color-gray-950), transparent 90%); }
.bg-base-50      { background-color: var(--color-gray-50); }
.bg-green-100    { background-color: #d1fae5; }
.bg-white        { background: #fff; }

.space-y-3 > * + * { margin-top: 12px; }
.space-y-6 > * + * { margin-top: 24px; }

.grid              { display: grid; }
.grid-cols-1       { grid-template-columns: 1fr; }
.gap-4             { gap: 16px; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row    { flex-direction: row; }
}

/* Practice-type chip used in deals step (label-wrapped checkbox) */
.has-\[\:checked\]\:border-primary:has(:checked) { border-color: var(--color-gray-950); }
.has-\[\:checked\]\:bg-primary\/10:has(:checked) { background-color: color-mix(in oklab, var(--color-gray-950), transparent 92%); }
.has-\[\:checked\]\:text-primary:has(:checked)   { color: var(--color-gray-950); }
.border        { border: 1px solid var(--base-border-tertiary); }
.border-base-300 { border-color: var(--base-border-tertiary); }
.text-base-600   { color: var(--base-text-secondary); }
.hover\:border-primary:hover { border-color: var(--color-gray-950); }
.transition-colors { transition: background-color .15s, border-color .15s, color .15s; }
.cursor-pointer  { cursor: pointer; }
.text-left       { text-align: left; }

/* Dark-mode tailwind classes used in templates: silently inert (no dark theme on wizard) */
.dark\:text-base-100,
.dark\:bg-base-800,
.dark\:bg-green-900\/30,
.dark\:border-base-700,
.dark\:text-base-300 { /* no-op: marketing/onboarding layout is light-only */ }
