@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root{color-scheme:light;--ink:#18342f;--muted:#72817d;--green:#176a52;--mint:#e7f2ec;--line:#e5ebe7;--paper:#f5f7f5;--white:#fff;--amber:#98691a;--amber-bg:#fff5df;--red:#a33f3c;--red-bg:#fff0ee}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;-webkit-font-smoothing:antialiased}.app-shell{width:min(100% - 32px,520px);margin:0 auto;padding:calc(20px + env(safe-area-inset-top)) 0 calc(22px + env(safe-area-inset-bottom))}.topbar{display:flex;align-items:center;gap:12px}.brand-mark{width:44px;height:44px;border-radius:14px;background:var(--green);color:white;display:grid;place-items:center;font:800 16px Manrope,sans-serif;letter-spacing:-1px}.eyebrow{margin:0 0 4px;color:#87928e;font-size:10px;font-weight:700;letter-spacing:1.25px}.topbar h1{margin:0;font:700 17px Manrope,sans-serif;letter-spacing:-.4px}.secure-tag{margin-left:auto;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:99px;padding:7px 10px;color:#78847f;font-size:9px;font-weight:700;letter-spacing:.7px}.dot{width:6px;height:6px;border-radius:50%;background:#45a37b}.intro{margin:37px 0 20px}.intro .eyebrow{color:var(--green)}h2{font-family:Manrope,sans-serif;letter-spacing:-.7px}.intro h2{margin:7px 0 7px;font-size:27px}.intro>p:last-child{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.scanner-card,.result-card{background:var(--white);border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 20px #18342f08}.scanner-card{padding:14px}.viewfinder{height:min(88vw,350px);max-height:350px;min-height:245px;position:relative;overflow:hidden;border-radius:14px;background:#142622;display:grid;place-items:center;color:#d5e4dd}.viewfinder video{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;display:none}.viewfinder.active video{display:block}.placeholder{display:flex;flex-direction:column;align-items:center;gap:16px;color:#aabbb4;font-size:12px}.qr-glyph{width:78px;height:78px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;opacity:.45}.qr-glyph i{border:2px solid #aec4ba;border-radius:3px;position:relative}.qr-glyph i:nth-child(2),.qr-glyph i:nth-child(4),.qr-glyph i:nth-child(6),.qr-glyph i:nth-child(8){border:0;background:#aec4ba;border-radius:1px}.qr-glyph i:nth-child(1):after,.qr-glyph i:nth-child(3):after,.qr-glyph i:nth-child(7):after{content:'';position:absolute;inset:5px;border:2px solid #aec4ba;border-radius:1px}.scan-frame{position:absolute;inset:50% auto auto 50%;width:min(58vw,215px);height:min(58vw,215px);max-height:215px;transform:translate(-50%,-58%);pointer-events:none}.scan-frame span{position:absolute;width:22px;height:22px;border-color:#a8e3c2;border-style:solid}.scan-frame span:nth-child(1){left:0;top:0;border-width:3px 0 0 3px;border-radius:8px 0 0}.scan-frame span:nth-child(2){right:0;top:0;border-width:3px 3px 0 0;border-radius:0 8px 0 0}.scan-frame span:nth-child(3){left:0;bottom:0;border-width:0 0 3px 3px;border-radius:0 0 0 8px}.scan-frame span:nth-child(4){right:0;bottom:0;border-width:0 3px 3px 0;border-radius:0 0 8px}.scan-frame b{display:none;position:absolute;left:8px;right:8px;top:20%;height:2px;background:#a8e3c2;box-shadow:0 0 12px #a8e3c2;animation:scan 2s ease-in-out infinite alternate}.viewfinder.active .scan-frame b{display:block}.camera-note{position:absolute;bottom:13px;left:12px;right:12px;text-align:center;font-size:11px;color:#dbe8e2;text-shadow:0 1px 5px #000}.primary-button,.secondary-button{min-height:52px;width:100%;margin-top:14px;border-radius:13px;font:700 14px 'DM Sans',sans-serif;cursor:pointer;touch-action:manipulation}.primary-button{border:0;background:var(--green);color:white;display:flex;align-items:center;justify-content:center;gap:10px}.primary-button:active{background:#105640}.primary-button:disabled{opacity:.65}.primary-button svg{width:19px;height:19px;fill:currentColor}.secondary-button{border:1px solid var(--line);background:white;color:var(--ink)}.privacy-note{margin:12px 0 1px;text-align:center;color:#89938f;font-size:11px}.privacy-note span{color:var(--green);margin-right:3px}.result-card{margin-top:14px;padding:18px}.result-heading{display:flex;align-items:center;gap:12px}.status-icon{width:39px;height:39px;border-radius:12px;background:#f0f3f1;color:#81908a;display:grid;place-items:center;font-size:18px;font-weight:700}.result-card h2{margin:2px 0 0;font-size:16px}.result-copy{margin:14px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.payload-wrap{margin-top:15px}.field-label{margin:0 0 6px;color:#87928e;font-size:9px;font-weight:700;letter-spacing:1px}pre{margin:0;max-height:130px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;padding:11px;background:#f5f7f5;color:#30423d;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.validation-note{display:flex;gap:8px;align-items:flex-start;margin-top:15px;padding:10px 11px;border-radius:10px;background:var(--amber-bg);color:#755c32;font-size:11px;line-height:1.45}.info-icon{flex:0 0 15px;width:15px;height:15px;border:1px solid #bb9b60;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:700}.result-card.scanned .status-icon{background:var(--amber-bg);color:var(--amber)}.result-card.error .status-icon{background:var(--red-bg);color:var(--red)}.result-card.error .validation-note{background:var(--red-bg);color:#8c4441}.hidden{display:none!important}footer{text-align:center;padding:22px 0 0;color:#98a29e;font-size:10px}footer span{padding:0 4px}@keyframes scan{from{top:14%}to{top:86%}}@media(min-width:600px){.app-shell{padding-top:32px}.intro{margin-top:46px}.viewfinder{height:350px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
