/* =================================================================
   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: var(--text-sm); font-weight: var(--fw-bold);
  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: var(--text-xs);
  font-weight: var(--fw-semibold);
  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: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: .08em;
  text-transform: uppercase; color: var(--base-text-tertiary);
  margin-bottom: 8px;
}
.onb-card .onb-title {
  font-size: var(--text-3xl); font-weight: var(--fw-bold); 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: var(--text-md); 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: var(--text-base);
  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: var(--text-base); 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: var(--text-lg); font-weight: var(--fw-semibold);
  color: var(--base-text-primary);
  margin-bottom: 2px;
}
.connect-exact-card__desc {
  font-size: var(--text-base); 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: var(--text-md); font-weight: var(--fw-semibold);
  color: var(--base-text-primary);
  display: block;
}
.connect-privacy-strip__desc {
  font-size: var(--text-base); 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: var(--text-md); font-weight: var(--fw-medium);
  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: var(--text-xs); font-weight: var(--fw-semibold);
  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: var(--text-base); 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: var(--text-base); font-weight: var(--fw-medium);
  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: var(--text-base); 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: var(--text-md);
  color: var(--base-text-secondary);
  text-decoration: none;
  font-weight: var(--fw-medium);
  /* reset button element styles */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.onboarding-nav__exit:hover { color: var(--color-gray-950); }
.onboarding-nav__exit--center {
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
  color: var(--base-text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  /* reset button element styles */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.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;
}
.vp-topstep { display: none; }
@media (max-width: 880px) {
  /* Full-bleed sheet: no page gutters — the wizard is a white "screen", not a
     floating card on a page (see the card rules below). */
  .shell { grid-template-columns: 1fr; gap: 0; padding: 0; }
  /* Mobile: the heavy desktop rail is replaced by a compact top stepper. */
  .shell .progress-col { display: none; }
  .vp-topstep {
    display: block;
    position: sticky;
    /* Dock under the sticky 64px onboarding nav — with top: 0 it slides
       beneath the nav (z 6 vs 30) and reads as "the progress bar disappears". */
    top: 64px;
    z-index: 6;
    background: #fff;
    border-bottom: 1px solid #ececec;
    margin: 0;
    padding: 10px 16px;
  }
  .vp-topstep__segs { display: flex; gap: 6px; margin-bottom: 6px; }
  .vp-topstep__seg { flex: 1; height: 5px; border-radius: 99px; background: #e5e7eb; }
  .vp-topstep__seg.is-on { background: var(--color-brand-green, #1f5e3a); }
  .vp-topstep__meta {
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-brand-green, #1f5e3a);
  }

  /* Sticky action bar — dock the wizard footer (Back / Save / Continue) to the
     bottom, in the thumb zone, with a top hairline + lift shadow. The footer already
     stacks (Continue full-width) at ≤520; this keeps it pinned as the form scrolls. */
  .onboarding-card .card-foot.card-foot--wizard {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 -6px 18px rgba(10, 31, 20, 0.06);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  /* App-like sticky chrome on phones: nav (already sticky) > steps bar (docked
     under it above) > compact step header (eyebrow + title + sub-step counter;
     the long description is web-only) > content scrolls > Back/Continue footer
     docked at the bottom. overflow must be visible here: the card's
     overflow: hidden makes every sticky descendant inert — it's why the
     footer's sticky above never engaged and Continue had to be scrolled to.
     The card itself flattens into a full-bleed white sheet (no border/radius/
     shadow) so the wizard reads as an app screen, not a card on a page. */
  /* Extra class in the selector: the base `.onboarding-card { overflow: hidden }`
     sits LATER in this file, so an equal-specificity override here would lose. */
  .onboarding-body .onboarding-card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    /* Fill the screen below the nav + steps bar so the footer sits at the
       bottom even on short steps: the sheet reads as a full app screen, and
       the card's flex column + the growing body push the footer down. */
    min-height: calc(100vh - 119px);
    min-height: calc(100dvh - 119px);
  }
  .onboarding-body .onboarding-card .card-body { flex: 1 1 auto; }
  /* .onboarding-body prefix throughout: the base card rules later in the file
     would out-order equal-specificity overrides here (same trap as overflow). */
  .onboarding-body .onboarding-card .card-head {
    position: sticky;
    top: 108px; /* 64px nav + compact steps bar (49px), tucked 5px under it */
    z-index: 4;
    background: #fff;
    padding: 10px 16px 12px;
  }
  .onboarding-body .onboarding-card .card-head .card-eyebrow { font-size: var(--text-sm); margin-bottom: 3px; }
  .onboarding-body .onboarding-card .card-head .card-title { font-size: var(--text-2xl); margin: 0; }
  .onboarding-body .onboarding-card .card-head .card-sub { display: none; }
  /* Same 16px breathing room on every side of the scrolling content — the gap
     under the header equals the gap above the footer. */
  .onboarding-body .onboarding-card .card-body { padding: 16px; }

  /* Native app: the web logo bar (64px .onboarding-nav) isn't rendered — pushed
     screens get the native toolbar instead — so every sticky offset shifts up. */
  .onboarding-body.is-native .vp-topstep { top: 0; }
  .onboarding-body.is-native .onboarding-card .card-head { top: 44px; }
  .onboarding-body.is-native .onboarding-card {
    min-height: calc(100vh - 55px);
    min-height: calc(100dvh - 55px);
  }
  /* The native center FAB pokes ~30px up into the WebView bottom — keep the
     wizard picker sheets' last rows clear of it. */
  .onboarding-body.is-native .vp-sheet {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
  /* Same clearance for the docked footer: without it the centered
     "Save for later" link sits under the FAB. */
  .onboarding-body.is-native .onboarding-card .card-foot.card-foot--wizard {
    padding-bottom: calc(44px + env(safe-area-inset-bottom));
  }
}

/* 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: var(--text-xs); font-weight: var(--fw-semibold);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--base-text-tertiary);
}
.rail-eyebrow {
  font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: .12em;
  text-transform: uppercase; color: var(--base-text-tertiary);
  margin-bottom: 4px;
}
.rail-title {
  font-size: var(--text-xl); font-weight: var(--fw-bold); 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: var(--text-sm); font-weight: var(--fw-semibold);
  margin-top: 2px;
}
.step-bullet svg { width: 14px; height: 14px; }
.step-body { flex: 1; min-width: 0; }
.step-title { font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--color-gray-800); margin: 0 0 2px; }
.step-meta { font-size: var(--text-sm); 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: var(--text-sm); 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: var(--fw-semibold); 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: var(--text-sm); 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: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--base-text-tertiary);
  margin-bottom: 10px;
}
.card-eyebrow {
  font-size: var(--text-xs); font-weight: var(--fw-bold); 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: var(--fw-bold); letter-spacing: -0.03em; line-height: 1.18; margin: 0 0 8px; color: var(--color-gray-950); }
.card-sub { font-size: var(--text-lg); 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: var(--text-base);
  font-weight: var(--fw-medium);
  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%; }

  /* Seller steps (card-foot--wizard-compact): match the mobile design — square
     icon-only Back beside a full-width Continue on one row, "Save for later" as
     a plain text link centered below. Buyer onboarding keeps the stacked layout
     above (its start button carries text like "Skip for now"). */
  /* Must out-rank `.onboarding-card .card-foot.card-foot--wizard` above. */
  .onboarding-card .card-foot.card-foot--wizard-compact { grid-template-columns: auto minmax(0, 1fr); }
  .card-foot--wizard-compact .card-foot__start { order: 1; }
  .card-foot--wizard-compact .card-foot__end { order: 2; justify-self: stretch; }
  .card-foot--wizard-compact .card-foot__mid { order: 3; grid-column: 1 / -1; justify-self: center; }
  .card-foot--wizard-compact .card-foot__start .onb-btn--link {
    width: 52px; height: 52px; padding: 0; justify-content: center;
    border: 1.5px solid #e5e5e5; border-radius: 14px; background: #fff;
    /* font-size 0 hides the "Back" text node visually; it stays readable to
       screen readers, and the chevron below is sized back up explicitly. */
    color: #0a0a0a; font-size: 0;
  }
  .card-foot--wizard-compact .card-foot__start .onb-ic { width: 20px; height: 20px; }
  .card-foot--wizard-compact .card-foot__end .onb-btn--primary {
    height: 52px; border-radius: 14px; font-size: var(--text-lg); font-weight: var(--fw-bold);
  }
  .card-foot--wizard-compact .card-foot__mid .onb-btn--outline {
    width: auto; height: auto; border: 0; background: none; box-shadow: none;
    padding: 2px 8px; font-size: var(--text-base); font-weight: var(--fw-medium);
    color: var(--base-text-tertiary, #737373);
  }
}

/* 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; }

/* Tighter rows + no height-stretching on all wizard grids */
.onboarding-card .field-grid-2,
.onboarding-card .field-grid-3 {
  align-items: start;
  row-gap: 12px;
}
.onboarding-card .onb-basics-grid {
  gap: 16px 28px;
}

/* ---------- FORM ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: var(--text-base); font-weight: var(--fw-semibold); 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: var(--text-sm);
  font-weight: var(--fw-medium);
  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: var(--text-sm); color: var(--base-text-tertiary); }
/* minmax(0, 1fr), not bare 1fr: a bare 1fr track's min is the items' min-content,
   so a wide control (num-stepper, picker button) silently grows the track past the
   card and gets clipped by the card's overflow:hidden on phones. */
.field-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-grid-2 .field { margin-bottom: 0; }
.field-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field-grid-3 .field { margin-bottom: 0; }
@media (max-width: 600px) {
  .field-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .field-grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* Practice-info: specialty + 2 counts in one tight row */
.pi-field-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; align-items: start; max-width: 620px; }
@media (max-width: 640px) { .pi-field-row { grid-template-columns: 1fr; max-width: none; } }

/* Constrain specialty type to match one column of the field-grid-2 below */
.pi-field-specialty { max-width: calc(50% - 8px); }
@media (max-width: 600px) { .pi-field-specialty { max-width: none; } }

/* Practice-info: section divider between type and scale fields */
.pi-divider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.pi-divider-row::before,
.pi-divider-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--base-border-tertiary);
}
.pi-divider-label {
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--base-text-tertiary);
  white-space: nowrap;
}

/* Practice-info: privacy callout below the form panel */
.pi-listing-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 15px;
  background: color-mix(in oklab, var(--color-brand-green), transparent 93%);
  border: 1px solid color-mix(in oklab, var(--color-brand-green), transparent 70%);
  border-radius: 14px;
  font-size: var(--text-base);
  line-height: 1.55;
  color: #166534;
}
.pi-listing-note__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 2px;
  color: var(--color-brand-green);
}

/* 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: var(--fw-medium);
}
.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: var(--text-base);
  font-weight: var(--fw-regular);
  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: var(--fw-semibold);
}
.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: var(--text-md);
  }
  .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). */

/* =================================================================
   Bottom-sheet picker (mobile valuation wizard). Replaces the native
   <select> for Profit margin (step 1) and Specialty (step 2). A field
   button opens a slide-up sheet of option rows; picking one writes a
   hidden input and closes. No native <select> (matches the design's
   "no native selects" rule and kills the full-screen white <select>
   dialog the Android WebView draws). The controller re-parents the
   sheet onto <body> so position:fixed resolves to the viewport (the
   .fade-in card carries a transform). Values from ValuationPhone.dc.html.
   ================================================================= */
.vp-picker { position: relative; }

/* Desktop (>880px) keeps the original native <select>; mobile/tablet and the native app
   swap to the bottom-sheet trigger. Both drive the same <select>, so the desktop UX is
   unchanged and only mobile/native gets the sheet. */
.vp-picker__native { display: block; }
.vp-field-btn { display: none; }
@media (max-width: 880px) {
  .vp-picker__native { display: none; }
  .vp-field-btn { display: flex; }
}
.onboarding-body.is-native .vp-picker__native { display: none; }
.onboarding-body.is-native .vp-field-btn { display: flex; }

.vp-field-btn {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  padding: 11px 16px;
  background: #fff;
  border: 1.5px solid #d4d4d4;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(10, 31, 20, 0.04);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.vp-picker.is-filled .vp-field-btn { border-color: #cfe3d6; }
.vp-field-btn__text { min-width: 0; }
.vp-field-btn__value { display: block; font-size: var(--text-lg); font-weight: var(--fw-semibold); color: #a3a3a3; }
.vp-picker.is-filled .vp-field-btn__value { color: #0a0a0a; }
.vp-field-btn__hint { display: block; font-size: var(--text-sm); color: #737373; margin-top: 2px; }
.vp-field-btn__chev { width: 18px; height: 18px; flex: 0 0 18px; color: #a3a3a3; }

.vp-sheet-root { position: fixed; inset: 0; z-index: 1000; }
.vp-sheet-root[hidden] { display: none; }
.vp-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 14, 0.42);
  animation: vpScrimIn 0.2s ease both;
}
.vp-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 640px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.22);
  max-height: 84%;
  display: flex;
  flex-direction: column;
  animation: vpSheetIn 0.3s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
.vp-sheet__handle {
  flex: 0 0 auto;
  width: 38px;
  height: 5px;
  border-radius: 99px;
  background: #e5e5e5;
  margin: 10px auto 4px;
}
.vp-sheet__head { flex: 0 0 auto; padding: 8px 20px 14px; border-bottom: 1px solid #f0efea; }
.vp-sheet__title { margin: 0; font-size: var(--text-xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; color: #0a0a0a; }
.vp-sheet__sub { margin: 4px 0 0; font-size: var(--text-base); color: #737373; }
.vp-sheet__body {
  /* flex-basis must be auto (content height), not 0: the sheet is position:absolute
     with bottom:0 and only a max-height (no definite height), so it sizes to content.
     A flex child with basis 0 in an auto-height flex column collapses to ~0 height,
     which hid the option list below the viewport on mobile/native. With basis auto the
     sheet grows to fit the options (capped at max-height 84%), and min-height:0 +
     overflow-y let it shrink and scroll once that cap is hit. */
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.vp-sheet-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  margin-bottom: 8px;
  background: #fff;
  border: 1.5px solid #e5e5e5;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.vp-sheet-opt.is-selected { background: #eef5ef; border-color: #1f5e3a; }
.vp-sheet-opt__radio {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  border: 2px solid #d4d4d4;
  background: #fff;
  position: relative;
}
.vp-sheet-opt.is-selected .vp-sheet-opt__radio { border-color: #1f5e3a; background: #1f5e3a; }
.vp-sheet-opt.is-selected .vp-sheet-opt__radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #fff;
}
.vp-sheet-opt__text { flex: 1; min-width: 0; }
.vp-sheet-opt__title { display: block; font-size: var(--text-lg); font-weight: var(--fw-semibold); color: #0a0a0a; }
.vp-sheet-opt__title--single { flex: 1; }
.vp-sheet-opt__sub { display: block; font-size: var(--text-sm); color: #737373; margin-top: 1px; }
.vp-sheet-opt__check { width: 18px; height: 18px; flex: 0 0 18px; color: #1f5e3a; display: none; }
.vp-sheet-opt.is-selected .vp-sheet-opt__check { display: block; }

@keyframes vpSheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes vpScrimIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .vp-sheet, .vp-scrim { animation: none !important; }
}

/* ---------- BUTTONS ---------- */
.onb-btn {
  height: 44px; padding: 0 18px;
  border-radius: 12px; font-size: var(--text-md); font-weight: var(--fw-semibold);
  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); }
/* >=44px touch target for the wizard Back link on phone (WCAG 2.5.5 / dashboard convention) */
@media (max-width: 640px) {
  .onb-btn--link { min-height: 44px; }
}

/* ---------- 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: var(--text-md); font-weight: var(--fw-semibold); color: var(--color-gray-950); }
.opt.is-selected .opt-title { color: var(--color-brand-green, #14422a); }
.opt .opt-desc { font-size: var(--text-sm); 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: var(--text-xl); font-weight: var(--fw-medium);
  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: var(--text-lg); font-weight: var(--fw-semibold);
  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: var(--text-sm); font-weight: var(--fw-semibold); 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: var(--text-2xs); opacity: .65; font-weight: var(--fw-medium); }

/* ---------- 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: var(--text-3xl); font-weight: var(--fw-bold); color: var(--color-gray-950); letter-spacing: -0.02em; min-width: 52px; }
.readiness-label { font-size: var(--text-base); color: var(--base-text-secondary); margin-bottom: 8px; }
.readiness-scale { display: flex; justify-content: space-between; font-size: var(--text-xs); 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: var(--text-base); font-weight: var(--fw-semibold); 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: var(--text-md);
  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%);
}

/* ---------- QUESTIONNAIRE MODE (deal preferences) ---------- */
.q-head-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.q-counter {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--base-text-tertiary);
  letter-spacing: .04em;
}
.q-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.q-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--color-gray-200);
  transition: width .22s cubic-bezier(.4,0,.2,1), background .22s ease;
  flex-shrink: 0;
}
.q-dot.is-active {
  width: 22px;
  background: var(--color-brand-green);
}
.q-dot.is-done {
  background: color-mix(in oklab, var(--color-brand-green), transparent 45%);
}

/* Single-question card: suppress section dividers */
.onboarding-card--q .sent-section {
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.onboarding-card--q .sent-section:first-child { padding-top: 0; }

/* Larger question heading */
.onboarding-card--q .sent-q {
  font-size: clamp(18px, 2.2vw, 24px);
  margin-bottom: 6px;
}

@keyframes q-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.q-animate { animation: q-slide-in .2s ease both; }

/* ---------- 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: var(--text-lg); font-weight: var(--fw-bold); letter-spacing: -0.02em; color: var(--color-gray-950); margin: 0 0 6px; }
.sent-help { font-size: var(--text-base); 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: var(--text-base); line-height: 1.35; }

/* ---------- ERROR MESSAGES ---------- */
.field-error {
  font-size: var(--text-sm); 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: var(--text-xs); font-weight: var(--fw-bold); 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: var(--fw-bold);
  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: var(--text-xl); color: var(--base-text-secondary); margin: 0 0 8px; }
.reveal-meta { font-size: var(--text-base); color: var(--base-text-tertiary); margin: 0 0 32px; }
.reveal-meta b { color: var(--color-gray-900); font-weight: var(--fw-semibold); }

.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: var(--text-md); font-weight: var(--fw-semibold); color: var(--color-gray-950); }
.reveal-position-pill {
  background: var(--bg-success-secondary); color: var(--color-green-800);
  font-size: var(--text-xs); font-weight: var(--fw-bold); 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: var(--text-sm); color: var(--base-text-tertiary);
}

.reveal-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 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: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--base-text-tertiary); margin-bottom: 6px; }
.reveal-stat__value { font-size: var(--text-2xl); font-weight: var(--fw-bold); color: var(--color-gray-950); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* Phone: the three stat tiles must fit 375px, so shrink padding and type (the design
   uses 19px values / 8px gap) and let the tracks shrink so nothing overflows or clips. */
@media (max-width: 640px) {
  .reveal-stats { gap: 8px; }
  .reveal-stat { padding: 12px 10px; border-radius: 14px; }
  .reveal-stat__label { font-size: var(--text-xs); letter-spacing: .04em; margin-bottom: 5px; }
  .reveal-stat__value { font-size: var(--text-xl); }
}

.reveal-card {
  background: #fff;
  border: 1px solid var(--base-border-tertiary);
  border-radius: 12px; padding: 22px 24px;
}
.reveal-card h3 { font-size: var(--text-lg); font-weight: var(--fw-bold); color: var(--color-gray-950); margin: 0 0 8px; }
.reveal-card p { font-size: var(--text-md); 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: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.reveal-cta__pill svg { color: var(--base-text-secondary); }
.reveal-cta__title { font-size: var(--text-2xl); font-weight: var(--fw-bold); 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: var(--text-md); 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: var(--text-md); font-weight: var(--fw-bold);
  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: var(--text-md); }
.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: var(--text-sm); 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 {
  /* min(460px, 100%): the stage-pill row's min-content can exceed a phone
     viewport, and a plain max-width lets the box grow past the screen. */
  width: 100%; max-width: min(460px, 100%); 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: var(--text-2xl); font-weight: var(--fw-bold); 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: var(--text-xs); font-weight: var(--fw-bold); 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: var(--text-md); 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;
  /* wrap: four uppercase pills don't fit one row on narrow phones */
  flex-wrap: wrap;
  gap: 8px; margin: 0 0 22px;
}
.reveal-loader__stage {
  font-size: var(--text-xs); font-weight: var(--fw-bold); 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: var(--text-xs); 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: var(--text-xs); 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: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: .08em;
  text-transform: uppercase; color: var(--base-text-tertiary); margin: 0 0 10px;
}
.onb-modal__title {
  font-size: var(--text-3xl); font-weight: var(--fw-bold); letter-spacing: -0.025em;
  color: var(--color-gray-950); margin: 0 0 6px;
}
.onb-modal__sub { font-size: var(--text-base); color: var(--base-text-secondary); margin: 0; }
.onb-modal__foot-note {
  font-size: var(--text-sm); 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: var(--text-md); font-weight: var(--fw-semibold);
  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: var(--fw-bold); 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: var(--text-xs); font-weight: var(--fw-semibold); 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: var(--text-base); font-weight: var(--fw-semibold); color: var(--color-gray-800);
  margin-top: 4px;
}
.onb-modal__hint {
  font-size: var(--text-sm); color: var(--base-text-tertiary);
  margin: 0 0 4px;
}
.onb-modal__consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: var(--text-sm); color: var(--base-text-secondary); line-height: 1.5;
  margin: 2px 0; cursor: pointer;
}
.onb-modal__consent input { margin-top: 2px; flex-shrink: 0; }
.onb-modal__consent a { color: var(--color-gray-950); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.onb-modal__submit { margin-top: 4px; width: 100%; }
.onb-modal__signin {
  text-align: center; font-size: var(--text-base); color: var(--base-text-secondary);
  margin: 18px 0 0;
}
.onb-modal__signin a { color: var(--color-gray-950); font-weight: var(--fw-semibold); }

.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: var(--text-md); line-height: 1.5; margin-bottom: 18px; }
.onb-modal__sent .onb-modal__sub b { color: var(--color-gray-950); font-weight: var(--fw-semibold); }
.onb-modal__sent-hint {
  font-size: var(--text-sm); 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: var(--fw-semibold);
  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: var(--text-base); font-weight: var(--fw-semibold); 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: var(--text-md); 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: var(--text-sm); 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: var(--text-md);
  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: var(--text-md); font-weight: var(--fw-semibold); }

/* Practice claim invite — public broker-sent ownership claim page */
.claim-invite-shell {
  max-width: 760px;
  padding-top: 42px;
}

.claim-invite-card {
  box-shadow:
    0 1px 0 rgba(10, 31, 20, 0.05),
    0 16px 42px rgba(10, 31, 20, 0.08);
}

.claim-invite-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  margin-bottom: 18px;
  border: 1px solid var(--base-border-tertiary);
  border-radius: 999px;
  background: var(--color-gray-50);
  color: var(--base-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}

.claim-invite-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-brand-green);
  box-shadow: 0 0 0 4px rgba(31, 94, 58, 0.12);
}

.claim-invite-summary {
  display: grid;
  border: 1px solid var(--base-border-tertiary);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 18px;
}

.claim-invite-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--base-border-tertiary);
}

.claim-invite-row:last-child {
  border-bottom: 0;
}

.claim-invite-row span {
  color: var(--base-text-tertiary);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.claim-invite-row strong {
  min-width: 0;
  color: var(--color-gray-950);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.claim-invite-email {
  font-family: var(--font-mono);
  font-size: var(--text-base) !important;
  font-weight: var(--fw-semibold) !important;
}

.claim-invite-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: var(--text-sm) !important;
}

.claim-invite-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.claim-invite-status.is-ready {
  background: #ecfdf5;
  color: #065f46 !important;
}

.claim-invite-status.is-blocked {
  background: #fffbeb;
  color: #92400e !important;
}

.claim-invite-message {
  margin-bottom: 0;
}

.claim-invite-message strong,
.claim-invite-message span {
  display: block;
}

.claim-invite-message strong {
  margin-bottom: 2px;
  color: currentColor;
  font-size: var(--text-md);
}

.claim-invite-message span {
  line-height: 1.5;
}

.claim-invite-code-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.claim-invite-code-form .form-group {
  flex: 1 1 220px;
  margin-bottom: 0;
}

.claim-invite-code {
  max-width: 220px;
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  letter-spacing: .14em;
  font-weight: var(--fw-bold);
}

.claim-invite-actions form {
  margin: 0;
}

.claim-invite-footnote {
  color: var(--base-text-tertiary);
  font-size: var(--text-base);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .claim-invite-shell {
    padding-top: 24px;
  }

  .claim-invite-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px 14px;
  }

  .claim-invite-code-form {
    align-items: stretch;
    flex-direction: column;
  }

  .claim-invite-code {
    max-width: none;
  }

  .claim-invite-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .claim-invite-actions .onb-foot__left {
    width: 100%;
    margin-right: 0;
  }

  .claim-invite-actions .btn,
  .claim-invite-actions form,
  .claim-invite-actions form .btn,
  .claim-invite-actions form input[type="submit"] {
    width: 100%;
  }
}
.email-verification-banner__body p { margin: 2px 0 0; font-size: var(--text-base); 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: var(--text-base); line-height: 1.5; }
.text-lg  { font-size: var(--text-xl); line-height: 1.4; }
.text-xl  { font-size: var(--text-xl); font-weight: var(--fw-semibold); line-height: 1.3; }
.text-2xl { font-size: var(--text-2xl); font-weight: var(--fw-bold); line-height: 1.25; letter-spacing: -0.01em; }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold     { font-weight: var(--fw-bold); }
.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 */ }

/* Save & exit flash message */
.onboarding-flash {
  max-width: 56rem;
  margin: 1rem auto 0;
  padding: .625rem 1rem;
  border-radius: .5rem;
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
}
.onboarding-flash--alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

/* ============================================================
   MOBILE TYPE SCALE (phones + native app, <=640px)
   textZoom is pinned to 100 in the app, so CSS px render 1:1, and
   the device's wide (~448px) viewport reads small. This is the
   readable mobile scale for the logged-out wizard — applied here in
   one place (desktop typography is untouched above this breakpoint):
     eyebrow 12 · caption/hint 13 · label 15 · body/field 16 ·
     sub-title/question 18 · title 22.
   (Card eyebrow/title live in the <=880 compact block; reveal stat
   tiles in their own <=640 block — both already bumped to this scale.)
   ============================================================ */
@media (max-width: 640px) {
  .onboarding-card .card-body .field > label { font-size: var(--text-lg); }
  .onboarding-card .card-body .field .hint { font-size: var(--text-base); }
  .onb-textarea { font-size: var(--text-lg); }
  /* Signup modal + any form-control field on these pages: 16px reads well and
     avoids mobile input zoom (label stays 13). */
  .form-control { font-size: var(--text-lg); }
  .vp-field-btn__hint { font-size: var(--text-base); }
  .vp-sheet-opt__title { font-size: var(--text-lg); }
  .vp-sheet-opt__sub { font-size: var(--text-base); }
  .sent-q { font-size: var(--text-xl); }
  .sent-help { font-size: var(--text-md); }
  .opt .opt-desc { font-size: var(--text-base); }
}

/* ---------- BUYER ALERT ZONES (step 2 preferences) ---------- */
.onb-alert--error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: var(--text-base);
}
.onb-alert--error ul { margin: 0; padding-left: 18px; }

.onb-zones-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.onb-zones-head > div { min-width: 0; }

.onb-btn--sm { height: 36px; padding: 0 12px; font-size: var(--text-base); border-radius: 10px; flex-shrink: 0; }
.onb-btn--sm .onb-ic { width: 15px; height: 15px; flex: 0 0 15px; }

.onb-zones-list { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.onb-zones-list:empty { margin: 0; }

.onb-zone-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.onb-zone-row.hidden { display: none; }

.onb-zone-field { display: flex; flex-direction: column; gap: 5px; }
.onb-zone-field > label { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--base-text-secondary); }
.onb-zone-field--place { flex: 1 1 auto; min-width: 0; }
.onb-zone-field--radius { flex: 0 0 130px; }

.onb-zone-remove {
  flex: 0 0 auto;
  height: 44px; width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--base-border-tertiary);
  background: #fff;
  color: var(--base-text-tertiary);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.onb-zone-remove:hover { border-color: #fca5a5; color: #dc2626; background: #fef2f2; }

.onb-zones-map {
  position: relative;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--base-border-tertiary);
  background: var(--color-gray-50, #fafafa);
}
.onb-zones-map__canvas { height: 240px; width: 100%; }
.onb-zones-map__empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  font-size: var(--text-base);
  color: var(--base-text-tertiary);
  background: color-mix(in oklab, var(--color-gray-50, #fafafa), transparent 8%);
}
.onb-zones-map__empty.flex { display: flex; }

@media (max-width: 560px) {
  .onb-zone-field--place { flex: 1 1 100%; }
  .onb-zone-field--radius { flex: 1 1 auto; }
  .onb-zones-map__canvas { height: 200px; }
}
