@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}

/*
  Shapes: the hero stage and the closing band use --radius-lg, cards use --radius,
  fields, code, and inner surfaces use --radius-inner, and buttons and chips are pills.
  Barcode pictures always sit on --label, because the PNGs are drawn on white.
  The site is light only: the pictures are white, and a dark page around them read as too heavy.
*/
:root {
  color-scheme: light;
  --paper: #f1f3f4;
  --card: #fbfcfc;
  --shell: #e7ebed;
  --line: #d6dce0;
  --line-strong: #b8c1c8;
  --field: #fdfefe;
  --ink: #12171c;
  --muted: #4a5560;
  --accent: #145c40;
  --accent-strong: #0e4630;
  --accent-soft: #dcebe3;
  --on-accent: #f3f8f5;
  --label: #ffffff;
  --laser: #e5484d;
  --shadow: 0 1px 2px rgb(20 48 36 / 0.05), 0 10px 30px -14px rgb(20 48 36 / 0.22);
  --radius-lg: 28px;
  --radius: 20px;
  --radius-inner: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --nav-h: 4rem;
  --wrap: 1200px;
  --measure: 46rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; image-rendering: pixelated; }
code, pre { font-family: var(--mono); }
h1, h2, h3 { text-wrap: balance; }

.skip {
  position: fixed;
  z-index: 30;
  left: 1rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-inner);
}
.skip:focus { transform: none; }

.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin: 0 auto; }

/* Site header */
.nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
  padding-inline: max(1rem, calc((100% - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.mark-bars { display: block; flex: none; width: 26px; height: 26px; color: var(--accent); }
.mark-bars rect { transform-box: fill-box; transform-origin: 50% 100%; }
.nav nav { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav nav a {
  flex: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav nav a:hover { color: var(--ink); background: var(--shell); }
.nav nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav nav a:last-child { margin-left: 0.5rem; padding-inline: 1rem; background: var(--accent); color: var(--on-accent); }
.nav nav a:last-child:hover, .nav nav a:last-child[aria-current="page"] { background: var(--accent-strong); color: var(--on-accent); }

@media (max-width: 900px) {
  :root { --nav-h: 6.4rem; }
  .nav { flex-wrap: wrap; gap: 0.15rem 1rem; padding-top: 0.65rem; }
  .mark { min-height: 2.4rem; }
  .nav nav {
    order: 2;
    width: calc(100% + 2rem);
    margin: 0 -1rem;
    padding: 0.2rem 1rem 0.6rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 2.25rem;
    height: 2.75rem;
    background: linear-gradient(90deg, transparent, var(--paper));
    pointer-events: none;
  }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { padding: 0.4rem 0.7rem; font-size: 0.9rem; }
  .nav nav a:last-child { position: absolute; top: 0.65rem; right: 1rem; margin: 0; }
}

/* Buttons */
.submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: fit-content;
  min-height: 2.875rem;
  padding: 0.35rem 0.4rem 0.35rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms ease;
}
.submit:hover { background: var(--accent-strong); }
.submit:active { transform: scale(0.98); }
.submit-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--on-accent) 18%, transparent);
  transition: transform 220ms var(--ease-out);
}
.submit-icon svg { display: block; width: 1rem; height: 1rem; }
.submit:hover .submit-icon { transform: translateX(3px); }

:where(button:not([class])), .button-quiet, #result #download, .fnsku-page .remove-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: fit-content;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease);
}
:where(button:not([class])):hover, .button-quiet:hover, #result #download:hover, .fnsku-page .remove-row:hover { border-color: var(--accent); color: var(--accent); }
:where(button:not([class])):active, .button-quiet:active, #result #download:active { transform: scale(0.98); }
button[hidden] { display: none; }

/* Fields */
label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.875rem; }
input:not([type="radio"], [type="checkbox"], [type="file"], [type="hidden"]), select {
  width: 100%;
  min-height: 2.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-inner);
  background: var(--field);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%237a8792' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
}
input:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
input[aria-invalid="true"] { border-color: var(--laser); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin: 0; }
input[type="file"] { width: 100%; font: inherit; font-size: 0.875rem; font-weight: 400; color: var(--muted); }
input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
input[type="file"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-inner); }

/* Homepage: header */
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 4.5vw, 3.75rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% 0 0 30%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent);
  pointer-events: none;
}
.home-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.3vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 16ch;
}
.home-hero h1 span { display: block; color: var(--accent); }
.home-hero h1 span::after {
  content: "";
  display: inline-block;
  width: 0.07em;
  height: 0.8em;
  margin-left: 0.06em;
  vertical-align: -0.04em;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
}
.lede { margin: 1rem 0 0; max-width: 40ch; color: var(--muted); font-size: 1.125rem; line-height: 1.5; }
.hero-tool {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#barcode { display: grid; gap: 0.9rem; }
#value { min-height: 3.25rem; font-family: var(--mono); font-size: 1.0625rem; letter-spacing: 0.01em; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: end; }
#instruction { margin: 1rem 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.55; }

.stage {
  position: relative;
  display: grid;
  min-height: 29rem;
  padding: clamp(1rem, 2.6vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--shell);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 0);
  background-size: 18px 18px;
}
.demo { --loop: 13.5s; position: relative; min-height: 27.5rem; }
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  opacity: 0;
}
.scene-1 { opacity: 1; --chars: 13; --delay: 0.8s; }
.scene-2 { --chars: 14; --delay: 5.3s; }
.scene-3 { --chars: 36; --delay: 9.8s; }
.scene p { margin: 0; }
.scene-field { display: grid; gap: 0.4rem; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.scene-input {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 1rem;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: var(--radius-inner);
  background: var(--field);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.7rem, 3.2vw, 0.98rem);
  font-weight: 400;
}
.scene-value {
  box-sizing: content-box;
  display: inline-block;
  flex: none;
  width: calc(var(--chars) * 1ch);
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
  padding-right: 1px;
}
.scene-address {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding-left: 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-address::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.85rem;
  margin-top: -0.6rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-bottom-left-radius: 4px;
}
.scene-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  min-height: 12rem;
  padding: 0.75rem;
  overflow: hidden;
  border-radius: 16px;
  background: var(--label);
  box-shadow: var(--shadow);
}
.scene-card img { max-height: 100%; width: auto; }
.scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--accent);
  opacity: 0;
}
.scene-laser {
  position: absolute;
  inset: 0;
  transform: translateY(-100%);
  background: linear-gradient(180deg, transparent 55%, rgb(229 72 77 / 0.16) 97%, var(--laser) 97%, var(--laser) 100%);
  opacity: 0;
}
.scene-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9375rem;
  font-weight: 700;
}
.scene-chip svg {
  width: 1.6rem;
  height: 1.6rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--on-accent) 22%, transparent);
}

/* The picture the visitor asked for replaces the demo */
#result { display: grid; gap: 0.7rem; align-content: start; }
#result:empty { display: none; }
#result:not(:empty) ~ .demo { display: none; }
.stage #result { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.stage #result > * { grid-column: 1 / -1; margin: 0; }
#result #image {
  display: block;
  width: 100%;
  height: 15rem;
  padding: 1rem;
  object-fit: scale-down;
  border-radius: 16px;
  background: var(--label);
  box-shadow: var(--shadow);
}
.stage #result > #label {
  grid-column: 1;
  justify-self: start;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.stage #result > #download { grid-column: 2; grid-row: 2; }
#result #print, #result #key-hint { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
#result #signin { font-size: 1rem; font-weight: 600; line-height: 1.5; }
#result #signin a, #result #key-hint a { font-weight: 600; }
#result #error {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--laser);
  border-radius: var(--radius-inner);
  background: var(--card);
  font-weight: 600;
}
#result #inline-label { margin: 0.35rem 0 0; font-weight: 700; }
#address, #formula, #inline-formula, #excel-formula, #sheets-formula {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
#formula, #inline-formula, #excel-formula, #sheets-formula, .inline-formula, #address {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--field);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.inline-formula { margin: 0.6rem 0 0; overflow-x: auto; }
pre { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
#result #copy { justify-self: start; }

/* Homepage: sections */
.home-section { padding-top: clamp(3.5rem, 8vw, 6rem); }
.home-section > h2, .closer h2 {
  margin: 0 0 1.5rem;
  max-width: 22ch;
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.ways { display: grid; gap: 1rem; }
.way {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.25rem, 2.6vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.way h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.03em; }
.way p { margin: 0; color: var(--muted); }
.way h3 + p { margin-top: -0.6rem; }
.way-sheet { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.way-sheet .script-note { color: var(--ink); max-width: 46ch; }
.sheet {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-inner);
  background: var(--field);
  box-shadow: var(--shadow);
}
/* The formula wraps instead of scrolling, so the whole formula is always on screen. */
.sheet .inline-formula {
  display: flex;
  gap: 0.8rem;
  margin: 0;
  padding: 0.85rem 1rem;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.875rem;
  white-space: pre-wrap;
}
.sheet .inline-formula code { min-width: 0; overflow-wrap: anywhere; }
.sheet .inline-formula::before { content: "fx"; flex: none; color: var(--muted); font-style: italic; font-weight: 700; }
.sheet-grid { position: relative; display: grid; grid-template-columns: 2.4rem minmax(7.5rem, 0.85fr) minmax(0, 1.4fr); font-size: 0.8125rem; }
.sheet-grid > span:not(.sheet-range) {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sheet-grid > span:nth-child(3n) { border-right: 0; }
.sheet-grid > span:nth-child(n + 13) { border-bottom: 0; }
.sheet-grid .sheet-head { justify-content: center; background: var(--shell); color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.sheet-code { font-family: var(--mono); }
.sheet-grid > span.sheet-code { display: block; align-content: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-grid > span.sheet-pic { position: relative; justify-content: center; min-height: 5rem; background: var(--label); }
.sheet-pic img { width: auto; height: auto; max-height: 3.8rem; image-rendering: auto; }
.sheet-typed {
  position: absolute;
  top: 50%;
  left: 0.65rem;
  box-sizing: content-box;
  width: 8ch;
  overflow: hidden;
  border-right: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  white-space: nowrap;
  opacity: 0;
  translate: 0 -50%;
}
/* The selected range, B2:B4 when still. The fill handle sits inside the corner, because column B is the sheet's edge. */
.sheet-range {
  position: absolute;
  grid-column: 3;
  grid-row: 3 / 6;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
}
.sheet-range::after { content: ""; position: absolute; right: 0; bottom: 0; width: 8px; height: 8px; background: var(--accent); }
.way-links { list-style: none; display: grid; align-content: start; gap: 0.15rem; margin: 0; padding: 0; }
.way-links a { font-weight: 600; text-decoration: none; }
.way-links a:hover { text-decoration: underline; }
.way-links a::after { content: " \2192"; }
#csv-form { display: grid; gap: 0.85rem; }
#csv-error { margin: 0; font-weight: 600; }
#csv-error:empty { display: none; }
.way-code {
  margin: 0;
  padding: 1rem 1.1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--shell);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.code-verb { color: var(--accent); font-weight: 700; }
.code-line { display: inline-block; vertical-align: top; }

.cases { display: grid; gap: 1rem; }
.case {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 180ms ease, box-shadow 260ms var(--ease-out);
}
.case:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.case > a { display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit; text-decoration: none; }
.case-art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--label);
}
.case-art img { max-height: 100%; image-rendering: auto; transition: transform 500ms var(--ease-out); }
.case-art-dual { grid-template-columns: auto auto; gap: clamp(1rem, 4vw, 2.5rem); }
.case-art-dual img { max-height: 8.5rem; width: auto; }
.case > a:hover .case-art img { transform: scale(1.035); }
.case-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 1.15rem 1.25rem 1.25rem 1.5rem;
}
.case-copy h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.03em; }
.case-copy p { grid-column: 1; margin: 0; color: var(--muted); }
.case-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 220ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.case-go svg { display: block; width: 1rem; height: 1rem; }
.case > a:hover .case-go { transform: translateX(3px); background: var(--accent); color: var(--on-accent); }

.symbols { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 1rem 0 0; padding: 0; }
.symbols a {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform 260ms var(--ease-out), border-color 180ms ease, box-shadow 260ms var(--ease-out);
}
.symbols a:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.symbols strong { font-size: 1.1rem; letter-spacing: -0.02em; }
.symbols code { color: var(--muted); font-size: 0.78rem; }
.glyph { display: block; height: 1.6rem; margin-bottom: 0.6rem; color: var(--ink); opacity: 0.85; }
.symbol-linear .glyph {
  width: 4.6rem;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 12px, currentColor 12px 13px, transparent 13px 16px);
}
.symbol-square .glyph {
  width: 1.6rem;
  background: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0) 0 0 / 0.4rem 0.4rem;
  outline: 3px solid currentColor;
  outline-offset: 0;
}

.closer {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.closer::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(48%, 34rem);
  background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 7px, var(--accent) 7px 8px, transparent 8px 13px, var(--accent) 13px 19px, transparent 19px 21px, var(--accent) 21px 22px, transparent 22px 28px);
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.closer h2 { margin: 0; }

@media (min-width: 760px) {
  .symbols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cases { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
  .ways { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .way-sheet { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: clamp(2rem, 4vw, 3.5rem); }
  .way-sheet > h3 { grid-row: 2; }
  .way-sheet > p { grid-row: 3; }
  .way-sheet > .way-links { grid-row: 4; }
  .way-sheet > .sheet { grid-column: 2; grid-row: 1 / -1; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .stage { min-height: 25rem; }
  .demo { min-height: 21.5rem; }
  .scene-card { min-height: 10rem; }
  .scene-card img { image-rendering: auto; }
  .sheet-grid { grid-template-columns: 2rem minmax(6.5rem, 1fr) minmax(0, 1fr); }
  .case-art-dual img { max-height: 6rem; }
}

/* Homepage: motion. Everything above is the finished, still frame. */
@media (prefers-reduced-motion: no-preference) {
  .home .nav { animation: drop-in 700ms var(--ease-out) both; }
  .home .nav .mark-bars rect { animation: bar-rise 640ms var(--ease-out) both; }
  .home .nav .mark-bars rect:nth-child(1) { animation-delay: 160ms; }
  .home .nav .mark-bars rect:nth-child(2) { animation-delay: 220ms; }
  .home .nav .mark-bars rect:nth-child(3) { animation-delay: 280ms; }
  .home .nav .mark-bars rect:nth-child(4) { animation-delay: 340ms; }
  .home .nav .mark-bars rect:nth-child(5) { animation-delay: 400ms; }
  .mark:hover .mark-bars rect { animation: bar-blip 420ms var(--ease-out) both; }
  .mark:hover .mark-bars rect:nth-child(2) { animation-delay: 40ms; }
  .mark:hover .mark-bars rect:nth-child(3) { animation-delay: 80ms; }
  .mark:hover .mark-bars rect:nth-child(4) { animation-delay: 120ms; }
  .mark:hover .mark-bars rect:nth-child(5) { animation-delay: 160ms; }
  .home-hero h1 { animation: print-in 1000ms var(--ease-out) 120ms both; }
  .home-hero h1 span::after { animation: caret 1.1s steps(1) 1.1s 5 both; }
  .home-hero .lede { animation: rise 800ms var(--ease-out) 300ms both; }
  .hero-tool { animation: rise 800ms var(--ease-out) 420ms both; }
  .stage { animation: stage-in 1000ms var(--ease-out) 260ms both; }
  .home-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 6%, transparent) 70%, color-mix(in srgb, var(--accent) 30%, transparent) 99.4%, transparent);
    pointer-events: none;
    animation: sweep 1700ms var(--ease) 100ms both;
  }

  .scene { animation: scene var(--loop) linear var(--delay) infinite both; }
  .scene-value {
    animation:
      type var(--loop) steps(var(--chars), end) var(--delay) infinite both,
      caret-border 0.7s steps(1) infinite;
  }
  .scene-address { animation: address var(--loop) var(--ease-out) var(--delay) infinite both; }
  .scene-card img { animation: print var(--loop) linear var(--delay) infinite both; }
  .scene-laser { animation: laser var(--loop) linear var(--delay) infinite both; }
  .scene-card::after { animation: good-read var(--loop) ease-out var(--delay) infinite both; }
  .scene-chip { animation: chip var(--loop) var(--ease-out) var(--delay) infinite both; }
  .stage:hover .scene, .stage:hover .scene * { animation-play-state: paused; }
  .stage:hover .scene-card::after { animation-play-state: paused; }

  .way-sheet, .sheet-motion { --fill: 8s; }
  .way-sheet.in-view .sheet-range, .sheet-motion.in-view .sheet-range { animation: sheet-range var(--fill) var(--ease) infinite both; }
  .way-sheet.in-view .sheet-typed, .sheet-motion.in-view .sheet-typed { animation: sheet-typed var(--fill) linear infinite both, caret-border 0.7s steps(1) infinite; }
  .way-sheet.in-view .sheet-b2 img, .sheet-motion.in-view .sheet-b2 img { animation: sheet-b2 var(--fill) linear infinite both; }
  .way-sheet.in-view .sheet-b3 img, .sheet-motion.in-view .sheet-b3 img { animation: sheet-b3 var(--fill) linear infinite both; }
  .way-sheet.in-view .sheet-b4 img, .sheet-motion.in-view .sheet-b4 img { animation: sheet-b4 var(--fill) linear infinite both; }
  .way-api.in-view .code-line:first-child {
    width: 32ch;
    overflow: hidden;
    white-space: nowrap;
    animation: type-get 640ms steps(32, end) 200ms both;
  }
  .way-api.in-view .code-line:nth-of-type(n + 2) { animation: rise-small 420ms var(--ease-out) both; }
  .way-api.in-view .code-line:nth-of-type(2) { animation-delay: 1000ms; }
  .way-api.in-view .code-line:nth-of-type(3) { animation-delay: 1080ms; }
  .way-api.in-view .code-line:nth-of-type(4) { animation-delay: 1160ms; }
  .way-api.in-view .code-line:nth-of-type(5) { animation-delay: 1240ms; }
  .way-api.in-view .code-line:nth-of-type(6) { animation-delay: 1320ms; }
  .way-api.in-view .code-line:nth-of-type(7) { animation-delay: 1400ms; }

  #result:not(:empty) > * { animation: rise 520ms var(--ease-out) both; }
  #result:not(:empty) > #image { animation: wipe 760ms var(--ease-out) both; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}

@keyframes drop-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bar-blip { 40% { transform: scaleY(0.55); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes print-in {
  from { opacity: 0; transform: translateY(0.3em); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(-0.2em -0.2em -0.3em -0.2em); }
}
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes stage-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
/* The sweep is a fifth of the header wide, so it stays inside the column from 0 to 400%. */
@keyframes sweep {
  0% { opacity: 0; transform: none; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(400%); }
}

/*
  One scene is 4.5 s of the 13.5 s loop (1% is 135 ms): type the value by 0.8 s,
  return the address, print by 1.35 s, scan in under 0.4 s, beep, then hold the result.
*/
@keyframes scene {
  0% { opacity: 0; transform: translateY(10px); }
  1% { opacity: 1; transform: none; }
  31.9% { opacity: 1; transform: none; }
  33.3% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes type { 0%, 1% { width: 0; } 6%, 100% { width: calc(var(--chars) * 1ch); } }
@keyframes caret-border { 0% { border-right-color: var(--accent); } 50% { border-right-color: transparent; } }
@keyframes address {
  0%, 6.3% { opacity: 0; transform: translateX(-8px); }
  7.4%, 100% { opacity: 1; transform: none; }
}
@keyframes print {
  0%, 7% { clip-path: inset(0 100% 0 0); }
  10%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes laser {
  0%, 10.4% { opacity: 0; transform: translateY(-100%); }
  10.6% { opacity: 1; }
  13.2% { opacity: 1; transform: translateY(0); }
  13.8%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes good-read { 0%, 13.3% { opacity: 0; } 13.8% { opacity: 1; } 18%, 100% { opacity: 0; } }
@keyframes chip {
  0%, 13.5% { opacity: 0; transform: scale(0.6); }
  14.8% { opacity: 1; transform: scale(1.06); }
  15.8%, 100% { opacity: 1; transform: none; }
}

/*
  The sheet fill-down is an 8 s loop (1% is 80 ms): type the formula into B2, draw it,
  drag the fill handle to B4 so B3 and B4 draw, hold, then clear.
*/
@keyframes sheet-typed {
  0%, 3% { width: 0; opacity: 1; animation-timing-function: steps(8, end); }
  11%, 15% { width: 8ch; opacity: 1; }
  16%, 100% { width: 8ch; opacity: 0; }
}
@keyframes sheet-b2 {
  0%, 16% { clip-path: inset(0 100% 0 0); opacity: 1; }
  21%, 88% { clip-path: inset(0); opacity: 1; }
  94%, 100% { clip-path: inset(0); opacity: 0; }
}
@keyframes sheet-b3 {
  0%, 26% { clip-path: inset(0 100% 0 0); opacity: 1; }
  30%, 88% { clip-path: inset(0); opacity: 1; }
  94%, 100% { clip-path: inset(0); opacity: 0; }
}
@keyframes sheet-b4 {
  0%, 30% { clip-path: inset(0 100% 0 0); opacity: 1; }
  34%, 88% { clip-path: inset(0); opacity: 1; }
  94%, 100% { clip-path: inset(0); opacity: 0; }
}
@keyframes sheet-range {
  0%, 23% { height: 33.333%; }
  37%, 88% { height: 100%; }
  95%, 100% { height: 33.333%; }
}
@keyframes type-get { from { width: 0; } to { width: 32ch; } }
@keyframes rise-small { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .submit, .submit-icon, .button-quiet, .faq summary::after, .case, .case-art img, .case-go, .symbols a { transition: none; }
  .submit:active, .submit:hover .submit-icon, .button-quiet:active, .case > a:hover .case-go, .case > a:hover .case-art img { transform: none; }
}

/* Shared page header */
.hero { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem) 0 0.5rem; }
.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.hero .lede { max-width: 62ch; }
.hero .lede a { font-weight: 600; }

/* Cards and auth */
.tool-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.tool { padding: clamp(1.25rem, 3vw, 2rem); }
.auth { width: min(30rem, 100%); margin: clamp(1.5rem, 6vw, 4rem) auto 0; }
.auth h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.045em; line-height: 1.1; }
.auth .lede { margin-top: 0.55rem; max-width: none; font-size: 1rem; }
.auth #error {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--laser);
  border-radius: var(--radius-inner);
  background: var(--field);
  font-weight: 600;
}
.auth form, .auth .tool form { display: grid; gap: 0.9rem; }
.auth form { margin-top: 1.4rem; }
.auth h2 { margin: 2rem 0 0; font-size: 1.15rem; letter-spacing: -0.03em; }
.auth-alt { margin: 1rem 0 0; color: var(--muted); }
.auth-alt a { font-weight: 600; }
.auth .new-key { margin-top: 1rem; }
.auth .new-key p { margin: 0; font-weight: 700; }
.auth pre {
  overflow-x: auto;
  margin: 0.45rem 0 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--field);
  font-size: 0.82rem;
}
.key-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.key-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.key-list form { margin: 0; }
.key-meta { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.9rem; }
.sign-out { margin-top: 1.5rem; }

/*
  Content pages: guides, the guide index, and the legal pages share one template.
  A header (eyebrow, title, summary, meta, optional picture), the copy at reading width,
  "On this page" in a sticky rail on wide screens, then related guides and a call to action.
*/
.eyebrow { margin: 0 0 0.6rem; color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.article { padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; }
.article-head { display: grid; gap: 1.75rem; align-items: center; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.article-head h1 { margin: 0; max-width: 20ch; font-size: clamp(2.2rem, 4.4vw, 3.3rem); letter-spacing: -0.045em; line-height: 1.06; }
.article-head .lede { max-width: 46ch; margin-top: 1rem; }
.article-meta { margin: 1.1rem 0 0; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0 0 1.25rem; color: var(--muted); font-size: 0.875rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.guide-hero { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--shell); }
.guide-hero picture { display: block; }
.guide-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; image-rendering: auto; }
@media (min-width: 960px) {
  .article.has-hero .article-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); }
}

.article-layout { display: grid; gap: 2rem; padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.article-rail { display: none; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, var(--measure)) 15.5rem; justify-content: space-between; gap: 4rem; }
  .article-layout.no-rail { grid-template-columns: minmax(0, var(--measure)); }
  .article-rail { display: grid; gap: 1.25rem; align-content: start; align-self: start; }
}
/* The rail never scrolls on its own. It follows the page only when the window is tall enough to show all of it. */
@media (min-width: 1100px) and (min-height: 600px) {
  .article-rail { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}
.toc-title { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.toc a:hover, .toc a[aria-current="true"], .api-nav a[aria-current="true"] { border-left-color: var(--accent); color: var(--accent); }
.rail-card { display: grid; gap: 0.75rem; padding: 1.1rem; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: var(--radius); background: var(--accent-soft); }
.rail-card p { margin: 0; font-weight: 700; }
.rail-card .submit { font-size: 0.9rem; }

/* Copy at reading width */
.article-copy { min-width: 0; max-width: var(--measure); }
.article-copy > :first-child { margin-top: 0; }
.article-copy p, .article-copy li { font-size: 1.0625rem; line-height: 1.75; }
.article-copy p { margin: 0 0 1.15rem; }
.article-copy h2 {
  margin: 2.75rem 0 0.9rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.article-copy h3 { margin: 1.75rem 0 0.5rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.article-copy a { font-weight: 600; }
.article-copy strong { font-weight: 700; }
.article-copy :not(pre) > code {
  padding: 0.1em 0.38em;
  border-radius: 6px;
  background: var(--shell);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}
.article-copy ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.article-copy ul li::marker { color: var(--accent); }
.article-copy ul li { padding-left: 0.2rem; }

/* Ordered lists are steps */
.article-copy ol { list-style: none; counter-reset: step; display: grid; gap: 0.15rem; margin: 0 0 1.5rem; padding: 0; }
.article-copy ol > li { position: relative; padding: 0.45rem 0 0.45rem 2.9rem; counter-increment: step; }
.article-copy ol > li::before {
  content: counter(step);
  position: absolute;
  top: 0.55rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}
.article-copy ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.55rem;
  bottom: -0.45rem;
  left: 0.9rem;
  width: 2px;
  background: var(--accent-soft);
}

/* Code */
.article-copy pre {
  position: relative;
  margin: 0 0 1.4rem;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--field);
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* The copy button sits beside the code on wide screens, and above it on phones. A labelled block keeps it in the label row. */
.article-copy pre.has-copy { padding-right: 5.5rem; }
.api-main pre.code-block.has-copy { padding-top: 2.75rem; }
@media (max-width: 640px) { .article-copy pre.has-copy { padding: 2.9rem 1rem 1rem; } }
.copy-code {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  min-height: 2rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-code:hover { border-color: var(--accent); color: var(--accent); }

/* Tables */
.article-copy table {
  display: block;
  width: 100%;
  margin: 0.5rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  border-spacing: 0;
  background: var(--card);
  font-size: 0.95rem;
}
.article-copy th, .article-copy td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.article-copy th { background: var(--shell); color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.article-copy tbody tr:last-child td { border-bottom: 0; }
.article-copy dt { margin-top: 1rem; font-weight: 700; }
.article-copy dd { margin: 0.25rem 0 0; color: var(--muted); line-height: 1.6; }

/* Callouts, for a rule the reader must not miss */
.callout {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-inner);
  background: var(--accent-soft);
  font-weight: 600;
}
.callout-warn { border-color: color-mix(in srgb, var(--laser) 30%, var(--line)); border-left-color: var(--laser); background: color-mix(in srgb, var(--laser) 7%, var(--card)); }
.article-copy p.callout { font-size: 1rem; line-height: 1.6; }

/* After the copy */
.related { padding-top: clamp(2.5rem, 5vw, 4rem); }
.related h2 { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -0.035em; }
.related .guide-tiles { margin-top: 0; }
.article .closer { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Guide index */
.guides-index { padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; }
.guides-index .article-head { border-bottom: 0; padding-bottom: 0.5rem; }
.guides-index .article-head h1 { max-width: none; }
.guides-index .article-head .lede { max-width: 62ch; }
.group-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.group-chips a {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.group-chips a:hover { border-color: var(--accent); color: var(--accent); }
.guide-group { padding-top: clamp(2rem, 4vw, 3rem); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.guide-group h2 { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 1.1rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -0.03em; }
.guide-group h2 span { color: var(--muted); font-size: 0.9rem; font-weight: 600; letter-spacing: 0; }
.guide-tiles { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0; padding: 0; }
.guide-tiles a {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.35rem;
  height: 100%;
  padding: 0 0 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform 260ms var(--ease-out), border-color 180ms ease, box-shadow 260ms var(--ease-out);
}
.guide-tiles a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.guide-tiles picture { display: block; overflow: hidden; }
.guide-tiles img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  image-rendering: auto;
  background: var(--shell);
  transition: transform 600ms var(--ease-out);
}
.guide-tiles a:hover img { transform: scale(1.04); }
.guide-tiles strong { margin: 0.8rem 1.15rem 0; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1.3; }
.guide-tiles span { margin: 0 1.15rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.guide-tiles a:hover strong { color: var(--accent); }
@media (min-width: 700px) { .guide-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .guide-tiles { grid-template-columns: repeat(3, 1fr); } }

.faq { margin-top: 0.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1rem 2rem 1rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 1.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 220ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); top: 1.6rem; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); }

/* Tool pages: FNSKU and Digital Link */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.fnsku-page, .dl-page { display: grid; gap: 1.25rem; padding-bottom: 1rem; }
.fnsku-page h2, .dl-page h2 { margin: 0 0 1rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.15; }
.fnsku-page > section:not(.tool-shell):not(.how), .dl-page > section, #dl-form, .dl-dual {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.fnsku-page > section p, .dl-page > section p { line-height: 1.6; }
.fnsku-page > section ul:not(#upload-errors) { padding-left: 1.2rem; line-height: 1.8; }
.fnsku-page fieldset { margin: 0 0 1.25rem; padding: 0; border: 0; }
.fnsku-page legend { margin-bottom: 0.6rem; padding: 0; font-weight: 600; }
.fnsku-page fieldset > label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0.4rem 0.4rem 0;
  padding: 0.5rem 1.05rem 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--field);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.fnsku-page fieldset > label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.fnsku-page fieldset > label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
#checker-result:not(:empty) {
  margin-top: 1.1rem;
  padding: 0.9rem 1.05rem;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-inner);
  background: var(--accent-soft);
  font-weight: 600;
}
#checker-result a { margin-right: 0.5rem; }
#fnsku-form { display: grid; gap: 1rem; }
#fnsku-form > label { max-width: 24rem; }
.fnsku-table { width: 100%; border-collapse: collapse; }
.fnsku-table caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding-bottom: 0.5rem; }
.fnsku-table th { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.fnsku-table th, .fnsku-table td { text-align: left; vertical-align: top; padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--line); }
.fnsku-table input, .fnsku-table select { width: 100%; }
.fnsku-table td label { font-size: 0.8rem; color: var(--muted); }
.fnsku-table .row-error { margin: 0.25rem 0 0; color: var(--laser); font-size: 0.85rem; }
@media (min-width: 761px) {
  .fnsku-table .cell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.fnsku-table .row-error:empty { display: none; }
@media (max-width: 760px) {
  .fnsku-table thead { display: none; }
  .fnsku-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .fnsku-table td { padding: 0; border: 0; }
  .fnsku-table td:first-child, .fnsku-table td:nth-child(2) { grid-column: 1 / -1; }
}
/* The start grid is the sheet in miniature: equal cells, one per label. */
.start-grid { display: grid; gap: 0.3rem; max-width: 17rem; }
.start-grid button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 1.9rem;
  padding: 0;
  justify-self: stretch;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.start-grid button:hover { border-color: var(--accent); }
.start-grid button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; }
.fnsku-preview { margin: 0; }
.fnsku-preview img { max-width: 100%; height: auto; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-inner); background: var(--label); image-rendering: auto; }
.fnsku-preview figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
#form-error:empty, #upload-summary:empty { display: none; }
#upload { display: grid; gap: 0.9rem; justify-items: start; }
#upload > label { width: min(100%, 30rem); }
#upload-form, #upload-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
#upload-errors { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); }
#upload-errors:empty { display: none; }

#dl-form { display: grid; gap: 1rem; }
#dl-form > p { margin: 0; }
#dl-form > button { justify-self: start; }
#qualifiers:not([hidden]) { display: grid; gap: 1rem; }
#field-error:not(:empty) { color: var(--laser); font-weight: 600; }
#field-error:empty { display: none; }
#uri:not(:empty) {
  padding: 0.8rem 0.95rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-inner);
  background: var(--field);
  font-family: var(--mono);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
@media (min-width: 760px) {
  #dl-form { grid-template-columns: 1fr 1fr; }
  #dl-form > :not(label) { grid-column: 1 / -1; }
  #qualifiers:not([hidden]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dl-dual { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; }
.dl-dual img { max-width: 100%; height: auto; padding: 0.75rem; border-radius: var(--radius-inner); background: var(--label); }
.dl-dual figcaption { flex-basis: 100%; color: var(--muted); max-width: 62ch; }
#results { display: grid; gap: 0.8rem; justify-items: start; }
#results > p, #results > pre { margin: 0; }
#results > pre { justify-self: stretch; }

.element-string { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; overflow-wrap: anywhere; }
.element-string:empty { display: none; }
.muted-note { color: var(--muted); font-size: 0.9rem; }

/*
  Feature pages: Excel, Google Sheets, FNSKU, and Digital Link.
  A split header with an animated picture of the job, "How it works" in three steps,
  and diagrams that explain the label or the link. Static styles are the finished frame.
*/
.feature-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 4.5vw, 3.5rem) 0 clamp(1rem, 2vw, 1.5rem);
}
.feature-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% 0 0 35%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
  pointer-events: none;
}
.feature-copy h1 { margin: 0; max-width: 15ch; font-size: clamp(2.3rem, 4.3vw, 3.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; }
.feature-copy .lede { max-width: 46ch; }
.feature-copy .lede a { font-weight: 600; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.6rem; }
.feature-facts { list-style: none; display: grid; gap: 0.5rem; margin: 1.6rem 0 0; padding: 0; font-size: 0.95rem; font-weight: 600; }
.feature-facts li { display: flex; align-items: center; gap: 0.6rem; }
.feature-facts svg { flex: none; width: 1.35rem; height: 1.35rem; padding: 0.22rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
@media (min-width: 960px) {
  .feature-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); }
}

.feature-stage {
  position: relative;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--shell);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 0);
  background-size: 18px 18px;
}
.stage-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; min-height: 2.4rem; }
.stage-tag { margin: 0; padding: 0.3rem 0.8rem; border: 1px dashed var(--line-strong); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.3rem 0.9rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 700;
}
.stage-chip svg { width: 1.5rem; height: 1.5rem; padding: 0.28rem; border-radius: 999px; background: color-mix(in srgb, var(--on-accent) 22%, transparent); }

/* The spreadsheet window on the Excel and Google Sheets guides */
.app-window { margin: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field); box-shadow: var(--shadow); }
.app-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--shell); font-size: 0.8rem; font-weight: 700; }
.app-dots { display: flex; gap: 0.35rem; }
.app-dots i { width: 0.6rem; height: 0.6rem; border-radius: 999px; background: var(--line-strong); }
.app-title { color: var(--ink); }
.app-badge { margin-left: auto; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.app-window .sheet { border: 0; border-radius: 0; box-shadow: none; }
.fx-key { padding: 0 0.15em; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.app-note { margin: 0; padding: 0.7rem 0.95rem; border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 0.85rem; }
.app-note .fx-key { font-family: var(--mono); }
.guide-sheet .article-head { border-bottom: 0; padding-bottom: 0; }

/* How it works */
.how { padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(0.5rem, 2vw, 1.25rem); }
.how > h2, .dl-page > .section-title, .anatomy > h2, .timeline > h2 { margin: 0 0 1.25rem; font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -0.035em; line-height: 1.1; }
.how-steps { list-style: none; counter-reset: how; display: grid; gap: 1rem; margin: 0; padding: 0; }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-step { counter-increment: how; display: grid; align-content: start; gap: 0.55rem; padding: 0.85rem 0.85rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.how-step h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0.35rem 0.3rem 0; font-size: 1.1rem; letter-spacing: -0.02em; }
.how-step h3::before { content: counter(how); flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.8rem; }
.how-step p { margin: 0 0.3rem; color: var(--muted); line-height: 1.55; }
.how-step p a { font-weight: 600; }
.how-art {
  display: grid;
  place-items: center;
  height: 8.5rem;
  overflow: hidden;
  border-radius: var(--radius-inner);
  background-color: var(--shell);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0);
  background-size: 14px 14px;
}

/* The small pictures inside the steps */
.art-card { position: relative; display: grid; gap: 0.4rem; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--label); box-shadow: var(--shadow); font-size: 0.75rem; }
.art-card code { font-family: var(--mono); }
.art-key { min-width: 11rem; }
.art-key-label { color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.art-key code { font-size: 0.85rem; font-weight: 700; }
.art-key i { font-style: normal; color: var(--muted); }
.art-copied { justify-self: start; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.68rem; font-weight: 700; }
.art-cells { grid-template-columns: 2.2rem 8rem; gap: 0; padding: 0; overflow: hidden; }
.art-cell { display: flex; align-items: center; min-height: 1.9rem; padding: 0 0.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.art-cell:nth-child(2n) { border-right: 0; }
.art-head { justify-content: center; background: var(--shell); color: var(--muted); font-weight: 700; }
.art-z1 { box-shadow: inset 0 0 0 2px var(--accent); }
.art-z1 code { display: inline-block; overflow: hidden; white-space: nowrap; font-size: 0.72rem; }
.art-name { grid-column: 1 / -1; padding: 0.35rem 0.5rem; color: var(--accent); font-weight: 700; }
.art-fill { min-width: 11rem; }
.art-fx { color: var(--muted); font-style: italic; font-weight: 700; }
.art-fx code { font-style: normal; color: var(--ink); }
.art-col { display: grid; gap: 0.3rem; padding: 0.35rem; border: 2px solid var(--accent); border-radius: 4px; }
.art-bars { height: 1.15rem; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }
.art-check { min-width: 11rem; }
.art-q { display: flex; align-items: center; gap: 0.3rem; }
.art-q i { flex: 1; height: 0.4rem; margin-right: 0.3rem; border-radius: 999px; background: var(--shell); }
.art-q b { padding: 0.05rem 0.45rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 0.65rem; }
.art-q b.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.art-verdict { justify-self: start; margin-top: 0.15rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.art-rows { min-width: 11rem; gap: 0.3rem; }
.art-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.25rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; }
.art-row i { width: 0.75rem; height: 0.75rem; border-radius: 999px; background: var(--accent); }
.art-sheet { width: 9rem; height: 7rem; padding: 0; overflow: hidden; border: 0; background: transparent; box-shadow: none; }
.art-printer { position: absolute; z-index: 1; top: 0; left: 0.5rem; right: 0.5rem; height: 1rem; border-radius: 6px; background: var(--ink); }
.art-page { position: absolute; top: 0.5rem; left: 1.1rem; right: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.7rem 0.4rem 0.4rem; border-radius: 0 0 4px 4px; background: var(--label); box-shadow: var(--shadow); }
.art-page i { height: 1.25rem; border: 1px solid var(--line); border-radius: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 6px) center 0.2rem / 70% 0.55rem no-repeat; }

/* FNSKU: the label sheet in the header */
.label-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; padding: 0.9rem 0.6rem; border-radius: 6px; background: var(--label); box-shadow: var(--shadow); }
.slot { position: relative; display: grid; place-items: center; aspect-ratio: 2.625 / 1; overflow: hidden; padding: 0.2rem 0.35rem; border: 1px dashed var(--line); border-radius: 5px; }
.slot img { width: 100%; height: auto; image-rendering: auto; }
.slot-used { border-style: solid; background: repeating-linear-gradient(135deg, var(--shell) 0 4px, transparent 4px 9px); }
.label-laser {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--laser);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--laser) 55%, transparent);
  opacity: 0;
}

/* FNSKU page layout */
.split-card { display: grid; gap: 0.5rem 2.5rem; }
.split-intro p { margin: 0; color: var(--muted); }
@media (min-width: 860px) { .split-card { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
@media (min-width: 960px) {
  .fnsku-page, .dl-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fnsku-page > *, .dl-page > * { grid-column: 1 / -1; }
  .fnsku-page > #upload, .fnsku-page > #sheet-formula { grid-column: auto; }
  .dl-page > #dl-form { grid-column: 1; align-content: start; }
  .dl-page > #dual { grid-column: 2; align-content: center; }
}
#label-formula, #dl-formula { white-space: pre-wrap; overflow-wrap: anywhere; }
.fnsku-page > section ul.checklist:not(#upload-errors) { list-style: none; display: grid; gap: 0.75rem; margin: 0; padding: 0; line-height: 1.5; }
@media (min-width: 760px) { .fnsku-page > section ul.checklist:not(#upload-errors) { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-inner); background: var(--field); }
.checklist svg { flex: none; width: 1.5rem; height: 1.5rem; padding: 0.25rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.checklist span { color: var(--muted); }
.checklist strong { color: var(--ink); }

/* Diagrams: what is on the label, and what is in the link */
.anatomy-body { display: grid; gap: 1.5rem 2.5rem; align-items: center; }
@media (min-width: 860px) { .anatomy-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.label-anatomy { margin: 0; padding: clamp(1rem, 3vw, 1.75rem); border-radius: var(--radius-inner); background-color: var(--shell); background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0); background-size: 14px 14px; }
.label-frame { position: relative; display: block; padding: 0.6rem; border-radius: 6px; background: var(--label); box-shadow: var(--shadow); }
.label-frame img { display: block; width: 100%; height: auto; image-rendering: auto; }
.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  translate: -50% -50%;
}
.pin-1 { left: 5%; top: 30%; }
.pin-2 { left: 70%; top: 63%; }
.pin-3 { left: 73%; top: 77%; }
.pin-4 { left: 13%; top: 89%; }
.fnsku-page .anatomy-list { list-style: none; counter-reset: pin; display: grid; gap: 0.9rem; margin: 0; padding: 0; }
.anatomy-list li { counter-increment: pin; display: grid; grid-template-columns: 1.7rem 1fr; column-gap: 0.75rem; line-height: 1.5; }
.anatomy-list li::before { content: counter(pin); grid-row: span 2; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.anatomy-list span { color: var(--muted); }

/* Digital Link: the header picture */
.dl-step { margin: 0; }
.dl-gtin { display: flex; align-items: center; gap: 0.75rem; justify-self: start; padding: 0.5rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-inner); background: var(--field); font-family: var(--mono); font-size: 1rem; }
.dl-label { color: var(--muted); font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dl-typed { display: inline-block; width: 14ch; overflow: hidden; white-space: nowrap; border-right: 2px solid transparent; vertical-align: bottom; }
.dl-url, .link-parts { display: flex; flex-wrap: wrap; gap: 0.2rem; font-family: var(--mono); overflow-wrap: anywhere; }
.dl-url { font-size: clamp(0.8rem, 1.5vw, 0.95rem); }
.part { padding: 0.2rem 0.45rem; border-radius: 6px; }
.part-domain { background: var(--card); border: 1px solid var(--line-strong); }
.part-ai { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.part-gtin { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.part-lot, .part-exp { border: 1px dashed var(--line-strong); color: var(--muted); }
.dl-pack { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2rem); padding: 1.1rem; border-radius: var(--radius-inner); background: var(--label); box-shadow: var(--shadow); }
.dl-pack-ean { width: 46%; height: auto; image-rendering: auto; }
.dl-pack-qr { position: relative; display: block; width: 28%; }
.dl-pack-qr img { display: block; width: 100%; height: auto; }
.viewfinder {
  position: absolute;
  inset: -12%;
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 22% 3px,
    linear-gradient(var(--c), var(--c)) top left / 3px 22%,
    linear-gradient(var(--c), var(--c)) top right / 22% 3px,
    linear-gradient(var(--c), var(--c)) top right / 3px 22%,
    linear-gradient(var(--c), var(--c)) bottom left / 22% 3px,
    linear-gradient(var(--c), var(--c)) bottom left / 3px 22%,
    linear-gradient(var(--c), var(--c)) bottom right / 22% 3px,
    linear-gradient(var(--c), var(--c)) bottom right / 3px 22%;
  background-repeat: no-repeat;
}

/* Digital Link: diagrams and sections */
.section-lede { margin: -0.5rem 0 1.25rem; max-width: 60ch; color: var(--muted); }
.link-parts { margin: 0 0 1.5rem; font-size: clamp(0.95rem, 2vw, 1.35rem); }
.link-parts .part { padding: 0.35rem 0.6rem; }
.dl-page .part-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin: 0; }
.part-legend div { padding-top: 0.75rem; border-top: 3px solid var(--line-strong); }
.part-legend .legend-ai { border-top-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.part-legend .legend-gtin { border-top-color: var(--accent); }
.part-legend .legend-lot, .part-legend .legend-exp { border-top-style: dashed; }
.part-legend dt { font-family: var(--mono); font-weight: 700; }
.part-legend dd { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.timeline-steps { list-style: none; display: grid; gap: 1.25rem; margin: 0; padding: 0; }
.timeline-steps li { position: relative; display: grid; gap: 0.3rem; padding-left: 1.75rem; }
.timeline-steps li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 0.85rem; height: 0.85rem; border: 3px solid var(--accent); border-radius: 999px; background: var(--card); }
.timeline-steps li:last-child::before { background: var(--accent); }
.timeline-steps .when { color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.timeline-steps li > span:last-child { color: var(--muted); line-height: 1.5; }
@media (min-width: 760px) {
  .timeline-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 1.75rem; }
  .timeline-steps li { padding-left: 0; }
  .timeline-steps li::before { top: -1.75rem; }
  .timeline-steps li::after { content: ""; position: absolute; top: -1.35rem; left: 1.1rem; right: -1.9rem; height: 3px; background: color-mix(in srgb, var(--accent) 30%, var(--line)); transform-origin: left; }
  .timeline-steps li:last-child::after { display: none; }
}
.carriers { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 760px) { .carriers { grid-template-columns: 1fr 1fr; } }
.carrier { display: grid; grid-template-columns: 4rem 1fr; column-gap: 1rem; align-items: start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-inner); background: var(--field); }
.carrier-pick { border-color: var(--accent); background: var(--accent-soft); }
.carrier-glyph { grid-row: span 2; width: 4rem; height: 4rem; padding: 0.35rem; border-radius: 8px; background: var(--label); image-rendering: pixelated; }
.carrier-dm {
  display: block;
  border-left: 0.35rem solid var(--ink);
  border-bottom: 0.35rem solid var(--ink);
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 0.35rem, transparent 0.35rem 0.7rem) top / 100% 0.35rem no-repeat,
    repeating-linear-gradient(0deg, var(--ink) 0 0.35rem, transparent 0.35rem 0.7rem) right / 0.35rem 100% no-repeat,
    radial-gradient(var(--ink) 40%, transparent 42%) 0 0 / 0.7rem 0.7rem,
    var(--label);
}
.dl-page .carrier p { margin: 0; }
.carrier-name { font-weight: 700; }
.carrier p:not(.carrier-name) { color: var(--muted); font-size: 0.9rem; }

/* Feature pages: motion */
@media (prefers-reduced-motion: no-preference) {
  .feature-copy { animation: rise 800ms var(--ease-out) 80ms both; }
  .feature-hero > :last-child { animation: stage-in 1000ms var(--ease-out) 220ms both; }

  .label-stage { --labels: 9s; }
  .label-stage.in-view .slot-print img { animation: label-print var(--labels) var(--ease-out) infinite both; }
  .label-stage.in-view .slot-print:nth-child(4) img { animation-delay: 0.3s; }
  .label-stage.in-view .slot-print:nth-child(5) img { animation-delay: 0.6s; }
  .label-stage.in-view .slot-print:nth-child(6) img { animation-delay: 0.9s; }
  .label-stage.in-view .slot-print:nth-child(7) img { animation-delay: 1.2s; }
  .label-stage.in-view .slot-print:nth-child(8) img { animation-delay: 1.5s; }
  .label-stage.in-view .slot-print:nth-child(9) img { animation-delay: 1.8s; }
  .label-stage.in-view .label-laser { animation: label-laser var(--labels) linear infinite both; }
  .label-stage.in-view .stage-chip { animation: label-chip var(--labels) var(--ease-out) infinite both; }

  .dl-stage { --dl: 10s; }
  .dl-stage.in-view .dl-typed { animation: dl-type var(--dl) steps(14, end) infinite both, caret-border 0.7s steps(1) infinite; }
  .dl-stage.in-view .dl-url .part { animation: dl-part var(--dl) var(--ease-out) infinite both; }
  .dl-stage.in-view .dl-url .part-ai { animation-delay: 0.35s; }
  .dl-stage.in-view .dl-url .part-gtin { animation-delay: 0.7s; }
  .dl-stage.in-view .dl-pack-ean { animation: dl-print var(--dl) linear infinite both; }
  .dl-stage.in-view .dl-pack-qr img { animation: dl-print var(--dl) linear 0.6s infinite both; }
  .dl-stage.in-view .viewfinder { animation: dl-viewfinder var(--dl) var(--ease-out) infinite both; }
  .dl-stage.in-view .stage-chip { animation: dl-chip var(--dl) var(--ease-out) infinite both; }

  .how-step.in-view .art-copied { animation: art-pop 4.5s var(--ease-out) infinite both; }
  .how-step.in-view .art-key code { animation: art-shine 4.5s ease infinite both; }
  .how-step.in-view .art-z1 code { animation: art-paste 4.5s steps(11, end) infinite both; }
  .how-step.in-view .art-bars { animation: art-bars 4.5s linear infinite both; }
  .how-step.in-view .art-bars:nth-child(2) { animation-delay: 0.25s; }
  .how-step.in-view .art-bars:nth-child(3) { animation-delay: 0.5s; }
  .how-step.in-view .art-col { animation: art-col 4.5s var(--ease) infinite both; }
  .how-step.in-view .art-verdict { animation: art-pop 4.5s var(--ease-out) infinite both; }
  .how-step.in-view .art-q b.on { animation: art-choose 4.5s ease infinite both; }
  .how-step.in-view .art-q:nth-child(2) b.on { animation-delay: 0.5s; }
  .how-step.in-view .art-row { animation: art-row 4.5s var(--ease-out) infinite both; }
  .how-step.in-view .art-row:nth-child(2) { animation-delay: 0.3s; }
  .how-step.in-view .art-row:nth-child(3) { animation-delay: 0.6s; }
  .how-step.in-view .art-page { animation: art-feed 4.5s var(--ease) infinite both; }

  .anatomy.in-view .pin { animation: pin-pop 600ms var(--ease-out) both; }
  .anatomy.in-view .pin-2 { animation-delay: 150ms; }
  .anatomy.in-view .pin-3 { animation-delay: 300ms; }
  .anatomy.in-view .pin-4 { animation-delay: 450ms; }
  .dl-anatomy.in-view .link-parts .part { animation: rise-small 500ms var(--ease-out) both; }
  .dl-anatomy.in-view .link-parts .part:nth-child(2) { animation-delay: 120ms; }
  .dl-anatomy.in-view .link-parts .part:nth-child(3) { animation-delay: 240ms; }
  .dl-anatomy.in-view .link-parts .part:nth-child(4) { animation-delay: 360ms; }
  .dl-anatomy.in-view .link-parts .part:nth-child(5) { animation-delay: 480ms; }
  .timeline.in-view .timeline-steps li::after { animation: grow-x 900ms var(--ease-out) 200ms both; }
  .timeline.in-view .timeline-steps li:nth-child(2)::after { animation-delay: 700ms; }
  .timeline.in-view .timeline-steps li:last-child::before { animation: pin-pop 600ms var(--ease-out) 1400ms both; }
}

/*
  The label loop is 9 s (1% is 90 ms). Labels print from label 3 one after another,
  the laser reads label 3, the chip confirms, everything clears.
*/
@keyframes label-print {
  0%, 4% { clip-path: inset(0 0 100% 0); opacity: 1; }
  9%, 82% { clip-path: inset(0); opacity: 1; }
  88%, 100% { clip-path: inset(0); opacity: 0; }
}
@keyframes label-laser {
  0%, 40% { opacity: 0; top: 0; }
  41% { opacity: 1; }
  47% { opacity: 1; top: 100%; }
  48%, 100% { opacity: 0; top: 100%; }
}
@keyframes label-chip {
  0%, 48% { opacity: 0; transform: scale(0.6); }
  51% { opacity: 1; transform: scale(1.06); }
  53%, 84% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: none; }
}
/* The Digital Link loop is 10 s (1% is 100 ms). */
@keyframes dl-type { 0%, 2% { width: 0; } 14%, 100% { width: 14ch; } }
@keyframes dl-part {
  0%, 16% { opacity: 0; transform: translateY(6px); }
  20%, 90% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: none; }
}
@keyframes dl-print {
  0%, 30% { clip-path: inset(0 100% 0 0); opacity: 1; }
  36%, 90% { clip-path: inset(0); opacity: 1; }
  95%, 100% { clip-path: inset(0); opacity: 0; }
}
@keyframes dl-viewfinder {
  0%, 46% { opacity: 0; transform: scale(1.35); }
  54%, 90% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: none; }
}
@keyframes dl-chip {
  0%, 56% { opacity: 0; transform: scale(0.6); }
  59% { opacity: 1; transform: scale(1.06); }
  61%, 90% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: none; }
}
@keyframes art-pop {
  0%, 30% { opacity: 0; transform: scale(0.7); }
  36% { opacity: 1; transform: scale(1.06); }
  40%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes art-shine { 0%, 20% { background: transparent; } 26%, 34% { background: var(--accent-soft); } 40%, 100% { background: transparent; } }
@keyframes art-paste { 0%, 15% { width: 0; } 40%, 92% { width: 11ch; } 98%, 100% { width: 0; } }
@keyframes art-bars {
  0%, 20% { clip-path: inset(0 100% 0 0); }
  30%, 88% { clip-path: inset(0); }
  96%, 100% { clip-path: inset(0 100% 0 0); }
}
@keyframes art-col { 0%, 12% { clip-path: inset(0 0 66% 0); } 40%, 90% { clip-path: inset(0); } 98%, 100% { clip-path: inset(0 0 66% 0); } }
@keyframes art-choose {
  0%, 10% { border-color: var(--line-strong); background: transparent; color: var(--muted); }
  16%, 90% { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  96%, 100% { border-color: var(--line-strong); background: transparent; color: var(--muted); }
}
@keyframes art-row {
  0%, 8% { opacity: 0; transform: translateX(-10px); }
  16%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes art-feed { 0%, 8% { transform: translateY(-85%); } 50%, 88% { transform: none; } 98%, 100% { transform: translateY(-85%); } }
@keyframes pin-pop { from { opacity: 0; scale: 0.4; } 70% { opacity: 1; scale: 1.12; } to { opacity: 1; scale: 1; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Footer */
.site-footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--shell);
  color: var(--muted);
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: grid; gap: 0.9rem; align-content: start; justify-items: start; }
.footer-brand p { margin: 0; max-width: 34ch; line-height: 1.55; }
.site-footer h2 {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer nav { display: grid; gap: 0.5rem; align-content: start; }
.site-footer a { color: var(--ink); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.site-footer nav a:hover, .footer-base a:hover { color: var(--accent); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.footer-base p { margin: 0; max-width: 46ch; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: minmax(15rem, 1.4fr) 1fr 0.9fr 0.9fr 0.7fr; }
  .footer-brand { grid-column: auto; }
}

/* Layout previews at /designs, only outside production */
.proof { padding: 0 0 4rem; }
.proof h2 { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.03em; max-width: 18ch; }
.featured {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: inherit;
  text-decoration: none;
}
.featured h3 { margin: 0 0 0.35rem; letter-spacing: -0.03em; }
.featured p { margin: 0; color: var(--muted); max-width: 52ch; }
.specimen { background: var(--label); border-radius: var(--radius-inner); padding: 0.8rem; width: fit-content; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; }
.guide-list a {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.guide-list a:hover strong { color: var(--accent); }
.guide-list span { color: var(--muted); }
.design #barcode, #csv-form { display: grid; gap: 0.75rem; }
.script-note { margin: 0.8rem 0 0; color: var(--muted); }
.way .script-note { margin: 0; }
@media (min-width: 800px) {
  .featured { grid-template-columns: auto 1fr; }
}

.design-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.design-switch a { color: var(--muted); text-decoration: none; }
.design-switch a[aria-current] { color: var(--ink); }
.design-switch a:hover { color: var(--accent); }
.design { padding-bottom: 3rem; }
.design h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.96;
}
.design .lede { margin-top: 0.85rem; }
.design h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -0.03em; max-width: 16ch; }
.d-kicker { margin: 0 0 0.7rem; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.design #image { background: #fff; padding: 0.7rem; border-radius: 12px; width: min(420px, 100%); }

.design-index { padding: 0.5rem 0 4rem; max-width: 40rem; }
.design-index h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.05em; line-height: 0.98; }
.design-index p { color: var(--muted); max-width: 42ch; }
.design-index ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.design-index a {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.15rem;
  background: var(--shell);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
}
.design-index strong { font-size: 1.35rem; letter-spacing: -0.03em; }
.design-index span { color: var(--muted); }
.design-index a:hover strong { color: var(--accent); }

.design-specimen .d-plate {
  display: grid;
  gap: 1.25rem;
  background: #fff;
  color: #1c2128;
  border-radius: 22px;
  padding: 1.35rem 1.35rem 1.6rem;
}
.design-specimen .d-plate .d-kicker { color: #145c40; }
.design-specimen .d-plate h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); max-width: 11ch; color: #1c2128; }
.design-specimen .d-plate .lede { color: #3e4750; max-width: 32ch; }
.design-specimen .d-mark { margin: 1.35rem 0 0; }
.design-specimen .d-mark img { width: 100%; height: auto; image-rendering: pixelated; background: #fff; }
.design-specimen .tool-shell { margin-top: 0.9rem; }
.design-specimen .d-proof { margin-top: 2.4rem; }
.d-strip {
  list-style: none;
  margin: 0;
  padding: 0 0 0.4rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 18rem);
  gap: 0.75rem;
  overflow-x: auto;
}
.d-strip a, .d-bento a, .d-feature {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  height: 100%;
  padding: 0.4rem 0.4rem 0.9rem;
  background: var(--shell);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
}
.d-strip img, .d-bento img, .d-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  image-rendering: auto;
}
.d-strip strong, .d-bento strong, .d-feature strong { margin: 0.35rem 0.45rem 0; letter-spacing: -0.03em; }
.d-strip span, .d-bento span, .d-feature span { margin: 0 0.45rem; color: var(--muted); }
.d-strip a:hover strong, .d-bento a:hover strong, .d-feature:hover strong { color: var(--accent); }

.design-ledger .d-mast h1 { font-size: clamp(3rem, 8vw, 6.2rem); max-width: 12ch; }
.design-ledger .d-sheet { margin-top: 1.8rem; }
.design-ledger .tool-shell { background: transparent; padding: 0; border-radius: 0; }
.design-ledger .tool {
  background: transparent;
  border-radius: 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--accent);
}
.d-index { list-style: none; margin: 0; padding: 0; }
.d-index a {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.35rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.d-index b { color: var(--accent); font-size: 0.92rem; }
.d-index a:hover span { color: var(--accent); }
.d-note { margin-top: 1.25rem; }
.d-note .script-note { margin-top: 0; }
.d-spread { margin-top: 3rem; }
.d-feature { display: grid; }
.d-catalog { list-style: none; margin: 0; padding: 0; counter-reset: guide; }
.d-catalog li { counter-increment: guide; }
.d-catalog a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.15rem 0.7rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.d-catalog a::before {
  content: counter(guide, decimal-leading-zero);
  grid-row: span 2;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding-top: 0.15rem;
}
.d-catalog span { color: var(--muted); }
.d-catalog a:hover strong { color: var(--accent); }

.design-stage .d-poster h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); max-width: 14ch; }
.design-stage .tool-shell { margin-top: 1.35rem; }
.design-stage .d-sample {
  margin: 0.4rem 0 0;
  padding: 1.5rem 1rem 1.1rem;
  background: #fff;
  border-radius: 16px;
  text-align: center;
}
.design-stage .d-sample img { width: min(460px, 100%); image-rendering: pixelated; }
.design-stage .d-sample figcaption { margin: 0.75rem 0 0; color: #3e4750; font-size: 0.92rem; }
.design-stage #result:not(:empty) ~ .d-sample { display: none; }
.design-stage .d-drawer { margin-top: 1rem; padding-top: 0.2rem; }
.design-stage .d-proof { margin-top: 2.6rem; }
.d-bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.d-rest {
  padding: 0.3rem 0.2rem 0.2rem;
  background: var(--shell);
  border-radius: 20px;
}
.d-rest ol { list-style: none; margin: 0; padding: 0.4rem 0.7rem; }
.d-rest a {
  display: grid;
  gap: 0.1rem;
  height: auto;
  padding: 0.7rem 0;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.d-rest li:last-child a { border-bottom: 0; }
.d-rest strong, .d-rest span { margin: 0; }

@media (min-width: 800px) {
  .design-specimen .d-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: start;
    column-gap: 1.15rem;
  }
  .design-specimen .d-plate { min-height: 0; padding: 1.7rem 1.6rem 1.5rem; }
  .design-specimen .tool-shell { width: auto; margin: 0.35rem 0 0; }
  .design-ledger .d-mast { display: grid; grid-template-columns: 1.45fr 0.7fr; gap: 2rem; align-items: end; }
  .design-ledger .d-sheet { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) minmax(16rem, 20rem); gap: 1.6rem; align-items: start; }
  .design-ledger .d-note { margin-top: 0; }
  .d-spread { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.6rem; align-items: start; }
  .design-stage #barcode { grid-template-columns: minmax(0, 1.5fr) minmax(11rem, 0.7fr) auto; align-items: end; }
  .d-bento { grid-template-columns: 1.35fr 1fr 1fr; }
  .d-bento > li:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .d-bento > li:nth-child(2) { grid-column: 2; grid-row: 1; }
  .d-bento > li:nth-child(3) { grid-column: 3; grid-row: 1; }
  .d-bento > li:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }
}
@media (max-width: 799px) {
  .design-stage #barcode { grid-template-columns: 1fr; }
}

