/* SwiftShine Onboarding — lightweight Bootstrap layer */
:root {
  --ss-ink: #172033;
  --ss-muted: #6b7280;
  --ss-bg: #f7f8fb;
  --ss-border: #e7e9ef;
  --ss-primary: #2f6fed;
  --ss-primary-hover: #245fd3;
  --ss-radius: 20px;
  --ss-shadow: 0 12px 35px rgba(23, 32, 51, .07);
}

html { background: var(--ss-bg); }
body { color: var(--ss-ink); background: var(--ss-bg); -webkit-font-smoothing: antialiased; }
.app-container { max-width: 1080px; }
.min-w-0 { min-width: 0; }

.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--ss-ink); color: #fff; font-weight: 700; letter-spacing: -.03em; }
.brand-mark-lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.25rem; }

.btn-primary { --bs-btn-bg: var(--ss-primary); --bs-btn-border-color: var(--ss-primary); --bs-btn-hover-bg: var(--ss-primary-hover); --bs-btn-hover-border-color: var(--ss-primary-hover); --bs-btn-active-bg: var(--ss-primary-hover); --bs-btn-active-border-color: var(--ss-primary-hover); border-radius: 12px; font-weight: 600; }
.btn-outline-secondary { border-radius: 10px; }
.btn-lg { border-radius: 13px; }

.form-control, .form-select { border-color: var(--ss-border); border-radius: 12px; min-height: 48px; }
.form-control:focus, .form-select:focus { border-color: #8fb1f5; box-shadow: 0 0 0 .25rem rgba(47, 111, 237, .12); }

.login-page { background: radial-gradient(circle at top left, rgba(47,111,237,.08), transparent 34%), var(--ss-bg); }
.login-card { max-width: 430px; background: #fff; border: 1px solid var(--ss-border); border-radius: 24px; padding: 28px; box-shadow: var(--ss-shadow); }

.surface-card, .metric-card { background: #fff; border: 1px solid var(--ss-border); border-radius: var(--ss-radius); box-shadow: 0 8px 26px rgba(23,32,51,.045); }
.surface-card { padding: 24px; }
.metric-card { padding: 20px; }
.metric-label { color: var(--ss-muted); font-size: .9rem; margin-bottom: 8px; }
.metric-value { font-size: 2rem; font-weight: 650; letter-spacing: -.03em; }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: .74rem; color: var(--ss-primary); font-weight: 700; }

.people-list { margin: 0 -8px -8px; }
.people-row { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 15px; transition: background .15s ease; }
.people-row:hover { background: #f8f9fc; }
.people-row + .people-row { border-top: 1px solid #f0f1f4; }
.person-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: #edf3ff; color: var(--ss-primary); font-weight: 700; }
.empty-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #edf3ff; color: var(--ss-primary); font-size: 1.5rem; }

.requirement-list { display: grid; gap: 10px; }
.requirement-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--ss-border); border-radius: 14px; padding: 13px 14px; cursor: pointer; }
.requirement-option:has(input:checked) { border-color: #aac2f6; background: #f7faff; }

.invite-card { border-color: #cfe0ff; background: linear-gradient(135deg, #fff, #f7faff); }
.invite-link { padding: 12px 14px; background: #fff; border: 1px solid var(--ss-border); border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .82rem; overflow-wrap: anywhere; }

.document-list { display: grid; gap: 2px; }
.document-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #f0f1f4; }
.document-row:first-child { border-top: 0; }
.progress { height: 8px; background: #edf0f5; }
.progress-bar { background: var(--ss-primary); }

.profile-list dt { color: var(--ss-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.profile-list dd { margin-bottom: 16px; }
.profile-list dd:last-child { margin-bottom: 0; }
.timeline-list { display: grid; gap: 16px; }
.timeline-row { display: flex; gap: 12px; align-items: flex-start; }
.timeline-dot { width: 9px; height: 9px; margin-top: 7px; flex: 0 0 9px; border-radius: 50%; background: var(--ss-primary); box-shadow: 0 0 0 4px rgba(47,111,237,.1); }

.contractor-shell { background: radial-gradient(circle at top, rgba(47,111,237,.06), transparent 28%), var(--ss-bg); }
.contractor-topbar { position: sticky; top: 0; z-index: 10; }
.contractor-container { max-width: 760px; }
.contractor-progress { height: 6px; }
.contractor-card { max-width: 680px; background: #fff; border: 1px solid var(--ss-border); border-radius: 24px; padding: 28px; box-shadow: var(--ss-shadow); }
.contractor-callout { border: 1px solid var(--ss-border); background: #f9fafc; border-radius: 18px; padding: 18px; }
.step-preview { display: flex; gap: 12px; align-items: flex-start; }
.step-preview > span { width: 28px; height: 28px; flex: 0 0 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #edf3ff; color: var(--ss-primary); font-size: .82rem; font-weight: 700; }
.step-preview strong, .step-preview small { display: block; }
.section-label { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f1f4; color: var(--ss-muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.success-icon { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #eaf8ef; color: #198754; font-size: 1.55rem; font-weight: 700; }

.w9-choice-list { display: grid; gap: 9px; }
.w9-review-card { border: 1px solid var(--ss-border); border-radius: 18px; padding: 20px; background: #fbfcfe; }
.certification-box { border: 1px solid #cfdcf5; border-radius: 18px; padding: 20px; background: #f8fbff; }
.sensitive-mask { display: inline-block; padding: 5px 9px; border-radius: 8px; background: #f0f2f6; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .04em; }
.signature-input { font-family: ui-serif, Georgia, serif; font-size: 1.25rem; }

.agreement-checklist { border: 1px solid var(--ss-border); border-radius: 18px; padding: 4px 18px; background: #fbfcfe; }
.agreement-document { border: 1px solid var(--ss-border); border-radius: 18px; padding: 24px; background: #fff; line-height: 1.62; }
.agreement-document h1 { font-size: 1.55rem; margin-bottom: 1rem; }
.agreement-document h2 { font-size: 1.02rem; margin: 1.35rem 0 .45rem; font-weight: 700; }
.agreement-document p:last-child { margin-bottom: 0; }
.template-editor { min-height: 420px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .84rem; line-height: 1.5; }

@media (max-width: 575.98px) {
  .login-card { padding: 22px; border-radius: 20px; }
  .surface-card { padding: 20px; }
  .display-6 { font-size: 2rem; }
  .people-row { padding-left: 6px; padding-right: 6px; }
  .document-row { align-items: flex-start; }
  .contractor-card { padding: 22px; border-radius: 20px; }
  .contractor-topbar { position: static; }
  .w9-review-card, .certification-box { padding: 16px; }
  .agreement-document { padding: 18px; }
}
