* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: #0c0e11; color: #fff; font: 400 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#mac { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #101418; }
#front { position: fixed; inset: 0; overflow-y: auto; display: grid; place-content: center; justify-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 32px) 24px calc(env(safe-area-inset-bottom) + 32px); text-align: center; background: #0c0e11; }
svg.hero { width: 88px; height: 60px; fill: none; stroke: rgba(235,235,245,.6); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
h1 { margin: 6px 0 0; font-size: 20px; font-weight: 600; text-wrap: balance; }
p { margin: 0; color: rgba(235,235,245,.76); max-width: 32ch; text-wrap: pretty; }
.stack { display: grid; gap: 4px; width: min(300px, 100%); margin-top: 10px; }
form { display: grid; gap: 10px; width: min(300px, 100%); margin-top: 10px; text-align: left; }
label { font-size: 13px; font-weight: 600; color: rgba(235,235,245,.76); }
input[type=text] { height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(120,120,128,.24); color: #fff; font: inherit; font-size: 16px; outline: 0; }
input[type=text]:focus { border-color: #0a84ff; }
button { min-height: 46px; border: 0; border-radius: 12px; background: #0a84ff; color: #fff; font: inherit; font-weight: 600; touch-action: manipulation; }
button:active { transform: scale(.97); }
button[disabled] { opacity: .5; }
button.quiet { background: none; color: #0a84ff; font-weight: 500; }
[hidden] { display: none !important; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { color: #ff9f0a; font-size: 14px; }
/* while the Mac's page is up and the line to the Mac drops and comes back */
#bar { position: fixed; z-index: 5; left: 50%; top: calc(env(safe-area-inset-top) + 8px); transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(28,30,34,.92); color: rgba(235,235,245,.86); font-size: 13px; pointer-events: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
/* the camera: the whole screen, the code to be held inside the square */
#scan { position: fixed; inset: 0; z-index: 10; background: #000; display: grid; grid-template-rows: 1fr auto; }
#scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#scan .frame { position: absolute; left: 50%; top: 44%; width: min(64vw, 280px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); outline: 2px solid rgba(255,255,255,.85); outline-offset: -2px; }
#scan .top { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 24px); text-align: center; padding: 0 24px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
#scan .barb { grid-row: 2; position: relative; z-index: 1; display: grid; padding: 16px 24px calc(env(safe-area-inset-bottom) + 20px); }
#scan .barb button { background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }

.steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; text-align: left; width: min(300px, 100%); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; color: rgba(235,235,245,.86); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(120,120,128,.32); font-size: 13px; font-weight: 600; }
.ic { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: #0a84ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
