/* =========================================================
   RAIZE — ONBOARDING JOURNEYS (Agent A, prefix "onb-")
   Source: Claude Design "Onboarding Investidor Particular" /
   "Onboarding Investidor Coletivo". Used by /register,
   /register-investor and /investor/identity-validation.
   Depends on raize-ds-tokens.css (loaded before).
   ========================================================= */

@keyframes onbStepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes onbSpin { to { transform: rotate(360deg); } }
@keyframes onbPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(41, 77, 151, .28); }
    70% { box-shadow: 0 0 0 16px rgba(41, 77, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(41, 77, 151, 0); }
}

/* ---------- SHELL ---------- */
.onb-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--grey-50, #F4F5F7);
    font-family: 'Public Sans', system-ui, sans-serif;
    color: var(--raize-ink, #22221F);
    -webkit-font-smoothing: antialiased;
}
.onb-page a { text-decoration: none; color: var(--blue-600); }
.onb-page a:hover { color: var(--blue-700); }
.onb-page input:focus-visible,
.onb-page select:focus-visible,
.onb-page button:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 1px; }

.onb-header { background: #fff; border-bottom: 1px solid var(--grey-125); }
.onb-header-inner {
    max-width: 1080px; margin: 0 auto; padding: 0 28px; height: 70px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.onb-header-brand { color: var(--raize-ink) !important; }
.onb-header-right { display: flex; align-items: center; gap: 22px; }
.onb-secure { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--grey-700); }
.onb-secure-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.onb-header-link { font-size: 14px; font-weight: 600; color: var(--grey-700) !important; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.onb-header-link:hover { color: var(--raize-ink) !important; }

.onb-main { flex: 1; padding: 44px 28px 64px; }
.onb-container { max-width: 760px; margin: 0 auto; }
.onb-container.is-wide { max-width: 1000px; }
.onb-step { animation: onbStepIn .45s cubic-bezier(.16, .84, .44, 1) both; position: relative; }

/* ---------- STEPPER ---------- */
.onb-stepper-bar { background: #fff; border-bottom: 1px solid var(--grey-125); }
.onb-stepper { max-width: 1080px; margin: 0 auto; padding: 22px 28px; display: flex; align-items: center; flex-wrap: wrap; row-gap: 12px; }
.onb-stepper-item { display: flex; align-items: center; flex: 1 1 auto; min-width: max-content; }
.onb-stepper-item.is-last { flex: 0 0 auto; }
.onb-stepper-head { display: flex; align-items: center; gap: 11px; flex: none; }
.onb-stepper-dot {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    background: #fff; color: var(--grey-600); border: 2px solid var(--grey-150);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 14px; transition: all .3s;
}
.onb-stepper-label { font-size: 13.5px; font-weight: 600; color: var(--grey-600); white-space: nowrap; }
.onb-stepper-line { flex: 1 1 0; height: 2px; background: var(--grey-125); margin: 0 12px; min-width: 8px; transition: background .3s; }
.onb-stepper-item.is-current .onb-stepper-dot { background: var(--raize-yellow); border-color: var(--raize-yellow); color: var(--raize-ink); }
.onb-stepper-item.is-current .onb-stepper-label { color: var(--grey-950); font-weight: 700; }
.onb-stepper-item.is-done .onb-stepper-dot { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.onb-stepper-item.is-done .onb-stepper-label { color: #157F56; }
.onb-stepper-item.is-done .onb-stepper-line { background: var(--green-500); }

/* ---------- HEADINGS ---------- */
.onb-head { margin-bottom: 26px; }
.onb-head.is-center { text-align: center; margin-bottom: 28px; }
.onb-h1 {
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(24px, 2.7vw, 31px);
    letter-spacing: -.6px; color: var(--grey-950); margin: 0 0 9px;
}
.onb-head.is-center .onb-h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.onb-lead { font-size: 16px; color: var(--grey-700); line-height: 1.55; max-width: 680px; margin: 0; }
.onb-head.is-center .onb-lead { font-size: 16.5px; max-width: 600px; margin: 0 auto; }
.onb-eyebrow-pill {
    display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--grey-150);
    border-radius: 100px; padding: 7px 15px; font-size: 12.5px; font-weight: 700; color: var(--blue-600); margin-bottom: 16px;
}
.onb-eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
.onb-eyebrow-pill.tone-green { border-color: var(--green-250); color: var(--green-700); font-weight: 800; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 14px; }
.onb-eyebrow-pill.tone-green .dot { background: var(--green-700); }
.onb-eyebrow-pill.tone-amber { border-color: var(--raize-yellow-300); color: var(--raize-yellow-ink); font-weight: 800; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 14px; }
.onb-eyebrow-pill.tone-amber .dot { background: var(--raize-yellow-ink); }

/* ---------- CARD ---------- */
.onb-card {
    background: #fff; border: 1px solid var(--grey-125); border-radius: 18px; padding: 32px;
    box-shadow: 0 12px 34px -22px rgba(24, 26, 31, .28);
}
.onb-card.is-roomy { padding: 34px; }
.onb-card + .onb-card { margin-top: 20px; }
.onb-card.is-center { text-align: center; padding: 44px; }
.onb-card-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 19px; color: var(--grey-950); margin-bottom: 6px; }
.onb-card-text { font-size: 14.5px; color: var(--grey-600); line-height: 1.6; margin: 0 0 24px; }
.onb-section-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 16px; color: var(--grey-950); }
.onb-section-title.is-lg { font-size: 17px; }
.onb-sub-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 16.5px; color: var(--grey-950); margin-bottom: 4px; }
.onb-divider-top { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--grey-80); }
.onb-entity-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.onb-entity-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--raize-yellow-150); color: var(--raize-yellow-700); }
.onb-entity-icon.tone-blue { background: var(--blue-100); color: var(--blue-600); }
.onb-entity-sub { font-size: 14px; color: var(--grey-600); }

/* ---------- INPUTS ---------- */
.onb-input {
    display: block; background: var(--grey-40); border: 1px solid var(--grey-150); border-radius: 11px; padding: 10px 14px;
    transition: background .25s, border-color .25s; min-width: 0;
}
.onb-input.is-lg { padding: 11px 15px; }
.onb-input-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--grey-600); margin-bottom: 2px; }
.onb-input.is-lg .onb-input-label { margin-bottom: 3px; }
.onb-input-row { display: flex; align-items: center; gap: 8px; }
.onb-input input,
.onb-input select {
    width: 100%; border: none; background: transparent; font-size: 15.5px; font-weight: 500; padding: 2px 0;
    color: var(--grey-950); font-family: inherit; outline: none; min-width: 0;
}
.onb-input.is-lg input { font-size: 16px; }
.onb-input select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.onb-input input::placeholder { color: #9AA0A8; }
.onb-input-caret { flex: none; color: var(--grey-600); font-size: 12px; }
.onb-input.tone-pre { background: var(--green-50); border-color: var(--green-250); }
.onb-input.tone-pre .onb-input-label { color: var(--green-700); }
.onb-input.tone-edited { background: var(--raize-yellow-50); border-color: var(--raize-yellow-300); }
.onb-input.tone-edited .onb-input-label { color: var(--raize-yellow-800); }
.onb-input.tone-white { background: #fff; }
.onb-input.has-error { border-color: var(--red-500); }
.onb-input-badge {
    flex: none; width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: var(--green-700); background: var(--green-150);
}
.onb-input-badge.is-edited { color: var(--raize-yellow-800); background: var(--raize-yellow-100); }
.onb-field-error { font-size: 12px; font-weight: 600; color: var(--red-800); margin-top: 4px; }

.onb-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.onb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.onb-grid-2.is-narrow { max-width: 560px; }
.onb-span-1 { grid-column: span 1; }
.onb-span-2 { grid-column: span 2; }
.onb-span-3 { grid-column: span 3; }
.onb-stack { display: flex; flex-direction: column; gap: 16px; }
.onb-stack.is-tight { gap: 14px; }

.onb-legend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.onb-legend-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--grey-600); }
.onb-legend-item.is-pre { color: var(--green-700); }
.onb-legend-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--grey-40); border: 1px solid var(--grey-200); }

/* ---------- PASSWORD METER ---------- */
.onb-pw-track { height: 4px; background: var(--grey-125); border-radius: 100px; overflow: hidden; margin-top: 9px; }
.onb-pw-fill { height: 100%; width: 0; background: var(--grey-600); transition: width .3s, background .3s; }
.onb-pw-label { display: block; font-size: 12px; font-weight: 600; margin-top: 5px; min-height: 18px; color: var(--grey-600); }
.onb-pw.s-1 .onb-pw-fill { width: 28%; background: var(--red-500); }
.onb-pw.s-1 .onb-pw-label { color: var(--red-500); }
.onb-pw.s-2 .onb-pw-fill { width: 55%; background: var(--raize-yellow); }
.onb-pw.s-2 .onb-pw-label { color: var(--raize-yellow-ink); }
.onb-pw.s-3 .onb-pw-fill { width: 80%; background: #157F56; }
.onb-pw.s-3 .onb-pw-label { color: #157F56; }
.onb-pw.s-4 .onb-pw-fill { width: 100%; background: #157F56; }
.onb-pw.s-4 .onb-pw-label { color: #157F56; }

/* ---------- CHECKBOXES ---------- */
.onb-checks { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 26px; }
.onb-checks.is-declarations { gap: 11px; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--grey-80); }
.onb-check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.55; color: var(--grey-800); }
.onb-check.is-center { align-items: center; font-size: 14.5px; }
.onb-check.is-strong { align-items: center; font-size: 14.5px; font-weight: 600; color: var(--grey-950); margin-top: 14px; }
.onb-check.is-relaxed { font-size: 14.5px; line-height: 1.6; }
.onb-check input[type="checkbox"] { flex: none; width: 19px; height: 19px; margin-top: 1px; accent-color: var(--raize-yellow); cursor: pointer; }
.onb-check.is-center input[type="checkbox"],
.onb-check.is-strong input[type="checkbox"] { margin-top: 0; }
.onb-reveal { margin: 4px 0 6px 30px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- BUTTONS ---------- */
.onb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Public Sans', sans-serif; font-weight: 800; font-size: 15.5px; padding: 14px 26px;
    border-radius: 11px; cursor: pointer; text-decoration: none; transition: transform .2s, filter .2s, border-color .2s;
    border: none; line-height: 1.2;
}
.onb-btn:hover:not([disabled]) { transform: translateY(-1px); }
.onb-btn[disabled] { cursor: not-allowed; }
.onb-btn-primary { background: var(--raize-yellow); color: var(--raize-ink) !important; }
.onb-btn-primary.is-dim { opacity: .55; }
.onb-btn-primary[disabled] { opacity: .55; }
.onb-btn-block { width: 100%; font-size: 16.5px; padding: 17px; border-radius: 12px; box-shadow: 0 10px 24px -8px rgba(251, 202, 19, .55); }
.onb-btn-ghost { background: #fff; color: var(--raize-ink) !important; font-weight: 700; padding: 14px 24px; border: 1.5px solid var(--grey-200); }
.onb-btn-ghost:hover:not([disabled]) { border-color: var(--grey-500); }
.onb-btn-link {
    background: none; border: none; font-family: 'Public Sans', sans-serif; font-weight: 700; font-size: 14.5px;
    color: var(--grey-600); text-decoration: underline; cursor: pointer; padding: 6px 0;
}
.onb-btn-link.is-blue { color: var(--blue-600); font-size: 14px; padding: 10px 0 0; }
.onb-btn-outline-green {
    flex: none; background: #fff; border: 1.5px solid #B4DDC9; color: var(--green-700); font-family: 'Public Sans', sans-serif;
    font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 9px; cursor: pointer;
}
.onb-btn-small {
    background: #fff; border: 1.5px solid var(--grey-200); color: var(--raize-ink); font-family: 'Public Sans', sans-serif;
    font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 9px; cursor: pointer;
}
.onb-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(34, 34, 31, .25); border-top-color: var(--raize-ink); animation: onbSpin .8s linear infinite; }
.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.onb-actions.is-top-line { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--grey-80); }
.onb-actions-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.onb-actions-right.is-tight { gap: 12px; }
.onb-actions-hint { display: flex; align-items: center; font-size: 14px; color: var(--grey-600); font-weight: 600; }
.onb-foot-note { text-align: center; font-size: 13px; color: var(--grey-600); margin-top: 14px; }

/* ---------- SELECTION CARDS ---------- */
.onb-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.onb-choice {
    display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px;
    background: #fff; border: 2px solid var(--grey-150); border-radius: 14px; padding: 28px 24px; cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s; font-family: inherit; color: inherit; width: 100%;
}
.onb-choice:hover { transform: translateY(-1px); }
.onb-choice.is-selected { background: var(--raize-yellow-50); border-color: var(--raize-yellow); box-shadow: 0 8px 22px -14px rgba(24, 26, 31, .3); }
.onb-choice.is-hint { border-color: var(--raize-yellow); }
.onb-choice.is-compact { padding: 15px 17px; flex-direction: row; align-items: center; gap: 12px; }
.onb-choice.is-method { padding: 24px; }
.onb-choice-icon {
    width: 64px; height: 64px; border-radius: 50%; border: 2px solid #C2C7CE; color: #C2C7CE;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.onb-choice.is-selected .onb-choice-icon { border-color: var(--raize-yellow-700); color: var(--raize-yellow-700); }
.onb-choice-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 19px; color: var(--grey-950); margin-bottom: 8px; }
.onb-choice.is-method .onb-choice-title { font-size: 18px; }
.onb-choice.is-compact .onb-choice-title { font-size: 15.5px; margin: 0; }
.onb-choice-text { font-size: 14.5px; line-height: 1.55; color: var(--grey-600); }
.onb-choice.is-compact .onb-choice-text { font-size: 13px; }
.onb-method-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 16px; }
.onb-method-badge {
    width: 50px; height: 50px; border-radius: 13px; background: var(--blue-100); color: var(--blue-600);
    display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 15px;
}
.onb-method-badge.tone-yellow { background: var(--raize-yellow-150); color: var(--raize-yellow-700); font-size: 22px; }
.onb-method-pill { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--green-500); background: var(--green-100); padding: 5px 10px; border-radius: 100px; }
.onb-method-pill.tone-grey { color: var(--grey-600); background: var(--grey-60); }
.onb-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.onb-method-grid.is-inline { gap: 16px; margin-bottom: 0; }
.onb-method-grid.is-inline .onb-choice.is-method { padding: 22px; }
.onb-method-grid.is-inline .onb-method-badge { width: 48px; height: 48px; font-size: 14px; }
.onb-method-grid.is-inline .onb-choice-title { font-size: 17px; }
.onb-method-grid.is-inline .onb-choice-text { font-size: 14px; }
.onb-subpanel { background: var(--grey-20); border: 1px solid var(--grey-90); border-radius: 14px; padding: 24px; margin-top: 18px; animation: onbStepIn .4s both; }

/* ---------- CAPTURE TILES ---------- */
.onb-capture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.onb-capture {
    position: relative; border: 2px dashed var(--grey-200); background: var(--grey-20); border-radius: 14px;
    padding: 22px 18px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; display: block;
}
.onb-capture:hover { border-color: var(--grey-500); }
.onb-capture.is-done { border-style: solid; border-color: var(--green-250); background: var(--green-50); }
.onb-capture.is-white { background: #fff; }
.onb-capture input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.onb-capture-icon {
    width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--grey-150);
    display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--grey-600); margin: 0 auto 13px;
}
.onb-capture-title { font-weight: 700; font-size: 15px; color: var(--grey-950); margin-bottom: 5px; }
.onb-capture-hint { font-size: 13px; line-height: 1.5; color: var(--grey-600); margin-bottom: 14px; }
.onb-capture-action { font-size: 13.5px; font-weight: 700; color: var(--blue-600); word-break: break-word; }
.onb-capture.is-done .onb-capture-action { color: var(--green-700); }

/* ---------- NOTES / CALLOUTS ---------- */
.onb-note {
    display: flex; gap: 12px; align-items: flex-start; background: var(--grey-40); border-radius: 12px; padding: 15px 17px;
    margin-top: 20px; font-size: 13.5px; line-height: 1.6; color: var(--grey-600);
}
.onb-note.is-narrow { max-width: 560px; }
.onb-note-i { flex: none; color: var(--blue-600); font-weight: 800; }
.onb-note.tone-amber { background: var(--raize-yellow-50); border: 1px solid var(--raize-yellow-300); color: var(--raize-yellow-800); margin-top: 12px; }
.onb-note.tone-amber .onb-note-i { color: inherit; }
.onb-warn {
    font-size: 13.5px; font-weight: 600; color: var(--raize-yellow-ink); background: var(--raize-yellow-50);
    border: 1px solid var(--raize-yellow-300); border-radius: 10px; padding: 12px 14px; margin: 16px 0 0;
}
.onb-warn ul { margin: 6px 0 0 18px; padding: 0; }
.onb-error {
    font-size: 13.5px; font-weight: 600; color: var(--red-800); background: #FDF1EE; border: 1px solid var(--red-150);
    border-radius: 10px; padding: 12px 14px; margin: 16px 0 0;
}
.onb-small { font-size: 13px; line-height: 1.6; color: var(--grey-600); margin: 20px 0 0; }
.onb-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--green-50); border: 1px solid var(--green-250); border-radius: 13px; padding: 15px 18px; margin-bottom: 20px;
}
.onb-banner-body { display: flex; gap: 12px; align-items: flex-start; min-width: 0; font-size: 14.5px; line-height: 1.55; color: #2C4A3C; }
.onb-banner-body b { color: var(--green-700); }
.onb-banner-tick {
    flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-700); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.onb-explain { background: var(--grey-40); border-radius: 13px; padding: 20px 22px; margin-bottom: 26px; }
.onb-explain p { font-size: 14.5px; line-height: 1.65; color: var(--grey-700); margin: 0 0 12px; }
.onb-explain p:last-child { margin-bottom: 0; }
.onb-explain .onb-section-title { margin-bottom: 10px; }

/* ---------- CRITERIA (YES/NO) ---------- */
.onb-criteria-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.onb-met-pill { font-size: 13.5px; font-weight: 700; color: var(--grey-600); background: var(--grey-60); padding: 6px 13px; border-radius: 100px; }
.onb-met-pill.is-met { color: var(--green-700); background: var(--green-150); }
.onb-criteria { display: flex; flex-direction: column; gap: 22px; }
.onb-criterion { padding-bottom: 22px; border-bottom: 1px solid var(--grey-80); }
.onb-criterion-title { font-weight: 700; font-size: 16px; color: var(--grey-950); margin-bottom: 7px; }
.onb-criterion-text { font-size: 14.5px; line-height: 1.65; color: var(--grey-700); margin: 0 0 14px; }
.onb-yesno { display: flex; gap: 12px; flex-wrap: wrap; }
.onb-radio {
    display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid var(--grey-200); border-radius: 10px;
    padding: 11px 20px; font-family: 'Public Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--raize-ink);
    cursor: pointer; transition: border-color .2s, background .2s;
}
.onb-radio-dot { flex: none; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 1.5px solid #B9BDC4; }
.onb-radio.is-on { background: var(--raize-yellow-50); border-color: var(--raize-yellow); }
.onb-radio.is-on .onb-radio-dot { background: var(--raize-yellow); border-color: var(--raize-yellow); box-shadow: inset 0 0 0 3.5px #fff; }

/* ---------- PROSE ---------- */
.onb-prose p { font-size: 15.5px; line-height: 1.7; color: var(--grey-800); margin: 0 0 16px; }
.onb-prose ul { margin: 0 0 18px 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.onb-prose li { font-size: 15px; line-height: 1.65; color: var(--grey-800); }

/* ---------- RESULT / KV ---------- */
.onb-result {
    display: flex; align-items: center; gap: 18px; background: var(--green-50); border: 1px solid var(--green-250);
    border-radius: 14px; padding: 22px 24px; margin-bottom: 22px;
}
.onb-result-tick { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--green-700); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.onb-overline { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--grey-600); margin-bottom: 5px; }
.onb-result .onb-overline { color: #2C4A3C; margin-bottom: 4px; }
.onb-result-name { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 22px; color: var(--green-700); }
.onb-kv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
.onb-kv-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.onb-kv-k { font-size: 13px; color: var(--grey-600); margin-bottom: 3px; }
.onb-kv-v { font-weight: 700; font-size: 15.5px; color: var(--grey-950); }
.onb-fine { font-size: 13.5px; line-height: 1.65; color: var(--grey-700); margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--grey-80); }

/* ---------- KNOWLEDGE SELECTS ---------- */
.onb-question-label { font-weight: 700; font-size: 15.5px; color: var(--grey-950); margin-bottom: 9px; }
.onb-select {
    position: relative; background: var(--grey-40); border: 1.5px solid var(--grey-150); border-radius: 11px; padding: 4px 12px;
    display: flex; align-items: center; gap: 10px;
}
.onb-select.is-filled { background: var(--green-50); border-color: var(--green-250); }
.onb-select select {
    width: 100%; border: none; background: transparent; font-size: 15px; font-weight: 500; padding: 12px 2px; cursor: pointer;
    appearance: none; -webkit-appearance: none; color: var(--grey-950); font-family: inherit; outline: none; text-overflow: ellipsis;
}
.onb-instruments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }

/* ---------- SIMULATOR ---------- */
.onb-sim-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: start; }
.onb-sim-label { font-weight: 700; font-size: 15.5px; color: var(--grey-950); margin-bottom: 5px; }
.onb-sim-help { font-size: 13.5px; line-height: 1.6; color: var(--grey-600); margin: 0; }
.onb-money {
    display: flex; align-items: center; gap: 8px; background: var(--grey-40); border: 1.5px solid var(--grey-150);
    border-radius: 11px; padding: 12px 14px;
}
.onb-money input {
    width: 100%; border: none; background: transparent; font-size: 16px; font-weight: 600; padding: 0; text-align: right;
    color: var(--grey-950); font-family: inherit; outline: none; min-width: 0;
}
.onb-money span { flex: none; font-weight: 700; color: var(--grey-600); }
.onb-sim-total { align-items: center; background: var(--grey-40); border-radius: 13px; padding: 18px 20px; }
.onb-sim-total.is-green { background: var(--green-50); border: 1px solid var(--green-250); }
.onb-sim-total.is-green .onb-sim-label { color: var(--green-700); margin-bottom: 4px; }
.onb-sim-total.is-green .onb-sim-help { color: #2C4A3C; }
.onb-sim-figure { text-align: right; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 22px; color: var(--grey-950); }
.onb-sim-total.is-green .onb-sim-figure { font-weight: 900; font-size: 24px; color: var(--green-700); }

/* ---------- MODAL ---------- */
.onb-modal-backdrop { position: fixed; inset: 0; background: rgba(24, 26, 31, .55); display: flex; align-items: center; justify-content: center; padding: 28px; z-index: 1400; }
.onb-modal { background: #fff; border-radius: 16px; padding: 32px; max-width: 520px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); }
.onb-modal p { font-size: 15px; line-height: 1.7; color: var(--grey-800); margin: 0 0 16px; }
.onb-modal p:last-of-type { margin-bottom: 26px; }

/* ---------- DONE ---------- */
.onb-done-tick {
    width: 76px; height: 76px; border-radius: 50%; background: var(--green-100); color: var(--green-500);
    display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 22px;
    animation: onbPulseRing 2.2s ease-out infinite;
}
.onb-done-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(25px, 2.9vw, 32px); letter-spacing: -.6px; color: var(--grey-950); margin: 0 0 12px; }
.onb-done-sub { font-size: 16.5px; color: var(--grey-700); line-height: 1.6; max-width: 520px; margin: 0 auto 26px; }
.onb-cat-card { border-radius: 16px; padding: 22px 24px; text-align: left; margin-bottom: 26px; background: var(--raize-yellow-50); border: 1px solid var(--raize-yellow-300); }
.onb-cat-card.is-sof { background: var(--green-50); border-color: var(--green-250); }
.onb-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.onb-cat-name { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; color: var(--raize-yellow-800); }
.onb-cat-pill { font-size: 13.5px; font-weight: 700; color: var(--raize-yellow-800); background: var(--raize-yellow-100); padding: 7px 14px; border-radius: 100px; }
.onb-cat-card.is-sof .onb-cat-name,
.onb-cat-card.is-sof .onb-cat-pill { color: var(--green-700); }
.onb-cat-card.is-sof .onb-cat-pill { background: var(--green-150); }
.onb-cat-kv { padding-top: 16px; border-top: 1px solid rgba(24, 26, 31, .09); }
.onb-cat-note { font-size: 13.5px; line-height: 1.6; color: var(--grey-700); margin: 16px 0 0; }
.onb-cat-warn { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--raize-yellow-300); border-radius: 12px; padding: 15px 17px; margin-top: 14px; }
.onb-cat-warn p { font-size: 13.5px; line-height: 1.65; color: var(--grey-800); margin: 0; }
.onb-cat-warn-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--raize-yellow-100); color: var(--raize-yellow-800); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.onb-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; margin-bottom: 26px; }
.onb-tile { background: var(--grey-40); border: 1px solid var(--grey-90); border-radius: 14px; padding: 20px; }
.onb-tile-title { font-weight: 700; font-size: 15.5px; color: var(--grey-950); margin-bottom: 8px; }
.onb-tile-text { font-size: 13.5px; line-height: 1.6; color: var(--grey-700); }
.onb-done-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- BENEFICIARIES ---------- */
.onb-ben-list { display: flex; flex-direction: column; gap: 12px; }
.onb-ben { background: var(--grey-20); border: 1px solid var(--grey-90); border-radius: 14px; padding: 18px; }
.onb-ben-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.onb-ben-n { font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--grey-600); }
.onb-ben-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.onb-ben-grid .onb-input { padding: 9px 13px; border-radius: 10px; }
.onb-ben-grid .onb-input input { font-size: 15px; }
.onb-ben-grid .onb-input:not(.tone-pre):not(.tone-edited) { background: #fff; }

/* ---------- CHIPS ---------- */
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--grey-60); border-radius: 100px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--grey-800); }
.onb-chip button { background: none; border: none; cursor: pointer; color: var(--grey-600); font-weight: 800; padding: 0; }
.onb-inline-add { display: flex; gap: 10px; align-items: stretch; }
.onb-inline-add .onb-input { flex: 1; }

/* ---------- TRUST FOOTER ---------- */
.onb-trust { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; font-size: 13px; font-weight: 700; color: var(--grey-600); }
.onb-trust-dot { width: 4px; height: 4px; border-radius: 50%; background: #CFD3D9; }
.onb-trust-note { text-align: center; font-size: 13px; line-height: 1.6; color: var(--grey-600); max-width: 760px; margin: 14px auto 0; }

/* ---------- LOADING OVERLAY ---------- */
.onb-busy { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 0; color: var(--grey-600); font-weight: 600; }
.onb-busy .onb-spinner { width: 22px; height: 22px; }

/* ---------- CHAT WIDGET ---------- */
.onb-chat { position: fixed; right: 24px; bottom: 24px; z-index: 1300; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.onb-chat-panel { width: 320px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--grey-125); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(24, 26, 31, .45); }
.onb-chat-head { display: flex; align-items: center; gap: 11px; padding: 16px 18px; background: var(--raize-ink); }
.onb-chat-avatar { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--raize-yellow); color: var(--raize-ink); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 14px; }
.onb-chat-title { font-weight: 700; font-size: 14.5px; color: #fff; }
.onb-chat-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--grey-300); }
.onb-chat-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.onb-chat-close { flex: none; width: 28px; height: 28px; border-radius: 7px; background: rgba(255, 255, 255, .12); border: none; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.onb-chat-body { padding: 18px; }
.onb-chat-bubble { background: var(--grey-40); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.6; color: var(--grey-800); margin-bottom: 14px; }
.onb-chat-suggestions { display: flex; flex-direction: column; gap: 8px; }
.onb-chat-suggestion { display: block; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--grey-150); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--raize-ink); cursor: pointer; font-family: inherit; }
.onb-chat-input { display: flex; align-items: center; gap: 10px; background: var(--grey-40); border: 1px solid var(--grey-150); border-radius: 11px; padding: 12px 14px; margin-top: 14px; }
.onb-chat-input span:first-child { flex: 1; font-size: 14px; color: var(--grey-600); }
.onb-chat-send { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--raize-yellow); color: var(--raize-ink); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.onb-chat-launcher { width: 62px; height: 62px; border-radius: 18px; background: var(--raize-yellow); border: none; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(180, 140, 0, .6); display: flex; align-items: center; justify-content: center; }

/* ---------- IN-APP (identity validation inside FrontofficeLayout) ---------- */
.onb-inapp { max-width: 860px; margin: 0 auto; padding: 8px 0 48px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
    .onb-header-inner { padding: 0 16px; }
    .onb-secure { display: none; }
    .onb-main { padding: 28px 16px 48px; }
    .onb-stepper { padding: 16px; }
    .onb-stepper-item:not(.is-current) .onb-stepper-label { display: none; }
    .onb-stepper-line { margin: 0 6px; }
    .onb-card, .onb-card.is-roomy { padding: 22px 18px; }
    .onb-card.is-center { padding: 28px 18px; }
    .onb-choice-grid, .onb-method-grid, .onb-grid-2, .onb-capture-grid, .onb-tile-grid, .onb-instruments { grid-template-columns: 1fr; }
    .onb-grid-3 { grid-template-columns: 1fr; }
    .onb-span-1, .onb-span-2, .onb-span-3 { grid-column: span 1; }
    .onb-kv-grid, .onb-kv-grid.is-2 { grid-template-columns: 1fr; }
    .onb-sim-row { grid-template-columns: 1fr; }
    .onb-ben-grid { grid-template-columns: 1fr; }
    .onb-actions { flex-direction: column-reverse; align-items: stretch; }
    .onb-actions-right { flex-direction: column-reverse; align-items: stretch; }
    .onb-actions .onb-btn { width: 100%; }
    .onb-chat { right: 16px; bottom: 16px; }
}

/* ---------- COMPOSITE FIELD CONTROLS (país pesquisável, calendário, telefone) ---------- */
/* MudAutocomplete / MudDatePicker rendered inside an .onb-input card: strip Mud's own chrome
   so the control looks like the plain inputs around it. */
.onb-input.has-control { position: relative; }
.onb-input .onb-mud { margin: 0; width: 100%; }
.onb-input .onb-mud .mud-input-control-input-container,
.onb-input .onb-mud .mud-input { margin: 0; padding: 0; font: inherit; }
.onb-input .onb-mud .mud-input > input.mud-input-root {
    padding: 2px 0; height: auto; font-size: 15.5px; font-weight: 500; color: var(--grey-950); font-family: var(--font-ui);
}
.onb-input .onb-mud .mud-input > input.mud-input-root::placeholder { color: #9AA0A8; opacity: 1; }
.onb-input .onb-mud .mud-input-adornment-end { margin-left: 4px; }
.onb-input .onb-mud .mud-input-adornment .mud-icon-root { font-size: 19px; color: var(--grey-600); }
.onb-input .onb-mud .mud-input-adornment .mud-icon-button { padding: 2px; }
.onb-input .onb-mud .mud-input-helper-text { display: none; }
.onb-input .onb-mud .mud-input.mud-disabled { color: var(--grey-500); }
/* Read-only date input still behaves like a button that opens the calendar. */
.onb-input .onb-mud input[readonly] { cursor: pointer; }

.onb-mud-popover { border-radius: 12px !important; box-shadow: var(--shadow-menu) !important; border: 1px solid var(--grey-125); }
.onb-mud-popover .mud-list-item { font-family: var(--font-ui); font-size: 14.5px; }
.onb-mud-popover .mud-selected-item,
.onb-mud-popover .mud-list-item:hover { background: var(--raize-yellow-50); }

.onb-phone { display: flex; align-items: center; gap: 10px; min-width: 0; }
.onb-phone-prefix {
    flex: none; display: inline-flex; align-items: center; gap: 4px; padding-right: 10px;
    border-right: 1px solid var(--grey-150);
}
.onb-phone-prefix select { width: auto; font-weight: 700; padding-right: 2px; }
.onb-phone input { flex: 1; letter-spacing: .2px; }
.onb-input.has-control .onb-field-error { display: block; }

/* Rule shown at the foot of the date picker while it is open. */
.onb-date-hint {
    display: flex; align-items: flex-start; gap: 8px; width: 100%; max-width: 300px; padding: 2px 6px 4px;
    font-family: var(--font-ui); font-size: 12.5px; line-height: 1.45; color: var(--grey-600); text-align: left;
}
.onb-date-hint-i {
    flex: none; width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--blue-100); color: var(--blue-600); font-size: 10px; font-weight: 800; margin-top: 1px;
}

/* Suggestion under a NIF/NIPC of the other taxpayer kind: switch investor profile. */
.onb-switch-profile {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 12px;
    border: 1px solid var(--raize-yellow-300); border-radius: 9px; background: var(--raize-yellow-50);
    font: inherit; font-size: 13px; font-weight: 700; color: var(--raize-ink); cursor: pointer;
}
.onb-switch-profile:hover { background: var(--raize-yellow-100); border-color: var(--raize-yellow); }
.onb-switch-profile:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 1px; }
