:root {
  color-scheme: light dark;
  --bg: #f7f8f5; --surface: #fff; --ink: #1d2923; --muted: #69756e; --line: #dce3dc;
  --accent: #176b4d; --accent-ink: #fff; --soft: #edf5ef; --danger: #9c3f31; --warning: #8a651f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--ink); }
a { color: inherit; }
.site-header, .site-footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { padding: 26px 0 18px; } .wordmark { font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.site-nav { display: flex; gap: 18px; color: var(--muted); font-size: .92rem; } .site-nav a { text-decoration: none; } .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.page-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 7vh 0 12vh; min-height: calc(100vh - 140px); }
.surface { width: min(100%, 760px); margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px, 5vw, 58px); box-shadow: 0 18px 55px rgba(26, 54, 41, .07); }
.hero { max-width: 820px; text-align: left; padding-top: clamp(44px, 10vw, 105px); padding-bottom: clamp(44px, 10vw, 105px); }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 760; letter-spacing: .12em; margin: 0 0 18px; } h1 { max-width: 720px; margin: 0; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.065em; } h2 { margin: 34px 0 8px; font-size: 1.15rem; letter-spacing: -.02em; }
.lede { max-width: 580px; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.24rem); line-height: 1.55; margin: 20px 0 0; } .hero-copy { max-width: 520px; color: var(--muted); font-size: 1.08rem; line-height: 1.6; margin: 28px 0 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 8px; } .button { border: 1px solid var(--line); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; font: inherit; font-weight: 680; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; } .button:hover:not(:disabled) { transform: translateY(-1px); } .button:disabled { cursor: not-allowed; opacity: .48; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .secondary { background: transparent; color: var(--ink); } .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); margin-top: 52px; padding-top: 18px; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.chooser { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 2px; } .input-row { display: flex; } .input-row .button { min-width: 130px; } .demo-note { color: var(--muted); margin: 8px 0; }
.status { margin: 22px 0 12px; border: 1px solid var(--line); background: var(--soft); border-radius: 12px; padding: 15px 16px; } .status p { color: var(--muted); margin: 5px 0 0; line-height: 1.45; } .status[data-tone="error"] { border-color: #e8b6ad; background: #fff5f2; color: var(--danger); } .status[data-tone="warning"] { border-color: #e8d69c; background: #fffbed; color: var(--warning); } .status[data-tone="success"] { border-color: #add5bb; background: #f0faf2; color: var(--accent); }
.details { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; } .metric { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: .9rem; } .fine-print, .muted { color: var(--muted); font-size: .83rem; line-height: 1.55; } .fine-print { margin-top: 28px; }
.onboarding { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 26px; } .onboarding h2 { margin-top: 0; } .onboarding p { color: var(--muted); line-height: 1.5; } .qr-box { width: min(100%, 330px); aspect-ratio: 1; margin: 20px auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 16px; } .qr-box svg { width: 100%; height: 100%; } .url { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; text-align: center; }
.data-qr { width: auto; max-width: 92vw; max-height: 78vh; margin: 15px auto; display: block; background: #fff; border-radius: 12px; image-rendering: pixelated; } .transfer-mode { display: grid; place-items: center; align-content: center; gap: 14px; margin-top: 24px; padding: 3vh 2vw; background: #fff; color: #17211b; border: 1px solid #d9e0da; border-radius: 14px; } .transfer-mode .data-qr { margin: 0; border-radius: 0; } .transfer-mode.optical-safe .data-qr { max-width: min(90vw, 600px); max-height: 600px; } .transfer-mode.optical-fast .data-qr { max-width: min(90vw, 1100px); max-height: 70vh; } .transfer-mode .transfer-status { margin: 0; font-weight: 680; text-align: center; } .transfer-mode .button { background: #fff; color: #17211b; border-color: #c9d2ca; min-width: 110px; } .transfer-mode:fullscreen { position: fixed; inset: 0; z-index: 20; margin: 0; padding: 4vh 4vw; border: 0; border-radius: 0; } body.transfer-active { overflow: auto; } .debug-badge { margin: 0 0 14px; padding: 12px 14px; border: 2px solid var(--accent); border-radius: 10px; color: var(--accent); font-weight: 800; letter-spacing: .04em; } .debug-metrics { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; } .camera-frame { position: relative; overflow: hidden; min-height: 340px; background: #17211b; border-radius: 14px; display: grid; place-items: center; margin-top: 24px; } video { display: block; width: 100%; max-height: 62vh; object-fit: cover; } .camera-hint { position: absolute; color: #d8e5db; text-align: center; padding: 24px; } .camera-frame::after { content: ""; position: absolute; top: 8%; bottom: 8%; left: 50%; width: min(84%, 84vh); max-width: 84%; transform: translateX(-50%); aspect-ratio: 1; border: 2px solid rgba(255,255,255,.72); border-radius: 16px; pointer-events: none; } progress { width: 100%; height: 12px; accent-color: var(--accent); margin-top: 18px; } .progress-label { color: var(--muted); font-size: .88rem; }
.display-ad-slot { min-height: 90px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); display: grid; place-items: center; font-size: .75rem; margin-top: 20px; }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; } .subsurface { border: 1px solid var(--line); border-radius: 12px; padding: 22px; } .subsurface h2 { margin-top: 0; } .subsurface p { color: var(--muted); line-height: 1.5; } .badge { color: var(--warning); font-size: .82rem; }
.site-footer { padding: 20px 0 26px; color: var(--muted); font-size: .78rem; } .site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root { --bg: #111713; --surface: #18201b; --ink: #edf4ee; --muted: #a5b3a9; --line: #324238; --soft: #203127; --danger: #ffb4a8; --warning: #e6c878; } .status[data-tone="error"] { background: #321d1a; border-color: #704138; } .status[data-tone="warning"] { background: #332b17; border-color: #6a5827; } .status[data-tone="success"] { background: #193523; border-color: #326b48; } .qr-box, .data-qr { background: #fff; } }
@media (max-width: 640px) { .site-header, .site-footer { width: min(100% - 28px, 1120px); } .site-header { align-items: flex-start; flex-direction: column; gap: 14px; } .site-nav { gap: 14px; } .page-shell { width: min(100% - 28px, 1120px); padding-top: 28px; } .surface { padding: 24px 20px; } h1 { font-size: 2.5rem; } .steps, .download-grid { grid-template-columns: 1fr; } .camera-frame { min-height: 280px; } .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; } }
