/* The hosted pages: /w, /v, /p and /r. One set of names for colour, font, corner and spacing; one card, button, spinner, footer and focus
   ring. Self-contained (no site.css), phone first, and at home inside an iframe. Every value can be replaced by brand.css, which is linked
   after this file; the two palettes here are the ones VerifyBrand keeps (a test compares them).
   The default look is the site's (plan 22, IV53 stage 6; theme.css): an off-white ground, white cards, near-black ink, hairlines, larger
   corners, the cobalt accent, no shadows and no gradients. A subscriber's branding still wins: brand.css is linked last. */
:root {
  color-scheme: light dark;
  --paper: #f5f6f3; --surface: #ffffff; --surface-2: #eef0ec; --ink: #10201f; --ink-2: #3b4b4a; --muted: #55625f; --line: #e1e5e1; --line-strong: #c9d0cc; --navy: #f5f6f3; --navy-2: #f5f6f3; --foil: #2747e0; --foil-hi: #7c9bff; --accent: #2747e0; --accent-ink: #ffffff; --accent-text: #2747e0; --accent-soft: #e6ebfc; --ok: #14532d; --ok-bg: #ddf3e6; --warn: #6b4a00; --warn-bg: #fbefcf; --bad: #8a2412; --bad-bg: #fbe1da; --shadow: none;
  --radius: 18px; --radius-sm: 12px; --radius-btn: 12px;
  --pad: 22px; --gap: 12px; --control: 50px;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Bricolage Grotesque", var(--sans);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@media (prefers-color-scheme: dark) { :root { --paper: #10201f; --surface: #182c2a; --surface-2: #213634; --ink: #f5f6f3; --ink-2: #dce5e2; --muted: #a9b6b2; --line: #2b403d; --line-strong: #3a504d; --navy: #10201f; --navy-2: #10201f; --foil: #7c9bff; --foil-hi: #7c9bff; --accent: #7c9bff; --accent-ink: #10201f; --accent-text: #7c9bff; --accent-soft: #1f2d5c; --ok: #9be8c2; --ok-bg: #1f4a3a; --warn: #f5d58a; --warn-bg: #4d3c10; --bad: #ffb59e; --bad-bg: #5a2418; --shadow: none; } }
* { box-sizing: border-box; }
html, body { height: 100%; }
/* Text follows the phone's text size (plan 22, IV17): every size on these pages is in rem, and on an iPhone the root is the system's body text,
   which follows its Text Size setting. Only on touch Safari: on a Mac the same keyword is a smaller desktop size. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) { html { font: -apple-system-body; } }
body { margin: 0; font: 1rem/1.5 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--foil); outline-offset: 2px; border-radius: 6px; }
h1:focus, h1:focus-visible { outline: none; }   /* focused by the page so screen readers read it; nothing to press */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.nojs { padding: 24px; text-align: center; }

/* ---------- the camera pages' frame: a header, the stage, the footer ---------- */
.shell { min-height: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; background: var(--paper); }
@media (min-width: 560px) { body { background: var(--surface-2); } .shell { margin: 28px auto; min-height: calc(100% - 56px); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); } }
body.embedded { background: transparent; } body.embedded .shell { margin: 0 auto; min-height: 100%; border-radius: 0; border: 0; box-shadow: none; }
.top { position: relative; background: var(--navy); color: var(--ink); border-bottom: 1px solid var(--line); padding: calc(18px + env(safe-area-inset-top)) 20px 14px; overflow: hidden; }
.top-art { display: none; }   /* the line work behind the header is not part of the plain look; a subscriber's CSS may show it again */
.top-art svg { position: absolute; right: -70px; top: -80px; width: 320px; height: 320px; }
.top-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.who { min-width: 0; }
.who-label { display: block; font-size: .8125rem; color: var(--muted); }
.who-name { display: block; font: 600 1.375rem/1.2 var(--serif); letter-spacing: .01em; overflow-wrap: anywhere; }   /* a long name wraps; at a large text size it is never cut */
/* The account's logo (brand.css and the settings decide the rest). */
.who-brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-top: 4px; }
.who-logo { display: block; flex: none; width: auto; height: auto; max-height: 44px; max-width: min(200px, 50vw); object-fit: contain; }
.logo-only .who-logo { max-height: 52px; max-width: min(260px, 62vw); }
@media (max-width: 420px) { .who-brand { gap: 10px; } .who-logo { max-height: 34px; max-width: 38vw; } }
.logo-only .who-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seal-wrap { flex: none; width: 64px; height: 64px; color: var(--foil); }
.seal-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.seal-wrap .seg { stroke: currentColor; opacity: .25; transition: opacity .4s ease; }
.seal-wrap .seg.on { opacity: 1; }
.seal-wrap .core { transition: transform .5s cubic-bezier(.2,1.4,.4,1), opacity .3s; transform-origin: 50% 50%; opacity: .0; transform: scale(.6); }
.seal-wrap.done .core { opacity: 1; transform: scale(1); }
.seal-wrap .tick { stroke: var(--navy); } .big-seal .tick { stroke: var(--surface); }   /* the colour behind the seal */

/* Progress: one part per step, or (with nothing between the parts) one bar. */
.steps { position: relative; list-style: none; display: flex; gap: 6px; margin: 16px 0 0; padding: 0; }
.steps li { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.steps li::after { content: ""; display: block; height: 100%; width: 0; background: var(--foil); transition: width .45s ease; }
.steps li.done::after { width: 100%; } .steps li.now::after { width: 45%; }
.steps:empty { display: none; }

/* ---------- the card and what is on it ---------- */
.stage { flex: 1; display: flex; flex-direction: column; padding: 18px 16px 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); animation: rise .28s ease both; }
.card.center { text-align: center; display: grid; justify-items: center; gap: 10px; padding: calc(var(--pad) + 14px) var(--pad); }
.card.center > * { margin-inline: auto; }
.card.plain { background: none; border: 0; padding: 4px 4px 0; box-shadow: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes press { 0% { transform: scale(1.5) rotate(-14deg); opacity: .2; } 60% { transform: scale(.94) rotate(2deg); opacity: 1; } 100% { transform: none; } }
h1 { font: 700 1.6875rem/1.15 var(--serif); margin: 0 0 8px; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font: 600 1.0625rem/1.3 var(--sans); margin: 0 0 4px; }
p { margin: 0 0 10px; color: var(--ink-2); }
.muted { color: var(--muted); font-size: .875rem; }
.eyebrow { font: 600 .8438rem/1.3 var(--sans); color: var(--muted); margin-bottom: 8px; display: block; }

.btn { appearance: none; -webkit-appearance: none; border: 2px solid transparent; border-radius: var(--radius-btn); padding: 12px 18px; min-height: var(--control); font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; overflow-wrap: anywhere; transition: transform .08s ease, filter .15s; width: 100%; }
.btn:active { transform: scale(.985); }
.btn:focus-visible { border-radius: var(--radius-btn); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn.link { background: none; border: 0; min-height: 0; padding: 8px; color: var(--muted); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; width: auto; }
.btn[disabled] { opacity: .6; cursor: default; filter: none; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.actions.row { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: var(--gap); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--foil); animation: turn .8s linear infinite; }

.note { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9062rem; margin-top: 12px; border: 1px solid; }
.note.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.note.bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad); }
.note.info { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.note ul { margin: 6px 0 0; padding-left: 18px; } .note b { color: inherit; }
.fine { font-size: .7812rem; line-height: 1.5; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 14px; }
.fine b { color: var(--ink-2); }

/* ---------- finish ---------- */
.big-seal { width: 148px; height: 148px; color: var(--foil); margin: 4px auto 6px; }
.big-seal svg { width: 100%; height: 100%; overflow: visible; }
.big-seal.working .spin { animation: turn 5s linear infinite; transform-origin: 50% 50%; }
.big-seal .mark { opacity: 0; }
.big-seal.pressed { animation: press .55s cubic-bezier(.2,1.5,.35,1) both; }
.big-seal.pressed .mark { opacity: 1; transition: opacity .2s .25s; }

/* ---------- sandbox ---------- */
.sandbox-bar { display: flex; gap: 8px; align-items: center; font: 600 .7188rem/1.3 var(--sans); color: var(--warn); background: var(--warn-bg); border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; }
.scn { display: grid; gap: 8px; margin-top: 12px; }
.scn button { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; width: 100%; }
.scn button:hover { border-color: var(--foil); }
.scn small { grid-column: 1 / -1; color: var(--muted); }
/* The scenarios grouped by outcome, each with a small picture, and a scenario's storyboard playing (plan 22, IV48). The pictures are the demo
   player's drawings (demo-player.js); the accent marks what was looked at, the bad colour what gave it away. What moves: the picture rises and
   the findings tick in, once per step, and neither with reduced motion. */
.scn-group { display: grid; gap: 8px; }
.scn-group + .scn-group { margin-top: 10px; }
.scn-group h2 { margin: 6px 0 2px; font: 600 .8125rem/1.3 var(--sans); color: var(--muted); }
.scn button:has(.scn-pic) { grid-template-columns: 44px 1fr auto; }
.scn button:has(.scn-pic) small { grid-column: 2 / -1; }
.scn-pic { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); overflow: hidden; }
.scn-pic svg { width: 36px; height: 36px; }
.sbx-body { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-top: 8px; }
.sbx-pic { flex: 0 0 150px; height: 180px; display: grid; place-items: center; border-radius: var(--radius); background: var(--surface-2); color: var(--ink); overflow: hidden; }
.sbx-pic svg { max-width: 82%; height: auto; }
.sbx-say { flex: 1 1 200px; min-width: 0; }
.sbx-title { margin: 0 0 6px; font: 600 1.1875rem/1.25 var(--serif); }
.sbx-rows { list-style: none; margin: 0; padding: 0; }
.sbx-rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9062rem; color: var(--ink-2); }
.sbx-v { flex: none; padding: 3px 9px; border-radius: 999px; font-size: .7812rem; text-align: right; }
.sbx-v.ok { background: var(--ok-bg); color: var(--ok); } .sbx-v.warn { background: var(--warn-bg); color: var(--warn); } .sbx-v.bad { background: var(--bad-bg); color: var(--bad); }
.sbx .actions { margin-top: 16px; }
:is(.sbx-pic, .scn-pic) .dp-acc { stroke: var(--accent); }
:is(.sbx-pic, .scn-pic) .dp-pt { fill: var(--accent); stroke: none; }
:is(.sbx-pic, .scn-pic) .dp-thin { stroke-width: 1.2; }
:is(.sbx-pic, .scn-pic) .dp-bad { stroke: var(--bad); stroke-width: 2.5; }
:is(.sbx-pic, .scn-pic) .dp-dash { stroke-width: 2; stroke-dasharray: 3 6; }
:is(.sbx-pic, .scn-pic) .dp-txt { fill: var(--muted); stroke: none; font: .5625rem var(--mono); }
.sbx-pic.rise svg { animation: sbx-rise .4s cubic-bezier(.3, .6, .2, 1) both; }
.sbx-rows li.tick { animation: sbx-tick .3s ease-out both; }
.sbx-rows li.tick:nth-child(2) { animation-delay: .35s; } .sbx-rows li.tick:nth-child(3) { animation-delay: .7s; } .sbx-rows li.tick:nth-child(n+4) { animation-delay: 1.05s; }
@keyframes sbx-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes sbx-tick { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sbx-pic.rise svg, .sbx-rows li.tick { animation: none; } }
.chip { font: 600 .75rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; }
.chip.allow { background: var(--ok-bg); color: var(--ok); } .chip.review { background: var(--warn-bg); color: var(--warn); } .chip.deny { background: var(--bad-bg); color: var(--bad); }

/* ---------- the footer line: the business's links, then Signet's ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); font-size: .8125rem; color: var(--muted); text-align: center; }
.foot a { color: inherit; padding: 3px 0; }
.foot .biz { flex-basis: 100%; order: -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
.foot .lock { display: inline-flex; }
.foot .mrz { flex-basis: 100%; text-align: center; font: .6875rem/1 var(--mono); letter-spacing: .22em; opacity: .5; white-space: nowrap; overflow: hidden; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* The ink tiles (plan 22, IV44; ink-icons.js): a finished step is an ink tile with one line drawing, drawn in once. The hosted tokens turn
   it over in dark mode (a light tile, an ink line), and a subscriber's brand.css sets them both. */
.ink-tile { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: var(--radius); background: var(--ink); color: var(--surface); }
.ink-tile .ink { display: block; width: 56%; height: 56%; }
.ink-tile.lg { width: 112px; height: 112px; border-radius: 24px; }
.done-mark { display: grid; place-items: center; margin: 4px 0 10px; }
.seal-wrap .ink-tile { width: 100%; height: 100%; }
.ink-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink-draw .6s cubic-bezier(.3,.6,.2,1) .1s forwards; }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ink-draw path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; } }
