.foodark-flow {
  --foodark-ink: #173128;
  --foodark-green: #0f4635;
  --foodark-mint: #d7ebd8;
  --foodark-canvas: #f7f6ed;
  --foodark-gold: #f2b845;
  --foodark-amber: #f7e8bb;
  --foodark-muted: #4e645a;
  --foodark-line: #d6ddd0;
  color: #eef1e8;
  background: radial-gradient(ellipse at 71% 47%, #34483d, transparent 61%), #202724;
  border: 1px solid #49574e;
  border-radius: clamp(16px, 2vw, 28px);
  box-shadow: 0 18px 34px #0003;
  overflow: hidden;
}

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

.foodark-flow__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid #ffffff24;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.foodark-flow__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  max-width: 66rem;
  margin: auto;
  padding: clamp(20px, 3vw, 40px) clamp(24px, 5vw, 64px);
}

.foodark-flow__guide h3 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.7vw, 3.6rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.foodark-flow__guide p {
  max-width: 31ch;
  margin: 0;
  color: #c8d5cb;
  font-size: .96rem;
  line-height: 1.55;
}

.foodark-flow__steps {
  display: grid;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid #ffffff24;
}

.foodark-flow__steps li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px;
  border-bottom: 1px solid #ffffff24;
  color: #c2cbc2;
  font-size: .84rem;
}

.foodark-flow__steps span {
  color: #bdc8bb;
  font-variant-numeric: tabular-nums;
  font-size: .72rem;
}

.foodark-flow__steps [aria-current='step'] {
  background: #d7ebd814;
  box-shadow: inset 2px 0 #a5d4b0;
  color: #fff;
}

.foodark-flow__steps .is-complete span { color: #9bceaa; }

.foodark-flow__phone {
  --foodark-role: var(--foodark-amber);
  --foodark-role-label: #53350e;
  width: min(100%, 300px);
  aspect-ratio: 393 / 852;
  min-width: 0;
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-self: center;
  overflow: hidden;
  border: 6px solid #101513;
  border-radius: clamp(27px, 4vw, 36px);
  background: var(--foodark-canvas);
  color: var(--foodark-ink);
  box-shadow: 0 16px 28px #07100cc2, 0 0 0 1px #8c9e9090;
  font-family: Arial, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.foodark-flow__phone[data-role='customer'], .foodark-flow__phone[data-role='cabinet'] {
  --foodark-role: var(--foodark-mint);
  --foodark-role-label: var(--foodark-green);
}

.foodark-flow__app-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 30px 16px 11px;
  border-bottom: 1px solid var(--foodark-line);
  background: #fffdf4;
}

.foodark-flow__app-header::before, .foodark-flow__phone::after {
  content: '';
  border-radius: 999px;
  background: #101513;
}

.foodark-flow__app-header::before {
  position: absolute;
  inset: 8px 0 auto;
  width: 24%;
  height: 13px;
  margin-inline: auto;
}

.foodark-flow__phone::after {
  justify-self: center;
  width: 32%;
  height: 4px;
  margin: 3px 0 7px;
}

.foodark-flow__app-header strong { font-size: 1.04rem; }

.foodark-flow__app-header [data-foodark-role] {
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--foodark-role);
  color: var(--foodark-role-label);
  font-size: .72rem;
  font-weight: 700;
}

.foodark-flow__mark {
  width: 20px;
  height: 12px;
  position: relative;
  display: inline-block;
  margin-top: 7px;
  border-radius: 3px 3px 20px 20px;
  background: var(--foodark-gold);
  transform: rotate(-12deg);
}

.foodark-flow__mark::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 8px;
  width: 9px;
  height: 6px;
  border-radius: 90% 0;
  background: #137e58;
  transform: rotate(-32deg);
}

.foodark-flow__screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  overflow-y: auto;
}

.foodark-flow__screen > * { flex-shrink: 0; }

.foodark-flow__screen h4 {
  margin: 0;
  color: var(--foodark-ink);
  font-family: inherit;
  font-size: clamp(1.36rem, 3.8vw, 1.64rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.04em;
}

.foodark-flow__screen h4:focus { outline: none; }
.foodark-flow__screen p { margin: 0; color: var(--foodark-muted); line-height: 1.45; }

.foodark-flow__pairing {
  display: grid;
  gap: 3px;
  padding: 14px 12px;
  border-radius: 11px;
  background: var(--foodark-amber);
  color: #53350e;
  text-align: center;
}

.foodark-flow__pairing strong {
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .18em;
  padding-inline-start: .18em;
}

.foodark-flow__form { display: grid; gap: 6px; margin: auto 0 0; }
.foodark-flow__form label { font-size: .82rem; font-weight: 700; }
.foodark-flow__form input, .foodark-flow__price select {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #9aa99a;
  border-radius: 7px;
  padding: 7px 10px;
  background: #fffdf8;
  color: var(--foodark-ink);
  font: inherit;
}

.foodark-flow__form input { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.foodark-flow__form input[aria-invalid='true'] { border-color: #9c3828; }
.foodark-flow__error { min-height: 16px; color: #8a3122; }

.foodark-flow__button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--foodark-green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  text-align: start;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.foodark-flow__button:hover { background: #1d6149; }
.foodark-flow__button--secondary { border-color: #b9c7b9; background: transparent; color: var(--foodark-green); }
.foodark-flow__button--secondary:hover { background: #e1ecde; }
.foodark-flow__header .foodark-flow__button { border-color: #ffffff36; color: #eef1e8; letter-spacing: normal; }
.foodark-flow__header .foodark-flow__button:hover { background: #ffffff12; }
.foodark-flow :is(button, input, select):focus-visible { outline: 2px solid #188659; outline-offset: 2px; }
.foodark-flow__header button:focus-visible { outline-color: #aed9b7; }
.foodark-flow__actions { display: grid; margin-top: auto; }

.foodark-flow__note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 6px;
  padding: 10px;
  border-radius: 7px;
  background: var(--foodark-role);
  color: var(--foodark-role-label);
  font-size: .76rem;
}

.foodark-flow__stock { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }

.foodark-flow__stock li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--foodark-line);
  border-radius: 8px;
  background: #fffdf8;
}

.foodark-flow__stock small, .foodark-flow__choice small { display: block; color: var(--foodark-muted); }
.foodark-flow__stock li strong { color: var(--foodark-green); }
.foodark-flow__loaf {
  width: 24px;
  height: 15px;
  border-radius: 10px 10px 6px 6px;
  background: repeating-linear-gradient(118deg, #a96b36 0 6px, #ebc68d 6px 7px, #bc7b3f 7px 8px);
  transform: rotate(-12deg);
}

.foodark-flow__loaf--white { background: #eddbb7; box-shadow: inset 0 -2px #bc8a56; }

.foodark-flow__map {
  display: flex;
  position: relative;
  min-height: 95px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  border-radius: 9px;
  background: #d9e6d8;
}

.foodark-flow__map::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -25%;
  transform: rotate(-19deg);
  background: repeating-linear-gradient(90deg, #fff9ef 0 3px, transparent 3px 40px), repeating-linear-gradient(#fff9ef 0 4px, #e5e8d9 4px 28px, #d7e2d1 28px 36px);
}

.foodark-flow__map-name, .foodark-flow__map-nearby, .foodark-flow__map-pin {
  border-radius: 5px;
  padding: 4px 7px;
  background: #fffdf8;
  color: var(--foodark-green);
  font-size: .73rem;
  font-weight: 700;
}

.foodark-flow__map-name { position: absolute; top: 6px; left: 6px; }
.foodark-flow__map-nearby { position: absolute; bottom: 6px; right: 6px; }
.foodark-flow__map-pin { background: var(--foodark-green); color: #fff; }
.foodark-flow__map-pin i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #b4e4bd; }

.foodark-flow__choice {
  display: grid;
  gap: 8px;
  border: 1px solid var(--foodark-line);
  border-radius: 9px;
  padding: 10px;
  background: #fffdf8;
}

.foodark-flow__choice--free { background: #e8f2e6; }

.foodark-flow__cabinet {
  width: min(65%, 152px);
  display: grid;
  gap: 8px;
  align-self: center;
  padding: 9px 10px;
  border: 3px solid #87b69a;
  border-radius: 15px;
  background: #e7ece0;
  box-shadow: 5px 5px 0 #c6d3c7;
  text-align: center;
}

.foodark-flow__cabinet-name, .foodark-flow__cabinet-flap {
  color: var(--foodark-green);
  font-size: .7rem;
  font-weight: 700;
}

.foodark-flow__cabinet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.foodark-flow__cabinet-grid span { aspect-ratio: 1; border-radius: 4px; border: 1px solid #a1b0a3; background: linear-gradient(150deg, #718375, #a7b6a7); }
.foodark-flow__cabinet-grid .foodark-flow__cabinet-slot {
  position: relative;
  display: grid;
  place-items: center;
  background: #37664c;
  box-shadow: inset 0 0 0 2px #c5e6c6;
}
.foodark-flow__cabinet-slot b {
  position: absolute;
  z-index: 1;
  top: 1px;
  right: 3px;
  color: #fff;
  font-size: .48rem;
}
.foodark-flow__cabinet-slot .foodark-flow__loaf { width: 68%; height: 27%; }
.foodark-flow__cabinet-slot--refill .foodark-flow__loaf { animation: foodark-refill 550ms ease-out; }
.foodark-flow__cabinet-grid .foodark-flow__cabinet-slot--open { position: relative; border-color: #1d6149; background: #1a392d; }
.foodark-flow__cabinet-slot--open::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: perspective(60px) rotateY(-73deg);
  transform-origin: left;
  border-radius: inherit;
  background: #acc7b0;
  animation: foodark-open 350ms ease-out;
}

@keyframes foodark-open { from { transform: perspective(60px) rotateY(0); } }
@keyframes foodark-refill { from { opacity: .45; transform: translateY(-6px) rotate(-12deg) scale(.72); } }

.foodark-flow__cabinet-bay {
  position: relative;
  display: block;
  min-height: 28px;
  overflow: hidden;
  border: 1px solid #9ab49a;
  border-radius: 5px;
  background: #29483b;
}
.foodark-flow__cabinet-chamber, .foodark-flow__cabinet-flap { position: absolute; inset: 0; display: grid; place-items: center; }
.foodark-flow__cabinet-flap { background: #cee3cd; transform-origin: top; }
.foodark-flow__cabinet--dispense .foodark-flow__cabinet-flap { background: #9dc7a3; }
.foodark-flow__cabinet--hatch-open .foodark-flow__cabinet-flap { transform: perspective(60px) rotateX(-82deg); animation: foodark-hatch 350ms ease-out; }
.foodark-flow__cabinet-chamber .foodark-flow__loaf { width: 25px; height: 12px; }
@keyframes foodark-hatch { from { transform: perspective(60px) rotateX(0); } }

.foodark-flow__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .foodark-flow__stage { grid-template-columns: 1fr; gap: 16px; padding: 16px clamp(12px, calc(8vw - 14px), 16px); }
  .foodark-flow__guide p { max-width: none; }
  .foodark-flow__steps { margin-top: 12px; border-top: 0; }
  .foodark-flow__steps li { display: none; }
  .foodark-flow__steps [aria-current='step'] { display: flex; border-bottom: 0; }
}

@container (max-width: 240px) {
  .foodark-flow__app-header { padding: 24px 12px 8px; }
  .foodark-flow__app-header::before { height: 10px; }
  .foodark-flow__screen { gap: 8px; padding: 12px; }
  .foodark-flow__choice { gap: 6px; padding: 8px; }
  .foodark-flow__stock li { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; }
  .foodark-flow__stock .foodark-flow__loaf { width: 18px; height: 12px; }
  .foodark-flow__price select { padding-inline: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .foodark-flow__button { transition: none; }
  .foodark-flow__cabinet-slot--open::after, .foodark-flow__cabinet-slot--refill .foodark-flow__loaf, .foodark-flow__cabinet--hatch-open .foodark-flow__cabinet-flap { animation: none; }
}
