/* hoardebox.com: the app's own colours and type (apps/mobile/DESIGN.md, Container Yard), on a
   light page. Written for the phone first; wider windows add columns. Fonts are served from this
   server: no request to Google or anyone else. */
@font-face {
  font-family: "Archivo Narrow";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ArchivoNarrow_700Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Archivo";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Archivo_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Archivo";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Archivo_600SemiBold.ttf") format("truetype");
}

:root {
  --ground: #edf0f2;
  --step: #dde3e7;
  --surface: #ffffff;
  --line: #cfd6da;
  --ink: #15191c;
  --ink-2: #4f585e;
  --accent: #c2410c;
  --accent-press: #a53709;
  --on-accent: #ffffff;
  --stage: #1f4e79;
  --on-stage-2: #d3e0ec;
  --steel: #5e676d;
  --ribs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='10'%3E%3Crect x='5' width='2' height='10' fill='%23000' fill-opacity='.16'/%3E%3Crect x='7' width='1' height='10' fill='%23fff' fill-opacity='.08'/%3E%3C/svg%3E");

  --display: "Archivo Narrow", "Arial Narrow", sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s-small: 14px;
  --s-body: 17px;
  --s-mid: 24px;
  --s-h2: clamp(40px, 5.6vw, 76px);
  --s-display: clamp(44px, 12.4vw, 112px);

  --m: clamp(16px, 4vw, 48px);
  --gap-section: clamp(96px, 11vw, 184px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (min-width: 760px) {
  :root {
    --s-body: 18px;
    --s-display: clamp(56px, 7.4vw, 112px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--s-body) / 1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a,
button,
summary,
label {
  touch-action: manipulation;
}
button,
summary,
.chip {
  -webkit-user-select: none;
  user-select: none;
}
input {
  font-size: 16px; /* never under 16px: iOS zooms into smaller inputs */
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
h2 {
  font: 700 var(--s-h2) / 0.98 var(--display);
  letter-spacing: -0.02em;
}
h3 {
  font: 600 var(--s-body) / 1.3 var(--text);
}

/* The one action shape: the app's orange button, 10px corners. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 17px/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    transform 120ms var(--ease);
}
.button:active {
  transform: scale(0.97);
  background: var(--accent-press);
}
/* Secondary: outlined in ink, as in the app. */
.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink); /* taste-skill-ignore: the app's outlined button */
}
.button-quiet:active {
  background: var(--step);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--accent-press);
  }
  .button-quiet:hover {
    background: var(--step);
  }
}

/* Navigation: wordmark, four links, the language. On a phone, the wordmark and the language. */
.bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: max(16px, env(safe-area-inset-top)) var(--m) 0;
  position: relative;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.logo {
  width: 36px;
  height: 36px;
  flex: none;
}
.wordmark {
  font: 700 22px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bar nav {
  display: none;
  gap: 28px;
  font-size: 16px;
}
.bar nav a {
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}
.bar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .bar nav a:hover::after {
    transform: scaleX(1);
  }
}
.langs {
  position: relative;
  font-size: 16px;
}
.langs summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 2px;
}
.langs summary::-webkit-details-marker {
  display: none;
}
.langs summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 3px 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.langs ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border-radius: 12px;
}
.langs[open] ul {
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.16); /* taste-skill-ignore: open menu floats */
}
.langs a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
}
.langs a[aria-current] {
  background: var(--step);
}
@media (hover: hover) and (pointer: fine) {
  .langs a:hover {
    background: var(--step);
  }
}

/* Hero: the headline, then the label on a blue stage with a container's cut corner. On a phone
   the label is on the first screen; on a wide window it stands beside the headline. */
.hero {
  padding: 0 var(--m);
}
.hero-copy {
  padding-top: clamp(28px, 6vw, 112px);
}
.hero h1 {
  font: 700 var(--s-display) / 0.94 var(--display);
  letter-spacing: -0.03em;
}
.hero h1 span {
  display: block;
}
.lead {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 18px;
}
.hero .stores {
  margin-top: 24px;
}
/* The official store badges, side by side; they keep their own colours and shapes. */
.hero-actions {
  margin-top: 28px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.store-badge {
  display: block;
  line-height: 0;
  transition: transform 120ms var(--ease);
}
.store-badge:active {
  transform: scale(0.97);
}
.store-badge img {
  display: block;
  width: auto;
  height: 46px;
}
.stage {
  margin: 32px calc(var(--m) * -1) 0;
  padding: 32px var(--m) 36px;
  background: var(--stage);
  clip-path: polygon(44px 0, 100% 0, 100% 100%, 0 100%, 0 44px);
  color: #ffffff;
}

/* The printed label: black on white, QR left, number large (label-design skill). */
.label {
  --place: #1f4e79;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 640px;
  padding: 12px 14px 12px 24px;
  background: #ffffff;
  color: #000000;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.label::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--place);
  transition: background-color 240ms var(--ease);
}
.label-qr {
  width: clamp(96px, 28vw, 176px);
  aspect-ratio: 1;
  background: #fff;
}
.label-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.label-qr .m {
  transform-box: fill-box;
  transform-origin: center;
  animation: module 380ms var(--ease) both;
  animation-delay: var(--d);
}
@keyframes module {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
}
.label.printing {
  animation: print 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes print {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-14px);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}
.label-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.label-no {
  font: 700 14px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.label-no b {
  font-size: clamp(40px, 11vw, 72px);
  letter-spacing: -0.02em;
}
.label-name {
  font: 600 clamp(17px, 4.6vw, 26px) / 1.2 var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.label-place,
.label-made {
  font-size: clamp(12px, 3.2vw, 15px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.label-made {
  color: #4f585e;
}

/* The form under the label, on the blue: write the box, choose its place, print it. */
.maker-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  max-width: 640px;
}
.field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field > span,
.field legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-stage-2);
}
.field legend {
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: 400 16px var(--text);
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 10px;
}
.field input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.45); /* taste-skill-ignore: app chip */
  cursor: pointer;
  font-size: 15px;
  transition:
    background-color 150ms var(--ease),
    color 150ms var(--ease),
    transform 120ms var(--ease);
}
.chip:active {
  transform: scale(0.96);
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip:has(input:checked) {
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}
.chip:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  box-shadow: 0 0 0 1.5px #ffffff; /* taste-skill-ignore: swatch edge on blue */
}
.maker-print {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.note {
  font-size: var(--s-small);
  line-height: 1.45;
  color: var(--on-stage-2);
  max-width: 48ch;
}

@media (min-width: 560px) {
  .maker-form {
    grid-template-columns: 1fr 1fr;
  }
  .field-place,
  .maker-print {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1000px) {
  .bar nav {
    display: flex;
  }
  .hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .hero-copy {
    grid-column: 1 / 7;
  }
  .lead {
    margin-top: 28px;
    font-size: 20px;
  }
  .hero .stores {
    margin-top: 36px;
  }
  .store-badge img {
    height: 52px;
  }
  .stage {
    grid-column: 7 / 13;
    margin: clamp(56px, 8vw, 132px) calc(var(--m) * -1) 0 0;
    padding: 56px var(--m) 56px 56px;
    clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px);
  }
}

/* The app's start screen. Rows as in the app: a ribbed wall with the symbol, title, status. */
.home {
  margin-top: var(--gap-section);
  padding: clamp(64px, 9vw, 144px) var(--m);
  background: var(--surface);
}
.home-intro p {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 18px;
}
.screen {
  margin-top: 32px;
  padding: 18px 14px 20px;
  background: var(--ground);
  border-radius: 28px;
  max-width: 520px;
}
.screen-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.screen-head .logo {
  width: 44px;
  height: 44px;
}
.household {
  display: grid;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.household-name {
  font: 700 24px/1.1 var(--display);
}
.household-sub {
  font-size: 15px;
  color: var(--ink-2);
}
.household-sub::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.household[aria-expanded="true"] .household-name {
  color: var(--accent);
}
.gear {
  margin-left: auto;
  width: 26px;
  height: 26px;
}
.gear svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.screen-meta {
  margin: 14px 0 6px;
}
.synced {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--step);
  font-size: 14px;
  color: var(--ink-2);
}
.synced::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6b3a;
}
.start {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  margin-top: 8px;
  padding: 0 14px 0 0;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 120ms var(--ease),
    background-color 120ms var(--ease);
}
.start:active {
  transform: scale(0.985);
  background: var(--step);
}
.start[aria-expanded="true"] {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.start:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.wall {
  align-self: stretch;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--steel) var(--ribs) 0 0 / 8px 100% repeat-x;
}
.wall-places {
  display: flex;
  align-items: stretch;
  background: none;
}
.wall-places i {
  flex: 1;
}
.wall-places::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ribs) 0 0 / 8px 100% repeat-x;
}
.wall svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}
.wall-places svg {
  position: absolute;
  left: calc(50% - 13px);
  top: calc(50% - 13px);
}
.start-text {
  display: grid;
  min-width: 0;
}
.start-title {
  font-weight: 600;
  line-height: 1.25;
}
.start-sub {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.35;
}
.chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
  transition: transform 200ms var(--ease);
}
.start[aria-expanded="true"] .chevron {
  transform: rotate(45deg);
}
.scan-button {
  width: 100%;
  min-height: 58px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 18px var(--text);
  cursor: pointer;
  transition:
    transform 120ms var(--ease),
    background-color 120ms var(--ease);
}
.scan-button:active,
.scan-button[aria-expanded="true"] {
  background: var(--accent-press);
}
.scan-button:active {
  transform: scale(0.98);
}
@media (hover: hover) and (pointer: fine) {
  .start:hover {
    background: #f6f8f9;
  }
  .scan-button:hover {
    background: var(--accent-press);
  }
}

/* What a row opens. On a phone: right under the row, inside the screen. */
.panel {
  padding: 14px 2px 10px;
}
.panel h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.panel > p {
  font-size: 16px;
  max-width: 44ch;
}
.panel-ui {
  margin-top: 12px;
}
.js .panel:not(.open) {
  display: none;
}
.js .panel.open {
  animation: panel-in 320ms var(--ease) both;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (min-width: 1000px) {
  .home-intro {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: end;
  }
  .home-intro h2 {
    grid-column: 1 / 7;
  }
  .home-intro p {
    grid-column: 8 / 13;
    margin: 0;
    font-size: 20px;
  }
  /* The screen on the left, what its chosen row does beside it, on the right. */
  .js .screen {
    --screen: 440px;
    --beside: clamp(48px, 8vw, 128px);
    position: relative;
    max-width: none;
    margin-top: 64px;
    padding: 24px calc(100% - var(--screen) + 20px) 24px 20px;
    background: none;
    border-radius: 0;
    isolation: isolate;
  }
  .js .screen::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--screen);
    background: var(--ground);
    border-radius: 32px;
    z-index: -1;
  }
  .js .panel {
    position: absolute;
    top: 12px;
    left: calc(var(--screen) + var(--beside));
    right: 0;
    padding: 0;
  }
  .js .panel h3 {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font: 700 clamp(40px, 4.2vw, 64px) / 1 var(--display);
    letter-spacing: -0.02em;
  }
  .js .panel > p {
    margin-top: 20px;
    font-size: 20px;
    max-width: 40ch;
  }
  .js .panel-ui {
    margin-top: 32px;
    max-width: 540px;
    padding: 20px;
    background: var(--ground);
    border-radius: 20px;
  }
  .js .start[aria-expanded="true"] .chevron {
    transform: rotate(-45deg);
  }
}

/* Pieces of the app (data-ui): lists, box tiles, search, checks, the box screen. */
.list-ui {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}
.list-ui li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 14px;
}
.list-ui li + li {
  border-top: 1px solid var(--step); /* taste-skill-ignore: app list divider (data-ui) */
}
.list-ui li > span:last-child:not(:first-child) {
  display: grid;
  min-width: 0;
}
.row-name {
  font-weight: 600;
}
.list-ui li > .row-meta {
  margin-left: auto;
  text-align: right;
}
.row-meta {
  color: var(--ink-2);
  font-size: 14px;
}
.state-0 {
  color: #2f6b3a;
}
.state-3 {
  color: var(--accent);
}
.tile {
  --place: var(--steel);
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  border-radius: 8px;
  background: var(--place) var(--ribs) 0 0 / 8px 100% repeat-x;
  color: #fff;
  font: 700 19px/1 var(--display);
}
.tile-thin {
  width: 24px;
  height: 40px;
  border-radius: 6px;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--step);
  font: 700 18px/1 var(--display);
}
.ui-title {
  font: 700 22px/1.1 var(--display);
}
.ui-progress {
  margin: 4px 0 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.panel-ui > .list-ui:not(:first-child) {
  margin-top: 12px;
}
.search-ui input {
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  padding: 0 14px 0 42px;
  border: 0;
  border-radius: 10px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f585e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E")
    14px 50% / 18px no-repeat;
  color: var(--ink);
  font: 400 16px var(--text);
}
.checks {
  display: grid;
  gap: 6px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
}
.checks input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}
.checks input:checked + span {
  color: var(--ink-2);
  text-decoration: line-through;
}
.sheets li.on {
  justify-content: space-between;
}
.sheets li.on::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}
.box-head,
.scan-result {
  display: flex;
  align-items: center;
  gap: 14px;
}
.box-title {
  font: 700 26px/1 var(--display);
}
.box-place {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-2);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--step);
  color: var(--ink);
  font: 600 14px var(--text);
}
.pill-offline {
  margin: 12px 0;
}
.pill-offline::before,
.sync::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a4b00;
}

/* So geht's: three steps, one under the other on a phone, side by side on a wide window. */
.how {
  margin-top: var(--gap-section);
  padding: 0 var(--m);
}
.steps {
  display: grid;
  gap: 56px;
  margin-top: 40px;
}
.step h3 {
  font: 700 clamp(24px, 1.9vw, 28px) / 1.1 var(--display);
  letter-spacing: -0.01em;
}
.step-ui {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.call {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px var(--text);
  text-align: left;
}
.caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -3px;
  background: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.sheet-wrap figcaption {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 46ch;
}
.sheet-row {
  --cw: 92px;
  --ch: 66px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  position: relative;
}
.sheet {
  flex: none;
  width: 128px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  aspect-ratio: 210 / 297;
  padding: 8px 6px;
  background: #ffffff;
  border-radius: 4px;
}
.mini {
  --place: #1f4e79;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 2px 1px 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dde3e7; /* taste-skill-ignore: mini label edge (data-ui) */
  position: relative;
  overflow: hidden;
}
.mini::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--place);
}
.mini i {
  flex: none;
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h3v3H0zM4 0h3v3H4zM0 4h3v3H0zM4 4h1v1H4zM6 4h1v3H6zM4 6h1v1H4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.mini b {
  font: 700 10px/1 var(--display);
  color: #000;
}
.mini.taken {
  opacity: 0.2;
  transition: opacity 300ms var(--ease);
}
.mini.flier {
  position: absolute;
  z-index: 2;
  margin: 0;
  transform-origin: 0 0;
  transition: transform 900ms cubic-bezier(0.3, 0.1, 0.2, 1);
}
/* Three steel boxes waiting for their labels. */
.crates {
  position: relative;
  flex: none;
  width: calc(var(--cw) * 2 + 6px);
  height: calc(var(--ch) * 2 + 6px);
}
.crate {
  --place: #1f4e79;
  position: absolute;
  width: var(--cw);
  height: var(--ch);
  border-radius: 6px;
  background: var(--place) var(--ribs) 0 0 / 8px 100% repeat-x;
  display: grid;
  place-items: center;
}
.crate-0 {
  left: 0;
  bottom: 0;
}
.crate-1 {
  left: calc(var(--cw) + 6px);
  bottom: 0;
}
.crate-2 {
  left: calc(var(--cw) / 2 + 3px);
  bottom: calc(var(--ch) + 6px);
}
.spot {
  width: 44px;
  height: 22px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.18);
  display: flex;
}
.spot .mini {
  flex: 1;
}
.scan {
  width: 100%;
  cursor: pointer;
  transition: transform 120ms var(--ease);
}
.scan:active {
  transform: scale(0.98);
}
.viewfinder {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #15191c;
  position: relative;
  overflow: hidden;
}
.vf-label {
  position: absolute;
  inset: 20px 11px;
  background: #fff;
  border-left: 5px solid #1f4e79;
  display: flex;
  align-items: center;
  padding-left: 4px;
}
.vf-label i {
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h3v3H0zM4 0h3v3H4zM0 4h3v3H0zM4 4h1v1H4zM6 4h1v3H6zM4 6h1v1H4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.vf-corners {
  position: absolute;
  inset: 6px;
  border: 2px solid #ff8a4c;
  border-radius: 6px;
  opacity: 0.55;
  transition:
    inset 420ms var(--ease),
    opacity 420ms var(--ease);
}
.vf-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}
.scan.locked .vf-corners {
  inset: 16px 8px;
  opacity: 1;
}
.scan.locked .vf-flash {
  animation: flash 420ms var(--ease);
}
.scan.locked .viewfinder::after {
  opacity: 0;
}
@keyframes flash {
  30% {
    opacity: 0.75;
  }
}
.viewfinder::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 0;
  height: 2px;
  background: #ff8a4c;
  animation: scanline 2.4s var(--ease) infinite alternate;
}
@keyframes scanline {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(62px);
  }
}
.scan-result {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  transition:
    opacity 500ms var(--ease),
    transform 600ms cubic-bezier(0.2, 1.2, 0.3, 1);
}
.js .scan-result.wait {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
}
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 48px);
    margin-top: 56px;
  }
  .sheet-row {
    --cw: 100px;
    --ch: 72px;
  }
}

/* Built for the basement: labels on the blue field, each with its stripe and its piece. */
.features {
  margin-top: var(--gap-section);
  padding: clamp(64px, 9vw, 144px) var(--m);
  background: var(--stage);
  color: #ffffff;
}
.labels {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.feature {
  --place: #1f4e79;
  position: relative;
  padding: 24px 22px 24px 34px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: var(--place);
}
.feature h3 {
  font: 700 clamp(26px, 2.4vw, 34px) / 1.05 var(--display);
  letter-spacing: -0.01em;
}
.feature p {
  margin-top: 10px;
  max-width: 46ch;
}
.feature-ui {
  margin-top: 20px;
}
.sync {
  cursor: pointer;
  transition: transform 120ms var(--ease);
}
.sync:active {
  transform: scale(0.96);
}
.sync.done::before {
  background: #2f6b3a;
}
.photo-ui {
  max-width: 300px;
}
.photo-ui svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.photo-ui figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.ticks {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tick {
  width: 12px;
  height: 7px;
  margin-bottom: 3px;
  border-left: 2px solid #2f6b3a;
  border-bottom: 2px solid #2f6b3a;
  transform: rotate(-45deg);
}
.langs-ui {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.langs-ui span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ground);
  font-size: 14px;
}
.langs-ui .on {
  background: var(--ink);
  color: #ffffff;
}
@media (min-width: 760px) {
  .labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
  }
  .feature {
    padding: 32px 32px 32px 48px;
  }
}

/* Pricing: all three plans at once. */
.pricing {
  margin-top: var(--gap-section);
  padding: 0 var(--m);
}
.plans {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--surface);
}
.plan-name {
  font: 700 26px/1 var(--display);
}
.plan-price {
  margin-top: 18px;
  font: 700 clamp(56px, 6vw, 80px) / 0.9 var(--display);
  letter-spacing: -0.03em;
}
.plan-period {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.plan-text {
  margin-top: 18px;
  flex: 1;
}
.plan .button {
  margin-top: 28px;
  align-self: stretch;
}
.plan-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-2);
}
@media (min-width: 1000px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
  }
  .plan {
    padding: 36px 32px;
  }
  .plan .button {
    align-self: start;
  }
}

/* Questions: the heading beside them on a wide window; the open one stands out. */
.faq {
  margin-top: var(--gap-section);
  padding: clamp(64px, 9vw, 144px) var(--m);
  background: var(--surface);
}
.questions {
  margin-top: 32px;
  display: grid;
  gap: 8px;
}
.question {
  border-radius: 12px;
  background: var(--ground);
  transition: background-color 200ms var(--ease);
}
.question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px 14px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  line-height: 1.35;
}
.question summary::-webkit-details-marker {
  display: none;
}
.plus {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease);
}
.plus::after {
  transform: rotate(90deg);
}
.question[open] .plus::after {
  transform: rotate(0deg);
}
.question p {
  padding: 0 20px 20px;
  max-width: 62ch;
}
.question[open] {
  background: var(--step);
}
@media (hover: hover) and (pointer: fine) {
  .question summary:hover {
    color: var(--accent);
  }
}
@media (min-width: 1000px) {
  .faq {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .faq h2 {
    grid-column: 1 / 5;
    position: sticky;
    top: 32px;
  }
  .questions {
    grid-column: 5 / 13;
    margin-top: 0;
  }
}

/* Impressum and footer: the name returns at full width. */
.imprint {
  margin-top: var(--gap-section);
  padding: 0 var(--m);
}
.imprint-cols {
  display: grid;
  gap: 8px 48px;
  margin-top: 24px;
  font-size: 16px;
}
.imprint h3 {
  margin: 20px 0 2px;
  font-size: 16px;
}
.imprint address {
  font-style: normal;
  margin: 12px 0 0;
}
.imprint-cols > div > p:first-child {
  color: var(--ink-2);
}
@media (min-width: 760px) {
  .imprint-cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .imprint {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .imprint h2 {
    grid-column: 1 / 5;
    font-size: clamp(36px, 3.4vw, 52px);
  }
  .imprint-cols {
    grid-column: 5 / 13;
    margin-top: 0;
  }
}
.foot {
  margin-top: var(--gap-section);
  padding: 40px var(--m) max(28px, env(safe-area-inset-bottom));
  background: var(--ink);
  color: #c9d1d6;
  font-size: 15px;
}
.foot-mark {
  font: 700 clamp(56px, 16vw, 300px) / 0.8 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}
.foot-row {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.foot a {
  color: #ffffff;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.foot-links a {
  padding: 6px 0;
}
@media (min-width: 1000px) {
  .foot-row {
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
  }
  .foot-row > span:last-child {
    justify-self: end;
  }
}

/* A scanned label without the app: what the label is and where to get the app. */
.label-main {
  width: min(640px, calc(100% - var(--m) * 2));
  margin: clamp(56px, 10vw, 128px) auto 0;
  padding-bottom: 96px;
}
.label-page-tile .logo {
  width: 72px;
  height: 72px;
}
.label-page h1 {
  margin-top: 28px;
  font: 700 var(--s-h2) / 1 var(--display);
  letter-spacing: -0.02em;
}
.label-page .lead {
  margin-top: 20px;
}
.label-page .hero-actions {
  margin-top: 32px;
}
/* The box owner's invite, filled in by site.js when the label has one. */
.label-invite {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1.5px dashed var(--accent);
  border-radius: 12px;
  background: var(--surface);
}
.label-invite-title {
  font: 700 var(--s-mid) / 1.15 var(--display);
}
.label-invite-text {
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink-2);
}
.label-invite-code {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.label-invite-code code {
  font: 700 22px / 1 var(--display);
  letter-spacing: 0.08em;
}
.label-invite-copy {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 600 16px / 1 var(--text);
  cursor: pointer;
}
.label-page-note {
  margin-top: 32px;
  font-size: 16px;
  color: var(--ink-2);
}
.pitch {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pitch h2 {
  font: 700 var(--s-mid) / 1.15 var(--display);
}
.pitch p {
  margin-top: 10px;
  font-size: 17px;
}
.pitch ul,
.pitch ol {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.pitch li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
}
.pitch ol {
  counter-reset: step;
}
.pitch ol li {
  counter-increment: step;
  padding-left: 30px;
}
.pitch ol li::before {
  content: counter(step);
  width: 20px;
  height: 20px;
  top: 0.05em;
  border-radius: 4px;
  color: #ffffff;
  font: 700 13px/20px var(--text);
  text-align: center;
}
.pitch li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--stage);
}
.label-page-home {
  margin-top: 12px;
  font-size: 16px;
}

/* Legal pages: one reading column in the same frame as the home page. */
.doc {
  width: min(760px, calc(100% - var(--m) * 2));
  margin: clamp(56px, 8vw, 112px) auto 0;
}
.doc h1 {
  font: 700 var(--s-display) / 0.95 var(--display);
  letter-spacing: -0.03em;
  hyphens: auto;
  overflow-wrap: break-word;
}
.doc .lead {
  margin-top: 24px;
  max-width: none;
  color: var(--ink-2);
}
.doc-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--step);
  font-size: 15px;
}
.doc section {
  margin-top: 64px;
}
.doc h2 {
  font-size: clamp(28px, 2.6vw, 36px);
  margin-bottom: 16px;
}
.doc h3 {
  margin: 28px 0 6px;
}
.doc p,
.doc li,
.doc address {
  max-width: 68ch;
  font-style: normal;
}
.doc p + p,
.doc ul + p,
.doc p + ul {
  margin-top: 12px;
}
.doc ul {
  list-style: disc;
  padding-left: 22px;
}
.doc li + li {
  margin-top: 8px;
}
.doc b {
  font-weight: 600;
}
.doc a {
  color: var(--accent);
}
/* The few lines that matter most stand on a filled block. */
.doc section:first-of-type ul {
  list-style: none;
  padding: 24px 28px;
  background: var(--step);
}
.doc section:first-of-type li {
  padding-left: 22px;
  position: relative;
}
.doc section:first-of-type li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.doc-cols {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.doc-cols address {
  margin-top: 12px;
}
@media (max-width: 720px) {
  .doc-cols {
    grid-template-columns: 1fr;
  }
}

/* Entrances: parts of each section rise in turn, once. Without script everything just shows. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 600ms var(--ease) var(--delay, 0ms),
    transform 700ms var(--ease) var(--delay, 0ms);
}
/* The stage slides in from the right on load, as the app's welcome stage does. */
.js .stage {
  transform: translateX(48px);
  opacity: 0;
}
.js .stage.in {
  transform: none;
  opacity: 1;
  transition:
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 500ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .js .stage {
    opacity: 1;
    transform: none;
  }
  .caret::after,
  .viewfinder::after,
  .js .panel.open {
    animation: none;
  }
}

/* Printing the label: one label, actual size (label-design skill: 100 %, no fit to page). */
.print-sheet {
  display: none;
}
@media print {
  @page {
    size: 70mm 36mm;
    margin: 0;
  }
  body > *:not(.print-sheet) {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .print-sheet {
    display: block;
  }
  .print-label {
    display: flex;
    align-items: center;
    gap: 2.5mm;
    width: 70mm;
    height: 36mm;
    padding: 2mm 2mm 2mm 4mm;
    position: relative;
    color: #000;
    font-family: var(--text);
    overflow: hidden;
    break-after: avoid;
  }
  .print-label .stripe {
    position: absolute;
    inset: 0 auto 0 0;
    width: 2mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-label .qr {
    width: 28mm;
    height: 28mm;
    flex: none;
  }
  .print-label .qr svg {
    width: 100%;
    height: 100%;
  }
  .print-label .no {
    font: 700 18pt/1 var(--display);
  }
  .print-label .name {
    font: 600 10pt/1.2 var(--text);
  }
  .print-label .place,
  .print-label .made {
    font-size: 7pt;
  }
}
