/* Onboard a client (desk-onboard.js pageOnboard, .d-ob) and the per-client onboarding facts panel
   (onboardingFacts, .d-obp). Builds on desk.css: d-card, d-field, d-chip, d-chipbtn, d-seg,
   d-switch, d-btn. Two columns on the page: the five steps, then a sticky pay card + checklist. */

/* ---------- shared ---------- */
.d-ob__tight { gap: 6px; }
.d-ob__toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.d-ob__toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--rust-600); flex: none; }
.d-ob .d-switch:disabled, .d-obp .d-switch:disabled { opacity: .45; cursor: default; }
.d-ob__ferr { font-size: 12.5px; color: var(--warn-ink); }
.d-ob__formerr { font-size: 13.5px; }
.d-ob__chiplink { text-decoration: none; }
.d-ob__chiplink:hover { box-shadow: inset 0 0 0 1px var(--ink-900); }
.d-ob__date { width: auto; max-width: 200px; }
.d-ob__inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-ob__inlinef { display: flex; flex-direction: column; gap: 4px; }
.d-ob__more { border-top: 1px solid var(--line); padding-top: 10px; }
.d-ob__more > summary { cursor: pointer; font: 600 13px var(--d-chrome); color: var(--rust-600); list-style: none; }
.d-ob__more > summary::-webkit-details-marker { display: none; }
.d-ob__more > summary::before { content: "+ "; }
.d-ob__more[open] > summary::before { content: "− "; }
.d-ob__morebody { margin-top: 10px; }
.d-ob__copywrap { display: flex; flex-direction: column; gap: 6px; }
.d-ob__copy { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(31, 26, 22, .05); min-width: 0; }
.d-ob__copy code { flex: 1; min-width: 0; font: 500 12px var(--mono); overflow-wrap: anywhere; }
.d-ob .d-textmsg, .d-obp .d-textmsg { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.d-ob .d-textmsg__body, .d-obp .d-textmsg__body { margin: 0; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--sand-50); font-size: 14px; line-height: 1.45; box-shadow: inset 0 0 0 1px var(--line); }
.d-ob-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the page ---------- */
.d-ob__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1180px) { .d-ob__grid { grid-template-columns: minmax(0, 1fr) 290px; } }
.d-ob__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.d-ob__side { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.d-ob__saved { margin: 0; padding: 0 4px; min-height: 18px; }
.d-ob__sec { gap: 14px; padding: 18px 20px; }
.d-ob__sechead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.d-ob__sectext { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-ob__sectext .d-meta { margin: 0; }
.d-ob__h2 { margin: 0; font: 400 26px/.95 var(--display); text-transform: uppercase; }
.d-ob__banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--sage-100); color: var(--sage-ink); font-size: 14px; }
.d-ob__banner p { margin: 0; }
.d-ob__fields4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

/* 2 · website */
.d-ob__search { display: flex; align-items: center; gap: 12px; }
.d-ob__search .d-search { max-width: none; }
.d-ob__pvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; max-height: 520px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.d-ob__pvs > .d-empty { grid-column: 1 / -1; }
.d-ob__pv { display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 0; border-radius: 14px; background: var(--d-box); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: left; font: inherit; color: var(--ink-900); min-width: 0; }
.d-ob__pv:hover, .d-ob__pv:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ink-900); outline: 0; }
.d-ob__pv.is-on { box-shadow: inset 0 0 0 2px var(--rust-600); }
.d-ob__pvphone { display: flex; flex-direction: column; align-items: center; gap: 5px; height: 104px; margin-bottom: 6px; padding: 10px; border-radius: 10px; background: var(--ink-900); }
.d-ob__pvimg { width: 100%; flex: 1; border-radius: 6px; background: linear-gradient(135deg, var(--rust-400), var(--sand-500)); }
.d-ob__pvname { max-width: 100%; font: 400 11px var(--display); text-transform: uppercase; color: var(--sand-100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-ob__pvbtn { width: 50%; height: 7px; border-radius: 99px; background: var(--rust-600); }
.d-ob__pvtitle { font-size: 14px; font-weight: 600; }
.d-ob__pvhost { overflow-wrap: anywhere; }
.d-ob__pvrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: var(--d-box); box-shadow: inset 0 0 0 1.5px var(--ink-900); }
.d-ob__pvthumb { width: 52px; height: 68px; flex: none; border-radius: 8px; background: linear-gradient(160deg, var(--ink-900) 40%, var(--rust-600)); }
.d-ob__pvwho { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.d-ob__pvrowname { font: 400 20px/1 var(--display); text-transform: uppercase; }
.d-ob__lives { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(31, 26, 22, .05); }
.d-ob__lives p { margin: 0; }

/* 3 · plan */
.d-ob__pf { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(31, 26, 22, .05); }
.d-ob__pf.is-on { background: var(--sage-100); }
.d-ob__pf .d-meta { margin: 0; }
.d-ob__pcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding-top: 10px; }
.d-ob__pc { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; border-radius: 16px; background: var(--d-box); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.d-ob__pc:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.d-ob__pc.is-on { box-shadow: 0 0 0 3px var(--rust-600); }
.d-ob__pc--star { background: var(--ink-900); color: var(--sand-100); box-shadow: none; }
.d-ob__pc p { margin: 0; }
.d-ob__pcbadge { position: absolute; top: -11px; left: 14px; }
.d-ob__pcname { margin: 0; font: 400 22px/1 var(--display); text-transform: uppercase; }
.d-ob__radio { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .6; }
.d-ob__radio.is-on { opacity: 1; box-shadow: inset 0 0 0 5px var(--rust-600); }
.d-ob__pcprice span { font: 400 36px/1 var(--display); }
.d-ob__pcprice small { margin-left: 3px; font: 500 13px var(--body); opacity: .7; }
.d-ob__pcsetup { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.d-ob__pc--star .d-ob__pcsetup { color: var(--ink-300); }
.d-ob__pcpitch { font-size: 13.5px; }
.d-ob__ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.d-ob__ticks li { position: relative; padding-left: 18px; }
.d-ob__ticks li::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; color: var(--sage-600); }
.d-ob__pc--star .d-ob__ticks li::before { color: var(--sage-400); }
.d-ob__ticks li.is-bold { font-weight: 700; }
.d-ob__pccta { margin-top: auto; align-self: flex-start; pointer-events: none; }
.d-ob__pc--star .d-ob__pccta:not(.d-btn--primary) { background: rgba(251, 247, 240, .14); color: var(--sand-50); }
.d-ob__custom { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 14px; border-radius: 14px; background: rgba(31, 26, 22, .05); }
.d-ob__custom > .d-ob__ferr { grid-column: 1 / -1; }
.d-ob__billing { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.d-ob__billing .d-meta { margin: 0; }
@media (max-width: 1180px) { .d-ob__billing, .d-ob__custom { grid-template-columns: 1fr; } }

/* 4 · add-ons */
.d-ob__acs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.d-ob__ac { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--d-box); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.d-ob__ac:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.d-ob__ac.is-on { background: var(--sand-50); box-shadow: inset 0 0 0 1.5px var(--ink-900); }
.d-ob__ac p { margin: 0; }
.d-ob__actop { align-items: flex-start; }
.d-ob__acname { margin: 0; font: 700 15px var(--body); }
.d-ob__actop .d-switch { pointer-events: none; }
.d-ob__acdesc { font-size: 13.5px; color: var(--ink-600); }
.d-ob__acask { font: 500 11.5px var(--mono); color: var(--sage-ink); }
.d-ob__acprice { font: 600 12px var(--mono); }
.d-ob__accontrols { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); cursor: default; }
.d-ob__stepper { display: inline-flex; align-items: center; gap: 10px; }
.d-ob__stepn { font: 600 13px var(--body); min-width: 80px; text-align: center; }

/* 5 · email + text */
.d-ob__codes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 1180px) { .d-ob__codes { grid-template-columns: 1fr; } }
.d-ob__email, .d-ob__text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 14px; background: var(--d-box); min-width: 0; }
.d-ob__email p, .d-ob__text p { margin: 0; }
.d-ob__email.is-off { opacity: .8; }
.d-ob__sent { font: 400 22px var(--display); text-transform: uppercase; color: var(--sage-600); }
.d-ob__missing { font-size: 12.5px; color: var(--warn-ink); }
.d-ob__ep { border-radius: 14px; overflow: hidden; background: rgba(31, 26, 22, .05); box-shadow: inset 0 0 0 1px var(--line); }
.d-ob__ephead { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--sand-50); border-bottom: 1px solid var(--line); font-size: 14px; }
.d-ob__epcard { margin: 16px; max-width: 520px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; background: var(--sand-50); font: 400 14px/1.5 var(--body); }
.d-ob__epcard p { margin: 0; }
.d-ob__eptitle { font: 400 24px/1 var(--display); text-transform: uppercase; }
.d-ob__epbtn { align-self: flex-start; pointer-events: none; }

/* the pay card (page + panel) */
.d-ob__pay, .d-ob__paycard { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 18px; background: var(--ink-900); color: var(--sand-100); }
.d-ob__pay p, .d-ob__paycard p { margin: 0; }
.d-ob__pay .d-label, .d-ob__paycard .d-label { color: var(--ink-300); }
.d-ob__pay .d-ob__paylabel, .d-ob__paycard .d-ob__paylabel { color: var(--rust-400); }
.d-ob__paybiz { font: 400 24px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.d-ob__paymeta { font-size: 12.5px; color: var(--ink-300); }
.d-ob__payfor { overflow-wrap: anywhere; }
.d-ob__lines { display: flex; flex-direction: column; margin-top: 4px; border-top: 1px solid var(--line-dark); }
.d-ob__line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-dark); font-size: 13.5px; }
.d-ob__line > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-ob__lineamt { text-align: right; flex: none; }
.d-ob__totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 6px; }
.d-ob__total { font: 400 30px/1.05 var(--display); }
.d-ob__total--rust { color: var(--rust-400); }
.d-ob__sentence { font-size: 13.5px; line-height: 1.45; color: var(--sand-200); }
.d-ob__payline { font: 500 19px/1.35 var(--body); }
.d-ob__paynotes { padding-top: 10px; border-top: 1px solid var(--line-dark); font: 400 12px var(--mono); color: var(--ink-300); }
.d-ob__paycard .d-btn, .d-ob__btnlight { align-self: flex-start; background: rgba(251, 247, 240, .14); color: var(--sand-50); }
.d-ob__paycard .d-btn:hover, .d-ob__btnlight:hover { background: rgba(251, 247, 240, .24); color: var(--sand-50); }

/* checklist */
.d-ob__check { gap: 8px; }
.d-ob__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.d-ob__checks li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-600); }
.d-ob__checks li:first-child { border-top: 0; }
.d-ob__checks li.is-ok { color: var(--ink-900); }
.d-ob__checkbox { width: 18px; height: 18px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink-300); }
.d-ob__checks li.is-ok .d-ob__checkbox { background: var(--sage-600); color: var(--sand-50); box-shadow: none; }

/* ---------- the onboarding facts panel ---------- */
.d-obp { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; padding: 18px 20px; scroll-margin-top: 72px; }
@media (max-width: 1240px) { .d-obp { grid-template-columns: 1fr; gap: 18px; } }
.d-obp__left, .d-obp__right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.d-obp__name { margin: 0 0 6px; font: 400 30px/.95 var(--display); text-transform: uppercase; }
.d-obp__form { gap: 14px; }
.d-obp__fields2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.d-obp__fields3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.d-obp__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.d-obp__fact { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.d-obp__after { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1.5px solid var(--ink-900); }
.d-obp__after > p { margin: 0; }
.d-obp__h4 { margin: 0; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-900); }
.d-obp__terms { margin: 0; padding: 12px; border-radius: 12px; background: rgba(31, 26, 22, .05); font-size: 13px; line-height: 1.5; color: var(--ink-600); white-space: pre-wrap; }
.d-obp__emails, .d-obp__files { list-style: none; margin: 0; padding: 0; }
.d-obp__emails li, .d-obp__files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.d-obp__emails li:first-child, .d-obp__files li:first-child { border-top: 0; }
.d-obp__emails li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.d-obp__emails li > span:last-child { flex: none; text-align: right; }
.d-obp__addon { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.d-obp__addon .d-meta { margin: 0; }
.d-obp__addondetails { display: flex; flex-direction: column; gap: 8px; }
.d-obp__addondetails:empty { display: none; }
.d-obp__qty { width: 80px; }
.d-obp__addonrow { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.d-obp__addonrow:first-of-type { border-top: 0; }
.d-obp__addonrow p { margin: 0; }
.d-obp__tools { display: flex; flex-direction: column; gap: 6px; }
.d-obp__tools:empty { display: none; }
.d-obp__tools > .d-link { align-self: flex-start; }
.d-obp__domain { padding: 8px 0; border-top: 1px solid var(--line); }
.d-obp__confirm { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--ochre-100); }
.d-obp__confirm p { margin: 0; }

/* the Spanish and Brand kit sheets */
.d-ob-sheet { width: 760px; }
.d-ob-sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 12px; position: sticky; top: 0; z-index: 1; background: rgba(251, 247, 240, .96); }
.d-ob-sheet__body { padding: 4px 24px 24px; display: flex; flex-direction: column; gap: 14px; font-family: var(--body); }
.d-ob-sheet__body p { margin: 0; }
.d-obp__tr { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.d-obp__tr.is-todo { border-left: 3px solid var(--ochre); padding-left: 10px; }
.d-obp__tren { font-size: 14px; color: var(--ink-600); }
.d-obp__tres { width: 100%; resize: vertical; padding: 8px 12px; border: 0; border-radius: 8px; background: rgba(31, 26, 22, .05); font: 400 14px var(--body); outline: 0; }
.d-obp__tres:focus { box-shadow: inset 0 0 0 1.5px var(--ink-900); }
.d-obp__swatch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-transform: capitalize; }
.d-obp__swatch input[type="color"] { width: 40px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.d-ob__file { position: relative; align-self: flex-start; cursor: pointer; }
