/* BarcodePilot — "The product performs". Warm black, white labels, one gold action. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0a08;
  --surface: #181512;
  --surface-2: #221e1a;
  --ink: #ffffff;
  --muted: #a8a29b;
  --accent: #c9a45a;
  --accent-strong: #dcb86c;
  --accent-ink: #0c0a08;
  --paper: #ffffff;
  --line: #3a342e;
  --ok: #9ed39a;
  --warn: #f0c46b;
  --err: #ff9b8a;
  --r: 4px;
  --m: max(clamp(16px, 3vw, 40px), env(safe-area-inset-left), env(safe-area-inset-right));
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 12vw, 200px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.25rem, 1.2rem + 3vw, 3.75rem);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); -webkit-tap-highlight-color: transparent; }
button, a, label, select, summary, input[type="checkbox"], input[type="radio"] { touch-action: manipulation; }
h1, h2, h3, [id] { scroll-margin-top: 24px; }
body { margin: 0; font: 400 var(--step-body)/1.5 var(--font); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: currentColor; } }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-2); border-radius: var(--r); padding: 0.08em 0.35em; overflow-wrap: anywhere; }
.frame { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--m); }

/* ---------- top bar ---------- */
.bar { position: relative; z-index: 10; }
.bar-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.logo-mark .accent { color: var(--accent); }
.nav { margin-left: auto; display: flex; gap: 24px; }
.nav a { text-decoration: none; color: var(--muted); font-size: var(--step-small); padding: 8px 0; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface-2); border: 0; border-radius: var(--r); width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--surface); flex-direction: column; gap: 0; padding: 8px var(--m) 16px; }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
}

/* ---------- hero: two halves, the tool on the lighter one ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(860px, calc(100svh - 72px)); }
.hero-copy { display: flex; flex-direction: column; padding: 32px var(--m) 56px; }
.hero-text { margin-top: auto; max-width: 620px; }
.hero h1 { font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.025em; }
.hero .lead { margin-top: 28px; font-size: max(18px, var(--step-body)); max-width: 46ch; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--step-small); }
.hero-stage { background: var(--surface); display: grid; place-items: center; padding: 48px var(--m); }
.hero-stage > * { width: 100%; max-width: 600px; }
.hero.wide { grid-template-columns: 5fr 7fr; }
.hero.wide .hero-stage > * { max-width: 820px; }
@media (max-width: 960px) {
  .hero, .hero.wide { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 16px var(--m) 32px; }
  .hero-text { margin-top: 40px; }
  .hero-stage { padding: 28px var(--m) 40px; }
}

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: var(--step-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* masked headline */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 120ms); }
  .js .hero-after { opacity: 0; transform: translateY(16px); animation: fade-up 700ms var(--ease-out) 420ms forwards; }
  .js .stage-in { opacity: 0; transform: translateY(24px); animation: fade-up 900ms var(--ease-expo) 260ms forwards; }
}
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- the tool (product interface: its own borders apply) ---------- */
[data-ui] { font-size: 15px; line-height: 1.45; }
[data-ui] label { color: var(--muted); }
.tool-card { display: grid; gap: 16px; }
.label-sheet { background: var(--paper); color: #111; border-radius: var(--r); min-height: 230px; display: grid; place-items: center; padding: 28px; position: relative; }
.checker { background-color: #fff; /* taste-skill-ignore: transparency checkerboard inside the tool */ background-image: linear-gradient(45deg, #e9e6e1 25%, transparent 25%), linear-gradient(-45deg, #e9e6e1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e9e6e1 75%), linear-gradient(-45deg, transparent 75%, #e9e6e1 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.preview-inner { width: 100%; display: grid; place-items: center; transition: opacity 0.15s; }
.preview-inner.stale { opacity: 0.2; }
.preview-inner svg { width: 100%; max-width: 440px; height: auto; max-height: 200px; display: block; }
.size-line { color: var(--muted); font-size: 14px; margin: 0; min-height: 1.45em; }
.field { display: grid; gap: 6px; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
[data-ui] input[type="text"], [data-ui] input[type="number"], [data-ui] select, [data-ui] textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); /* taste-skill-ignore: form fields */ border-radius: var(--r); padding: 11px 12px; width: 100%; min-width: 0; transition: border-color var(--t-hover) ease;
}
[data-ui] input[name="value"] { font-size: 18px; letter-spacing: 0.01em; }
[data-ui] textarea { font-size: 15px; line-height: 1.5; resize: vertical; }
[data-ui] input:hover, [data-ui] select:hover, [data-ui] textarea:hover { border-color: #5a5048; }
[data-ui] input:focus-visible, [data-ui] select:focus-visible, [data-ui] textarea:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
[data-ui] input[aria-invalid="true"] { border-color: var(--err); }
[data-ui] input[type="color"] { width: 44px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
[data-ui] input[type="checkbox"], [data-ui] input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.msg, .check-result { font-size: 15px; margin: 0; min-height: 1.45em; color: var(--muted); }
.msg.ok, .check-result.ok { color: var(--ok); }
.msg.err, .check-result.err { color: var(--err); }
.msg.warn { color: var(--warn); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 13px var(--font); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: var(--r); padding: 6px 10px; cursor: pointer; transition: border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(0.97); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--font); padding: 12px 18px; min-height: 46px; border-radius: var(--r); border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #2f2924; } .btn.primary:hover { background: var(--accent-strong); } }
.btn:disabled { opacity: 0.55; cursor: progress; }
.link-btn { background: none; border: 0; padding: 8px 0; font: 500 15px var(--font); color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.link-btn:hover { text-decoration-color: currentColor; }
.dl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dl-row.small { gap: 8px 20px; font-size: 14px; color: var(--muted); }
.dl-row.small label { display: flex; gap: 8px; align-items: center; }
.dl-row.small select { width: auto; padding: 7px 8px; font-size: 14px; }
.file-btn { cursor: pointer; color: var(--ink) !important; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- panel: the barcode at true size beside its controls ---------- */
.sec { padding-top: var(--section); }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.sec-head p { margin-top: 16px; max-width: 58ch; }
.panel { display: grid; grid-template-columns: 62fr 38fr; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.panel-show { background: var(--surface-2); display: grid; align-content: center; justify-items: center; gap: 18px; padding: clamp(24px, 4vw, 56px); min-height: 520px; min-width: 0; }
.true-size { background: var(--paper); border-radius: var(--r); padding: 24px; max-width: 100%; overflow: auto; }
.true-size svg { display: block; max-width: none; }
.panel-show .size-big { font-size: var(--step-lead); text-align: center; margin: 0; }
.panel-show .size-note { color: var(--muted); font-size: 14px; text-align: center; max-width: 46ch; margin: 0; }
.controls { padding: 16px clamp(16px, 2.4vw, 32px) 24px; display: grid; align-content: start; }
.ctl { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; font-size: 14px; color: var(--ink) !important; }
.ctl select, .ctl input[type="number"], .ctl input[type="text"] { width: 56% !important; max-width: 240px; padding: 8px 10px !important; font-size: 15px !important; }
.ctl.checkline { justify-content: flex-start; gap: 12px; }
.ctl .colours { display: flex; gap: 10px; align-items: center; }
.controls .opt-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
form[data-kind="2d"] .only-1d, form[data-kind="postal"] .only-1d, form[data-kind="postal"] .no-postal { display: none !important; }
form:not([data-kind="2d"]) .only-2d, form[data-kind="2d"] .not-2d, form:not([data-ec="1"]) .only-ec { display: none !important; }
form[data-fixed="1"] .ctl:has(input[name="height"]) { display: none !important; }
form:not([data-type="code39"]) .only-code39 { display: none !important; }
form[data-retail="1"] .only-free { display: none !important; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .panel-show { min-height: 0; }
}

/* bulk, labels, check, random */
.out-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; max-height: 620px; overflow: auto; }
.cell { margin: 0; background: var(--paper); border-radius: var(--r); padding: 12px; display: grid; gap: 6px; justify-items: center; }
.cell svg { width: 100%; height: auto; max-height: 90px; }
.cell figcaption { font-size: 13px; color: #333; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.errors { margin: 0; padding-left: 18px; color: var(--warn); font-size: 14px; }
.errors:empty { display: none; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; }
.opt-grid label { display: grid; gap: 6px; font-size: 14px; align-content: start; }
.opt-grid label.check, .radio-row label { display: flex; gap: 8px; align-items: center; color: var(--ink); grid-column: 1 / -1; }
fieldset { /* taste-skill-ignore: form fieldset */ border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0; }
legend { padding: 0 6px; color: var(--ink); font-size: 14px; }
.row-btns, .radio-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sheet-wrap { display: grid; place-items: center; padding: clamp(16px, 3vw, 48px); background: var(--surface-2); border-radius: var(--r); }
.sheet-preview { container-type: inline-size; position: relative; width: 100%; max-width: 460px; background: var(--paper); color: #111; overflow: hidden; }
.lbl { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3% 4%; outline: 1px dashed #c9c4bd; outline-offset: -1px; overflow: hidden; }
.lbl.empty { background: #f6f4f1; }
.lbl .t { font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lbl .b { flex: 1 1 auto; min-height: 0; width: 100%; position: relative; }
.lbl .b svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.check-steps { overflow-x: auto; }
table.steps { border-collapse: collapse; font-size: 14px; margin: 8px 0; font-variant-numeric: tabular-nums; }
table.steps caption { text-align: left; color: var(--ink); margin-bottom: 8px; }
table.steps th, table.steps td { border: 1px solid var(--line); padding: 6px 9px; text-align: center; }
table.steps th { text-align: left; font-weight: 500; color: var(--muted); white-space: nowrap; }
.check-bc { background: var(--paper); border-radius: var(--r); padding: 18px; display: grid; place-items: center; margin-top: 12px; }
.check-bc svg { max-width: 280px; height: auto; }
.check-steps p { color: var(--ink); }

/* generator: test panel and your barcodes */
.test-panel { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; background: var(--surface-2); border-radius: var(--r); padding: 16px; }
.test-panel p { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.test-panel strong { font-weight: 600; }
.test-qr { background: var(--paper); border-radius: var(--r); padding: 6px; line-height: 0; }
.test-qr svg { width: 120px; height: 120px; display: block; }
@media (max-width: 520px) { .test-panel { grid-template-columns: 1fr; } .test-qr { justify-self: start; } }
.panel-flat { background: var(--surface); border-radius: var(--r); padding: clamp(16px, 2.4vw, 32px); display: grid; gap: 20px; }
.shelf-grid { max-height: 520px; }
.shelf-cell { position: relative; padding: 0; }
.shelf-open { all: unset; cursor: pointer; display: grid; place-items: center; padding: 12px 12px 0; width: 100%; box-sizing: border-box; border-radius: var(--r); }
.shelf-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shelf-open svg { width: 100%; height: auto; max-height: 90px; }
.shelf-cell figcaption { padding: 0 12px 12px; }
.shelf-del { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #eeeae4; color: #333; font-size: 16px; line-height: 1; cursor: pointer; }
.shelf-del:hover { background: #ddd6cd; }
.shopify .shop-stats { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.shopify .radio-row { flex-direction: column; gap: 8px; margin-bottom: 12px; }
.shopify .ean-start { margin-bottom: 12px; }
.hint.err { color: var(--err); }

/* scanner pages */
.viewfinder { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: var(--r); overflow: hidden; }
.viewfinder video, .viewfinder .vf-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewfinder video { object-fit: cover; }
.vf-guide { position: absolute; left: 12%; top: 28%; width: 76%; height: 44%; pointer-events: none; opacity: 0; transition: opacity 200ms ease; color: var(--accent); overflow: visible; }
.viewfinder[data-state="live"] .vf-guide { opacity: 1; }
.vf-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: rgba(12, 10, 8, 0.62); color: var(--ink); font-size: 15px; } /* taste-skill-ignore: a dark scrim over the poster photo */
.vf-idle p { margin: 0; max-width: 32ch; }
.viewfinder[data-state="live"] .vf-idle, .viewfinder[data-state="starting"] .vf-idle { display: none; }
.viewfinder[data-state="starting"]::after { content: "Starting the camera…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.vf-tools { position: absolute; left: 0; right: 0; bottom: 0; display: none; justify-content: center; gap: 8px; padding: 12px; }
.viewfinder[data-state="live"] .vf-tools { display: flex; }
.vf-tools button { font: 600 14px var(--font); color: var(--ink); background: var(--bg); border: 0; border-radius: var(--r); padding: 10px 14px; min-height: 44px; cursor: pointer; }
.vf-tools button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.viewfinder:not([data-torch="1"]) [data-vf="torch"], .viewfinder:not([data-multi="1"]) [data-vf="switch"] { display: none; }
.scan-card.drop, #tool.drop .tool-card { outline: 2px dashed var(--accent); outline-offset: 6px; }
.inline-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink) !important; }
.verify-form, .lookup-form, .count-form { display: grid; gap: 14px; }
.step-label { margin: 6px 0 0; font-size: 14px; color: var(--ink); font-weight: 600; }
.verify-form .step-label:first-child { margin-top: 0; }
.step-label span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; }
.chip[data-try] { margin: 2px 2px 2px 0; }

/* result card */
.result-slot:empty, .verdict-slot:empty { display: none; }
.result { background: var(--paper); color: #16130f; border-radius: var(--r); padding: 20px; display: grid; gap: 14px; }
.result a { color: #16130f; }
.r-head { display: grid; gap: 2px; }
.r-type { margin: 0; font-size: 13px; color: #6d655c; }
.r-title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.r-value { margin: 0; font: 500 17px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; } /* taste-skill-ignore: the literal code that was read */
.r-problem { margin: 0; background: #fdeae5; color: #8a2414; border-radius: var(--r); padding: 10px 12px; font-size: 15px; }
.r-rows { margin: 0; display: grid; gap: 0; font-size: 14px; }
.r-rows > div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid #ece7e0; /* taste-skill-ignore: data rows inside the result */ }
.r-rows dt { color: #6d655c; }
.r-rows dd { margin: 0; overflow-wrap: anywhere; }
.r-product { background: #f6f3ee; border-radius: var(--r); padding: 12px; font-size: 14px; }
.r-product p { margin: 0; }
.r-wait { color: #6d655c; }
.r-prod { display: flex; gap: 14px; align-items: flex-start; }
.r-prod img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: var(--r); flex: none; }
.r-pname { font-size: 17px; font-weight: 600; line-height: 1.3; }
.r-pfacts { color: #4a443d; margin-top: 4px !important; }
.r-src { color: #6d655c; font-size: 12px; margin-top: 8px !important; }
.r-notes { margin: 0; padding-left: 18px; font-size: 14px; color: #4a443d; display: grid; gap: 4px; }
.r-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.result .btn { background: #16130f; color: #fff; min-height: 40px; padding: 9px 14px; font-size: 14px; }
.result .link-btn { color: #16130f; font-size: 14px; }
.result.bad .r-title { color: #8a2414; }

/* checker verdict */
.verdict { background: var(--paper); color: #16130f; border-radius: var(--r); padding: 20px; display: grid; gap: 14px; }
.v-head { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; display: flex; gap: 10px; align-items: baseline; }
.v-head::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; transform: translateY(-1px); background: #2f8f3a; }
.verdict.warn .v-head::before { background: #c98a0b; }
.verdict.fail .v-head::before { background: #c4321c; }
.v-list { list-style: none; margin: 0; padding: 0; display: grid; font-size: 14px; }
.v-list li { display: grid; grid-template-columns: 22px minmax(100px, 30%) 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid #ece7e0; /* taste-skill-ignore: verdict rows inside the checker */ align-items: baseline; }
.v-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2f8f3a; transform: translateY(1px); }
.v-list li.warn::before { background: #c98a0b; }
.v-list li.fail::before { background: #c4321c; }
.v-list li.info::before { background: #b8afa4; }
.v-list b { font-weight: 600; }
.v-note { margin: 0; color: #6d655c; font-size: 13px; }
@media (max-width: 520px) { .v-list li { grid-template-columns: 22px 1fr; } .v-list li span { grid-column: 2; } .r-rows > div { grid-template-columns: 1fr; gap: 0; } }

/* inventory count */
.count-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: 32px; }
.count-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.count-totals { margin: 0; font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.count-table { overflow-x: auto; max-height: 560px; overflow-y: auto; }
.count-table table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.count-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px 12px 8px 0; position: sticky; top: 0; background: var(--surface); }
.count-table td { padding: 8px 12px 8px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.count-table .c-code { /* taste-skill-ignore: literal codes */ font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; min-width: 140px; }
.count-table .c-type { color: var(--muted); white-space: nowrap; }
.count-table tr.empty td { color: var(--muted); padding: 24px 0; }
.count-table tr.flash td { animation: flash 900ms ease; }
@keyframes flash { from { background: color-mix(in srgb, var(--accent) 30%, transparent); } to { background: transparent; } }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: var(--r); background: var(--surface-2); color: var(--ink); font-size: 20px; cursor: pointer; }
.stepper button:active { transform: scale(0.96); }
.stepper input { width: 72px !important; text-align: center; padding: 8px !important; }
.install-line { text-align: left !important; max-width: none !important; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.mini-result { margin: 0; display: grid; background: var(--paper); color: #16130f; border-radius: var(--r); padding: 6px 14px; font-size: 14px; }
.mini-result > div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 8px 0; }
.mini-result > div + div { border-top: 1px solid #ece7e0; /* taste-skill-ignore: rows inside the sample result */ }
.mini-result dt { color: #6d655c; }
.mini-result dd { margin: 0; }

/* ---------- reading: article with a picture and related rows beside it ---------- */
.read { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-top: var(--section); }
.read > .prose { grid-column: 1 / span 7; }
.read > .aside { grid-column: 9 / span 4; align-self: start; position: sticky; top: 32px; display: grid; gap: 48px; }
@media (max-width: 1000px) { .read > .prose, .read > .aside { grid-column: 1 / -1; position: static; } }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin: 88px 0 20px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-lead); margin: 40px 0 12px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: 0.5em 0; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 600; }
.prose .big { font-size: var(--step-lead); }
.table-wrap { overflow-x: auto; margin: 24px 0 32px; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { color: var(--muted); font-weight: 500; font-size: 14px; }
.table-wrap tbody th { font-weight: 500; width: 36%; }
.callout { background: var(--surface-2); border-radius: var(--r); padding: 24px 28px; margin: 40px 0; }
.callout strong { display: block; font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 10px; }
.meta { color: var(--muted); font-size: var(--step-small); margin-top: 20px; }
.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.figure figcaption { color: var(--muted); font-size: var(--step-small); margin-top: 10px; }
.upc-anatomy { display: flex; flex-wrap: wrap; font-size: clamp(22px, 5vw, 36px); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; margin: 24px 0 8px; }
.upc-anatomy .seg { padding: 10px 14px; color: #111; }
.seg.a, .key.a { background: #e8d5ad; }
.seg.b, .key.b { background: #ffffff; }
.seg.c, .key.c { background: var(--accent); }
.figure figcaption .key { display: inline-block; width: 12px; height: 12px; margin: 0 6px 0 14px; vertical-align: -1px; }
.figure figcaption .key:first-child { margin-left: 0; }

/* rows: name at the left, a value at the far right */
.rows { list-style: none; padding: 0; margin: 0; }
.rows-title { font-size: var(--step-lead); margin: 0 0 16px; }
.rows li a, .rows li > span { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 40px; padding: 8px 0; text-decoration: none; color: var(--ink); }
.rows .name { display: flex; align-items: baseline; gap: 10px; }
.rows .name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; transform: translateY(-1px); transition: background-color var(--t-hover) ease; }
.rows .val { color: var(--muted); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; flex: none; max-width: 50%; }
.rows a:hover .name::before, .rows a:focus-visible .name::before { background: var(--accent); }
.rows a:hover .name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
.rows .grp { color: var(--muted); padding-top: 32px; padding-bottom: 6px; font-size: var(--step-small); }
.rows .grp:first-child { padding-top: 0; }

/* ---------- FAQ: questions left, one large answer right ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-top: var(--section); }
.faq-side { grid-column: 1 / span 5; }
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list > li { margin-bottom: 18px; }
.faq-title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin: 0 0 32px; }
.faq-q { display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0; font: 400 var(--step-body)/1.4 var(--font); color: var(--muted); cursor: pointer; transition: color var(--t-hover) ease; }
.faq-q::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-2px); transition: background-color var(--t-hover) ease; }
.faq-q[aria-expanded="true"], .faq-q:hover { color: var(--ink); }
.faq-q[aria-expanded="true"]::before { background: var(--accent); }
.faq-a { padding: 8px 0 8px 22px; color: var(--ink); }
.faq-a p { margin: 0; }
.faq-pane { grid-column: 7 / span 6; position: sticky; top: 120px; align-self: start; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.3; max-width: 32ch; display: none; }
.faq-pane p { margin: 0; }
@media (min-width: 901px) { .js .faq-pane { display: block; } .js .faq-a { display: none; } }
@media (max-width: 900px) {
  .faq-side { grid-column: 1 / -1; }
  .js .faq-a { display: none; }
  .js .faq-q[aria-expanded="true"] + .faq-a { display: block; font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) { .faq-pane.swap { animation: pane 150ms ease; } }
@keyframes pane { from { opacity: 0.2; } to { opacity: 1; } }

/* ---------- home: pinned steps ---------- */
.pin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.pin-steps { grid-column: 1 / span 5; }
.pin-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.pin-steps > h2 + .pin-step { min-height: 56vh; justify-content: flex-start; padding-top: 48px; }
.pin-step h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; color: var(--muted); transition: color 300ms ease; max-width: 22ch; }
.pin-step p { margin-top: 16px; max-width: 42ch; color: var(--muted); transition: color 300ms ease; }
.pin-step.on h3, .pin-step.on p { color: var(--ink); }
.pin-stage { grid-column: 7 / span 6; position: sticky; top: 14vh; align-self: start; background: var(--surface); border-radius: var(--r); padding: clamp(24px, 3vw, 48px); min-height: 520px; display: grid; align-content: center; }
.demo { display: grid; gap: 14px; max-width: 480px; width: 100%; margin-inline: auto; }
.demo .fake-input { border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px; font-size: 18px; background: var(--bg); min-height: 50px; }
.demo .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -3px; margin-left: 2px; }
.demo .note { font-size: 15px; min-height: 1.45em; color: var(--ok); }
.demo .label-sheet { min-height: 190px; }
.demo .file { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); padding: 10px 12px; background: var(--surface-2); border-radius: var(--r); }
.demo .file b { color: var(--ink); font-weight: 500; }
.demo [data-s] { transition: opacity 300ms ease; }
.pin-stage[data-state="1"] [data-s="2"], .pin-stage[data-state="1"] [data-s="3"], .pin-stage[data-state="2"] [data-s="3"], .pin-stage:not([data-state="4"]) [data-s="4"] { opacity: 0; }
.v-mini { list-style: none; margin: 0; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r); display: grid; gap: 6px; font-size: 14px; }
.v-mini li { display: flex; gap: 10px; align-items: baseline; }
.v-mini li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; transform: translateY(-1px); }
@media (max-width: 900px) { .v-mini { display: none; } }
.pin-stage[data-state="1"] .label-sheet { opacity: 0.15; }
.pin-stage .label-sheet { transition: opacity 300ms ease; }
@media (max-width: 900px) {
  .pin { grid-template-columns: 1fr; }
  .pin-stage { grid-column: 1; position: sticky; top: 0; min-height: 0; z-index: 2; padding: 16px; }
  .pin-steps { grid-column: 1; }
  .pin-step { min-height: 55svh; }
  .demo .label-sheet { min-height: 110px; padding: 12px; }
}

/* home: proof modules, picture band, tips */
.mods { display: grid; gap: clamp(64px, 8vw, 112px); }
.mod { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.mod-panel { grid-column: 3 / span 5; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.mod-text { grid-column: 8 / span 4; }
.mod-panel.pad { padding: 18px; }
.mod-panel img { width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.mod h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 12px; }
.mod p { font-size: 17px; margin: 0 0 0.8em; }
.mod a { font-weight: 500; }
@media (max-width: 900px) { .mod-panel, .mod-text { grid-column: 1 / -1; } }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--muted); }
.mini-table th, .mini-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini-table th { font-weight: 500; }
.mini-table .sel { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.mini-sheet { background: var(--paper); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px 10px; border-radius: var(--r); }
.mini-sheet span { outline: 1px dashed #cfc9c1; display: grid; place-items: center; height: 40px; }
.mini-sheet svg { height: 26px; width: 80%; }
.mini-sheet span.used { background: #eeeae4; }
.band { margin: var(--section) 0 0; position: relative; overflow: clip; }
.band img { width: 100%; height: clamp(320px, 50vw, 760px); object-fit: cover; }
.band figcaption { display: flex; justify-content: space-between; gap: 24px; padding: 14px var(--m) 0; color: var(--muted); font-size: var(--step-small); }
.band figcaption span:last-child { text-align: right; max-width: 48ch; }
@media (max-width: 700px) { .band figcaption { flex-direction: column; gap: 4px; } .band figcaption span:last-child { text-align: left; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.14) translateY(-3%); } to { transform: scale(1.02) translateY(3%); } }
  }
}
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.split > .left { grid-column: 1 / span 5; }
.split > .right { grid-column: 7 / span 6; }
@media (max-width: 900px) { .split > .left, .split > .right { grid-column: 1 / -1; } }
.split .figure img { aspect-ratio: 3 / 2; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.tips h3 { font-size: var(--step-lead); font-weight: 500; margin-bottom: 6px; letter-spacing: -0.01em; }
.tips p { margin: 0; }
.statement { background: var(--surface-2); border-radius: var(--r); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.statement h2 { grid-column: 1 / span 6; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.statement .body { grid-column: 8 / span 5; }
@media (max-width: 900px) { .statement h2, .statement .body { grid-column: 1 / -1; } }

/* reading pages: photograph on the right half of the hero */
.hero.photo { min-height: min(760px, calc(100svh - 72px)); }
.hero-pic { margin: 0; position: relative; overflow: clip; background: var(--surface); }
.hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-pic figcaption { position: absolute; left: 0; bottom: 0; padding: 10px var(--m); background: var(--bg); color: var(--muted); font-size: var(--step-small); max-width: 90%; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-pic img { transform: scale(1.08); animation: settle 1600ms var(--ease-soft) 100ms forwards; }
}
@keyframes settle { to { transform: none; } }
@media (max-width: 960px) { .hero-pic { min-height: 56vw; } }
.figure.inline { margin: 56px 0; }
.try { margin: 0; display: grid; gap: 14px; }
.split .try { margin-top: 40px; max-width: 460px; }
.try .label-sheet { min-height: 180px; }
.try figcaption { display: grid; gap: 14px; justify-items: start; color: var(--muted); font-size: var(--step-small); }

/* index pages (guides) */
.index-rows { list-style: none; padding: 0; margin: 0; }
.index-rows a { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); padding: 28px 0; text-decoration: none; color: var(--ink); }
.index-rows strong { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.index-rows span { color: var(--muted); }
.index-rows a:hover strong { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 0.05em; }
@media (max-width: 760px) { .index-rows a { grid-template-columns: 1fr; gap: 8px; } }

/* article hero (guides, legal, about) */
.page-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-top: 40px; align-items: end; }
.page-hero .crumbs { grid-column: 1 / -1; margin-bottom: 64px; }
.page-hero .ph-text { grid-column: 1 / span 7; }
.page-hero h1 { font-size: var(--step-head); }
.page-hero .lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.page-hero .ph-pic { grid-column: 9 / span 4; margin: 0; }
.page-hero .ph-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.page-hero .ph-pic figcaption { color: var(--muted); font-size: var(--step-small); margin-top: 10px; }
@media (max-width: 900px) { .page-hero .ph-text, .page-hero .ph-pic { grid-column: 1 / -1; } .page-hero .crumbs { margin-bottom: 32px; } .page-hero .lead { font-size: var(--step-body); } .page-hero .ph-pic img { aspect-ratio: 3 / 2; } }

/* ---------- footer: a board of tiles ---------- */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 8px; margin-top: var(--section); }
.tile { background: var(--surface); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; min-height: 220px; }
.tile h2 { font-size: var(--step-small); color: var(--muted); letter-spacing: 0; margin-bottom: 14px; line-height: 1.4; }
.tile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tile ul a { text-decoration: none; color: var(--ink); font-size: var(--step-small); }
.tile ul a:hover { text-decoration: underline; }
.t-state { grid-column: span 4; }
.t-state p.say { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: auto; }
.t-state .legal { color: var(--muted); font-size: 13px; margin: 24px 0 0; }
.t-state .legal a { color: var(--muted); }
.t-nav { grid-column: span 2; }
.t-place { grid-column: span 3; justify-content: space-between; }
.t-place .place { font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.25; }
.t-place .time { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; margin: 0; }
.t-mail { grid-column: span 3; justify-content: space-between; }
.t-mail a { font-size: clamp(1rem, 0.55rem + 1vw, 1.625rem); overflow-wrap: anywhere; }
.t-credits { grid-column: span 6; justify-content: flex-end; }
.t-credits p { color: var(--muted); font-size: 13px; margin: 0; }
.t-credits a { color: var(--muted); }
.t-word { grid-column: span 8; background: var(--ink); color: var(--bg); min-height: 320px; align-items: center; justify-content: center; }
.t-word span { font-size: clamp(48px, 8.6vw, 156px); letter-spacing: -0.045em; line-height: 0.9; }
.t-go { grid-column: span 4; background: var(--accent); color: var(--accent-ink); min-height: 320px; text-decoration: none; justify-content: space-between; transition: background-color var(--t-hover) ease; }
.t-go:hover { background: var(--accent-strong); }
.t-go span { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1; }
.t-go svg { align-self: flex-end; width: 56px; height: 56px; transition: transform 300ms var(--ease-out); }
.t-go:hover svg { transform: translate(4px, -4px); }
@media (max-width: 1100px) { .t-state, .t-place, .t-mail { grid-column: span 6; } .t-nav { grid-column: span 3; } .t-credits { grid-column: span 12; min-height: 0; } }
@media (max-width: 800px) { .t-nav { grid-column: span 6; } }
@media (max-width: 620px) {
  .board { gap: 6px; padding: 6px; }
  .t-word, .t-go { grid-column: span 12; min-height: 160px; }
  .t-word { order: -2; } .t-go { order: -1; }
  .t-nav, .t-mail { grid-column: span 6; }
  .t-place, .t-state { grid-column: span 12; min-height: 0; }
  .tile { padding: 20px; }
}

/* entrances: heading, text, picture */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .bar, .board, .crumbs, #tool, .aside { display: none; } }
