/* CodingMarble QR & Barcode
   Tokens: paper / ink / laser. The one bold element is the viewfinder with its red laser line. */
:root {
  --paper: #f5f6f8;
  --panel: #ffffff;
  --ink: #101418;
  --ink-2: #39414d;
  --muted: #677180;
  --line: #dde1e8;
  --line-2: #c9ced8;
  --laser: #ff2d20;
  --brand: #3a3ae6;
  --ok: #0f8a5f;
  --err: #c0271d;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 0 rgba(16, 20, 24, .04), 0 8px 24px -12px rgba(16, 20, 24, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); overflow-x: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(16, 20, 24, .07) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(245, 246, 248, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(16, 20, 24, .4); }
.top-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo { width: 36px; height: 36px; transition: transform .4s var(--ease); }
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 16px/1 var(--display); letter-spacing: -.02em; }
.brand-by { font: 500 10.5px/1.4 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); transition: background .16s, color .16s; }
.nav a:hover { background: #fff; color: var(--ink); }
.nav a[aria-current] { background: var(--ink); color: #fff; }
.menu-wrap { position: relative; }
.menu-btn { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.menu-btn[aria-expanded="true"] { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; width: min(640px, calc(100vw - 32px)); background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink); padding: 16px; transform-origin: top right; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-6px); } }
.menu-h { margin: 0 4px 10px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.menu-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.menu-item:hover, .menu-item[aria-current] { background: var(--paper); }
.menu-item b { display: block; font-size: 14.5px; }
.menu-item small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* ---------- tiles ---------- */
.tile { --s: 48px; position: relative; flex: none; width: var(--s); height: var(--s); display: grid; place-items: center; border-radius: 12px; background: var(--c); color: #fff; overflow: hidden; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.tile .ic { width: 55%; height: 55%; }
.tile.sm { --s: 38px; border-radius: 10px; }
.tile.lg { --s: 68px; border-radius: 18px; }
.tile-laser { position: absolute; left: -10%; right: -10%; top: 0; height: 2px; background: var(--laser); box-shadow: 0 0 10px 2px rgba(255, 45, 32, .8); opacity: 0; }
.ic-laser { stroke: var(--laser); }
.tile .ic-laser { stroke: #fff; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.hero-h { font: 700 clamp(36px, 5.6vw, 66px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 20px; }
.hl-line { display: block; animation: rise .7s var(--ease) both; }
.hl-line:nth-child(2) { animation-delay: .08s; }
.hl-line:nth-child(3) { animation-delay: .16s; }
.hl-gen { color: var(--brand); position: relative; width: fit-content; }
.hl-gen::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.04em; height: 3px; background: var(--laser); border-radius: 2px; box-shadow: 0 0 12px 1px rgba(255, 45, 32, .7); transform-origin: left; animation: beam 1s .6s var(--ease) both; }
@keyframes beam { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 36em; margin: 0 0 26px; }
.try { max-width: 540px; }
.try label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.try-row { display: flex; gap: 8px; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; padding: 6px; box-shadow: 4px 4px 0 var(--ink); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.try-row:focus-within { box-shadow: 6px 6px 0 var(--brand); transform: translate(-1px, -1px); }
.try-row input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 12px; font: 500 16px var(--mono); background: transparent; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; }
.popular > span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.popular a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .16s, transform .16s var(--ease); }
.popular a::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.popular a:hover { border-color: var(--ink); transform: translateY(-2px); }
.hero-vf { max-width: 420px; justify-self: end; width: 100%; animation: rise .8s .2s var(--ease) both; }

/* ---------- viewfinder (signature) ---------- */
.vf { position: relative; aspect-ratio: 1; background: #fff; border-radius: 22px; padding: 11%; box-shadow: var(--shadow); isolation: isolate; }
.vf-c { position: absolute; width: 16%; height: 16%; border: 4px solid var(--ink); z-index: 2; pointer-events: none; transition: inset .4s var(--ease); }
.vf-c.tl { left: 5%; top: 5%; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.vf-c.tr { right: 5%; top: 5%; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.vf-c.bl { left: 5%; bottom: 5%; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.vf-c.br { right: 5%; bottom: 5%; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.vf.locked .vf-c { border-color: var(--ok); }
.vf-stage { width: 100%; height: 100%; display: grid; place-items: center; transition: opacity .2s, filter .2s; }
.vf-stage > svg, .vf-stage > canvas, .vf-stage > div > svg, .vf-stage > div > canvas { width: 100% !important; height: 100% !important; object-fit: contain; }
.vf-stage > div { width: 100%; height: 100%; }
.vf.bad .vf-stage { opacity: .12; filter: grayscale(1) blur(1px); }
.laser { position: absolute; left: 7%; right: 7%; top: 12%; height: 2px; border-radius: 2px; background: var(--laser); box-shadow: 0 0 14px 3px rgba(255, 45, 32, .55); opacity: 0; z-index: 3; pointer-events: none; }
.vf.sweep .laser { animation: sweep .9s var(--ease); }
@keyframes sweep { 0% { opacity: 0; top: 10%; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: 90%; } }
.vf.live .laser { animation: scanloop 2.2s ease-in-out infinite alternate; opacity: 1; }
@keyframes scanloop { from { top: 14%; } to { top: 86%; } }
.vf-err { position: absolute; inset: auto 12% 42% 12%; margin: 0; text-align: center; font-weight: 600; color: var(--err); background: #fff; padding: 10px 12px; border-radius: 10px; border: 1.5px solid currentColor; z-index: 4; font-size: 14.5px; line-height: 1.4; }
.vf-idle { color: var(--muted); font: 500 13px var(--mono); text-align: center; margin: 0; }
.readout { margin-top: 12px; background: var(--ink); color: #d8dee8; border-radius: 12px; padding: 10px 14px; font: 13px/1.5 var(--mono); }
.readout-k { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a94a3; margin-bottom: 2px; }
.readout code { display: block; white-space: pre-wrap; word-break: break-all; max-height: 7.5em; overflow: auto; color: #fff; }
.readout code .k { color: #ff8a82; }

/* ---------- sections, cards ---------- */
.browse { padding: 34px 20px 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 18px; }
.sec-head h2, .how h2, .more h2 { font: 600 clamp(22px, 2.6vw, 28px)/1.15 var(--display); letter-spacing: -.02em; margin: 0; }
.sec-head p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; transition: transform .22s var(--ease), border-color .22s, box-shadow .22s var(--ease); }
.card-txt { flex: 1; min-width: 0; }
.card-name { display: block; font-weight: 700; font-size: 16px; line-height: 1.25; }
.card-desc { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 3px; }
.card-go { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: background .2s, transform .25s var(--ease); }
.card-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 5px 5px 0 var(--c); }
.card:hover .card-go { background: var(--ink); color: #fff; transform: translateX(3px); }
.card:hover .tile-laser { animation: tsweep .7s var(--ease); }
.card:active { transform: translateY(-1px); box-shadow: 2px 2px 0 var(--c); }
@keyframes tsweep { 0% { top: 8%; opacity: 0; } 20% { opacity: 1; } 100% { top: 92%; opacity: 0; } }

.how { padding: 56px 20px 16px; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 20px; position: relative; }
.steps li::before { content: counter(s); position: absolute; right: 16px; top: 12px; font: 700 34px/1 var(--display); color: var(--line); }
.steps b { font-size: 17px; }
.steps p { color: var(--ink-2); margin: 6px 0 12px; font-size: 15px; }
.steps code { display: inline-block; font: 12.5px var(--mono); background: var(--paper); border-radius: 6px; padding: 4px 8px; color: var(--ink-2); }

/* ---------- page head ---------- */
.page-head { padding-top: 26px; padding-bottom: 8px; }
.crumbs { display: flex; gap: 8px; font: 500 12.5px var(--mono); color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.head-row { display: flex; gap: 18px; align-items: flex-start; }
.head-row .tile { animation: rise .6s var(--ease) both; }
.page-head h1 { font: 700 clamp(28px, 4vw, 44px)/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 10px; }
.page-head .lead { font-size: 17.5px; color: var(--ink-2); margin: 0; max-width: 46em; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.badges li { font: 500 12px var(--mono); padding: 5px 10px 5px 24px; border-radius: 999px; background: #fff; border: 1px solid var(--line); position: relative; }
.badges li::before { content: ''; position: absolute; left: 10px; top: 50%; width: 8px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: translateY(-70%) rotate(-45deg); }

/* ---------- studio (tool) ---------- */
.tool-wrap { padding-top: 22px; padding-bottom: 20px; }
.studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--c, var(--ink)); overflow: hidden; }
.controls { padding: 24px; border-right: 1.5px solid var(--line); min-width: 0; }
.preview { padding: 24px; background: #fafbfc; min-width: 0; }
.studio .preview .vf { max-width: 400px; margin: 0 auto; }
@media (min-width: 900px) { .pv { position: sticky; top: 90px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper); border-radius: 12px; margin-bottom: 18px; }
.tabs button { flex: 1 1 auto; border: 0; background: transparent; padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--ink-2); transition: background .18s, color .18s, box-shadow .18s; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 20, 24, .12), 0 0 0 1px var(--line); }
.pane[hidden] { display: none; }
.pane:not([hidden]) { animation: fadein .25s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.fields, .row, .pane { display: flex; flex-wrap: wrap; gap: 14px 14px; }
.fields > *, .row > *, .pane > * { flex: 1 1 100%; }
.fields > .half, .row > .half, .pane > .half { flex: 1 1 calc(50% - 7px); min-width: 150px; }
.fields > .narrow, .pane > .narrow { flex: 0 0 96px; min-width: 0; }
.pane { width: 100%; }
.field label, .field .lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.help { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.45; }
input[type=text], input[type=url], input[type=email], input[type=tel], input[type=password], textarea, select {
  width: 100%; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 13px; font-size: 16px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
input:hover, textarea:hover, select:hover { border-color: #9aa2ae; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(58, 58, 230, .14); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.select::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pw { position: relative; }
.pw input { padding-right: 70px; font-family: var(--mono); }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--paper); border-radius: 7px; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 500; user-select: none; padding: 4px 0; align-self: end; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check .box::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s var(--ease); }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible + .box { outline: 3px solid var(--brand); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; }
.color { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 5px 6px; background: #fff; }
.color:focus-within { border-color: var(--ink); }
.color input[type=color] { width: 34px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; border-radius: 6px; }
.color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color input[type=color]::-webkit-color-swatch { border: 1px solid var(--line); border-radius: 6px; }
.color input[type=text] { border: 0; padding: 4px; font: 14px var(--mono); box-shadow: none; }
details.design, details.sub { margin-top: 18px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
details.sub { margin-top: 14px; }
details.design > summary, details.sub > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: baseline; gap: 10px; font-weight: 700; border-radius: var(--r); }
details.sub > summary { font-weight: 600; font-size: 15px; }
details > summary::-webkit-details-marker { display: none; }
details.design > summary small { font-weight: 400; color: var(--muted); font-size: 13.5px; }
details.design > summary::after, details.sub > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); align-self: center; }
details[open] > summary::after { transform: rotate(-135deg); }
details.design > summary:hover, details.sub > summary:hover { background: var(--paper); }
.design-in, details.sub > .fields { padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
details.sub > .fields { flex-direction: row; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.seg legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 7px 13px; border: 1.5px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; transition: all .15s; }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.logo-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.more-types { margin: 18px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.more-types a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 3px 10px; border-radius: 999px; background: var(--paper); transition: background .15s; }
.more-types a:hover { background: var(--line); }
.geo { margin-top: -2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s; box-shadow: 0 0 0 var(--laser); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--c, var(--brand)); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.link, .link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.acts .btn:first-child { flex: 1 1 100%; }
.acts2 { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 14px; font-size: 14.5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; opacity: 0; transition: opacity .2s, transform .3s var(--ease); z-index: 90; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* scanner */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 220px; border: 2px dashed var(--line-2); border-radius: var(--r); padding: 24px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; transition: transform .3s var(--ease); }
.drop span { color: var(--muted); font-size: 14px; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--paper); }
.drop:hover svg, .drop.over svg { transform: translateY(-4px); }
.drop:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.cam-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.cam-bar .select { flex: 1 1 160px; }
#reader { width: 100%; height: 100%; overflow: hidden; border-radius: 10px; }
#reader video { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 10px; }
#reader img { display: none; }
#reader:empty { display: none; }
.scan .vf-stage { position: relative; }
.result { margin-top: 16px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); padding: 16px; animation: rise .35s var(--ease); }
.result-type { display: inline-block; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; }
.result-fmt { font: 12px var(--mono); color: var(--muted); margin-left: 8px; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 15px; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 600; word-break: break-word; }
.result pre { white-space: pre-wrap; word-break: break-word; font: 14px/1.5 var(--mono); background: var(--paper); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; max-height: 220px; overflow: auto; }
.result .acts { justify-content: flex-start; margin-top: 14px; }
.result .acts .btn:first-child { flex: 0 1 auto; }
.result-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }

/* bulk */
.bulk .preview { display: flex; flex-direction: column; }
.bulk-head { display: flex; flex-direction: column; gap: 4px; }
.bulk-head p { margin: 0; font-weight: 600; }
.bulk-head .acts { margin-top: 10px; justify-content: flex-start; }
.bulk-head .acts .btn:first-child { flex: 0 1 auto; }
.bulk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 16px; max-height: 560px; overflow: auto; padding: 2px; }
.bulk-cell { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: 12px; animation: rise .3s var(--ease) both; }
.bulk-cell svg, .bulk-cell img { width: 100%; height: auto; max-height: 90px; object-fit: contain; }
.bulk-cell span { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-cell.bad { border-color: var(--err); color: var(--err); display: flex; flex-direction: column; justify-content: center; min-height: 100px; }
#print-sheet { display: none; }

/* ---------- article ---------- */
.article-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 44px; padding-bottom: 20px; }
.toc { position: sticky; top: 90px; align-self: start; font-size: 14px; }
.toc-h { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); line-height: 1.35; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-color: var(--laser); font-weight: 600; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.72; color: #222831; }
.prose.narrow { padding-bottom: 40px; }
.prose h2 { font: 600 clamp(22px, 2.4vw, 27px)/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); margin: 46px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; line-height: 1.3; color: var(--ink); margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.prose code { font: 14.5px var(--mono); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-word; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--ink); color: #fff; font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.faqs { display: flex; flex-direction: column; gap: 8px; }
.faqs details { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.faqs details[open] { border-color: var(--ink); }
.faqs summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; line-height: 1.4; }
.faqs summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 22px/1 var(--mono); transition: transform .25s var(--ease); }
.faqs details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 16px 6px; }
.updated { font: 12.5px var(--mono); color: var(--muted); margin-top: 28px; }
.home-prose { padding-top: 48px; padding-bottom: 20px; }
.more { padding-top: 30px; padding-bottom: 20px; }
.more h2 { margin-bottom: 16px; }

/* ---------- credit + footer ---------- */
.credit-wrap { padding-top: 56px; }
.credit { display: grid; gap: 6px; text-decoration: none; background: var(--ink); color: #fff; border-radius: 22px; padding: 30px 32px; position: relative; overflow: hidden; }
.credit::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--laser); box-shadow: 0 0 16px 2px rgba(255, 45, 32, .7); transform: translateY(-4px); transition: transform .8s var(--ease); }
.credit:hover::before { transform: translateY(150px); }
.credit-label { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9aa3b1; }
.credit-word { font: 700 clamp(30px, 6vw, 60px)/1 var(--display); letter-spacing: -.04em; }
.credit-word span { color: var(--laser); }
.credit-foot { color: #c3cad5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.credit-cta { color: #fff; font-weight: 700; }
.credit-cta span { display: inline-block; transition: transform .25s var(--ease); }
.credit:hover .credit-cta span { transform: translateX(5px); }
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: #fff; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 20px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 30em; }
.foot-h { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.foot ul a, .sisters a { text-decoration: none; }
.foot ul a:hover, .sisters a:hover { text-decoration: underline; }
.sisters a { font-weight: 600; color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 26px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot-base a { text-decoration: none; }

/* scroll reveal (only when JS added .js; content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-wrap { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-vf { justify-self: center; max-width: 340px; }
  .studio { grid-template-columns: 1fr; }
  .controls { border-right: 0; border-bottom: 1.5px solid var(--line); }
  .studio .preview .vf { max-width: 300px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .steps { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .browse, .how { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 28px; }
  .hero-lead { font-size: 16.5px; }
  .brand-by { display: none; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu { position: fixed; left: 12px; right: 12px; top: 74px; width: auto; }
  .controls, .preview { padding: 18px 16px; }
  .studio { border-radius: 16px; box-shadow: 5px 5px 0 var(--c, var(--ink)); }
  .head-row .tile.lg { display: none; }
  .page-head .lead { font-size: 16.5px; }
  .prose { font-size: 16.5px; }
  .credit { padding: 24px 20px; }
  .foot-in { grid-template-columns: 1fr; }
}
/* touch screens: finger-sized targets (44px guideline) */
@media (pointer: coarse) {
  input[type=range] { height: 40px; }
  .color { padding: 6px; }
  .color input[type=color] { width: 40px; height: 36px; }
  .pw-toggle { padding: 10px 12px; }
  .seg span { padding: 10px 15px; }
  .tabs button { padding: 12px 12px; }
  .check { min-height: 44px; }
  .link-btn, .link { padding: 10px 0; }
  .acts .btn { min-height: 46px; }
  .nav a, .menu-item { min-height: 44px; }
  .faqs summary { padding-top: 16px; padding-bottom: 16px; }
  .toc a { padding-top: 8px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .laser, .tile-laser { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- print: bulk label sheet / single barcode ---------- */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  body.printing > *:not(#print-sheet):not(main), body.printing main > *:not(#print-sheet) { display: none !important; }
  body.printing #print-sheet { display: grid !important; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 4mm; }
  #print-sheet .lab { break-inside: avoid; border: .2mm dashed #bbb; padding: 3mm; text-align: center; font: 9pt/1.2 Arial, sans-serif; }
  #print-sheet img { width: 100%; height: auto; max-height: 40mm; object-fit: contain; }
  #print-sheet.single { grid-template-columns: 1fr; }
  #print-sheet.single img { max-height: 80mm; width: auto; margin: 0 auto; }
}
