:root {
  --ink: #0e1116;
  --mute: #5a636e;
  --tile: #f1f2f4;
  --grout: #c8ced6;
  --panel: #ffffff;
  --signal: #d61f26;
  --signal-deep: #a8161c;
  --steel: #2c343e;
  --steel-soft: #6b7582;
  --lcd: #141a16;
  --lcd-glow: #b7f06a;
  --rail: #dde1e6;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", system-ui, sans-serif;
  --mono: "Space Grotesk", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--tile);
  background-image:
    linear-gradient(var(--grout) 1px, transparent 1px),
    linear-gradient(90deg, var(--grout) 1px, transparent 1px);
  background-size: 72px 48px;
  background-position: -1px -1px;
  min-height: 100vh;
}

a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--signal-deep);
}

.shell {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0 0 3rem;
}

/* —— top bar like store sign —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: #fff;
  margin: 0.85rem 0 1.25rem;
  padding: 0.85rem 1.1rem;
  border: 3px solid var(--ink);
}

.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand small {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* —— hero: flush type + hanging price tag —— */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.hero-copy {
  background: var(--panel);
  border: 3px solid var(--ink);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.55rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero-copy .lead {
  margin: 0;
  max-width: 40ch;
  color: var(--mute);
  font-size: 1.02rem;
}

.hero-copy .lead b {
  color: var(--ink);
  font-weight: 650;
}

.price-hang {
  position: relative;
  padding-top: 1.4rem;
  display: flex;
  justify-content: center;
}

.price-hang::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  background: var(--steel-soft);
  transform: translateX(-50%);
}

.price-tag {
  width: min(100%, 250px);
  background: var(--signal);
  color: #fff;
  border: 3px solid var(--ink);
  padding: 1.15rem 1rem 1.25rem;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  text-align: center;
  box-shadow: 8px 10px 0 rgba(14, 17, 22, 0.18);
  animation: hang-in 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes hang-in {
  from {
    opacity: 0;
    transform: translateY(-16px) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: rotate(1.5deg);
  }
}

.price-tag .who {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.price-tag .what {
  margin: 0.45rem 0 0.2rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.price-tag .num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-tag .unit {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
  padding-bottom: 0.85rem;
}

/* —— tray: cafeteria compartments —— */
.tray-wrap {
  margin-bottom: 1.25rem;
}

.tray-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  background: var(--steel);
  color: #fff;
  border: 3px solid var(--ink);
  border-bottom: 0;
  padding: 0.9rem 1.1rem;
}

.tray-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.03em;
}

.tray-head p {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 42ch;
}

.tray-total {
  background: var(--signal);
  border: 2px solid #fff;
  padding: 0.45rem 0.75rem;
  text-align: right;
  min-width: 8.5rem;
}

.tray-total span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.tray-total b {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tray {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #9aa3ad;
  border: 3px solid var(--ink);
  padding: 0.55rem;
}

.slot {
  background: var(--panel);
  border: 2px solid var(--ink);
  margin: 0.2rem;
  padding: 0.85rem 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 210px;
}

.slot-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
}

.slot-top h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.slot-top b {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--signal);
}

.bits {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.bit {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--grout);
  background: var(--tile);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 560;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.bit[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.bit[aria-pressed="true"] .k {
  color: var(--lcd-glow);
}

.bit .k {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--mute);
}

.bit:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* —— scale + form —— */
.bench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-panel,
.scale {
  border: 3px solid var(--ink);
  background: var(--panel);
}

.form-panel {
  padding: 1.15rem 1.15rem 1.3rem;
}

.form-panel h2,
.tags-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  letter-spacing: -0.03em;
}

.form-panel > p,
.tags-head p {
  margin: 0 0 1rem;
  color: var(--mute);
  font-size: 0.94rem;
  max-width: 46ch;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.field.span {
  grid-column: 1 / -1;
}

.field input,
.field select {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--tile);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.55rem 0.6rem;
  border-radius: 0;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}

.scale {
  background: var(--steel);
  color: #fff;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.scale .hint {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

.lcd {
  background: var(--lcd);
  border: 3px solid #000;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(183, 240, 106, 0.15);
}

.lcd .lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(183, 240, 106, 0.55);
}

.lcd .val {
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lcd-glow);
  text-shadow: 0 0 18px rgba(183, 240, 106, 0.25);
}

.lcd .val small {
  font-size: 0.42em;
  margin-left: 0.2em;
  letter-spacing: 0;
}

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.stats li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.6rem;
}

.stats span {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.15rem;
}

.stats b {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.98rem;
}

/* —— price stickers wall —— */
.tags {
  border: 3px solid var(--ink);
  background: var(--rail);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.tags-head {
  margin-bottom: 0.9rem;
}

.wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.sticker {
  appearance: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  background: #fffef8;
  color: var(--ink);
  font: inherit;
  text-align: left;
  padding: 0.7rem 0.65rem 0.75rem;
  position: relative;
  transition: transform 0.1s, background 0.1s;
}

.sticker::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0.7rem;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--signal);
}

.sticker[aria-pressed="true"] {
  background: #ffe8e8;
  transform: translateY(1px);
}

.sticker[aria-pressed="true"]::after {
  border-top-color: var(--ink);
}

.sticker:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.sticker .n {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
  padding-right: 0.5rem;
}

.sticker .c {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--signal);
}

.sticker .u {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  color: var(--mute);
  font-weight: 600;
}

.picked {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-size: 0.92rem;
}

.picked p {
  margin: 0;
  color: var(--mute);
}

.picked b {
  font-family: var(--mono);
  font-size: 1.1rem;
}

/* —— limits —— */
.limits {
  border: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 1.2rem 1.2rem 1.35rem;
  margin-bottom: 1.25rem;
}

.limits h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.limits > p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

.limits dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.limits dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--signal);
  margin-bottom: 0.25rem;
}

.limits dd {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.foot {
  font-size: 0.8rem;
  color: var(--mute);
}

.foot p {
  margin: 0 0 0.4rem;
  max-width: 72ch;
}

.foot nav {
  display: flex;
  gap: 1rem;
  margin-top: 0.7rem;
}

.foot a {
  color: var(--ink);
  font-weight: 600;
}

.cookie {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 1.5rem));
  background: #fff;
  border: 3px solid var(--ink);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  box-shadow: 6px 6px 0 rgba(14, 17, 22, 0.15);
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  margin: 0;
  color: var(--mute);
}

.cookie button {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .hero,
  .bench,
  .tray {
    grid-template-columns: 1fr;
  }

  .tray {
    padding: 0.4rem;
  }

  .wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .limits dl {
    grid-template-columns: 1fr;
  }

  .price-tag {
    transform: none;
    animation: none;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 0.9rem, 1180px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .field.span {
    grid-column: auto;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-tag {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
