:root {
  --green: #173f36;
  --green-deep: #103830;
  --gold: #c09840;
  --gold-ink: #6e4e1c;
  --cream: #f3eee4;
  --ink: #14241f;
  --muted: #4e5c54;
  --bg: var(--cream);
  --btn: var(--green-deep);
  --btn-ink: #f4efe6;
  --accent: var(--gold-ink);
  --menu: #f7f3ea;
  --line: rgba(20, 36, 31, 0.16);
  --header: calc(env(safe-area-inset-top) + 3.5rem);
  --nav: 3.35rem;
  --plate-h: 32dvh;
  --p: 0;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html { scroll-padding-top: var(--header); }

html.reduce { scroll-padding-top: var(--header); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
}

body[data-stage="egg"] {
  --bg: #f3eee4;
  --ink: #14241f;
  --muted: #4e5c54;
  --accent: #6e4e1c;
  --btn: #103830;
  --btn-ink: #f4efe6;
  --menu: #f7f3ea;
  --line: rgba(20, 36, 31, 0.16);
  color-scheme: light;
}

body[data-stage="larva"] {
  --bg: #e5f0e6;
  --ink: #10241c;
  --muted: #3e5348;
  --accent: #1d4d34;
  --btn: #103830;
  --btn-ink: #f4efe6;
  --menu: #f3f8f3;
  --line: rgba(16, 36, 28, 0.16);
}

body[data-stage="prepupa"] {
  --bg: #f0e4d2;
  --ink: #2a2118;
  --muted: #6a5340;
  --accent: #6e4e1c;
  --btn: #3a2a1c;
  --btn-ink: #f6efe4;
  --menu: #f8f1e6;
  --line: rgba(42, 33, 24, 0.16);
}

body[data-stage="pupa"] {
  --bg: #2c241c;
  --ink: #f3ecdf;
  --muted: #cbbba6;
  --accent: #e0c27a;
  --btn: #f3ecdf;
  --btn-ink: #2c241c;
  --menu: #241e18;
  --line: rgba(243, 236, 223, 0.2);
  color-scheme: dark;
}

body[data-stage="fly"] {
  --bg: #101614;
  --ink: #f4f1ea;
  --muted: #c5d0c8;
  --accent: #d7e4d4;
  --btn: #f4f1ea;
  --btn-ink: #10211a;
  --menu: #18211d;
  --line: rgba(244, 241, 234, 0.18);
  color-scheme: dark;
}

body[data-stage="farm"] {
  --bg: #e7efe8;
  --ink: #10241c;
  --muted: #3e5348;
  --accent: #1d4d34;
  --btn: #103830;
  --btn-ink: #f4efe6;
  --menu: #f3f8f3;
  --line: rgba(16, 36, 28, 0.16);
  color-scheme: light;
}

body[data-stage="help"] {
  --bg: #14302a;
  --ink: #f4f1ea;
  --muted: #c9d5ce;
  --accent: #e0c27a;
  --btn: #e0c27a;
  --btn-ink: #14241f;
  --menu: #10241f;
  --line: rgba(244, 241, 234, 0.18);
  color-scheme: dark;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: #14241f;
  padding: 0.6rem 0.9rem;
  z-index: 50;
}

.skip:focus { top: 0.6rem; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nav-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  display: block;
  overflow: visible;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  height: var(--header);
  padding: env(safe-area-inset-top) 0.7rem 0;
  background: #f6f1e7;
  border-bottom: 1px solid rgba(16, 36, 28, 0.14);
}

.brand {
  display: block;
  min-width: 0;
  flex: 0 1 auto;
}

.brand img {
  display: block;
  height: 2.45rem;
  width: auto;
  max-width: 100%;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
}

.ring-wrap { position: relative; }

.life-btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.15rem 0.7rem 0.15rem 0.15rem;
  border: 1px solid rgba(16, 36, 28, 0.18);
  border-radius: 999px;
  background: #fffdf8;
  color: #14241f;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.life-ring {
  position: relative;
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
  color: #173f36;
}

.life-ring svg { width: 100%; height: 100%; display: block; }

.life-label { white-space: nowrap; }

.wa-order {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: #103830;
  color: #f6f1e7;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.ring-track {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.35;
}

.ring-progress {
  fill: none;
  stroke: #c09840;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  transform: rotate(-90deg);
  transform-origin: center;
  transform-box: fill-box;
}

.ring-index {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 580;
  color: currentColor;
}

.ring-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: 13.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #f6f1e7;
  color: #14241f;
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(16, 24, 20, 0.2);
}

.ring-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.55rem;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 0.7rem;
  font-size: 0.98rem;
  color: #14241f;
}

.menu-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ring-menu a[aria-current="true"] {
  background: #103830;
  color: #f6f1e7;
}

.ring-menu .num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  opacity: 0.7;
}

.stage-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 13.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--menu);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 24, 20, 0.16);
}

.stage-menu a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}

.stage-menu a small {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 400;
}

.stage-menu a[aria-current="true"] {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.stage-menu a[aria-current="true"]::before {
  content: "";
  width: 0.85rem;
  height: 2px;
  background: var(--gold);
  align-self: center;
  margin-right: -0.4rem;
}

.plate-fixed {
  display: none;
  position: fixed;
  z-index: 1;
  top: var(--header);
  left: 0;
  right: 0;
  height: var(--plate-h);
  place-items: center;
  align-content: center;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

html.js:not(.reduce) .plate-fixed { display: grid; }

html.reduce .plate-fixed,
body[data-stage="farm"] .plate-fixed,
body[data-stage="help"] .plate-fixed {
  opacity: 0;
  visibility: hidden;
}

.plate-frame {
  width: min(92vw, 720px);
  height: calc(var(--plate-h) - 1.35rem);
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
}

.plate-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
}

.plate-art.is-on {
  opacity: 1;
  visibility: visible;
}

img.plate-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-art[data-art="egg"] { object-position: 50% 42%; }
.plate-art[data-art="prepupa"] { object-position: 50% 42%; }
.plate-art[data-art="pupa"] { object-position: 50% 45%; }
.plate-art[data-art="fly"] { object-position: 50% 38%; }
.plate-art[data-art="farm"] { object-position: 50% 42%; }

.local-plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

.plate-note {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

.local-plate {
  margin: 0 auto 1.25rem;
  width: min(280px, 78vw);
}

html.js:not(.reduce) .local-plate { display: none; }

.local-plate svg,
.local-plate img { width: 100%; height: auto; }

.local-plate figcaption,
.plate-note { font-family: var(--font-body); }

.local-plate figcaption {
  margin-top: 0.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.stage {
  position: relative;
  z-index: 2;
  color: var(--ink);
  padding: 5.5rem 1.25rem 2rem;
}

html.js:not(.reduce) .stage {
  min-height: 100dvh;
  scroll-snap-align: none;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header) + var(--plate-h) + 0.25rem) 1.25rem 6.4rem;
}

.stage-copy {
  width: min(38rem, 100%);
}

html.js:not(.reduce) .stage-copy {
  margin-top: auto;
  margin-bottom: auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  font-weight: 580;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

h1, h2, .help h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.lede {
  margin: 0 0 0.9rem;
  max-width: 38rem;
  color: var(--ink);
}

.offer {
  margin: 0 0 1.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.offer strong {
  display: block;
  color: var(--ink);
  font-weight: 580;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.btn, .pill, .text-btn, .ghost {
  font-family: inherit;
  cursor: pointer;
}

.btn, .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem 0.75rem 1rem;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  text-decoration: none;
  font-weight: 580;
  border: 0;
  transition: background-color 0.6s ease, color 0.6s ease;
}

html.reduce .btn,
html.reduce .pill { transition: none; }

.btn::before, .pill::before {
  content: "";
  width: 1.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  flex: none;
}

body[data-stage="pupa"] .btn::before,
body[data-stage="fly"] .btn::before,
body[data-stage="help"] .btn::before,
body[data-stage="pupa"] .pill::before,
body[data-stage="fly"] .pill::before,
body[data-stage="help"] .pill::before {
  background: var(--btn-ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.shop {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
}

.shop-row,
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
  min-height: 2.75rem;
}

.shop-row:not(:has(.stepper)),
.cart-line:not(:has(.stepper)) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.shop-row > span,
.cart-line > span {
  font-weight: 580;
  line-height: 1.2;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  touch-action: manipulation;
}

.stepper button,
.add,
.cart-btn {
  font-family: inherit;
  cursor: pointer;
}

.stepper button {
  width: 2.35rem;
  height: 2.55rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  touch-action: manipulation;
}

.stepper .unit {
  padding-right: 0.55rem;
  font-size: 0.78rem;
  font-weight: 580;
  color: var(--ink);
}

.stepper input[type="number"] {
  width: 2.2rem;
  height: 2.55rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-align: center;
  touch-action: manipulation;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add {
  min-height: 2.55rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font-weight: 580;
}

.dock {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100% - 1.25rem);
}

.dock .pill {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  max-width: none;
  min-width: 0;
}

.dock .pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 48px;
  padding: 0.75rem 0.95rem 0.75rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: #f6f1e7;
  color: #10241c;
  font-weight: 580;
  box-shadow: 0 10px 30px rgba(16, 24, 20, 0.18);
}

.cart-btn b {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.4rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #103830;
  color: #f6f1e7;
  font-size: 0.78rem;
  font-weight: 600;
}

.text-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0.4rem 0;
  color: var(--accent);
  font-weight: 580;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.dock {
  position: fixed;
  z-index: 25;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  max-width: none;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem max(0.7rem, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 94%, transparent) 30%);
  pointer-events: none;
}

.pill {
  box-shadow: 0 10px 30px rgba(16, 24, 20, 0.18);
  white-space: nowrap;
}

.dock .pill,
.dock .cart-btn { pointer-events: auto; }

.dock .pill {
  position: static;
  transform: none;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  justify-content: center;
  max-width: none;
  padding-left: 0.75rem;
  padding-right: 0.85rem;
}

.dock .pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-btn { white-space: nowrap; }

.cart-btn {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--menu);
  color: var(--ink);
  font-weight: 580;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(16, 24, 20, 0.12);
}

.cart-btn b {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--gold);
  color: #14241f;
  font-size: 0.75rem;
}

.shop {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.shop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.4rem;
  align-items: center;
}

.shop-row > span { font-weight: 580; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.stepper button {
  width: 34px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}

.stepper input {
  width: 2rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font: inherit;
  font-size: 16px;
  padding: 0;
  touch-action: manipulation;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add {
  appearance: none;
  min-height: 36px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 580;
  cursor: pointer;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem 0.6rem;
  min-height: 44px;
  border-bottom: 1px solid rgba(20, 36, 31, 0.12);
  padding: 0.7rem 0;
}

.cart-main {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.cart-name { font-weight: 580; }

.cart-ask {
  color: #6e4e1c;
  font-size: 0.88rem;
  font-weight: 560;
}

.cart-line button {
  appearance: none;
  border: 0;
  background: none;
  color: #6e4e1c;
  font: inherit;
  font-weight: 580;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  min-height: 44px;
}

.scroll-hint {
  display: none;
}

html.js:not(.reduce) .scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-hint i {
  display: block;
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(var(--gold), transparent);
}

#farm.stage {
  justify-content: flex-start;
  scroll-snap-stop: normal;
  padding: calc(var(--header) + 1.35rem) 1.25rem 6.4rem;
}

#farm .stage-copy {
  width: min(34rem, 100%);
  margin: 0 auto;
}

#farm .shop { gap: 0; }

#farm .shop-row {
  min-height: 3.35rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

#farm .shop-row > span { font-size: 1.05rem; }

#help {
  position: relative;
  z-index: 3;
  background: #14302a;
  color: #f4f1ea;
  --ink: #f4f1ea;
  --muted: #c9d5ce;
  --accent: #e0c27a;
  --btn: #e0c27a;
  --btn-ink: #14241f;
  --line: rgba(244, 241, 234, 0.18);
  padding: calc(var(--header) + 1.15rem) 1.25rem calc(var(--nav) + 1.6rem + env(safe-area-inset-bottom));
  scroll-snap-align: none;
  min-height: auto;
  display: block;
}

#help .stage-copy { margin: 0 auto; }

.help-cards {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.help-card {
  --ink: #14241f;
  --muted: #4a574f;
  --accent: #6e4e1c;
  --line: rgba(20, 36, 31, 0.12);
  padding: 0.9rem 0.95rem 0.85rem;
  border-radius: 1.15rem;
  background: #f7f3ea;
  color: #14241f;
}

.help-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: #14241f;
}

.help-card p { margin: 0.55rem 0 0; color: #3d4c45; }

.help-card ol { gap: 0.65rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 0.55rem 0.35rem;
  border-radius: 0.8rem;
  background: #fff;
  text-align: center;
}

.facts b,
.contact-row span {
  display: block;
  color: #6e4e1c;
  font-size: 0.68rem;
  font-weight: 580;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts span {
  display: block;
  margin-top: 0.2rem;
  color: #14241f;
  font-size: 0.92rem;
  font-weight: 580;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin-top: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
  background: #fff;
  color: #14241f;
  text-decoration: none;
}

.contact-row strong {
  color: #14241f;
  font-size: 0.98rem;
  font-weight: 560;
  overflow-wrap: anywhere;
}

.contact-row.reg-mark {
  margin-top: 0.7rem;
  border-top: 1px solid rgba(20, 36, 31, 0.1);
  border-radius: 0;
  background: transparent;
  padding: 0.75rem 0.15rem 0.1rem;
}

.contact-row.reg-mark strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.help-note {
  margin: 0.95rem 0 0;
  color: #c9d5ce;
  font-size: 0.92rem;
}

.close-block { margin: 2rem 0 0; }

.close-block h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

.help ol, .close-block ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.help ol li, .close-block ol li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.help ol li span, .close-block ol li span {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1.2;
}

.faq { display: grid; gap: 0.5rem; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 580;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 3px;
  margin-right: 0.6rem;
  background: var(--gold);
  vertical-align: middle;
}

.faq details p {
  margin: 0.55rem 0 0.2rem 1.45rem;
  color: var(--muted);
}

.notice { display: none; }

body.is-preview .notice {
  display: block;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.site-footer {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p { margin: 0 0 0.7rem; }

.business-line {
  color: #f4f1ea;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.business-line b {
  color: #e0c27a;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.again {
  color: var(--accent);
  font-weight: 580;
}

dialog {
  width: min(34rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  border: 0;
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.1rem;
  background: #f7f3ea;
  color: #14241f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

dialog::backdrop { background: rgba(12, 20, 18, 0.55); }

dialog h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: #14241f;
}

dialog p { color: #24312c; }

.message-text {
  white-space: pre-wrap;
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  color: #14241f;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.ghost {
  appearance: none;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 36, 31, 0.25);
  background: transparent;
  color: #14241f;
  font-weight: 580;
}

dialog .btn { background: #103830; color: #f4efe6; }
dialog .btn::before { background: #c09840; }

dialog .stepper {
  border-color: rgba(20, 36, 31, 0.2);
  background: #fff;
}

dialog .stepper button,
dialog .stepper input[type="number"],
dialog .stepper .unit,
dialog .text-btn,
dialog .cart-line > span {
  color: #14241f;
}

dialog .cart-line {
  border-bottom: 1px solid rgba(20, 36, 31, 0.1);
}

#cart-empty[hidden] { display: none; }

.tray-form { display: grid; gap: 0.35rem; margin-top: 0.8rem; }

.tray-row {
  display: grid;
  grid-template-columns: auto 1fr 4.5rem;
  gap: 0.7rem;
  align-items: center;
  min-height: 48px;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(20, 36, 31, 0.1);
}

.tray-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #173f36;
}

.tray-row input[type="number"],
.town-field input {
  font: inherit;
  font-size: 1rem;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(20, 36, 31, 0.22);
  background: #fff;
  color: #14241f;
  padding: 0.35rem 0.5rem;
  width: 100%;
}

.town-field {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.85rem;
}

.town-field span { font-size: 0.92rem; font-weight: 580; }

.town-field[hidden],
.town-hint[hidden],
.order-total[hidden],
.order-note[hidden],
.pay-note[hidden] { display: none; }

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0.85rem 0 0;
}

.order-total span {
  color: #6e4e1c;
  font-size: 0.75rem;
  font-weight: 580;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-total strong {
  color: #173f36;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.order-note,
.town-hint,
.pay-note {
  margin: 0.4rem 0 0;
  color: #4e5c54;
  font-size: 0.9rem;
}

.pay-note { margin-top: 0.85rem; }

#tray .dialog-actions { display: grid; }

#tray .dialog-actions .btn,
#tray .dialog-actions .ghost { width: 100%; }

#town { font-size: 16px; }

.tray-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  color: #4e5c54;
  font-size: 0.85rem;
}

.tray-warn { color: #6e4e1c; }

@media (max-height: 940px) {
  :root { --plate-h: 28dvh; }
  h1, h2, .help h2 { font-size: 1.85rem; }
  .lede { font-size: 0.98rem; margin-bottom: 0.65rem; }
  .offer { margin-bottom: 0.85rem; }
  html.js:not(.reduce) .scroll-hint { display: none; }
}

@media (max-width: 360px) {
  :root { --plate-h: 24dvh; }
  h1, h2, .help h2 { font-size: 1.55rem; }
  .lede { font-size: 0.92rem; line-height: 1.32; margin-bottom: 0.4rem; }
  .offer { margin-bottom: 0.45rem; padding-top: 0.4rem; }
  .stage, html.js:not(.reduce) .stage { padding-left: 1rem; padding-right: 1rem; }
  html.js:not(.reduce) .stage {
    justify-content: flex-start;
    padding-bottom: 5.2rem;
  }
  html.js:not(.reduce) .stage-copy { margin: 0; }
  .cart-btn { padding: 0 0.6rem; font-size: 0; gap: 0; }
  .cart-btn b { font-size: 0.8rem; margin-left: 0; }
}

@media (min-width: 960px) {
  :root { --header: calc(env(safe-area-inset-top) + 4rem); }
  .top { padding-left: 1.4rem; padding-right: 1.4rem; }
  .brand img { height: 2.85rem; }
  .wa-order { display: inline-flex; }

  html.js:not(.reduce) .plate-fixed {
    top: var(--header);
    width: 50vw;
    height: calc(100dvh - var(--header));
    right: auto;
  }

  html.js:not(.reduce) .plate-frame {
    width: min(42vw, 680px);
    height: min(62vh, 640px);
  }

  html.js:not(.reduce) .stage {
    padding: 6.5rem 7vw 6.5rem calc(50vw + 4vw);
    justify-content: center;
  }

  html.js:not(.reduce) .stage-copy { margin: 0; }

  #help { padding-left: 0; padding-right: 0; }
  #help .stage-copy { width: min(40rem, calc(100% - 3rem)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .plate-art, body, .btn, .pill, .plate-fixed { transition: none; }
}

@media print {
  .top, .dock, .bottom-nav, .pill, .plate-fixed, .scroll-hint { display: none !important; }
  .local-plate { display: block !important; }
  .stage, #help {
    min-height: auto;
    padding: 1rem 0;
    display: block;
    color: #14241f;
    background: #fff;
  }
}

/* Full-screen stage media. The copy and the buy row sit on a sheet so they stay readable. */
html.js .plate-fixed {
  display: block !important;
  inset: 0;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  height: 100svh !important;
  z-index: 0;
  opacity: 1 !important;
  visibility: visible !important;
  place-items: stretch;
  align-content: stretch;
  pointer-events: none;
}

html.reduce .plate-fixed,
body[data-stage="farm"] .plate-fixed {
  opacity: 1;
  visibility: visible;
}

body[data-stage="help"] .plate-fixed {
  opacity: 0 !important;
  visibility: hidden !important;
}

html.js .plate-frame {
  position: absolute;
  inset: 0;
  width: auto !important;
  height: auto !important;
  max-width: none;
  border-radius: 0;
}

html.js .local-plate { display: none; }

html.js .plate-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.end-note {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1rem calc(var(--nav) + 1.2rem + env(safe-area-inset-bottom));
  background: #14302a;
  color: #e7efe4;
  font-size: 0.88rem;
}

.end-note p {
  max-width: 36rem;
  margin: 0 auto;
}

.stage-menu {
  background: #12211c;
  color: #f6f1e7;
}

.stage-menu a small { color: #c9d5ce; }

html.js .stage {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header) + 0.35rem) 0.8rem calc(var(--nav) + 0.7rem + env(safe-area-inset-bottom));
  background: transparent;
}

html.js:not(.reduce) .stage,
html.reduce .stage {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: calc(var(--header) + 0.35rem) 0.8rem calc(var(--nav) + 0.7rem + env(safe-area-inset-bottom));
  background: transparent;
}

html.js .stage-copy {
  max-height: calc(100svh - var(--header) - 6.5rem);
  overflow: auto;
  --ink: #14241f;
  --muted: #4a574f;
  --accent: #6e4e1c;
  --btn: #103830;
  --btn-ink: #f6f1e7;
  --line: rgba(20, 36, 31, 0.12);
  --menu: #fff;
  width: min(40rem, 100%);
  margin: 0;
  padding: 0.95rem 0.95rem 0.8rem;
  border-radius: 1.35rem;
  background: #f7f3ea;
  color: var(--ink);
  border: 1px solid rgba(20, 36, 31, 0.08);
}

html.js .stage-copy h1,
html.js .stage-copy h2 {
  font-size: clamp(1.7rem, 6.2vw, 2.8rem);
  margin-bottom: 0.4rem;
  color: #14241f;
}

html.js .stage-copy .lede {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  color: #24312c;
}

html.js .stage-copy .offer {
  margin-bottom: 0.65rem;
  padding-top: 0.45rem;
  font-size: 0.9rem;
  color: #4a574f;
}

html.js .stage-copy .kicker { color: #6e4e1c; }

html.js .shop { gap: 0.45rem; margin-bottom: 0.35rem; }

html.js .shop-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0.45rem 0.45rem 0.45rem 0.8rem;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 36, 31, 0.08);
}

html.js .shop-row > span { flex: 1 1 auto; }

html.js .shop-row .stepper { margin-left: auto; }

.stage-copy > .live-price {
  display: block;
  margin: 0 0 0.7rem;
  color: #173f36;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

dialog .live-price {
  flex: 0 0 auto;
  min-width: 4.4rem;
  color: #173f36;
  font-size: 0.95rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

html.js .shop-row:not(:has(.stepper)) {
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 1rem;
  padding-right: 0.35rem;
}

html.js .stepper {
  background: #f3eee4;
  border-color: transparent;
}

html.js .add {
  min-height: 2.85rem;
  min-width: 4.6rem;
  padding: 0 1.05rem;
  background: #103830;
  color: #f6f1e7;
  font-size: 1rem;
}

html.js .stage-copy .text-btn { color: #6e4e1c; }

html.js .dock {
  left: auto;
  right: 0.8rem;
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  width: auto;
  max-width: none;
  justify-content: flex-end;
  padding: 0;
  background: none;
  transform: none;
}

html.js .dock .pill { display: none; }

html.js .cart-btn {
  background: #103830;
  color: #f6f1e7;
  border: 0;
  box-shadow: none;
  min-height: 2.55rem;
  padding: 0 0.6rem;
  font-size: 0.75rem;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: var(--nav);
  padding: 0.28rem 0.4rem calc(0.28rem + env(safe-area-inset-bottom));
  background: #f6f1e7;
  border-top: 1px solid rgba(16, 36, 28, 0.12);
  touch-action: manipulation;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  flex: 1 1 0;
  min-width: 1.7rem;
  min-height: 2.55rem;
  padding: 0.2rem 0.15rem;
  border-radius: 0.7rem;
  color: #173f36;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.bottom-nav a span { display: none; }

.bottom-nav a[aria-current="true"] {
  flex: 0 0 auto;
  padding-right: 0.35rem;
  padding-left: 0.3rem;
  background: #103830;
  color: #f6f1e7;
}

.bottom-nav a[aria-current="true"] span {
  display: inline;
  font-size: 0.64rem;
  letter-spacing: -0.02em;
}

.bottom-nav .cart-btn {
  flex: 0 0 auto;
  border-radius: 999px;
}

html.js .dock {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.js #farm.stage {
  justify-content: flex-end;
  padding-top: calc(var(--header) + 0.35rem);
}

html.js #farm .stage-copy { margin: 0; }

html.js #help {
  padding-bottom: calc(var(--nav) + 1.4rem + env(safe-area-inset-bottom));
}

html.js #help .stage-copy {
  max-height: none;
  overflow: visible;
  width: min(40rem, 100%);
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #f4f1ea;
  --ink: #f4f1ea;
  --muted: #c9d5ce;
  --accent: #e0c27a;
  --btn: #e0c27a;
  --btn-ink: #14241f;
}

html.js #help .stage-copy h2,
html.js #help .stage-copy .lede,
html.js #help .stage-copy .kicker { color: inherit; }

html.js #help .stage-copy .lede {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

html.js #help .text-btn,
html.js #help .again { color: #e0c27a; }

html.js #help .contact-row,
html.js #help .contact-row strong { color: #14241f; }

html.js #help .contact-row span { color: #6e4e1c; }

@media (min-width: 900px) {
  html.js .stage {
    align-items: flex-end;
    justify-content: flex-end;
    padding-left: 4vw;
    padding-right: 4vw;
  }

  html.js img.plate-art { transform: none; }

  html.js .stage-copy .lede {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  html.js .stage-copy {
    width: min(34rem, 46vw);
    padding: 1.25rem 1.3rem 1.1rem;
  }

  html.js .stage-copy h1,
  html.js .stage-copy h2 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }

  html.js #help .stage-copy {
    width: min(40rem, calc(100% - 8vw));
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: #f4f1ea;
    --ink: #f4f1ea;
    --muted: #c9d5ce;
    --accent: #e0c27a;
    --btn: #e0c27a;
    --btn-ink: #14241f;
  }

  html.js #help .stage-copy h2,
  html.js #help .stage-copy .lede,
  html.js #help .stage-copy .kicker { color: inherit; }
}

@media (min-width: 960px) {
  html.js:not(.reduce) .plate-fixed {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100svh !important;
  }

  html.js:not(.reduce) .stage {
    padding: calc(var(--header) + 0.5rem) 4vw calc(var(--nav) + 0.85rem + env(safe-area-inset-bottom));
    justify-content: flex-end;
    align-items: flex-end;
  }
}

@media (max-width: 360px) {
  html.js .cart-btn { font-size: 0.95rem; gap: 0.45rem; padding: 0 0.85rem 0 0.95rem; }
}

@media (max-height: 740px) {
  html.js .stage-copy h1,
  html.js .stage-copy h2 { font-size: 1.55rem; }
  html.js .stage-copy .lede { font-size: 0.92rem; margin-bottom: 0.35rem; }
  html.js .scroll-hint { display: none; }
}
