/* Kavro Clean: tokens e proporções do dashboard original. */
:root {
  --background: oklch(0.977 0.002 264);
  --foreground: oklch(0.21 0.033 264);
  --surface: #fff;
  --muted: oklch(0.55 0.023 264);
  --border: oklch(0.923 0.005 264);
  --primary: oklch(0.546 0.212 263.5);
  --primary-hover: oklch(0.488 0.216 264.4);
  --primary-light: oklch(0.955 0.021 260);
  --blue: var(--primary);
  --blue-hover: var(--primary-hover);
  --blue-soft: var(--primary-light);
  --txt-light-1: var(--foreground);
  --txt-light-2: var(--muted);
  --light-border: var(--border);
  --dark-bg: var(--background);
  --dark-card: var(--surface);
  --txt-dark-1: var(--foreground);
  --txt-dark-2: var(--muted);
  --dark-border: var(--border);
  --shadow: 0 1px 2px rgb(20 30 50 / 4%), 0 4px 20px rgb(20 30 50 / 3%);
}
body { font-size: 16px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 4px;
}
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
body.mode-light, body.mode-dark, body.mode-loading { background: var(--background); color: var(--foreground); }
.kavro-emblem, .mode-light .kavro-emblem, .mobile-shell .kavro-emblem, .qr-center-badge .kavro-emblem {
  background: url('../assets/kavro-mark.png') center / contain no-repeat;
  border: 0; border-radius: 0; width: 28px; height: 28px;
}
.kavro-emblem.xs { width: 20px; height: 20px; }
.kavro-emblem.sm { width: 26px; height: 26px; }
.brand-logo { width: 152px; height: 34px; object-fit: contain; }
.brand-lockup { gap: 20px; }
.brand-context { padding-left: 20px; border-left: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.desktop-shell { padding: 0; background: var(--background); }
.desktop-topbar { max-width: none; padding: 22px max(32px, calc((100vw - 1200px) / 2)); background: white; border-bottom: 1px solid var(--border); }
.lang-pill.dark, .lang-pill.light { background: white; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; font-size: 13px; }
.desktop-main { padding: 54px 32px; flex-direction: column; gap: 24px; }
.handoff-card { max-width: 980px; grid-template-columns: 1.16fr 1fr; border-radius: 16px; box-shadow: var(--shadow); }
.handoff-left { padding: 44px; background: white; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: 1.6px; margin-bottom: 18px; text-transform: uppercase; }
.section-eyebrow svg { width: 15px; height: 15px; }
.handoff-left h1 { font-size: 34px; letter-spacing: -1.25px; line-height: 1.18; max-width: 330px; margin-bottom: 16px; }
.handoff-sub { font-size: 16px; line-height: 1.65; margin-bottom: 20px; }
.meta-pills { margin-bottom: 32px; gap: 8px; }
.meta-pill { background: var(--background); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; padding: 5px 9px; }
.step-icon-box.light, .step-icon-box.dark { background: var(--primary-light); color: var(--primary); border-radius: 10px; width: 42px; height: 42px; }
.step-list.dark .step-title, .step-list.light .step-title { color: var(--foreground); font-size: 15px; }
.step-list.dark .step-desc, .step-list.light .step-desc { color: var(--muted); font-size: 14px; }
.step-list { gap: 22px; }
.privacy-box.light, .privacy-box.dark { background: var(--background); color: var(--muted); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; line-height: 1.6; }
.privacy-link, .shield-ico { color: var(--primary); }
.handoff-right { background: #fafbfe; padding: 40px 36px; border-color: var(--border); }
.qr-wrapper { padding: 20px; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 4px 18px rgb(30 55 100 / 5%); margin-bottom: 24px; }
#desktop-qr-canvas { width: 212px; height: 212px; }
.qr-center-badge { box-shadow: none; border: 4px solid white; }
.qr-heading { font-size: 16px; color: var(--foreground); line-height: 1.5; max-width: 260px; }
.qr-domain { font-size: 12px; margin-bottom: 24px; color: var(--muted); }
.live-sync-status { font-size: 13px; color: var(--muted); background: white; border: 1px solid var(--border); padding: 12px 14px; border-radius: 8px; text-align: left; line-height: 1.5; }
.pulse-dot { width: 7px; height: 7px; }
.handoff-divider { font-size: 12px; }
.handoff-divider::before, .handoff-divider::after { background: var(--border); }
.btn-outline-dark { color: var(--foreground); background: white; border: 1px solid var(--border); border-radius: 8px; height: 46px; }
.btn-outline-dark:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.powered-footer.dark, .powered-footer.light { color: var(--muted); font-size: 12px; }
.powered-footer.dark strong, .powered-footer.light strong { color: var(--foreground); font-weight: 600; }
.desktop-shell > .powered-footer { padding: 0 20px 28px; }
.desktop-assurance { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.desktop-assurance svg { color: var(--primary); }
.mobile-shell { background: transparent; padding: 32px 16px; }
.m-view { background: white; min-height: min(780px, calc(100dvh - 64px)); max-width: 460px; padding: 26px 30px; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.m-view.active:not(.camera-fullscreen):not(.face-liveness-screen) { animation: enter-view 230ms ease-out; }
@keyframes enter-view { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.m-top-right-only { justify-content: space-between; align-items: center; padding: 0; }
.m-top-right-only .brand-logo { width: 133px; height: 29px; }
.m-brand-center { margin: 22px 0 18px; }
.welcome-art { width: 190px; height: 140px; }
.m-title { font-size: 28px; line-height: 1.2; letter-spacing: -.8px; color: var(--foreground); margin-bottom: 12px; }
.m-subtitle { font-size: 16px; line-height: 1.6; margin-bottom: 26px; }
#m-welcome .m-title, #m-welcome .m-subtitle { text-align: center; }
#m-welcome .m-subtitle { font-size: 14px; margin-bottom: 26px; }
#m-welcome .step-list { padding: 0 0 4px; gap: 20px; }
#m-welcome .privacy-box { padding: 12px; font-size: 12px; }
.m-bottom-cta { gap: 14px; padding-top: 24px; }
.btn-primary-pill, .btn-outline-light { border-radius: 9px; min-height: 50px; height: auto; padding: 14px 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary-pill { box-shadow: 0 1px 2px rgb(37 99 235 / 12%); }
.btn-primary-pill:disabled { box-shadow: none; }
.legal-fineprint { font-size: 12px; line-height: 1.6; padding: 0; }
.m-step-header { margin-bottom: 32px; gap: 14px; }
.icon-back-btn { border: 1px solid var(--border); border-radius: 8px; width: 38px; height: 38px; flex-shrink: 0; }
.m-progress-wrap { align-items: flex-start; gap: 8px; }
.m-progress-bars { max-width: none; gap: 6px; }
.bar-seg { background: var(--border); }
.bar-fill { background: var(--primary); }
.m-progress-label { font-size: 10px; letter-spacing: .65px; }
.country-card { background: var(--background); border-radius: 10px; padding: 14px 16px; margin: 26px 0 18px; }
.country-caption { font-size: 12px; }
.doc-choice-list { border: none; background: transparent; display: flex; flex-direction: column; gap: 12px; overflow: visible; }
.doc-choice-item { border: 1px solid var(--border); border-radius: 10px; padding: 20px 16px; gap: 12px; }
.doc-choice-item:hover { border-color: var(--primary); background: var(--primary-light); }
.doc-choice-label { font-size: 15px; font-weight: 600; }
.doc-choice-label small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.doc-choice-divider { display: none; }
.prep-illustration-card { background: var(--primary-light); border-radius: 12px; border: 1px solid #dce6fc; padding: 24px 14px; margin: 26px 0; }
.prep-illustration-card svg { max-width: 100%; }
.face-oval-demo { background: var(--primary-light); border-radius: 50%; width: 168px; height: 168px; }
.face-prep-visual { margin: 18px 0 30px; }
.flash-notice { display: flex; gap: 9px; padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--muted); background: var(--background); border: 1px solid var(--border); border-radius: 10px; }
.flash-notice svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.mode-tab { font-size: 13px; line-height: 1.4; min-height: 48px; }
.mode-tab.active { color: var(--primary); }
.file-drop-box { border-radius: 10px; border-width: 1px; min-height: 150px; background: var(--background); }
.file-drop-box.compact { min-height: 110px; }
.file-drop-box:hover, .file-drop-box:focus-within { border-color: var(--primary); background: var(--primary-light); }
.file-drop-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-title { overflow-wrap: anywhere; }
.drop-sub { font-size: 13px; }
.inline-alert { font-size: 14px; border-radius: 8px; }
.camera-fullscreen { position: fixed; inset: 0; height: 100dvh; min-height: 0; border: none; border-radius: 0; z-index: 20; }
.cam-stage { min-height: 0; }
#doc-video { position: absolute; inset: 0; }
.cam-topbar { padding-top: max(16px, env(safe-area-inset-top)); }
.cam-controls { padding-bottom: max(24px, env(safe-area-inset-bottom)); z-index: 2; }
.cam-step-pill { font-size: 11px; padding: 7px 10px; }
.cam-upload-switch { font-size: 12px; }
.doc-frame-box { border-radius: 12px; }
.capture-flash { position: absolute; inset: 0; pointer-events: none; background: white; z-index: 15; opacity: 0; }
.capture-flash.fire { animation: shutter-flash 260ms ease-out; }
@keyframes shutter-flash { 0% { opacity: .65; } 100% { opacity: 0; } }
.review-sheet-card { border-radius: 16px 16px 0 0; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.review-sheet-card p { font-size: 14px; }
.face-liveness-screen { min-height: min(780px, calc(100dvh - 64px)); }
.face-flash-overlay { transition: opacity 100ms linear; }
.face-instruction-title { font-size: 24px; letter-spacing: -.7px; }
.face-instruction-sub { font-size: 15px; max-width: 310px; min-height: 44px; }
.face-status-badge { font-size: 13px; border-radius: 8px; padding: 10px 14px; }
.face-dir-arrow.left { left: -18px; }
.face-dir-arrow.right { right: -18px; }
.processing-checklist { border-radius: 10px; background: var(--background); padding: 20px; gap: 18px; }
.p-check { font-size: 14px; }
.result-icon { border-radius: 20px; width: 78px; height: 78px; }
.result-icon.rejected { background: #fef2f2; color: #dc2626; }
.loader-card, .error-card { border-radius: 14px; box-shadow: var(--shadow); }
.loader-title { color: var(--foreground); }
.error-card h1 { font-size: 24px; letter-spacing: -.5px; }
.error-card p { font-size: 16px; }
.modal-sheet { border-radius: 14px; box-shadow: var(--shadow); max-height: calc(100dvh - 40px); overflow: auto; }
.modal-sheet p { font-size: 16px; }
.preview-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #344260; border-radius: 10px; background: #131e34; color: white; box-shadow: 0 4px 20px #101c3030; font-size: 12px; white-space: nowrap; }
.preview-bar select { background: #22314d; color: white; border: 1px solid #43516a; border-radius: 6px; padding: 7px 26px 7px 10px; font-size: 12px; max-width: 190px; }
.preview-bar strong { color: #a9c2ff; font-size: 11px; letter-spacing: .7px; }
html[data-preview] body { padding-bottom: 76px; }
html[data-preview] .m-view { min-height: 760px; }
html[data-preview] .review-sheet { bottom: 76px; }
.preview-face { position: absolute; width: 232px; height: 300px; border-radius: 50%; background: #e9effb; object-fit: cover; }
.preview-document { position: absolute; width: min(78vw, 345px); border-radius: 12px; }
@media (max-width: 820px) {
  .handoff-card { grid-template-columns: 1fr; max-width: 500px; }
  .handoff-right { border-left: 0; border-top: 1px solid var(--border); }
  .desktop-main { padding: 28px 18px; }
  .handoff-left { padding: 30px; }
  .desktop-topbar { padding: 20px 24px; }
  .brand-context { display: none; }
}
@media (max-width: 520px) {
  body.mode-light { background: white; }
  .mobile-shell { padding: 0; }
  .m-view { max-width: none; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; padding: max(22px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
  .m-brand-center { margin: 24px 0 20px; }
  .m-step-header { margin-bottom: 28px; }
  .face-liveness-screen { min-height: 100dvh; }
  .m-bottom-cta { margin-top: 6px; }
  .preview-bar { width: calc(100% - 24px); gap: 8px; justify-content: space-between; bottom: 10px; }
  .preview-bar span { display: none; }
  .preview-bar select { max-width: 200px; }
  html[data-preview] .m-view { min-height: calc(100dvh - 76px); }
  html[data-preview] .camera-fullscreen { bottom: 76px; height: calc(100dvh - 76px); }
}
@media (max-width: 360px) {
  .m-view { padding-left: 18px; padding-right: 18px; }
  .m-title { font-size: 26px; }
  .m-progress-label { letter-spacing: 0; }
  .cam-step-pill { font-size: 9px; }
  .face-dir-arrow.left { left: -12px; }
  .face-dir-arrow.right { right: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
