/* =====================================================================
   "Confirm your business" (documents.html, docs-ui.js; docs/document-checks.md option B). One designed page per
   screen: the camera with corner guides on a phone, the look before sending, the steps beside a big drop zone on a
   laptop, and the timeline. Grouped rows with hairlines, no stacked cards. Colours are the dashboard's tokens
   (web.css, data-layout="bo"), so dark mode follows them; the camera is always dark.
   ===================================================================== */
.dc-page { max-width: 1120px; margin: 8px auto 48px; }
.dc-narrow { max-width: 520px; }
.dc-page h1 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 6vw, 34px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 10px; }
.dc-page h1:focus { outline: none; }
.dc-eyebrow, .dc-page h1.dc-eyebrow { margin: 0 0 8px; font: 600 13px/1.4 var(--font); letter-spacing: 0; color: var(--ink-3); }
.dc-sub { margin-top: 22px; }
.dc-lede { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.dc-count { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); }
/* On a phone the task bar carries Back and the step ("1 of 2", web/bo/shell.js), so the page doesn't repeat them. */
@media (max-width: 759px) { .dc-main .dc-count, .dc-page .dc-steps { display: none; } }
.dc-big { width: 100%; min-height: 54px; font-size: 16px; justify-content: center; }
.dc-quiet { text-align: center; margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.dc-quiet a, .dc-linkish { color: var(--link); font: inherit; font-weight: 500; background: none; border: 0; padding: 6px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dc-err { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--book-soft); color: var(--book-deep); font-size: 14px; }
.dc-err[hidden] { display: none; }
.btn.ink { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn.ink:hover:not(:disabled) { opacity: .9; }

/* The privacy line, where the documents are asked for (POPIA s18). */
.dc-priv { display: flex; gap: 10px; align-items: flex-start; margin: 20px 2px 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.dc-priv svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Progress pips, and the redo note. */
.dc-steps { display: flex; gap: 6px; margin: 0 0 18px; }
.dc-steps i { flex: 1; height: 5px; border-radius: 9px; background: var(--line); }
.dc-steps i.on { background: var(--sea-deep); }
.dc-redo { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--book-soft); color: var(--ink); font-size: 14px; line-height: 1.5; }
.dc-redo b { display: block; color: var(--book-deep); font-size: 13px; margin-bottom: 2px; }

/* Grouped rows with hairlines. */
.dc-group { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; margin: 0 0 14px; }
.dc-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none; min-height: 56px; }
.dc-row + .dc-row { border-top: 1px solid var(--line-2); }
.dc-row .t { flex: 1; min-width: 0; }
.dc-row .t b { display: block; font-weight: 600; }
.dc-row .t small { display: block; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.dc-row.again { background: color-mix(in srgb, var(--book-soft) 70%, transparent); }
.dc-row.link:hover { background: var(--surface-2); }
.dc-choice { cursor: pointer; }
.dc-choice input { width: 20px; height: 20px; accent-color: var(--sea-deep); flex: none; }
.dc-type .btn { margin-top: 8px; }
/* The owner's ID number (docs-ui.js idHtml): two choices side by side, the number full width, the buttons in a row. */
#dc-id .dc-choice { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; }
#dc-id .input { display: block; width: 100%; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
#dc-id .form-error { margin: 0 16px 10px; }
#dc-id .dc-row .btn + .btn { margin-left: 4px; }
.dc-pill { flex: none; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.dc-pill.ok { background: var(--sea-soft); color: var(--sea-deep); }
.dc-pill.wait { background: var(--stock-soft); color: var(--stock-deep); }
.dc-pill.again { background: var(--book-soft); color: var(--book-deep); }
.dc-pill.todo { background: var(--surface-2); color: var(--ink-2); }

/* The timeline: Sent → A person is checking → Ready to sell. */
.dc-tl { list-style: none; margin: 6px 0 22px; padding: 0; }
.dc-tl li { display: flex; gap: 14px; padding: 0 0 22px; position: relative; }
.dc-tl li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.dc-tl li.done:not(:last-child)::before { background: var(--sea-deep); }
.dc-tl .d { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); z-index: 1; }
.dc-tl .done .d { background: var(--sea-deep); box-shadow: none; }
.dc-tl .d svg { width: 15px; height: 15px; fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dc-tl .now .d { box-shadow: inset 0 0 0 2px var(--sea-deep), 0 0 0 6px color-mix(in srgb, var(--sea) 35%, transparent); }
.dc-tl .now .d::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sea-deep); animation: dc-pulse 1.6s ease-in-out infinite; }
.dc-tl .again .d { box-shadow: inset 0 0 0 2px var(--book); background: var(--book-soft); }
.dc-tl b { display: block; font-weight: 600; }
.dc-tl small { color: var(--ink-3); font-size: 13.5px; }
.dc-gl { margin: 0; font-size: 14px; color: var(--ink-3); }
.dc-big-n { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -.03em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
@keyframes dc-pulse { 50% { transform: scale(.7); opacity: .6; } }

/* The look before sending. */
.dc-shots { display: grid; gap: 12px; margin: 0 0 16px; }
.dc-shots.two { grid-template-columns: 1fr 1fr; }
.dc-shot { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.dc-shot img { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: #0b1210; }
.dc-shot figcaption { padding: 6px 10px; font-size: 12.5px; color: var(--ink-3); }
.dc-pdf { display: grid; justify-items: center; gap: 4px; padding: 30px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; }
.dc-pdf svg { width: 44px; height: 44px; fill: none; stroke: var(--sea-deep); stroke-width: 1.6; margin-bottom: 6px; }
.dc-pdf small { color: var(--ink-3); }
.dc-tips { list-style: none; margin: 4px 0 18px; padding: 0; font-size: 14px; color: var(--ink-2); }
.dc-tips li { display: flex; gap: 10px; padding: 5px 0; }
.dc-tips li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px; background: var(--sea-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%232E8770' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* A laptop: the steps on the left, the drop zone, good and bad examples on the right. */
.dc-wiz { display: block; }
.dc-rail, .dc-examples { display: none; }
.dc-drop { border: 2px dashed color-mix(in srgb, var(--sea-deep) 45%, var(--line)); border-radius: 22px; padding: 34px 20px; text-align: center; background: var(--surface); transition: background .15s, border-color .15s; }
.dc-drop.over { background: var(--sea-soft); border-color: var(--sea-deep); }
.dc-drop:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dc-drop .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--sea-soft); display: grid; place-items: center; margin: 0 auto 14px; }
.dc-drop .ic svg { width: 30px; height: 30px; stroke: var(--sea-deep); fill: none; stroke-width: 1.8; }
.dc-drop b { font-size: 17px; display: block; margin-bottom: 4px; }
.dc-drop small { color: var(--ink-3); }
.dc-drop-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.dc-drop-btns label { cursor: pointer; }
.dc-phone-hint { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.dc-phone-hint[hidden] { display: none; }
.dc-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.dc-good { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dc-good figure { margin: 0; }
.dc-good figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.dc-good .x { color: var(--book-deep); font-weight: 600; } .dc-good .y { color: var(--sea-deep); font-weight: 600; }
.dc-card { aspect-ratio: 1.58; border-radius: 12px; background: linear-gradient(135deg, #E9EEEC, #D9E2DF); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.dc-card.doc { aspect-ratio: .72; }
.dc-card .face { position: absolute; left: 7%; top: 20%; width: 26%; height: 58%; border-radius: 8px; background: #C4CFCB; }
.dc-card.doc .face { left: 10%; top: 8%; width: 30%; height: 8%; border-radius: 4px; }
.dc-card .ln { position: absolute; left: 40%; height: 7%; border-radius: 4px; background: #B9C5C1; }
.dc-card.doc .ln { left: 10%; height: 3.5%; }
.dc-card.blur { filter: blur(.7px); transform: rotate(-7deg) scale(.92); }
.dc-card.blur::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(transparent, rgb(233 238 236 / .9)); backdrop-filter: blur(3px); }
@media (min-width: 1000px) {
  .dc-wiz { display: grid; grid-template-columns: 230px minmax(0, 1fr) 250px; gap: 40px; align-items: start; padding-top: 18px; }
  .dc-rail, .dc-examples { display: block; }
  .dc-priv-narrow { display: none; }
  .dc-rail { position: sticky; top: 96px; padding-right: 10px; border-right: 1px solid var(--line-2); }
  .dc-rail .dc-tl li { padding-bottom: 28px; }
  .dc-wiz .dc-steps { display: none; }
  .dc-drop { padding: 48px 30px; }
}

/* A phone: the camera, full screen, with corner guides. Always dark. */
body.dc-camera-on { overflow: hidden; }
body.dc-camera-on .topbar { display: none; }
.dc-cam { position: fixed; inset: 0; z-index: 50; background: #0B1210; color: #EEF4F1; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); height: 100dvh; }
.dc-cam-head { padding: 12px 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #AFC2BB; }
.dc-cam-head b { color: #EEF4F1; font-weight: 600; }
.dc-cam .dc-linkish { color: #AFC2BB; text-decoration: none; min-width: 64px; }
.dc-vf { flex: 1; position: relative; margin: 14px 0 0; overflow: hidden; background: radial-gradient(120% 80% at 50% 40%, #2C3A35, #121A18); }
.dc-vf video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dc-frame { position: absolute; left: 8%; right: 8%; top: 24%; aspect-ratio: 1.58; box-shadow: 0 0 0 100vmax rgb(11 18 16 / .42); border-radius: 14px; }
.dc-vf.page .dc-frame { left: 14%; right: 14%; top: 12%; aspect-ratio: .72; }
.dc-frame::before, .dc-frame::after, .dc-frame > span::before, .dc-frame > span::after { content: ""; position: absolute; width: 34px; height: 34px; border: 3px solid #8EDCC5; }
.dc-frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.dc-frame::after { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.dc-frame > span::before { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.dc-frame > span::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.dc-hint { position: absolute; left: 0; right: 0; top: calc(24% - 44px); margin: 0; text-align: center; font-weight: 600; z-index: 1; }
.dc-vf.page .dc-hint { top: calc(12% - 36px); }
.dc-chip { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; background: rgb(142 220 197 / .18); color: #BFF0E1; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dc-cam-redo { padding: 10px 16px 0; }
.dc-cam-redo .dc-redo { margin: 0; background: rgb(245 184 66 / .16); color: #F5DDA6; }
.dc-cam-redo .dc-redo b { color: #F5C969; }
.dc-shut { padding: 18px 8px 22px; display: flex; align-items: center; justify-content: space-around; }
.dc-shut label { cursor: pointer; width: 96px; text-align: center; }
.dc-shutter { width: 72px; height: 72px; border-radius: 50%; border: 0; background: #EEF4F1; box-shadow: 0 0 0 5px #0B1210, 0 0 0 8px #EEF4F1; cursor: pointer; }
.dc-shutter:active { transform: scale(.94); }
.dc-shutter:focus-visible { outline: 3px solid #8EDCC5; outline-offset: 8px; }
.dc-cam .dc-err { margin: 0 16px 12px; }

/* "You're good to go": the ripple and the tick. */
.dc-in { text-align: center; padding: 18px 0 26px; }
.dc-in .dc-lede { max-width: 400px; margin-left: auto; margin-right: auto; }
.dc-ripple { position: relative; display: inline-grid; place-items: center; width: 120px; height: 120px; margin: 0 0 18px; }
.dc-ripple i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sea); opacity: .25; }
.dc-ripple i:nth-child(2) { inset: 16px; opacity: .45; } .dc-ripple i:nth-child(3) { inset: 32px; opacity: .7; }
.dc-ripple b { width: 46px; height: 46px; border-radius: 50%; background: var(--sea); display: grid; place-items: center; z-index: 1; }
.dc-ripple b svg { width: 22px; height: 22px; fill: none; stroke: #141516; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dc-ripple.sm { width: 48px; height: 48px; margin: 0; flex: none; }
.dc-ripple.sm i:nth-child(2) { inset: 8px; } .dc-ripple.sm b { width: 26px; height: 26px; } .dc-ripple.sm b svg { width: 14px; height: 14px; }
.dc-in.pop .dc-ripple i { animation: dc-ring 1.4s ease-out 2; }
.dc-in.pop .dc-ripple b { animation: dc-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes dc-ring { from { transform: scale(.6); opacity: 0; } 50% { opacity: .5; } }
@keyframes dc-pop { from { transform: scale(.3); } }

/* The dashboard's calm bar (app.html #docs-bar). */
.dc-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; margin: 0 0 16px; background: var(--night, #111213); color: var(--on-night, #f2f2f0); }
.dc-bar[hidden] { display: none; }
.dc-bar .t { flex: 1; min-width: 0; }
.dc-bar .t b { display: block; font-weight: 600; }
.dc-bar .t span { display: block; font-size: 14px; color: var(--on-night-2, #a9abad); line-height: 1.45; }
.dc-bar .btn.ink { background: #f2f2f0; color: #141516; }
.dc-bar.again { background: var(--book-soft); color: var(--ink); box-shadow: inset 4px 0 0 var(--book); }
.dc-bar.again .t span { color: var(--ink-2); }
.dc-bar.again .btn.ink { background: var(--ink); color: var(--bg); }
.dc-bar.ok { background: var(--sea-soft); color: var(--ink); }
.dc-bar.ok .t span { color: var(--ink-2); }
@media (max-width: 520px) { .dc-bar { flex-wrap: wrap; } .dc-bar .btn { width: 100%; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  .dc-tl .now .d::after, .dc-in.pop .dc-ripple i, .dc-in.pop .dc-ripple b { animation: none; }
}
